mneme-ai 2.66.0 → 2.67.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/index.d.ts.map +1 -1
- package/dist/index.js +60 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
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,CA8rMvD"}
|
package/dist/index.js
CHANGED
|
@@ -5429,6 +5429,66 @@ export async function run(argv) {
|
|
|
5429
5429
|
process.exitCode = 1;
|
|
5430
5430
|
}
|
|
5431
5431
|
});
|
|
5432
|
+
// v2.67.0 — PROTOPLASM: live atom embedded in every function. Per-
|
|
5433
|
+
// function super_quan probe (statistical + quantum-inspired) with HMAC-
|
|
5434
|
+
// chained findings ledger. Healthy → trigger crawl_planner; broken →
|
|
5435
|
+
// wisdom_space root-cause + heal. Cytoplasm that self-monitors.
|
|
5436
|
+
const protoplasmParent = program
|
|
5437
|
+
.command("protoplasm")
|
|
5438
|
+
.description("v2.67 — PROTOPLASM live-atom probe. Default action = report.")
|
|
5439
|
+
.action(async () => {
|
|
5440
|
+
try {
|
|
5441
|
+
const core = await import("@mneme-ai/core");
|
|
5442
|
+
const r = core.protoplasm.manualProbeReport(core.protoplasm.DEFAULT_PROTOPLASM_CONFIG);
|
|
5443
|
+
process.stdout.write(JSON.stringify({ ok: true, report: r }, null, 2) + "\n");
|
|
5444
|
+
}
|
|
5445
|
+
catch (e) {
|
|
5446
|
+
process.stdout.write(JSON.stringify({ ok: false, error: e.message }) + "\n");
|
|
5447
|
+
process.exitCode = 1;
|
|
5448
|
+
}
|
|
5449
|
+
});
|
|
5450
|
+
protoplasmParent.command("report")
|
|
5451
|
+
.description("Show current ledger health + last 10 findings")
|
|
5452
|
+
.action(async () => {
|
|
5453
|
+
try {
|
|
5454
|
+
const core = await import("@mneme-ai/core");
|
|
5455
|
+
const r = core.protoplasm.manualProbeReport(core.protoplasm.DEFAULT_PROTOPLASM_CONFIG);
|
|
5456
|
+
process.stdout.write(JSON.stringify({ ok: true, report: r }, null, 2) + "\n");
|
|
5457
|
+
}
|
|
5458
|
+
catch (e) {
|
|
5459
|
+
process.stdout.write(JSON.stringify({ ok: false, error: e.message }) + "\n");
|
|
5460
|
+
process.exitCode = 1;
|
|
5461
|
+
}
|
|
5462
|
+
});
|
|
5463
|
+
protoplasmParent.command("verify_chain")
|
|
5464
|
+
.description("Verify HMAC chain integrity on findings ledger")
|
|
5465
|
+
.option("--ledger <path>", "ledger path", ".mneme/protoplasm/findings.jsonl")
|
|
5466
|
+
.action(async (opts) => {
|
|
5467
|
+
try {
|
|
5468
|
+
const core = await import("@mneme-ai/core");
|
|
5469
|
+
const r = core.protoplasm.verifyChain(opts.ledger, process.env["MNEME_PROTOPLASM_KEY"] ?? "dev-protoplasm-key");
|
|
5470
|
+
process.stdout.write(JSON.stringify(r, null, 2) + "\n");
|
|
5471
|
+
if (!r.ok)
|
|
5472
|
+
process.exitCode = 1;
|
|
5473
|
+
}
|
|
5474
|
+
catch (e) {
|
|
5475
|
+
process.stdout.write(JSON.stringify({ ok: false, error: e.message }) + "\n");
|
|
5476
|
+
process.exitCode = 1;
|
|
5477
|
+
}
|
|
5478
|
+
});
|
|
5479
|
+
protoplasmParent.command("registry")
|
|
5480
|
+
.description("Snapshot in-process probe registry (which functions are wrapped + sample counts)")
|
|
5481
|
+
.action(async () => {
|
|
5482
|
+
try {
|
|
5483
|
+
const core = await import("@mneme-ai/core");
|
|
5484
|
+
const snap = core.protoplasm.snapshotRegistry();
|
|
5485
|
+
process.stdout.write(JSON.stringify({ ok: true, totalFunctions: snap.length, registry: snap.map((s) => ({ fnId: s.fnId, samples: s.samples })) }, null, 2) + "\n");
|
|
5486
|
+
}
|
|
5487
|
+
catch (e) {
|
|
5488
|
+
process.stdout.write(JSON.stringify({ ok: false, error: e.message }) + "\n");
|
|
5489
|
+
process.exitCode = 1;
|
|
5490
|
+
}
|
|
5491
|
+
});
|
|
5432
5492
|
// v2.59.0 — SDK SURFACE AUDITOR: gate-self-verification.
|
|
5433
5493
|
// Empirically imports @mneme-ai/sdk + checks the external public
|
|
5434
5494
|
// surface matches WIRING DOCTOR's claims. Closes the v2.58 blind-spot
|