@mmnto/cli 1.14.11 → 1.14.13

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.
Files changed (33) hide show
  1. package/dist/commands/compile-prune.test.js +35 -18
  2. package/dist/commands/compile-prune.test.js.map +1 -1
  3. package/dist/commands/compile-verbose-trace.test.d.ts +2 -0
  4. package/dist/commands/compile-verbose-trace.test.d.ts.map +1 -0
  5. package/dist/commands/compile-verbose-trace.test.js +128 -0
  6. package/dist/commands/compile-verbose-trace.test.js.map +1 -0
  7. package/dist/commands/compile.d.ts +33 -8
  8. package/dist/commands/compile.d.ts.map +1 -1
  9. package/dist/commands/compile.js +136 -11
  10. package/dist/commands/compile.js.map +1 -1
  11. package/dist/commands/doctor.d.ts +44 -0
  12. package/dist/commands/doctor.d.ts.map +1 -1
  13. package/dist/commands/doctor.js +147 -0
  14. package/dist/commands/doctor.js.map +1 -1
  15. package/dist/commands/doctor.test.js +342 -2
  16. package/dist/commands/doctor.test.js.map +1 -1
  17. package/dist/commands/install.d.ts.map +1 -1
  18. package/dist/commands/install.js +3 -2
  19. package/dist/commands/install.js.map +1 -1
  20. package/dist/commands/run-compiled-rules.d.ts.map +1 -1
  21. package/dist/commands/run-compiled-rules.js +290 -276
  22. package/dist/commands/run-compiled-rules.js.map +1 -1
  23. package/dist/commands/run-compiled-rules.test.js +76 -9
  24. package/dist/commands/run-compiled-rules.test.js.map +1 -1
  25. package/dist/commands/shield-eval.integration.test.js +9 -5
  26. package/dist/commands/shield-eval.integration.test.js.map +1 -1
  27. package/dist/commands/shield.test.js +8 -4
  28. package/dist/commands/shield.test.js.map +1 -1
  29. package/dist/test-utils.d.ts +8 -0
  30. package/dist/test-utils.d.ts.map +1 -1
  31. package/dist/test-utils.js +12 -0
  32. package/dist/test-utils.js.map +1 -1
  33. package/package.json +2 -2
@@ -1,6 +1,14 @@
1
+ import type { RuleEngineContext } from '@mmnto/totem';
1
2
  /**
2
3
  * Remove a temporary directory with retry semantics for Windows ENOTEMPTY flakes.
3
4
  * Safe to call with falsy paths (no-op).
4
5
  */
5
6
  export declare function cleanTmpDir(dir: string | undefined): void;
7
+ /**
8
+ * Build a fresh `RuleEngineContext` for a CLI test. Warnings are captured on
9
+ * the returned `warnings` array so tests can assert without setting up spies.
10
+ */
11
+ export declare function makeRuleEngineCtx(): RuleEngineContext & {
12
+ warnings: string[];
13
+ };
6
14
  //# sourceMappingURL=test-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../src/test-utils.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAGzD"}
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../src/test-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAGzD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,iBAAiB,GAAG;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAO9E"}
@@ -8,4 +8,16 @@ export function cleanTmpDir(dir) {
8
8
  return;
9
9
  fs.rmSync(dir, { recursive: true, force: true, maxRetries: 3, retryDelay: 100 });
10
10
  }
11
+ /**
12
+ * Build a fresh `RuleEngineContext` for a CLI test. Warnings are captured on
13
+ * the returned `warnings` array so tests can assert without setting up spies.
14
+ */
15
+ export function makeRuleEngineCtx() {
16
+ const warnings = [];
17
+ return {
18
+ logger: { warn: (msg) => warnings.push(msg) },
19
+ state: { hasWarnedShieldContext: false },
20
+ warnings,
21
+ };
22
+ }
11
23
  //# sourceMappingURL=test-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../src/test-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,GAAuB;IACjD,IAAI,CAAC,GAAG;QAAE,OAAO;IACjB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;AACnF,CAAC"}
1
+ {"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../src/test-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAI9B;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,GAAuB;IACjD,IAAI,CAAC,GAAG;QAAE,OAAO;IACjB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;AACnF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAC/B,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,OAAO;QACL,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACrD,KAAK,EAAE,EAAE,sBAAsB,EAAE,KAAK,EAAE;QACxC,QAAQ;KACT,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmnto/cli",
3
- "version": "1.14.11",
3
+ "version": "1.14.13",
4
4
  "description": "CLI for Totem — AI persistent memory and context layer",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,7 +24,7 @@
24
24
  "smol-toml": "^1.6.1",
25
25
  "yaml": "^2.4.0",
26
26
  "zod": "^3.24.0",
27
- "@mmnto/totem": "1.14.11"
27
+ "@mmnto/totem": "1.14.13"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@anthropic-ai/sdk": "^0.78.0",