stitchkit 0.119.0 → 0.120.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +10 -7
  3. package/dist/entrypoints/agent-runtime/coding-tools.js +4 -4
  4. package/dist/entrypoints/agent-runtime/harness.js +4 -4
  5. package/dist/entrypoints/agent-runtime/realtime.js +3 -3
  6. package/dist/entrypoints/agent-runtime/sandbox.js +5 -5
  7. package/dist/entrypoints/agent-runtime/sqlite/bun.js +6 -6
  8. package/dist/entrypoints/agent-runtime/sqlite/node.js +6 -6
  9. package/dist/entrypoints/agent-runtime/testing.js +6 -6
  10. package/dist/entrypoints/agent-runtime.js +13 -11
  11. package/dist/entrypoints/application/diagnostic-journal.js +2 -2
  12. package/dist/entrypoints/application/directory-inbox.js +4 -4
  13. package/dist/entrypoints/application.js +6 -6
  14. package/dist/entrypoints/cli/publish.js +4 -4
  15. package/dist/entrypoints/cli.js +7 -7
  16. package/dist/entrypoints/contract.js +4 -4
  17. package/dist/entrypoints/files.js +3 -3
  18. package/dist/entrypoints/http.js +2 -2
  19. package/dist/entrypoints/index.js +2 -2
  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 +11 -11
  24. package/dist/entrypoints/telegram/screens.js +5 -5
  25. package/dist/entrypoints/telegram.js +7 -7
  26. package/dist/entrypoints/testing.js +2 -2
  27. package/dist/entrypoints/tools/agent.d.ts +9 -0
  28. package/dist/entrypoints/tools/agent.d.ts.map +1 -0
  29. package/dist/entrypoints/tools/agent.js +16 -0
  30. package/dist/entrypoints/tools/connections.js +4 -4
  31. package/dist/entrypoints/tools/mcp.js +104 -4
  32. package/dist/entrypoints/tools/toolkit.d.ts +9 -0
  33. package/dist/entrypoints/tools/toolkit.d.ts.map +1 -0
  34. package/dist/entrypoints/tools/toolkit.js +40 -0
  35. package/dist/entrypoints/tools.d.ts +0 -10
  36. package/dist/entrypoints/tools.d.ts.map +1 -1
  37. package/dist/entrypoints/tools.js +25 -69
  38. package/dist/{index-1k18qzqa.js → index-0qyrcjfs.js} +3 -3
  39. package/dist/index-1psbyyhj.js +21 -0
  40. package/dist/index-3prvb42w.js +30 -0
  41. package/dist/{index-ba7are04.js → index-3yb5kft5.js} +1 -1
  42. package/dist/index-568w258r.js +76 -0
  43. package/dist/{index-6a69xzrx.js → index-7zwtbak8.js} +5 -46
  44. package/dist/{index-fcqj44mb.js → index-8ryydawp.js} +4 -4
  45. package/dist/{index-fqd4yqwd.js → index-8xyf8h2k.js} +1 -1
  46. package/dist/{index-6f49krb5.js → index-aa50qwv4.js} +1 -1
  47. package/dist/{index-s20s2mad.js → index-bgcwxhxh.js} +16 -14
  48. package/dist/index-bph35vpy.js +77 -0
  49. package/dist/{index-ynrf908v.js → index-bz479f0x.js} +1 -1
  50. package/dist/{index-q968hy6y.js → index-e452syyh.js} +1 -1
  51. package/dist/index-h1j71dr1.js +48 -0
  52. package/dist/{index-mgb7r8b8.js → index-jswst0h3.js} +1 -1
  53. package/dist/{index-bbvc59gw.js → index-knmnj11j.js} +9 -180
  54. package/dist/{index-57gqaq8b.js → index-nyyam9ce.js} +1 -1
  55. package/dist/{index-s0qjs6ee.js → index-pq2m7t46.js} +9 -81
  56. package/dist/{index-yk4g8805.js → index-pq7rkwkk.js} +1 -30
  57. package/dist/{index-x8d9fdeg.js → index-qctbzmg9.js} +8 -4
  58. package/dist/{index-g444vfz2.js → index-r3db01kh.js} +1 -1
  59. package/dist/index-sb9dr3tq.js +14 -0
  60. package/dist/{index-rxcgp4b9.js → index-yb9n4pgj.js} +1 -1
  61. package/dist/{index-tvtacc9a.js → index-zyc64nbh.js} +1 -34
  62. package/llms/agent-runtime-harness.txt +4 -3
  63. package/llms/agent-runtime-sandbox.txt +1 -1
  64. package/llms/agent-runtime.2.txt +3 -2
  65. package/llms/agent-runtime.3.txt +4 -46
  66. package/llms/agent-runtime.4.txt +113 -0
  67. package/llms/agent-runtime.txt +11 -13
  68. package/llms/cli.txt +1 -1
  69. package/llms/stitchkit.txt +15 -9
  70. package/llms/testing.txt +4 -6
  71. package/llms/tools-agent.txt +24 -0
  72. package/llms/tools-mcp.txt +71 -6
  73. package/llms/tools-toolkit.txt +23 -0
  74. package/llms/tools.2.txt +6 -3
  75. package/llms/tools.3.txt +8 -77
  76. package/llms/tools.txt +8 -8
  77. package/llms/{upgrading-0.106.0-0.119.0.txt → upgrading-0.106.0-0.120.0.txt} +34 -3
  78. package/llms/upgrading.txt +1 -1
  79. package/llms-full.txt +231 -119
  80. package/llms.txt +9 -7
  81. package/package.json +10 -2
  82. package/dist/{index-arjmb6de.js → index-1jwsfkfz.js} +0 -0
  83. package/dist/{index-2dfvv1jg.js → index-2fc1k9k2.js} +0 -0
  84. package/dist/{index-qndsr7f0.js → index-5efrpfmj.js} +3 -3
  85. /package/dist/{index-cyxp8rbf.js → index-mtwh9hyp.js} +0 -0
  86. /package/dist/{index-f4njz9j0.js → index-qevqn3d3.js} +0 -0
