stitchkit 0.132.2 → 0.133.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 +181 -1
- package/dist/agent-executor/acp/v1-connect.d.ts +12 -1
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-driver.d.ts +3 -1
- package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-handlers.d.ts +9 -1
- package/dist/agent-executor/acp/v1-handlers.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-permission.d.ts +3 -2
- package/dist/agent-executor/acp/v1-permission.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-probe.d.ts +10 -1
- package/dist/agent-executor/acp/v1-probe.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +11 -2
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-turn.d.ts +13 -10
- package/dist/agent-executor/acp/v1-turn.d.ts.map +1 -1
- package/dist/agent-executor/claude/cli-driver.d.ts +6 -0
- package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
- package/dist/agent-executor/claude/record-router.d.ts +44 -0
- package/dist/agent-executor/claude/record-router.d.ts.map +1 -0
- package/dist/agent-executor/claude/session.d.ts +2 -0
- package/dist/agent-executor/claude/session.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/controls.d.ts +1 -0
- package/dist/agent-executor/claude-sdk/controls.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/driver.d.ts +20 -2
- package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/engine-spawn.d.ts +18 -0
- package/dist/agent-executor/claude-sdk/engine-spawn.d.ts.map +1 -0
- package/dist/agent-executor/claude-sdk/query-loop.d.ts +9 -7
- package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-manager.d.ts +42 -0
- package/dist/agent-executor/claude-sdk/query-manager.d.ts.map +1 -0
- package/dist/agent-executor/claude-sdk/query-options.d.ts +4 -1
- package/dist/agent-executor/claude-sdk/query-options.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/capabilities.d.ts +8 -0
- package/dist/agent-executor/codex/capabilities.d.ts.map +1 -0
- package/dist/agent-executor/codex/connect.d.ts +6 -1
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/driver.d.ts +10 -0
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/event-routing.d.ts +23 -1
- package/dist/agent-executor/codex/event-routing.d.ts.map +1 -1
- package/dist/agent-executor/codex/handlers.d.ts +24 -4
- package/dist/agent-executor/codex/handlers.d.ts.map +1 -1
- package/dist/agent-executor/codex/limits.d.ts +17 -0
- package/dist/agent-executor/codex/limits.d.ts.map +1 -1
- package/dist/agent-executor/codex/request-answers.d.ts +23 -3
- package/dist/agent-executor/codex/request-answers.d.ts.map +1 -1
- package/dist/agent-executor/codex/session-bind.d.ts +6 -1
- package/dist/agent-executor/codex/session-bind.d.ts.map +1 -1
- package/dist/agent-executor/codex/session-types.d.ts +5 -1
- package/dist/agent-executor/codex/session-types.d.ts.map +1 -1
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-server.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-thread.d.ts +7 -7
- package/dist/agent-executor/codex/shared-thread.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-open.d.ts +12 -3
- package/dist/agent-executor/codex/thread-open.d.ts.map +1 -1
- package/dist/agent-executor/engine-requests.d.ts +42 -0
- package/dist/agent-executor/engine-requests.d.ts.map +1 -1
- package/dist/agent-executor/handoff-schemas.d.ts.map +1 -1
- package/dist/agent-executor/handoff.d.ts.map +1 -1
- package/dist/agent-executor/image-input.d.ts +6 -5
- package/dist/agent-executor/image-input.d.ts.map +1 -1
- package/dist/agent-executor/profile.d.ts +3 -5
- package/dist/agent-executor/profile.d.ts.map +1 -1
- package/dist/agent-executor/session-primitives.d.ts +64 -3
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-executor/testing/claude-sdk-stubs.d.ts +5 -0
- package/dist/agent-executor/testing/claude-sdk-stubs.d.ts.map +1 -0
- package/dist/agent-executor/testing/conformance-lifecycle.d.ts +11 -0
- package/dist/agent-executor/testing/conformance-lifecycle.d.ts.map +1 -0
- package/dist/agent-executor/testing/conformance-support.d.ts +23 -0
- package/dist/agent-executor/testing/conformance-support.d.ts.map +1 -0
- package/dist/agent-executor/testing/conformance.d.ts +7 -2
- package/dist/agent-executor/testing/conformance.d.ts.map +1 -1
- package/dist/agent-executor/testing/consumer-stubs.d.ts +5 -3
- package/dist/agent-executor/testing/consumer-stubs.d.ts.map +1 -1
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts +5 -1
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-driver.d.ts +6 -0
- package/dist/agent-executor/testing/replay-driver.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-gate.d.ts +4 -1
- package/dist/agent-executor/testing/replay-gate.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tool-types.d.ts +2 -0
- package/dist/agent-runtime/deferred-tool-types.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tools.d.ts.map +1 -1
- package/dist/agent-runtime/sql-rows.d.ts +10 -10
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +20 -20
- package/dist/agent-runtime/store-conformance-support.d.ts +10 -10
- package/dist/agent-runtime/terminal-commit.d.ts +10 -10
- package/dist/browser/client.d.ts.map +1 -1
- package/dist/browser/operation-refusal.d.ts +10 -0
- package/dist/browser/operation-refusal.d.ts.map +1 -0
- package/dist/contract/client-types.d.ts +13 -4
- package/dist/contract/client-types.d.ts.map +1 -1
- package/dist/contract/define-validation.d.ts +6 -0
- package/dist/contract/define-validation.d.ts.map +1 -1
- package/dist/contract/define.d.ts +3 -0
- package/dist/contract/define.d.ts.map +1 -1
- package/dist/contract/errors-factory.d.ts +8 -2
- package/dist/contract/errors-factory.d.ts.map +1 -1
- package/dist/contract/errors.d.ts +9 -0
- package/dist/contract/errors.d.ts.map +1 -1
- package/dist/contract/fingerprint.d.ts +4 -1
- package/dist/contract/fingerprint.d.ts.map +1 -1
- package/dist/contract/operation-refusals.d.ts +51 -0
- package/dist/contract/operation-refusals.d.ts.map +1 -0
- package/dist/contract/tool-options.d.ts +4 -0
- package/dist/contract/tool-options.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +254 -196
- package/dist/entrypoints/agent-executor/claude-sdk.js +467 -294
- package/dist/entrypoints/agent-executor/claude.js +130 -99
- package/dist/entrypoints/agent-executor/codex.js +441 -314
- package/dist/entrypoints/agent-executor/testing/claude-sdk.d.ts +3 -0
- package/dist/entrypoints/agent-executor/testing/claude-sdk.d.ts.map +1 -0
- package/dist/entrypoints/agent-executor/testing/claude-sdk.js +329 -0
- package/dist/entrypoints/agent-executor/testing.d.ts +1 -2
- package/dist/entrypoints/agent-executor/testing.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/testing.js +413 -667
- package/dist/entrypoints/agent-executor.d.ts +1 -1
- package/dist/entrypoints/agent-executor.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor.js +12 -12
- package/dist/entrypoints/agent-runtime/browser.js +2 -2
- package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
- package/dist/entrypoints/agent-runtime/harness.js +8 -8
- package/dist/entrypoints/agent-runtime/postgres.js +5 -5
- package/dist/entrypoints/agent-runtime/realtime.js +2 -2
- package/dist/entrypoints/agent-runtime/sandbox.js +3 -3
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +6 -6
- package/dist/entrypoints/agent-runtime/sqlite/node.js +6 -6
- package/dist/entrypoints/agent-runtime/testing.js +5 -5
- package/dist/entrypoints/agent-runtime.js +26 -18
- package/dist/entrypoints/application/grammy.js +1 -1
- package/dist/entrypoints/application.js +2 -2
- package/dist/entrypoints/cli.js +8 -8
- package/dist/entrypoints/contract.d.ts +3 -2
- package/dist/entrypoints/contract.d.ts.map +1 -1
- package/dist/entrypoints/contract.js +6 -4
- package/dist/entrypoints/files/packaging.d.ts +4 -1
- package/dist/entrypoints/files/packaging.d.ts.map +1 -1
- package/dist/entrypoints/files/packaging.js +868 -167
- package/dist/entrypoints/files.js +1 -1
- package/dist/entrypoints/handler.js +7 -7
- package/dist/entrypoints/http.js +2 -2
- package/dist/entrypoints/index.js +10 -8
- package/dist/entrypoints/node.js +11 -11
- package/dist/entrypoints/observability.js +1 -1
- package/dist/entrypoints/process/bootstrap.d.ts +3 -0
- package/dist/entrypoints/process/bootstrap.d.ts.map +1 -0
- package/dist/entrypoints/process/bootstrap.js +16 -0
- package/dist/entrypoints/process.js +7 -7
- package/dist/entrypoints/realtime.js +3 -3
- package/dist/entrypoints/remote.js +8 -7
- package/dist/entrypoints/server.js +30 -14
- package/dist/entrypoints/service-host/macos.js +72 -206
- package/dist/entrypoints/service-host/work.d.ts +15 -0
- package/dist/entrypoints/service-host/work.d.ts.map +1 -0
- package/dist/entrypoints/service-host/work.js +676 -0
- package/dist/entrypoints/service-host.js +146 -536
- package/dist/entrypoints/telegram/screens.js +4 -4
- package/dist/entrypoints/telegram.js +4 -4
- package/dist/entrypoints/testing.d.ts +2 -1
- package/dist/entrypoints/testing.d.ts.map +1 -1
- package/dist/entrypoints/testing.js +27 -8
- package/dist/entrypoints/tools/agent.js +6 -6
- package/dist/entrypoints/tools/connections.js +2 -2
- package/dist/entrypoints/tools/invoker.js +5 -5
- package/dist/entrypoints/tools/mcp.js +8 -6
- package/dist/entrypoints/tools/toolkit.js +11 -9
- package/dist/entrypoints/tools.js +19 -17
- package/dist/entrypoints/tracking/contract.js +1 -1
- package/dist/entrypoints/tracking/performance.js +3 -3
- package/dist/files/client-artifact.d.ts +14 -42
- package/dist/files/client-artifact.d.ts.map +1 -1
- package/dist/files/client-build.d.ts +57 -0
- package/dist/files/client-build.d.ts.map +1 -0
- package/dist/files/client-declarations.d.ts +35 -0
- package/dist/files/client-declarations.d.ts.map +1 -0
- package/dist/files/client-package-contract.d.ts +162 -0
- package/dist/files/client-package-contract.d.ts.map +1 -0
- package/dist/files/client-package-proof.d.ts +38 -0
- package/dist/files/client-package-proof.d.ts.map +1 -0
- package/dist/files/client-package.d.ts +17 -0
- package/dist/files/client-package.d.ts.map +1 -0
- package/dist/files/declaration-specifiers.d.ts +30 -0
- package/dist/files/declaration-specifiers.d.ts.map +1 -0
- package/dist/{index-v759mzed.js → index-02r5sq9p.js} +36 -23
- package/dist/{index-0r15pkjq.js → index-0k1ba0ss.js} +1 -1
- package/dist/{index-znd1b57f.js → index-1dn2wjq6.js} +5 -4
- package/dist/{index-p06z7g7w.js → index-1p8q0yrt.js} +6 -5
- package/dist/{index-wa6h4tz6.js → index-1qwd54n3.js} +6 -5
- package/dist/index-2dzc7mv9.js +174 -0
- package/dist/index-2mz8hj58.js +155 -0
- package/dist/{index-17qgm6xe.js → index-34k82crg.js} +2 -2
- package/dist/index-3mcbr8sx.js +349 -0
- package/dist/{index-ybdq8kk2.js → index-3y2tzhr8.js} +3 -3
- package/dist/{index-fgahdc7s.js → index-5n3a8hd8.js} +5 -3
- package/dist/{index-jb4m241t.js → index-6918kxbf.js} +45 -1
- package/dist/{index-n3bm7zqq.js → index-6kmjcm81.js} +4 -4
- package/dist/{index-akf0xkrm.js → index-78da4g74.js} +1 -1
- package/dist/{index-9pv126eh.js → index-7fjbdga8.js} +7 -1
- package/dist/{index-zhshhxew.js → index-8jf4bt7v.js} +1 -1
- package/dist/{index-p16q492v.js → index-8t9dr41h.js} +18 -5
- package/dist/{index-xq4s9mka.js → index-8yt3rwe7.js} +1 -1
- package/dist/{index-39c2hj6h.js → index-9c76vfxf.js} +7 -3
- package/dist/index-9ft4n9j1.js +432 -0
- package/dist/{index-sd4e5x5j.js → index-9wdrwx3b.js} +8 -7
- package/dist/{index-z114ax5e.js → index-an7vcmwf.js} +49 -2
- package/dist/{index-pzhqydxb.js → index-d04w81fz.js} +1 -1
- package/dist/index-d2drhb9c.js +219 -0
- package/dist/{index-8gmmdz7k.js → index-dacxr7nf.js} +1 -1
- package/dist/{index-dnzxxf8a.js → index-dm6nxkn1.js} +1 -1
- package/dist/index-dxft2mnm.js +42 -0
- package/dist/{index-rxh3qy4x.js → index-fzd477xk.js} +1 -1
- package/dist/{index-xgae0bn7.js → index-g4gstmp1.js} +2 -2
- package/dist/{index-athc412x.js → index-g5fgeb6v.js} +1 -1
- package/dist/{index-z9d74jmb.js → index-gbhj370g.js} +3 -3
- package/dist/{index-3fym4j8n.js → index-gtaaxe9d.js} +1 -1
- package/dist/{index-v59pxmf1.js → index-jpecjm30.js} +2 -2
- package/dist/index-k9g061ma.js +164 -0
- package/dist/{index-669374qc.js → index-ma26mfnt.js} +84 -315
- package/dist/{index-ryxb427v.js → index-msxf2r8x.js} +16 -3
- package/dist/{index-rbd2rq3z.js → index-nr4fhfn4.js} +1 -1
- package/dist/{index-qa2jjb65.js → index-pbekeqzm.js} +1 -1
- package/dist/{index-mkfhpk11.js → index-pq6g1k9t.js} +2 -2
- package/dist/{index-gya4hwh3.js → index-pws5c3x6.js} +21 -1
- package/dist/{index-x2fb37t0.js → index-q427q23r.js} +3 -2
- package/dist/{index-jcrj0b8z.js → index-qggqqja2.js} +39 -2
- package/dist/{index-jxtg307y.js → index-rkjfzs0a.js} +1 -1
- package/dist/{index-5tdc0q43.js → index-rw8ze745.js} +5 -3
- package/dist/index-s43tr4my.js +129 -0
- package/dist/{index-f9p62ean.js → index-stpy56r3.js} +175 -249
- package/dist/index-t5g5rm9n.js +213 -0
- package/dist/{index-z20pdxeb.js → index-tmv3ez1h.js} +3 -3
- package/dist/{index-dcsxj68j.js → index-tqjamnax.js} +1 -1
- package/dist/{index-j15dhkda.js → index-wddcfbng.js} +1 -325
- package/dist/{index-9sfhje6y.js → index-wh70tmpd.js} +24 -234
- package/dist/index-wxjv4sqx.js +82 -0
- package/dist/{index-qhjmmsm2.js → index-x46y9z26.js} +2 -2
- package/dist/{index-nk0cy9g1.js → index-y53cqwke.js} +1 -1
- package/dist/{index-sv5svtq7.js → index-y68gavb5.js} +1 -1
- package/dist/{index-5y7j383h.js → index-yrhw10ef.js} +1 -1
- package/dist/process/bootstrap.d.ts +12 -0
- package/dist/process/bootstrap.d.ts.map +1 -0
- package/dist/process/owner-loss-guard.d.ts +2 -9
- package/dist/process/owner-loss-guard.d.ts.map +1 -1
- package/dist/process/work-root.d.ts +20 -0
- package/dist/process/work-root.d.ts.map +1 -0
- package/dist/server/contract-identity.d.ts.map +1 -1
- package/dist/server/contract-method.d.ts +12 -0
- package/dist/server/contract-method.d.ts.map +1 -1
- package/dist/server/implement.d.ts.map +1 -1
- package/dist/server/openapi.d.ts.map +1 -1
- package/dist/server/types.d.ts +10 -9
- package/dist/server/types.d.ts.map +1 -1
- package/dist/service-host/host-adapter.d.ts +2 -0
- package/dist/service-host/host-adapter.d.ts.map +1 -1
- package/dist/service-host/work/command.d.ts +72 -0
- package/dist/service-host/work/command.d.ts.map +1 -0
- package/dist/service-host/work/errors.d.ts +29 -0
- package/dist/service-host/work/errors.d.ts.map +1 -0
- package/dist/service-host/work/host.d.ts +38 -0
- package/dist/service-host/work/host.d.ts.map +1 -0
- package/dist/service-host/work/launch.d.ts +51 -0
- package/dist/service-host/work/launch.d.ts.map +1 -0
- package/dist/service-host/work/membership.d.ts +51 -0
- package/dist/service-host/work/membership.d.ts.map +1 -0
- package/dist/service-host/work/origin.d.ts +79 -0
- package/dist/service-host/work/origin.d.ts.map +1 -0
- package/dist/service-host/work/owner.d.ts +45 -0
- package/dist/service-host/work/owner.d.ts.map +1 -0
- package/dist/service-host/work/placement.d.ts +55 -0
- package/dist/service-host/work/placement.d.ts.map +1 -0
- package/dist/service-host/work/probe.d.ts +24 -0
- package/dist/service-host/work/probe.d.ts.map +1 -0
- package/dist/service-host/work/scope-command.d.ts +68 -0
- package/dist/service-host/work/scope-command.d.ts.map +1 -0
- package/dist/sync/session.d.ts +4 -1
- package/dist/sync/session.d.ts.map +1 -1
- package/dist/testing/surface-manifest-digest.d.ts +2 -0
- package/dist/testing/surface-manifest-digest.d.ts.map +1 -1
- package/dist/testing/surface-manifest.d.ts +32 -3
- package/dist/testing/surface-manifest.d.ts.map +1 -1
- package/dist/tools/agent.d.ts +2 -0
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/cli/stream-surface.d.ts.map +1 -1
- package/dist/tools/internal/mcp-projection.d.ts +58 -0
- package/dist/tools/internal/mcp-projection.d.ts.map +1 -0
- package/dist/tools/internal/surface-projector.d.ts +3 -47
- package/dist/tools/internal/surface-projector.d.ts.map +1 -1
- package/dist/tools/invoker.d.ts +2 -0
- package/dist/tools/invoker.d.ts.map +1 -1
- package/dist/tools/manifest.d.ts +2 -0
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools/mcp/handler.d.ts.map +1 -1
- package/dist/tools/mcp/lazy-discovery.d.ts.map +1 -1
- package/dist/tools/mcp/mount.d.ts +4 -0
- package/dist/tools/mcp/mount.d.ts.map +1 -1
- package/dist/tools/mcp/prepare.d.ts +5 -2
- package/dist/tools/mcp/prepare.d.ts.map +1 -1
- package/dist/tools/mount.d.ts +2 -0
- package/dist/tools/mount.d.ts.map +1 -1
- package/dist/tools/remote.d.ts.map +1 -1
- package/dist/tools/schema/nesting-limit.d.ts +8 -0
- package/dist/tools/schema/nesting-limit.d.ts.map +1 -0
- package/dist/tools/schema/presentation.d.ts +7 -0
- package/dist/tools/schema/presentation.d.ts.map +1 -1
- package/dist/tools/surface.d.ts.map +1 -1
- package/llms/agent-executor-acp.txt +3 -3
- package/llms/agent-executor-claude-sdk.txt +1 -1
- package/llms/agent-executor-claude.txt +1 -1
- package/llms/agent-executor-codex.txt +1 -1
- package/llms/agent-executor-testing-claude-sdk.txt +28 -0
- package/llms/agent-executor-testing.txt +7 -8
- package/llms/agent-executor.txt +27 -4
- package/llms/agent-runtime.txt +1 -1
- package/llms/contract.txt +8 -2
- package/llms/files-packaging.txt +11 -6
- package/llms/process-bootstrap.txt +18 -0
- package/llms/process.2.txt +215 -18
- package/llms/process.txt +130 -92
- package/llms/server.4.txt +49 -1
- package/llms/service-host-work.txt +34 -0
- package/llms/stitchkit.2.txt +31 -0
- package/llms/stitchkit.txt +78 -75
- package/llms/sync.txt +5 -2
- package/llms/testing.txt +1 -0
- package/llms/tools.2.txt +747 -775
- package/llms/tools.3.txt +846 -210
- package/llms/tools.4.txt +226 -0
- package/llms/tools.txt +3 -790
- package/llms/{upgrading-0.128.0-0.132.0.txt → upgrading-0.128.0-0.133.0.txt} +194 -6
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +746 -135
- package/llms.txt +18 -16
- package/package.json +12 -4
- package/dist/entrypoints/process/owner-loss.d.ts +0 -3
- package/dist/entrypoints/process/owner-loss.d.ts.map +0 -1
- package/dist/entrypoints/process/owner-loss.js +0 -7
- package/llms/process-owner-loss.txt +0 -18
|
@@ -7,24 +7,24 @@ import {
|
|
|
7
7
|
} from "../index-t3qcac2a.js";
|
|
8
8
|
import"../index-mbd92r1w.js";
|
|
9
9
|
import"../index-m38ej7e5.js";
|
|
10
|
-
import"../index-
|
|
11
|
-
import"../index-
|
|
10
|
+
import"../index-78da4g74.js";
|
|
11
|
+
import"../index-yrhw10ef.js";
|
|
12
12
|
import"../index-yt1gg11x.js";
|
|
13
13
|
import {
|
|
14
14
|
createErrorHook2
|
|
15
|
-
} from "../index-
|
|
15
|
+
} from "../index-g4gstmp1.js";
|
|
16
16
|
import {
|
|
17
17
|
isTrustProxyHandler,
|
|
18
18
|
createHandler2
|
|
19
|
-
} from "../index-
|
|
19
|
+
} from "../index-tmv3ez1h.js";
|
|
20
20
|
import {
|
|
21
21
|
secretsEqual
|
|
22
22
|
} from "../index-apv5xfef.js";
|
|
23
23
|
import {
|
|
24
24
|
implement2,
|
|
25
25
|
createImplement2
|
|
26
|
-
} from "../index-
|
|
27
|
-
import"../index-
|
|
26
|
+
} from "../index-1qwd54n3.js";
|
|
27
|
+
import"../index-6918kxbf.js";
|
|
28
28
|
import {
|
|
29
29
|
AppError2,
|
|
30
30
|
notFound2,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
rateLimited2,
|
|
36
36
|
STITCH_ERROR_STATUS2,
|
|
37
37
|
isStitchErrorCode2
|
|
38
|
-
} from "../index-
|
|
38
|
+
} from "../index-7fjbdga8.js";
|
|
39
39
|
import {
|
|
40
40
|
utf8ByteLength
|
|
41
41
|
} from "../index-827bgv33.js";
|
package/dist/entrypoints/http.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "../index-t3qcac2a.js";
|
|
15
15
|
import"../index-m38ej7e5.js";
|
|
16
16
|
import"../index-gnjgkecx.js";
|
|
17
|
-
import"../index-
|
|
17
|
+
import"../index-yrhw10ef.js";
|
|
18
18
|
import {
|
|
19
19
|
BridgeFailureError2,
|
|
20
20
|
createBridgeRestartError,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
createUrlBuilder2,
|
|
34
34
|
createUrlBuilders2,
|
|
35
35
|
createScopedUrlBuilders2
|
|
36
|
-
} from "../index-
|
|
36
|
+
} from "../index-pws5c3x6.js";
|
|
37
37
|
import {
|
|
38
38
|
ApiError2
|
|
39
39
|
} from "../index-kfjkb396.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_CONTRACT_STREAM_FRAME_BYTES2,
|
|
8
8
|
ContractStreamFrameSchema2
|
|
9
|
-
} from "../index-
|
|
9
|
+
} from "../index-yrhw10ef.js";
|
|
10
10
|
import {
|
|
11
11
|
createHttpClient2
|
|
12
12
|
} from "../index-jcge9tx3.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
paginatedSchema2,
|
|
20
20
|
encodeCursor2,
|
|
21
21
|
decodeCursor2
|
|
22
|
-
} from "../index-
|
|
22
|
+
} from "../index-8t9dr41h.js";
|
|
23
23
|
import {
|
|
24
24
|
ALL_TRANSPORTS2,
|
|
25
25
|
TOOL_TRANSPORTS2
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
withToolView2,
|
|
34
34
|
defineContract2
|
|
35
|
-
} from "../index-
|
|
35
|
+
} from "../index-9c76vfxf.js";
|
|
36
36
|
import"../index-09f7w2qq.js";
|
|
37
37
|
import {
|
|
38
38
|
LiveStatePhaseSchema2,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
REALTIME_REJECTION_KEY2,
|
|
45
45
|
asRealtimeRejection2
|
|
46
|
-
} from "../index-
|
|
46
|
+
} from "../index-0k1ba0ss.js";
|
|
47
47
|
import {
|
|
48
48
|
RealtimeRequestPhaseSchema2,
|
|
49
49
|
RealtimeRequestPhaseEventSchema2,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
createUrlBuilder2,
|
|
85
85
|
createUrlBuilders2,
|
|
86
86
|
createScopedUrlBuilders2
|
|
87
|
-
} from "../index-
|
|
87
|
+
} from "../index-pws5c3x6.js";
|
|
88
88
|
import {
|
|
89
89
|
StreamLineLimitError2,
|
|
90
90
|
StreamTruncatedLineError2
|
|
@@ -93,10 +93,10 @@ import {
|
|
|
93
93
|
createRetainedTopics2,
|
|
94
94
|
createRealtimeClientWithPeer,
|
|
95
95
|
createSocketIOClientWithPeer
|
|
96
|
-
} from "../index-
|
|
96
|
+
} from "../index-8yt3rwe7.js";
|
|
97
97
|
import {
|
|
98
98
|
bindRealtimeClient2
|
|
99
|
-
} from "../index-
|
|
99
|
+
} from "../index-y53cqwke.js";
|
|
100
100
|
import {
|
|
101
101
|
ApiError2
|
|
102
102
|
} from "../index-kfjkb396.js";
|
|
@@ -114,8 +114,9 @@ import {
|
|
|
114
114
|
rateLimited2,
|
|
115
115
|
STITCH_ERROR_STATUS2,
|
|
116
116
|
isRetryableStatus2,
|
|
117
|
+
CLIENT_ERROR_CODES2,
|
|
117
118
|
isStitchErrorCode2
|
|
118
|
-
} from "../index-
|
|
119
|
+
} from "../index-7fjbdga8.js";
|
|
119
120
|
import {
|
|
120
121
|
createTraceContext2,
|
|
121
122
|
parseTraceparent2,
|
|
@@ -948,6 +949,7 @@ export {
|
|
|
948
949
|
ApiError2 as ApiError,
|
|
949
950
|
AppError2 as AppError,
|
|
950
951
|
BackoffPolicySchema2 as BackoffPolicySchema,
|
|
952
|
+
CLIENT_ERROR_CODES2 as CLIENT_ERROR_CODES,
|
|
951
953
|
ContractFingerprintSchema2 as ContractFingerprintSchema,
|
|
952
954
|
ContractStreamFrameSchema2 as ContractStreamFrameSchema,
|
|
953
955
|
DEFAULT_CONTRACT_STREAM_FRAME_BYTES2 as DEFAULT_CONTRACT_STREAM_FRAME_BYTES,
|
package/dist/entrypoints/node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import"../index-
|
|
2
|
-
import"../index-
|
|
1
|
+
import"../index-78da4g74.js";
|
|
2
|
+
import"../index-yrhw10ef.js";
|
|
3
3
|
import"../index-mbd92r1w.js";
|
|
4
4
|
import"../index-m38ej7e5.js";
|
|
5
5
|
import"../index-yt1gg11x.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
defineRequestIngress2,
|
|
13
13
|
createSocketIOServer2,
|
|
14
14
|
createUnixClientTransport2
|
|
15
|
-
} from "../index-
|
|
15
|
+
} from "../index-gbhj370g.js";
|
|
16
16
|
import {
|
|
17
17
|
ShutdownStateSchema2,
|
|
18
18
|
ShutdownOptionsSchema2,
|
|
@@ -20,21 +20,21 @@ import {
|
|
|
20
20
|
ShutdownResultSchema2,
|
|
21
21
|
createServerLifecycle
|
|
22
22
|
} from "../index-t1a2jrg7.js";
|
|
23
|
-
import"../index-
|
|
23
|
+
import"../index-0k1ba0ss.js";
|
|
24
24
|
import"../index-4s0fep5q.js";
|
|
25
25
|
import"../index-6kec3b14.js";
|
|
26
26
|
import"../index-673drwkn.js";
|
|
27
27
|
import"../index-vmbxj75t.js";
|
|
28
28
|
import"../index-werjqesf.js";
|
|
29
|
-
import"../index-
|
|
30
|
-
import"../index-
|
|
29
|
+
import"../index-9c76vfxf.js";
|
|
30
|
+
import"../index-8t9dr41h.js";
|
|
31
31
|
import"../index-xqhede6x.js";
|
|
32
32
|
import {
|
|
33
33
|
bindRealtimeServer2
|
|
34
|
-
} from "../index-
|
|
34
|
+
} from "../index-y68gavb5.js";
|
|
35
35
|
import {
|
|
36
36
|
createHandler2
|
|
37
|
-
} from "../index-
|
|
37
|
+
} from "../index-tmv3ez1h.js";
|
|
38
38
|
import"../index-hab790s6.js";
|
|
39
39
|
import {
|
|
40
40
|
UnixClientTransportError2
|
|
@@ -44,8 +44,8 @@ import {
|
|
|
44
44
|
implement2,
|
|
45
45
|
createImplement2,
|
|
46
46
|
createScopedImplement2
|
|
47
|
-
} from "../index-
|
|
48
|
-
import"../index-
|
|
47
|
+
} from "../index-1qwd54n3.js";
|
|
48
|
+
import"../index-6918kxbf.js";
|
|
49
49
|
import {
|
|
50
50
|
AppError2,
|
|
51
51
|
notFound2,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
forbidden2,
|
|
55
55
|
conflict2,
|
|
56
56
|
rateLimited2
|
|
57
|
-
} from "../index-
|
|
57
|
+
} from "../index-7fjbdga8.js";
|
|
58
58
|
// src/server/node.ts
|
|
59
59
|
import { serve } from "srvx/node";
|
|
60
60
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/process/bootstrap.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAE9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import"../../index-6kec3b14.js";
|
|
2
|
+
import {
|
|
3
|
+
ownerLossGuardStarted
|
|
4
|
+
} from "../../index-jpecjm30.js";
|
|
5
|
+
import"../../index-673drwkn.js";
|
|
6
|
+
import {
|
|
7
|
+
workRootStarted
|
|
8
|
+
} from "../../index-wxjv4sqx.js";
|
|
9
|
+
|
|
10
|
+
// src/process/bootstrap.ts
|
|
11
|
+
function bootstrapPackageProcess() {
|
|
12
|
+
return ownerLossGuardStarted() || workRootStarted();
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
bootstrapPackageProcess
|
|
16
|
+
};
|
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
} from "../index-673drwkn.js";
|
|
7
7
|
import {
|
|
8
8
|
NativeCommandError2
|
|
9
|
-
} from "../index-
|
|
10
|
-
import"../index-
|
|
9
|
+
} from "../index-jpecjm30.js";
|
|
10
|
+
import"../index-pbekeqzm.js";
|
|
11
11
|
import {
|
|
12
12
|
ContractStreamErrorSchema
|
|
13
|
-
} from "../index-
|
|
13
|
+
} from "../index-yrhw10ef.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeError2
|
|
16
|
-
} from "../index-
|
|
16
|
+
} from "../index-78da4g74.js";
|
|
17
17
|
import {
|
|
18
18
|
streamNativeCommand2
|
|
19
|
-
} from "../index-
|
|
19
|
+
} from "../index-gtaaxe9d.js";
|
|
20
20
|
import {
|
|
21
21
|
runNativeCommand2
|
|
22
|
-
} from "../index-
|
|
22
|
+
} from "../index-d04w81fz.js";
|
|
23
23
|
import {
|
|
24
24
|
StreamLineLimitError2,
|
|
25
25
|
readBoundedUtf8Lines
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "../index-zsarb5xp.js";
|
|
30
30
|
import {
|
|
31
31
|
AppError2
|
|
32
|
-
} from "../index-
|
|
32
|
+
} from "../index-7fjbdga8.js";
|
|
33
33
|
import {
|
|
34
34
|
assertPositiveSafeInteger
|
|
35
35
|
} from "../index-gr0kxymw.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../index-
|
|
1
|
+
import"../index-0k1ba0ss.js";
|
|
2
2
|
import"../index-4s0fep5q.js";
|
|
3
3
|
import {
|
|
4
4
|
defineRealtimeContract2
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
createRetainedTopics2,
|
|
8
8
|
createRealtimeClientWithPeer,
|
|
9
9
|
createSocketIOClientWithPeer
|
|
10
|
-
} from "../index-
|
|
10
|
+
} from "../index-8yt3rwe7.js";
|
|
11
11
|
import {
|
|
12
12
|
bindRealtimeClient2
|
|
13
|
-
} from "../index-
|
|
13
|
+
} from "../index-y53cqwke.js";
|
|
14
14
|
// src/browser/socket-io-explicit-peer.ts
|
|
15
15
|
var missingPeer = () => Promise.reject(new Error("stitchkit/realtime requires peers.client: () => import('socket.io-client') so the native bundler includes its transport."));
|
|
16
16
|
function createRealtimeClient(contract, config) {
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import"../index-m38ej7e5.js";
|
|
2
2
|
import"../index-gnjgkecx.js";
|
|
3
|
-
import"../index-
|
|
3
|
+
import"../index-yrhw10ef.js";
|
|
4
4
|
import"../index-jcge9tx3.js";
|
|
5
5
|
import"../index-yt1gg11x.js";
|
|
6
6
|
import {
|
|
7
7
|
endpointHasArguments,
|
|
8
8
|
createClient2
|
|
9
|
-
} from "../index-
|
|
9
|
+
} from "../index-pws5c3x6.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiError2
|
|
12
12
|
} from "../index-kfjkb396.js";
|
|
13
13
|
import {
|
|
14
|
-
contractMethodFields
|
|
15
|
-
|
|
14
|
+
contractMethodFields,
|
|
15
|
+
withDeclaredRefusals
|
|
16
|
+
} from "../index-6918kxbf.js";
|
|
16
17
|
import {
|
|
17
18
|
AppError2,
|
|
18
19
|
STITCH_ERROR_STATUS2
|
|
19
|
-
} from "../index-
|
|
20
|
+
} from "../index-7fjbdga8.js";
|
|
20
21
|
import {
|
|
21
22
|
isRecord,
|
|
22
23
|
isAsyncIterable
|
|
@@ -79,7 +80,7 @@ function implementRemote(contract, http, options) {
|
|
|
79
80
|
methods[key] = {
|
|
80
81
|
...contractMethodFields(contract, key, endpoint),
|
|
81
82
|
mcp: undefined,
|
|
82
|
-
handler: async (ctx) => {
|
|
83
|
+
handler: withDeclaredRefusals(endpoint, `${contract.meta.prefix}.${key}`, async (ctx) => {
|
|
83
84
|
const call = client[key];
|
|
84
85
|
if (!call) {
|
|
85
86
|
throw new Error(`implementRemote: endpoint "${key}" is not exposed over HTTP`);
|
|
@@ -97,7 +98,7 @@ function implementRemote(contract, http, options) {
|
|
|
97
98
|
throw projectRemoteError(err);
|
|
98
99
|
throw err;
|
|
99
100
|
}
|
|
100
|
-
}
|
|
101
|
+
})
|
|
101
102
|
};
|
|
102
103
|
}
|
|
103
104
|
return {
|
|
@@ -4,10 +4,10 @@ import"../index-vmbxj75t.js";
|
|
|
4
4
|
import {
|
|
5
5
|
errorCode2,
|
|
6
6
|
normalizeError2
|
|
7
|
-
} from "../index-
|
|
7
|
+
} from "../index-78da4g74.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_CONTRACT_STREAM_FRAME_BYTES2
|
|
10
|
-
} from "../index-
|
|
10
|
+
} from "../index-yrhw10ef.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_CORS_ALLOW_HEADERS2,
|
|
13
13
|
DEFAULT_CORS_EXPOSE_HEADERS2,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
fingerprintOperations,
|
|
30
30
|
contractIdentityContract2
|
|
31
|
-
} from "../index-
|
|
31
|
+
} from "../index-8t9dr41h.js";
|
|
32
32
|
import"../index-yt1gg11x.js";
|
|
33
33
|
import"../index-werjqesf.js";
|
|
34
|
-
import"../index-
|
|
34
|
+
import"../index-9c76vfxf.js";
|
|
35
35
|
import {
|
|
36
36
|
createScopedImplementRegistry2,
|
|
37
37
|
implementRegistry2,
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
createSocketIOServer2,
|
|
48
48
|
socketIoLane2,
|
|
49
49
|
createUnixClientTransport2
|
|
50
|
-
} from "../index-
|
|
50
|
+
} from "../index-gbhj370g.js";
|
|
51
51
|
import"../index-27hck3z2.js";
|
|
52
52
|
import {
|
|
53
53
|
toJsonSchema,
|
|
54
54
|
jsonSchemaFields
|
|
55
55
|
} from "../index-ngwf1s3c.js";
|
|
56
|
-
import"../index-
|
|
56
|
+
import"../index-0k1ba0ss.js";
|
|
57
57
|
import"../index-4s0fep5q.js";
|
|
58
58
|
import"../index-xqhede6x.js";
|
|
59
59
|
import {
|
|
@@ -61,10 +61,10 @@ import {
|
|
|
61
61
|
} from "../index-9kpxz49v.js";
|
|
62
62
|
import {
|
|
63
63
|
bindRealtimeServer2
|
|
64
|
-
} from "../index-
|
|
64
|
+
} from "../index-y68gavb5.js";
|
|
65
65
|
import {
|
|
66
66
|
createErrorHook2
|
|
67
|
-
} from "../index-
|
|
67
|
+
} from "../index-g4gstmp1.js";
|
|
68
68
|
import {
|
|
69
69
|
contextContributionDelta,
|
|
70
70
|
prepareContextContribution,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
ndjsonRoute2,
|
|
76
76
|
sseRoute2,
|
|
77
77
|
createHandler2
|
|
78
|
-
} from "../index-
|
|
78
|
+
} from "../index-tmv3ez1h.js";
|
|
79
79
|
import {
|
|
80
80
|
secretsEqual
|
|
81
81
|
} from "../index-apv5xfef.js";
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
verifyJwt2,
|
|
105
105
|
signJwt2,
|
|
106
106
|
verifyPkce2
|
|
107
|
-
} from "../index-
|
|
107
|
+
} from "../index-nr4fhfn4.js";
|
|
108
108
|
import {
|
|
109
109
|
deriveCodeChallenge2
|
|
110
110
|
} from "../index-ap3gqe56.js";
|
|
@@ -114,8 +114,8 @@ import {
|
|
|
114
114
|
implement2,
|
|
115
115
|
createImplement2,
|
|
116
116
|
createScopedImplement2
|
|
117
|
-
} from "../index-
|
|
118
|
-
import"../index-
|
|
117
|
+
} from "../index-1qwd54n3.js";
|
|
118
|
+
import"../index-6918kxbf.js";
|
|
119
119
|
import {
|
|
120
120
|
generateTraceId2,
|
|
121
121
|
resolveTraceId2,
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
rateLimited2,
|
|
149
149
|
STITCH_ERROR_STATUS2,
|
|
150
150
|
isStitchErrorCode2
|
|
151
|
-
} from "../index-
|
|
151
|
+
} from "../index-7fjbdga8.js";
|
|
152
152
|
import {
|
|
153
153
|
isRecord
|
|
154
154
|
} from "../index-ps3djm8d.js";
|
|
@@ -810,7 +810,8 @@ function serviceOperations(services) {
|
|
|
810
810
|
params: method.paramsSchema,
|
|
811
811
|
input: method.inputSchema,
|
|
812
812
|
output: method.outputSchema,
|
|
813
|
-
item: method.stream?.item
|
|
813
|
+
item: method.stream?.item,
|
|
814
|
+
refuses: method.refuses
|
|
814
815
|
});
|
|
815
816
|
}
|
|
816
817
|
}
|
|
@@ -1734,6 +1735,18 @@ function errorResponses(guarded) {
|
|
|
1734
1735
|
}
|
|
1735
1736
|
return responses;
|
|
1736
1737
|
}
|
|
1738
|
+
function declaredRefusals(refuses, responses) {
|
|
1739
|
+
for (const status of new Set(refuses.map((refusal) => String(refusal.status))))
|
|
1740
|
+
if (!(status in responses))
|
|
1741
|
+
responses[status] = errorResponse("Declared refusal");
|
|
1742
|
+
return refuses.map((refusal) => ({
|
|
1743
|
+
code: refusal.code,
|
|
1744
|
+
status: refusal.status,
|
|
1745
|
+
retryable: refusal.retryable,
|
|
1746
|
+
...refusal.message !== undefined && { message: refusal.message },
|
|
1747
|
+
...refusal.details !== undefined && { details: safeJson(refusal.details, "output") }
|
|
1748
|
+
}));
|
|
1749
|
+
}
|
|
1737
1750
|
function multipartRequestBody(inputSchema, multipart) {
|
|
1738
1751
|
const inputJson = safeJson(inputSchema, "input");
|
|
1739
1752
|
const baseProps = isRecord(inputJson.properties) ? inputJson.properties : {};
|
|
@@ -1857,6 +1870,9 @@ function generateOpenApiDocument(config) {
|
|
|
1857
1870
|
"x-stitchkit-has-input": Boolean(method.inputSchema),
|
|
1858
1871
|
"x-stitchkit-has-output": Boolean(method.outputSchema || method.stream),
|
|
1859
1872
|
...method.stream && { "x-stitchkit-stream": true },
|
|
1873
|
+
...method.refuses && {
|
|
1874
|
+
"x-stitchkit-refusals": declaredRefusals(method.refuses, responses)
|
|
1875
|
+
},
|
|
1860
1876
|
...parameters.length > 0 && { parameters },
|
|
1861
1877
|
...requirement && { security: requirement },
|
|
1862
1878
|
responses
|