stitchkit 0.68.11 → 0.69.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 (120) hide show
  1. package/README.md +30 -1
  2. package/dist/agent-runtime/coding-tool-contract.d.ts +155 -0
  3. package/dist/agent-runtime/coding-tool-contract.d.ts.map +1 -0
  4. package/dist/agent-runtime/coding-tool-files.d.ts +3 -0
  5. package/dist/agent-runtime/coding-tool-files.d.ts.map +1 -0
  6. package/dist/agent-runtime/coding-tool-paths.d.ts +19 -0
  7. package/dist/agent-runtime/coding-tool-paths.d.ts.map +1 -0
  8. package/dist/agent-runtime/coding-tool-search-patch.d.ts +3 -0
  9. package/dist/agent-runtime/coding-tool-search-patch.d.ts.map +1 -0
  10. package/dist/agent-runtime/coding-tool-shell.d.ts +3 -0
  11. package/dist/agent-runtime/coding-tool-shell.d.ts.map +1 -0
  12. package/dist/agent-runtime/coding-tools.d.ts +17 -0
  13. package/dist/agent-runtime/coding-tools.d.ts.map +1 -0
  14. package/dist/agent-runtime/compaction.d.ts +2 -0
  15. package/dist/agent-runtime/compaction.d.ts.map +1 -1
  16. package/dist/agent-runtime/contained-files.d.ts +31 -0
  17. package/dist/agent-runtime/contained-files.d.ts.map +1 -0
  18. package/dist/agent-runtime/control-schema.d.ts +1074 -0
  19. package/dist/agent-runtime/control-schema.d.ts.map +1 -0
  20. package/dist/agent-runtime/conversations.d.ts +128 -0
  21. package/dist/agent-runtime/conversations.d.ts.map +1 -0
  22. package/dist/agent-runtime/event-schema.d.ts +96 -0
  23. package/dist/agent-runtime/event-schema.d.ts.map +1 -1
  24. package/dist/agent-runtime/harness-contract.d.ts +169 -0
  25. package/dist/agent-runtime/harness-contract.d.ts.map +1 -0
  26. package/dist/agent-runtime/harness-control.d.ts +25 -0
  27. package/dist/agent-runtime/harness-control.d.ts.map +1 -0
  28. package/dist/agent-runtime/harness-file-resources.d.ts +33 -0
  29. package/dist/agent-runtime/harness-file-resources.d.ts.map +1 -0
  30. package/dist/agent-runtime/harness-resources.d.ts +5 -0
  31. package/dist/agent-runtime/harness-resources.d.ts.map +1 -0
  32. package/dist/agent-runtime/harness.d.ts +12 -0
  33. package/dist/agent-runtime/harness.d.ts.map +1 -0
  34. package/dist/agent-runtime/history.d.ts +2 -0
  35. package/dist/agent-runtime/history.d.ts.map +1 -1
  36. package/dist/agent-runtime/models.d.ts +199 -0
  37. package/dist/agent-runtime/models.d.ts.map +1 -1
  38. package/dist/agent-runtime/prompt.d.ts +2 -0
  39. package/dist/agent-runtime/prompt.d.ts.map +1 -1
  40. package/dist/agent-runtime/run-execution.d.ts.map +1 -1
  41. package/dist/agent-runtime/runtime.d.ts +11 -3
  42. package/dist/agent-runtime/runtime.d.ts.map +1 -1
  43. package/dist/agent-runtime/schemas.d.ts +49 -0
  44. package/dist/agent-runtime/schemas.d.ts.map +1 -1
  45. package/dist/agent-runtime/sqlite.d.ts +2 -0
  46. package/dist/agent-runtime/sqlite.d.ts.map +1 -1
  47. package/dist/agent-runtime/store-driver.d.ts +61 -212
  48. package/dist/agent-runtime/store-driver.d.ts.map +1 -1
  49. package/dist/agent-runtime/store.d.ts +368 -1
  50. package/dist/agent-runtime/store.d.ts.map +1 -1
  51. package/dist/agent-runtime/terminal-commit.d.ts +12 -1
  52. package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
  53. package/dist/agent-runtime/terminal-status.d.ts +8 -0
  54. package/dist/agent-runtime/terminal-status.d.ts.map +1 -1
  55. package/dist/agent-runtime-browser.d.ts +1 -0
  56. package/dist/agent-runtime-browser.d.ts.map +1 -1
  57. package/dist/agent-runtime-browser.js +217 -1
  58. package/dist/agent-runtime-coding-tools.d.ts +2 -0
  59. package/dist/agent-runtime-coding-tools.d.ts.map +1 -0
  60. package/dist/agent-runtime-coding-tools.js +706 -0
  61. package/dist/agent-runtime-harness.d.ts +2 -0
  62. package/dist/agent-runtime-harness.d.ts.map +1 -0
  63. package/dist/agent-runtime-harness.js +700 -0
  64. package/dist/agent-runtime-openrouter.d.ts +14 -1
  65. package/dist/agent-runtime-openrouter.d.ts.map +1 -1
  66. package/dist/agent-runtime-openrouter.js +211 -0
  67. package/dist/agent-runtime-sqlite-bun.js +4 -3
  68. package/dist/agent-runtime-sqlite-node.js +4 -3
  69. package/dist/agent-runtime.d.ts +5 -3
  70. package/dist/agent-runtime.d.ts.map +1 -1
  71. package/dist/agent-runtime.js +106 -2580
  72. package/dist/application/diagnostic-journal-contract.d.ts +164 -0
  73. package/dist/application/diagnostic-journal-contract.d.ts.map +1 -0
  74. package/dist/application/diagnostic-journal-manager.d.ts +12 -0
  75. package/dist/application/diagnostic-journal-manager.d.ts.map +1 -0
  76. package/dist/application/diagnostic-journal-storage.d.ts +29 -0
  77. package/dist/application/diagnostic-journal-storage.d.ts.map +1 -0
  78. package/dist/application/diagnostic-journal.d.ts +11 -0
  79. package/dist/application/diagnostic-journal.d.ts.map +1 -0
  80. package/dist/application.d.ts +2 -0
  81. package/dist/application.d.ts.map +1 -1
  82. package/dist/application.js +561 -17
  83. package/dist/browser/socket-io.d.ts.map +1 -1
  84. package/dist/cli.js +8 -6
  85. package/dist/{index-8vpzxg55.js → index-10gbbbaa.js} +103 -2
  86. package/dist/index-3eqrkqhg.js +2565 -0
  87. package/dist/{index-hcx9yypn.js → index-444747ww.js} +7 -7
  88. package/dist/{index-hxh98zbm.js → index-d1jsvkyk.js} +1 -1
  89. package/dist/index-es0h4w26.js +63 -0
  90. package/dist/{index-grgvpbch.js → index-gqdfpv4n.js} +4 -2
  91. package/dist/{index-bt5179zb.js → index-h7ctj1kp.js} +5 -3
  92. package/dist/{index-y2ctppmg.js → index-h8vn1jcr.js} +7 -73
  93. package/dist/{index-hqza5nde.js → index-hsabxjz0.js} +78 -77
  94. package/dist/index-kg9xx84n.js +73 -0
  95. package/dist/{index-hb0mncmj.js → index-kxxyvkka.js} +2 -2
  96. package/dist/{index-2t6zt5cg.js → index-mbxds404.js} +7 -5
  97. package/dist/{index-f24xg2cw.js → index-p1be103g.js} +1 -1
  98. package/dist/{index-xyvxez9r.js → index-q7gdep2c.js} +5 -5
  99. package/dist/{index-t23p2b68.js → index-t4dpby6e.js} +1 -1
  100. package/dist/index-tg3m2ec5.js +157 -0
  101. package/dist/index-v3dpzpjw.js +92 -0
  102. package/dist/{index-eqqyd9v8.js → index-wwst0td5.js} +2 -46
  103. package/dist/{index-ysphyxax.js → index-x1th9s8c.js} +23 -2
  104. package/dist/index-xxsq3ca1.js +51 -0
  105. package/dist/{index-22tjt2rk.js → index-zh459sfj.js} +1 -1
  106. package/dist/index.js +51 -37
  107. package/dist/internal/ai-sdk-typed.d.ts +14 -0
  108. package/dist/internal/ai-sdk-typed.d.ts.map +1 -0
  109. package/dist/node.js +5 -5
  110. package/dist/observability/index.js +4 -4
  111. package/dist/realtime/request.d.ts +5 -0
  112. package/dist/realtime/request.d.ts.map +1 -1
  113. package/dist/remote.js +6 -6
  114. package/dist/server/index.js +9 -9
  115. package/dist/testing.js +5 -5
  116. package/dist/tool-invoker.js +6 -5
  117. package/dist/tools.js +21 -17
  118. package/llms-full.txt +342 -27
  119. package/package.json +10 -2
  120. package/dist/{index-pgsyp3xh.js → index-x18ndp4p.js} +3 -3
