mneme-ai 2.82.0 → 2.84.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/dist/commands/gephyra.d.ts +21 -0
- package/dist/commands/gephyra.d.ts.map +1 -0
- package/dist/commands/gephyra.js +109 -0
- package/dist/commands/gephyra.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v2.83.0 — `mneme gephyra <action>` · the Toll Booth of Truth.
|
|
3
|
+
*
|
|
4
|
+
* mneme gephyra cross --claim "..." --from AGENT [--to AGENT] [--action A]
|
|
5
|
+
* route a claim through the bridge: truth-customs (real ACGV) + immune +
|
|
6
|
+
* honesty toll + conscience + signed crossing stamp.
|
|
7
|
+
* mneme gephyra status — live: crossings, hallucinations caught, chain intact
|
|
8
|
+
* mneme gephyra log — replay the crossing black box
|
|
9
|
+
*/
|
|
10
|
+
export interface GephyraOpts {
|
|
11
|
+
cwd: string;
|
|
12
|
+
action: string;
|
|
13
|
+
claim?: string;
|
|
14
|
+
from?: string;
|
|
15
|
+
to?: string;
|
|
16
|
+
frameAction?: string;
|
|
17
|
+
port?: number;
|
|
18
|
+
json?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function gephyraCommand(o: GephyraOpts): Promise<number>;
|
|
21
|
+
//# sourceMappingURL=gephyra.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gephyra.d.ts","sourceRoot":"","sources":["../../src/commands/gephyra.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACjG;AAED,wBAAsB,cAAc,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAsEpE"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v2.83.0 — `mneme gephyra <action>` · the Toll Booth of Truth.
|
|
3
|
+
*
|
|
4
|
+
* mneme gephyra cross --claim "..." --from AGENT [--to AGENT] [--action A]
|
|
5
|
+
* route a claim through the bridge: truth-customs (real ACGV) + immune +
|
|
6
|
+
* honesty toll + conscience + signed crossing stamp.
|
|
7
|
+
* mneme gephyra status — live: crossings, hallucinations caught, chain intact
|
|
8
|
+
* mneme gephyra log — replay the crossing black box
|
|
9
|
+
*/
|
|
10
|
+
import { writeSync } from "node:fs";
|
|
11
|
+
import { createServer } from "node:http";
|
|
12
|
+
import * as core from "@mneme-ai/core";
|
|
13
|
+
function out(s) { try {
|
|
14
|
+
writeSync(1, s);
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
process.stdout.write(s);
|
|
18
|
+
} }
|
|
19
|
+
export async function gephyraCommand(o) {
|
|
20
|
+
const g = core.gephyra;
|
|
21
|
+
if (o.action === "cross") {
|
|
22
|
+
if (!o.claim || !o.from) {
|
|
23
|
+
out("✗ cross requires --claim and --from\n");
|
|
24
|
+
return 2;
|
|
25
|
+
}
|
|
26
|
+
const r = await g.crossBridge(o.cwd, { claim: o.claim, fromAgent: o.from, toAgent: o.to, action: o.frameAction }, {
|
|
27
|
+
verify: g.apoptosisTruthCustoms(o.cwd),
|
|
28
|
+
});
|
|
29
|
+
if (o.json) {
|
|
30
|
+
out(JSON.stringify(r, null, 2) + "\n");
|
|
31
|
+
return r.disposition === "QUARANTINED" ? 1 : 0;
|
|
32
|
+
}
|
|
33
|
+
const icon = r.disposition === "PASS" ? "🟢" : r.disposition === "CORRECTED" ? "🟠" : r.disposition === "QUARANTINED" ? "🔴" : "⚪";
|
|
34
|
+
out(`🌉 GEPHYRA crossing — ${icon} ${r.disposition} (${r.verdict})\n`);
|
|
35
|
+
out(` from: ${r.fromAgent}${r.toAgent ? ` → ${r.toAgent}` : ""} · honesty: ${r.honestyBand} · scrutiny: ${r.scrutiny}\n`);
|
|
36
|
+
if (r.deliveredClaim !== r.claim)
|
|
37
|
+
out(` delivered (corrected): ${r.deliveredClaim || "(blocked)"}\n`);
|
|
38
|
+
if (r.evidence)
|
|
39
|
+
out(` evidence: ${r.evidence}\n`);
|
|
40
|
+
for (const t of r.threats)
|
|
41
|
+
out(` 🛑 threat: ${t.kind} — "${t.match}"\n`);
|
|
42
|
+
for (const n of r.nudges)
|
|
43
|
+
out(` 💡 nudge → ${r.fromAgent}: ${n}\n`);
|
|
44
|
+
if (r.degraded.length)
|
|
45
|
+
out(` ⚠ degraded: ${r.degraded.join(", ")}\n`);
|
|
46
|
+
out(` stamp: ${r.receipt ? r.receipt.receiptId.slice(0, 16) + "… (verifies offline)" : "(unsigned — recorder failed)"}\n`);
|
|
47
|
+
return r.disposition === "QUARANTINED" ? 1 : 0;
|
|
48
|
+
}
|
|
49
|
+
if (o.action === "status") {
|
|
50
|
+
const s = g.bridgeStatus(o.cwd);
|
|
51
|
+
if (o.json) {
|
|
52
|
+
out(JSON.stringify(s, null, 2) + "\n");
|
|
53
|
+
return 0;
|
|
54
|
+
}
|
|
55
|
+
out(`🌉 GEPHYRA status\n crossings: ${s.crossings} (🟢 ${s.passed} pass · 🟠 ${s.corrected} corrected · 🔴 ${s.quarantined} quarantined · ⚪ ${s.unverified} unverified)\n hallucinations / threats caught: ${s.hallucinationsCaught}\n black box: ${s.chainValid ? "INTACT ✓" : "TAMPERED ✗"}\n`);
|
|
56
|
+
return 0;
|
|
57
|
+
}
|
|
58
|
+
if (o.action === "log") {
|
|
59
|
+
const rep = g.bridgeReplay(o.cwd);
|
|
60
|
+
if (o.json) {
|
|
61
|
+
out(JSON.stringify(rep, null, 2) + "\n");
|
|
62
|
+
return 0;
|
|
63
|
+
}
|
|
64
|
+
out(`🎞 GEPHYRA crossing log — ${rep.frames} frame(s), chain ${rep.chainValid ? "VALID ✓" : "BROKEN ✗"}\n`);
|
|
65
|
+
for (const n of rep.narrative)
|
|
66
|
+
out(` ${n}\n`);
|
|
67
|
+
return 0;
|
|
68
|
+
}
|
|
69
|
+
if (o.action === "advertise") {
|
|
70
|
+
const adv = g.gephyraAdvertisement(o.cwd, core.agentManifest.MNEME_COMMAND_CATALOG);
|
|
71
|
+
if (o.json) {
|
|
72
|
+
out(JSON.stringify(adv, null, 2) + "\n");
|
|
73
|
+
return 0;
|
|
74
|
+
}
|
|
75
|
+
out(adv.text + "\n");
|
|
76
|
+
return 0;
|
|
77
|
+
}
|
|
78
|
+
if (o.action === "serve") {
|
|
79
|
+
const port = o.port ?? 17742; // 17741 is the existing polygraph bridge
|
|
80
|
+
const server = createServer((req, res) => {
|
|
81
|
+
if (req.method !== "POST" || !req.url || !req.url.startsWith("/cross")) {
|
|
82
|
+
res.writeHead(404, { "content-type": "application/json" });
|
|
83
|
+
res.end(JSON.stringify({ error: "POST /cross" }));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
let body = "";
|
|
87
|
+
req.on("data", (c) => { body += c; if (body.length > 1_000_000)
|
|
88
|
+
req.destroy(); });
|
|
89
|
+
req.on("end", () => {
|
|
90
|
+
void g.handleCrossRequest(o.cwd, body).then((r) => {
|
|
91
|
+
res.writeHead(r.status, { "content-type": "application/json" });
|
|
92
|
+
res.end(JSON.stringify(r.body));
|
|
93
|
+
}).catch((e) => {
|
|
94
|
+
res.writeHead(500, { "content-type": "application/json" });
|
|
95
|
+
res.end(JSON.stringify({ error: e.message }));
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
server.on("error", (e) => { out(`✗ GEPHYRA serve failed: ${e.message}\n`); process.exit(1); });
|
|
100
|
+
server.listen(port, () => {
|
|
101
|
+
out(`🌉 GEPHYRA serving on :${port} | POST /cross {claim, fromAgent} → truth-customs + signed crossing\n (Ctrl-C to stop. Truth engine: 7-layer ACGV. Every crossing is recorded + stamped.)\n`);
|
|
102
|
+
});
|
|
103
|
+
await new Promise(() => { });
|
|
104
|
+
return 0;
|
|
105
|
+
}
|
|
106
|
+
out(`✗ Unknown gephyra action "${o.action}". Try: cross | status | log | advertise | serve\n`);
|
|
107
|
+
return 2;
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=gephyra.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gephyra.js","sourceRoot":"","sources":["../../src/commands/gephyra.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAEvC,SAAS,GAAG,CAAC,CAAS,IAAU,IAAI,CAAC;IAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAAC,CAAC;AAAC,MAAM,CAAC;IAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAAC,CAAC,CAAC,CAAC;AAO7F,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,CAAc;IACjD,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;IAEvB,IAAI,CAAC,CAAC,MAAM,KAAK,OAAO,EAAE,CAAC;QACzB,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;YAAC,OAAO,CAAC,CAAC;QAAC,CAAC;QACpF,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GA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,CAAC,CAAC;oBAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;gBAC5G,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,GAAG,CAAC,2BAA4B,CAAW,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1G,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;YACvB,GAAG,CAAC,0BAA0B,IAAI,+JAA+J,CAAC,CAAC;QACrM,CAAC,CAAC,CAAC;QACH,MAAM,IAAI,OAAO,CAAO,GAAG,EAAE,GAA0B,CAAC,CAAC,CAAC;QAC1D,OAAO,CAAC,CAAC;IACX,CAAC;IAED,GAAG,CAAC,6BAA6B,CAAC,CAAC,MAAM,oDAAoD,CAAC,CAAC;IAC/F,OAAO,CAAC,CAAC;AACX,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAuIA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAuIA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA88MvD"}
|
package/dist/index.js
CHANGED
|
@@ -4310,6 +4310,22 @@ export async function run(argv) {
|
|
|
4310
4310
|
});
|
|
4311
4311
|
}
|
|
4312
4312
|
}
|
|
4313
|
+
// v2.83.0 — GEPHYRA (γέφυρα, "bridge"): the Toll Booth of Truth. Routes a claim
|
|
4314
|
+
// through truth-customs (real ACGV) + immune + honesty toll + conscience + a
|
|
4315
|
+
// signed crossing stamp — composing the existing organs into one bridge.
|
|
4316
|
+
program
|
|
4317
|
+
.command("gephyra <action>")
|
|
4318
|
+
.description("🌉 GEPHYRA — the living bridge / Toll Booth of Truth. `cross --claim \"...\" --from AGENT` routes a claim through real-time truth-customs (ACGV) + injection quarantine + honesty toll + conscience nudge + a tamper-evident crossing stamp (NOTARY). `serve [--port]` runs it as an HTTP endpoint (POST /cross). `advertise` points agents at the bridge + lists new capabilities. `status`/`log` = crossings + black box. Mneme's surface — the face the agent world plugs into.")
|
|
4319
|
+
.option("--claim <c>", "the claim/message crossing the bridge (cross)")
|
|
4320
|
+
.option("--from <a>", "originating agent (cross)")
|
|
4321
|
+
.option("--to <a>", "destination agent (cross)")
|
|
4322
|
+
.option("--action <a>", "what the crossing does (cross)")
|
|
4323
|
+
.option("--port <n>", "port for `serve` (default 17742)", (v) => Number(v))
|
|
4324
|
+
.option("--json", "machine-readable output", false)
|
|
4325
|
+
.action(async (action, o) => {
|
|
4326
|
+
const { gephyraCommand } = await import("./commands/gephyra.js");
|
|
4327
|
+
process.exit(await gephyraCommand({ cwd: process.cwd(), action, claim: o.claim, from: o.from, to: o.to, frameAction: o.action, port: o.port, json: !!o.json }));
|
|
4328
|
+
});
|
|
4313
4329
|
program
|
|
4314
4330
|
.command("atlas")
|
|
4315
4331
|
.description("🗺 ATLAS HELP — six-layer discovery (TASTE · BLOOM · HOT · TAGS · INTENT · FULL). AI agents read 200 bytes here instead of 14 KB from --help.")
|