stitchkit 0.124.0 → 0.124.2

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.
Files changed (103) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/browser/client-executors.d.ts.map +1 -1
  3. package/dist/browser/contract-stream.d.ts +7 -2
  4. package/dist/browser/contract-stream.d.ts.map +1 -1
  5. package/dist/entrypoints/agent-runtime/coding-tools.js +1 -1
  6. package/dist/entrypoints/agent-runtime/realtime.js +3 -3
  7. package/dist/entrypoints/agent-runtime/sandbox.js +2 -2
  8. package/dist/entrypoints/agent-runtime/sqlite/bun.js +3 -3
  9. package/dist/entrypoints/agent-runtime/sqlite/node.js +3 -3
  10. package/dist/entrypoints/agent-runtime/testing.js +3 -3
  11. package/dist/entrypoints/agent-runtime.js +3 -3
  12. package/dist/entrypoints/application/diagnostic-journal.js +3 -5
  13. package/dist/entrypoints/application/directory-inbox.js +9 -11
  14. package/dist/entrypoints/application.js +3 -3
  15. package/dist/entrypoints/cli/publish.js +6 -6
  16. package/dist/entrypoints/cli.js +6 -3
  17. package/dist/entrypoints/files.js +5 -5
  18. package/dist/entrypoints/http.js +2 -2
  19. package/dist/entrypoints/index.js +6 -6
  20. package/dist/entrypoints/node.js +1 -1
  21. package/dist/entrypoints/process.js +1 -1
  22. package/dist/entrypoints/remote.js +1 -1
  23. package/dist/entrypoints/server.js +8 -8
  24. package/dist/entrypoints/telegram.js +2 -2
  25. package/dist/entrypoints/testing.js +1 -1
  26. package/dist/entrypoints/tools/connections.d.ts +2 -2
  27. package/dist/entrypoints/tools/connections.d.ts.map +1 -1
  28. package/dist/entrypoints/tools/connections.js +122 -30
  29. package/dist/entrypoints/tools/mcp.d.ts +1 -1
  30. package/dist/entrypoints/tools/mcp.d.ts.map +1 -1
  31. package/dist/entrypoints/tools/mcp.js +8 -6
  32. package/dist/entrypoints/tools/toolkit.js +2 -2
  33. package/dist/entrypoints/tools.js +3 -3
  34. package/dist/{index-8yky60kq.js → index-1szhrfsf.js} +5 -7
  35. package/dist/{index-mqttte96.js → index-3ymcmpa9.js} +3 -5
  36. package/dist/{index-v8xm2s9v.js → index-7177dxjn.js} +1 -1
  37. package/dist/{index-2x2ch0bt.js → index-782qtc24.js} +1 -1
  38. package/dist/{index-j8rda9n6.js → index-8pwwd6rp.js} +3 -3
  39. package/dist/{index-m616f0yz.js → index-8x0q6yfb.js} +134 -7
  40. package/dist/{index-jswst0h3.js → index-b2sey031.js} +50 -5
  41. package/dist/{index-tt3ej8r3.js → index-btjwc7xr.js} +217 -24
  42. package/dist/{index-ezwvsqx9.js → index-fvd6pvw3.js} +1 -1
  43. package/dist/{index-6qrspvxp.js → index-gbj964dt.js} +1 -1
  44. package/dist/{index-q89kd1xc.js → index-hzk4ydpy.js} +1 -1
  45. package/dist/{index-w0wy05gr.js → index-jkjh7zw4.js} +50 -40
  46. package/dist/{index-ac6vvm30.js → index-jp2qd9jb.js} +1 -1
  47. package/dist/{index-45dyex0j.js → index-m9hb9wnk.js} +1 -1
  48. package/dist/index-mm89hd8v.js +39 -0
  49. package/dist/{index-zbzagr9k.js → index-ne4j9998.js} +16 -15
  50. package/dist/{index-jc5xgkpk.js → index-qsm899qp.js} +1 -1
  51. package/dist/{index-cjbn98zt.js → index-ss67fxhj.js} +21 -3
  52. package/dist/index-wqzw3qg9.js +91 -0
  53. package/dist/{index-364k2zwa.js → index-wt6rw7rf.js} +5 -7
  54. package/dist/{index-5efrpfmj.js → index-wxadzdb7.js} +1 -1
  55. package/dist/internal/deadline.d.ts +30 -0
  56. package/dist/internal/deadline.d.ts.map +1 -1
  57. package/dist/internal/pinned-http.d.ts +1 -1
  58. package/dist/internal/pinned-http.d.ts.map +1 -1
  59. package/dist/internal/secure-fetch.d.ts +8 -0
  60. package/dist/internal/secure-fetch.d.ts.map +1 -1
  61. package/dist/internal/stream-chunks.d.ts +10 -0
  62. package/dist/internal/stream-chunks.d.ts.map +1 -1
  63. package/dist/tools/cli/resumable-download.d.ts +18 -0
  64. package/dist/tools/cli/resumable-download.d.ts.map +1 -0
  65. package/dist/tools/cli/update.d.ts +18 -0
  66. package/dist/tools/cli/update.d.ts.map +1 -1
  67. package/dist/tools/connections/catalog-cache.d.ts +9 -0
  68. package/dist/tools/connections/catalog-cache.d.ts.map +1 -0
  69. package/dist/tools/connections/errors.d.ts +10 -1
  70. package/dist/tools/connections/errors.d.ts.map +1 -1
  71. package/dist/tools/connections/limits.d.ts +16 -4
  72. package/dist/tools/connections/limits.d.ts.map +1 -1
  73. package/dist/tools/connections/mcp-client.d.ts +10 -2
  74. package/dist/tools/connections/mcp-client.d.ts.map +1 -1
  75. package/dist/tools/connections/mcp.d.ts.map +1 -1
  76. package/dist/tools/connections/operation-limits.d.ts +12 -1
  77. package/dist/tools/connections/operation-limits.d.ts.map +1 -1
  78. package/dist/tools/connections/sse-session.d.ts +2 -2
  79. package/dist/tools/connections/sse-session.d.ts.map +1 -1
  80. package/dist/tools/connections/types.d.ts +38 -2
  81. package/dist/tools/connections/types.d.ts.map +1 -1
  82. package/dist/tools/mcp/catalog-stamp.d.ts +47 -0
  83. package/dist/tools/mcp/catalog-stamp.d.ts.map +1 -0
  84. package/dist/tools/mcp/catalog.d.ts +1 -30
  85. package/dist/tools/mcp/catalog.d.ts.map +1 -1
  86. package/dist/tools/mcp/handler.d.ts.map +1 -1
  87. package/dist/tools/mcp/mount.d.ts +6 -1
  88. package/dist/tools/mcp/mount.d.ts.map +1 -1
  89. package/dist/tools/mcp/register.d.ts +1 -1
  90. package/dist/tools/mcp/register.d.ts.map +1 -1
  91. package/dist/tools/mcp/runtime-tools.d.ts +1 -1
  92. package/dist/tools/mcp/runtime-tools.d.ts.map +1 -1
  93. package/llms/cli.2.txt +60 -6
  94. package/llms/stitchkit.2.txt +6 -0
  95. package/llms/stitchkit.3.txt +1 -1
  96. package/llms/tools-connections.txt +5 -3
  97. package/llms/tools-mcp.txt +5 -2
  98. package/llms/tools.txt +10 -3
  99. package/llms-full.txt +87 -15
  100. package/llms.txt +5 -5
  101. package/package.json +6 -6
  102. package/dist/index-9tqbxv5p.js +0 -44
  103. package/dist/index-b56nnscm.js +0 -132