package/llms.txt CHANGED
@@ -9,24 +9,26 @@ Build with stitchkit: define a contract once, then `implement` it and serve it (
9
9
  Load the slice for each entrypoint your code imports — `import … from 'stitchkit/server'` → `llms/server.txt`; the root `stitchkit` import → `llms/stitchkit.txt`. A slice holds that entrypoint's API reference section and the guide pages whose home it is; every guide lives in exactly one slice, and a slice that needs another's guide names it under "Also read". Each file is at most 50.0 KB; a longer one continues in numbered parts, each naming the next at its top. Moving across versions: load `llms/upgrading.txt` and the range slices it lists between your version and the target. `llms-full.txt` inlines everything; it is far larger than a context window, so do not read it whole.
10
10
 
11
11
  ## Entrypoint slices
12
- - **stitchkit**: [llms/stitchkit.txt](llms/stitchkit.txt) 43.9 KB → [llms/stitchkit.2.txt](llms/stitchkit.2.txt) 43.1 KB
12
+ - **stitchkit**: [llms/stitchkit.txt](llms/stitchkit.txt) 44.6 KB → [llms/stitchkit.2.txt](llms/stitchkit.2.txt) 43.1 KB
13
13
  - **stitchkit/live**: [llms/live.txt](llms/live.txt) 21.2 KB
14
14
  - **stitchkit/react**: [llms/react.txt](llms/react.txt) 8.7 KB
15
15
  - **stitchkit/react/keyboard**: [llms/react-keyboard.txt](llms/react-keyboard.txt) 22.7 KB
16
16
  - **stitchkit/react/keyboard/testing**: [llms/react-keyboard-testing.txt](llms/react-keyboard-testing.txt) 1.9 KB
17
- - **stitchkit/tools**: [llms/tools.txt](llms/tools.txt) 46.7 KB → [llms/tools.2.txt](llms/tools.2.txt) 30.4 KB → [llms/tools.3.txt](llms/tools.3.txt) 26.3 KB
18
- - **stitchkit/tools/mcp**: [llms/tools-mcp.txt](llms/tools-mcp.txt) 1.8 KB
17
+ - **stitchkit/tools**: [llms/tools.txt](llms/tools.txt) 46.7 KB → [llms/tools.2.txt](llms/tools.2.txt) 30.5 KB → [llms/tools.3.txt](llms/tools.3.txt) 21.0 KB
18
+ - **stitchkit/tools/mcp**: [llms/tools-mcp.txt](llms/tools-mcp.txt) 6.6 KB
19
+ - **stitchkit/tools/agent**: [llms/tools-agent.txt](llms/tools-agent.txt) 1.1 KB
20
+ - **stitchkit/tools/toolkit**: [llms/tools-toolkit.txt](llms/tools-toolkit.txt) 0.9 KB
19
21
  - **stitchkit/tools/contract**: [llms/tools-contract.txt](llms/tools-contract.txt) 0.2 KB
20
22
  - **stitchkit/tools/invoker**: [llms/tools-invoker.txt](llms/tools-invoker.txt) 0.2 KB
21
23
  - **stitchkit/tools/connections**: [llms/tools-connections.txt](llms/tools-connections.txt) 3.9 KB
22
- - **stitchkit/cli**: [llms/cli.txt](llms/cli.txt) 36.5 KB → [llms/cli.2.txt](llms/cli.2.txt) 36.4 KB
24
+ - **stitchkit/cli**: [llms/cli.txt](llms/cli.txt) 36.6 KB → [llms/cli.2.txt](llms/cli.2.txt) 36.4 KB
23
25
  - **stitchkit/cli/publish**: [llms/cli-publish.txt](llms/cli-publish.txt) 1.5 KB
24
26
  - **stitchkit/remote**: [llms/remote.txt](llms/remote.txt) 1.0 KB
25
27
  - **stitchkit/contract**: [llms/contract.txt](llms/contract.txt) 33.8 KB
26
28
  - **stitchkit/primitives**: [llms/primitives.txt](llms/primitives.txt) 13.2 KB
27
29
  - **stitchkit/server**: [llms/server.txt](llms/server.txt) 44.2 KB → [llms/server.2.txt](llms/server.2.txt) 20.9 KB → [llms/server.3.txt](llms/server.3.txt) 47.0 KB → [llms/server.4.txt](llms/server.4.txt) 38.6 KB → [llms/server.5.txt](llms/server.5.txt) 23.1 KB
28
30
  - **stitchkit/observability**: [llms/observability.txt](llms/observability.txt) 46.9 KB
29
- - **stitchkit/agent-runtime**: [llms/agent-runtime.txt](llms/agent-runtime.txt) 44.3 KB → [llms/agent-runtime.2.txt](llms/agent-runtime.2.txt) 46.7 KB → [llms/agent-runtime.3.txt](llms/agent-runtime.3.txt) 43.4 KB
31
+ - **stitchkit/agent-runtime**: [llms/agent-runtime.txt](llms/agent-runtime.txt) 44.3 KB → [llms/agent-runtime.2.txt](llms/agent-runtime.2.txt) 46.8 KB → [llms/agent-runtime.3.txt](llms/agent-runtime.3.txt) 39.7 KB → [llms/agent-runtime.4.txt](llms/agent-runtime.4.txt) 11.7 KB
30
32
  - **stitchkit/agent-runtime/testing**: [llms/agent-runtime-testing.txt](llms/agent-runtime-testing.txt) 2.6 KB
31
33
  - **stitchkit/agent-runtime/harness**: [llms/agent-runtime-harness.txt](llms/agent-runtime-harness.txt) 11.0 KB
32
34
  - **stitchkit/agent-runtime/coding-tools**: [llms/agent-runtime-coding-tools.txt](llms/agent-runtime-coding-tools.txt) 5.0 KB
@@ -40,7 +42,7 @@ Load the slice for each entrypoint your code imports — `import … from 'stitc
40
42
  - **stitchkit/application/directory-inbox**: [llms/application-directory-inbox.txt](llms/application-directory-inbox.txt) 0.3 KB
41
43
  - **stitchkit/application/diagnostic-journal**: [llms/application-diagnostic-journal.txt](llms/application-diagnostic-journal.txt) 1.8 KB
42
44
  - **stitchkit/application/schemas**: [llms/application-schemas.txt](llms/application-schemas.txt) 1.8 KB
43
- - **stitchkit/testing**: [llms/testing.txt](llms/testing.txt) 33.6 KB
45
+ - **stitchkit/testing**: [llms/testing.txt](llms/testing.txt) 33.7 KB
44
46
  - **stitchkit/agent-runtime/sandbox**: [llms/agent-runtime-sandbox.txt](llms/agent-runtime-sandbox.txt) 8.3 KB
45
47
  - **stitchkit/files**: [llms/files.txt](llms/files.txt) 5.7 KB
46
48
  - **stitchkit/telegram**: [llms/telegram.txt](llms/telegram.txt) 44.8 KB
@@ -70,7 +72,7 @@ Load the slice for each entrypoint your code imports — `import … from 'stitc
70
72
 
71
73
  ## Upgrading slices
72
74
  - **Upgrading — how to move across versions**: [llms/upgrading.txt](llms/upgrading.txt) 12.7 KB
73
- - **Upgrading 0.106.0 → 0.119.0**: [llms/upgrading-0.106.0-0.119.0.txt](llms/upgrading-0.106.0-0.119.0.txt) 28.8 KB
75
+ - **Upgrading 0.106.0 → 0.120.0**: [llms/upgrading-0.106.0-0.120.0.txt](llms/upgrading-0.106.0-0.120.0.txt) 30.5 KB
74
76
  - **Upgrading 0.96.0 → 0.105.0**: [llms/upgrading-0.96.0-0.105.0.txt](llms/upgrading-0.96.0-0.105.0.txt) 45.8 KB
75
77
  - **Upgrading 0.69.0 → 0.95.0**: [llms/upgrading-0.69.0-0.95.0.txt](llms/upgrading-0.69.0-0.95.0.txt) 46.6 KB
76
78
  - **Upgrading 0.55.0 → 0.68.0**: [llms/upgrading-0.55.0-0.68.0.txt](llms/upgrading-0.55.0-0.68.0.txt) 47.0 KB
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stitchkit",
3
- "version": "0.119.0",
3
+ "version": "0.120.0",
4
4
  "description": "Contract-first backend framework — one defineContract() into an HTTP API, MCP tools, AI-agent tools and a typed client. Bun and Node.",
5
5
  "keywords": [
6
6
  "bun",
@@ -85,6 +85,14 @@
85
85
  "types": "./dist/entrypoints/tools/mcp.d.ts",
86
86
  "import": "./dist/entrypoints/tools/mcp.js"
87
87
  },
88
+ "./tools/agent": {
89
+ "types": "./dist/entrypoints/tools/agent.d.ts",
90
+ "import": "./dist/entrypoints/tools/agent.js"
91
+ },
92
+ "./tools/toolkit": {
93
+ "types": "./dist/entrypoints/tools/toolkit.d.ts",
94
+ "import": "./dist/entrypoints/tools/toolkit.js"
95
+ },
88
96
  "./tools/contract": {
89
97
  "types": "./dist/entrypoints/tools/contract.d.ts",
90
98
  "import": "./dist/entrypoints/tools/contract.js"
@@ -299,7 +307,7 @@
299
307
  "build:js": "bun run build:entrypoints && bun scripts/preserve-webpack-ignore.mjs",
300
308
  "build:types": "bun x tsc -p tsconfig.build.json --emitDeclarationOnly && bun scripts/rewrite-declaration-specifiers.mjs",
301
309
  "build": "bun ../../scripts/package-build-lock.ts -- bun run build:unlocked",
302
- "build:unlocked": "rm -rf dist && cp ../../CHANGELOG.md ./CHANGELOG.md && bun run build:js && chmod +x dist/entrypoints/bin/upgrade-cli.js && bun run build:types && bun scripts/check-browser-clean.mjs && bun scripts/check-browser-executes.mjs && bun scripts/check-env-live.mjs && bun scripts/check-public-types.mjs && bun scripts/check-durability-port-standalone.mjs && bun scripts/check-declarations-strict.mjs",
310
+ "build:unlocked": "rm -rf dist && cp ../../CHANGELOG.md ./CHANGELOG.md && bun run build:js && chmod +x dist/entrypoints/bin/upgrade-cli.js && bun run build:types && bun scripts/check-browser-clean.mjs && bun scripts/check-browser-executes.mjs && bun scripts/check-env-live.mjs && bun scripts/check-public-types.mjs && bun scripts/check-durability-port-standalone.mjs && bun scripts/check-tools-neutral.mjs && bun scripts/check-declarations-strict.mjs",
303
311
  "dev": "bun run build:entrypoints -- --watch",
304
312
  "prepack": "bun ../../scripts/sync-package-readme.ts && bun ../../scripts/gen-llms.ts && bun run build",
305
313
  "test": "bun ../../scripts/test-leak-gate.ts -- bun test",
File without changes
File without changes
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  chunksOf
3
3
  } from "./index-cjbn98zt.js";
4
- import {
5
- abortReason
6
- } from "./index-a5qr2rj6.js";
7
4
  import {
8
5
  assertPositiveSafeInteger
9
6
  } from "./index-0s4xebbg.js";
7
+ import {
8
+ abortReason
9
+ } from "./index-a5qr2rj6.js";
10
10
 
11
11
  // src/internal/bounded-body.ts
12
12
  async function readBoundedChunks(source, options) {
File without changes
File without changes