stitchkit 0.124.3 → 0.124.5

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 (57) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/entrypoints/agent-runtime/coding-tools.js +4 -4
  3. package/dist/entrypoints/agent-runtime/harness.js +5 -5
  4. package/dist/entrypoints/agent-runtime/sandbox.js +4 -4
  5. package/dist/entrypoints/agent-runtime/sqlite/bun.js +6 -6
  6. package/dist/entrypoints/agent-runtime/sqlite/node.js +6 -6
  7. package/dist/entrypoints/agent-runtime/testing.js +6 -6
  8. package/dist/entrypoints/agent-runtime.js +12 -12
  9. package/dist/entrypoints/cli.js +9 -8
  10. package/dist/entrypoints/server.js +1 -1
  11. package/dist/entrypoints/testing.js +2 -2
  12. package/dist/entrypoints/tools/agent.js +7 -7
  13. package/dist/entrypoints/tools/connections.js +6 -5
  14. package/dist/entrypoints/tools/invoker.js +5 -5
  15. package/dist/entrypoints/tools/mcp.js +7 -7
  16. package/dist/entrypoints/tools/toolkit.js +9 -9
  17. package/dist/entrypoints/tools.js +8 -8
  18. package/dist/{index-s512scra.js → index-1wz4y15d.js} +1 -1
  19. package/dist/{index-yebkpytc.js → index-2ds89z96.js} +4 -4
  20. package/dist/{index-jkjh7zw4.js → index-3n8k175r.js} +5 -5
  21. package/dist/index-5dmk54h9.js +256 -0
  22. package/dist/{index-8pwwd6rp.js → index-6fmg17bg.js} +1 -1
  23. package/dist/{index-7177dxjn.js → index-afc3mtah.js} +1 -1
  24. package/dist/{index-0d3sm0m9.js → index-cm07qz01.js} +1 -1
  25. package/dist/{index-qsm899qp.js → index-en2xqhty.js} +1 -1
  26. package/dist/{index-7rq5p3hk.js → index-p1mwqkgh.js} +212 -207
  27. package/dist/{index-782qtc24.js → index-p9saezh1.js} +1 -1
  28. package/dist/{index-993vtv1w.js → index-q7s1yr9g.js} +3 -3
  29. package/dist/{index-6k47xdtt.js → index-r7v5xz0g.js} +1 -1
  30. package/dist/{index-tynna0n4.js → index-rk7m4j7r.js} +3 -94
  31. package/dist/{index-qc7tq0za.js → index-x68eyh6y.js} +2 -2
  32. package/dist/{index-enkc9pem.js → index-xaem29dc.js} +1 -1
  33. package/dist/{index-96yjwwgf.js → index-z2z67tnv.js} +3 -3
  34. package/dist/json-schema/dialect.d.ts +6 -0
  35. package/dist/json-schema/dialect.d.ts.map +1 -1
  36. package/dist/json-schema/json-schema.d.ts.map +1 -1
  37. package/dist/json-schema/string-format.d.ts +36 -0
  38. package/dist/json-schema/string-format.d.ts.map +1 -0
  39. package/dist/tools/cli/args-route.d.ts +2 -0
  40. package/dist/tools/cli/args-route.d.ts.map +1 -1
  41. package/dist/tools/cli/create-cli.d.ts.map +1 -1
  42. package/dist/tools/cli/help.d.ts.map +1 -1
  43. package/dist/tools/cli/notices.d.ts +5 -0
  44. package/dist/tools/cli/notices.d.ts.map +1 -0
  45. package/dist/tools/cli/profile.d.ts +1 -1
  46. package/dist/tools/cli/profile.d.ts.map +1 -1
  47. package/dist/tools/cli/run-managed.d.ts.map +1 -1
  48. package/dist/tools/cli/session.d.ts +1 -0
  49. package/dist/tools/cli/session.d.ts.map +1 -1
  50. package/dist/tools/cli/unavailable.d.ts +0 -6
  51. package/dist/tools/cli/unavailable.d.ts.map +1 -1
  52. package/dist/tools/connections/runtime.d.ts.map +1 -1
  53. package/llms/cli.txt +11 -7
  54. package/llms-full.txt +11 -7
  55. package/llms.txt +1 -1
  56. package/package.json +1 -1
  57. package/dist/index-ct75c3at.js +0 -46
