mneme-ai 2.82.0 → 2.83.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.
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
json?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function gephyraCommand(o: GephyraOpts): Promise<number>;
|
|
20
|
+
//# 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;AAOH,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,OAAO,CAAC;CAClF;AAED,wBAAsB,cAAc,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAsCpE"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 * as core from "@mneme-ai/core";
|
|
12
|
+
function out(s) { try {
|
|
13
|
+
writeSync(1, s);
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
process.stdout.write(s);
|
|
17
|
+
} }
|
|
18
|
+
export async function gephyraCommand(o) {
|
|
19
|
+
const g = core.gephyra;
|
|
20
|
+
if (o.action === "cross") {
|
|
21
|
+
if (!o.claim || !o.from) {
|
|
22
|
+
out("✗ cross requires --claim and --from\n");
|
|
23
|
+
return 2;
|
|
24
|
+
}
|
|
25
|
+
const r = await g.crossBridge(o.cwd, { claim: o.claim, fromAgent: o.from, toAgent: o.to, action: o.frameAction }, {
|
|
26
|
+
verify: g.apoptosisTruthCustoms(o.cwd),
|
|
27
|
+
});
|
|
28
|
+
if (o.json) {
|
|
29
|
+
out(JSON.stringify(r, null, 2) + "\n");
|
|
30
|
+
return r.disposition === "QUARANTINED" ? 1 : 0;
|
|
31
|
+
}
|
|
32
|
+
const icon = r.disposition === "PASS" ? "🟢" : r.disposition === "CORRECTED" ? "🟠" : r.disposition === "QUARANTINED" ? "🔴" : "⚪";
|
|
33
|
+
out(`🌉 GEPHYRA crossing — ${icon} ${r.disposition} (${r.verdict})\n`);
|
|
34
|
+
out(` from: ${r.fromAgent}${r.toAgent ? ` → ${r.toAgent}` : ""} · honesty: ${r.honestyBand} · scrutiny: ${r.scrutiny}\n`);
|
|
35
|
+
if (r.deliveredClaim !== r.claim)
|
|
36
|
+
out(` delivered (corrected): ${r.deliveredClaim || "(blocked)"}\n`);
|
|
37
|
+
if (r.evidence)
|
|
38
|
+
out(` evidence: ${r.evidence}\n`);
|
|
39
|
+
for (const t of r.threats)
|
|
40
|
+
out(` 🛑 threat: ${t.kind} — "${t.match}"\n`);
|
|
41
|
+
for (const n of r.nudges)
|
|
42
|
+
out(` 💡 nudge → ${r.fromAgent}: ${n}\n`);
|
|
43
|
+
if (r.degraded.length)
|
|
44
|
+
out(` ⚠ degraded: ${r.degraded.join(", ")}\n`);
|
|
45
|
+
out(` stamp: ${r.receipt ? r.receipt.receiptId.slice(0, 16) + "… (verifies offline)" : "(unsigned — recorder failed)"}\n`);
|
|
46
|
+
return r.disposition === "QUARANTINED" ? 1 : 0;
|
|
47
|
+
}
|
|
48
|
+
if (o.action === "status") {
|
|
49
|
+
const s = g.bridgeStatus(o.cwd);
|
|
50
|
+
if (o.json) {
|
|
51
|
+
out(JSON.stringify(s, null, 2) + "\n");
|
|
52
|
+
return 0;
|
|
53
|
+
}
|
|
54
|
+
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`);
|
|
55
|
+
return 0;
|
|
56
|
+
}
|
|
57
|
+
if (o.action === "log") {
|
|
58
|
+
const rep = g.bridgeReplay(o.cwd);
|
|
59
|
+
if (o.json) {
|
|
60
|
+
out(JSON.stringify(rep, null, 2) + "\n");
|
|
61
|
+
return 0;
|
|
62
|
+
}
|
|
63
|
+
out(`🎞 GEPHYRA crossing log — ${rep.frames} frame(s), chain ${rep.chainValid ? "VALID ✓" : "BROKEN ✗"}\n`);
|
|
64
|
+
for (const n of rep.narrative)
|
|
65
|
+
out(` ${n}\n`);
|
|
66
|
+
return 0;
|
|
67
|
+
}
|
|
68
|
+
out(`✗ Unknown gephyra action "${o.action}". Try: cross | status | log\n`);
|
|
69
|
+
return 2;
|
|
70
|
+
}
|
|
71
|
+
//# 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,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,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,WAAW,EAAE,EAAE;YAChH,MAAM,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,GAAG,CAAC;SACvC,CAAC,CAAC;QACH,IAAI,CAAC,CAAC,IAAI,EAAE,CA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C,IAAI,EAAE,CAAC;YAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;YAAC,OAAO,CAAC,CAAC;QAAC,CAAC;QACnE,GAAG,CAAC,6BAA6B,GAAG,CAAC,MAAM,oBAAoB,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC;QAC5G,KAAK,MAAM,CAAC,IAAI,GAAG,CAAC,SAAS;YAAE,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,CAAC,CAAC;IACX,CAAC;IAED,GAAG,CAAC,6BAA6B,CAAC,CAAC,MAAM,gCAAgC,CAAC,CAAC;IAC3E,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,CA68MvD"}
|
package/dist/index.js
CHANGED
|
@@ -4310,6 +4310,21 @@ 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). `status` shows crossings + hallucinations caught; `log` replays the 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("--json", "machine-readable output", false)
|
|
4324
|
+
.action(async (action, o) => {
|
|
4325
|
+
const { gephyraCommand } = await import("./commands/gephyra.js");
|
|
4326
|
+
process.exit(await gephyraCommand({ cwd: process.cwd(), action, claim: o.claim, from: o.from, to: o.to, frameAction: o.action, json: !!o.json }));
|
|
4327
|
+
});
|
|
4313
4328
|
program
|
|
4314
4329
|
.command("atlas")
|
|
4315
4330
|
.description("🗺 ATLAS HELP — six-layer discovery (TASTE · BLOOM · HOT · TAGS · INTENT · FULL). AI agents read 200 bytes here instead of 14 KB from --help.")
|