package/CHANGELOG.md CHANGED
@@ -15,6 +15,69 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
15
15
 
16
16
  ## [Unreleased]
17
17
 
18
+ ## [0.124.2] - 2026-11-17
19
+
20
+ ### Fixed
21
+
22
+ - `stitchkit`, `stitchkit/http` — **a streaming endpoint reads the response of another runtime's
23
+ fetch.** The typed client refused any response that was not the global `Response` class with
24
+ `Streaming endpoint did not return a Response`, so a `ClientFetch` built on `expo/fetch` in React
25
+ Native — whose `FetchResponse` is its own class — never read a stream, and the bare-fetch client
26
+ failed on it with a `TypeError`. Both client paths now take a response by its shape, a `body`
27
+ with `getReader()`, and both refuse one without a readable body with that same error.
28
+ `parseNDJSON`, `parseSSE` and `readBoundedBody` recognise a source by its shape as well: a
29
+ reader, then `Symbol.asyncIterator`, else the response's `body`; a response with no `body` at
30
+ all is a `TypeError` that says so.
31
+ **Affects:** `stitchkit` createClient(stream), createClients(stream), parseNDJSON, parseSSE, readBoundedBody; `stitchkit/http` createClient(stream), createClients(stream), readBoundedBody
32
+
33
+ ## [0.124.1] - 2026-11-17
34
+
35
+ ### Added
36
+
37
+ - `stitchkit/tools/connections` — **an idle deadline: a slow link that keeps delivering is not a
38
+ dead one.** `limits.discovery.idleTimeoutMs` and `limits.call.idleTimeoutMs` end an operation
39
+ when nothing has arrived for that long; the response headers and every body chunk restart it,
40
+ inside the operation's total `timeoutMs`. The failure is `ConnectionTimeoutError` with
41
+ `deadline: 'idle'` and `timeoutMs` the idle limit; its tool projection keeps
42
+ `reason: 'deadline-exceeded'` and adds `details.deadline`. New types `ConnectionDeadline` and
43
+ `ConnectionTimeoutContext` (the constructor's third argument). → ADR 0293
44
+ - `stitchkit/tools/connections` — **a stored catalog is mounted while it is the server's.**
45
+ `defineMcpClientConnection({ catalog: { load, store } })` compares the catalog stamp a
46
+ Stitchkit server sends with its `initialize` answer against the stored `tools/list` result
47
+ and mounts the stored one when they match, so an unchanged catalog costs no transfer. A
48
+ changed catalog or another surface lists and stores again; a listing is stored only when every
49
+ tool in it carries the announced stamp, so a rolling deploy cannot store another build's
50
+ catalog; a failing store is a miss, never a mount failure. New types
51
+ `McpConnectionCatalogStore` and `McpConnectionCatalogEntry`. → ADR 0293
52
+ - `stitchkit/tools/mcp` — **`createMcpHandler` sends the served surface's catalog stamp as the
53
+ `stitchkit-catalog` response header**, on `initialize` included; a handler with `rawTools`
54
+ sends none. → ADR 0293
55
+ - `stitchkit/cli` — **`applyCliUpdate({ partialPath })` continues an interrupted download.** It
56
+ appends to the part, records the URL, the build's digest and the server's validator beside it,
57
+ and asks for the rest with `Range` and `If-Range`; a continued file that fails decoding, size
58
+ or digest is discarded and downloaded once more from zero, and a lock refuses a second update
59
+ into the same part. `idleTimeoutMs` (default 30 seconds) ends a silent download. → ADR 0293
60
+
61
+ ### Changed
62
+
63
+ - `stitchkit/tools/connections` — **MCP discovery with no declared deadline allows 300 seconds
64
+ in total and 30 seconds of silence**, instead of 30 seconds in total: a catalog of a few hundred
65
+ tools takes minutes on a slow link, and a dead one still fails after 30 seconds of silence. A
66
+ declared connection-level or discovery `timeoutMs` keeps meaning exactly what it did, with no
67
+ idle deadline unless one is declared too; a call keeps 30 seconds and no idle deadline.
68
+ → ADR 0293
69
+ **Affects:** `stitchkit/tools/connections` behaviour
70
+ - `stitchkit/cli` — **`applyCliUpdate` with no declared `timeoutMs` downloads within 30 minutes
71
+ and 30 seconds of silence**, instead of 120 seconds in total; a declared `timeoutMs` keeps
72
+ meaning what it did. → ADR 0293
73
+ **Affects:** `stitchkit/cli` behaviour
74
+
75
+ ### Fixed
76
+
77
+ - `stitchkit/tools/mcp` — **the catalog stamp covers a tool's MCP Apps `ui` resource**, which
78
+ `tools/list` publishes; a changed resource left the digest unchanged. Every stamp moves once.
79
+ **Affects:** `stitchkit/tools/mcp` behaviour
80
+
18
81
  ## [0.124.0] - 2026-11-17
19
82
 
20
83
  ### ⚠️ Breaking changes
@@ -1 +1 @@
1
- {"version":3,"file":"client-executors.d.ts","sourceRoot":"","sources":["../../src/browser/client-executors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAOtD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAInE,OAAO,EACL,KAAK,UAAU,IAAI,WAAW,EAG/B,MAAM,QAAQ,CAAC;AAmEhB,MAAM,MAAM,qBAAqB,GAAG,CAClC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,OAAO,CAAC,EAAE,oBAAoB,KAC3B,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EACjD,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,WAAW,EACnB,MAAM,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAC/B,qBAAqB,CA+DvB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAClD,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,YAAY,EACpB,cAAc,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GACvC,qBAAqB,CA4HvB"}
1
+ {"version":3,"file":"client-executors.d.ts","sourceRoot":"","sources":["../../src/browser/client-executors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAOtD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAInE,OAAO,EACL,KAAK,UAAU,IAAI,WAAW,EAG/B,MAAM,QAAQ,CAAC;AA6DhB,MAAM,MAAM,qBAAqB,GAAG,CAClC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,OAAO,CAAC,EAAE,oBAAoB,KAC3B,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EACjD,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,WAAW,EACnB,MAAM,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAC/B,qBAAqB,CA+DvB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAClD,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,YAAY,EACpB,cAAc,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GACvC,qBAAqB,CA4HvB"}
@@ -1,5 +1,10 @@
1
1
  import type { ZodType } from 'zod';
2
2
  import type { EndpointStreamDescriptor } from '../contract/define.js';
3
- /** Convert protocol frames into an immediately-owned schema-derived iterator. */
4
- export declare function parseContractStream<T>(response: Response, descriptor: EndpointStreamDescriptor<ZodType<T>>, abort: () => void): AsyncIterableIterator<T>;
3
+ /**
4
+ * Convert a streaming endpoint's response into an immediately-owned schema-derived iterator. The
5
+ * response is recognised by its shape — a `body` with `getReader()` — so the response class of
6
+ * another runtime's fetch (`expo/fetch` in React Native) streams like the global `Response`; one
7
+ * without a readable body is refused by name, and the request is aborted.
8
+ */
9
+ export declare function parseContractStream<T>(response: unknown, descriptor: EndpointStreamDescriptor<ZodType<T>>, abort: () => void): AsyncIterableIterator<T>;
5
10
  //# sourceMappingURL=contract-stream.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract-stream.d.ts","sourceRoot":"","sources":["../../src/browser/contract-stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAoInE,iFAAiF;AACjF,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAChD,KAAK,EAAE,MAAM,IAAI,GAChB,qBAAqB,CAAC,CAAC,CAAC,CAE1B"}
1
+ {"version":3,"file":"contract-stream.d.ts","sourceRoot":"","sources":["../../src/browser/contract-stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAqInE;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAChD,KAAK,EAAE,MAAM,IAAI,GAChB,qBAAqB,CAAC,CAAC,CAAC,CAM1B"}
@@ -7,7 +7,7 @@ import {
7
7
  AgentCodingToolAuthorizationSchema2,
8
8
  AgentCodingToolPathAuthorizationSchema2,
9
9
  createAgentCodingTools2
10
- } from "../../index-j8rda9n6.js";
10
+ } from "../../index-8pwwd6rp.js";
11
11
  import"../../index-sqc6ezrb.js";
12
12
  import"../../index-0ndz5r8z.js";
13
13
  import"../../index-gdqawggb.js";
@@ -15,12 +15,12 @@ import {
15
15
  bindRealtimeServer2
16
16
  } from "../../index-sqkttz7z.js";
17
17
  import"../../index-7qyv50r4.js";
18
- import {
19
- withSignalDeadline
20
- } from "../../index-9tqbxv5p.js";
21
18
  import {
22
19
  raceAbort
23
20
  } from "../../index-b0kddvzw.js";
21
+ import {
22
+ withSignalDeadline
23
+ } from "../../index-wqzw3qg9.js";
24
24
  import {
25
25
  MAX_TIMER_MS
26
26
  } from "../../index-eemvahkc.js";
@@ -3,7 +3,7 @@ import {
3
3
  missingSandboxRestrictions2,
4
4
  codingRefusal,
5
5
  createAgentCodingTools2
6
- } from "../../index-j8rda9n6.js";
6
+ } from "../../index-8pwwd6rp.js";
7
7
  import"../../index-sqc6ezrb.js";
8
8
  import"../../index-yt1gg11x.js";
9
9
  import"../../index-ct75c3at.js";
@@ -31,7 +31,7 @@ import {
31
31
  } from "../../index-jj9228tt.js";
32
32
  import {
33
33
  readBoundedBody2
34
- } from "../../index-5efrpfmj.js";
34
+ } from "../../index-wxadzdb7.js";
35
35
  import {
36
36
  MAX_TIMER_MS
37
37
  } from "../../index-eemvahkc.js";
@@ -1,13 +1,13 @@
1
1
  import"../../../index-egg0yp2j.js";
2
- import"../../../index-v8xm2s9v.js";
2
+ import"../../../index-7177dxjn.js";
3
3
  import"../../../index-8kzct1d6.js";
4
4
  import {
5
5
  initializeAgentRuntimeSqlite2,
6
6
  createSqliteAgentRuntimeStore2
7
- } from "../../../index-jc5xgkpk.js";
7
+ } from "../../../index-qsm899qp.js";
8
8
  import"../../../index-kqnd6a85.js";