package/dist/remote.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ApiError,
3
3
  createClient
4
- } from "./index-hb0mncmj.js";
5
- import"./index-t23p2b68.js";
4
+ } from "./index-kxxyvkka.js";
5
+ import"./index-t4dpby6e.js";
6
6
  import {
7
7
  mergeMeta
8
- } from "./index-pgsyp3xh.js";
9
- import {
10
- isRecord
11
- } from "./index-qyrqwr4c.js";
8
+ } from "./index-x18ndp4p.js";
12
9
  import {
13
10
  AppError
14
11
  } from "./index-0w9abg87.js";
12
+ import {
13
+ isRecord
14
+ } from "./index-qyrqwr4c.js";
15
15
  import"./index-6k1937bx.js";
16
16
 
17
17
  // src/tools/remote.ts
@@ -13,7 +13,7 @@ import {
13
13
  sseRoute,
14
14
  streamingRoute,
15
15
  webSocketLane
16
- } from "../index-hcx9yypn.js";
16
+ } from "../index-444747ww.js";
17
17
  import {
18
18
  composeAuthHooks,
19
19
  createAuthHook,
@@ -26,7 +26,7 @@ import {
26
26
  signJwt,
27
27
  verifyJwt,
28
28
  verifyPkce
29
- } from "../index-xyvxez9r.js";
29
+ } from "../index-q7gdep2c.js";
30
30
  import {
31
31
  DEFAULT_CORS_ALLOW_HEADERS,
32
32
  DEFAULT_CORS_EXPOSE_HEADERS,
@@ -40,7 +40,7 @@ import {
40
40
  defineMultipartStream,
41
41
  implement,
42
42
  implementRegistry
43
- } from "../index-hxh98zbm.js";
43
+ } from "../index-d1jsvkyk.js";
44
44
  import {
45
45
  extractIp,
46
46
  generateTraceId,
@@ -48,7 +48,7 @@ import {
48
48
  getTraceId,
49
49
  resolveSocketIp,
50
50
  resolveTraceId
51
- } from "../index-f24xg2cw.js";
51
+ } from "../index-p1be103g.js";
52
52
  import {
53
53
  isWithinDir,
54
54
  realPathWithinDir
@@ -69,7 +69,7 @@ import {
69
69
  inputIsQuery,
70
70
  parseSSE,
71
71
  streamSSE
72
- } from "../index-t23p2b68.js";
72
+ } from "../index-t4dpby6e.js";
73
73
  import {
74
74
  DEFAULT_CONTRACT_STREAM_FRAME_BYTES,
75
75
  errorCode,
@@ -78,10 +78,7 @@ import {
78
78
  normalizeError,
79
79
  parseTrailingWildcard,
80
80
  zodIssues
81
- } from "../index-pgsyp3xh.js";
82
- import {
83
- isRecord
84
- } from "../index-qyrqwr4c.js";
81
+ } from "../index-x18ndp4p.js";
85
82
  import {
86
83
  AppError,
87
84
  STITCH_ERROR_STATUS,
@@ -94,6 +91,9 @@ import {
94
91
  rateLimited,
95
92
  unauthorized
96
93
  } from "../index-0w9abg87.js";
94
+ import {
95
+ isRecord
96
+ } from "../index-qyrqwr4c.js";
97
97
  import"../index-6k1937bx.js";
98
98
  // src/server/bun.ts
99
99
  import { chmodSync, statSync, unlinkSync } from "node:fs";
package/dist/testing.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AgentMessageSchema,
3
3
  AgentRunSchema
4
- } from "./index-ysphyxax.js";
4
+ } from "./index-x1th9s8c.js";
5
5
  import {
6
6
  createApplication
7
7
  } from "./index-6wzr93cg.js";