@@ -1,3 +1,9 @@
1
+ /** Keywords whose value is one subschema. */
2
+ export declare const SCHEMA_KEYWORDS: string[];
3
+ /** Keywords whose value is a list of subschemas. */
4
+ export declare const SCHEMA_LIST_KEYWORDS: string[];
5
+ /** Keywords whose value maps a name to a subschema. */
6
+ export declare const SCHEMA_MAP_KEYWORDS: string[];
1
7
  /** True when a document says, in its own `$schema`, that it is draft-07. */
2
8
  export declare function declaresDraft07(dialect: unknown): boolean;
3
9
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"dialect.d.ts","sourceRoot":"","sources":["../../src/json-schema/dialect.ts"],"names":[],"mappings":"AAiCA,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEzD;AAmDD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAYzB"}
1
+ {"version":3,"file":"dialect.d.ts","sourceRoot":"","sources":["../../src/json-schema/dialect.ts"],"names":[],"mappings":"AAQA,6CAA6C;AAC7C,eAAO,MAAM,eAAe,UAY3B,CAAC;AACF,oDAAoD;AACpD,eAAO,MAAM,oBAAoB,UAA6C,CAAC;AAC/E,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,UAM/B,CAAC;AAEF,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEzD;AAmDD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAYzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../src/json-schema/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAC/E,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE9C;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,CAAC,CAAC,OAAO,EACjB,EAAE,EAAE,YAAY,EAChB,eAAe,GAAE,OAAO,GAAG,KAAe,EAC1C,MAAM,GAAE,UAAU,GAAG,eAAiC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GAAG,eAAe,EAAE,CA+CvF"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ /** The string formats of the JSON Schema validation vocabulary (2020-12, §7.3). */
3
+ export declare const STANDARD_STRING_FORMATS: ReadonlySet<string>;
4
+ /**
5
+ * Copy every `format` of a foreign document into an annotation Zod carries.
6
+ *
7
+ * Read into Zod, `uri-reference` becomes `uri`, `time` a bare expression, and
8
+ * `idn-email`, `iri`, `json-pointer` and the rest nothing at all; a format next to
9
+ * a `pattern` loses its name whichever it is. The word is the server's statement
10
+ * about its own argument, so it is carried beside the schema and written back by
11
+ * `keepFormatName`. The walk follows schema keywords only: a `default`, an `enum`
12
+ * value or a property called "format" is left as written.
13
+ */
14
+ export declare function withServedFormats(schema: Record<string, unknown>): Record<string, unknown>;
15
+ type JsonNode = z.core.JSONSchema.BaseSchema;
16
+ /**
17
+ * Keep the name of a format on the document Zod writes.
18
+ *
19
+ * Zod lets a `.regex()` take the place of the format it follows: `z.uuid().regex(p)`
20
+ * is written as two patterns and no `format`, and every string restored from a
21
+ * served document that states both keywords is exactly that schema. So a format a
22
+ * server declared did not survive the trip through Zod, and a reader was shown the
23
+ * expression instead of the name.
24
+ *
25
+ * A served format is written back as the server spelled it. An authored string is
26
+ * named when the name says all its format check does — `z.uuid().regex(p)`. Where
27
+ * the check is narrower or wider than its name (`z.uuidv4()`, `z.guid()`, a
28
+ * datetime that takes only `Z`) or the word is a producer's own (`starts_with`),
29
+ * the document stays as Zod wrote it: there the expression is the meaning.
30
+ */
31
+ export declare function keepFormatName(ctx: {
32
+ zodSchema: z.core.$ZodTypes;
33
+ jsonSchema: JsonNode;
34
+ }): void;
35
+ export {};
36
+ //# sourceMappingURL=string-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-format.d.ts","sourceRoot":"","sources":["../../src/json-schema/string-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,mFAAmF;AACnF,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAoBtD,CAAC;AASH;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAc1F;AAMD,KAAK,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;AAoD7C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE;IAClC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;IAC5B,UAAU,EAAE,QAAQ,CAAC;CACtB,GAAG,IAAI,CAuBP"}
@@ -29,6 +29,8 @@ export interface CliLongOptionToken {
29
29
  }
30
30
  /** One source of truth for long-option token shape and framework-global ownership. */
31
31
  export declare function classifyLongOptionToken(token: string): CliLongOptionToken | undefined;
32
+ /** Read a reserved boolean for presentation before command arguments can be validated. */
33
+ export declare function readCliBooleanFlag(argv: readonly string[], name: string): boolean;
32
34
  export interface CliArgvRoute {
33
35
  command?: string;
34
36
  commandArgv: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"args-route.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/args-route.ts"],"names":[],"mappings":"AAOA;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEtD;AAWD,eAAO,MAAM,YAAY,aAA6D,CAAC;AAEvF,eAAO,MAAM,oBAAoB,aAA+C,CAAC;AAEjF,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAClC;AA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MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA+BD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,YAAY,CAuHlF"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-cli.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/create-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAMlB,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,GACjB,CAAC;AACF,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAsB,SAAS,CAC7B,KAAK,GAAG,OAAO,EACf,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClE,QAAQ,SAAS,SAAS,GAAG,SAAS,EACtC,MAAM,EAAE,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB7D"}
1
+ {"version":3,"file":"create-cli.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/create-cli.ts"],"names":[],"mappings":"AAAA;;;;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M,EACf,UAAU,EAAE,sBAAsB,EAClC,kBAAkB,GAAE,SAAS,eAAe,EAAO,GAClD,MAAM,CA4ER"}
@@ -0,0 +1,5 @@
1
+ import type { CliIo } from './io.js';
2
+ export declare function withCliNotices<T>(quiet: boolean, stderr: CliIo['stderr'], run: () => T): T;
3
+ /** Profile selection can happen during discovery, before the CLI invocation starts. */
4
+ export declare function writeCliNotice(text: string): void;
5
+ //# sourceMappingURL=notices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notices.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/notices.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAOlC,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAE1F;AAED,uFAAuF;AACvF,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAOjD"}
@@ -15,7 +15,7 @@ export interface CliProfileStoreConfig<TSchema extends z.ZodType> {
15
15
  * that creates it leaves the reader to guess the file format.
16
16
  */
17
17
  createHint?: (name: string, path: string) => string;
18
- /** Where the substitution notice goes; default stderr. */
18
+ /** App-owned announcement. The default writes to stderr and honours `--quiet`. */
19
19
  announce?: (line: string) => void;
20
20
  }