9
9
  import"../../../index-m8ddk770.js";
10
- import"../../../index-j8rda9n6.js";
10
+ import"../../../index-8pwwd6rp.js";
11
11
  import"../../../index-yt1gg11x.js";
12
12
  import"../../../index-ct75c3at.js";
13
13
  import"../../../index-tynna0n4.js";
@@ -1,13 +1,13 @@
1
1
  import"../../../index-egg0yp2j.js";
2
- import"../../../index-v8xm2s9v.js";
2
+ import"../../../index-7177dxjn.js";
3
3
  import"../../../index-8kzct1d6.js";
4
4
  import {
5
5
  initializeAgentRuntimeSqlite2,
6
6
  createSqliteAgentRuntimeStore2
7
- } from "../../../index-jc5xgkpk.js";
7
+ } from "../../../index-qsm899qp.js";
8
8
  import"../../../index-kqnd6a85.js";
9
9
  import"../../../index-m8ddk770.js";
10
- import"../../../index-j8rda9n6.js";
10
+ import"../../../index-8pwwd6rp.js";
11
11
  import"../../../index-yt1gg11x.js";
12
12
  import"../../../index-ct75c3at.js";
13
13
  import"../../../index-tynna0n4.js";
@@ -10,8 +10,8 @@ import {
10
10
  advanceToolChronology
11
11
  } from "../../index-egg0yp2j.js";
