mneme-ai 2.81.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,KAA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AAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;YAAC,OAAO,CAAC,CAAC;QAAC,CAAC;QACjE,GAAG,CAAC,mCAAmC,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,MAAM,cAAc,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,WAAW,oBAAoB,CAAC,CAAC,UAAU,oDAAoD,CAAC,CAAC,oBAAoB,kBAAkB,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC;QACtS,OAAO,CAAC,CAAC;IACX,CAAC;IAED,IAAI,CAAC,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;QACvB,MAAM,GAAG,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,CAAC,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"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * v2.82.0 — TRUST FABRIC CLI dispatcher for the 7-diamond batch
3
+ * (💎6 stake · 💎7 mesh · 💎1 route · 💎2 brain · 💎8 factwatch · 💎9 edge · 💎10 compound).
4
+ * Complex structured inputs (hops / capsules / receipts / claims) are passed as JSON.
5
+ */
6
+ export interface TrustFabricOpts {
7
+ cwd: string;
8
+ family: string;
9
+ action: string;
10
+ staker?: string;
11
+ claim?: string;
12
+ amountMicros?: number;
13
+ deadlineMs?: number;
14
+ text?: string;
15
+ requestId?: string;
16
+ owner?: string;
17
+ vendor?: string;
18
+ fact?: string;
19
+ newValue?: string;
20
+ knownValue?: string;
21
+ observedBy?: string;
22
+ peer?: string;
23
+ lanUrl?: string;
24
+ threshold?: number;
25
+ refuted?: boolean;
26
+ at?: number;
27
+ jsonInput?: string;
28
+ file?: string;
29
+ json?: boolean;
30
+ }
31
+ export declare function trustFabricCommand(o: TrustFabricOpts): Promise<number>;
32
+ //# sourceMappingURL=trustfabric.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trustfabric.d.ts","sourceRoot":"","sources":["../../src/commands/trustfabric.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAcH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACnD;AAED,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC5E"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * v2.82.0 — TRUST FABRIC CLI dispatcher for the 7-diamond batch
3
+ * (💎6 stake · 💎7 mesh · 💎1 route · 💎2 brain · 💎8 factwatch · 💎9 edge · 💎10 compound).
4
+ * Complex structured inputs (hops / capsules / receipts / claims) are passed as JSON.
5
+ */
6
+ import { writeSync, readFileSync } from "node:fs";
7
+ import * as core from "@mneme-ai/core";
8
+ import { parseJsonArg } from "../util/json_arg.js";
9
+ function out(s) { try {
10
+ writeSync(1, s);
11
+ }
12
+ catch {
13
+ process.stdout.write(s);
14
+ } }
15
+ function emit(o) { out(JSON.stringify(o, null, 2) + "\n"); return 0; }
16
+ function readJson(raw, file) {
17
+ if (file)
18
+ return JSON.parse(readFileSync(file === "-" ? 0 : file, "utf8"));
19
+ if (raw)
20
+ return parseJsonArg(raw);
21
+ throw new Error("missing JSON input");
22
+ }
23
+ export async function trustFabricCommand(o) {
24
+ const J = () => readJson(o.jsonInput, o.file);
25
+ try {
26
+ switch (o.family) {
27
+ case "stake": {
28
+ if (o.action === "create")
29
+ return emit(core.truthStake.createStake(o.cwd, { staker: o.staker ?? "agent", claim: o.claim ?? "", amountMicros: o.amountMicros ?? 0, deadlineMs: o.deadlineMs ?? 0 }));
30
+ if (o.action === "resolve")
31
+ return emit(core.truthStake.resolveStake(o.cwd, J(), { refuted: !!o.refuted, at: o.at }));
32
+ break;
33
+ }
34
+ case "mesh": {
35
+ if (o.action === "scan") {
36
+ const s = core.meshImmune.scanMessage(o.text ?? "");
37
+ return emit({ disposition: core.meshImmune.quarantineDecision(s), ...s });
38
+ }
39
+ if (o.action === "trace")
40
+ return emit(core.meshImmune.traceContagion(J()));
41
+ break;
42
+ }
43
+ case "bgp": {
44
+ if (o.action === "notarize") {
45
+ const r = core.bgpRouter.routeRequest(o.cwd, { requestId: o.requestId ?? "req", hops: J() });
46
+ return emit({ routeId: r.routeId, path: core.bgpRouter.renderRoute(r.receipts), receipts: r.receipts });
47
+ }
48
+ if (o.action === "verify")
49
+ return emit(core.bgpRouter.verifyRoute(J()));
50
+ break;
51
+ }
52
+ case "brain": {
53
+ if (o.action === "pack") {
54
+ const cap = core.byob.makeCapsule({ owner: o.owner ?? "user", vendor: o.vendor, items: J() });
55
+ return emit({ capsule: cap, receipt: core.byob.packCapsule(o.cwd, cap) });
56
+ }
57
+ if (o.action === "merge") {
58
+ const both = J();
59
+ return emit(core.byob.mergeCapsules(both.a, both.b));
60
+ }
61
+ break;
62
+ }
63
+ case "factwatch": {
64
+ if (o.action === "observe")
65
+ return emit(core.truthCdn.observe(o.cwd, { fact: o.fact ?? "", newValue: o.newValue ?? "", observedBy: o.observedBy ?? "agent" }, o.knownValue ?? ""));
66
+ if (o.action === "apply") {
67
+ const x = J();
68
+ return emit(core.truthCdn.applyInvalidation(x.sub, x.receipt));
69
+ }
70
+ break;
71
+ }
72
+ case "edge": {
73
+ if (o.action === "card")
74
+ return emit(core.edgeMesh.buildPeerCard(o.cwd, { peer: o.peer ?? "node", lanUrl: o.lanUrl ?? "" }));
75
+ if (o.action === "merge")
76
+ return emit(core.edgeMesh.mergeMesh(J()));
77
+ break;
78
+ }
79
+ case "compound": {
80
+ if (o.action === "consolidate")
81
+ return emit(core.idleCompound.consolidate(J(), o.threshold));
82
+ break;
83
+ }
84
+ }
85
+ }
86
+ catch (e) {
87
+ out(`✗ ${e.message}\n`);
88
+ return 2;
89
+ }
90
+ out(`✗ unknown ${o.family} action "${o.action}"\n`);
91
+ return 2;
92
+ }
93
+ //# sourceMappingURL=tr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YAAY,CAAC,WAAW,CAAC,CAAC,EAAyD,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;gBACpJ,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QAAC,GAAG,CAAC,KAAM,CAAW,CAAC,OAAO,IAAI,CAAC,CAAC;QAAC,OAAO,CAAC,CAAC;IAAC,CAAC;IAC7D,GAAG,CAAC,aAAa,CAAC,CAAC,MAAM,YAAY,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IAAC,OAAO,CAAC,CAAC;AAChE,CAAC"}
@@ -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,CAs5MvD"}
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
@@ -4272,6 +4272,59 @@ export async function run(argv) {
4272
4272
  json: !!o.json,
4273
4273
  }));
