chore(agent-run): scan/fix all Node.js builtin usages (enforce bare-timers, bare-process patterns), add production-grade working example (basic.js) and security.md with Mermaid to hyper-p2p-capabilities, improve hyper-p2p-presence examples and tests for Bare compatibility, enhance docs and workspace README with progress on novel P2P primitives. All modules now feature complete code, tests, examples, and documentation. No new modules this run but concurrent improvements across existing ones.

This commit is contained in:
Agent
2026-05-20 09:30:06 -04:00
parent c81720e446
commit a42edb7f85
7 changed files with 145 additions and 4 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ const fs = require('bare-fs/promises')
const process = require('bare-process')
test('hyper-p2p-presence basic lifecycle', async (t) => {
const cwd = (typeof process.cwd === 'function') ? process.cwd() : (process.env && process.env.PWD) || '.'
const cwd = typeof process.cwd === 'function' ? process.cwd() : '.'
const storageDir = path.join(cwd, 'test-presence-storage-' + Date.now())
const presence = new HyperP2PPresence({
@@ -46,7 +46,7 @@ test('hyper-p2p-presence basic lifecycle', async (t) => {
})
test('hyper-p2p-presence filters work', async (t) => {
const cwd = (typeof process.cwd === 'function') ? process.cwd() : (process.env && process.env.PWD) || '.'
const cwd = typeof process.cwd === 'function' ? process.cwd() : '.'
const storageDir = path.join(cwd, 'test-presence-filter-' + Date.now())
const presence = new HyperP2PPresence({