stitchkit 0.132.3 → 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 +172 -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/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 +8 -11
- package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-manager.d.ts +4 -2
- package/dist/agent-executor/claude-sdk/query-manager.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-options.d.ts +1 -0
- 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 +23 -3
- 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 +6 -8
- 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/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 +253 -210
- package/dist/entrypoints/agent-executor/claude-sdk.js +248 -173
- package/dist/entrypoints/agent-executor/claude.js +57 -109
- package/dist/entrypoints/agent-executor/codex.js +412 -335
- 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
|
@@ -2,6 +2,10 @@ import {
|
|
|
2
2
|
joinRoutePath,
|
|
3
3
|
parseRoutePattern
|
|
4
4
|
} from "../../index-m38ej7e5.js";
|
|
5
|
+
import {
|
|
6
|
+
classifyTelegramSendFailure2,
|
|
7
|
+
classifyTelegramEditRefusal
|
|
8
|
+
} from "../../index-gj1rjf78.js";
|
|
5
9
|
import {
|
|
6
10
|
checkTelegramHtml2
|
|
7
11
|
} from "../../index-97q9kykw.js";
|
|
@@ -10,10 +14,6 @@ import {
|
|
|
10
14
|
TELEGRAM_CAPTION_LIMIT2,
|
|
11
15
|
escapeTelegramHtml2
|
|
12
16
|
} from "../../index-ac5rj3d4.js";
|
|
13
|
-
import {
|
|
14
|
-
classifyTelegramSendFailure2,
|
|
15
|
-
classifyTelegramEditRefusal
|
|
16
|
-
} from "../../index-gj1rjf78.js";
|
|
17
17
|
import {
|
|
18
18
|
createMutationQueue
|
|
19
19
|
} from "../../index-sykb5ag7.js";
|
|
@@ -17,16 +17,16 @@ import {
|
|
|
17
17
|
TelegramVoiceWaveformError2,
|
|
18
18
|
packTelegramVoiceWaveform2
|
|
19
19
|
} from "../index-0jdempdr.js";
|
|
20
|
-
import {
|
|
21
|
-
TELEGRAM_TEXT_LIMIT2,
|
|
22
|
-
truncateTelegramHtml2
|
|
23
|
-
} from "../index-ac5rj3d4.js";
|
|
24
20
|
import {
|
|
25
21
|
TelegramNotDispatchedError2,
|
|
26
22
|
isTelegramNotDispatchedError,
|
|
27
23
|
TELEGRAM_SEND_FAILURE_REASONS2,
|
|
28
24
|
classifyTelegramSendFailure2
|
|
29
25
|
} from "../index-gj1rjf78.js";
|
|
26
|
+
import {
|
|
27
|
+
TELEGRAM_TEXT_LIMIT2,
|
|
28
|
+
truncateTelegramHtml2
|
|
29
|
+
} from "../index-ac5rj3d4.js";
|
|
30
30
|
import {
|
|
31
31
|
secretsEqual
|
|
32
32
|
} from "../index-apv5xfef.js";
|
|
@@ -7,5 +7,6 @@ export { type ManagedResourceConformanceConfig, type ManagedResourceConformanceC
|
|
|
7
7
|
export { createManualClock, type ManualClock, ManualClockError, type ManualClockErrorCode, type ManualClockHold, type ManualClockOptions, type ManualClockTimer, type ManualClockUntilOptions, } from '../testing/manual-clock.js';
|
|
8
8
|
export { type CreateRealtimeProbeDriverConfig, createRealtimeProbeDriver, type DefineRealtimeProbeConfig, defineRealtimeProbe, type RealtimeProbeAdapter, type RealtimeProbeFixture, type RealtimeProbeScenario, } from '../testing/realtime-probe.js';
|
|
9
9
|
export { assertSurfaceDiscovery, type ConformanceTransport, type RealtimeDisconnectObservation, RealtimeDisconnectObservationSchema, type RealtimeRejectionObservation, RealtimeRejectionObservationSchema, type RunSurfaceProbesConfig, runSurfaceProbes, type SurfaceDiscoveryObservation, type SurfaceProbe, type SurfaceProbeDriver, type SurfaceRealtimeDiscoveryObservation, type SurfaceToolDiscoveryObservation, type TransportObservation, TransportObservationSchema, } from '../testing/surface-conformance.js';
|
|
10
|
-
export { assertSurfaceManifestSnapshot, buildSurfaceManifest,
|
|
10
|
+
export { assertSurfaceManifestSnapshot, buildSurfaceManifest, SURFACE_MANIFEST_VERSION, type SurfaceAgentProjection, type SurfaceManifest, type SurfaceManifestConfig, type SurfaceManifestExtension, SurfaceManifestExtensionSchema, type SurfaceManifestOperation, type SurfaceManifestOperationMcp, SurfaceManifestOperationMcpSchema, type SurfaceManifestOperationRefusal, SurfaceManifestOperationRefusalSchema, SurfaceManifestOperationSchema, type SurfaceManifestOperationToolView, SurfaceManifestOperationToolViewSchema, type SurfaceManifestRealtimeEvent, SurfaceManifestRealtimeEventSchema, SurfaceManifestSchema, type SurfaceManifestTool, SurfaceManifestToolSchema, type SurfaceManifestToolSurface, SurfaceManifestToolSurfaceSchema, type SurfaceMcpPreparation, SurfaceRealtimeSchemaPairSchema, type SurfaceRuntimeToolDefinition, SurfaceSchemaDigestsSchema, type SurfaceToolDefinition, type SurfaceToolExtension, } from '../testing/surface-manifest.js';
|
|
11
|
+
export type { IncompatibleSchemaPolicy, McpSchemaValidationConfig, } from '../tools/internal/mcp-projection.js';
|
|
11
12
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/entrypoints/testing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,+BAA+B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,qCAAqC,EACrC,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,0CAA0C,EAC1C,wCAAwC,EACxC,KAAK,oCAAoC,EACzC,0CAA0C,EAC1C,KAAK,sCAAsC,EAC3C,4CAA4C,EAC5C,6BAA6B,GAC9B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,KAAK,WAAW,EAChB,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,+BAA+B,EACpC,yBAAyB,EACzB,KAAK,yBAAyB,EAC9B,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EACtB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,mCAAmC,EACnC,KAAK,4BAA4B,EACjC,kCAAkC,EAClC,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mCAAmC,EACxC,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EACzB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/entrypoints/testing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,+BAA+B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,qCAAqC,EACrC,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,0CAA0C,EAC1C,wCAAwC,EACxC,KAAK,oCAAoC,EACzC,0CAA0C,EAC1C,KAAK,sCAAsC,EAC3C,4CAA4C,EAC5C,6BAA6B,GAC9B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,KAAK,WAAW,EAChB,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,+BAA+B,EACpC,yBAAyB,EACzB,KAAK,yBAAyB,EAC9B,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EACtB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,mCAAmC,EACnC,KAAK,4BAA4B,EACjC,kCAAkC,EAClC,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mCAAmC,EACxC,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EACzB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACpB,wBAAwB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,8BAA8B,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,iCAAiC,EACjC,KAAK,+BAA+B,EACpC,qCAAqC,EACrC,8BAA8B,EAC9B,KAAK,gCAAgC,EACrC,sCAAsC,EACtC,KAAK,4BAA4B,EACjC,kCAAkC,EAClC,qBAAqB,EACrB,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,0BAA0B,EAC/B,gCAAgC,EAChC,KAAK,qBAAqB,EAC1B,+BAA+B,EAC/B,KAAK,4BAA4B,EACjC,0BAA0B,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,kCAAkC,CAAC"}
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
joinRoutePath
|
|
3
3
|
} from "../index-m38ej7e5.js";
|
|
4
4
|
import"../index-gnjgkecx.js";
|
|
5
|
-
import"../index-
|
|
5
|
+
import"../index-yrhw10ef.js";
|
|
6
6
|
import"../index-jcge9tx3.js";
|
|
7
7
|
import"../index-t1a2jrg7.js";
|
|
8
8
|
import {
|
|
9
9
|
createApplication2
|
|
10
|
-
} from "../index-
|
|
10
|
+
} from "../index-rkjfzs0a.js";
|
|
11
11
|
import"../index-w5s3xftz.js";
|
|
12
12
|
import {
|
|
13
13
|
RealtimeRequestTimeoutError2,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
TOOL_TRANSPORTS2
|
|
19
19
|
} from "../index-yt1gg11x.js";
|
|
20
20
|
import"../index-werjqesf.js";
|
|
21
|
-
import"../index-
|
|
21
|
+
import"../index-9c76vfxf.js";
|
|
22
22
|
import {
|
|
23
23
|
RealtimeRejectDirectionSchema,
|
|
24
24
|
RealtimeRejectPhaseSchema,
|
|
@@ -29,18 +29,21 @@ import"../index-27hck3z2.js";
|
|
|
29
29
|
import {
|
|
30
30
|
toJsonSchema
|
|
31
31
|
} from "../index-ngwf1s3c.js";
|
|
32
|
+
import {
|
|
33
|
+
projectToolSurface
|
|
34
|
+
} from "../index-ma26mfnt.js";
|
|
35
|
+
import"../index-78da4g74.js";
|
|
36
|
+
import"../index-360j58vb.js";
|
|
32
37
|
import {
|
|
33
38
|
staticInputRounds,
|
|
34
|
-
projectToolSurface,
|
|
35
39
|
mcpProjectionCandidate,
|
|
36
40
|
prepareProjectedMcpTools
|
|
37
|
-
} from "../index-
|
|
38
|
-
import"../index-360j58vb.js";
|
|
39
|
-
import"../index-akf0xkrm.js";
|
|
41
|
+
} from "../index-2dzc7mv9.js";
|
|
40
42
|
import {
|
|
41
43
|
createClient2,
|
|
42
44
|
createClients2
|
|
43
|
-
} from "../index-
|
|
45
|
+
} from "../index-pws5c3x6.js";
|
|
46
|
+
import"../index-k9g061ma.js";
|
|
44
47
|
import"../index-hy4653g4.js";
|
|
45
48
|
import {
|
|
46
49
|
compareCodeUnits,
|
|
@@ -1139,9 +1142,17 @@ function operationFrom(kind, source) {
|
|
|
1139
1142
|
},
|
|
1140
1143
|
mcp: mcpRoundsOf(source),
|
|
1141
1144
|
...toolViewEntry(source),
|
|
1145
|
+
...source.refuses && { refusals: refusalsOf(source.refuses) },
|
|
1142
1146
|
http: []
|
|
1143
1147
|
};
|
|
1144
1148
|
}
|
|
1149
|
+
function refusalsOf(refuses) {
|
|
1150
|
+
return refuses.map((refusal) => ({
|
|
1151
|
+
code: refusal.code,
|
|
1152
|
+
status: refusal.status,
|
|
1153
|
+
details: schemaDigest(refusal.details, "output")
|
|
1154
|
+
})).sort((left, right) => compareCodeUnits(left.code, right.code));
|
|
1155
|
+
}
|
|
1145
1156
|
function toolViewOf(source) {
|
|
1146
1157
|
const view = source.toolView;
|
|
1147
1158
|
if (!view)
|
|
@@ -1183,6 +1194,7 @@ function operationFingerprint(source) {
|
|
|
1183
1194
|
ui: source.ui ?? null,
|
|
1184
1195
|
mcp,
|
|
1185
1196
|
toolView: toolViewOf(source),
|
|
1197
|
+
refusals: source.refuses ? refusalsOf(source.refuses) : null,
|
|
1186
1198
|
rawBody: source.rawBody ?? false,
|
|
1187
1199
|
safelistedBody: source.safelistedBody ?? false,
|
|
1188
1200
|
rawResponse: source.rawResponse ?? false,
|
|
@@ -1243,6 +1255,11 @@ var SurfaceManifestOperationToolViewSchema = z3.object({
|
|
|
1243
1255
|
output: z3.string().nullable(),
|
|
1244
1256
|
project: z3.boolean()
|
|
1245
1257
|
});
|
|
1258
|
+
var SurfaceManifestOperationRefusalSchema = z3.object({
|
|
1259
|
+
code: z3.string(),
|
|
1260
|
+
status: z3.number().int(),
|
|
1261
|
+
details: z3.string().nullable()
|
|
1262
|
+
});
|
|
1246
1263
|
var SurfaceManifestOperationSchema = z3.object({
|
|
1247
1264
|
kind: z3.enum(["contract", "runtime"]),
|
|
1248
1265
|
service: z3.string(),
|
|
@@ -1253,6 +1270,7 @@ var SurfaceManifestOperationSchema = z3.object({
|
|
|
1253
1270
|
schemas: SurfaceSchemaDigestsSchema,
|
|
1254
1271
|
mcp: SurfaceManifestOperationMcpSchema,
|
|
1255
1272
|
toolView: SurfaceManifestOperationToolViewSchema.optional(),
|
|
1273
|
+
refusals: z3.array(SurfaceManifestOperationRefusalSchema).optional(),
|
|
1256
1274
|
http: z3.array(z3.object({ method: HttpMethodSchema, path: z3.string() }))
|
|
1257
1275
|
});
|
|
1258
1276
|
var SurfaceManifestToolSchema = z3.object({
|
|
@@ -1467,6 +1485,7 @@ export {
|
|
|
1467
1485
|
SURFACE_MANIFEST_VERSION,
|
|
1468
1486
|
SurfaceManifestExtensionSchema,
|
|
1469
1487
|
SurfaceManifestOperationMcpSchema,
|
|
1488
|
+
SurfaceManifestOperationRefusalSchema,
|
|
1470
1489
|
SurfaceManifestOperationSchema,
|
|
1471
1490
|
SurfaceManifestOperationToolViewSchema,
|
|
1472
1491
|
SurfaceManifestRealtimeEventSchema,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import"../../index-
|
|
1
|
+
import"../../index-78da4g74.js";
|
|
2
2
|
import"../../index-dsa676h8.js";
|
|
3
3
|
import"../../index-27hck3z2.js";
|
|
4
4
|
import"../../index-ngwf1s3c.js";
|
|
5
5
|
import"../../index-360j58vb.js";
|
|
6
6
|
import"../../index-j903yhp4.js";
|
|
7
|
-
import"../../index-
|
|
7
|
+
import"../../index-6kmjcm81.js";
|
|
8
8
|
import"../../index-yt1gg11x.js";
|
|
9
|
-
import"../../index-
|
|
10
|
-
import"../../index-
|
|
9
|
+
import"../../index-ma26mfnt.js";
|
|
10
|
+
import"../../index-5n3a8hd8.js";
|
|
11
11
|
import"../../index-werjqesf.js";
|
|
12
12
|
import {
|
|
13
13
|
mountAgent2
|
|
14
|
-
} from "../../index-
|
|
15
|
-
import"../../index-
|
|
14
|
+
} from "../../index-1dn2wjq6.js";
|
|
15
|
+
import"../../index-q427q23r.js";
|
|
16
16
|
import"../../index-7csn6pva.js";
|
|
17
17
|
import"../../index-hy4653g4.js";
|
|
18
18
|
export {
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "../../index-7csn6pva.js";
|
|
25
25
|
import {
|
|
26
26
|
TOOL_ERROR_PROJECTION
|
|
27
|
-
} from "../../index-
|
|
27
|
+
} from "../../index-dacxr7nf.js";
|
|
28
28
|
import {
|
|
29
29
|
declaresDraft07,
|
|
30
30
|
withDraft2020Keywords,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
AppError2,
|
|
41
41
|
STITCH_ERROR_STATUS2,
|
|
42
42
|
isRetryableStatus2
|
|
43
|
-
} from "../../index-
|
|
43
|
+
} from "../../index-7fjbdga8.js";
|
|
44
44
|
import {
|
|
45
45
|
serializeCanonicalJson
|
|
46
46
|
} from "../../index-fmzg39a8.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import"../../index-
|
|
1
|
+
import"../../index-78da4g74.js";
|
|
2
2
|
import"../../index-dsa676h8.js";
|
|
3
3
|
import"../../index-27hck3z2.js";
|
|
4
4
|
import"../../index-ngwf1s3c.js";
|
|
5
5
|
import"../../index-360j58vb.js";
|
|
6
6
|
import"../../index-j903yhp4.js";
|
|
7
|
-
import"../../index-
|
|
7
|
+
import"../../index-6kmjcm81.js";
|
|
8
8
|
import"../../index-yt1gg11x.js";
|
|
9
|
-
import"../../index-
|
|
10
|
-
import"../../index-
|
|
9
|
+
import"../../index-ma26mfnt.js";
|
|
10
|
+
import"../../index-5n3a8hd8.js";
|
|
11
11
|
import {
|
|
12
12
|
createToolInvoker2
|
|
13
|
-
} from "../../index-
|
|
13
|
+
} from "../../index-1p8q0yrt.js";
|
|
14
14
|
import"../../index-hy4653g4.js";
|
|
15
15
|
export {
|
|
16
16
|
createToolInvoker2 as createToolInvoker
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import"../../index-mbd92r1w.js";
|
|
2
|
-
import"../../index-
|
|
2
|
+
import"../../index-78da4g74.js";
|
|
3
3
|
import"../../index-dsa676h8.js";
|
|
4
4
|
import"../../index-27hck3z2.js";
|
|
5
5
|
import"../../index-ngwf1s3c.js";
|
|
6
6
|
import"../../index-360j58vb.js";
|
|
7
7
|
import"../../index-j903yhp4.js";
|
|
8
|
-
import"../../index-
|
|
8
|
+
import"../../index-6kmjcm81.js";
|
|
9
9
|
import"../../index-yt1gg11x.js";
|
|
10
|
-
import"../../index-
|
|
11
|
-
import"../../index-
|
|
10
|
+
import"../../index-ma26mfnt.js";
|
|
11
|
+
import"../../index-5n3a8hd8.js";
|
|
12
12
|
import"../../index-0x4mnwg5.js";
|
|
13
13
|
import"../../index-werjqesf.js";
|
|
14
14
|
import {
|
|
@@ -22,20 +22,22 @@ import {
|
|
|
22
22
|
createMcpHandler2,
|
|
23
23
|
createMcpHttpRoute2,
|
|
24
24
|
createStdioMcpServer2
|
|
25
|
-
} from "../../index-
|
|
25
|
+
} from "../../index-02r5sq9p.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_PROCESS_SIGNALS,
|
|
28
28
|
defaultSignalSource,
|
|
29
29
|
reportSignalError,
|
|
30
30
|
guardSignalCallback
|
|
31
31
|
} from "../../index-3prvb42w.js";
|
|
32
|
+
import"../../index-2dzc7mv9.js";
|
|
32
33
|
import {
|
|
33
34
|
MCP_CATALOG_META_KEY2,
|
|
34
35
|
mcpCatalogMeta2,
|
|
35
36
|
readMcpCatalogStamp2
|
|
36
37
|
} from "../../index-5t4fpdct.js";
|
|
37
38
|
import"../../index-tazm4dxf.js";
|
|
38
|
-
import"../../index-
|
|
39
|
+
import"../../index-k9g061ma.js";
|
|
40
|
+
import"../../index-q427q23r.js";
|
|
39
41
|
import"../../index-7csn6pva.js";
|
|
40
42
|
import"../../index-hy4653g4.js";
|
|
41
43
|
// src/tools/mcp/stdio-signals.ts
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import"../../index-
|
|
1
|
+
import"../../index-78da4g74.js";
|
|
2
2
|
import"../../index-dsa676h8.js";
|
|
3
3
|
import"../../index-27hck3z2.js";
|
|
4
4
|
import"../../index-ngwf1s3c.js";
|
|
5
5
|
import"../../index-360j58vb.js";
|
|
6
6
|
import"../../index-j903yhp4.js";
|
|
7
|
-
import"../../index-
|
|
7
|
+
import"../../index-6kmjcm81.js";
|
|
8
8
|
import"../../index-yt1gg11x.js";
|
|
9
|
-
import"../../index-
|
|
10
|
-
import"../../index-
|
|
9
|
+
import"../../index-ma26mfnt.js";
|
|
10
|
+
import"../../index-5n3a8hd8.js";
|
|
11
11
|
import"../../index-werjqesf.js";
|
|
12
12
|
import {
|
|
13
13
|
mountAgent2
|
|
14
|
-
} from "../../index-
|
|
14
|
+
} from "../../index-1dn2wjq6.js";
|
|
15
15
|
import {
|
|
16
16
|
createCli2
|
|
17
|
-
} from "../../index-
|
|
17
|
+
} from "../../index-9wdrwx3b.js";
|
|
18
18
|
import"../../index-0x4mnwg5.js";
|
|
19
19
|
import"../../index-6kec3b14.js";
|
|
20
20
|
import"../../index-gy9x38a2.js";
|
|
21
|
-
import"../../index-
|
|
21
|
+
import"../../index-yrhw10ef.js";
|
|
22
22
|
import"../../index-mbd92r1w.js";
|
|
23
23
|
import {
|
|
24
24
|
mountMcp2,
|
|
25
25
|
buildMcpServer2,
|
|
26
26
|
createMcpHandler2,
|
|
27
27
|
createStdioMcpServer2
|
|
28
|
-
} from "../../index-
|
|
28
|
+
} from "../../index-02r5sq9p.js";
|
|
29
|
+
import"../../index-2dzc7mv9.js";
|
|
29
30
|
import"../../index-rjs94dny.js";
|
|
30
31
|
import"../../index-xrgn784x.js";
|
|
31
32
|
import"../../index-tazm4dxf.js";
|
|
32
|
-
import"../../index-
|
|
33
|
+
import"../../index-k9g061ma.js";
|
|
34
|
+
import"../../index-q427q23r.js";
|
|
33
35
|
import"../../index-7csn6pva.js";
|
|
34
36
|
import"../../index-hy4653g4.js";
|
|
35
37
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "../index-mbd92r1w.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeError2
|
|
12
|
-
} from "../index-
|
|
12
|
+
} from "../index-78da4g74.js";
|
|
13
13
|
import"../index-dsa676h8.js";
|
|
14
14
|
import"../index-27hck3z2.js";
|
|
15
15
|
import"../index-ngwf1s3c.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
ToolExecutionControlError2,
|
|
22
22
|
isToolExecutionControlError2
|
|
23
|
-
} from "../index-
|
|
23
|
+
} from "../index-6kmjcm81.js";
|
|
24
24
|
import {
|
|
25
25
|
ALL_TRANSPORTS2,
|
|
26
26
|
TOOL_TRANSPORTS2
|
|
@@ -28,19 +28,16 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
assertToolName,
|
|
30
30
|
assertUniqueToolName,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
flattenToolJsonSchema2,
|
|
34
|
-
findUntypedProperties2
|
|
35
|
-
} from "../index-669374qc.js";
|
|
31
|
+
flattenToolJsonSchema2
|
|
32
|
+
} from "../index-ma26mfnt.js";
|
|
36
33
|
import {
|
|
37
34
|
collectTools2
|
|
38
|
-
} from "../index-
|
|
35
|
+
} from "../index-5n3a8hd8.js";
|
|
39
36
|
import"../index-m38ej7e5.js";
|
|
40
37
|
import"../index-werjqesf.js";
|
|
41
38
|
import {
|
|
42
39
|
defineContract2
|
|
43
|
-
} from "../index-
|
|
40
|
+
} from "../index-9c76vfxf.js";
|
|
44
41
|
import {
|
|
45
42
|
AsyncOperationCancelResultSchema2,
|
|
46
43
|
createAsyncOperationSnapshotSchema2
|
|
@@ -60,17 +57,17 @@ import {
|
|
|
60
57
|
import {
|
|
61
58
|
signJwt2,
|
|
62
59
|
verifyPkce2
|
|
63
|
-
} from "../index-
|
|
60
|
+
} from "../index-nr4fhfn4.js";
|
|
64
61
|
import {
|
|
65
62
|
describeToolCatalog2,
|
|
66
63
|
buildToolManifest2
|
|
67
|
-
} from "../index-
|
|
64
|
+
} from "../index-rw8ze745.js";
|
|
68
65
|
import {
|
|
69
66
|
listToolNames2,
|
|
70
67
|
listContractToolNames2
|
|
71
|
-
} from "../index-
|
|
72
|
-
import"../index-
|
|
73
|
-
import"../index-
|
|
68
|
+
} from "../index-pq6g1k9t.js";
|
|
69
|
+
import"../index-1qwd54n3.js";
|
|
70
|
+
import"../index-6918kxbf.js";
|
|
74
71
|
import {
|
|
75
72
|
PROTECTED_RESOURCE_PATH2,
|
|
76
73
|
protectedResourceMetadataUrl2,
|
|
@@ -78,13 +75,18 @@ import {
|
|
|
78
75
|
oauthProtectedResourceRoute2,
|
|
79
76
|
createMcpProgressReporter
|
|
80
77
|
} from "../index-tazm4dxf.js";
|
|
78
|
+
import {
|
|
79
|
+
PORTABLE_JSON_SCHEMA_FORMATS2,
|
|
80
|
+
findNonPortableFormats2,
|
|
81
|
+
findUntypedProperties2
|
|
82
|
+
} from "../index-k9g061ma.js";
|
|
81
83
|
import {
|
|
82
84
|
AgentToolError2,
|
|
83
85
|
isAgentToolError2
|
|
84
86
|
} from "../index-1psbyyhj.js";
|
|
85
87
|
import {
|
|
86
88
|
createToolInvoker2
|
|
87
|
-
} from "../index-
|
|
89
|
+
} from "../index-1p8q0yrt.js";
|
|
88
90
|
import {
|
|
89
91
|
WaitTimeoutError,
|
|
90
92
|
runWaitOperation,
|
|
@@ -92,7 +94,7 @@ import {
|
|
|
92
94
|
} from "../index-n20tybgk.js";
|
|
93
95
|
import {
|
|
94
96
|
collectToolSurface
|
|
95
|
-
} from "../index-
|
|
97
|
+
} from "../index-q427q23r.js";
|
|
96
98
|
import {
|
|
97
99
|
getTraceId2
|
|
98
100
|
} from "../index-x6sp5vpa.js";
|
|
@@ -121,7 +123,7 @@ import {
|
|
|
121
123
|
import {
|
|
122
124
|
AppError2,
|
|
123
125
|
STITCH_ERROR_STATUS2
|
|
124
|
-
} from "../index-
|
|
126
|
+
} from "../index-7fjbdga8.js";
|
|
125
127
|
import {
|
|
126
128
|
readBoundedText
|
|
127
129
|
} from "../index-827bgv33.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_BOT_USER_AGENT_PATTERN2
|
|
3
|
+
} from "../../index-1f40z584.js";
|
|
1
4
|
import {
|
|
2
5
|
redactTrackingText2,
|
|
3
6
|
sendUnloadBeacon2
|
|
4
7
|
} from "../../index-8vzh5wpv.js";
|
|
5
|
-
import {
|
|
6
|
-
DEFAULT_BOT_USER_AGENT_PATTERN2
|
|
7
|
-
} from "../../index-1f40z584.js";
|
|
8
8
|
import {
|
|
9
9
|
assertTimerMs
|
|
10
10
|
} from "../../index-agy5fqgf.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/** What `buildClientArtifact` builds from, where it writes and what it must refuse or prove. */
|
|
1
|
+
import { type ForbiddenModule } from './client-build.js';
|
|
2
|
+
/** What `buildClientArtifact` builds from, where it writes and what it must refuse. */
|
|
4
3
|
export interface ClientArtifactOptions {
|
|
5
4
|
/** The client's entry module. */
|
|
6
5
|
entry: string;
|
|
@@ -9,32 +8,23 @@ export interface ClientArtifactOptions {
|
|
|
9
8
|
/** The runtime the file is built for. Default `node`, which Bun also runs. */
|
|
10
9
|
runtime?: 'node' | 'bun' | 'browser';
|
|
11
10
|
/**
|
|
12
|
-
* Modules
|
|
13
|
-
*
|
|
14
|
-
* imports it and by its installed path; a
|
|
15
|
-
* of the project's own source path
|
|
16
|
-
* against each module's
|
|
11
|
+
* Modules the client must not reach. A bare or scoped name (`'chalk'`,
|
|
12
|
+
* `'@scope/name'`, `'node:child_process'`) is a package or platform module,
|
|
13
|
+
* matched by the specifier that imports it and by its installed path; a
|
|
14
|
+
* string with a slash is a fragment of the project's own source path
|
|
15
|
+
* (`'src/terminal/'`); a `RegExp` is tested against each bundled module's
|
|
16
|
+
* absolute path.
|
|
17
17
|
*/
|
|
18
18
|
forbiddenModules?: readonly ForbiddenModule[];
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
package?: {
|
|
24
|
-
name: string;
|
|
25
|
-
version: string;
|
|
26
|
-
/** Directory the `.tgz` is written to. */
|
|
27
|
-
outDir: string;
|
|
28
|
-
/** Names the installed package must export. */
|
|
29
|
-
exports?: readonly string[];
|
|
19
|
+
/** The tools the build runs. `bun` defaults to `bun` on `PATH`. */
|
|
20
|
+
executables?: {
|
|
21
|
+
bun?: string;
|
|
30
22
|
};
|
|
31
|
-
/**
|
|
32
|
-
executable?: string;
|
|
33
|
-
/** Deadline of each build, pack and verification step. Default 120 000 ms. */
|
|
23
|
+
/** Deadline of the build. Default 120 000 ms. */
|
|
34
24
|
timeoutMs?: number;
|
|
35
25
|
signal?: AbortSignal;
|
|
36
26
|
}
|
|
37
|
-
/** A built client: the file, its SHA-256
|
|
27
|
+
/** A built client: the file, its SHA-256 and the modules inside it. */
|
|
38
28
|
export interface ClientArtifact {
|
|
39
29
|
/** Absolute path of the self-contained file. */
|
|
40
30
|
file: string;
|
|
@@ -45,27 +35,9 @@ export interface ClientArtifact {
|
|
|
45
35
|
sha256File: string;
|
|
46
36
|
/** Absolute path of every module bundled into the file. */
|
|
47
37
|
modules: string[];
|
|
48
|
-
/** The verified npm archive, when `package` was asked for. */
|
|
49
|
-
package?: {
|
|
50
|
-
tarball: string;
|
|
51
|
-
sha256: string;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
/** The refusal of a bundle that reaches a forbidden module. */
|
|
55
|
-
export declare class ForbiddenModuleError extends Error {
|
|
56
|
-
/** The forbidden module found in the bundle. */
|
|
57
|
-
readonly module: string;
|
|
58
|
-
/** A module that imports it, when the graph names one. */
|
|
59
|
-
readonly importedBy: string | undefined;
|
|
60
|
-
constructor(
|
|
61
|
-
/** The forbidden module found in the bundle. */
|
|
62
|
-
module: string,
|
|
63
|
-
/** A module that imports it, when the graph names one. */
|
|
64
|
-
importedBy: string | undefined);
|
|
65
38
|
}
|
|
66
39
|
/**
|
|
67
|
-
* Build one self-contained client file with its SHA-256
|
|
68
|
-
* verified npm archive of it.
|
|
40
|
+
* Build one self-contained client file with its SHA-256.
|
|
69
41
|
*
|
|
70
42
|
* Nothing is left at `outFile` when the build is refused: a file from an
|
|
71
43
|
* earlier build is removed first, so a failed build cannot be mistaken for a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-artifact.d.ts","sourceRoot":"","sources":["../../src/files/client-artifact.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client-artifact.d.ts","sourceRoot":"","sources":["../../src/files/client-artifact.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,KAAK,eAAe,EAIrB,MAAM,gBAAgB,CAAC;AAExB,uFAAuF;AACvF,MAAM,WAAW,qBAAqB;IACpC,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;IACrC;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IAC9C,mEAAmE;IACnE,WAAW,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,uEAAuE;AACvE,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,cAAc,CAAC,CA4CzB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** A module the client must not reach: a package name, or a pattern over the module path. */
|
|
2
|
+
export type ForbiddenModule = string | RegExp;
|
|
3
|
+
/** The refusal of a client whose module graph reaches a forbidden module. */
|
|
4
|
+
export declare class ForbiddenModuleError extends Error {
|
|
5
|
+
/** The forbidden module: its path when bundled, its specifier when left external. */
|
|
6
|
+
readonly module: string;
|
|
7
|
+
/** A module that imports it, when the graph names one. */
|
|
8
|
+
readonly importedBy: string | undefined;
|
|
9
|
+
constructor(
|
|
10
|
+
/** The forbidden module: its path when bundled, its specifier when left external. */
|
|
11
|
+
module: string,
|
|
12
|
+
/** A module that imports it, when the graph names one. */
|
|
13
|
+
importedBy: string | undefined);
|
|
14
|
+
}
|
|
15
|
+
/** The deadline and cancellation every tool of one build runs under. */
|
|
16
|
+
export interface ClientBuildStep {
|
|
17
|
+
timeoutMs: number;
|
|
18
|
+
signal?: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
/** A tool as it is started: the executable, then the arguments that precede the caller's own. */
|
|
21
|
+
export type ClientToolCommand = readonly [string, ...string[]];
|
|
22
|
+
/** What one tool left: its exit, its stdout, and both streams for a refusal to quote. */
|
|
23
|
+
export interface ClientToolResult {
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/** Exit code, or the signal that ended the tool. */
|
|
26
|
+
exit: string;
|
|
27
|
+
stdout: string;
|
|
28
|
+
/** stderr followed by stdout, trimmed. */
|
|
29
|
+
output: string;
|
|
30
|
+
}
|
|
31
|
+
/** One bounded tool invocation; a missing tool, a deadline or a cancellation throws. */
|
|
32
|
+
export declare function runClientTool(step: ClientBuildStep, executable: string, args: readonly string[], cwd: string): Promise<ClientToolResult>;
|
|
33
|
+
/** One import a bundled module makes. */
|
|
34
|
+
export interface ClientGraphImport {
|
|
35
|
+
/** Absolute path of a bundled module; the specifier as written when `external`. */
|
|
36
|
+
path: string;
|
|
37
|
+
/** The specifier of a bundled import as the source wrote it. */
|
|
38
|
+
original: string | undefined;
|
|
39
|
+
/** Left outside the output: a platform module, a peer or a dependency. */
|
|
40
|
+
external: boolean;
|
|
41
|
+
}
|
|
42
|
+
/** The module graph of one build, with every bundled module named by its real path. */
|
|
43
|
+
export interface ClientBuildGraph {
|
|
44
|
+
/** Bundled module → the imports it makes. */
|
|
45
|
+
modules: ReadonlyMap<string, readonly ClientGraphImport[]>;
|
|
46
|
+
/** Entry module → its output file, relative to the output directory. */
|
|
47
|
+
entryOutputs: ReadonlyMap<string, string>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Read the bundler's metafile. The bundler names modules relative to `root`,
|
|
51
|
+
* where it ran; a rule is written against real paths, so bundled modules become
|
|
52
|
+
* absolute. An external import has no path — its specifier is kept as written.
|
|
53
|
+
*/
|
|
54
|
+
export declare function readClientBuildGraph(metafilePath: string, root: string): Promise<ClientBuildGraph>;
|
|
55
|
+
/** Throw `ForbiddenModuleError` for the first module of the graph a rule forbids. */
|
|
56
|
+
export declare function refuseForbiddenModules(graph: ClientBuildGraph, forbidden: readonly ForbiddenModule[]): void;
|
|
57
|
+
//# sourceMappingURL=client-build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-build.d.ts","sourceRoot":"","sources":["../../src/files/client-build.ts"],"names":[],"mappings":"AAiBA,6FAA6F;AAC7F,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9C,6EAA6E;AAC7E,qBAAa,oBAAqB,SAAQ,KAAK;IAE3C,qFAAqF;IACrF,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,0DAA0D;IAC1D,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS;IAJzC;IACE,qFAAqF;IAC5E,MAAM,EAAE,MAAM;IACvB,0DAA0D;IACjD,UAAU,EAAE,MAAM,GAAG,SAAS,EAOxC;CACF;AAED,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,iGAAiG;AACjG,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;AAE/D,yFAAyF;AACzF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,OAAO,CAAC;IACZ,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wFAAwF;AACxF,wBAAsB,aAAa,CACjC,IAAI,EAAE,eAAe,EACrB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,gBAAgB,CAAC,CAmB3B;AA4BD,yCAAyC;AACzC,MAAM,WAAW,iBAAiB;IAChC,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,0EAA0E;IAC1E,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,uFAAuF;AACvF,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC,CAAC;IAC3D,wEAAwE;IACxE,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3C;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,gBAAgB,CAAC,CAoB3B;AAsBD,qFAAqF;AACrF,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,gBAAgB,EACvB,SAAS,EAAE,SAAS,eAAe,EAAE,GACpC,IAAI,CAmBN"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ClientBuildStep, type ClientToolCommand } from './client-build.js';
|
|
2
|
+
/** What the declaration emit needs from the build. */
|
|
3
|
+
export interface ClientDeclarationsInput {
|
|
4
|
+
step: ClientBuildStep;
|
|
5
|
+
tsc: ClientToolCommand;
|
|
6
|
+
/** Absolute path of the project tsconfig. */
|
|
7
|
+
tsconfig: string;
|
|
8
|
+
/** Absolute paths of the entry modules. */
|
|
9
|
+
entries: readonly string[];
|
|
10
|
+
/** Where the declaration tree is written, mirroring the tsconfig's directory. */
|
|
11
|
+
outDir: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Emit declarations for the entries and what they import, and nothing else of
|
|
15
|
+
* the project: an unrelated file with a type error does not fail a client.
|
|
16
|
+
*
|
|
17
|
+
* The generated config sits beside the project's own for the length of the
|
|
18
|
+
* run. Anywhere else, the type roots and `types` the project relies on would be
|
|
19
|
+
* looked up from the wrong directory.
|
|
20
|
+
*/
|
|
21
|
+
export declare function emitClientDeclarations(input: ClientDeclarationsInput): Promise<void>;
|
|
22
|
+
/** What the declarations of a package may name besides their own files. */
|
|
23
|
+
export interface DeclarationClosure {
|
|
24
|
+
/** Peers and dependencies of the package. */
|
|
25
|
+
packages: ReadonlySet<string>;
|
|
26
|
+
runtime: 'node' | 'bun' | 'browser';
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Rewrite every relative specifier of the declaration tree to the `.js` file
|
|
30
|
+
* it stands for, and refuse what a consumer could not resolve: a relative
|
|
31
|
+
* module with no declaration in the tree, a `/// <reference path>`, and a
|
|
32
|
+
* package that is neither a peer nor a dependency.
|
|
33
|
+
*/
|
|
34
|
+
export declare function normalizeClientDeclarations(directory: string, closure: DeclarationClosure): void;
|
|
35
|
+
//# sourceMappingURL=client-declarations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-declarations.d.ts","sourceRoot":"","sources":["../../src/files/client-declarations.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAiB,MAAM,gBAAgB,CAAC;AAQ7F,sDAAsD;AACtD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,eAAe,CAAC;IACtB,GAAG,EAAE,iBAAiB,CAAC;IACvB,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6C1F;AAQD,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;CACrC;AAOD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,kBAAkB,GAC1B,IAAI,CAgCN"}
|