12
12
  import"../../index-m8ddk770.js";
13
- import"../../index-j8rda9n6.js";
14
- import"../../index-v8xm2s9v.js";
13
+ import"../../index-8pwwd6rp.js";
14
+ import"../../index-7177dxjn.js";
15
15
  import"../../index-yt1gg11x.js";
16
16
  import"../../index-ct75c3at.js";
17
17
  import"../../index-tynna0n4.js";
@@ -22,7 +22,7 @@ import"../../index-gdqawggb.js";
22
22
  import"../../index-snef22zr.js";
23
23
  import {
24
24
  createMemoryAgentRuntimeStore2
25
- } from "../../index-2x2ch0bt.js";
25
+ } from "../../index-782qtc24.js";
26
26
  import"../../index-kffm4r8w.js";
27
27
  import"../../index-fa53vygr.js";
28
28
  import"../../index-ww3gss55.js";
@@ -5,7 +5,7 @@ import {
5
5
  missingSandboxRestrictions2,
6
6
  recordAgentSandboxProbe2,
7
7
  refuseUnknownSpillReference
8
- } from "../index-j8rda9n6.js";
8
+ } from "../index-8pwwd6rp.js";
9
9
  import {
10
10
  AgentRecordIdSchema2,
11
11
  AgentRecordVersionSchema2,
@@ -52,7 +52,7 @@ import {
52
52
  AgentConversationPurgedError2,
53
53
  purgeAgentConversation2,
54
54
  createAgentRuntimeStore2
55
- } from "../index-v8xm2s9v.js";
55
+ } from "../index-7177dxjn.js";
56
56
  import {
57
57
  AgentStoreEventKindSchema2,
58
58
  AgentStoreEventEnvelopeSchema2,
@@ -193,7 +193,7 @@ import"../index-0ndz5r8z.js";
193
193
  import"../index-gdqawggb.js";
194
194
  import {
195
195
  createMemoryAgentRuntimeStore2
196
- } from "../index-2x2ch0bt.js";
196
+ } from "../index-782qtc24.js";
197
197
  import {
198
198
  createAgentRuntimeEventSink2
199
199
  } from "../index-7qyv50r4.js";
