stitchkit 0.103.12 → 0.104.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 +112 -0
- package/darwin-native.cjs +12 -0
- package/darwin-native.d.cts +2 -0
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +10 -10
- package/dist/application/directory-inbox-accept.d.ts +13 -0
- package/dist/application/directory-inbox-accept.d.ts.map +1 -0
- package/dist/application/directory-inbox-contract.d.ts +42 -5
- package/dist/application/directory-inbox-contract.d.ts.map +1 -1
- package/dist/application/directory-inbox-delivery.d.ts +14 -0
- package/dist/application/directory-inbox-delivery.d.ts.map +1 -0
- package/dist/application/directory-inbox-files.d.ts +28 -0
- package/dist/application/directory-inbox-files.d.ts.map +1 -0
- package/dist/application/directory-inbox-state.d.ts +14 -0
- package/dist/application/directory-inbox-state.d.ts.map +1 -0
- package/dist/application/directory-inbox.d.ts +2 -1
- package/dist/application/directory-inbox.d.ts.map +1 -1
- package/dist/application/file-state-store.d.ts +2 -8
- package/dist/application/file-state-store.d.ts.map +1 -1
- package/dist/application/state-store.d.ts +6 -1
- package/dist/application/state-store.d.ts.map +1 -1
- package/dist/browser/client-arguments.d.ts +4 -0
- package/dist/browser/client-arguments.d.ts.map +1 -0
- package/dist/browser/client-executors.d.ts.map +1 -1
- package/dist/browser/client.d.ts.map +1 -1
- package/dist/browser/contract-stream.d.ts.map +1 -1
- package/dist/browser/http.d.ts +2 -1
- package/dist/browser/http.d.ts.map +1 -1
- package/dist/browser/native-fetch.d.ts +8 -0
- package/dist/browser/native-fetch.d.ts.map +1 -0
- package/dist/contract/errors.d.ts +16 -12
- package/dist/contract/errors.d.ts.map +1 -1
- package/dist/contract/normalize.d.ts +5 -1
- package/dist/contract/normalize.d.ts.map +1 -1
- package/dist/contract/stream.d.ts +1 -0
- package/dist/contract/stream.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/browser.js +3 -3
- package/dist/entrypoints/agent-runtime/coding-tools.js +8 -6
- package/dist/entrypoints/agent-runtime/harness-tools.js +8 -8
- package/dist/entrypoints/agent-runtime/harness.js +12 -11
- package/dist/entrypoints/agent-runtime/realtime.js +3 -3
- package/dist/entrypoints/agent-runtime/sandbox.js +8 -6
- package/dist/entrypoints/agent-runtime.js +13 -13
- package/dist/entrypoints/application/diagnostic-journal.js +3 -2
- package/dist/entrypoints/application/directory-inbox.js +424 -119
- package/dist/entrypoints/application/grammy.js +1 -1
- package/dist/entrypoints/application.d.ts +2 -2
- package/dist/entrypoints/application.d.ts.map +1 -1
- package/dist/entrypoints/application.js +7 -3
- package/dist/entrypoints/cli.d.ts +2 -0
- package/dist/entrypoints/cli.d.ts.map +1 -1
- package/dist/entrypoints/cli.js +757 -136
- package/dist/entrypoints/contract.js +3 -3
- package/dist/entrypoints/files.js +11 -107
- package/dist/entrypoints/index.js +7 -7
- package/dist/entrypoints/node.js +8 -8
- package/dist/entrypoints/observability.js +2 -2
- package/dist/entrypoints/process.js +2 -1
- package/dist/entrypoints/react.js +1 -1
- package/dist/entrypoints/remote.js +19 -6
- package/dist/entrypoints/server.d.ts +1 -1
- package/dist/entrypoints/server.d.ts.map +1 -1
- package/dist/entrypoints/server.js +20 -14
- package/dist/entrypoints/telegram.d.ts +1 -0
- package/dist/entrypoints/telegram.d.ts.map +1 -1
- package/dist/entrypoints/telegram.js +214 -98
- package/dist/entrypoints/testing.js +7 -7
- package/dist/entrypoints/tools/connections.d.ts +2 -2
- package/dist/entrypoints/tools/connections.d.ts.map +1 -1
- package/dist/entrypoints/tools/connections.js +427 -294
- package/dist/entrypoints/tools/invoker.js +6 -6
- package/dist/entrypoints/tools/mcp.d.ts +12 -0
- package/dist/entrypoints/tools/mcp.d.ts.map +1 -0
- package/dist/entrypoints/tools/mcp.js +45 -0
- package/dist/entrypoints/tools.d.ts +1 -0
- package/dist/entrypoints/tools.d.ts.map +1 -1
- package/dist/entrypoints/tools.js +82 -1147
- package/dist/entrypoints/tracking.js +1 -1
- package/dist/files/boundary.d.ts +2 -8
- package/dist/files/boundary.d.ts.map +1 -1
- package/dist/files/file-io.d.ts +0 -5
- package/dist/files/file-io.d.ts.map +1 -1
- package/dist/files/read.d.ts +2 -2
- package/dist/files/read.d.ts.map +1 -1
- package/dist/index-1a6jtnd9.js +88 -0
- package/dist/{index-fyphpknh.js → index-22rhg58f.js} +1 -1
- package/dist/index-269zqj8m.js +77 -0
- package/dist/{index-r34mvse1.js → index-27a2pj09.js} +1 -1
- package/dist/{index-r956rndn.js → index-2hyavjjj.js} +3 -3
- package/dist/{index-m2xqkv55.js → index-2vnh05w4.js} +83 -14
- package/dist/{index-pw99k9h5.js → index-43p08g7t.js} +1 -1
- package/dist/{index-xwq9j1sf.js → index-4e0ah203.js} +9 -7
- package/dist/{index-nybn2err.js → index-5csmzesf.js} +1 -1
- package/dist/{index-qapzv4p5.js → index-5z6jn897.js} +1 -1
- package/dist/{index-ahvsksw5.js → index-6d9xaxw1.js} +1 -1
- package/dist/{index-ahtnte39.js → index-6drst9sg.js} +46 -35
- package/dist/{index-x87j7csh.js → index-77nxk6ay.js} +2 -2
- package/dist/{index-dnn9z96q.js → index-a0zzh8ak.js} +3 -3
- package/dist/{index-kmpzj1cq.js → index-a3wma1hk.js} +1 -1
- package/dist/{index-j8aw2c0e.js → index-bakgedh8.js} +35 -7
- package/dist/index-bhb950qs.js +1145 -0
- package/dist/{index-tgzhq07n.js → index-cvda079a.js} +1 -1
- package/dist/{index-n2gre124.js → index-fa4wg312.js} +4 -4
- package/dist/{index-zp4jpkp0.js → index-fk18k56k.js} +2 -2
- package/dist/{index-afjvjyck.js → index-g2j7pnak.js} +2 -134
- package/dist/index-g95fk660.js +116 -0
- package/dist/{index-ej331hah.js → index-gxm9rc97.js} +1 -1
- package/dist/{index-r5c4fedv.js → index-h2fhjqy7.js} +2 -1
- package/dist/{index-sybedc8b.js → index-hbd32c6a.js} +23 -94
- package/dist/index-jd470k6q.js +109 -0
- package/dist/{index-b2bz0kdm.js → index-kb8styz3.js} +4 -3
- package/dist/{index-0c419yx7.js → index-kemm0ej5.js} +12 -9
- package/dist/{index-806d5phm.js → index-ptn0g0gj.js} +7 -7
- package/dist/{index-w575evhq.js → index-r4r70zmh.js} +1 -1
- package/dist/{index-12m2v2a9.js → index-s4evrmp5.js} +1 -1
- package/dist/{index-1khy8y7n.js → index-t1sr4aks.js} +3 -3
- package/dist/index-v5ee8ath.js +88 -0
- package/dist/{index-45tdvqa3.js → index-wh0ecvyk.js} +1 -1
- package/dist/{index-n53mswt3.js → index-x928baz2.js} +8 -1
- package/dist/index-yk4g8805.js +133 -0
- package/dist/{index-ygkka6zn.js → index-ywppsaby.js} +28 -5
- package/dist/{index-xvdd2rbb.js → index-za6j7nwy.js} +19 -5
- package/dist/internal/bounded-file-read.d.ts +41 -0
- package/dist/internal/bounded-file-read.d.ts.map +1 -0
- package/dist/internal/darwin-binding-error.d.ts +24 -0
- package/dist/internal/darwin-binding-error.d.ts.map +1 -0
- package/dist/internal/darwin-binding.d.ts.map +1 -1
- package/dist/internal/exclusive-lock.d.ts +2 -0
- package/dist/internal/exclusive-lock.d.ts.map +1 -1
- package/dist/internal/with-exclusive-lock.d.ts +4 -2
- package/dist/internal/with-exclusive-lock.d.ts.map +1 -1
- package/dist/telegram/broadcast-delivery.d.ts +23 -0
- package/dist/telegram/broadcast-delivery.d.ts.map +1 -0
- package/dist/telegram/broadcast-failure.d.ts +22 -0
- package/dist/telegram/broadcast-failure.d.ts.map +1 -0
- package/dist/telegram/broadcast-state.d.ts +6 -3
- package/dist/telegram/broadcast-state.d.ts.map +1 -1
- package/dist/telegram/broadcast.d.ts +10 -5
- package/dist/telegram/broadcast.d.ts.map +1 -1
- package/dist/tools/cli/args-fields.d.ts +2 -0
- package/dist/tools/cli/args-fields.d.ts.map +1 -1
- package/dist/tools/cli/args.d.ts.map +1 -1
- package/dist/tools/cli/format.d.ts.map +1 -1
- package/dist/tools/cli/invoke.d.ts +2 -2
- package/dist/tools/cli/invoke.d.ts.map +1 -1
- package/dist/tools/cli/publication-assets.d.ts +10 -0
- package/dist/tools/cli/publication-assets.d.ts.map +1 -0
- package/dist/tools/cli/publication-contract.d.ts +75 -0
- package/dist/tools/cli/publication-contract.d.ts.map +1 -0
- package/dist/tools/cli/publication-control.d.ts +4 -0
- package/dist/tools/cli/publication-control.d.ts.map +1 -0
- package/dist/tools/cli/publication-storage.d.ts +32 -0
- package/dist/tools/cli/publication-storage.d.ts.map +1 -0
- package/dist/tools/cli/publication.d.ts +35 -0
- package/dist/tools/cli/publication.d.ts.map +1 -0
- package/dist/tools/cli/update.d.ts.map +1 -1
- package/dist/tools/connections/define.d.ts.map +1 -1
- package/dist/tools/connections/error-projection.d.ts +4 -0
- package/dist/tools/connections/error-projection.d.ts.map +1 -0
- package/dist/tools/connections/errors.d.ts +24 -8
- package/dist/tools/connections/errors.d.ts.map +1 -1
- package/dist/tools/connections/limits.d.ts +11 -31
- package/dist/tools/connections/limits.d.ts.map +1 -1
- package/dist/tools/connections/mcp-client.d.ts +6 -4
- package/dist/tools/connections/mcp-client.d.ts.map +1 -1
- package/dist/tools/connections/mcp.d.ts.map +1 -1
- package/dist/tools/connections/openapi.d.ts.map +1 -1
- package/dist/tools/connections/operation-limits.d.ts +25 -0
- package/dist/tools/connections/operation-limits.d.ts.map +1 -0
- package/dist/tools/connections/sse-frames.d.ts +11 -2
- package/dist/tools/connections/sse-frames.d.ts.map +1 -1
- package/dist/tools/connections/sse-session.d.ts +15 -2
- package/dist/tools/connections/sse-session.d.ts.map +1 -1
- package/dist/tools/connections/types.d.ts +19 -1
- package/dist/tools/connections/types.d.ts.map +1 -1
- package/dist/tools/execute-result.d.ts.map +1 -1
- package/dist/tools/execute.d.ts.map +1 -1
- package/dist/tools/internal/observe-hook.d.ts +3 -0
- package/dist/tools/internal/observe-hook.d.ts.map +1 -0
- package/dist/tools/internal/surface-projector.d.ts +2 -1
- package/dist/tools/internal/surface-projector.d.ts.map +1 -1
- package/dist/tools/mcp/mount.d.ts +2 -2
- package/dist/tools/mcp/mount.d.ts.map +1 -1
- package/dist/tools/mcp/prepare.d.ts +4 -5
- package/dist/tools/mcp/prepare.d.ts.map +1 -1
- package/dist/tools/mcp/register.d.ts +4 -1
- package/dist/tools/mcp/register.d.ts.map +1 -1
- package/dist/tools/mcp/runtime-tools.d.ts.map +1 -1
- package/dist/tools/remote.d.ts.map +1 -1
- package/dist/tools/runtime-tool-execution.d.ts +65 -0
- package/dist/tools/runtime-tool-execution.d.ts.map +1 -0
- package/dist/tools/runtime-tool-mcp.d.ts +27 -0
- package/dist/tools/runtime-tool-mcp.d.ts.map +1 -0
- package/dist/tools/runtime-tool.d.ts +9 -60
- package/dist/tools/runtime-tool.d.ts.map +1 -1
- package/dist/tools/surface.d.ts +12 -14
- package/dist/tools/surface.d.ts.map +1 -1
- package/llms/application.2.txt +221 -44
- package/llms/application.3.txt +3 -1
- package/llms/application.txt +1 -1
- package/llms/cli.2.txt +144 -1
- package/llms/cli.txt +133 -104
- package/llms/contract.txt +1 -1
- package/llms/process.txt +34 -5
- package/llms/server.4.txt +4 -1
- package/llms/server.5.txt +1 -0
- package/llms/stitchkit.2.txt +14 -0
- package/llms/stitchkit.txt +5 -4
- package/llms/telegram.txt +64 -2
- package/llms/tools-connections.txt +3 -0
- package/llms/tools-mcp.txt +29 -0
- package/llms/tools.2.txt +59 -0
- package/llms/tools.3.txt +1 -0
- package/llms/tools.txt +11 -52
- package/llms/upgrading-0.37.0-0.44.0.txt +444 -0
- package/llms/{upgrading-0.44.0-0.60.0.txt → upgrading-0.44.0-0.61.0.txt} +140 -271
- package/llms/{upgrading-0.61.0-0.74.0.txt → upgrading-0.62.0-0.79.0.txt} +171 -140
- package/llms/{upgrading-0.75.0-0.103.0.txt → upgrading-0.80.0-0.104.0.txt} +120 -171
- package/llms/upgrading.txt +4 -4
- package/llms-full.txt +677 -64
- package/llms.txt +13 -12
- package/package.json +10 -1
- package/dist/index-d4pa2bgs.js +0 -42
- package/dist/index-wykebpn9.js +0 -221
- package/llms/upgrading-0.37.0.txt +0 -176
- package/dist/{index-69nvze1q.js → index-pptyv13k.js} +3 -3
|
@@ -14,6 +14,8 @@ export interface ErrorEnvelope {
|
|
|
14
14
|
details?: unknown;
|
|
15
15
|
/** A remediation hint. */
|
|
16
16
|
hint?: string;
|
|
17
|
+
/** Explicit retry recommendation. Absent means the status determines the default. */
|
|
18
|
+
retryable?: boolean;
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
@@ -35,12 +37,10 @@ export declare class AppError<TCode extends string = string, TDetails extends Re
|
|
|
35
37
|
/**
|
|
36
38
|
* Whether repeating this call could succeed, when the error declares it.
|
|
37
39
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* derived from `status`; declared, it wins, for the domain failure whose
|
|
43
|
-
* status says one thing and whose truth is the other.
|
|
40
|
+
* An explicit recommendation survives HTTP and tool hops. Left undefined,
|
|
41
|
+
* it is omitted from the HTTP envelope and the tool result derives its
|
|
42
|
+
* default from status. Declared true or false wins without enabling any
|
|
43
|
+
* transport replay policy.
|
|
44
44
|
*/
|
|
45
45
|
readonly retryable?: boolean | undefined;
|
|
46
46
|
constructor(code: TCode, message?: string, status?: number, details?: TDetails | undefined, hint?: string | undefined,
|
|
@@ -53,12 +53,10 @@ export declare class AppError<TCode extends string = string, TDetails extends Re
|
|
|
53
53
|
/**
|
|
54
54
|
* Whether repeating this call could succeed, when the error declares it.
|
|
55
55
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* derived from `status`; declared, it wins, for the domain failure whose
|
|
61
|
-
* status says one thing and whose truth is the other.
|
|
56
|
+
* An explicit recommendation survives HTTP and tool hops. Left undefined,
|
|
57
|
+
* it is omitted from the HTTP envelope and the tool result derives its
|
|
58
|
+
* default from status. Declared true or false wins without enabling any
|
|
59
|
+
* transport replay policy.
|
|
62
60
|
*/
|
|
63
61
|
retryable?: boolean | undefined);
|
|
64
62
|
static is(err: unknown): err is AppError;
|
|
@@ -94,6 +92,8 @@ export declare const STITCH_ERROR_STATUS: {
|
|
|
94
92
|
METHOD_NOT_ALLOWED: number;
|
|
95
93
|
CONFLICT: number;
|
|
96
94
|
RATE_LIMITED: number;
|
|
95
|
+
REQUEST_ABORTED: number;
|
|
96
|
+
REQUEST_TIMEOUT: number;
|
|
97
97
|
VALIDATION_ERROR: number;
|
|
98
98
|
FILE_INVALID_PATH: number;
|
|
99
99
|
FILE_OUTSIDE_ROOT: number;
|
|
@@ -110,6 +110,10 @@ export declare const STITCH_ERROR_STATUS: {
|
|
|
110
110
|
WAIT_FAILED: number;
|
|
111
111
|
DOWNLOAD_NOT_FOUND: number;
|
|
112
112
|
VIEW_HTTP_ERROR: number;
|
|
113
|
+
CONNECTION_TIMEOUT: number;
|
|
114
|
+
CONNECTION_RESPONSE_TOO_LARGE: number;
|
|
115
|
+
CONNECTION_REQUEST_FAILED: number;
|
|
116
|
+
UPSTREAM_TOOL_ERROR: number;
|
|
113
117
|
OPERATION_NOT_SUCCEEDED: number;
|
|
114
118
|
STREAM_ITEM_INVALID: number;
|
|
115
119
|
STREAM_FRAME_TOO_LARGE: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/contract/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE;QACL,2CAA2C;QAC3C,IAAI,EAAE,MAAM,CAAC;QACb,8BAA8B;QAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,gCAAgC;QAChC,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,0BAA0B;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/contract/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE;QACL,2CAA2C;QAC3C,IAAI,EAAE,MAAM,CAAC;QACb,8BAA8B;QAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,gCAAgC;QAChC,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,0BAA0B;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,qFAAqF;QACrF,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAcD;;;;GAIG;AACH,qBAAa,QAAQ,CACnB,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAC1F,SAAQ,KAAK;aAEK,IAAI,EAAE,KAAK;aAEX,MAAM,EAAE,MAAM;aACd,OAAO,CAAC,EAAE,QAAQ;aAClB,IAAI,CAAC,EAAE,MAAM;IAC7B;;;;OAIG;aACa,OAAO,CAAC,EAAE,MAAM;IAChC;;;;;;;OAOG;aACa,SAAS,CAAC,EAAE,OAAO;IApBrC,YACkB,IAAI,EAAE,KAAK,EAC3B,OAAO,CAAC,EAAE,MAAM,EACA,MAAM,GAAE,MAAY,EACpB,OAAO,CAAC,EAAE,QAAQ,YAAA,EAClB,IAAI,CAAC,EAAE,MAAM,YAAA;IAC7B;;;;OAIG;IACa,OAAO,CAAC,EAAE,MAAM,YAAA;IAChC;;;;;;;OAOG;IACa,SAAS,CAAC,EAAE,OAAO,YAAA,EAQpC;IAED,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,QAAQ,CAEvC;IAED,MAAM,IAAI,aAAa,CAUtB;CACF;AAED,qCAAqC;AACrC,wBAAgB,QAAQ,CAAC,OAAO,SAAc,GAAG,KAAK,CAErD;AAED,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAEpF;AAED,wCAAwC;AACxC,wBAAgB,YAAY,CAAC,OAAO,SAAiB,GAAG,KAAK,CAE5D;AAED,qCAAqC;AACrC,wBAAgB,SAAS,CAAC,OAAO,SAAc,GAAG,KAAK,CAEtD;AAED,0EAA0E;AAC1E,wBAAgB,QAAQ,CAAC,OAAO,SAAa,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAEvF;AAED,wCAAwC;AACxC,wBAAgB,WAAW,CAAC,OAAO,SAAsB,GAAG,KAAK,CAEhE;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DE,CAAC;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAIzD;AAED,mFAAmF;AACnF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAE/D,iEAAiE;AACjE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,eAAe,CAEvE;AAED,+FAA+F;AAC/F,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,KAAK,CAOP"}
|
|
@@ -22,7 +22,11 @@ export declare function errorCode(err: unknown): string | undefined;
|
|
|
22
22
|
* paths so that line is one rule in one place. → ADR 0042.
|
|
23
23
|
*/
|
|
24
24
|
export declare function recordedErrorMessage(code: string, envelopeMessage: string | undefined, thrown: unknown): string | undefined;
|
|
25
|
-
|
|
25
|
+
/** Internal transport policy; HTTP records unexpected causes, tool runners retain them out-of-band. */
|
|
26
|
+
export interface NormalizeErrorOptions {
|
|
27
|
+
logUnexpected?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare function normalizeError(err: unknown, options?: NormalizeErrorOptions): AppError;
|
|
26
30
|
/**
|
|
27
31
|
* Validate a handler's return value against the contract `output` schema. A
|
|
28
32
|
* mismatch is a **server** fault (the handler broke its own contract) — shared
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../src/contract/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAK,MAAM,KAAK,CAAC;AAGtC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAapC;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAI1D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,MAAM,EAAE,OAAO,GACd,MAAM,GAAG,SAAS,CAYpB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../src/contract/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAK,MAAM,KAAK,CAAC;AAGtC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAapC;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAI1D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,MAAM,EAAE,OAAO,GACd,MAAM,GAAG,SAAS,CAYpB;AAED,uGAAuG;AACvG,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAE,qBAA0B,GAAG,QAAQ,CAyB1F;AA4BD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,OAAO,EACb,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,GACrC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAe9D;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,GAAG,SAAS,EAC3B,IAAI,EAAE,OAAO,EACb,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,GACrC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAe9D"}
|
|
@@ -11,6 +11,7 @@ export declare const ContractStreamFrameSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
11
11
|
message: z.ZodOptional<z.ZodString>;
|
|
12
12
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
13
13
|
hint: z.ZodOptional<z.ZodString>;
|
|
14
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
}, z.core.$strict>;
|
|
15
16
|
}, z.core.$strict>, z.ZodObject<{
|
|
16
17
|
type: z.ZodLiteral<"end">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/contract/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yEAAyE;AACzE,eAAO,MAAM,mCAAmC,QAAa,CAAC;AAE9D,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/contract/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yEAAyE;AACzE,eAAO,MAAM,mCAAmC,QAAa,CAAC;AAE9D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;4BAiBpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -67,12 +67,12 @@ import {
|
|
|
67
67
|
AgentBrowserRequestSchema2,
|
|
68
68
|
agentControlRealtimeContract2
|
|
69
69
|
} from "../../index-20yvtn9a.js";
|
|
70
|
-
import"../../index-
|
|
71
|
-
import"../../index-
|
|
70
|
+
import"../../index-x928baz2.js";
|
|
71
|
+
import"../../index-43p08g7t.js";
|
|
72
72
|
import"../../index-4s0fep5q.js";
|
|
73
73
|
import {
|
|
74
74
|
bindRealtimeClient2
|
|
75
|
-
} from "../../index-
|
|
75
|
+
} from "../../index-27a2pj09.js";
|
|
76
76
|
// src/agent-runtime/browser-controller.ts
|
|
77
77
|
function refreshed(view, snapshot) {
|
|
78
78
|
const current = view.conversations[snapshot.conversationId];
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import"../../index-ct75c3at.js";
|
|
2
|
-
import"../../index-
|
|
3
|
-
import"../../index-
|
|
4
|
-
import"../../index-
|
|
2
|
+
import"../../index-77nxk6ay.js";
|
|
3
|
+
import"../../index-x928baz2.js";
|
|
4
|
+
import"../../index-kb8styz3.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentCodingToolLimitsSchema2,
|
|
7
7
|
AgentCodingToolAuthorizationSchema2,
|
|
8
8
|
AgentCodingToolPathAuthorizationSchema2,
|
|
9
9
|
createAgentCodingTools2
|
|
10
|
-
} from "../../index-
|
|
10
|
+
} from "../../index-ptn0g0gj.js";
|
|
11
|
+
import"../../index-v5ee8ath.js";
|
|
11
12
|
import"../../index-f330qqyg.js";
|
|
12
|
-
import"../../index-
|
|
13
|
-
import"../../index-
|
|
13
|
+
import"../../index-6d9xaxw1.js";
|
|
14
|
+
import"../../index-gxm9rc97.js";
|
|
15
|
+
import"../../index-cvda079a.js";
|
|
14
16
|
export {
|
|
15
17
|
AgentCodingToolAuthorizationSchema2 as AgentCodingToolAuthorizationSchema,
|
|
16
18
|
AgentCodingToolLimitsSchema2 as AgentCodingToolLimitsSchema,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import"../../index-nggfa2yn.js";
|
|
2
|
-
import"../../index-
|
|
3
|
-
import"../../index-
|
|
2
|
+
import"../../index-x928baz2.js";
|
|
3
|
+
import"../../index-kb8styz3.js";
|
|
4
4
|
import"../../index-yex7eg1v.js";
|
|
5
5
|
import"../../index-9pw0a51a.js";
|
|
6
6
|
import"../../index-ct75c3at.js";
|
|
7
|
-
import"../../index-
|
|
8
|
-
import"../../index-
|
|
9
|
-
import"../../index-
|
|
7
|
+
import"../../index-77nxk6ay.js";
|
|
8
|
+
import"../../index-2vnh05w4.js";
|
|
9
|
+
import"../../index-2hyavjjj.js";
|
|
10
10
|
import {
|
|
11
11
|
mountAgent2
|
|
12
|
-
} from "../../index-
|
|
12
|
+
} from "../../index-t1sr4aks.js";
|
|
13
13
|
import {
|
|
14
14
|
composeToolLifecycle2
|
|
15
15
|
} from "../../index-ze1eph1k.js";
|
|
16
|
-
import"../../index-
|
|
16
|
+
import"../../index-a0zzh8ak.js";
|
|
17
|
+
import"../../index-cvda079a.js";
|
|
17
18
|
import"../../index-7n68nmc6.js";
|
|
18
|
-
import"../../index-tgzhq07n.js";
|
|
19
19
|
|
|
20
20
|
// src/agent-runtime/harness-tools.ts
|
|
21
21
|
function createAgentHarnessTools(resolve) {
|
|
@@ -5,31 +5,32 @@ import"../../index-8kzct1d6.js";
|
|
|
5
5
|
import {
|
|
6
6
|
composeAgentPrompt2,
|
|
7
7
|
createAgentRuntime2
|
|
8
|
-
} from "../../index-
|
|
8
|
+
} from "../../index-fk18k56k.js";
|
|
9
9
|
import"../../index-h97tqqp1.js";
|
|
10
10
|
import"../../index-mnkk1ffz.js";
|
|
11
|
-
import"../../index-
|
|
12
|
-
import"../../index-
|
|
11
|
+
import"../../index-x928baz2.js";
|
|
12
|
+
import"../../index-kb8styz3.js";
|
|
13
13
|
import"../../index-yex7eg1v.js";
|
|
14
14
|
import"../../index-9pw0a51a.js";
|
|
15
15
|
import"../../index-ct75c3at.js";
|
|
16
|
-
import"../../index-
|
|
17
|
-
import"../../index-
|
|
18
|
-
import"../../index-
|
|
16
|
+
import"../../index-77nxk6ay.js";
|
|
17
|
+
import"../../index-2vnh05w4.js";
|
|
18
|
+
import"../../index-pptyv13k.js";
|
|
19
19
|
import"../../index-nggfa2yn.js";
|
|
20
20
|
import"../../index-r5hsgkz5.js";
|
|
21
|
+
import"../../index-v5ee8ath.js";
|
|
21
22
|
import"../../index-n5yqxd3d.js";
|
|
23
|
+
import {
|
|
24
|
+
walkContainedFiles
|
|
25
|
+
} from "../../index-gxm9rc97.js";
|
|
22
26
|
import {
|
|
23
27
|
createAgentHarnessControlServer2
|
|
24
28
|
} from "../../index-jn9g8xdt.js";
|
|
25
29
|
import"../../index-vgkbcnkc.js";
|
|
26
|
-
import {
|
|
27
|
-
walkContainedFiles
|
|
28
|
-
} from "../../index-ej331hah.js";
|
|
29
|
-
import"../../index-7n68nmc6.js";
|
|
30
30
|
import {
|
|
31
31
|
defineRuntimeTool2
|
|
32
|
-
} from "../../index-
|
|
32
|
+
} from "../../index-cvda079a.js";
|
|
33
|
+
import"../../index-7n68nmc6.js";
|
|
33
34
|
|
|
34
35
|
// src/agent-runtime/harness-contract.ts
|
|
35
36
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import"../../index-
|
|
2
|
-
import"../../index-
|
|
1
|
+
import"../../index-x928baz2.js";
|
|
2
|
+
import"../../index-43p08g7t.js";
|
|
3
3
|
import"../../index-4s0fep5q.js";
|
|
4
4
|
import"../../index-814xpr6d.js";
|
|
5
5
|
import"../../index-8kzct1d6.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "../../index-jn9g8xdt.js";
|
|
15
15
|
import {
|
|
16
16
|
bindRealtimeServer2
|
|
17
|
-
} from "../../index-
|
|
17
|
+
} from "../../index-5z6jn897.js";
|
|
18
18
|
import"../../index-vgkbcnkc.js";
|
|
19
19
|
|
|
20
20
|
// src/agent-runtime/harness-realtime.ts
|
|
@@ -2,21 +2,23 @@ import {
|
|
|
2
2
|
probeAgentProcessSandbox2,
|
|
3
3
|
missingSandboxRestrictions2,
|
|
4
4
|
codingRefusal
|
|
5
|
-
} from "../../index-
|
|
6
|
-
import"../../index-
|
|
5
|
+
} from "../../index-6d9xaxw1.js";
|
|
6
|
+
import"../../index-x928baz2.js";
|
|
7
7
|
import"../../index-ct75c3at.js";
|
|
8
|
-
import"../../index-
|
|
9
|
-
import"../../index-
|
|
8
|
+
import"../../index-77nxk6ay.js";
|
|
9
|
+
import"../../index-kb8styz3.js";
|
|
10
10
|
import {
|
|
11
11
|
createAgentCodingTools2
|
|
12
|
-
} from "../../index-
|
|
12
|
+
} from "../../index-ptn0g0gj.js";
|
|
13
|
+
import"../../index-v5ee8ath.js";
|
|
13
14
|
import {
|
|
14
15
|
NativeCommandError2,
|
|
15
16
|
spawnOwnedCommand,
|
|
16
17
|
nativeCommandOwner,
|
|
17
18
|
startNativeCommand
|
|
18
19
|
} from "../../index-f330qqyg.js";
|
|
19
|
-
import"../../index-
|
|
20
|
+
import"../../index-gxm9rc97.js";
|
|
21
|
+
import"../../index-cvda079a.js";
|
|
20
22
|
|
|
21
23
|
// src/agent-runtime/sandbox-bubblewrap.ts
|
|
22
24
|
import { mkdir as mkdir2, mkdtemp, realpath, rm as rm2 } from "node:fs/promises";
|
|
@@ -110,27 +110,27 @@ import {
|
|
|
110
110
|
agentGoalStateSlot2,
|
|
111
111
|
agentTodoStateSlot2,
|
|
112
112
|
createAgentRuntime2
|
|
113
|
-
} from "../index-
|
|
113
|
+
} from "../index-fk18k56k.js";
|
|
114
114
|
import {
|
|
115
115
|
AgentConversationSummarySchema2,
|
|
116
116
|
AgentConversationPageSchema2,
|
|
117
117
|
AgentConversationMessagePageSchema2
|
|
118
118
|
} from "../index-kqnd6a85.js";
|
|
119
119
|
import"../index-nggfa2yn.js";
|
|
120
|
-
import"../index-
|
|
121
|
-
import"../index-
|
|
120
|
+
import"../index-x928baz2.js";
|
|
121
|
+
import"../index-kb8styz3.js";
|
|
122
122
|
import {
|
|
123
123
|
createTraceContext2,
|
|
124
124
|
childSpan2
|
|
125
125
|
} from "../index-yex7eg1v.js";
|
|
126
126
|
import"../index-9pw0a51a.js";
|
|
127
127
|
import"../index-ct75c3at.js";
|
|
128
|
-
import"../index-
|
|
129
|
-
import"../index-
|
|
130
|
-
import"../index-
|
|
128
|
+
import"../index-77nxk6ay.js";
|
|
129
|
+
import"../index-2vnh05w4.js";
|
|
130
|
+
import"../index-2hyavjjj.js";
|
|
131
131
|
import {
|
|
132
132
|
mountAgent2
|
|
133
|
-
} from "../index-
|
|
133
|
+
} from "../index-t1sr4aks.js";
|
|
134
134
|
import {
|
|
135
135
|
createBoundedSinkManager
|
|
136
136
|
} from "../index-h97tqqp1.js";
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
StepAbortedError2,
|
|
176
176
|
ParkRecordDecodeError2,
|
|
177
177
|
ParkAbortedError2
|
|
178
|
-
} from "../index-
|
|
178
|
+
} from "../index-pptyv13k.js";
|
|
179
179
|
import {
|
|
180
180
|
AgentSandboxRestrictionSchema2,
|
|
181
181
|
AgentSandboxGradeSchema2,
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
missingSandboxRestrictions2,
|
|
184
184
|
recordAgentSandboxProbe2,
|
|
185
185
|
refuseUnknownSpillReference
|
|
186
|
-
} from "../index-
|
|
186
|
+
} from "../index-6d9xaxw1.js";
|
|
187
187
|
import {
|
|
188
188
|
createMemoryAgentRuntimeStore2
|
|
189
189
|
} from "../index-adhgd4pe.js";
|
|
@@ -192,13 +192,13 @@ import {
|
|
|
192
192
|
} from "../index-vgkbcnkc.js";
|
|
193
193
|
import {
|
|
194
194
|
buildToolManifest2
|
|
195
|
-
} from "../index-
|
|
196
|
-
import"../index-
|
|
197
|
-
import"../index-7n68nmc6.js";
|
|
195
|
+
} from "../index-a3wma1hk.js";
|
|
196
|
+
import"../index-a0zzh8ak.js";
|
|
198
197
|
import {
|
|
199
198
|
defineRuntimeTool2,
|
|
200
199
|
executableAgentRuntimeTools
|
|
201
|
-
} from "../index-
|
|
200
|
+
} from "../index-cvda079a.js";
|
|
201
|
+
import"../index-7n68nmc6.js";
|
|
202
202
|
|
|
203
203
|
// src/agent-runtime/child-tools.ts
|
|
204
204
|
import { z as z2 } from "zod";
|
|
@@ -16,8 +16,9 @@ import {
|
|
|
16
16
|
} from "../../index-w0eqdhyd.js";
|
|
17
17
|
import {
|
|
18
18
|
attemptExclusiveLock
|
|
19
|
-
} from "../../index-
|
|
20
|
-
import"../../index-
|
|
19
|
+
} from "../../index-za6j7nwy.js";
|
|
20
|
+
import"../../index-5csmzesf.js";
|
|
21
|
+
import"../../index-v5ee8ath.js";
|
|
21
22
|
import {
|
|
22
23
|
isRecord
|
|
23
24
|
} from "../../index-9jfdm5tg.js";
|