@zelari/core 1.47.1 → 1.47.2
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.map +1 -1
- package/dist/agents/harnessToolBridge.js +5 -1
- package/dist/agents/harnessToolBridge.js.map +1 -1
- package/dist/core/tools/zodBridge.d.ts +13 -1
- package/dist/core/tools/zodBridge.d.ts.map +1 -1
- package/dist/core/tools/zodBridge.js +117 -3
- package/dist/core/tools/zodBridge.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAuChE;;;;;;;;;;;;;;;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"}
|
|
@@ -40,7 +40,11 @@ const HARNESS_TOOLS = [
|
|
|
40
40
|
webSearchTool,
|
|
41
41
|
];
|
|
42
42
|
function toEnhanced(tool) {
|
|
43
|
-
|
|
43
|
+
// v1.47.2: prefer an explicit tool.jsonSchema (verbatim provider schema,
|
|
44
|
+
// e.g. inspect_command's flattened operation menu) over converting the
|
|
45
|
+
// inputSchema — zodToJsonSchema now guarantees an object root even for
|
|
46
|
+
// union inputSchemas, so union tools no longer degrade to properties:{}.
|
|
47
|
+
const schema = (tool.jsonSchema ?? zodToJsonSchema(tool.inputSchema));
|
|
44
48
|
return {
|
|
45
49
|
name: tool.name,
|
|
46
50
|
description: tool.description,
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"harnessToolBridge.js","sourceRoot":"","sources":["../../src/agents/harnessToolBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,eAAe,EAAE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IACvC,OAAO,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import type { ZodSchema } from 'zod';
|
|
2
2
|
/** Convert a Zod schema into a JSON Schema-like object suitable for LLM
|
|
3
3
|
* function-calling definitions. Best-effort: handles primitives, objects,
|
|
4
|
-
* arrays, unions, optionals. Does not handle refinements beyond type.
|
|
4
|
+
* arrays, unions, optionals. Does not handle refinements beyond type.
|
|
5
|
+
*
|
|
6
|
+
* v1.47.2 — the returned schema is guaranteed to have a `type: "object"`
|
|
7
|
+
* ROOT whenever the input is a union (or discriminated union) of object
|
|
8
|
+
* variants. Strict providers (DeepSeek first, live report 2026-08-17) reject
|
|
9
|
+
* any function whose parameters schema is not a root object — HTTP 400
|
|
10
|
+
* `schema must be a JSON Schema of 'type: "object"', got 'type: null'` —
|
|
11
|
+
* because Zod 4 serializes unions as a bare `anyOf` with no root `type`.
|
|
12
|
+
* Union branches are merged into ONE object: union of properties,
|
|
13
|
+
* `required` = intersection of the branch required lists, discriminator
|
|
14
|
+
* literals (`const`) collapse into an `enum`. Runtime validation is
|
|
15
|
+
* unaffected: the ToolRegistry still parses inputs against the original
|
|
16
|
+
* (strict) Zod schema — this only shapes what the MODEL is shown. */
|
|
5
17
|
export declare function zodToJsonSchema(schema: ZodSchema): Record<string, unknown>;
|
|
6
18
|
//# sourceMappingURL=zodBridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zodBridge.d.ts","sourceRoot":"","sources":["../../../src/core/tools/zodBridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,KAAK,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"zodBridge.d.ts","sourceRoot":"","sources":["../../../src/core/tools/zodBridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,KAAK,CAAC;AAEjD;;;;;;;;;;;;;;sEAcsE;AACtE,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAe1E"}
|
|
@@ -1,16 +1,130 @@
|
|
|
1
1
|
/** Convert a Zod schema into a JSON Schema-like object suitable for LLM
|
|
2
2
|
* function-calling definitions. Best-effort: handles primitives, objects,
|
|
3
|
-
* arrays, unions, optionals. Does not handle refinements beyond type.
|
|
3
|
+
* arrays, unions, optionals. Does not handle refinements beyond type.
|
|
4
|
+
*
|
|
5
|
+
* v1.47.2 — the returned schema is guaranteed to have a `type: "object"`
|
|
6
|
+
* ROOT whenever the input is a union (or discriminated union) of object
|
|
7
|
+
* variants. Strict providers (DeepSeek first, live report 2026-08-17) reject
|
|
8
|
+
* any function whose parameters schema is not a root object — HTTP 400
|
|
9
|
+
* `schema must be a JSON Schema of 'type: "object"', got 'type: null'` —
|
|
10
|
+
* because Zod 4 serializes unions as a bare `anyOf` with no root `type`.
|
|
11
|
+
* Union branches are merged into ONE object: union of properties,
|
|
12
|
+
* `required` = intersection of the branch required lists, discriminator
|
|
13
|
+
* literals (`const`) collapse into an `enum`. Runtime validation is
|
|
14
|
+
* unaffected: the ToolRegistry still parses inputs against the original
|
|
15
|
+
* (strict) Zod schema — this only shapes what the MODEL is shown. */
|
|
4
16
|
export function zodToJsonSchema(schema) {
|
|
17
|
+
let out;
|
|
5
18
|
if (typeof schema.toJSONSchema === 'function') {
|
|
6
19
|
const res = schema.toJSONSchema();
|
|
7
20
|
if (res && typeof res === 'object') {
|
|
8
21
|
const copy = { ...res };
|
|
9
22
|
delete copy['$schema'];
|
|
10
|
-
|
|
23
|
+
out = copy;
|
|
11
24
|
}
|
|
25
|
+
else {
|
|
26
|
+
out = _convert(schema);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
out = _convert(schema);
|
|
31
|
+
}
|
|
32
|
+
return ensureRootObjectType(out);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Merge a root union-of-objects into a single root object schema.
|
|
36
|
+
*
|
|
37
|
+
* Returns the schema UNCHANGED when it already has `type: "object"` or when
|
|
38
|
+
* no safe single-object form exists (non-object branches, empty variant list,
|
|
39
|
+
* missing anyOf/oneOf) — never invents constraints it cannot derive.
|
|
40
|
+
*
|
|
41
|
+
* Merge rules:
|
|
42
|
+
* - properties: union of every branch's properties, first-wins per key
|
|
43
|
+
* - discriminator (same key with a different `const` per branch): the
|
|
44
|
+
* distinct const values become `enum: [...]` (+ `type` when homogeneous)
|
|
45
|
+
* - same key with incompatible non-const shapes: nested `anyOf` on the
|
|
46
|
+
* property (only the ROOT must be an object, nested unions are legal)
|
|
47
|
+
* - required: intersection of the branches' required lists (so a field
|
|
48
|
+
* required by just one variant stays optional at the root; discriminators
|
|
49
|
+
* are required in every branch and therefore survive the intersection)
|
|
50
|
+
* - additionalProperties: false only when EVERY branch had it
|
|
51
|
+
*/
|
|
52
|
+
function ensureRootObjectType(schema) {
|
|
53
|
+
if (schema.type === 'object')
|
|
54
|
+
return schema;
|
|
55
|
+
const variants = schema.anyOf ?? schema.oneOf;
|
|
56
|
+
if (!Array.isArray(variants) || variants.length === 0)
|
|
57
|
+
return schema;
|
|
58
|
+
const branches = [];
|
|
59
|
+
for (const v of variants) {
|
|
60
|
+
if (!v || typeof v !== 'object' || Array.isArray(v) || v.type !== 'object') {
|
|
61
|
+
return schema; // non-object branch: no safe single-object form
|
|
62
|
+
}
|
|
63
|
+
branches.push(v);
|
|
64
|
+
}
|
|
65
|
+
// Union of all branch properties; track DISTINCT schemas per key so the
|
|
66
|
+
// discriminator (same key, different literal per branch) can become an enum.
|
|
67
|
+
const distinct = new Map();
|
|
68
|
+
for (const b of branches) {
|
|
69
|
+
const props = (b.properties ?? {});
|
|
70
|
+
for (const [key, val] of Object.entries(props)) {
|
|
71
|
+
const list = distinct.get(key) ?? [];
|
|
72
|
+
if (!list.some((s) => JSON.stringify(s) === JSON.stringify(val)))
|
|
73
|
+
list.push(val);
|
|
74
|
+
distinct.set(key, list);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
const properties = {};
|
|
78
|
+
for (const [key, schemas] of distinct) {
|
|
79
|
+
if (schemas.length === 1) {
|
|
80
|
+
properties[key] = schemas[0];
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
const consts = [];
|
|
84
|
+
let allConst = true;
|
|
85
|
+
for (const s of schemas) {
|
|
86
|
+
if (s && typeof s === 'object' && 'const' in s) {
|
|
87
|
+
consts.push(s.const);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
allConst = false;
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (allConst) {
|
|
95
|
+
const merged = { enum: consts };
|
|
96
|
+
const t = typeof consts[0];
|
|
97
|
+
if (consts.every((c) => typeof c === t)) {
|
|
98
|
+
if (t === 'string')
|
|
99
|
+
merged.type = 'string';
|
|
100
|
+
else if (t === 'boolean')
|
|
101
|
+
merged.type = 'boolean';
|
|
102
|
+
else if (t === 'number')
|
|
103
|
+
merged.type = Number.isInteger(consts[0]) ? 'integer' : 'number';
|
|
104
|
+
}
|
|
105
|
+
properties[key] = merged;
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
properties[key] = { anyOf: schemas };
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// required = keys required in EVERY branch (discriminators always qualify).
|
|
112
|
+
let required;
|
|
113
|
+
for (const b of branches) {
|
|
114
|
+
const req = Array.isArray(b.required)
|
|
115
|
+
? b.required.filter((k) => typeof k === 'string')
|
|
116
|
+
: [];
|
|
117
|
+
required = required === undefined ? [...req] : required.filter((k) => req.includes(k));
|
|
118
|
+
}
|
|
119
|
+
const merged = {
|
|
120
|
+
type: 'object',
|
|
121
|
+
properties,
|
|
122
|
+
required: required ?? [],
|
|
123
|
+
};
|
|
124
|
+
if (branches.every((b) => b.additionalProperties === false)) {
|
|
125
|
+
merged.additionalProperties = false;
|
|
12
126
|
}
|
|
13
|
-
return
|
|
127
|
+
return merged;
|
|
14
128
|
}
|
|
15
129
|
function _convert(schema) {
|
|
16
130
|
const def = schema._def;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zodBridge.js","sourceRoot":"","sources":["../../../src/core/tools/zodBridge.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"zodBridge.js","sourceRoot":"","sources":["../../../src/core/tools/zodBridge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;sEAcsE;AACtE,MAAM,UAAU,eAAe,CAAC,MAAiB;IAC/C,IAAI,GAA4B,CAAC;IACjC,IAAI,OAAQ,MAAc,CAAC,YAAY,KAAK,UAAU,EAAE,CAAC;QACvD,MAAM,GAAG,GAAI,MAAc,CAAC,YAAY,EAAE,CAAC;QAC3C,IAAI,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YACnC,MAAM,IAAI,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;YACvB,GAAG,GAAG,IAAI,CAAC;QACb,CAAC;aAAM,CAAC;YACN,GAAG,GAAG,QAAQ,CAAC,MAAoB,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;SAAM,CAAC;QACN,GAAG,GAAG,QAAQ,CAAC,MAAoB,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,oBAAoB,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAS,oBAAoB,CAAC,MAA+B;IAC3D,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC;IAC5C,MAAM,QAAQ,GAAY,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC;IACvD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAA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E,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAC1C,CAAC;QACD,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;IACrB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zelari/core",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.2",
|
|
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",
|