@@ -21,14 +21,12 @@ import"../../index-sqc6ezrb.js";
21
21
  import"../../index-bqzgaj57.js";
22
22
  import {
23
23
  attemptExclusiveLock
24
- } from "../../index-mqttte96.js";
24
+ } from "../../index-3ymcmpa9.js";
25
25
  import {
26
+ closeAfter,
26
27
  BoundedFileReadError,
27
28
  openRegularFile
28
- } from "../../index-m616f0yz.js";
29
- import {
30
- closeAfter
31
- } from "../../index-b56nnscm.js";
29
+ } from "../../index-8x0q6yfb.js";
32
30
  import {
33
31
  assertPositiveSafeInteger
34
32
  } from "../../index-0s4xebbg.js";
@@ -15,29 +15,27 @@ import {
15
15
  } from "../../index-g6a3na27.js";
16
16
  import"../../index-sqc6ezrb.js";
17
17
  import"../../index-bqzgaj57.js";
18
- import"../../index-mqttte96.js";
18
+ import"../../index-3ymcmpa9.js";
19
19
  import {
20
20
  defineManagedResource2
21
21
  } from "../../index-50ejfz75.js";
22
22
  import {
23
23
  createFileStateStore2
24
- } from "../../index-8yky60kq.js";
25
- import"../../index-ezwvsqx9.js";
24
+ } from "../../index-1szhrfsf.js";
25
+ import"../../index-fvd6pvw3.js";
26
26
  import {
27
27
  isJsonData
28
28
  } from "../../index-m6w6jtda.js";
