stitchkit 0.104.1 → 0.105.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 +381 -12
- package/darwin-native.cjs +4 -2
- package/dist/agent-runtime/browser-control-contract.d.ts +32 -2
- package/dist/agent-runtime/browser-control-contract.d.ts.map +1 -1
- package/dist/agent-runtime/browser-controller.d.ts +21 -3
- package/dist/agent-runtime/browser-controller.d.ts.map +1 -1
- package/dist/agent-runtime/coding-shell-process.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-refusals.d.ts +1 -0
- package/dist/agent-runtime/coding-tool-refusals.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-shell.d.ts.map +1 -1
- package/dist/agent-runtime/compaction.d.ts.map +1 -1
- package/dist/agent-runtime/contained-write.d.ts.map +1 -1
- package/dist/agent-runtime/control-schema.d.ts +48 -1
- package/dist/agent-runtime/control-schema.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tool-search.d.ts +3 -2
- package/dist/agent-runtime/deferred-tool-search.d.ts.map +1 -1
- package/dist/agent-runtime/harness-control.d.ts.map +1 -1
- package/dist/agent-runtime/harness-realtime.d.ts +34 -4
- package/dist/agent-runtime/harness-realtime.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-recovery.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-state.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox-contract.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox-process-owner.d.ts +9 -1
- package/dist/agent-runtime/sandbox-process-owner.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox.d.ts +32 -1
- package/dist/agent-runtime/sandbox.d.ts.map +1 -1
- package/dist/agent-runtime/schedule-records.d.ts.map +1 -1
- package/dist/agent-runtime/schedules.d.ts.map +1 -1
- package/dist/agent-runtime/store-events.d.ts +9 -4
- package/dist/agent-runtime/store-events.d.ts.map +1 -1
- package/dist/agent-runtime/testing.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-contract.d.ts +50 -0
- package/dist/application/diagnostic-journal-contract.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-generations.d.ts +24 -0
- package/dist/application/diagnostic-journal-generations.d.ts.map +1 -0
- package/dist/application/diagnostic-journal-manager.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-open.d.ts +10 -0
- package/dist/application/diagnostic-journal-open.d.ts.map +1 -0
- package/dist/application/diagnostic-journal-quarantine.d.ts +28 -0
- package/dist/application/diagnostic-journal-quarantine.d.ts.map +1 -0
- package/dist/application/diagnostic-journal-read-contract.d.ts +73 -3
- package/dist/application/diagnostic-journal-read-contract.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-reader.d.ts +17 -2
- package/dist/application/diagnostic-journal-reader.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-recovery.d.ts +18 -2
- package/dist/application/diagnostic-journal-recovery.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-storage.d.ts +6 -2
- package/dist/application/diagnostic-journal-storage.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-tail.d.ts +12 -0
- package/dist/application/diagnostic-journal-tail.d.ts.map +1 -0
- package/dist/application/diagnostic-journal.d.ts +3 -0
- package/dist/application/diagnostic-journal.d.ts.map +1 -1
- package/dist/application/directory-inbox-accept.d.ts +3 -3
- package/dist/application/directory-inbox-accept.d.ts.map +1 -1
- package/dist/application/directory-inbox-contract.d.ts +38 -10
- package/dist/application/directory-inbox-contract.d.ts.map +1 -1
- package/dist/application/directory-inbox-delivery.d.ts +3 -3
- package/dist/application/directory-inbox-delivery.d.ts.map +1 -1
- package/dist/application/directory-inbox-files.d.ts +17 -2
- package/dist/application/directory-inbox-files.d.ts.map +1 -1
- package/dist/application/directory-inbox-state.d.ts +1 -1
- package/dist/application/directory-inbox-state.d.ts.map +1 -1
- package/dist/application/directory-inbox.d.ts +1 -1
- package/dist/application/directory-inbox.d.ts.map +1 -1
- package/dist/application/file-state-store.d.ts +21 -1
- package/dist/application/file-state-store.d.ts.map +1 -1
- package/dist/application/grammy.d.ts.map +1 -1
- package/dist/application/kernel-contract.d.ts.map +1 -1
- package/dist/application/revision-signal.d.ts.map +1 -1
- package/dist/application/state-store.d.ts +3 -0
- package/dist/application/state-store.d.ts.map +1 -1
- package/dist/browser/api-error.d.ts +38 -0
- package/dist/browser/api-error.d.ts.map +1 -0
- package/dist/browser/chunked-upload.d.ts.map +1 -1
- package/dist/browser/client-executors.d.ts.map +1 -1
- package/dist/browser/client-url.d.ts.map +1 -1
- package/dist/browser/contract-stream.d.ts.map +1 -1
- package/dist/browser/http.d.ts +0 -25
- package/dist/browser/http.d.ts.map +1 -1
- package/dist/browser/resumable.d.ts.map +1 -1
- package/dist/contract/define-validation.d.ts +0 -1
- package/dist/contract/define-validation.d.ts.map +1 -1
- package/dist/contract/define.d.ts.map +1 -1
- package/dist/contract/errors-factory.d.ts.map +1 -1
- package/dist/contract/errors.d.ts +15 -18
- package/dist/contract/errors.d.ts.map +1 -1
- package/dist/contract/normalize.d.ts.map +1 -1
- package/dist/durability/effect.d.ts.map +1 -1
- package/dist/durability/scheduler.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/browser.js +29 -18
- package/dist/entrypoints/agent-runtime/coding-tools.js +8 -7
- package/dist/entrypoints/agent-runtime/harness.js +15 -14
- package/dist/entrypoints/agent-runtime/realtime.d.ts +1 -1
- package/dist/entrypoints/agent-runtime/realtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/realtime.js +119 -54
- package/dist/entrypoints/agent-runtime/sandbox.js +23 -17
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +4 -3
- package/dist/entrypoints/agent-runtime/sqlite/node.js +4 -3
- package/dist/entrypoints/agent-runtime/testing.js +8 -6
- package/dist/entrypoints/agent-runtime.js +37 -38
- package/dist/entrypoints/application/diagnostic-journal.js +305 -111
- package/dist/entrypoints/application/directory-inbox.js +174 -77
- package/dist/entrypoints/application/grammy.js +5 -2
- package/dist/entrypoints/application/opentelemetry.js +2 -2
- package/dist/entrypoints/application.d.ts +2 -2
- package/dist/entrypoints/application.d.ts.map +1 -1
- package/dist/entrypoints/application.js +17 -8
- package/dist/entrypoints/cli/publish.d.ts +16 -0
- package/dist/entrypoints/cli/publish.d.ts.map +1 -0
- package/dist/entrypoints/cli/publish.js +527 -0
- package/dist/entrypoints/cli.d.ts +1 -2
- package/dist/entrypoints/cli.d.ts.map +1 -1
- package/dist/entrypoints/cli.js +59 -966
- package/dist/entrypoints/contract.js +3 -3
- package/dist/entrypoints/files/packaging.js +196 -56
- package/dist/entrypoints/files.d.ts +1 -0
- package/dist/entrypoints/files.d.ts.map +1 -1
- package/dist/entrypoints/files.js +17 -10
- package/dist/entrypoints/index.d.ts +2 -1
- package/dist/entrypoints/index.d.ts.map +1 -1
- package/dist/entrypoints/index.js +31 -60
- package/dist/entrypoints/node.js +8 -8
- package/dist/entrypoints/observability.js +3 -3
- package/dist/entrypoints/primitives.js +67 -83
- package/dist/entrypoints/process.d.ts +1 -1
- package/dist/entrypoints/process.d.ts.map +1 -1
- package/dist/entrypoints/process.js +2 -2
- package/dist/entrypoints/react.js +4 -2
- package/dist/entrypoints/remote.js +37 -13
- package/dist/entrypoints/server.js +18 -16
- package/dist/entrypoints/telegram/screens.js +5 -3
- package/dist/entrypoints/telegram.js +31 -46
- package/dist/entrypoints/testing.d.ts +1 -1
- package/dist/entrypoints/testing.d.ts.map +1 -1
- package/dist/entrypoints/testing.js +444 -448
- package/dist/entrypoints/tools/connections.js +268 -105
- package/dist/entrypoints/tools/contract.js +2 -2
- package/dist/entrypoints/tools/invoker.js +8 -7
- package/dist/entrypoints/tools/mcp.d.ts +2 -2
- package/dist/entrypoints/tools/mcp.d.ts.map +1 -1
- package/dist/entrypoints/tools/mcp.js +10 -9
- package/dist/entrypoints/tools.d.ts +0 -1
- package/dist/entrypoints/tools.d.ts.map +1 -1
- package/dist/entrypoints/tools.js +118 -53
- package/dist/entrypoints/tracking.js +2 -3
- package/dist/files/boundary.d.ts +2 -2
- package/dist/files/boundary.d.ts.map +1 -1
- package/dist/files/chunk-spool.d.ts.map +1 -1
- package/dist/files/file-io.d.ts +2 -2
- package/dist/files/file-io.d.ts.map +1 -1
- package/dist/files/native-packaging-layout.d.ts +50 -4
- package/dist/files/native-packaging-layout.d.ts.map +1 -1
- package/dist/files/native-packaging.d.ts +104 -21
- package/dist/files/native-packaging.d.ts.map +1 -1
- package/dist/{index-r5hsgkz5.js → index-0gs4ymfj.js} +6 -3
- package/dist/{index-zax7resm.js → index-0gxvns6s.js} +1 -13
- package/dist/index-0s4xebbg.js +8 -0
- package/dist/{index-r4r70zmh.js → index-12zsej7b.js} +5 -2
- package/dist/{index-kemm0ej5.js → index-1pwwan01.js} +65 -22
- package/dist/{index-vgkbcnkc.js → index-299sm5tr.js} +1 -1
- package/dist/{index-2vnh05w4.js → index-2k91mewf.js} +31 -74
- package/dist/{index-269zqj8m.js → index-2rc6jd9n.js} +28 -12
- package/dist/{index-wh0ecvyk.js → index-37asdw3a.js} +1 -1
- package/dist/index-3h0ztg0z.js +285 -0
- package/dist/{index-g95fk660.js → index-4vsby8n8.js} +8 -15
- package/dist/index-556g5hsh.js +17 -0
- package/dist/{index-adhgd4pe.js → index-5p55xreg.js} +2 -2
- package/dist/index-5w6t91ze.js +47 -0
- package/dist/{index-9pw0a51a.js → index-6yxhe58g.js} +40 -7
- package/dist/{index-6d9xaxw1.js → index-8ks9b85e.js} +33 -5
- package/dist/{index-bhb950qs.js → index-916yh4e2.js} +25 -12
- package/dist/index-9tqbxv5p.js +44 -0
- package/dist/{index-5csmzesf.js → index-azx12jgv.js} +4 -3
- package/dist/{index-mbnnw3f2.js → index-b0kddvzw.js} +15 -5
- package/dist/{index-n5yqxd3d.js → index-b0w7rbpt.js} +23 -2
- package/dist/index-b56nnscm.js +132 -0
- package/dist/{index-0ndk4555.js → index-c0hffcmj.js} +2 -2
- package/dist/{index-pptyv13k.js → index-c17xcx4k.js} +42 -6
- package/dist/{index-g2j7pnak.js → index-cmzvhhtd.js} +5 -2
- package/dist/index-cq59agna.js +51 -0
- package/dist/{index-ssmd41kh.js → index-d2h99n7d.js} +1 -1
- package/dist/{index-z94wht4y.js → index-dky0dcmf.js} +34 -5
- package/dist/{index-za6j7nwy.js → index-dsnjzb62.js} +104 -51
- package/dist/index-eemvahkc.js +21 -0
- package/dist/index-ef8gdaq0.js +105 -0
- package/dist/{index-fa4wg312.js → index-f199nfq5.js} +10 -6
- package/dist/{index-ck71tbcf.js → index-fsw1ybf3.js} +11 -15
- package/dist/{index-f330qqyg.js → index-g2vfg7ak.js} +217 -63
- package/dist/{index-fk18k56k.js → index-gr5g3xfw.js} +11 -18
- package/dist/{index-jn9g8xdt.js → index-hjvje0pf.js} +6 -4
- package/dist/{index-x928baz2.js → index-j9gxbztg.js} +18 -14
- package/dist/index-kfjkb396.js +37 -0
- package/dist/{index-6drst9sg.js → index-ksfagmyz.js} +45 -345
- package/dist/index-m616f0yz.js +120 -0
- package/dist/{index-fm1c1a08.js → index-m6w6jtda.js} +40 -21
- package/dist/{index-ptn0g0gj.js → index-ma963wz7.js} +21 -20
- package/dist/{index-bakgedh8.js → index-msfpyy2f.js} +2 -4
- package/dist/{index-ywppsaby.js → index-n1nszyk0.js} +23 -34
- package/dist/{index-v14qqmys.js → index-n4689krb.js} +1 -1
- package/dist/{index-a0zzh8ak.js → index-pz3y6b6g.js} +3 -3
- package/dist/{index-43p08g7t.js → index-pzb63z66.js} +12 -8
- package/dist/{index-h97tqqp1.js → index-qaet40b2.js} +5 -3
- package/dist/{index-t1sr4aks.js → index-qaqbdm7s.js} +52 -6
- package/dist/{index-77nxk6ay.js → index-r393tnfp.js} +16 -10
- package/dist/{index-kb8styz3.js → index-rpzewktb.js} +15 -5
- package/dist/{index-27a2pj09.js → index-sj28htvf.js} +1 -1
- package/dist/index-szybbezc.js +455 -0
- package/dist/{index-2hyavjjj.js → index-wbhdzxar.js} +3 -3
- package/dist/{index-4e0ah203.js → index-wdy68sh6.js} +47 -24
- package/dist/{index-hbd32c6a.js → index-wqmvtnkp.js} +38 -89
- package/dist/{index-hp9d77wk.js → index-x7w1z6pf.js} +15 -4
- package/dist/{index-20yvtn9a.js → index-yt7gyg5x.js} +1 -1
- package/dist/{index-cvda079a.js → index-yvfk3y36.js} +12 -2
- package/dist/{index-5z6jn897.js → index-z23rfxhj.js} +1 -1
- package/dist/internal/abort-race.d.ts +8 -2
- package/dist/internal/abort-race.d.ts.map +1 -1
- package/dist/internal/atomic-file.d.ts +55 -9
- package/dist/internal/atomic-file.d.ts.map +1 -1
- package/dist/internal/atomic-publication.d.ts +39 -4
- package/dist/internal/atomic-publication.d.ts.map +1 -1
- package/dist/internal/atomic-staging.d.ts +46 -0
- package/dist/internal/atomic-staging.d.ts.map +1 -0
- package/dist/internal/bounded-file-read.d.ts +19 -11
- package/dist/internal/bounded-file-read.d.ts.map +1 -1
- package/dist/internal/bounded-lines.d.ts.map +1 -1
- package/dist/internal/close-after.d.ts +11 -0
- package/dist/internal/close-after.d.ts.map +1 -0
- package/dist/internal/deadline.d.ts +10 -0
- package/dist/internal/deadline.d.ts.map +1 -1
- package/dist/internal/exclusive-lock-read.d.ts +10 -12
- package/dist/internal/exclusive-lock-read.d.ts.map +1 -1
- package/dist/internal/exclusive-lock.d.ts +2 -2
- package/dist/internal/exclusive-lock.d.ts.map +1 -1
- package/dist/internal/file-observation.d.ts +14 -0
- package/dist/internal/file-observation.d.ts.map +1 -0
- package/dist/internal/json-data.d.ts +22 -5
- package/dist/internal/json-data.d.ts.map +1 -1
- package/dist/internal/positive-integer.d.ts +9 -0
- package/dist/internal/positive-integer.d.ts.map +1 -0
- package/dist/internal/process-instance.d.ts +35 -5
- package/dist/internal/process-instance.d.ts.map +1 -1
- package/dist/internal/secure-fetch.d.ts.map +1 -1
- package/dist/internal/timers.d.ts +11 -0
- package/dist/internal/timers.d.ts.map +1 -0
- package/dist/internal/with-exclusive-lock.d.ts +5 -4
- package/dist/internal/with-exclusive-lock.d.ts.map +1 -1
- package/dist/observability/bounded-sink.d.ts.map +1 -1
- package/dist/primitives/canonical-json.d.ts +23 -2
- package/dist/primitives/canonical-json.d.ts.map +1 -1
- package/dist/primitives/delivery.d.ts.map +1 -1
- package/dist/primitives/index.d.ts +1 -1
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/money.d.ts.map +1 -1
- package/dist/process/cleanup.d.ts +6 -1
- package/dist/process/cleanup.d.ts.map +1 -1
- package/dist/process/command-lifetime.d.ts +4 -0
- package/dist/process/command-lifetime.d.ts.map +1 -1
- package/dist/process/command-owner.d.ts.map +1 -1
- package/dist/process/command.d.ts +4 -0
- package/dist/process/command.d.ts.map +1 -1
- package/dist/process/contract.d.ts +67 -2
- package/dist/process/contract.d.ts.map +1 -1
- package/dist/process/group.d.ts +40 -3
- package/dist/process/group.d.ts.map +1 -1
- package/dist/process/launch.d.ts +12 -1
- package/dist/process/launch.d.ts.map +1 -1
- package/dist/process/terminate.d.ts +39 -0
- package/dist/process/terminate.d.ts.map +1 -0
- package/dist/react/query-client.d.ts.map +1 -1
- package/dist/realtime/rejection.d.ts.map +1 -1
- package/dist/server/contract-stream.d.ts.map +1 -1
- package/dist/server/handler-state.d.ts.map +1 -1
- package/dist/server/implement.d.ts.map +1 -1
- package/dist/server/request-body.d.ts +0 -1
- package/dist/server/request-body.d.ts.map +1 -1
- package/dist/server/unix-client.d.ts.map +1 -1
- package/dist/telegram/broadcast-delivery.d.ts.map +1 -1
- package/dist/telegram/broadcast-failure.d.ts +10 -2
- package/dist/telegram/broadcast-failure.d.ts.map +1 -1
- package/dist/telegram/operator-channel.d.ts.map +1 -1
- package/dist/telegram/screens/outcome.d.ts.map +1 -1
- package/dist/testing/surface-conformance.d.ts +1 -1
- package/dist/testing/surface-conformance.d.ts.map +1 -1
- package/dist/testing/surface-manifest.d.ts +0 -6
- package/dist/testing/surface-manifest.d.ts.map +1 -1
- package/dist/tools/agent.d.ts +1 -1
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/cli/args.d.ts +1 -1
- package/dist/tools/cli/args.d.ts.map +1 -1
- package/dist/tools/cli/help.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/profile.d.ts.map +1 -1
- package/dist/tools/cli/publication-assets.d.ts.map +1 -1
- package/dist/tools/cli/publication-contract.d.ts +8 -0
- package/dist/tools/cli/publication-contract.d.ts.map +1 -1
- package/dist/tools/cli/publication-control.d.ts.map +1 -1
- package/dist/tools/cli/publication-storage.d.ts +23 -2
- package/dist/tools/cli/publication-storage.d.ts.map +1 -1
- package/dist/tools/cli/publication.d.ts +8 -1
- package/dist/tools/cli/publication.d.ts.map +1 -1
- package/dist/tools/connections/errors.d.ts +18 -6
- package/dist/tools/connections/errors.d.ts.map +1 -1
- package/dist/tools/connections/limits.d.ts +8 -2
- package/dist/tools/connections/limits.d.ts.map +1 -1
- package/dist/tools/connections/mcp-client.d.ts.map +1 -1
- package/dist/tools/connections/mcp-envelope.d.ts.map +1 -1
- package/dist/tools/connections/openapi.d.ts.map +1 -1
- package/dist/tools/connections/schema-budget.d.ts +1 -1
- package/dist/tools/connections/schema-budget.d.ts.map +1 -1
- package/dist/tools/connections/sse-session.d.ts.map +1 -1
- package/dist/tools/execute-args.d.ts.map +1 -1
- package/dist/tools/execute-result.d.ts.map +1 -1
- package/dist/tools/internal/surface-projector.d.ts +17 -3
- package/dist/tools/internal/surface-projector.d.ts.map +1 -1
- package/dist/tools/internal/tool-error-projection.d.ts +16 -0
- package/dist/tools/internal/tool-error-projection.d.ts.map +1 -0
- package/dist/tools/internal/tool-view.d.ts.map +1 -1
- package/dist/tools/invoker.d.ts.map +1 -1
- package/dist/tools/list-names.d.ts +3 -2
- package/dist/tools/list-names.d.ts.map +1 -1
- package/dist/tools/manifest.d.ts +3 -2
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools/mcp/handler.d.ts +7 -0
- package/dist/tools/mcp/handler.d.ts.map +1 -1
- package/dist/tools/mcp/mount.d.ts +18 -2
- package/dist/tools/mcp/mount.d.ts.map +1 -1
- package/dist/tools/mcp/prepare.d.ts +3 -3
- package/dist/tools/mcp/prepare.d.ts.map +1 -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/mcp/stdio-signals.d.ts +14 -0
- package/dist/tools/mcp/stdio-signals.d.ts.map +1 -1
- package/dist/tools/mcp/stdio.d.ts +7 -0
- package/dist/tools/mcp/stdio.d.ts.map +1 -1
- package/dist/tools/operations/async-operation-runtime-tools.d.ts.map +1 -1
- package/dist/tools/operations/async-operation-runtime-types.d.ts +3 -3
- package/dist/tools/operations/async-operation-runtime-types.d.ts.map +1 -1
- package/dist/tools/operations/define-wait-tool.d.ts +1 -1
- package/dist/tools/operations/define-wait-tool.d.ts.map +1 -1
- package/dist/tools/operations/wait-core.d.ts +0 -6
- package/dist/tools/operations/wait-core.d.ts.map +1 -1
- package/dist/tools/registry.d.ts +1 -1
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/remote.d.ts +1 -1
- package/dist/tools/remote.d.ts.map +1 -1
- package/dist/tools/{runtime-tool-execution.d.ts → runtime-tool-declaration.d.ts} +32 -9
- package/dist/tools/runtime-tool-declaration.d.ts.map +1 -0
- package/dist/tools/runtime-tool-mcp.d.ts +6 -15
- package/dist/tools/runtime-tool-mcp.d.ts.map +1 -1
- package/dist/tools/runtime-tool.d.ts +14 -12
- package/dist/tools/runtime-tool.d.ts.map +1 -1
- package/dist/tools/schema/coerce.d.ts +4 -0
- package/dist/tools/schema/coerce.d.ts.map +1 -1
- package/dist/tools/schema/flatten-join.d.ts.map +1 -1
- package/dist/tools/surface.d.ts +7 -11
- package/dist/tools/surface.d.ts.map +1 -1
- package/dist/tools/transfer/define-download-tool.d.ts +1 -1
- package/dist/tools/transfer/define-download-tool.d.ts.map +1 -1
- package/dist/tools/transfer/define-upload-tool.d.ts +1 -1
- package/dist/tools/transfer/define-upload-tool.d.ts.map +1 -1
- package/dist/tools/transfer/define-view-file-tool.d.ts +1 -1
- package/dist/tools/transfer/define-view-file-tool.d.ts.map +1 -1
- package/dist/tools/transfer/managed-file-error.d.ts.map +1 -1
- package/dist/tools/transfer/view-file-contract.d.ts.map +1 -1
- package/dist/tools/transfer/view-file.d.ts +1 -1
- package/dist/tools/transfer/view-file.d.ts.map +1 -1
- package/dist/tools/transports.d.ts +3 -2
- package/dist/tools/transports.d.ts.map +1 -1
- package/llms/agent-runtime-browser.txt +10 -4
- package/llms/agent-runtime-harness.txt +32 -31
- package/llms/agent-runtime-react.txt +1 -1
- package/llms/agent-runtime-realtime.txt +14 -5
- package/llms/agent-runtime-sandbox.txt +3 -11
- package/llms/agent-runtime.3.txt +2 -2
- package/llms/agent-runtime.txt +0 -9
- package/llms/application.2.txt +3 -12
- package/llms/application.3.txt +7 -4
- package/llms/application.txt +44 -15
- package/llms/cli-publish.txt +29 -0
- package/llms/cli.2.txt +9 -11
- package/llms/cli.txt +26 -14
- package/llms/declaration.txt +0 -9
- package/llms/files-packaging.txt +22 -7
- package/llms/files.txt +4 -2
- package/llms/geo.txt +0 -9
- package/llms/live.txt +4 -13
- package/llms/observability.txt +31 -5
- package/llms/primitives.txt +38 -20
- package/llms/process.txt +305 -154
- package/llms/react-keyboard.txt +0 -9
- package/llms/react.txt +0 -18
- package/llms/server.4.txt +1 -1
- package/llms/server.5.txt +1 -1
- package/llms/server.txt +1 -1
- package/llms/stitchkit.txt +6 -7
- package/llms/telegram-screens.txt +2 -2
- package/llms/testing.txt +0 -1
- package/llms/tools-mcp.txt +2 -3
- package/llms/tools.2.txt +12 -0
- package/llms/tools.3.txt +5 -6
- package/llms/tools.txt +6 -4
- package/llms/upgrading-0.37.0-0.50.0.txt +947 -0
- package/llms/{upgrading-0.44.0-0.61.0.txt → upgrading-0.53.0-0.67.0.txt} +576 -506
- package/llms/{upgrading-0.62.0-0.80.0.txt → upgrading-0.68.0-0.94.0.txt} +562 -576
- package/llms/{upgrading-0.81.0-0.104.0.txt → upgrading-0.95.0-0.105.0.txt} +452 -567
- package/llms/upgrading.txt +4 -4
- package/llms-full.txt +1053 -405
- package/llms.txt +24 -24
- package/native-assets.json +11 -3
- package/package.json +6 -6
- package/dist/agent-runtime/harness-tools.d.ts +0 -11
- package/dist/agent-runtime/harness-tools.d.ts.map +0 -1
- package/dist/entrypoints/agent-runtime/harness-tools.d.ts +0 -2
- package/dist/entrypoints/agent-runtime/harness-tools.d.ts.map +0 -1
- package/dist/entrypoints/agent-runtime/harness-tools.js +0 -32
- package/dist/index-1a6jtnd9.js +0 -88
- package/dist/index-8a9ksm91.js +0 -95
- package/dist/index-a3wma1hk.js +0 -48
- package/dist/index-jd470k6q.js +0 -109
- package/dist/index-n1dqr7gf.js +0 -20
- package/dist/index-nggfa2yn.js +0 -34
- package/dist/index-s4evrmp5.js +0 -98
- package/dist/index-ze1eph1k.js +0 -20
- package/dist/tools/connections/error-projection.d.ts +0 -4
- package/dist/tools/connections/error-projection.d.ts.map +0 -1
- package/dist/tools/runtime-tool-execution.d.ts.map +0 -1
- package/llms/agent-runtime-harness-tools.txt +0 -25
- package/llms/upgrading-0.37.0-0.44.0.txt +0 -444
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import"../index-
|
|
1
|
+
import"../index-j9gxbztg.js";
|
|
2
2
|
import {
|
|
3
3
|
recordedErrorMessage
|
|
4
|
-
} from "../index-
|
|
4
|
+
} from "../index-rpzewktb.js";
|
|
5
5
|
import {
|
|
6
6
|
ObservabilitySinkStatusSchema2,
|
|
7
7
|
ObservabilityStatusSchema2,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
assertDrainBound,
|
|
11
11
|
withinBound,
|
|
12
12
|
createBoundedSinkManager
|
|
13
|
-
} from "../index-
|
|
13
|
+
} from "../index-qaet40b2.js";
|
|
14
14
|
import {
|
|
15
15
|
createTraceContext2,
|
|
16
16
|
parseTraceparent2,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CanonicalJsonError2,
|
|
3
|
+
canonicalJson2
|
|
4
|
+
} from "../index-5w6t91ze.js";
|
|
1
5
|
import {
|
|
2
6
|
ManagedFileRefSchema2
|
|
3
7
|
} from "../index-xqhede6x.js";
|
|
4
8
|
import {
|
|
5
|
-
|
|
6
|
-
} from "../index-
|
|
7
|
-
import {
|
|
8
|
-
serializeCanonicalJson
|
|
9
|
-
} from "../index-zsvzhjtk.js";
|
|
9
|
+
assertPositiveSafeInteger
|
|
10
|
+
} from "../index-0s4xebbg.js";
|
|
10
11
|
|
|
11
12
|
// src/primitives/audit.ts
|
|
12
13
|
import { z as z2 } from "zod";
|
|
@@ -82,28 +83,14 @@ function createAuditRecord(input) {
|
|
|
82
83
|
payload: { operation: input.operation, change }
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
|
-
// src/primitives/canonical-json.ts
|
|
86
|
-
import { z as z3 } from "zod";
|
|
87
|
-
var CanonicalJsonOptionsSchema = z3.strictObject({
|
|
88
|
-
maxDepth: z3.number().int().min(0).max(100).default(100),
|
|
89
|
-
maxNodes: z3.number().int().positive().default(1e5),
|
|
90
|
-
maxBytes: z3.number().int().positive().default(1024 * 1024)
|
|
91
|
-
});
|
|
92
|
-
function canonicalJson(value, options = {}) {
|
|
93
|
-
const limits = CanonicalJsonOptionsSchema.parse(options);
|
|
94
|
-
const snapshot = {};
|
|
95
|
-
if (!isJsonData(value, { ...limits, omitObjectUndefined: true }, snapshot))
|
|
96
|
-
throw new TypeError("Expected bounded plain JSON: dense arrays, finite numbers, no -0, cycles or accessors");
|
|
97
|
-
return serializeCanonicalJson(snapshot.value);
|
|
98
|
-
}
|
|
99
86
|
// src/primitives/deadline.ts
|
|
100
|
-
import { z as
|
|
87
|
+
import { z as z3 } from "zod";
|
|
101
88
|
var DAY_MS = 86400000;
|
|
102
|
-
var DeadlineResultSchema =
|
|
103
|
-
dueAt:
|
|
104
|
-
remainingDays:
|
|
105
|
-
overdueDays:
|
|
106
|
-
category:
|
|
89
|
+
var DeadlineResultSchema = z3.object({
|
|
90
|
+
dueAt: z3.iso.datetime({ offset: true }),
|
|
91
|
+
remainingDays: z3.number().int(),
|
|
92
|
+
overdueDays: z3.number().int().nonnegative(),
|
|
93
|
+
category: z3.string().min(1)
|
|
107
94
|
});
|
|
108
95
|
function partsInZone(value, timeZone) {
|
|
109
96
|
const parts = new Intl.DateTimeFormat("en-CA", {
|
|
@@ -183,32 +170,30 @@ function defineDeadlinePolicy(config) {
|
|
|
183
170
|
});
|
|
184
171
|
}
|
|
185
172
|
// src/primitives/delivery.ts
|
|
186
|
-
import { z as
|
|
187
|
-
var DomainEventDestinationSchema =
|
|
188
|
-
id:
|
|
189
|
-
transport:
|
|
190
|
-
address:
|
|
173
|
+
import { z as z4 } from "zod";
|
|
174
|
+
var DomainEventDestinationSchema = z4.object({
|
|
175
|
+
id: z4.string().min(1),
|
|
176
|
+
transport: z4.string().min(1),
|
|
177
|
+
address: z4.string().min(1)
|
|
191
178
|
});
|
|
192
|
-
var DomainEventDeliveryOutcomeSchema =
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
outcome:
|
|
196
|
-
code:
|
|
197
|
-
retryAt:
|
|
179
|
+
var DomainEventDeliveryOutcomeSchema = z4.discriminatedUnion("outcome", [
|
|
180
|
+
z4.object({ outcome: z4.literal("delivered"), receipt: z4.string().min(1).optional() }),
|
|
181
|
+
z4.object({
|
|
182
|
+
outcome: z4.literal("retryable"),
|
|
183
|
+
code: z4.string().min(1),
|
|
184
|
+
retryAt: z4.iso.datetime({ offset: true })
|
|
198
185
|
}),
|
|
199
|
-
|
|
200
|
-
|
|
186
|
+
z4.object({ outcome: z4.literal("terminal"), code: z4.string().min(1) }),
|
|
187
|
+
z4.object({ outcome: z4.literal("unknown"), code: z4.string().min(1) })
|
|
201
188
|
]);
|
|
202
|
-
var DomainEventDeliveryClaimSchema =
|
|
189
|
+
var DomainEventDeliveryClaimSchema = z4.object({
|
|
203
190
|
event: DomainEventSchema,
|
|
204
191
|
destination: DomainEventDestinationSchema,
|
|
205
|
-
attempt:
|
|
192
|
+
attempt: z4.number().int().positive()
|
|
206
193
|
});
|
|
207
194
|
function defineDomainEventDelivery(config) {
|
|
208
195
|
const maxClaims = config.maxClaimsPerDispatch ?? 100;
|
|
209
|
-
|
|
210
|
-
throw new RangeError("maxClaimsPerDispatch must be a positive safe integer");
|
|
211
|
-
}
|
|
196
|
+
assertPositiveSafeInteger("maxClaimsPerDispatch", maxClaims, RangeError);
|
|
212
197
|
return Object.freeze({
|
|
213
198
|
plan(eventInput) {
|
|
214
199
|
const event = DomainEventSchema.parse(eventInput);
|
|
@@ -264,17 +249,17 @@ function defineDomainEventDelivery(config) {
|
|
|
264
249
|
});
|
|
265
250
|
}
|
|
266
251
|
// src/primitives/export-operation.ts
|
|
267
|
-
import { z as
|
|
252
|
+
import { z as z5 } from "zod";
|
|
268
253
|
function createExportResultSchema(operationId) {
|
|
269
|
-
return
|
|
270
|
-
|
|
271
|
-
state:
|
|
254
|
+
return z5.discriminatedUnion("state", [
|
|
255
|
+
z5.object({
|
|
256
|
+
state: z5.literal("ready"),
|
|
272
257
|
file: ManagedFileRefSchema2.extend({
|
|
273
|
-
mediaType:
|
|
274
|
-
name:
|
|
258
|
+
mediaType: z5.string().min(1),
|
|
259
|
+
name: z5.string().min(1)
|
|
275
260
|
})
|
|
276
261
|
}),
|
|
277
|
-
|
|
262
|
+
z5.object({ state: z5.literal("pending"), operationId })
|
|
278
263
|
]);
|
|
279
264
|
}
|
|
280
265
|
function defineExportOperation(config) {
|
|
@@ -308,20 +293,20 @@ function defineExportOperation(config) {
|
|
|
308
293
|
});
|
|
309
294
|
}
|
|
310
295
|
// src/primitives/lifecycle.ts
|
|
311
|
-
import { z as
|
|
296
|
+
import { z as z6 } from "zod";
|
|
312
297
|
var lifecycleStateBrand = Symbol("stitchkit.lifecycle.state");
|
|
313
|
-
var LifecycleTransitionEventSchema =
|
|
314
|
-
id:
|
|
315
|
-
type:
|
|
316
|
-
occurredAt:
|
|
317
|
-
actor:
|
|
318
|
-
subject:
|
|
319
|
-
payload:
|
|
320
|
-
lifecycle:
|
|
321
|
-
transition:
|
|
322
|
-
from:
|
|
323
|
-
to:
|
|
324
|
-
data:
|
|
298
|
+
var LifecycleTransitionEventSchema = z6.object({
|
|
299
|
+
id: z6.string().min(1),
|
|
300
|
+
type: z6.literal("lifecycle.transitioned"),
|
|
301
|
+
occurredAt: z6.iso.datetime({ offset: true }),
|
|
302
|
+
actor: z6.object({ id: z6.string().min(1), role: z6.string().min(1) }),
|
|
303
|
+
subject: z6.object({ type: z6.string().min(1), id: z6.string().min(1) }),
|
|
304
|
+
payload: z6.object({
|
|
305
|
+
lifecycle: z6.string().min(1),
|
|
306
|
+
transition: z6.string().min(1),
|
|
307
|
+
from: z6.string().min(1),
|
|
308
|
+
to: z6.string().min(1),
|
|
309
|
+
data: z6.unknown()
|
|
325
310
|
})
|
|
326
311
|
});
|
|
327
312
|
function stateMatches(expected, actual) {
|
|
@@ -453,12 +438,12 @@ function scanOwnerFilterRisks(sources, ownerKeys = ["ownerId"]) {
|
|
|
453
438
|
return risks;
|
|
454
439
|
}
|
|
455
440
|
// src/primitives/money.ts
|
|
456
|
-
import { z as
|
|
457
|
-
var IntegerStringSchema =
|
|
441
|
+
import { z as z7 } from "zod";
|
|
442
|
+
var IntegerStringSchema = z7.string().regex(/^-?(?:0|[1-9]\d*)$/);
|
|
458
443
|
function createMoneySchema(currency) {
|
|
459
|
-
return
|
|
444
|
+
return z7.object({
|
|
460
445
|
minor: IntegerStringSchema,
|
|
461
|
-
currency:
|
|
446
|
+
currency: z7.literal(currency)
|
|
462
447
|
});
|
|
463
448
|
}
|
|
464
449
|
function parseMinor(value) {
|
|
@@ -503,9 +488,7 @@ function shareMoney(value, numerator, denominator) {
|
|
|
503
488
|
});
|
|
504
489
|
}
|
|
505
490
|
function splitMoney(value, count) {
|
|
506
|
-
|
|
507
|
-
throw new RangeError("count must be a positive safe integer");
|
|
508
|
-
}
|
|
491
|
+
assertPositiveSafeInteger("count", count, RangeError);
|
|
509
492
|
const divisor = BigInt(count);
|
|
510
493
|
const total = parseMinor(value);
|
|
511
494
|
return Object.freeze({
|
|
@@ -597,7 +580,7 @@ function definePermissionMatrix(config) {
|
|
|
597
580
|
});
|
|
598
581
|
}
|
|
599
582
|
// src/primitives/quantity.ts
|
|
600
|
-
import { z as
|
|
583
|
+
import { z as z8 } from "zod";
|
|
601
584
|
|
|
602
585
|
// src/primitives/decimal.ts
|
|
603
586
|
var DECIMAL_PATTERN = /^-?(?:0|[1-9]\d*)(?:\.\d+)?$/;
|
|
@@ -651,7 +634,7 @@ function multiplyDecimalRatio(value, numerator, denominator) {
|
|
|
651
634
|
}
|
|
652
635
|
|
|
653
636
|
// src/primitives/quantity.ts
|
|
654
|
-
var DecimalStringSchema =
|
|
637
|
+
var DecimalStringSchema = z8.string().refine((value) => {
|
|
655
638
|
try {
|
|
656
639
|
return formatDecimal(parseDecimal(value)) === value;
|
|
657
640
|
} catch {
|
|
@@ -659,7 +642,7 @@ var DecimalStringSchema = z9.string().refine((value) => {
|
|
|
659
642
|
}
|
|
660
643
|
}, "expected a canonical decimal string");
|
|
661
644
|
function createQuantitySchema(unit) {
|
|
662
|
-
return
|
|
645
|
+
return z8.object({ value: DecimalStringSchema, unit: z8.literal(unit) });
|
|
663
646
|
}
|
|
664
647
|
function quantity(value, unit) {
|
|
665
648
|
return Object.freeze({ value: formatDecimal(parseDecimal(value)), unit });
|
|
@@ -673,16 +656,16 @@ function addQuantity(left, right) {
|
|
|
673
656
|
}
|
|
674
657
|
return quantity(formatDecimal(addDecimal(parseDecimal(left.value), parseDecimal(right.value))), left.unit);
|
|
675
658
|
}
|
|
676
|
-
var QuantityProjectionSchema =
|
|
677
|
-
|
|
678
|
-
kind:
|
|
679
|
-
quantity:
|
|
659
|
+
var QuantityProjectionSchema = z8.discriminatedUnion("kind", [
|
|
660
|
+
z8.object({
|
|
661
|
+
kind: z8.literal("recorded"),
|
|
662
|
+
quantity: z8.object({ value: DecimalStringSchema, unit: z8.string().min(1) })
|
|
680
663
|
}),
|
|
681
|
-
|
|
682
|
-
kind:
|
|
683
|
-
quantity:
|
|
684
|
-
source:
|
|
685
|
-
conversionId:
|
|
664
|
+
z8.object({
|
|
665
|
+
kind: z8.literal("derived"),
|
|
666
|
+
quantity: z8.object({ value: DecimalStringSchema, unit: z8.string().min(1) }),
|
|
667
|
+
source: z8.object({ value: DecimalStringSchema, unit: z8.string().min(1) }),
|
|
668
|
+
conversionId: z8.string().min(1)
|
|
686
669
|
})
|
|
687
670
|
]);
|
|
688
671
|
function defineUnitSystem(config) {
|
|
@@ -734,6 +717,7 @@ function defineUnitSystem(config) {
|
|
|
734
717
|
}
|
|
735
718
|
export {
|
|
736
719
|
AuditRecordSchema,
|
|
720
|
+
CanonicalJsonError2 as CanonicalJsonError,
|
|
737
721
|
DeadlineResultSchema,
|
|
738
722
|
DomainEventActorSchema,
|
|
739
723
|
DomainEventDeliveryClaimSchema,
|
|
@@ -747,7 +731,7 @@ export {
|
|
|
747
731
|
addQuantity,
|
|
748
732
|
assertAuditDeclared,
|
|
749
733
|
audit,
|
|
750
|
-
canonicalJson,
|
|
734
|
+
canonicalJson2 as canonicalJson,
|
|
751
735
|
createAuditRecord,
|
|
752
736
|
createDomainEventSchema,
|
|
753
737
|
createExportResultSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** POSIX Node/Bun finite native commands, independent of the agent runtime. */
|
|
2
2
|
export { observeProcessInstance, type ProcessInstance, type ProcessInstanceObservation, ProcessInstanceSchema, type ProcessOwnerEvidence, probeProcessOwner, } from '../internal/process-instance.js';
|
|
3
3
|
export { runNativeCommand } from '../process/command.js';
|
|
4
|
-
export { NativeCommandError, type NativeCommandOptions, type NativeCommandResult, type NativeCommandSettlement, } from '../process/contract.js';
|
|
4
|
+
export { NativeCommandError, type NativeCommandOptions, type NativeCommandResult, type NativeCommandSettlement, type NativeCommandStopPolicy, } from '../process/contract.js';
|
|
5
5
|
//# sourceMappingURL=process.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/entrypoints/process.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EACL,sBAAsB,EACtB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/entrypoints/process.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EACL,sBAAsB,EACtB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC"}
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
ProcessInstanceSchema2,
|
|
4
4
|
observeProcessInstance2,
|
|
5
5
|
probeProcessOwner2
|
|
6
|
-
} from "../index-
|
|
6
|
+
} from "../index-azx12jgv.js";
|
|
7
7
|
import {
|
|
8
8
|
NativeCommandError2,
|
|
9
9
|
startNativeCommand
|
|
10
|
-
} from "../index-
|
|
10
|
+
} from "../index-g2vfg7ak.js";
|
|
11
11
|
// src/process/command.ts
|
|
12
12
|
function runNativeCommand(input) {
|
|
13
13
|
return startNativeCommand(input).result;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import"../index-yex7eg1v.js";
|
|
2
1
|
import {
|
|
3
2
|
ApiError2
|
|
4
|
-
} from "../index-
|
|
3
|
+
} from "../index-kfjkb396.js";
|
|
5
4
|
import"../index-m38ej7e5.js";
|
|
6
5
|
import"../index-h2fhjqy7.js";
|
|
7
6
|
import {
|
|
8
7
|
endpointHasArguments,
|
|
9
8
|
createClient2
|
|
10
|
-
} from "../index-
|
|
9
|
+
} from "../index-1pwwan01.js";
|
|
10
|
+
import"../index-yex7eg1v.js";
|
|
11
|
+
import"../index-n1nszyk0.js";
|
|
11
12
|
import {
|
|
12
|
-
AppError2
|
|
13
|
-
|
|
13
|
+
AppError2,
|
|
14
|
+
STITCH_ERROR_STATUS2
|
|
15
|
+
} from "../index-j9gxbztg.js";
|
|
14
16
|
import {
|
|
15
17
|
contractMethodFields
|
|
16
18
|
} from "../index-1bx1xv1k.js";
|
|
@@ -22,7 +24,12 @@ import {
|
|
|
22
24
|
function refuseCancelled(signal) {
|
|
23
25
|
if (!signal?.aborted)
|
|
24
26
|
return;
|
|
25
|
-
throw new ApiError2("REQUEST_ABORTED",
|
|
27
|
+
throw new ApiError2("REQUEST_ABORTED", {
|
|
28
|
+
status: 0,
|
|
29
|
+
message: "Request was aborted",
|
|
30
|
+
retryable: false,
|
|
31
|
+
cause: signal.reason
|
|
32
|
+
});
|
|
26
33
|
}
|
|
27
34
|
function toArgs(ctx) {
|
|
28
35
|
const { params, input } = ctx;
|
|
@@ -31,6 +38,28 @@ function toArgs(ctx) {
|
|
|
31
38
|
...isRecord(input) ? input : {}
|
|
32
39
|
};
|
|
33
40
|
}
|
|
41
|
+
function projectRemoteError(err) {
|
|
42
|
+
if (err.code === "HTTP_ERROR" || err.code === "UNKNOWN_ERROR") {
|
|
43
|
+
const answered = err.status > 0;
|
|
44
|
+
const projected = new AppError2(answered ? "HTTP_ERROR" : "CONNECTION_REQUEST_FAILED", {
|
|
45
|
+
message: answered ? "Remote service answered with an error" : "Remote request failed",
|
|
46
|
+
status: answered ? err.status : STITCH_ERROR_STATUS2.CONNECTION_REQUEST_FAILED,
|
|
47
|
+
traceId: err.traceId
|
|
48
|
+
});
|
|
49
|
+
projected.cause = err;
|
|
50
|
+
return projected;
|
|
51
|
+
}
|
|
52
|
+
const cancelled = err.status === 0 && err.code === "REQUEST_ABORTED";
|
|
53
|
+
const timedOut = err.status === 0 && err.code === "REQUEST_TIMEOUT";
|
|
54
|
+
return new AppError2(err.code, {
|
|
55
|
+
message: err.message,
|
|
56
|
+
status: cancelled ? 499 : timedOut ? 408 : err.status,
|
|
57
|
+
details: isRecord(err.details) ? err.details : undefined,
|
|
58
|
+
hint: err.hint,
|
|
59
|
+
traceId: err.traceId,
|
|
60
|
+
retryable: err.retryable
|
|
61
|
+
});
|
|
62
|
+
}
|
|
34
63
|
function implementRemote(contract, http, options) {
|
|
35
64
|
const client = createClient2(contract, http);
|
|
36
65
|
const groupScope = contract.meta.scope ?? "public";
|
|
@@ -53,13 +82,8 @@ function implementRemote(contract, http, options) {
|
|
|
53
82
|
const requestOptions = { signal: ctx.signal };
|
|
54
83
|
return await (endpointHasArguments(endpoint) ? call.withOptions(finalArgs, requestOptions) : call.withOptions(requestOptions));
|
|
55
84
|
} catch (err) {
|
|
56
|
-
if (ApiError2.is(err))
|
|
57
|
-
|
|
58
|
-
throw err;
|
|
59
|
-
const cancelled = err.status === 0 && err.code === "REQUEST_ABORTED";
|
|
60
|
-
const timedOut = err.status === 0 && err.code === "REQUEST_TIMEOUT";
|
|
61
|
-
throw new AppError2(err.code, err.message, cancelled ? 499 : timedOut ? 408 : err.status, isRecord(err.details) ? err.details : undefined, err.hint, err.traceId, cancelled || timedOut ? false : err.retryable);
|
|
62
|
-
}
|
|
85
|
+
if (ApiError2.is(err))
|
|
86
|
+
throw projectRemoteError(err);
|
|
63
87
|
throw err;
|
|
64
88
|
}
|
|
65
89
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import"../index-
|
|
2
|
-
import"../index-
|
|
1
|
+
import"../index-cq59agna.js";
|
|
2
|
+
import"../index-dsnjzb62.js";
|
|
3
|
+
import"../index-azx12jgv.js";
|
|
3
4
|
import"../index-v5ee8ath.js";
|
|
5
|
+
import {
|
|
6
|
+
createFileStateStore2
|
|
7
|
+
} from "../index-2rc6jd9n.js";
|
|
4
8
|
import {
|
|
5
9
|
AppError2,
|
|
6
10
|
notFound2,
|
|
@@ -12,11 +16,11 @@ import {
|
|
|
12
16
|
STITCH_ERROR_STATUS2,
|
|
13
17
|
isStitchErrorCode2,
|
|
14
18
|
appError2
|
|
15
|
-
} from "../index-
|
|
19
|
+
} from "../index-j9gxbztg.js";
|
|
16
20
|
import {
|
|
17
21
|
errorCode2,
|
|
18
22
|
normalizeError2
|
|
19
|
-
} from "../index-
|
|
23
|
+
} from "../index-rpzewktb.js";
|
|
20
24
|
import"../index-yex7eg1v.js";
|
|
21
25
|
import {
|
|
22
26
|
contextContributionDelta,
|
|
@@ -38,7 +42,7 @@ import {
|
|
|
38
42
|
socketIoLane2,
|
|
39
43
|
UnixClientTransportError2,
|
|
40
44
|
createUnixClientTransport2
|
|
41
|
-
} from "../index-
|
|
45
|
+
} from "../index-wdy68sh6.js";
|
|
42
46
|
import {
|
|
43
47
|
DEFAULT_CONTRACT_STREAM_FRAME_BYTES2
|
|
44
48
|
} from "../index-h2fhjqy7.js";
|
|
@@ -58,21 +62,18 @@ import {
|
|
|
58
62
|
toJsonSchema,
|
|
59
63
|
jsonSchemaFields
|
|
60
64
|
} from "../index-ct75c3at.js";
|
|
61
|
-
import"../index-
|
|
65
|
+
import"../index-pzb63z66.js";
|
|
62
66
|
import"../index-4s0fep5q.js";
|
|
63
|
-
import"../index-
|
|
64
|
-
import"../index-
|
|
67
|
+
import"../index-fsw1ybf3.js";
|
|
68
|
+
import"../index-x7w1z6pf.js";
|
|
65
69
|
import"../index-xqhede6x.js";
|
|
66
|
-
import {
|
|
67
|
-
createFileStateStore2
|
|
68
|
-
} from "../index-269zqj8m.js";
|
|
69
70
|
import {
|
|
70
71
|
bindRealtimeServer2
|
|
71
|
-
} from "../index-
|
|
72
|
-
import"../index-
|
|
72
|
+
} from "../index-z23rfxhj.js";
|
|
73
|
+
import"../index-4vsby8n8.js";
|
|
73
74
|
import {
|
|
74
75
|
withDeadline
|
|
75
|
-
} from "../index-
|
|
76
|
+
} from "../index-9tqbxv5p.js";
|
|
76
77
|
import {
|
|
77
78
|
inputIsQuery
|
|
78
79
|
} from "../index-xhzq2qvj.js";
|
|
@@ -80,14 +81,14 @@ import {
|
|
|
80
81
|
verifyJwt2,
|
|
81
82
|
signJwt2,
|
|
82
83
|
verifyPkce2
|
|
83
|
-
} from "../index-
|
|
84
|
+
} from "../index-37asdw3a.js";
|
|
84
85
|
import {
|
|
85
86
|
defineMultipartStream2,
|
|
86
87
|
createMultipartStream2,
|
|
87
88
|
implement2,
|
|
88
89
|
createImplement2,
|
|
89
90
|
createScopedImplement2
|
|
90
|
-
} from "../index-
|
|
91
|
+
} from "../index-cmzvhhtd.js";
|
|
91
92
|
import {
|
|
92
93
|
deriveCodeChallenge2
|
|
93
94
|
} from "../index-ap3gqe56.js";
|
|
@@ -95,6 +96,7 @@ import {
|
|
|
95
96
|
isWithinDir2,
|
|
96
97
|
realPathWithinDir
|
|
97
98
|
} from "../index-5cc6r990.js";
|
|
99
|
+
import"../index-ef8gdaq0.js";
|
|
98
100
|
import {
|
|
99
101
|
DEFAULT_CORS_ALLOW_HEADERS2,
|
|
100
102
|
DEFAULT_CORS_EXPOSE_HEADERS2,
|
|
@@ -16,6 +16,9 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
createMutationQueue
|
|
18
18
|
} from "../../index-sykb5ag7.js";
|
|
19
|
+
import {
|
|
20
|
+
MAX_TIMER_MS
|
|
21
|
+
} from "../../index-eemvahkc.js";
|
|
19
22
|
import {
|
|
20
23
|
bytesToBase64Url,
|
|
21
24
|
base64UrlToBytes
|
|
@@ -69,7 +72,6 @@ var html = Object.assign(tag, {
|
|
|
69
72
|
});
|
|
70
73
|
// src/telegram/screens/outcome.ts
|
|
71
74
|
var TOAST_LIMIT = 200;
|
|
72
|
-
var MAX_EXPIRY_MS = 2147483647;
|
|
73
75
|
|
|
74
76
|
class ScreenOutcome {
|
|
75
77
|
#outcome = true;
|
|
@@ -103,8 +105,8 @@ class ScreenOutcome {
|
|
|
103
105
|
}
|
|
104
106
|
notice(content, options = {}) {
|
|
105
107
|
const { expiresInMs } = options;
|
|
106
|
-
if (expiresInMs !== undefined && (!Number.isInteger(expiresInMs) || expiresInMs <= 0 || expiresInMs >
|
|
107
|
-
throw new RangeError(`[stitchkit] telegram screens: expiresInMs must be a positive integer up to ${
|
|
108
|
+
if (expiresInMs !== undefined && (!Number.isInteger(expiresInMs) || expiresInMs <= 0 || expiresInMs > MAX_TIMER_MS)) {
|
|
109
|
+
throw new RangeError(`[stitchkit] telegram screens: expiresInMs must be a positive integer up to ${MAX_TIMER_MS}.`);
|
|
108
110
|
}
|
|
109
111
|
const notice = expiresInMs === undefined ? { content } : { content, expiresInMs };
|
|
110
112
|
return new ScreenOutcome(this.navigation, this.toastSpec, [...this.notices, notice]);
|