@zelari/core 2.15.0 → 2.16.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.
Files changed (37) hide show
  1. package/dist/core/AgentHarness.d.ts +17 -3
  2. package/dist/core/AgentHarness.d.ts.map +1 -1
  3. package/dist/core/AgentHarness.js +9 -2
  4. package/dist/core/AgentHarness.js.map +1 -1
  5. package/dist/core/hooks/lifecycleHookRunner.d.ts +55 -9
  6. package/dist/core/hooks/lifecycleHookRunner.d.ts.map +1 -1
  7. package/dist/core/hooks/lifecycleHookRunner.js +114 -18
  8. package/dist/core/hooks/lifecycleHookRunner.js.map +1 -1
  9. package/dist/core/tools/builtin/shell.d.ts +45 -0
  10. package/dist/core/tools/builtin/shell.d.ts.map +1 -1
  11. package/dist/core/tools/builtin/shell.js +118 -92
  12. package/dist/core/tools/builtin/shell.js.map +1 -1
  13. package/dist/core/tools/registry.d.ts +5 -1
  14. package/dist/core/tools/registry.d.ts.map +1 -1
  15. package/dist/core/tools/registry.js +15 -3
  16. package/dist/core/tools/registry.js.map +1 -1
  17. package/dist/harness/appServer.d.ts +51 -0
  18. package/dist/harness/appServer.d.ts.map +1 -0
  19. package/dist/harness/appServer.js +128 -0
  20. package/dist/harness/appServer.js.map +1 -0
  21. package/dist/harness/appServerTypes.d.ts +61 -0
  22. package/dist/harness/appServerTypes.d.ts.map +1 -0
  23. package/dist/harness/appServerTypes.js +10 -0
  24. package/dist/harness/appServerTypes.js.map +1 -0
  25. package/dist/harness/extensionApi.d.ts +65 -0
  26. package/dist/harness/extensionApi.d.ts.map +1 -0
  27. package/dist/harness/extensionApi.js +125 -0
  28. package/dist/harness/extensionApi.js.map +1 -0
  29. package/dist/harness/extensionApiTypes.d.ts +115 -0
  30. package/dist/harness/extensionApiTypes.d.ts.map +1 -0
  31. package/dist/harness/extensionApiTypes.js +24 -0
  32. package/dist/harness/extensionApiTypes.js.map +1 -0
  33. package/dist/harness/index.d.ts +4 -0
  34. package/dist/harness/index.d.ts.map +1 -1
  35. package/dist/harness/index.js +8 -0
  36. package/dist/harness/index.js.map +1 -1
  37. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ /**
2
+ * ExtensionAPI seam types (t30, Pilastro C).
3
+ *
4
+ * Dependency direction: this module (and extensionApi.ts) live in
5
+ * @zelari/core and MUST NOT import CLI code. The host (zelari-code CLI)
6
+ * injects the real sandboxed-fs implementation the same DI way it binds
7
+ * runOneTurn into the App Server kernel (t29).
8
+ *
9
+ * SEAM, not a framework (ADR-0022 rejected a generic plugin system):
10
+ * - `ZelariExtension.register(ExtensionHost)` is the ONLY entrypoint;
11
+ * - the host exposes registerTool + onPreToolUse + a sandboxed fs — and
12
+ * NOTHING else (no process / child_process / net surface);
13
+ * - code is loaded from disk by the host, never eval'd from a prompt;
14
+ * - MCP stays a remote tool; plugins/registry.ts (binary catalog) is a
15
+ * different subsystem and is not involved.
16
+ *
17
+ * Enforcement lives with the host that registers the collected tools: the
18
+ * CLI pushes every `registerTool` through the SAME wrapWithPermissions
19
+ * path as builtins (category policy → agent rules → resource claims →
20
+ * ContractCompiler intersect LAST), so an extension can declare whatever
21
+ * permissions it wants — it can never WIDEN the parent policy.
22
+ */
23
+ export {};
24
+ //# sourceMappingURL=extensionApiTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionApiTypes.js","sourceRoot":"","sources":["../../src/harness/extensionApiTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG"}
@@ -9,4 +9,8 @@ export * from '../core/requestSnapshot.js';
9
9
  export * from '../core/sessionJsonl.js';
10
10
  export * from '../core/contextGrowth.js';
11
11
  export * from '../core/hooks/index.js';
12
+ export * from './appServerTypes.js';
13
+ export * from './appServer.js';
14
+ export * from './extensionApiTypes.js';
15
+ export * from './extensionApi.js';
12
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/harness/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AAExC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/harness/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AAExC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
@@ -11,4 +11,12 @@ export * from '../core/sessionJsonl.js';
11
11
  export * from '../core/contextGrowth.js';
12
12
  // v1.32.0: lifecycle hooks (PreToolUse/PostToolUse/SessionStart/End) + fail-open runner.
13
13
  export * from '../core/hooks/index.js';
14
+ // t29 (Pilastro B): long-lived harness kernel — sessions + per-workspace
15
+ // services, transport-free (stdio NDJSON host lives in the CLI).
16
+ export * from './appServerTypes.js';
17
+ export * from './appServer.js';
18
+ // t30 (Pilastro C): ExtensionAPI seam — collect-only registry + the narrow
19
+ // ExtensionHost surface (registerTool / onPreToolUse / sandboxed fs only).
20
+ export * from './extensionApiTypes.js';
21
+ export * from './extensionApi.js';
14
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/harness/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,8DAA8D;AAC9D,cAAc,0BAA0B,CAAC;AACzC,yFAAyF;AACzF,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/harness/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,8DAA8D;AAC9D,cAAc,0BAA0B,CAAC;AACzC,yFAAyF;AACzF,cAAc,wBAAwB,CAAC;AACvC,yEAAyE;AACzE,iEAAiE;AACjE,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,2EAA2E;AAC3E,2EAA2E;AAC3E,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zelari/core",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "Zelari Code core library — provider-neutral agent loop (AgentHarness), multi-agent council orchestration, and built-in skills. Used by the zelari-code CLI; consumable by other agent frontends.",
5
5
  "author": "Anathema Studio <https://anathema-studio.com/>",
6
6
  "license": "Apache-2.0",