4274
4274
  });
4275
+ // v2.82.0 — TRUST FABRIC batch (💎6 💎7 💎1 💎2 💎8 💎9 💎10). 7 families, all on
4276
+ // the NOTARY spine. Complex inputs (hops/capsules/receipts/claims) via --in JSON or --file.
4277
+ {
4278
+ const tf = [
4279
+ { name: "stake", desc: "💰 TRUTH-STAKING (💎6) — money backs the words. actions: create | resolve." },
4280
+ { name: "mesh", desc: "🛡 MESH IMMUNE (💎7) — cross-agent injection/collusion firewall. actions: scan | trace." },
4281
+ { name: "bgp", desc: "🌉 BGP ROUTER (💎1) — notarize every cross-protocol hop (MCP↔A2A↔x402↔ERC-8004). actions: notarize | verify." },
4282
+ { name: "brain", desc: "🧠 BYOB (💎2) — portable signed memory capsule. actions: pack | merge." },
4283
+ { name: "factwatch", desc: "📡 LIVE TRUTH CDN (💎8) — signed federated fact invalidation. actions: observe | apply." },
4284
+ { name: "edge", desc: "📡 SOVEREIGN EDGE MESH (💎9) — cloud-free signed peer mesh. actions: card | merge." },
4285
+ { name: "compound", desc: "🌙 IDLE-COMPOUND (💎10) — consolidate verified claims into axioms. actions: consolidate." },
4286
+ ];
4287
+ for (const { name, desc } of tf) {
4288
+ program
4289
+ .command(`${name} <action>`)
4290
+ .description(desc)
4291
+ .option("--staker <s>").option("--claim <c>").option("--amount-micros <n>", "", (v) => Number(v)).option("--deadline-ms <n>", "", (v) => Number(v))
4292
+ .option("--refuted").option("--at <n>", "", (v) => Number(v))
4293
+ .option("--text <t>").option("--request-id <id>").option("--owner <o>").option("--vendor <v>")
4294
+ .option("--fact <f>").option("--new-value <v>").option("--known-value <v>").option("--observed-by <a>")
4295
+ .option("--peer <p>").option("--lan-url <u>").option("--threshold <n>", "", (v) => Number(v))
4296
+ .option("--in <json>", "structured JSON input (hops / capsules / receipts / claims)")
4297
+ .option("--file <path>", "read structured JSON input from file ('-' = stdin)")
4298
+ .option("--json", "machine-readable output", false)
4299
+ .action(async (action, opt) => {
4300
+ const { trustFabricCommand } = await import("./commands/trustfabric.js");
4301
+ process.exit(await trustFabricCommand({
4302
+ cwd: process.cwd(), family: name, action,
4303
+ staker: opt["staker"], claim: opt["claim"], amountMicros: opt["amountMicros"], deadlineMs: opt["deadlineMs"],
4304
+ refuted: !!opt["refuted"], at: opt["at"],
4305
+ text: opt["text"], requestId: opt["requestId"], owner: opt["owner"], vendor: opt["vendor"],
4306
+ fact: opt["fact"], newValue: opt["newValue"], knownValue: opt["knownValue"], observedBy: opt["observedBy"],
4307
+ peer: opt["peer"], lanUrl: opt["lanUrl"], threshold: opt["threshold"],
4308
+ jsonInput: opt["in"], file: opt["file"], json: !!opt["json"],
4309
+ }));
4310
+ });
4311
+ }
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
+ });
4275
4328
  program
4276
4329
  .command("atlas")
4277
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.")