stitchkit 0.124.4 → 0.125.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.
- package/CHANGELOG.md +37 -0
- package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
- package/dist/entrypoints/agent-runtime/harness.js +4 -4
- package/dist/entrypoints/agent-runtime/sandbox.js +3 -3
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +5 -5
- package/dist/entrypoints/agent-runtime/sqlite/node.js +5 -5
- package/dist/entrypoints/agent-runtime/testing.js +5 -5
- package/dist/entrypoints/agent-runtime.js +11 -11
- package/dist/entrypoints/cli.js +8 -7
- package/dist/entrypoints/testing.js +1 -1
- package/dist/entrypoints/tools/agent.js +6 -6
- package/dist/entrypoints/tools/connections.js +2 -2
- package/dist/entrypoints/tools/invoker.js +4 -4
- package/dist/entrypoints/tools/mcp.js +6 -6
- package/dist/entrypoints/tools/toolkit.js +8 -8
- package/dist/entrypoints/tools.js +7 -7
- package/dist/{index-afc3mtah.js → index-0sg3wnzr.js} +1 -1
- package/dist/{index-cm07qz01.js → index-1v3k5zgx.js} +1 -1
- package/dist/{index-x68eyh6y.js → index-7cn66qdk.js} +2 -2
- package/dist/{index-6fmg17bg.js → index-8wzhmgpa.js} +1 -1
- package/dist/{index-xaem29dc.js → index-a3z56mtn.js} +1 -1
- package/dist/{index-en2xqhty.js → index-cj5f0x4y.js} +1 -1
- package/dist/{index-z2z67tnv.js → index-cvjddnvd.js} +3 -3
- package/dist/{index-3n8k175r.js → index-fgzbc06j.js} +4 -4
- package/dist/{index-q7s1yr9g.js → index-kxff9e9w.js} +3 -3
- package/dist/{index-r7v5xz0g.js → index-m0wsfmrc.js} +1 -1
- package/dist/{index-2ds89z96.js → index-n6hvd1r2.js} +4 -4
- package/dist/{index-p9saezh1.js → index-r8swbw1x.js} +1 -1
- package/dist/{index-a3ekss9t.js → index-v7rbjatr.js} +230 -201
- package/dist/{index-rk7m4j7r.js → index-x2d51zay.js} +9 -10
- package/dist/{index-1wz4y15d.js → index-x2rvpbtj.js} +1 -1
- package/dist/tools/cli/args-route.d.ts +11 -0
- package/dist/tools/cli/args-route.d.ts.map +1 -1
- package/dist/tools/cli/args.d.ts.map +1 -1
- package/dist/tools/cli/command-shape.d.ts +4 -0
- package/dist/tools/cli/command-shape.d.ts.map +1 -1
- package/dist/tools/cli/create-cli.d.ts.map +1 -1
- package/dist/tools/cli/managed-surface.d.ts.map +1 -1
- package/dist/tools/cli/notices.d.ts +5 -0
- package/dist/tools/cli/notices.d.ts.map +1 -0
- package/dist/tools/cli/profile.d.ts +1 -1
- package/dist/tools/cli/profile.d.ts.map +1 -1
- package/dist/tools/cli/run-managed.d.ts.map +1 -1
- package/dist/tools/cli/session.d.ts +2 -1
- package/dist/tools/cli/session.d.ts.map +1 -1
- package/dist/tools/cli/stream-surface.d.ts +6 -1
- package/dist/tools/cli/stream-surface.d.ts.map +1 -1
- package/dist/tools/cli/unavailable.d.ts +0 -6
- package/dist/tools/cli/unavailable.d.ts.map +1 -1
- package/dist/tools/internal/surface-projector.d.ts +2 -0
- package/dist/tools/internal/surface-projector.d.ts.map +1 -1
- package/llms/cli.2.txt +1 -1
- package/llms/cli.txt +32 -4
- package/llms/stitchkit.txt +3 -3
- package/llms/{upgrading-0.106.0-0.124.0.txt → upgrading-0.106.0-0.125.0.txt} +26 -3
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +59 -8
- package/llms.txt +2 -2
- package/package.json +1 -1
|
@@ -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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E,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAejF;AAED,wFAAwF;AACxF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAQ3F;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,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;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEpE;AAED,iFAAiF;AACjF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO9D;AAkED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,YAAY,CAqDlF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/args.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/args.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,aAAa,CAAC;AAMjE,yEAAyE;AACzE,MAAM,WAAW,aAAa;IAC5B,sEAAsE;IACtE,IAAI,EAAE,OAAO,CAAC;IACd,iEAAiE;IACjE,IAAI,EAAE,OAAO,CAAC;IACd,8DA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declaration.js';
|
|
1
3
|
import type { CliCommandPresentation } from './policy.js';
|
|
4
|
+
/** Check already-declared shell names before a native handler can run. */
|
|
5
|
+
export declare function assertStaticCliCommandNames(services: readonly ServiceDef[], runtimeTools: readonly RuntimeToolDefinition[]): void;
|
|
2
6
|
/** Local configuration faults throw; only argv field conflicts become unavailable. */
|
|
3
7
|
export declare function commandShapeIssue(name: string, descriptor: CliCommandPresentation, exists: boolean, passthroughField?: string, applicationGlobals?: ReadonlySet<string>): string | undefined;
|
|
4
8
|
//# sourceMappingURL=command-shape.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-shape.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/command-shape.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-shape.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/command-shape.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAWvD,0EAA0E;AAC1E,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,SAAS,UAAU,EAAE,EAC/B,YAAY,EAAE,SAAS,qBAAqB,EAAE,GAC7C,IAAI,CAYN;AAED,sFAAsF;AACtF,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,sBAAsB,EAClC,MAAM,EAAE,OAAO,EACf,gBAAgB,CAAC,EAAE,MAAM,EACzB,kBAAkB,GAAE,WAAW,CAAC,MAAM,CAAa,GAClD,MAAM,GAAG,SAAS,CAsBpB"}
|
|
@@ -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;
|
|
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;AAOlB,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,CAmB7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-surface.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/managed-surface.ts"],"names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AC9C,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAChC,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAqChC"}
|
|
@@ -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
|
-
/**
|
|
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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AAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;CAC/D;AAWD,mEAAmE;AACnE,wBAAgB,qBAAqB,CAAC,OAAO,SAAS,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;
|
|
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,CAsC1F"}
|
|
@@ -17,6 +17,7 @@ export interface CliSession<TAuth, TContext extends Record<string, unknown>, TGl
|
|
|
17
17
|
applicationGlobalNames: Set<string>;
|
|
18
18
|
nativeCommands: Map<string, CliCommandDefinition>;
|
|
19
19
|
nativeHelp: Map<string, CliCommandPresentation>;
|
|
20
|
+
hasManagedFactory: boolean;
|
|
20
21
|
}
|
|
21
22
|
/** Startup: everything that is a configuration fault throws here, before argv is read. */
|
|
22
23
|
export declare function createCliSession<TAuth, TContext extends Record<string, unknown>, TGlobals extends ZodObject>(config: CliConfig<TAuth, TContext, TGlobals>, io: CliIo): CliSession<TAuth, TContext, TGlobals>;
|
|
@@ -26,7 +27,7 @@ export interface CliRoute<TGlobals extends ZodObject> {
|
|
|
26
27
|
route: CliArgvRoute;
|
|
27
28
|
command: string | undefined;
|
|
28
29
|
commandArgv: string[];
|
|
29
|
-
|
|
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;
|
|
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;AAGvC,OAAO,EACL,KAAK,YAAY,EAKlB,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,E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,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,11 +1,16 @@
|
|
|
1
1
|
import type { EndpointStreamDescriptor } from '../../contract/define.js';
|
|
2
|
-
import type { ServiceDef } from '../../server/types.js';
|
|
2
|
+
import type { MethodDef, ServiceDef } from '../../server/types.js';
|
|
3
3
|
import type { MountableTool } from '../mount.js';
|
|
4
4
|
/** One contract stream exposed as a command: how it is called and what it yields. */
|
|
5
5
|
export interface CliStreamOperation {
|
|
6
6
|
tool: MountableTool;
|
|
7
7
|
descriptor: EndpointStreamDescriptor;
|
|
8
8
|
}
|
|
9
|
+
/** Read the shell name of a CLI stream without materialising its schemas. */
|
|
10
|
+
export declare function cliStreamIdentity(serviceName: string, methodName: string, method: MethodDef): {
|
|
11
|
+
name: string;
|
|
12
|
+
descriptor: EndpointStreamDescriptor;
|
|
13
|
+
} | undefined;
|
|
9
14
|
/**
|
|
10
15
|
* The contract streams a CLI carries, by command name.
|
|
11
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-surface.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/stream-surface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"stream-surface.d.ts","sourceRoot":"","sources":["../../../src/tools/cli/stream-surface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,qFAAqF;AACrF,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,wBAAwB,CAAC;CACtC;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS;;;cAG3F;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,SAAS,UAAU,EAAE,GAC9B,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAwBjC"}
|
|
@@ -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;
|
|
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"}
|
|
@@ -70,6 +70,8 @@ export type ProjectedTool<TRuntime extends SurfaceRuntimeToolDefinition = Surfac
|
|
|
70
70
|
*/
|
|
71
71
|
export declare function projectRuntimeTool<TRuntime extends SurfaceRuntimeToolDefinition>(definition: TRuntime, assertName?: boolean): ProjectedRuntimeTool<TRuntime>;
|
|
72
72
|
export declare function projectedRuntimeToolSupports(definition: SurfaceRuntimeToolDefinition, transport: ToolTransport): boolean;
|
|
73
|
+
/** The exposed name can be inspected before building its argument or presentation schema. */
|
|
74
|
+
export declare function projectedContractToolName(serviceName: string, methodName: string, method: MethodDef, transport: ToolTransport): string | undefined;
|
|
73
75
|
/** Canonical name/exposure/presentation projection shared by mounts and manifests. */
|
|
74
76
|
export declare function projectToolSurface<TRuntime extends SurfaceRuntimeToolDefinition>(surface: ToolSurfaceProjection<TRuntime>, transport: ToolTransport, config?: ToolPresentationProjectionConfig): ProjectedTool<TRuntime>[];
|
|
75
77
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface-projector.d.ts","sourceRoot":"","sources":["../../../src/tools/internal/surface-projector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAK,MAAM,KAAK,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACf,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAG9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBA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CAOT;AA0BD,sFAAsF;AACtF,wBAAgB,kBAAkB,CAAC,QAAQ,SAAS,4BAA4B,EAC9E,OAAO,EAAE,qBAAqB,CAAC,QAAQ,CAAC,EACxC,SAAS,EAAE,aAAa,EACxB,MAAM,GAAE,gCAAqC,GAC5C,aAAa,CAAC,QAAQ,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"surface-projector.d.ts","sourceRoot":"","sources":["../../../src/tools/internal/surface-projector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAK,MAAM,KAAK,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACf,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAG9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAUhE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,UAAU,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChC,CAAC;IACF,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IACtC,WAAW,CAAC,EAAE,uBAAuB,CAAC;IACtC,EAAE,CAAC,EAAE,cAAc,CAAC;IACpB,GAAG,CAAC,EAAE,iBAAiB,CAAC;CACzB;AAED,sFAAsF;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AAE,CA8GnC"}
|
package/llms/cli.2.txt
CHANGED
|
@@ -682,7 +682,7 @@ SDK nor the `ai` peer.
|
|
|
682
682
|
| `defineCliCommand` | function | define one Zod-typed CLI-only executable command with optional validated-result presentation/exit policy |
|
|
683
683
|
| `defineCliResult` | function | type a managed command's `present` / `exitCode` policy against its output schema, for `CliConfig.results` — [guide](../guide/cli.md#the-same-policy-for-a-managed-command) |
|
|
684
684
|
| `parseCliArgs` | function | argv → typed tool args against a schema; inline `--field:=JSON` assigns a whole JSON value, including null, while ordinary string flags remain lexical; named array options together with bare positionals require an explicit `positionals` policy (advanced) |
|
|
685
|
-
| `routeCliArgv` | function | select the command
|
|
685
|
+
| `routeCliArgv` | function | select the command using the framework's option grammar before catalogue discovery. `createCli` also checks declared names and offline native dispatch — [guide](../guide/cli.md#global-flags) |
|
|
686
686
|
| `extractCliGlobalOptions` | function | lift the application's own global options out of argv before routing (advanced) |
|
|
687
687
|
| `coerceJsonArgs` | function | the second half of `parseCliArgs` — parse array/object values a consumer sends itself, including discovered MCP object guards restored from JSON Schema, without the `stitchkit/tools` barrel |
|
|
688
688
|
| `CliArgumentError` | class | the refusal `parseCliArgs` and the view flags raise; a CLI reports it and exits `2` |
|
package/llms/cli.txt
CHANGED
|
@@ -340,6 +340,14 @@ there stays a positional, and `--` makes a literal `false` one too. The same
|
|
|
340
340
|
holds for a short alias, a framework flag such as `--json false` and an
|
|
341
341
|
application option.
|
|
342
342
|
|
|
343
|
+
Only the next token in the original invocation can supply a framework flag's
|
|
344
|
+
boolean value. For example, `app --dry-run inspect false` previews `inspect`
|
|
345
|
+
with the positional string `false`. If the app declares a `--profile` option,
|
|
346
|
+
`app inspect --dry-run --profile demo false` does the same. To execute the
|
|
347
|
+
command with dry-run explicitly disabled, use `app inspect --dry-run false`.
|
|
348
|
+
On a named command, `--schema false` and `--help false` also allow execution.
|
|
349
|
+
At the top level, `app --help false` searches the command list for `false`.
|
|
350
|
+
|
|
343
351
|
Every declared non-array option is single-use, including framework and
|
|
344
352
|
application globals. Bare, separate-value, inline, negative and short-alias
|
|
345
353
|
forms of a command option count as the same name: `--active=false --active`,
|
|
@@ -452,6 +460,25 @@ same Zod schema an HTTP or MCP call does.
|
|
|
452
460
|
|
|
453
461
|
## Global flags
|
|
454
462
|
|
|
463
|
+
Framework options can precede an explicit command even when the CLI has no
|
|
464
|
+
default command. With a static catalogue, `myapp --quiet item_list --json` and
|
|
465
|
+
`myapp item_list --quiet --json` produce the same output. Keep an option's value
|
|
466
|
+
next to it, as in `myapp --sort date item_list`. Place `--help` before the
|
|
467
|
+
command name to filter the command list or after the name to show that command's help.
|
|
468
|
+
|
|
469
|
+
Shell command names cannot use a framework option spelling such as `--quiet`,
|
|
470
|
+
`--sort` or `--json=false`, the separator `--`, or a built-in help or version
|
|
471
|
+
token. Static CLI declarations are checked before dispatch. Names supplied by
|
|
472
|
+
a managed factory are checked when that factory is resolved.
|
|
473
|
+
|
|
474
|
+
If a CLI has a managed factory and no default command, put a native command
|
|
475
|
+
first, for example `myapp whoami --quiet`. A leading framework option before a
|
|
476
|
+
native command exits with code 2: older catalogues could use that option as a
|
|
477
|
+
command name. This refusal and the command-first invocation both work offline.
|
|
478
|
+
To keep a positional `false` in a preview after moving the command first,
|
|
479
|
+
use `myapp inspect --dry-run=true false`.
|
|
480
|
+
Discovered managed commands accept framework flags in either position.
|
|
481
|
+
|
|
455
482
|
| Flag | Effect |
|
|
456
483
|
| --------------------- | ---------------------------------------------------------- |
|
|
457
484
|
| `--json` | Compact success/error JSON records for scripts |
|
|
@@ -886,10 +913,11 @@ wrong way round, because the unsafe version reads as kindness:
|
|
|
886
913
|
That is correct exactly while a single profile exists. The day a second appears
|
|
887
914
|
it is a command run against the wrong deployment, with nothing in the output to
|
|
888
915
|
say so. **A profile named explicitly and not found is a refusal, never a
|
|
889
|
-
substitution.**
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
916
|
+
substitution.** With no name given and exactly one profile configured, the CLI
|
|
917
|
+
selects it and writes a notice to stderr by default. `--quiet` suppresses that
|
|
918
|
+
notice, including when the app selects the profile before discovering its
|
|
919
|
+
commands. Profile refusals still report their cause. An app that supplies
|
|
920
|
+
`announce` controls its own notice.
|
|
893
921
|
|
|
894
922
|
`createCliProfileStore` is that rule, plus the twenty lines every consumer of
|
|
895
923
|
this shape writes:
|
package/llms/stitchkit.txt
CHANGED
|
@@ -94,13 +94,13 @@ own, recorded as an ADR.
|
|
|
94
94
|
| `stitchkit/xlsx` | browser **and** server | evolving | a workbook from rows and typed columns, with no dependency; text never runs as a formula |
|
|
95
95
|
| `stitchkit/oauth` | browser **and** server | evolving | provider-neutral Authorization Code + PKCE request and one-shot callback transaction mechanics |
|
|
96
96
|
| `stitchkit/google` | server (Bun or Node) | evolving | optional Google code exchange and verified OIDC identity adapter |
|
|
97
|
-
| `stitchkit/observability` | server | stable<br>_redefined in 2 of the
|
|
97
|
+
| `stitchkit/observability` | server | stable<br>_redefined in 2 of the 70 minors since 0.56.2, most recently 0.92.0_ | request/tool event projections — `createObservability`, trace context, sanitisation |
|
|
98
98
|
| `stitchkit/testing` | tests on Bun or Node | stable | in-process generated clients over a real Fetch handler, the managed-resource conformance kit and manual time for schedules and retries |
|
|
99
99
|
| `stitchkit/declaration` | browser + build and deployment tooling (Bun or Node) | evolving | `ProjectDeclarationSchema` — the one machine-readable statement a repository makes about itself |
|
|
100
100
|
| `stitchkit/react` | browser + server rendering | stable | `createCursorQuery`, `createCacheBridge`, QueryClient and `ApiError` retry policy |
|
|
101
101
|
| `stitchkit/react/keyboard` | browser | evolving | which part of a screen gets a key — ordered layers, one Escape per level, list zones with real focus; see [keyboard guide](keyboard.md) |
|
|
102
102
|
| `stitchkit/react/keyboard/testing` | server (Bun or Node) | evolving | the keyboard layers and zones without a DOM — fakes for the window, elements and key events beside the two engines, to test the order of layers, `scope`/`inert` and the edges of a zone in milliseconds |
|
|
103
|
-
| `stitchkit/agent-runtime` | server | evolving<br>_redefined in 26 of the
|
|
103
|
+
| `stitchkit/agent-runtime` | server | evolving<br>_redefined in 26 of the 70 minors since 0.56.2, most recently 0.121.0_ | optional durable conversation/run loop, history, models, prompts, fencing and events |
|
|
104
104
|
| `stitchkit/agent-runtime/sandbox` | server | evolving | optional Linux Bubblewrap sessions, durable workspaces and a host HTTP credential gateway; see [sandbox guide](sandbox.md) |
|
|
105
105
|
| `stitchkit/agent-runtime/testing` | tests on Bun or Node | evolving | credential-free replay, scripted provider faults, deterministic race controls and the agent-store conformance kit |
|
|
106
106
|
| `stitchkit/agent-runtime/harness` | server | evolving | resource-aware process-local facade over the canonical Agent runtime; supervision stays outside |
|
|
@@ -112,7 +112,7 @@ own, recorded as an ADR.
|
|
|
112
112
|
| `stitchkit/agent-runtime/sqlite/bun` | server (Bun) | evolving | durable built-in SQLite store for the agent runtime |
|
|
113
113
|
| `stitchkit/agent-runtime/sqlite/node` | server (Node ≥ 22.5) | evolving | durable built-in SQLite store for the agent runtime |
|
|
114
114
|
| `stitchkit-tui` | terminal (Bun) | evolving | optional official OpenTUI host over a caller-composed headless runtime |
|
|
115
|
-
| `stitchkit/application` | browser + server | evolving<br>_redefined in 14 of the
|
|
115
|
+
| `stitchkit/application` | browser + server | evolving<br>_redefined in 14 of the 70 minors since 0.56.2, most recently 0.110.0_ | managed resource graph, readiness, admission, schedules, subtree restart and bounded shutdown |
|
|
116
116
|
| `stitchkit/application/grammy` | server | evolving | a grammY bot as application resources — configuration, then polling with updates admitted by batch — and the webhook adapter |
|
|
117
117
|
| `stitchkit/application/opentelemetry` | server | evolving | maps application snapshots onto an injected OpenTelemetry `Meter` |
|
|
118
118
|
| `stitchkit/application/schemas` | browser + server | evolving | the application's snapshot, health and shutdown schemas alone, without the kernel |
|
|
@@ -1,14 +1,37 @@
|
|
|
1
|
-
# Upgrading 0.106.0 → 0.
|
|
1
|
+
# Upgrading 0.106.0 → 0.125.0 — stitchkit docs slice
|
|
2
2
|
|
|
3
3
|
> Generated from the `docs/` tree by `bun run gen:llms`. The index of all slices is
|
|
4
4
|
> `llms.txt` in this package.
|
|
5
5
|
|
|
6
|
-
Contains: Guide: Upgrading, 0.106.0 → 0.
|
|
6
|
+
Contains: Guide: Upgrading, 0.106.0 → 0.125.0 (docs/guide/upgrading.md)
|
|
7
7
|
|
|
8
8
|
==============================================================================
|
|
9
|
-
# Guide: Upgrading, 0.106.0 → 0.
|
|
9
|
+
# Guide: Upgrading, 0.106.0 → 0.125.0 (docs/guide/upgrading.md)
|
|
10
10
|
==============================================================================
|
|
11
11
|
|
|
12
|
+
## Released migration: 0.125.0
|
|
13
|
+
|
|
14
|
+
### cli-framework-option-command-names
|
|
15
|
+
|
|
16
|
+
**Who must act:** shell CLI authors who use framework option spellings as
|
|
17
|
+
command names, and callers of native commands in a CLI with a managed factory
|
|
18
|
+
and no default command.
|
|
19
|
+
|
|
20
|
+
Rename matching native, contract or runtime CLI commands and update callers.
|
|
21
|
+
For example, change `name: '--quiet'` to `name: 'quiet-mode'` and
|
|
22
|
+
`app --quiet inspect` to `app quiet-mode inspect`. Include factory-supplied
|
|
23
|
+
names in the check. Native and static CLI declarations are checked at startup.
|
|
24
|
+
A factory reports the conflicting name when its managed catalogue is loaded.
|
|
25
|
+
|
|
26
|
+
For a native command beside a managed factory, use `app whoami --quiet`
|
|
27
|
+
in place of `app --quiet whoami` if the CLI has no default command. Putting
|
|
28
|
+
the command first keeps it available without opening the catalogue.
|
|
29
|
+
|
|
30
|
+
When moving a bare boolean flag next to a positional `true` or `false`, make
|
|
31
|
+
the flag's value explicit. Migrate `app --dry-run inspect false` to
|
|
32
|
+
`app inspect --dry-run=true false`. This previews the call with the string
|
|
33
|
+
`false`. The separate form `app inspect --dry-run false` executes the command.
|
|
34
|
+
|
|
12
35
|
## Released migration: 0.124.0
|
|
13
36
|
|
|
14
37
|
### media-block-file-name
|
package/llms/upgrading.txt
CHANGED
|
@@ -11,7 +11,7 @@ Contains: Guide: Upgrading, general (docs/guide/upgrading.md)
|
|
|
11
11
|
|
|
12
12
|
Load this slice, then every range slice between your installed version and the target:
|
|
13
13
|
|
|
14
|
-
- 0.106.0 → 0.
|
|
14
|
+
- 0.106.0 → 0.125.0: `llms/upgrading-0.106.0-0.125.0.txt`
|
|
15
15
|
- 0.96.0 → 0.105.0: `llms/upgrading-0.96.0-0.105.0.txt`
|
|
16
16
|
- 0.69.0 → 0.95.0: `llms/upgrading-0.69.0-0.95.0.txt`
|
|
17
17
|
- 0.55.0 → 0.68.0: `llms/upgrading-0.55.0-0.68.0.txt`
|
package/llms-full.txt
CHANGED
|
@@ -85,13 +85,13 @@ own, recorded as an ADR.
|
|
|
85
85
|
| `stitchkit/xlsx` | browser **and** server | evolving | a workbook from rows and typed columns, with no dependency; text never runs as a formula |
|
|
86
86
|
| `stitchkit/oauth` | browser **and** server | evolving | provider-neutral Authorization Code + PKCE request and one-shot callback transaction mechanics |
|
|
87
87
|
| `stitchkit/google` | server (Bun or Node) | evolving | optional Google code exchange and verified OIDC identity adapter |
|
|
88
|
-
| `stitchkit/observability` | server | stable<br>_redefined in 2 of the
|
|
88
|
+
| `stitchkit/observability` | server | stable<br>_redefined in 2 of the 70 minors since 0.56.2, most recently 0.92.0_ | request/tool event projections — `createObservability`, trace context, sanitisation |
|
|
89
89
|
| `stitchkit/testing` | tests on Bun or Node | stable | in-process generated clients over a real Fetch handler, the managed-resource conformance kit and manual time for schedules and retries |
|
|
90
90
|
| `stitchkit/declaration` | browser + build and deployment tooling (Bun or Node) | evolving | `ProjectDeclarationSchema` — the one machine-readable statement a repository makes about itself |
|
|
91
91
|
| `stitchkit/react` | browser + server rendering | stable | `createCursorQuery`, `createCacheBridge`, QueryClient and `ApiError` retry policy |
|
|
92
92
|
| `stitchkit/react/keyboard` | browser | evolving | which part of a screen gets a key — ordered layers, one Escape per level, list zones with real focus; see [keyboard guide](keyboard.md) |
|
|
93
93
|
| `stitchkit/react/keyboard/testing` | server (Bun or Node) | evolving | the keyboard layers and zones without a DOM — fakes for the window, elements and key events beside the two engines, to test the order of layers, `scope`/`inert` and the edges of a zone in milliseconds |
|
|
94
|
-
| `stitchkit/agent-runtime` | server | evolving<br>_redefined in 26 of the
|
|
94
|
+
| `stitchkit/agent-runtime` | server | evolving<br>_redefined in 26 of the 70 minors since 0.56.2, most recently 0.121.0_ | optional durable conversation/run loop, history, models, prompts, fencing and events |
|
|
95
95
|
| `stitchkit/agent-runtime/sandbox` | server | evolving | optional Linux Bubblewrap sessions, durable workspaces and a host HTTP credential gateway; see [sandbox guide](sandbox.md) |
|
|
96
96
|
| `stitchkit/agent-runtime/testing` | tests on Bun or Node | evolving | credential-free replay, scripted provider faults, deterministic race controls and the agent-store conformance kit |
|
|
97
97
|
| `stitchkit/agent-runtime/harness` | server | evolving | resource-aware process-local facade over the canonical Agent runtime; supervision stays outside |
|
|
@@ -103,7 +103,7 @@ own, recorded as an ADR.
|
|
|
103
103
|
| `stitchkit/agent-runtime/sqlite/bun` | server (Bun) | evolving | durable built-in SQLite store for the agent runtime |
|
|
104
104
|
| `stitchkit/agent-runtime/sqlite/node` | server (Node ≥ 22.5) | evolving | durable built-in SQLite store for the agent runtime |
|
|
105
105
|
| `stitchkit-tui` | terminal (Bun) | evolving | optional official OpenTUI host over a caller-composed headless runtime |
|
|
106
|
-
| `stitchkit/application` | browser + server | evolving<br>_redefined in 14 of the
|
|
106
|
+
| `stitchkit/application` | browser + server | evolving<br>_redefined in 14 of the 70 minors since 0.56.2, most recently 0.110.0_ | managed resource graph, readiness, admission, schedules, subtree restart and bounded shutdown |
|
|
107
107
|
| `stitchkit/application/grammy` | server | evolving | a grammY bot as application resources — configuration, then polling with updates admitted by batch — and the webhook adapter |
|
|
108
108
|
| `stitchkit/application/opentelemetry` | server | evolving | maps application snapshots onto an injected OpenTelemetry `Meter` |
|
|
109
109
|
| `stitchkit/application/schemas` | browser + server | evolving | the application's snapshot, health and shutdown schemas alone, without the kernel |
|
|
@@ -10771,6 +10771,14 @@ there stays a positional, and `--` makes a literal `false` one too. The same
|
|
|
10771
10771
|
holds for a short alias, a framework flag such as `--json false` and an
|
|
10772
10772
|
application option.
|
|
10773
10773
|
|
|
10774
|
+
Only the next token in the original invocation can supply a framework flag's
|
|
10775
|
+
boolean value. For example, `app --dry-run inspect false` previews `inspect`
|
|
10776
|
+
with the positional string `false`. If the app declares a `--profile` option,
|
|
10777
|
+
`app inspect --dry-run --profile demo false` does the same. To execute the
|
|
10778
|
+
command with dry-run explicitly disabled, use `app inspect --dry-run false`.
|
|
10779
|
+
On a named command, `--schema false` and `--help false` also allow execution.
|
|
10780
|
+
At the top level, `app --help false` searches the command list for `false`.
|
|
10781
|
+
|
|
10774
10782
|
Every declared non-array option is single-use, including framework and
|
|
10775
10783
|
application globals. Bare, separate-value, inline, negative and short-alias
|
|
10776
10784
|
forms of a command option count as the same name: `--active=false --active`,
|
|
@@ -10883,6 +10891,25 @@ same Zod schema an HTTP or MCP call does.
|
|
|
10883
10891
|
|
|
10884
10892
|
## Global flags
|
|
10885
10893
|
|
|
10894
|
+
Framework options can precede an explicit command even when the CLI has no
|
|
10895
|
+
default command. With a static catalogue, `myapp --quiet item_list --json` and
|
|
10896
|
+
`myapp item_list --quiet --json` produce the same output. Keep an option's value
|
|
10897
|
+
next to it, as in `myapp --sort date item_list`. Place `--help` before the
|
|
10898
|
+
command name to filter the command list or after the name to show that command's help.
|
|
10899
|
+
|
|
10900
|
+
Shell command names cannot use a framework option spelling such as `--quiet`,
|
|
10901
|
+
`--sort` or `--json=false`, the separator `--`, or a built-in help or version
|
|
10902
|
+
token. Static CLI declarations are checked before dispatch. Names supplied by
|
|
10903
|
+
a managed factory are checked when that factory is resolved.
|
|
10904
|
+
|
|
10905
|
+
If a CLI has a managed factory and no default command, put a native command
|
|
10906
|
+
first, for example `myapp whoami --quiet`. A leading framework option before a
|
|
10907
|
+
native command exits with code 2: older catalogues could use that option as a
|
|
10908
|
+
command name. This refusal and the command-first invocation both work offline.
|
|
10909
|
+
To keep a positional `false` in a preview after moving the command first,
|
|
10910
|
+
use `myapp inspect --dry-run=true false`.
|
|
10911
|
+
Discovered managed commands accept framework flags in either position.
|
|
10912
|
+
|
|
10886
10913
|
| Flag | Effect |
|
|
10887
10914
|
| --------------------- | ---------------------------------------------------------- |
|
|
10888
10915
|
| `--json` | Compact success/error JSON records for scripts |
|
|
@@ -11317,10 +11344,11 @@ wrong way round, because the unsafe version reads as kindness:
|
|
|
11317
11344
|
That is correct exactly while a single profile exists. The day a second appears
|
|
11318
11345
|
it is a command run against the wrong deployment, with nothing in the output to
|
|
11319
11346
|
say so. **A profile named explicitly and not found is a refusal, never a
|
|
11320
|
-
substitution.**
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
|
-
|
|
11347
|
+
substitution.** With no name given and exactly one profile configured, the CLI
|
|
11348
|
+
selects it and writes a notice to stderr by default. `--quiet` suppresses that
|
|
11349
|
+
notice, including when the app selects the profile before discovering its
|
|
11350
|
+
commands. Profile refusals still report their cause. An app that supplies
|
|
11351
|
+
`announce` controls its own notice.
|
|
11324
11352
|
|
|
11325
11353
|
`createCliProfileStore` is that rule, plus the twenty lines every consumer of
|
|
11326
11354
|
this shape writes:
|
|
@@ -18018,6 +18046,29 @@ charts, no merged cells and no streaming: an application that needs them takes a
|
|
|
18018
18046
|
|
|
18019
18047
|
# Upgrading stitchkit
|
|
18020
18048
|
|
|
18049
|
+
## Released migration: 0.125.0
|
|
18050
|
+
|
|
18051
|
+
### cli-framework-option-command-names
|
|
18052
|
+
|
|
18053
|
+
**Who must act:** shell CLI authors who use framework option spellings as
|
|
18054
|
+
command names, and callers of native commands in a CLI with a managed factory
|
|
18055
|
+
and no default command.
|
|
18056
|
+
|
|
18057
|
+
Rename matching native, contract or runtime CLI commands and update callers.
|
|
18058
|
+
For example, change `name: '--quiet'` to `name: 'quiet-mode'` and
|
|
18059
|
+
`app --quiet inspect` to `app quiet-mode inspect`. Include factory-supplied
|
|
18060
|
+
names in the check. Native and static CLI declarations are checked at startup.
|
|
18061
|
+
A factory reports the conflicting name when its managed catalogue is loaded.
|
|
18062
|
+
|
|
18063
|
+
For a native command beside a managed factory, use `app whoami --quiet`
|
|
18064
|
+
in place of `app --quiet whoami` if the CLI has no default command. Putting
|
|
18065
|
+
the command first keeps it available without opening the catalogue.
|
|
18066
|
+
|
|
18067
|
+
When moving a bare boolean flag next to a positional `true` or `false`, make
|
|
18068
|
+
the flag's value explicit. Migrate `app --dry-run inspect false` to
|
|
18069
|
+
`app inspect --dry-run=true false`. This previews the call with the string
|
|
18070
|
+
`false`. The separate form `app inspect --dry-run false` executes the command.
|
|
18071
|
+
|
|
18021
18072
|
## Released migration: 0.124.0
|
|
18022
18073
|
|
|
18023
18074
|
### media-block-file-name
|
|
@@ -25985,7 +26036,7 @@ SDK nor the `ai` peer.
|
|
|
25985
26036
|
| `defineCliCommand` | function | define one Zod-typed CLI-only executable command with optional validated-result presentation/exit policy |
|
|
25986
26037
|
| `defineCliResult` | function | type a managed command's `present` / `exitCode` policy against its output schema, for `CliConfig.results` — [guide](../guide/cli.md#the-same-policy-for-a-managed-command) |
|
|
25987
26038
|
| `parseCliArgs` | function | argv → typed tool args against a schema; inline `--field:=JSON` assigns a whole JSON value, including null, while ordinary string flags remain lexical; named array options together with bare positionals require an explicit `positionals` policy (advanced) |
|
|
25988
|
-
| `routeCliArgv` | function | select the command
|
|
26039
|
+
| `routeCliArgv` | function | select the command using the framework's option grammar before catalogue discovery. `createCli` also checks declared names and offline native dispatch — [guide](../guide/cli.md#global-flags) |
|
|
25989
26040
|
| `extractCliGlobalOptions` | function | lift the application's own global options out of argv before routing (advanced) |
|
|
25990
26041
|
| `coerceJsonArgs` | function | the second half of `parseCliArgs` — parse array/object values a consumer sends itself, including discovered MCP object guards restored from JSON Schema, without the `stitchkit/tools` barrel |
|
|
25991
26042
|
| `CliArgumentError` | class | the refusal `parseCliArgs` and the view flags raise; a CLI reports it and exits `2` |
|
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)
|
|
24
|
+
- **stitchkit/cli**: [llms/cli.txt](llms/cli.txt) 46.6 KB → [llms/cli.2.txt](llms/cli.2.txt) 43.0 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
|
|
@@ -73,7 +73,7 @@ Load the slice for each entrypoint your code imports — `import … from 'stitc
|
|
|
73
73
|
|
|
74
74
|
## Upgrading slices
|
|
75
75
|
- **Upgrading — how to move across versions**: [llms/upgrading.txt](llms/upgrading.txt) 12.7 KB
|
|
76
|
-
- **Upgrading 0.106.0 → 0.
|
|
76
|
+
- **Upgrading 0.106.0 → 0.125.0**: [llms/upgrading-0.106.0-0.125.0.txt](llms/upgrading-0.106.0-0.125.0.txt) 38.9 KB
|
|
77
77
|
- **Upgrading 0.96.0 → 0.105.0**: [llms/upgrading-0.96.0-0.105.0.txt](llms/upgrading-0.96.0-0.105.0.txt) 45.8 KB
|
|
78
78
|
- **Upgrading 0.69.0 → 0.95.0**: [llms/upgrading-0.69.0-0.95.0.txt](llms/upgrading-0.69.0-0.95.0.txt) 46.6 KB
|
|
79
79
|
- **Upgrading 0.55.0 → 0.68.0**: [llms/upgrading-0.55.0-0.68.0.txt](llms/upgrading-0.55.0-0.68.0.txt) 47.0 KB
|
package/package.json
CHANGED