29
- import {
30
- BoundedFileReadError,
31
- openRegularFile,
32
- readBoundedFile
33
- } from "../../index-m616f0yz.js";
34
29
  import {
35
30
  writeAtomicFileData
36
- } from "../../index-ac6vvm30.js";
31
+ } from "../../index-jp2qd9jb.js";
37
32
  import {
38
33
  closeAfter,
39
- publishAtomicFile
40
- } from "../../index-b56nnscm.js";
34
+ publishAtomicFile,
35
+ BoundedFileReadError,
36
+ openRegularFile,
37
+ readBoundedFile
38
+ } from "../../index-8x0q6yfb.js";
41
39
  import {
42
40
  errnoOf
43
41
  } from "../../index-jj9228tt.js";
@@ -92,12 +92,12 @@ import {
92
92
  import {
93
93
  measureSize2
94
94
  } from "../index-fpwbskp2.js";
95
- import {
96
- withDeadline
97
- } from "../index-9tqbxv5p.js";
98
95
  import {
99
96
  argumentsDigest
100
97
  } from "../index-mfntvj58.js";
98
+ import {
99
+ withDeadline
100
+ } from "../index-wqzw3qg9.js";
101
101
  import {
102
102
  MAX_TIMER_MS
103
103
  } from "../index-eemvahkc.js";
@@ -1,7 +1,7 @@
1
1
  import"../../index-xqhede6x.js";
2
2
  import"../../index-sqc6ezrb.js";
3
3
  import"../../index-bqzgaj57.js";
4
- import"../../index-mqttte96.js";
4
+ import"../../index-3ymcmpa9.js";
5
5
  import {
6
6
  signCliManifest2,
7
7
  verifyCliManifest2,
@@ -15,22 +15,22 @@ import {
15
15
  gzipCliAsset,
16
16
  decodeCliAsset,
17
17
  compareCliVersions2
18
- } from "../../index-tt3ej8r3.js";
18
+ } from "../../index-btjwc7xr.js";
19
19
  import {
20
20
  withExclusiveLock2
21
- } from "../../index-ezwvsqx9.js";
21
+ } from "../../index-fvd6pvw3.js";
22
22
  import {
23
23
  ManagedFileError2,
24
24
  createManagedFileBoundary2
25
- } from "../../index-364k2zwa.js";
25
+ } from "../../index-wt6rw7rf.js";
26
26
  import {
27
27
  writeFileAtomic2
28
- } from "../../index-ac6vvm30.js";
28
+ } from "../../index-jp2qd9jb.js";
29
29
  import {
30
30
  AtomicFilePublicationError2,
31
31
  assertDirectoryDurability,
32
32
  syncDirectory
33
- } from "../../index-b56nnscm.js";
33
+ } from "../../index-8x0q6yfb.js";
34
34
  import {
35
35
  errnoOf
36
36
  } from "../../index-jj9228tt.js";
@@ -17,7 +17,7 @@ import {
17
17
  renderCliView2,
18
18
  pollUntilDone2,
19
19
  createCli2
20
- } from "../index-q89kd1xc.js";
20
+ } from "../index-hzk4ydpy.js";
21
21
  import"../index-ndjzbt2v.js";
22
22
  import"../index-ct75c3at.js";
23
23
  import"../index-tynna0n4.js";
@@ -46,9 +46,12 @@ import {
46
46
  checkCliUpdate2,
47
47
  applyCliUpdate2,
48
48
  rollbackCliUpdate2
49
- } from "../index-tt3ej8r3.js";
49
+ } from "../index-btjwc7xr.js";
50
+ import"../index-bqzgaj57.js";
51
+ import"../index-3ymcmpa9.js";
50
52
  import"../index-fa53vygr.js";
51
53
  import"../index-ww3gss55.js";
54
+ import"../index-fvd6pvw3.js";
52
55
  import {
53
56
  argumentsDigest
54
57
  } from "../index-mfntvj58.js";
@@ -56,7 +59,7 @@ import"../index-993vtv1w.js";
56
59
  import"../index-6k47xdtt.js";
57
60
  import {
58
61
  writeFileAtomicSync2
59
- } from "../index-ac6vvm30.js";
62
+ } from "../index-jp2qd9jb.js";
60
63
  import {
61
64
  safeJsonParse
62
65
  } from "../index-zsarb5xp.js";
@@ -4,25 +4,25 @@ import {
4
4
  } from "../index-xqhede6x.js";
5
5
  import"../index-sqc6ezrb.js";
6
6
  import"../index-bqzgaj57.js";
7
- import"../index-mqttte96.js";
7
+ import"../index-3ymcmpa9.js";
8
8
  import {
9
9
  bindUnixSocket2
10
10
  } from "../index-drcjjhy1.js";
