@maximalabs/dev-mcp-suite 0.0.0-stage → 3.6.1
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/.env.example +69 -0
- package/CHANGELOG.md +281 -0
- package/CODEX_DEV_MCP_GUIDE.md +297 -0
- package/LICENSE +21 -0
- package/README.md +193 -2
- package/armada/package.json +14 -0
- package/armada/server.js +329 -0
- package/backfill-sessions-v2.mjs +288 -0
- package/bin/_meta.mjs +73 -0
- package/bin/armada-mcp.mjs +12 -0
- package/bin/checkpoint.mjs +9 -0
- package/bin/context-pack.mjs +9 -0
- package/bin/devjournal.mjs +9 -0
- package/bin/init.mjs +25 -0
- package/bin/project-memory.mjs +10 -0
- package/bin/provider-smoke.mjs +278 -0
- package/bin/prune.mjs +158 -0
- package/bin/stats.mjs +101 -0
- package/bin/ui.mjs +5 -0
- package/checkpoint/package.json +14 -0
- package/checkpoint/server.js +318 -0
- package/context-pack/package.json +14 -0
- package/context-pack/server.js +747 -0
- package/devjournal/compress.js +75 -0
- package/devjournal/env.js +3 -0
- package/devjournal/package.json +14 -0
- package/devjournal/provider-chain.js +109 -0
- package/devjournal/rerank.js +120 -0
- package/devjournal/server.js +415 -0
- package/docs/ROADMAP.md +77 -0
- package/docs/clients/antigravity.md +52 -0
- package/docs/clients/claude-code.md +46 -0
- package/docs/clients/codex.md +39 -0
- package/docs/clients/generic-mcp.md +45 -0
- package/docs/clients/hermes.md +48 -0
- package/docs/configuration.md +123 -0
- package/docs/privacy.md +39 -0
- package/docs/providers.md +13 -0
- package/docs/superpowers/plans/2026-06-15-hardening-v1-2-implementation.md +60 -0
- package/docs/superpowers/plans/2026-06-15-provider-chain-v1-1-implementation.md +65 -0
- package/docs/superpowers/plans/2026-06-15-provider-client-agnostic-config.md +41 -0
- package/docs/superpowers/plans/2026-06-15-trust-release-implementation.md +62 -0
- package/docs/superpowers/plans/2026-06-18-v1-5-0-knowledge-graph.md +792 -0
- package/docs/superpowers/specs/2026-06-15-provider-chain-v1-1-design.md +89 -0
- package/docs/superpowers/specs/2026-06-15-trust-release-design.md +164 -0
- package/docs/superpowers/specs/2026-06-18-dev-mcp-suite-v1-5-0-knowledge-graph-design.md +386 -0
- package/docs/superpowers/specs/2026-07-22-v2-0-0-peak-intelligence.md +50 -0
- package/docs/superpowers/specs/2026-07-22-v3-0-0-god-tier.md +32 -0
- package/lib/init-wizard.js +120 -0
- package/lib/provider-smoke.js +234 -0
- package/lib/prune.js +114 -0
- package/lib/stats.js +269 -0
- package/lib/ui-server.js +151 -0
- package/lib/update-check.js +125 -0
- package/package.json +71 -4
- package/project-memory/auto-indexer.js +152 -0
- package/project-memory/dedup.js +49 -0
- package/project-memory/embedding.js +174 -0
- package/project-memory/env.js +3 -0
- package/project-memory/global-index.js +46 -0
- package/project-memory/graph.js +93 -0
- package/project-memory/local-embed.js +92 -0
- package/project-memory/package.json +14 -0
- package/project-memory/provider-chain.js +109 -0
- package/project-memory/rerank.js +120 -0
- package/project-memory/server.js +931 -0
- package/project-memory/swarm.js +56 -0
- package/run-tests.mjs +54 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Multi-Agent Swarm Memory Stream for project-memory.
|
|
3
|
+
* Allows peer subagents (Antigravity, Hermes, Codex, Claude Code, Cursor)
|
|
4
|
+
* to broadcast and query events in a shared project workspace.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import fs from "fs/promises";
|
|
8
|
+
import path from "path";
|
|
9
|
+
|
|
10
|
+
const SWARM_FILE = ".swarm-events.jsonl";
|
|
11
|
+
|
|
12
|
+
function getSwarmPath(vaultDir) {
|
|
13
|
+
return path.join(vaultDir, SWARM_FILE);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Broadcast an event to the shared workspace swarm stream.
|
|
18
|
+
*/
|
|
19
|
+
export async function broadcastSwarmEvent(vaultDir, { eventType, topic, payload, agentName = "agent" }) {
|
|
20
|
+
if (!vaultDir) throw new Error("vaultDir is required");
|
|
21
|
+
const event = {
|
|
22
|
+
id: `evt_${Date.now()}_${Math.random().toString(36).substring(2, 7)}`,
|
|
23
|
+
timestamp: new Date().toISOString(),
|
|
24
|
+
agentName,
|
|
25
|
+
eventType: eventType || "finding",
|
|
26
|
+
topic: topic || "general",
|
|
27
|
+
payload: payload || {},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const file = getSwarmPath(vaultDir);
|
|
31
|
+
const line = JSON.stringify(event) + "\n";
|
|
32
|
+
await fs.appendFile(file, line, "utf8");
|
|
33
|
+
return event;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Query recent swarm events in the workspace.
|
|
38
|
+
*/
|
|
39
|
+
export async function getSwarmTimeline(vaultDir, { limit = 20, eventType = null } = {}) {
|
|
40
|
+
if (!vaultDir) return [];
|
|
41
|
+
const file = getSwarmPath(vaultDir);
|
|
42
|
+
try {
|
|
43
|
+
const raw = await fs.readFile(file, "utf8");
|
|
44
|
+
const lines = raw.split("\n").filter((l) => l.trim().length > 0);
|
|
45
|
+
let events = lines.map((l) => JSON.parse(l));
|
|
46
|
+
|
|
47
|
+
if (eventType) {
|
|
48
|
+
events = events.filter((e) => e.eventType === eventType);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
events.sort((a, b) => new Date(b.timestamp) - new Date(a.timestamp));
|
|
52
|
+
return events.slice(0, limit);
|
|
53
|
+
} catch {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
}
|
package/run-tests.mjs
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Runs every server's test.mjs and any top-level tests/*.test.mjs,
|
|
4
|
+
* then prints a combined summary. Usage: node run-tests.mjs
|
|
5
|
+
*/
|
|
6
|
+
import { spawn } from "child_process";
|
|
7
|
+
import path from "path";
|
|
8
|
+
import { fileURLToPath } from "url";
|
|
9
|
+
import fs from "fs";
|
|
10
|
+
|
|
11
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
const SERVERS = ["project-memory", "checkpoint", "context-pack", "devjournal", "armada"];
|
|
13
|
+
const EXTRA_TESTS = fs.existsSync("tests")
|
|
14
|
+
? fs.readdirSync("tests").filter((f) => f.endsWith(".test.mjs")).map((f) => `tests/${f}`)
|
|
15
|
+
: [];
|
|
16
|
+
|
|
17
|
+
/** Run a single test file by absolute path. */
|
|
18
|
+
function runFile(absPath) {
|
|
19
|
+
return new Promise((resolve) => {
|
|
20
|
+
const proc = spawn("node", [absPath], { stdio: ["ignore", "pipe", "pipe"] });
|
|
21
|
+
let out = "";
|
|
22
|
+
proc.stdout.on("data", (d) => (out += d));
|
|
23
|
+
proc.stderr.on("data", (d) => (out += d));
|
|
24
|
+
proc.on("close", (code) => resolve({ name: path.basename(path.dirname(absPath)) || absPath, code, out }));
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const results = [];
|
|
29
|
+
|
|
30
|
+
for (const s of SERVERS) {
|
|
31
|
+
console.log(`\n=== ${s} ===`);
|
|
32
|
+
const r = await runFile(path.join(__dirname, s, "test.mjs"));
|
|
33
|
+
process.stdout.write(r.out);
|
|
34
|
+
results.push({ ...r, name: s });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
for (const t of EXTRA_TESTS) {
|
|
38
|
+
console.log(`\n=== ${t} ===`);
|
|
39
|
+
const r = await runFile(path.join(__dirname, t));
|
|
40
|
+
process.stdout.write(r.out);
|
|
41
|
+
results.push({ ...r, name: t });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
console.log("\n================ SUMMARY ================");
|
|
45
|
+
let anyFail = false;
|
|
46
|
+
for (const r of results) {
|
|
47
|
+
const ok = r.code === 0;
|
|
48
|
+
if (!ok) anyFail = true;
|
|
49
|
+
const m = r.out.match(/(\d+) passed, (\d+) failed/);
|
|
50
|
+
const stat = m ? `${m[1]} passed, ${m[2]} failed` : (ok ? "ok" : "FAILED");
|
|
51
|
+
console.log(` ${ok ? "✓" : "✗"} ${r.name.padEnd(28)} ${stat}`);
|
|
52
|
+
}
|
|
53
|
+
console.log("========================================");
|
|
54
|
+
process.exit(anyFail ? 1 : 0);
|