stitchkit 0.124.3 → 0.124.4
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/CHANGELOG.md +24 -0
- package/dist/entrypoints/agent-runtime/coding-tools.js +4 -4
- package/dist/entrypoints/agent-runtime/harness.js +5 -5
- package/dist/entrypoints/agent-runtime/sandbox.js +4 -4
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +6 -6
- package/dist/entrypoints/agent-runtime/sqlite/node.js +6 -6
- package/dist/entrypoints/agent-runtime/testing.js +6 -6
- package/dist/entrypoints/agent-runtime.js +12 -12
- package/dist/entrypoints/cli.js +7 -7
- package/dist/entrypoints/server.js +1 -1
- package/dist/entrypoints/testing.js +2 -2
- package/dist/entrypoints/tools/agent.js +7 -7
- package/dist/entrypoints/tools/connections.js +6 -5
- package/dist/entrypoints/tools/invoker.js +5 -5
- package/dist/entrypoints/tools/mcp.js +7 -7
- package/dist/entrypoints/tools/toolkit.js +9 -9
- package/dist/entrypoints/tools.js +8 -8
- package/dist/{index-s512scra.js → index-1wz4y15d.js} +1 -1
- package/dist/{index-yebkpytc.js → index-2ds89z96.js} +4 -4
- package/dist/{index-jkjh7zw4.js → index-3n8k175r.js} +5 -5
- package/dist/index-5dmk54h9.js +256 -0
- package/dist/{index-8pwwd6rp.js → index-6fmg17bg.js} +1 -1
- package/dist/{index-7rq5p3hk.js → index-a3ekss9t.js} +13 -28
- package/dist/{index-7177dxjn.js → index-afc3mtah.js} +1 -1
- package/dist/{index-0d3sm0m9.js → index-cm07qz01.js} +1 -1
- package/dist/{index-qsm899qp.js → index-en2xqhty.js} +1 -1
- package/dist/{index-782qtc24.js → index-p9saezh1.js} +1 -1
- package/dist/{index-993vtv1w.js → index-q7s1yr9g.js} +3 -3
- package/dist/{index-6k47xdtt.js → index-r7v5xz0g.js} +1 -1
- package/dist/{index-tynna0n4.js → index-rk7m4j7r.js} +3 -94
- package/dist/{index-qc7tq0za.js → index-x68eyh6y.js} +2 -2
- package/dist/{index-enkc9pem.js → index-xaem29dc.js} +1 -1
- package/dist/{index-96yjwwgf.js → index-z2z67tnv.js} +3 -3
- package/dist/json-schema/dialect.d.ts +6 -0
- package/dist/json-schema/dialect.d.ts.map +1 -1
- package/dist/json-schema/json-schema.d.ts.map +1 -1
- package/dist/json-schema/string-format.d.ts +36 -0
- package/dist/json-schema/string-format.d.ts.map +1 -0
- package/dist/tools/cli/help.d.ts.map +1 -1
- package/dist/tools/connections/runtime.d.ts.map +1 -1
- package/llms/cli.txt +6 -3
- package/llms-full.txt +6 -3
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/dist/index-ct75c3at.js +0 -46
package/llms/cli.txt
CHANGED
|
@@ -641,9 +641,12 @@ A string says what shape it must have, before its bounds. A format JSON Schema
|
|
|
641
641
|
defines is said by name — `<string> [uuid]`, `[email]`, `[uri]`, `[date-time]` —
|
|
642
642
|
and the expression it is checked with is not printed. Any other shape is said
|
|
643
643
|
by its pattern between slashes, `<string> [pattern /^[a-z]+$/, length >=2]`, and
|
|
644
|
-
by its format's name only when the schema carries no pattern. A
|
|
645
|
-
|
|
646
|
-
|
|
644
|
+
by its format's name only when the schema carries no pattern. A named format
|
|
645
|
+
keeps its name with a pattern beside it — `z.uuid().regex(…)`, or a discovered
|
|
646
|
+
server's `"format": "uuid"` with its own `"pattern"` — and prints `[uuid]`. A
|
|
647
|
+
discovered argument prints the format its server declared, whichever it is:
|
|
648
|
+
`[time]`, `[uri-reference]`, `[idn-email]`. A string that composes two patterns
|
|
649
|
+
under no standard format prints both under `all of:`.
|
|
647
650
|
|
|
648
651
|
Composed schemas retain their meaning: `any of:` and `one of:` separate
|
|
649
652
|
alternative branches with `|`, while `all of:` joins constraints with `&`.
|
package/llms-full.txt
CHANGED
|
@@ -11072,9 +11072,12 @@ A string says what shape it must have, before its bounds. A format JSON Schema
|
|
|
11072
11072
|
defines is said by name — `<string> [uuid]`, `[email]`, `[uri]`, `[date-time]` —
|
|
11073
11073
|
and the expression it is checked with is not printed. Any other shape is said
|
|
11074
11074
|
by its pattern between slashes, `<string> [pattern /^[a-z]+$/, length >=2]`, and
|
|
11075
|
-
by its format's name only when the schema carries no pattern. A
|
|
11076
|
-
|
|
11077
|
-
|
|
11075
|
+
by its format's name only when the schema carries no pattern. A named format
|
|
11076
|
+
keeps its name with a pattern beside it — `z.uuid().regex(…)`, or a discovered
|
|
11077
|
+
server's `"format": "uuid"` with its own `"pattern"` — and prints `[uuid]`. A
|
|
11078
|
+
discovered argument prints the format its server declared, whichever it is:
|
|
11079
|
+
`[time]`, `[uri-reference]`, `[idn-email]`. A string that composes two patterns
|
|
11080
|
+
under no standard format prints both under `all of:`.
|
|
11078
11081
|
|
|
11079
11082
|
Composed schemas retain their meaning: `any of:` and `one of:` separate
|
|
11080
11083
|
alternative branches with `|`, while `all of:` joins constraints with `&`.
|
package/llms.txt
CHANGED
|
@@ -21,7 +21,7 @@ Load the slice for each entrypoint your code imports — `import … from 'stitc
|
|
|
21
21
|
- **stitchkit/tools/contract**: [llms/tools-contract.txt](llms/tools-contract.txt) 0.2 KB
|
|
22
22
|
- **stitchkit/tools/invoker**: [llms/tools-invoker.txt](llms/tools-invoker.txt) 0.2 KB
|
|
23
23
|
- **stitchkit/tools/connections**: [llms/tools-connections.txt](llms/tools-connections.txt) 4.9 KB
|
|
24
|
-
- **stitchkit/cli**: [llms/cli.txt](llms/cli.txt) 44.
|
|
24
|
+
- **stitchkit/cli**: [llms/cli.txt](llms/cli.txt) 44.9 KB → [llms/cli.2.txt](llms/cli.2.txt) 42.9 KB
|
|
25
25
|
- **stitchkit/cli/publish**: [llms/cli-publish.txt](llms/cli-publish.txt) 1.5 KB
|
|
26
26
|
- **stitchkit/remote**: [llms/remote.txt](llms/remote.txt) 1.0 KB
|
|
27
27
|
- **stitchkit/contract**: [llms/contract.txt](llms/contract.txt) 34.1 KB
|
package/package.json
CHANGED
package/dist/index-ct75c3at.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// src/json-schema/json-schema.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
function toJsonSchema(schema, io, unrepresentable = "throw", target = "draft-2020-12") {
|
|
4
|
-
return z.toJSONSchema(schema, {
|
|
5
|
-
io,
|
|
6
|
-
target,
|
|
7
|
-
unrepresentable,
|
|
8
|
-
cycles: "ref"
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function isObjectNode(value) {
|
|
12
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
13
|
-
}
|
|
14
|
-
function jsonSchemaFields(jsonSchema) {
|
|
15
|
-
const properties = jsonSchema.properties;
|
|
16
|
-
if (!isObjectNode(properties)) {
|
|
17
|
-
const conjunctive = Array.isArray(jsonSchema.allOf);
|
|
18
|
-
const members = conjunctive ? jsonSchema.allOf : Array.isArray(jsonSchema.oneOf) ? jsonSchema.oneOf : Array.isArray(jsonSchema.anyOf) ? jsonSchema.anyOf : [];
|
|
19
|
-
const byName = new Map;
|
|
20
|
-
for (const member of Array.isArray(members) ? members : []) {
|
|
21
|
-
if (!isObjectNode(member))
|
|
22
|
-
continue;
|
|
23
|
-
for (const field of jsonSchemaFields(member)) {
|
|
24
|
-
const existing = byName.get(field.name);
|
|
25
|
-
const required = existing ? conjunctive ? existing.required || field.required : existing.required && field.required : field.required;
|
|
26
|
-
byName.set(field.name, existing ? { ...field, required } : field);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return [...byName.values()];
|
|
30
|
-
}
|
|
31
|
-
const required = new Set(Array.isArray(jsonSchema.required) ? jsonSchema.required.filter((k) => typeof k === "string") : []);
|
|
32
|
-
const fields = [];
|
|
33
|
-
for (const [name, raw] of Object.entries(properties)) {
|
|
34
|
-
const schema = isObjectNode(raw) ? raw : {};
|
|
35
|
-
const description = typeof schema.description === "string" ? schema.description : undefined;
|
|
36
|
-
fields.push({
|
|
37
|
-
name,
|
|
38
|
-
schema,
|
|
39
|
-
required: required.has(name),
|
|
40
|
-
...description && { description }
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return fields;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { toJsonSchema, jsonSchemaFields };
|