11
11
  import {
12
12
  ExclusiveLockError2,
13
13
  withExclusiveLock2
14
- } from "../index-ezwvsqx9.js";
14
+ } from "../index-fvd6pvw3.js";
15
15
  import {
16
16
  ManagedFileError2,
17
17
  createManagedFileBoundary2
18
- } from "../index-364k2zwa.js";
18
+ } from "../index-wt6rw7rf.js";
19
19
  import {
20
20
  writeFileAtomic2,
21
21
  writeFileAtomicSync2
22
- } from "../index-ac6vvm30.js";
22
+ } from "../index-jp2qd9jb.js";
23
23
  import {
24
24
  AtomicFilePublicationError2
25
- } from "../index-b56nnscm.js";
25
+ } from "../index-8x0q6yfb.js";
26
26
  import {
27
27
  stagingPath,
28
28
  isAtomicStagingName2,
@@ -14,13 +14,13 @@ import {
14
14
  createUrlBuilder2,
15
15
  createUrlBuilders2,
16
16
  createScopedUrlBuilders2
17
- } from "../index-zbzagr9k.js";
17
+ } from "../index-ne4j9998.js";
18
18
  import {
19
19
  ApiError2
20
20
  } from "../index-kfjkb396.js";
21
21
  import {
22
22
  readBoundedBody2
23
- } from "../index-5efrpfmj.js";
23
+ } from "../index-wxadzdb7.js";
24
24
  export {
25
25
  ApiError2 as ApiError,
26
26
  contractEndpointMatchers2 as contractEndpointMatchers,
@@ -57,9 +57,6 @@ import {
57
57
  import {
58
58
  createMutationQueue
59
59
  } from "../index-sykb5ag7.js";
60
- import {
61
- withDeadline
62
- } from "../index-9tqbxv5p.js";
63
60
  import {
64
61
  uploadInChunks2
65
62
  } from "../index-hqsbtvta.js";
@@ -74,11 +71,11 @@ import {
74
71
  createUrlBuilder2,
75
72
  createUrlBuilders2,
76
73
  createScopedUrlBuilders2
77
- } from "../index-zbzagr9k.js";
74
+ } from "../index-ne4j9998.js";
78
75
  import {
79
76
  StreamLineLimitError2,
80
77
  StreamTruncatedLineError2
81
- } from "../index-45dyex0j.js";
78
+ } from "../index-m9hb9wnk.js";
82
79
  import {
83
80
  createRetainedTopics2,
84
81
  createRealtimeClientWithPeer,
@@ -90,9 +87,12 @@ import {
90
87
  import {
91
88
  ApiError2
92
89
  } from "../index-kfjkb396.js";
90
+ import {
91
+ withDeadline
92
+ } from "../index-wqzw3qg9.js";
93
93
  import {
94
94
  readBoundedBody2
95
- } from "../index-5efrpfmj.js";
95
+ } from "../index-wxadzdb7.js";
96
96
  import {
97
97
  sleep
98
98
  } from "../index-eemvahkc.js";
@@ -24,7 +24,7 @@ import {
24
24
  createSocketIOServer2,
25
25
  UnixClientTransportError2,
26
26
  createUnixClientTransport2
27
- } from "../index-6qrspvxp.js";
27
+ } from "../index-gbj964dt.js";
28
28
  import {
29
29
  bindRealtimeServer2
30
30
  } from "../index-sqkttz7z.js";
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  StreamLineLimitError2,
24
24
  readBoundedUtf8Lines
25
- } from "../index-45dyex0j.js";
25
+ } from "../index-m9hb9wnk.js";
26
26
  import {
27
27
  safeJsonParse
28
28
  } from "../index-zsarb5xp.js";
@@ -5,7 +5,7 @@ import"../index-yt1gg11x.js";
5
5
  import {
6
6
  endpointHasArguments,
7
7
  createClient2
8
- } from "../index-zbzagr9k.js";
8
+ } from "../index-ne4j9998.js";
9
9
  import {
10
10
  ApiError2
11
11
  } from "../index-kfjkb396.js";
@@ -1,6 +1,6 @@
1
1
  import"../index-sqc6ezrb.js";
2
2
  import"../index-bqzgaj57.js";
3
- import"../index-mqttte96.js";
3
+ import"../index-3ymcmpa9.js";
4
4
  import {
5
5
  errorCode2,
6
6
  normalizeError2
@@ -53,20 +53,17 @@ import {
53
53
  socketIoLane2,
54
54
  UnixClientTransportError2,
55
55
  createUnixClientTransport2
56
- } from "../index-6qrspvxp.js";
56
+ } from "../index-gbj964dt.js";
57
57
  import {
58
58
  createFileStateStore2
59
- } from "../index-8yky60kq.js";
59
+ } from "../index-1szhrfsf.js";
60
60
  import {
61
61
  bindRealtimeServer2
62
62
  } from "../index-sqkttz7z.js";
