monomind 1.16.11 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/github/code-review-swarm.md +19 -19
- package/.claude/agents/github/github-modes.md +4 -4
- package/.claude/agents/github/multi-repo-swarm.md +24 -24
- package/.claude/agents/github/project-board-sync.md +28 -28
- package/.claude/agents/github/swarm-issue.md +26 -26
- package/.claude/agents/github/swarm-pr.md +18 -18
- package/.claude/agents/github/workflow-automation.md +27 -27
- package/.claude/agents/reengineer-squad/git-manager.md +2 -2
- package/.claude/commands/mastermind/master.md +9 -3
- package/.claude/commands/mastermind/references/antigravity-tools.md +60 -0
- package/.claude/commands/mastermind/references/claude-code-tools.md +50 -0
- package/.claude/commands/mastermind/references/codex-tools.md +64 -0
- package/.claude/commands/mastermind/references/copilot-tools.md +49 -0
- package/.claude/commands/mastermind/references/gemini-tools.md +63 -0
- package/.claude/commands/mastermind/references/pi-tools.md +28 -0
- package/.claude/helpers/mastermind-activate.cjs +53 -0
- package/.claude/settings.json +4 -0
- package/.claude/skills/mastermind/runorg.md +14 -0
- package/.claude/skills/mastermind/techport.md +5 -5
- package/README.md +1 -1
- package/package.json +6 -5
- package/packages/@monomind/cli/.claude/agents/github/code-review-swarm.md +19 -19
- package/packages/@monomind/cli/.claude/agents/github/github-modes.md +4 -4
- package/packages/@monomind/cli/.claude/agents/github/multi-repo-swarm.md +24 -24
- package/packages/@monomind/cli/.claude/agents/github/project-board-sync.md +28 -28
- package/packages/@monomind/cli/.claude/agents/github/swarm-issue.md +26 -26
- package/packages/@monomind/cli/.claude/agents/github/swarm-pr.md +18 -18
- package/packages/@monomind/cli/.claude/agents/github/workflow-automation.md +27 -27
- package/packages/@monomind/cli/.claude/agents/reengineer-squad/git-manager.md +2 -2
- package/packages/@monomind/cli/.claude/commands/mastermind/master.md +9 -3
- package/packages/@monomind/cli/.claude/commands/mastermind/references/antigravity-tools.md +60 -0
- package/packages/@monomind/cli/.claude/commands/mastermind/references/claude-code-tools.md +50 -0
- package/packages/@monomind/cli/.claude/commands/mastermind/references/codex-tools.md +64 -0
- package/packages/@monomind/cli/.claude/commands/mastermind/references/copilot-tools.md +49 -0
- package/packages/@monomind/cli/.claude/commands/mastermind/references/gemini-tools.md +63 -0
- package/packages/@monomind/cli/.claude/commands/mastermind/references/pi-tools.md +28 -0
- package/packages/@monomind/cli/.claude/helpers/mastermind-activate.cjs +53 -0
- package/packages/@monomind/cli/.claude/skills/mastermind/runorg.md +14 -0
- package/packages/@monomind/cli/.claude/skills/mastermind/techport.md +5 -5
- package/packages/@monomind/cli/README.md +1 -1
- package/packages/@monomind/cli/dist/src/browser/dashboard/ui.html +125 -37
- package/packages/@monomind/cli/dist/src/commands/index.js +0 -2
- package/packages/@monomind/cli/dist/src/init/executor.js +0 -24
- package/packages/@monomind/cli/dist/src/init/statusline-generator.js +0 -45
- package/packages/@monomind/cli/dist/src/init/types.d.ts +0 -2
- package/packages/@monomind/cli/dist/src/init/types.js +0 -2
- package/packages/@monomind/cli/dist/src/ui/dashboard.html +82 -75
- package/packages/@monomind/cli/dist/src/ui/server.mjs +41 -4
- package/packages/@monomind/cli/package.json +2 -2
- package/packages/@monomind/guidance/README.md +0 -1
- package/packages/@monomind/guidance/package.json +2 -14
- package/scripts/verify-appliance.sh +16 -20
- package/.claude-plugin/README.md +0 -704
- package/.claude-plugin/docs/INSTALLATION.md +0 -258
- package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -358
- package/.claude-plugin/docs/QUICKSTART.md +0 -357
- package/.claude-plugin/docs/STRUCTURE.md +0 -122
- package/.claude-plugin/hooks/hooks.json +0 -74
- package/.claude-plugin/marketplace.json +0 -98
- package/.claude-plugin/plugin.json +0 -70
- package/.claude-plugin/scripts/install.sh +0 -234
- package/.claude-plugin/scripts/uninstall.sh +0 -36
- package/.claude-plugin/scripts/verify.sh +0 -102
|
@@ -257,7 +257,11 @@ function _insertRunEvent(ev, source) {
|
|
|
257
257
|
if (!org || !runId) return;
|
|
258
258
|
_runDbInsertStmt.run([org, runId, String(ev.type || ''), JSON.stringify(ev), Number(ev.ts || Date.now()), source || 'http']);
|
|
259
259
|
_persistRunDb();
|
|
260
|
-
} catch (_) {
|
|
260
|
+
} catch (_) {
|
|
261
|
+
// sql.js leaves the prepared statement in a dirty state after any error (step() throws but
|
|
262
|
+
// reset() is never called). Reset it so subsequent inserts aren't permanently broken.
|
|
263
|
+
try { _runDbInsertStmt.reset(); } catch (_2) {}
|
|
264
|
+
}
|
|
261
265
|
}
|
|
262
266
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
263
267
|
|
|
@@ -5560,6 +5564,28 @@ export async function startServer({ port = 4242, projectDir, openBrowser = true
|
|
|
5560
5564
|
return;
|
|
5561
5565
|
}
|
|
5562
5566
|
|
|
5567
|
+
// ----------------------------------------------- GET /api/monoagent/data
|
|
5568
|
+
if (req.method === 'GET' && url === '/api/monoagent/data') {
|
|
5569
|
+
try {
|
|
5570
|
+
const { execFile } = await import('child_process');
|
|
5571
|
+
const run = (args) => new Promise(resolve => {
|
|
5572
|
+
execFile('monoagent', args, { timeout: 8000 }, (err, stdout) => resolve(err ? '[]' : stdout));
|
|
5573
|
+
});
|
|
5574
|
+
const [wfOut, actOut] = await Promise.all([
|
|
5575
|
+
run(['workflow', 'list', '--json']),
|
|
5576
|
+
run(['action', 'list', '--json']),
|
|
5577
|
+
]);
|
|
5578
|
+
const workflows = JSON.parse(wfOut.trim() || '[]');
|
|
5579
|
+
const actions = JSON.parse(actOut.trim() || '[]');
|
|
5580
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
5581
|
+
res.end(JSON.stringify({ workflows, actions }));
|
|
5582
|
+
} catch (e) {
|
|
5583
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
5584
|
+
res.end(JSON.stringify({ workflows: [], actions: [], error: e.message }));
|
|
5585
|
+
}
|
|
5586
|
+
return;
|
|
5587
|
+
}
|
|
5588
|
+
|
|
5563
5589
|
// ------------------------------------------------- POST /api/playbooks
|
|
5564
5590
|
// Save a playbook definition to .monomind/playbooks/<id>.json
|
|
5565
5591
|
if (req.method === 'POST' && url === '/api/playbooks') {
|
|
@@ -5706,6 +5732,7 @@ export async function startServer({ port = 4242, projectDir, openBrowser = true
|
|
|
5706
5732
|
runStreamClients.get(_stOrgName).add(res);
|
|
5707
5733
|
// Replay events since `since` (SQLite row id cursor; falls back to JSONL line offset)
|
|
5708
5734
|
try {
|
|
5735
|
+
let _stReplayedViaSqlite = false;
|
|
5709
5736
|
if (_runDb) {
|
|
5710
5737
|
// SQLite path: cursor is last row id seen (client sends 0 on first connect)
|
|
5711
5738
|
const _stStmt = _runDb.prepare(
|
|
@@ -5718,9 +5745,15 @@ export async function startServer({ port = 4242, projectDir, openBrowser = true
|
|
|
5718
5745
|
try { res.write(`data: ${_stRow.raw}\n\n`); _stLastId = _stRow.id; } catch (_) { break; }
|
|
5719
5746
|
}
|
|
5720
5747
|
_stStmt.free();
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5748
|
+
if (_stLastId > _stSince) {
|
|
5749
|
+
// SQLite had rows — send cursor and skip JSONL fallback
|
|
5750
|
+
res.write(`data: ${JSON.stringify({ type: 'stream:replay-done', count: _stLastId })}\n\n`);
|
|
5751
|
+
_stReplayedViaSqlite = true;
|
|
5752
|
+
}
|
|
5753
|
+
}
|
|
5754
|
+
if (!_stReplayedViaSqlite) {
|
|
5755
|
+
// JSONL fallback: SQLite absent or returned 0 rows — read directly from run file.
|
|
5756
|
+
// `since` is a 0-based line offset in this path.
|
|
5724
5757
|
const _stRoot = projectDir || process.cwd();
|
|
5725
5758
|
const _stRunId = activeOrgRuns.get(_stOrgName) || _getActiveRunId(_stOrgName, _stRoot);
|
|
5726
5759
|
if (_stRunId) {
|
|
@@ -5732,7 +5765,11 @@ export async function startServer({ port = 4242, projectDir, openBrowser = true
|
|
|
5732
5765
|
try { res.write(`data: ${_stLines[_i]}\n\n`); } catch (_) { break; }
|
|
5733
5766
|
}
|
|
5734
5767
|
res.write(`data: ${JSON.stringify({ type: 'stream:replay-done', count: _stLines.length })}\n\n`);
|
|
5768
|
+
} else {
|
|
5769
|
+
res.write(`data: ${JSON.stringify({ type: 'stream:replay-done', count: 0 })}\n\n`);
|
|
5735
5770
|
}
|
|
5771
|
+
} else {
|
|
5772
|
+
res.write(`data: ${JSON.stringify({ type: 'stream:replay-done', count: 0 })}\n\n`);
|
|
5736
5773
|
}
|
|
5737
5774
|
}
|
|
5738
5775
|
} catch (_) {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoes/monomindcli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Monomind CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"ws": "^8.21.0",
|
|
89
89
|
"@noble/ed25519": "^2.1.0",
|
|
90
|
-
"@monoes/monograph": "^1.2.
|
|
90
|
+
"@monoes/monograph": "^1.2.4",
|
|
91
91
|
"@monoes/monobrowse": "^1.0.1",
|
|
92
92
|
"@monomind/security": "workspace:*"
|
|
93
93
|
},
|
|
@@ -235,7 +235,6 @@ The package ships 31 modules organized in 9 layers, from compilation through enf
|
|
|
235
235
|
| | `CapabilityAlgebra` | Grant, restrict, delegate, expire, revoke permissions as typed objects |
|
|
236
236
|
| | `ManifestValidator` | Fails-closed admission for agent cell manifests |
|
|
237
237
|
| | `ConformanceRunner` | Memory Clerk acceptance test with replay verification |
|
|
238
|
-
| **Bridge** | `RuvBotGuidanceBridge` | Wires ruvbot events to guidance hooks, AIDefence gate, memory adapter |
|
|
239
238
|
| **WASM Kernel** | `guidance-kernel` | Rust→WASM policy kernel: SHA-256, HMAC, secret scanning, shard scoring |
|
|
240
239
|
| | `WasmKernel` bridge | Auto-fallback host bridge with batch API for minimal boundary crossings |
|
|
241
240
|
| **Generate** | `generateClaudeMd` | Scaffold CLAUDE.md from a project profile |
|
|
@@ -78,10 +78,6 @@
|
|
|
78
78
|
"types": "./dist/conformance-kit.d.ts",
|
|
79
79
|
"import": "./dist/conformance-kit.js"
|
|
80
80
|
},
|
|
81
|
-
"./ruvbot-integration": {
|
|
82
|
-
"types": "./dist/ruvbot-integration.d.ts",
|
|
83
|
-
"import": "./dist/ruvbot-integration.js"
|
|
84
|
-
},
|
|
85
81
|
"./trust": {
|
|
86
82
|
"types": "./dist/trust.d.ts",
|
|
87
83
|
"import": "./dist/trust.js"
|
|
@@ -142,14 +138,8 @@
|
|
|
142
138
|
"dependencies": {
|
|
143
139
|
"@monomind/hooks": "workspace:*"
|
|
144
140
|
},
|
|
145
|
-
"peerDependencies": {
|
|
146
|
-
|
|
147
|
-
},
|
|
148
|
-
"peerDependenciesMeta": {
|
|
149
|
-
"ruvbot": {
|
|
150
|
-
"optional": true
|
|
151
|
-
}
|
|
152
|
-
},
|
|
141
|
+
"peerDependencies": {},
|
|
142
|
+
"peerDependenciesMeta": {},
|
|
153
143
|
"devDependencies": {
|
|
154
144
|
"@types/node": "^20.10.0",
|
|
155
145
|
"typescript": "^5.3.0",
|
|
@@ -180,8 +170,6 @@
|
|
|
180
170
|
"adversarial-defense",
|
|
181
171
|
"prompt-injection",
|
|
182
172
|
"wasm",
|
|
183
|
-
"ruvbot",
|
|
184
|
-
"ruv",
|
|
185
173
|
"ai-safety",
|
|
186
174
|
"agent-orchestration",
|
|
187
175
|
"multi-agent",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
# ═══════════════════════════════════════════════════════════════
|
|
3
|
-
# Monomind
|
|
4
|
-
# ADR-058: Self-Contained Monomind
|
|
3
|
+
# Monomind Appliance — Full Capability Verification Suite
|
|
4
|
+
# ADR-058: Self-Contained Monomind Appliance
|
|
5
5
|
#
|
|
6
6
|
# Tests ALL 35 categories (95+ checks) to verify every capability
|
|
7
7
|
# of the Monomind + Monomind system works correctly.
|
|
@@ -185,7 +185,7 @@ fi
|
|
|
185
185
|
|
|
186
186
|
# ── 4. Memory Operations ─────────────────────────────────────
|
|
187
187
|
if should_run "memory"; then
|
|
188
|
-
section 4 "Memory Operations (LanceDB
|
|
188
|
+
section 4 "Memory Operations (LanceDB )"
|
|
189
189
|
check "memory init" $MONOMIND_CMD memory init --force
|
|
190
190
|
check "memory store key-1" $MONOMIND_CMD memory store --key "verify-1" --value "Capability verification entry one" --namespace verify
|
|
191
191
|
check "memory store key-2" $MONOMIND_CMD memory store --key "verify-2" --value "Vector search verification entry" --namespace verify
|
|
@@ -403,24 +403,20 @@ if should_run "integration"; then
|
|
|
403
403
|
check "integration: cleanup" $MONOMIND_CMD memory delete --key "int-verify" --namespace integration
|
|
404
404
|
fi
|
|
405
405
|
|
|
406
|
-
# ── 26.
|
|
407
|
-
if should_run "
|
|
408
|
-
section 26 "
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
check "
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
check_contains "rvf: list shows entries" "3" $MONOMIND_CMD memory list --namespace rvf-verify
|
|
418
|
-
check "rvf: delete works" $MONOMIND_CMD memory delete --key "rvf-test" --namespace rvf-verify
|
|
419
|
-
check_contains "rvf: list after delete" "2" $MONOMIND_CMD memory list --namespace rvf-verify
|
|
406
|
+
# ── 26. Memory Backend Verification ───────────────────────────
|
|
407
|
+
if should_run "memory-backend"; then
|
|
408
|
+
section 26 "Memory Backend Verification"
|
|
409
|
+
|
|
410
|
+
check "memory-backend: init creates backend" $MONOMIND_CMD memory init --force
|
|
411
|
+
check "memory-backend: store creates data file" $MONOMIND_CMD memory store --key "mem-test" --value "Memory backend verification" --namespace mem-verify
|
|
412
|
+
check_contains "memory-backend: retrieve confirms persistence" "Memory backend" $MONOMIND_CMD memory retrieve --key "mem-test" --namespace mem-verify
|
|
413
|
+
check "memory-backend: multiple entries" sh -c "$MONOMIND_CMD memory store --key 'mem-2' --value 'Second entry' --namespace mem-verify && $MONOMIND_CMD memory store --key 'mem-3' --value 'Third entry' --namespace mem-verify"
|
|
414
|
+
check_contains "memory-backend: list shows entries" "3" $MONOMIND_CMD memory list --namespace mem-verify
|
|
415
|
+
check "memory-backend: delete works" $MONOMIND_CMD memory delete --key "mem-test" --namespace mem-verify
|
|
416
|
+
check_contains "memory-backend: list after delete" "2" $MONOMIND_CMD memory list --namespace mem-verify
|
|
420
417
|
# Cleanup
|
|
421
|
-
$MONOMIND_CMD memory delete --key "
|
|
422
|
-
$MONOMIND_CMD memory delete --key "
|
|
423
|
-
rm -rf "$RVF_DIR"
|
|
418
|
+
$MONOMIND_CMD memory delete --key "mem-2" --namespace mem-verify >/dev/null 2>&1 || true
|
|
419
|
+
$MONOMIND_CMD memory delete --key "mem-3" --namespace mem-verify >/dev/null 2>&1 || true
|
|
424
420
|
fi
|
|
425
421
|
|
|
426
422
|
# Section 27 (local model inference) was removed — native LLM module not in lean build
|