@@ -24,15 +24,15 @@ import {
24
24
  import {
25
25
  createClient,
26
26
  createClients
27
- } from "./index-hb0mncmj.js";
28
- import"./index-t23p2b68.js";
27
+ } from "./index-kxxyvkka.js";
28
+ import"./index-t4dpby6e.js";
29
29
  import {
30
30
  joinRoutePath
31
- } from "./index-pgsyp3xh.js";
31
+ } from "./index-x18ndp4p.js";
32
+ import"./index-0w9abg87.js";
32
33
  import {
33
34
  isRecord
34
35
  } from "./index-qyrqwr4c.js";
35
- import"./index-0w9abg87.js";
36
36
  import"./index-6k1937bx.js";
37
37
 
38
38
  // src/agent-runtime/testing.ts
@@ -1,13 +1,14 @@
1
1
  import {
2
2
  createToolInvoker
3
- } from "./index-grgvpbch.js";
4
- import"./index-y2ctppmg.js";
5
- import"./index-f24xg2cw.js";
3
+ } from "./index-gqdfpv4n.js";
4
+ import"./index-kg9xx84n.js";
5
+ import"./index-h8vn1jcr.js";
6
+ import"./index-p1be103g.js";
6
7
  import"./index-22by16v6.js";
7
8
  import"./index-cby4ar3v.js";