63
63
  import {
64
64
  bindUnixSocket2
65
65
  } from "../index-drcjjhy1.js";
66
- import"../index-ezwvsqx9.js";
67
- import {
68
- withDeadline
69
- } from "../index-9tqbxv5p.js";
66
+ import"../index-fvd6pvw3.js";
70
67
  import {
71
68
  inputIsQuery
72
69
  } from "../index-xhzq2qvj.js";
@@ -107,13 +104,16 @@ import {
107
104
  isWithinDir2,
108
105
  realPathWithinDir
109
106
  } from "../index-5cc6r990.js";
107
+ import {
108
+ withDeadline
109
+ } from "../index-wqzw3qg9.js";
110
110
  import {
111
111
  isUnsafeKey
112
112
  } from "../index-zsarb5xp.js";
113
113
  import {
114
114
  readBoundedChunks,
115
115
  concatChunks
116
- } from "../index-5efrpfmj.js";
116
+ } from "../index-wxadzdb7.js";
117
117
  import {
118
118
  assertPositiveSafeInteger
119
119
  } from "../index-0s4xebbg.js";
@@ -5,7 +5,7 @@ import"../index-sqc6ezrb.js";
5
5
  import"../index-bqzgaj57.js";
6
6
  import {
7
7
  attemptExclusiveLock
8
- } from "../index-mqttte96.js";
8
+ } from "../index-3ymcmpa9.js";
9
9
  import {
10
10
  TELEGRAM_WIDGET_LIMITS2,
11
11
  TelegramWidgetHtmlSchema2,
@@ -37,7 +37,7 @@ import {
37
37
  } from "../index-mfntvj58.js";
38
38
  import {
39
39
  writeFileAtomic2
40
- } from "../index-ac6vvm30.js";
40
+ } from "../index-jp2qd9jb.js";
41
41
  import {
42
42
  errnoOf
43
43
  } from "../index-jj9228tt.js";
@@ -36,7 +36,7 @@ import"../index-ndjzbt2v.js";
36
36
  import {
37
37
  createClient2,
38
38
  createClients2
39
- } from "../index-zbzagr9k.js";
39
+ } from "../index-ne4j9998.js";
40
40
  import {
41
41
  assertPositiveSafeInteger
42
42
  } from "../index-0s4xebbg.js";
@@ -12,8 +12,8 @@
12
12
  * explicit `allowHosts`), and credentials are resolved separately for each call.
13
13
  */
14
14
  export { defineMcpClientConnection, defineOpenApiConnection, } from '../../tools/connections/define.js';
15
- export { ConnectionAuthorizationRequiredError, ConnectionBudgetExceededError, type ConnectionFailureContext, ConnectionRequestError, ConnectionResponseTooLargeError, ConnectionTimeoutError, ConnectionUrlError, } from '../../tools/connections/errors.js';
15
+ export { ConnectionAuthorizationRequiredError, ConnectionBudgetExceededError, type ConnectionDeadline, type ConnectionFailureContext, ConnectionRequestError, ConnectionResponseTooLargeError, type ConnectionTimeoutContext, ConnectionTimeoutError, ConnectionUrlError, } from '../../tools/connections/errors.js';
16
16
  export { mountConnections } from '../../tools/connections/mount.js';
17
17
  export type { ConnectionTokenProvider, ConnectionToolSkipReporter, SkippedConnectionTool, } from '../../tools/connections/runtime.js';
18
- export type { ConnectionBudget, ConnectionDefinition, ConnectionMountOptions, ConnectionOperation, ConnectionOperationLimits, ConnectionPhase, McpClientConnection, McpClientConnectionConfig, McpConnectionLimits, McpConnectionTransport, McpToolFilter, OpenApiConnection, OpenApiConnectionConfig, } from '../../tools/connections/types.js';
18
+ export type { ConnectionBudget, ConnectionDefinition, ConnectionMountOptions, ConnectionOperation, ConnectionOperationLimits, ConnectionPhase, McpClientConnection, McpClientConnectionConfig, McpConnectionCatalogEntry, McpConnectionCatalogStore, McpConnectionLimits, McpConnectionTransport, McpToolFilter, OpenApiConnection, OpenApiConnectionConfig, } from '../../tools/connections/types.js';
19
19
  //# sourceMappingURL=connections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/tools/connections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,oCAAoC,EACpC,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,sBAAsB,EACtB,+BAA+B,EAC/B,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/tools/connections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,oCAAoC,EACpC,6BAA6B,EAC7B,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,sBAAsB,EACtB,+BAA+B,EAC/B,KAAK,wBAAwB,EAC7B,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,+BAA+B,CAAC"}