sparda-mcp 0.15.0 → 0.15.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"v":"imm1","proven":true,"routes":[{"behaviorHash":"bh1_13969839d8a18d54aa0342618e56db6a","pol":121,"exposed":[]},{"behaviorHash":"bh1_2daf8a2b1b0ed393d443991a2b0700f6","pol":121,"exposed":[]},{"behaviorHash":"bh1_58fbf5ac38b6d71abc7204921de6b957","pol":121,"exposed":[]},{"behaviorHash":"bh1_58fbf5ac38b6d71abc7204921de6b957","pol":121,"exposed":[]},{"behaviorHash":"bh1_cc6788289c612af85b8d215b5bdf9b28","pol":121,"exposed":[]}],"posture":{"auth":{"protected":0,"exposed":0,"na":5},"atomicity":{"protected":0,"exposed":0,"na":5},"reversibility":{"protected":0,"exposed":0,"na":5},"validation":{"protected":0,"exposed":0,"na":5},"aggregate":{"protected":0,"exposed":0,"na":5}},"bytes":5}
|
package/package.json
CHANGED
package/src/commands/immunize.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// lookup, no recompile, no LLM, no network. BitNet's move applied to trust.
|
|
6
6
|
// sparda immunize write .sparda/immunity.json + a summary
|
|
7
7
|
// sparda immunize --json print the capsule to stdout
|
|
8
|
+
import fs from 'node:fs';
|
|
8
9
|
import path from 'node:path';
|
|
9
10
|
import { compileUBG } from '../ubg/compile.js';
|
|
10
11
|
import { canonicalizeGraph } from '../ubg/schema.js';
|
|
@@ -31,7 +32,9 @@ export async function runImmunize(opts) {
|
|
|
31
32
|
return { capsule };
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
const
|
|
35
|
+
const dotSparda = path.join(opts.cwd, '.sparda');
|
|
36
|
+
fs.mkdirSync(dotSparda, { recursive: true });
|
|
37
|
+
const outPath = path.join(dotSparda, 'immunity.json');
|
|
35
38
|
atomicWrite(outPath, JSON.stringify(capsule) + '\n');
|
|
36
39
|
const wire = JSON.stringify(capsule).length;
|
|
37
40
|
|