@zelari/core 1.5.0 → 1.5.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.
- package/dist/agents/harnessToolBridge.d.ts +18 -0
- package/dist/agents/harnessToolBridge.d.ts.map +1 -1
- package/dist/agents/harnessToolBridge.js +19 -0
- package/dist/agents/harnessToolBridge.js.map +1 -1
- package/dist/skills/index.d.ts +2 -0
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +1 -0
- package/dist/skills/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,7 +20,25 @@
|
|
|
20
20
|
* harness executes these via its ToolRegistry; catalog execution is only
|
|
21
21
|
* reachable in legacy Electron paths that never advertised these names.
|
|
22
22
|
*/
|
|
23
|
+
import type { ToolDefinition as HarnessToolDefinition } from '../core/tools/toolTypes.js';
|
|
23
24
|
import type { EnhancedToolDefinition } from '../types/index.js';
|
|
25
|
+
/**
|
|
26
|
+
* Derive a catalog `EnhancedToolDefinition` from any harness `ToolDefinition`.
|
|
27
|
+
*
|
|
28
|
+
* This is the same transformation `toEnhanced` applies to the 10 HARNESS_TOOLS
|
|
29
|
+
* builtins, exposed so the CLI can bridge its OWN tool definitions (browser_check,
|
|
30
|
+
* the LSP navigation tools, AST outline) into the agents catalog with identical
|
|
31
|
+
* schema generation — so prompt text, provider schemas, and executor behaviour
|
|
32
|
+
* stay in lockstep, the way the harness builtins already do.
|
|
33
|
+
*
|
|
34
|
+
* The `execute` here is the same guard stub: in the CLI the harness runs these
|
|
35
|
+
* via its ToolRegistry. Catalog execution is only reachable in legacy Electron
|
|
36
|
+
* paths that never advertised these names.
|
|
37
|
+
*
|
|
38
|
+
* @param tool Any ToolDefinition (harness builtin, browser_check, LSP tool, …).
|
|
39
|
+
* @returns A catalog entry whose JSON Schema is generated from tool.inputSchema.
|
|
40
|
+
*/
|
|
41
|
+
export declare function cliToolToEnhanced(tool: HarnessToolDefinition<never, unknown>): EnhancedToolDefinition;
|
|
24
42
|
/** Harness builtin tools as catalog entries (fresh array each call). */
|
|
25
43
|
export declare function getHarnessToolDefinitions(): EnhancedToolDefinition[];
|
|
26
44
|
//# sourceMappingURL=harnessToolBridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harnessToolBridge.d.ts","sourceRoot":"","sources":["../../src/agents/harnessToolBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;
|
|
1
|
+
{"version":3,"file":"harnessToolBridge.d.ts","sourceRoot":"","sources":["../../src/agents/harnessToolBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAO1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAmChE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,sBAAsB,CAErG;AAED,wEAAwE;AACxE,wBAAgB,yBAAyB,IAAI,sBAAsB,EAAE,CAEpE"}
|
|
@@ -53,6 +53,25 @@ function toEnhanced(tool) {
|
|
|
53
53
|
execute: () => `Tool "${tool.name}" must be executed through the harness ToolRegistry (CLI), not the agents catalog.`,
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Derive a catalog `EnhancedToolDefinition` from any harness `ToolDefinition`.
|
|
58
|
+
*
|
|
59
|
+
* This is the same transformation `toEnhanced` applies to the 10 HARNESS_TOOLS
|
|
60
|
+
* builtins, exposed so the CLI can bridge its OWN tool definitions (browser_check,
|
|
61
|
+
* the LSP navigation tools, AST outline) into the agents catalog with identical
|
|
62
|
+
* schema generation — so prompt text, provider schemas, and executor behaviour
|
|
63
|
+
* stay in lockstep, the way the harness builtins already do.
|
|
64
|
+
*
|
|
65
|
+
* The `execute` here is the same guard stub: in the CLI the harness runs these
|
|
66
|
+
* via its ToolRegistry. Catalog execution is only reachable in legacy Electron
|
|
67
|
+
* paths that never advertised these names.
|
|
68
|
+
*
|
|
69
|
+
* @param tool Any ToolDefinition (harness builtin, browser_check, LSP tool, …).
|
|
70
|
+
* @returns A catalog entry whose JSON Schema is generated from tool.inputSchema.
|
|
71
|
+
*/
|
|
72
|
+
export function cliToolToEnhanced(tool) {
|
|
73
|
+
return toEnhanced(tool);
|
|
74
|
+
}
|
|
56
75
|
/** Harness builtin tools as catalog entries (fresh array each call). */
|
|
57
76
|
export function getHarnessToolDefinitions() {
|
|
58
77
|
return HARNESS_TOOLS.map(toEnhanced);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harnessToolBridge.js","sourceRoot":"","sources":["../../src/agents/harnessToolBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG3E,MAAM,aAAa,GAA4C;IAC7D,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,QAAQ;IACR,eAAe;IACf,aAAa;IACb,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,aAAa;CACwC,CAAC;AAExD,SAAS,UAAU,CAAC,IAA2C;IAC7D,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,WAAW,CAI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WAAW,CAI9C,CAAC;IACF,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;YACnC,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE;SAChC;QACD,OAAO,EAAE,GAAG,EAAE,CACZ,SAAS,IAAI,CAAC,IAAI,oFAAoF;KACzG,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAA2C;IAC3E,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,yBAAyB;IACvC,OAAO,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC"}
|
package/dist/skills/index.d.ts
CHANGED
|
@@ -7,4 +7,6 @@ export * from '../agents/tools.js';
|
|
|
7
7
|
export * from '../agents/toolSchemas.js';
|
|
8
8
|
export * from '../agents/advancedTools.js';
|
|
9
9
|
export * from '../agents/vaultTools.js';
|
|
10
|
+
export { cliToolToEnhanced } from '../agents/harnessToolBridge.js';
|
|
11
|
+
export type { EnhancedToolDefinition } from '../types/systemTypes.js';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/skills/index.js
CHANGED
|
@@ -7,4 +7,5 @@ export * from '../agents/tools.js';
|
|
|
7
7
|
export * from '../agents/toolSchemas.js';
|
|
8
8
|
export * from '../agents/advancedTools.js';
|
|
9
9
|
export * from '../agents/vaultTools.js';
|
|
10
|
+
export { cliToolToEnhanced } from '../agents/harnessToolBridge.js';
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
package/dist/skills/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zelari/core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
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": "N-THEM Studio",
|
|
6
6
|
"license": "MIT",
|