8
- import"./index-pgsyp3xh.js";
9
- import"./index-qyrqwr4c.js";
9
+ import"./index-x18ndp4p.js";
10
10
  import"./index-0w9abg87.js";
11
+ import"./index-qyrqwr4c.js";
11
12
  import"./index-6k1937bx.js";
12
13
  export {
13
14
  createToolInvoker
package/dist/tools.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  redact
3
- } from "./index-22tjt2rk.js";
3
+ } from "./index-zh459sfj.js";
4
4
  import {
5
5
  buildToolManifest,
6
6
  mountAgent
7
- } from "./index-bt5179zb.js";
7
+ } from "./index-h7ctj1kp.js";
8
8
  import {
9
9
  signJwt,
10
10
  verifyPkce
11
- } from "./index-xyvxez9r.js";
11
+ } from "./index-q7gdep2c.js";
12
12
  import {
13
13
  DEFAULT_CORS_ALLOW_HEADERS,
14
14
  DEFAULT_PROCESS_SIGNALS,
@@ -16,10 +16,10 @@ import {
16
16
  defaultSignalSource,
17
17
  guardSignalCallback,
18
18
  reportSignalError
19
- } from "./index-hxh98zbm.js";
19
+ } from "./index-d1jsvkyk.js";
20
20
  import {
21
21
  createToolInvoker
22
- } from "./index-grgvpbch.js";
22
+ } from "./index-gqdfpv4n.js";
23
23
  import {
24
24
  WaitTimeoutError,
25
25
  createCli,
@@ -28,27 +28,31 @@ import {
28
28
  fetchPinnedDocument,
29
29
  readCapped,
30
30
  runWaitOperation
31
- } from "./index-2t6zt5cg.js";
31
+ } from "./index-mbxds404.js";
32
+ import {
33
+ collectToolSurface
34
+ } from "./index-xxsq3ca1.js";
32
35
  import {
33
- collectToolSurface,
34
36
  createRuntimeToolFactory,
35
37
  defineRuntimeTool
36
- } from "./index-eqqyd9v8.js";
38
+ } from "./index-wwst0td5.js";
37
39
  import {
38
- ToolExecutionControlError,
39
- coerceJsonArgs,
40
40
  collectTools,
41
41
  createToolRunner,
42
+ formatToolError
43
+ } from "./index-kg9xx84n.js";
44
+ import {
45
+ ToolExecutionControlError,
46
+ coerceJsonArgs,
42
47
  executeToolMethod,
43
- formatToolError,
44
48
  isToolExecutionControlError,
45
49
  toolResultFromError
46
- } from "./index-y2ctppmg.js";
50
+ } from "./index-h8vn1jcr.js";
47
51
  import {
48
52
  getRequestContext,
49
53
  getTraceId,
50
54
  runWithRequestContext
51
- } from "./index-f24xg2cw.js";
55
+ } from "./index-p1be103g.js";
52
56
  import {
53
57
  ManagedFileError
54
58
  } from "./index-bfcpjw20.js";
@@ -69,14 +73,14 @@ import {
69
73
  defineContract,
70
74
  normalizeError,
71
75
  resolvePropagationContext
72
- } from "./index-pgsyp3xh.js";
73
- import {
74
- isRecord
75
- } from "./index-qyrqwr4c.js";
76
+ } from "./index-x18ndp4p.js";
76
77
  import {
77
78
  AppError,
78
79
  STITCH_ERROR_STATUS
79
80
  } from "./index-0w9abg87.js";
81
+ import {
82
+ isRecord
83
+ } from "./index-qyrqwr4c.js";
80
84
  import {
81
85
  ManagedFilePathSchema,
82
86
  ManagedFileRefSchema