21
21
  export interface ResolvedCliProfile<TValue> {
@@ -1 +1 @@
1
- {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/profile.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjD,8DAA8D;AAC9D,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,YAAY,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,WAAW,GAAG,aAAa,GA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S,CAAC,CAAC,OAAO,EAC7D,MAAM,EAAE,qBAAqB,CAAC,OAAO,CAAC,GACrC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAqFpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"run-managed.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/run-managed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAerC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EAGhB,MAAM,WAAW,CAAC;AAQnB,wFAAwF;AACxF,wBAAsB,oBAAoB,CACxC,KAAK,EACL,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,QAAQ,SAAS,SAAS,EAC1B,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAkC1F"}
1
+ {"version":3,"file":"run-managed.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/run-managed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAgBrC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EAGhB,MAAM,WAAW,CAAC;AAQnB,wFAAwF;AACxF,wBAAsB,oBAAoB,CACxC,KAAK,EACL,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,QAAQ,SAAS,SAAS,EAC1B,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAkC1F"}
@@ -27,6 +27,7 @@ export interface CliRoute<TGlobals extends ZodObject> {
27
27
  command: string | undefined;
28
28
  commandArgv: string[];
29
29
  beforeSeparator: string[];
30
+ quiet: boolean;
30
31
  helpRequested: boolean;
31
32
  /** `--schema` — answered like help: before identity, validation and the call. */
32
33
  schemaRequested: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/session.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExC,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,oBAAoB,EAAgC,MAAM,WAAW,CAAC;AAEpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAA8B,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAanF,MAAM,WAAW,UAAU,CACzB,KAAK,EACL,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,QAAQ,SAAS,SAAS;IAE1B,MAAM,EAAE,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC7C,EAAE,EAAE,KAAK,CAAC;IACV,kBAAkB,EAAE,SAAS,eAAe,EAAE,CAAC;IAC/C,sBAAsB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAClD,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;CACjD;AAED,0FAA0F;AAC1F,wBAAgB,gBAAgB,CAC9B,KAAK,EACL,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,QAAQ,S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O,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjC,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EACL,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,QAAQ,SAAS,SAAS,EAE1B,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAC9C,IAAI,EAAE,MAAM,EAAE,GACb,QAAQ,CAAC,QAAQ,CAAC,GAAG,SAAS,CAkEhC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,sBAAsB,GACjC,MAAM,CAcR;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAC5B,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,GAAG,WAAW,CAAC,EAClD,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,MAAM,GACf,WAAW,CAOb"}
@@ -1,10 +1,4 @@
1
1
  import { type ToolFailure } from '../execute-result.js';
2
2
  /** One refusal for direct dispatch and a known, unavailable --wait target. */
3
3
  export declare function unavailableCommand(reason: string): ToolFailure;
4
- /**
5
- * Choose only the error's format, without admitting arguments of a command that
6
- * cannot run. Its availability refusal takes precedence over argument errors.
7
- * Reuse the framework's token/boolean vocabulary; after -- everything is data.
8
- */
9
- export declare function unavailableCommandJson(argv: readonly string[]): boolean;
10
4
  //# sourceMappingURL=unavailable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unavailable.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/unavailable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,mBAAmB,CAAC;AAI1E,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAQ9D;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAYvE"}
1
+ {"version":3,"file":"unavailable.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/unavailable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,mBAAmB,CAAC;AAE1E,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAQ9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/tools/connections/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAK,MAAM,KAAK,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAO7D,oEAAoE;AACpE,MAAM,MAAM,uBAAuB,GAAG,CACpC,OAAO,CAAC,EAAE,cAAc,KACrB,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;AAEtD,UAAU,cAAc;IACtB,QAAQ,IAAI,IAAI,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,EACzC,MAAM,EAAE;IACN,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,uBAAuB,CAAC;IACnC,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,cAAc,CAAC;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AczB"}
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 schema that
645
- composes two patterns prints both under `all of:`, a named format among them
646
- included: there the schema no longer carries the name.
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 `&`.
@@ -883,10 +886,11 @@ wrong way round, because the unsafe version reads as kindness:
883
886
  That is correct exactly while a single profile exists. The day a second appears
884
887
  it is a command run against the wrong deployment, with nothing in the output to
885
888
  say so. **A profile named explicitly and not found is a refusal, never a
886
- substitution.** Substitution survives only where it cannot be wrong: no name was
887
- given at all and exactly one profile exists — and even then it is announced on
888
- stderr. The distinction has to be drawn at resolution; one step later, "prod" and
889
- "prod by default" are the same string.
889
+ substitution.** With no name given and exactly one profile configured, the CLI
890
+ selects it and writes a notice to stderr by default. `--quiet` suppresses that
891
+ notice, including when the app selects the profile before discovering its
892
+ commands. Profile refusals still report their cause. An app that supplies
893
+ `announce` controls its own notice.
890
894
 
891
895
  `createCliProfileStore` is that rule, plus the twenty lines every consumer of
892
896
  this shape writes:
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 schema that
11076
- composes two patterns prints both under `all of:`, a named format among them
11077
- included: there the schema no longer carries the name.
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 `&`.
@@ -11314,10 +11317,11 @@ wrong way round, because the unsafe version reads as kindness:
11314
11317
  That is correct exactly while a single profile exists. The day a second appears
11315
11318
  it is a command run against the wrong deployment, with nothing in the output to
11316
11319
  say so. **A profile named explicitly and not found is a refusal, never a
11317
- substitution.** Substitution survives only where it cannot be wrong: no name was
11318
- given at all and exactly one profile exists — and even then it is announced on
11319
- stderr. The distinction has to be drawn at resolution; one step later, "prod" and
11320
- "prod by default" are the same string.
11320
+ substitution.** With no name given and exactly one profile configured, the CLI
11321
+ selects it and writes a notice to stderr by default. `--quiet` suppresses that
11322
+ notice, including when the app selects the profile before discovering its
11323
+ commands. Profile refusals still report their cause. An app that supplies
11324
+ `announce` controls its own notice.
11321
11325
 
11322
11326
  `createCliProfileStore` is that rule, plus the twenty lines every consumer of
11323
11327
  this shape writes:
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.6 KB → [llms/cli.2.txt](llms/cli.2.txt) 42.9 KB
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stitchkit",
3
- "version": "0.124.3",
3
+ "version": "0.124.5",
4
4
  "description": "Contract-first backend framework — one defineContract() into an HTTP API, MCP tools, AI-agent tools and a typed client. Bun and Node.",
5
5
  "keywords": [
6
6
  "bun",
@@ -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 };