@assemblyline-agents/runtime 5.0.10 → 6.0.1

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 (451) hide show
  1. package/README.md +20 -5
  2. package/dist/a2a-client.d.ts +1 -3
  3. package/dist/a2a-client.d.ts.map +1 -1
  4. package/dist/a2a-client.js +1 -4
  5. package/dist/a2a-client.js.map +1 -1
  6. package/dist/agent-event-handlers.d.ts +2 -0
  7. package/dist/agent-event-handlers.d.ts.map +1 -1
  8. package/dist/agent-event-handlers.js +1 -1
  9. package/dist/agent-event-handlers.js.map +1 -1
  10. package/dist/agent-hook-context.d.ts.map +1 -1
  11. package/dist/agent-hook-context.js +3 -1
  12. package/dist/agent-hook-context.js.map +1 -1
  13. package/dist/agent-hook-controller-factory.d.ts +5 -1
  14. package/dist/agent-hook-controller-factory.d.ts.map +1 -1
  15. package/dist/agent-hook-controller-factory.js +11 -9
  16. package/dist/agent-hook-controller-factory.js.map +1 -1
  17. package/dist/agent-hook-evaluation.d.ts +0 -2
  18. package/dist/agent-hook-evaluation.d.ts.map +1 -1
  19. package/dist/agent-hook-evaluation.js +10 -10
  20. package/dist/agent-hook-evaluation.js.map +1 -1
  21. package/dist/agent-hook-run-lifecycle.d.ts +1 -2
  22. package/dist/agent-hook-run-lifecycle.d.ts.map +1 -1
  23. package/dist/agent-hook-run-lifecycle.js +1 -2
  24. package/dist/agent-hook-run-lifecycle.js.map +1 -1
  25. package/dist/agent-surface.d.ts +5 -2
  26. package/dist/agent-surface.d.ts.map +1 -1
  27. package/dist/agent-surface.js +11 -3
  28. package/dist/agent-surface.js.map +1 -1
  29. package/dist/artifact-selection.js +1 -1
  30. package/dist/artifact-selection.js.map +1 -1
  31. package/dist/assembly-line-runtime.d.ts +9 -0
  32. package/dist/assembly-line-runtime.d.ts.map +1 -0
  33. package/dist/assembly-line-runtime.js +9 -0
  34. package/dist/assembly-line-runtime.js.map +1 -0
  35. package/dist/attachment-download.d.ts +17 -0
  36. package/dist/attachment-download.d.ts.map +1 -0
  37. package/dist/attachment-download.js +51 -0
  38. package/dist/attachment-download.js.map +1 -0
  39. package/dist/attachments.d.ts +2 -14
  40. package/dist/attachments.d.ts.map +1 -1
  41. package/dist/attachments.js +8 -80
  42. package/dist/attachments.js.map +1 -1
  43. package/dist/background-review-types.d.ts +2 -0
  44. package/dist/background-review-types.d.ts.map +1 -1
  45. package/dist/background-review.d.ts.map +1 -1
  46. package/dist/background-review.js +13 -0
  47. package/dist/background-review.js.map +1 -1
  48. package/dist/background-subagents.d.ts +1 -1
  49. package/dist/background-subagents.d.ts.map +1 -1
  50. package/dist/blob-storage.d.ts +12 -0
  51. package/dist/blob-storage.d.ts.map +1 -0
  52. package/dist/blob-storage.js +86 -0
  53. package/dist/blob-storage.js.map +1 -0
  54. package/dist/builtin-tool-executors.d.ts.map +1 -1
  55. package/dist/builtin-tool-executors.js +12 -11
  56. package/dist/builtin-tool-executors.js.map +1 -1
  57. package/dist/builtin-tools.d.ts +1 -2
  58. package/dist/builtin-tools.d.ts.map +1 -1
  59. package/dist/builtin-tools.js +0 -8
  60. package/dist/builtin-tools.js.map +1 -1
  61. package/dist/capability-inspection.d.ts +4 -0
  62. package/dist/capability-inspection.d.ts.map +1 -1
  63. package/dist/capability-inspection.js +10 -11
  64. package/dist/capability-inspection.js.map +1 -1
  65. package/dist/channel-credential-environment.d.ts +1 -1
  66. package/dist/channel-credential-environment.d.ts.map +1 -1
  67. package/dist/channel-credential-environment.js +1 -6
  68. package/dist/channel-credential-environment.js.map +1 -1
  69. package/dist/channel-ingress.d.ts +1 -2
  70. package/dist/channel-ingress.d.ts.map +1 -1
  71. package/dist/channel-ingress.js +2 -2
  72. package/dist/channel-ingress.js.map +1 -1
  73. package/dist/channel-operation.d.ts +0 -1
  74. package/dist/channel-operation.d.ts.map +1 -1
  75. package/dist/channel-operation.js +1 -2
  76. package/dist/channel-operation.js.map +1 -1
  77. package/dist/channel.d.ts +32 -3
  78. package/dist/channel.d.ts.map +1 -1
  79. package/dist/connection-assets.d.ts.map +1 -1
  80. package/dist/connection-assets.js.map +1 -1
  81. package/dist/connection-authorization-service.d.ts +52 -0
  82. package/dist/connection-authorization-service.d.ts.map +1 -0
  83. package/dist/connection-authorization-service.js +417 -0
  84. package/dist/connection-authorization-service.js.map +1 -0
  85. package/dist/connection-credential-materialization.d.ts +23 -0
  86. package/dist/connection-credential-materialization.d.ts.map +1 -0
  87. package/dist/connection-credential-materialization.js +223 -0
  88. package/dist/connection-credential-materialization.js.map +1 -0
  89. package/dist/connection-definition-loader.d.ts +6 -0
  90. package/dist/connection-definition-loader.d.ts.map +1 -0
  91. package/dist/connection-definition-loader.js +102 -0
  92. package/dist/connection-definition-loader.js.map +1 -0
  93. package/dist/connection-discovery.d.ts +11 -0
  94. package/dist/connection-discovery.d.ts.map +1 -0
  95. package/dist/connection-discovery.js +105 -0
  96. package/dist/connection-discovery.js.map +1 -0
  97. package/dist/connection-events.d.ts.map +1 -1
  98. package/dist/connection-events.js.map +1 -1
  99. package/dist/connection-oauth-client.d.ts +3 -0
  100. package/dist/connection-oauth-client.d.ts.map +1 -0
  101. package/dist/connection-oauth-client.js +64 -0
  102. package/dist/connection-oauth-client.js.map +1 -0
  103. package/dist/connection-runtime-types.d.ts +78 -0
  104. package/dist/connection-runtime-types.d.ts.map +1 -0
  105. package/dist/connection-runtime-types.js +31 -0
  106. package/dist/connection-runtime-types.js.map +1 -0
  107. package/dist/connections.d.ts +18 -167
  108. package/dist/connections.d.ts.map +1 -1
  109. package/dist/connections.js +71 -1017
  110. package/dist/connections.js.map +1 -1
  111. package/dist/context-policy-util.d.ts +0 -4
  112. package/dist/context-policy-util.d.ts.map +1 -1
  113. package/dist/context-policy-util.js +0 -10
  114. package/dist/context-policy-util.js.map +1 -1
  115. package/dist/conversation-context.d.ts +1 -1
  116. package/dist/conversation-context.d.ts.map +1 -1
  117. package/dist/conversation-context.js +12 -9
  118. package/dist/conversation-context.js.map +1 -1
  119. package/dist/default-outbound-route.d.ts +1 -0
  120. package/dist/default-outbound-route.d.ts.map +1 -1
  121. package/dist/default-outbound-route.js +1 -1
  122. package/dist/default-outbound-route.js.map +1 -1
  123. package/dist/delivery-queue.d.ts +1 -1
  124. package/dist/delivery-send.d.ts.map +1 -1
  125. package/dist/delivery-send.js +3 -2
  126. package/dist/delivery-send.js.map +1 -1
  127. package/dist/dynamic-schedule-execution.d.ts +4 -0
  128. package/dist/dynamic-schedule-execution.d.ts.map +1 -0
  129. package/dist/dynamic-schedule-execution.js +136 -0
  130. package/dist/dynamic-schedule-execution.js.map +1 -0
  131. package/dist/dynamic-schedule-runtime.d.ts +11 -20
  132. package/dist/dynamic-schedule-runtime.d.ts.map +1 -1
  133. package/dist/dynamic-schedule-runtime.js +27 -39
  134. package/dist/dynamic-schedule-runtime.js.map +1 -1
  135. package/dist/evolution-tracker.d.ts +52 -0
  136. package/dist/evolution-tracker.d.ts.map +1 -0
  137. package/dist/evolution-tracker.js +179 -0
  138. package/dist/evolution-tracker.js.map +1 -0
  139. package/dist/harness-capabilities.d.ts +7 -0
  140. package/dist/harness-capabilities.d.ts.map +1 -0
  141. package/dist/harness-capabilities.js +56 -0
  142. package/dist/harness-capabilities.js.map +1 -0
  143. package/dist/harness-continuation-persistence.d.ts +6 -0
  144. package/dist/harness-continuation-persistence.d.ts.map +1 -0
  145. package/dist/harness-continuation-persistence.js +11 -0
  146. package/dist/harness-continuation-persistence.js.map +1 -0
  147. package/dist/harness-execution-context.d.ts +10 -0
  148. package/dist/harness-execution-context.d.ts.map +1 -0
  149. package/dist/harness-execution-context.js +193 -0
  150. package/dist/harness-execution-context.js.map +1 -0
  151. package/dist/harness-loop-types.d.ts +67 -0
  152. package/dist/harness-loop-types.d.ts.map +1 -0
  153. package/dist/harness-loop-types.js +2 -0
  154. package/dist/harness-loop-types.js.map +1 -0
  155. package/dist/harness-loop.d.ts +13 -94
  156. package/dist/harness-loop.d.ts.map +1 -1
  157. package/dist/harness-loop.js +19 -551
  158. package/dist/harness-loop.js.map +1 -1
  159. package/dist/harness-tool-execution.d.ts +30 -0
  160. package/dist/harness-tool-execution.d.ts.map +1 -0
  161. package/dist/harness-tool-execution.js +397 -0
  162. package/dist/harness-tool-execution.js.map +1 -0
  163. package/dist/harness-transcript-resume.d.ts +18 -0
  164. package/dist/harness-transcript-resume.d.ts.map +1 -0
  165. package/dist/harness-transcript-resume.js +102 -0
  166. package/dist/harness-transcript-resume.js.map +1 -0
  167. package/dist/harness-turn-execution.d.ts +11 -0
  168. package/dist/harness-turn-execution.d.ts.map +1 -0
  169. package/dist/harness-turn-execution.js +157 -0
  170. package/dist/harness-turn-execution.js.map +1 -0
  171. package/dist/index.d.ts +10 -499
  172. package/dist/index.d.ts.map +1 -1
  173. package/dist/index.js +9 -2139
  174. package/dist/index.js.map +1 -1
  175. package/dist/local-sandbox.d.ts +2 -1
  176. package/dist/local-sandbox.d.ts.map +1 -1
  177. package/dist/mcp-client.d.ts +11 -1
  178. package/dist/mcp-client.d.ts.map +1 -1
  179. package/dist/mcp-client.js +39 -7
  180. package/dist/mcp-client.js.map +1 -1
  181. package/dist/media-processor.d.ts +3 -1
  182. package/dist/media-processor.d.ts.map +1 -1
  183. package/dist/media-processor.js +15 -1
  184. package/dist/media-processor.js.map +1 -1
  185. package/dist/memory-storage.d.ts +51 -0
  186. package/dist/memory-storage.d.ts.map +1 -0
  187. package/dist/memory-storage.js +324 -0
  188. package/dist/memory-storage.js.map +1 -0
  189. package/dist/model-credential-stores.d.ts.map +1 -1
  190. package/dist/model-credential-stores.js +6 -12
  191. package/dist/model-credential-stores.js.map +1 -1
  192. package/dist/model-provider-environment.d.ts +4 -0
  193. package/dist/model-provider-environment.d.ts.map +1 -0
  194. package/dist/model-provider-environment.js +36 -0
  195. package/dist/model-provider-environment.js.map +1 -0
  196. package/dist/plugin-embeddings.d.ts +4 -0
  197. package/dist/plugin-embeddings.d.ts.map +1 -0
  198. package/dist/plugin-embeddings.js +75 -0
  199. package/dist/plugin-embeddings.js.map +1 -0
  200. package/dist/public-api.d.ts +8 -5
  201. package/dist/public-api.d.ts.map +1 -1
  202. package/dist/public-api.js +6 -4
  203. package/dist/public-api.js.map +1 -1
  204. package/dist/relay-mcp-client.js +1 -1
  205. package/dist/relay-mcp-client.js.map +1 -1
  206. package/dist/replay-resume-authorization.d.ts +8 -0
  207. package/dist/replay-resume-authorization.d.ts.map +1 -0
  208. package/dist/replay-resume-authorization.js +181 -0
  209. package/dist/replay-resume-authorization.js.map +1 -0
  210. package/dist/replay-resume-connection.d.ts +6 -0
  211. package/dist/replay-resume-connection.d.ts.map +1 -0
  212. package/dist/replay-resume-connection.js +75 -0
  213. package/dist/replay-resume-connection.js.map +1 -0
  214. package/dist/replay-resume-controls.d.ts +6 -0
  215. package/dist/replay-resume-controls.d.ts.map +1 -0
  216. package/dist/replay-resume-controls.js +157 -0
  217. package/dist/replay-resume-controls.js.map +1 -0
  218. package/dist/replay-resume-harness.d.ts +14 -0
  219. package/dist/replay-resume-harness.d.ts.map +1 -0
  220. package/dist/replay-resume-harness.js +158 -0
  221. package/dist/replay-resume-harness.js.map +1 -0
  222. package/dist/replay-resume-recovery.d.ts +10 -0
  223. package/dist/replay-resume-recovery.d.ts.map +1 -0
  224. package/dist/replay-resume-recovery.js +62 -0
  225. package/dist/replay-resume-recovery.js.map +1 -0
  226. package/dist/replay-resume-shared.d.ts +16 -0
  227. package/dist/replay-resume-shared.d.ts.map +1 -0
  228. package/dist/replay-resume-shared.js +55 -0
  229. package/dist/replay-resume-shared.js.map +1 -0
  230. package/dist/replay-resume-types.d.ts +85 -0
  231. package/dist/replay-resume-types.d.ts.map +1 -0
  232. package/dist/replay-resume-types.js +2 -0
  233. package/dist/replay-resume-types.js.map +1 -0
  234. package/dist/replay-resume.d.ts +7 -119
  235. package/dist/replay-resume.d.ts.map +1 -1
  236. package/dist/replay-resume.js +5 -715
  237. package/dist/replay-resume.js.map +1 -1
  238. package/dist/resource-projection-util.d.ts +1 -2
  239. package/dist/resource-projection-util.d.ts.map +1 -1
  240. package/dist/resource-projection-util.js +2 -11
  241. package/dist/resource-projection-util.js.map +1 -1
  242. package/dist/resource-projection.d.ts.map +1 -1
  243. package/dist/resource-projection.js +67 -22
  244. package/dist/resource-projection.js.map +1 -1
  245. package/dist/run-execution-host.d.ts +98 -0
  246. package/dist/run-execution-host.d.ts.map +1 -0
  247. package/dist/run-execution-host.js +2 -0
  248. package/dist/run-execution-host.js.map +1 -0
  249. package/dist/run-execution.d.ts +6 -0
  250. package/dist/run-execution.d.ts.map +1 -0
  251. package/dist/run-execution.js +313 -0
  252. package/dist/run-execution.js.map +1 -0
  253. package/dist/run-initialization.d.ts +19 -0
  254. package/dist/run-initialization.d.ts.map +1 -0
  255. package/dist/run-initialization.js +171 -0
  256. package/dist/run-initialization.js.map +1 -0
  257. package/dist/run-recovery.d.ts +1 -1
  258. package/dist/run-recovery.js.map +1 -1
  259. package/dist/runtime-connection-definitions.d.ts +35 -0
  260. package/dist/runtime-connection-definitions.d.ts.map +1 -0
  261. package/dist/runtime-connection-definitions.js +97 -0
  262. package/dist/runtime-connection-definitions.js.map +1 -0
  263. package/dist/runtime-engine-background.d.ts +64 -0
  264. package/dist/runtime-engine-background.d.ts.map +1 -0
  265. package/dist/runtime-engine-background.js +136 -0
  266. package/dist/runtime-engine-background.js.map +1 -0
  267. package/dist/runtime-engine-base.d.ts +60 -0
  268. package/dist/runtime-engine-base.d.ts.map +1 -0
  269. package/dist/runtime-engine-base.js +192 -0
  270. package/dist/runtime-engine-base.js.map +1 -0
  271. package/dist/runtime-engine-capabilities.d.ts +81 -0
  272. package/dist/runtime-engine-capabilities.d.ts.map +1 -0
  273. package/dist/runtime-engine-capabilities.js +198 -0
  274. package/dist/runtime-engine-capabilities.js.map +1 -0
  275. package/dist/runtime-engine-config.d.ts +77 -0
  276. package/dist/runtime-engine-config.d.ts.map +1 -0
  277. package/dist/runtime-engine-config.js +187 -0
  278. package/dist/runtime-engine-config.js.map +1 -0
  279. package/dist/runtime-engine-foundation.d.ts +11 -0
  280. package/dist/runtime-engine-foundation.d.ts.map +1 -0
  281. package/dist/runtime-engine-foundation.js +121 -0
  282. package/dist/runtime-engine-foundation.js.map +1 -0
  283. package/dist/runtime-engine-hooks.d.ts +33 -0
  284. package/dist/runtime-engine-hooks.d.ts.map +1 -0
  285. package/dist/runtime-engine-hooks.js +153 -0
  286. package/dist/runtime-engine-hooks.js.map +1 -0
  287. package/dist/runtime-engine-integrations.d.ts +16 -0
  288. package/dist/runtime-engine-integrations.d.ts.map +1 -0
  289. package/dist/runtime-engine-integrations.js +177 -0
  290. package/dist/runtime-engine-integrations.js.map +1 -0
  291. package/dist/runtime-engine-operations.d.ts +87 -0
  292. package/dist/runtime-engine-operations.d.ts.map +1 -0
  293. package/dist/runtime-engine-operations.js +204 -0
  294. package/dist/runtime-engine-operations.js.map +1 -0
  295. package/dist/runtime-engine-resources.d.ts +18 -0
  296. package/dist/runtime-engine-resources.d.ts.map +1 -0
  297. package/dist/runtime-engine-resources.js +49 -0
  298. package/dist/runtime-engine-resources.js.map +1 -0
  299. package/dist/runtime-engine-run.d.ts +70 -0
  300. package/dist/runtime-engine-run.d.ts.map +1 -0
  301. package/dist/runtime-engine-run.js +202 -0
  302. package/dist/runtime-engine-run.js.map +1 -0
  303. package/dist/runtime-engine-scheduling.d.ts +22 -0
  304. package/dist/runtime-engine-scheduling.d.ts.map +1 -0
  305. package/dist/runtime-engine-scheduling.js +45 -0
  306. package/dist/runtime-engine-scheduling.js.map +1 -0
  307. package/dist/runtime-engine-tools.d.ts +8 -0
  308. package/dist/runtime-engine-tools.d.ts.map +1 -0
  309. package/dist/runtime-engine-tools.js +80 -0
  310. package/dist/runtime-engine-tools.js.map +1 -0
  311. package/dist/runtime-evolution.d.ts +17 -0
  312. package/dist/runtime-evolution.d.ts.map +1 -0
  313. package/dist/runtime-evolution.js +51 -0
  314. package/dist/runtime-evolution.js.map +1 -0
  315. package/dist/runtime-learning.d.ts +4 -6
  316. package/dist/runtime-learning.d.ts.map +1 -1
  317. package/dist/runtime-learning.js +109 -99
  318. package/dist/runtime-learning.js.map +1 -1
  319. package/dist/runtime-types.d.ts +21 -7
  320. package/dist/runtime-types.d.ts.map +1 -1
  321. package/dist/runtime-util.d.ts +4 -3
  322. package/dist/runtime-util.d.ts.map +1 -1
  323. package/dist/runtime-util.js +0 -7
  324. package/dist/runtime-util.js.map +1 -1
  325. package/dist/sandbox-atomic-json.d.ts +4 -0
  326. package/dist/sandbox-atomic-json.d.ts.map +1 -0
  327. package/dist/sandbox-atomic-json.js +23 -0
  328. package/dist/sandbox-atomic-json.js.map +1 -0
  329. package/dist/sandbox-authored-tool-executor.d.ts.map +1 -1
  330. package/dist/sandbox-authored-tool-executor.js +13 -3
  331. package/dist/sandbox-authored-tool-executor.js.map +1 -1
  332. package/dist/sandbox-fs.d.ts +2 -7
  333. package/dist/sandbox-fs.d.ts.map +1 -1
  334. package/dist/sandbox-fs.js +6 -37
  335. package/dist/sandbox-fs.js.map +1 -1
  336. package/dist/sandbox-handle.d.ts +1 -3
  337. package/dist/sandbox-handle.d.ts.map +1 -1
  338. package/dist/sandbox-handle.js +2 -5
  339. package/dist/sandbox-handle.js.map +1 -1
  340. package/dist/sandbox-state-sync.d.ts +2 -0
  341. package/dist/sandbox-state-sync.d.ts.map +1 -1
  342. package/dist/sandbox-state-sync.js +26 -2
  343. package/dist/sandbox-state-sync.js.map +1 -1
  344. package/dist/sandbox-tool-bridge.d.ts.map +1 -1
  345. package/dist/sandbox-tool-bridge.js +23 -3
  346. package/dist/sandbox-tool-bridge.js.map +1 -1
  347. package/dist/schedule-execution.d.ts +4 -4
  348. package/dist/schedule-execution.d.ts.map +1 -1
  349. package/dist/schedule-execution.js +45 -440
  350. package/dist/schedule-execution.js.map +1 -1
  351. package/dist/schedule-trigger-context.d.ts +18 -0
  352. package/dist/schedule-trigger-context.d.ts.map +1 -0
  353. package/dist/schedule-trigger-context.js +276 -0
  354. package/dist/schedule-trigger-context.js.map +1 -0
  355. package/dist/scheduler.d.ts +1 -14
  356. package/dist/scheduler.d.ts.map +1 -1
  357. package/dist/scheduler.js +1 -37
  358. package/dist/scheduler.js.map +1 -1
  359. package/dist/security.d.ts +0 -4
  360. package/dist/security.d.ts.map +1 -1
  361. package/dist/security.js +0 -22
  362. package/dist/security.js.map +1 -1
  363. package/dist/self-improvement.d.ts +5 -21
  364. package/dist/self-improvement.d.ts.map +1 -1
  365. package/dist/self-improvement.js +10 -40
  366. package/dist/self-improvement.js.map +1 -1
  367. package/dist/source-loader.d.ts +0 -3
  368. package/dist/source-loader.d.ts.map +1 -1
  369. package/dist/source-loader.js +1 -10
  370. package/dist/source-loader.js.map +1 -1
  371. package/dist/state/conversation-state.d.ts +117 -0
  372. package/dist/state/conversation-state.d.ts.map +1 -0
  373. package/dist/state/conversation-state.js +2 -0
  374. package/dist/state/conversation-state.js.map +1 -0
  375. package/dist/state/run-state.d.ts +129 -0
  376. package/dist/state/run-state.d.ts.map +1 -0
  377. package/dist/state/run-state.js +3 -0
  378. package/dist/state/run-state.js.map +1 -0
  379. package/dist/state/sandbox-memory-state.d.ts +159 -0
  380. package/dist/state/sandbox-memory-state.d.ts.map +1 -0
  381. package/dist/state/sandbox-memory-state.js +2 -0
  382. package/dist/state/sandbox-memory-state.js.map +1 -0
  383. package/dist/state/store-contracts.d.ts +329 -0
  384. package/dist/state/store-contracts.d.ts.map +1 -0
  385. package/dist/state/store-contracts.js +26 -0
  386. package/dist/state/store-contracts.js.map +1 -0
  387. package/dist/state/usage-state.d.ts +111 -0
  388. package/dist/state/usage-state.d.ts.map +1 -0
  389. package/dist/state/usage-state.js +2 -0
  390. package/dist/state/usage-state.js.map +1 -0
  391. package/dist/state/workspace-state.d.ts +126 -0
  392. package/dist/state/workspace-state.d.ts.map +1 -0
  393. package/dist/state/workspace-state.js +16 -0
  394. package/dist/state/workspace-state.js.map +1 -0
  395. package/dist/state-stores.d.ts +3 -15
  396. package/dist/state-stores.d.ts.map +1 -1
  397. package/dist/state-stores.js +36 -82
  398. package/dist/state-stores.js.map +1 -1
  399. package/dist/state.d.ts +7 -1075
  400. package/dist/state.d.ts.map +1 -1
  401. package/dist/state.js +7 -88
  402. package/dist/state.js.map +1 -1
  403. package/dist/storage.d.ts +4 -64
  404. package/dist/storage.d.ts.map +1 -1
  405. package/dist/storage.js +5 -408
  406. package/dist/storage.js.map +1 -1
  407. package/dist/subagent-execution.d.ts +1 -2
  408. package/dist/subagent-execution.d.ts.map +1 -1
  409. package/dist/subagent-execution.js +2 -26
  410. package/dist/subagent-execution.js.map +1 -1
  411. package/dist/subagent-handoff.d.ts +13 -0
  412. package/dist/subagent-handoff.d.ts.map +1 -1
  413. package/dist/subagent-handoff.js +74 -9
  414. package/dist/subagent-handoff.js.map +1 -1
  415. package/dist/tool-apis.d.ts +2 -2
  416. package/dist/tool-apis.d.ts.map +1 -1
  417. package/dist/tool-apis.js +26 -14
  418. package/dist/tool-apis.js.map +1 -1
  419. package/dist/tool-execution-host.d.ts +122 -0
  420. package/dist/tool-execution-host.d.ts.map +1 -0
  421. package/dist/tool-execution-host.js +2 -0
  422. package/dist/tool-execution-host.js.map +1 -0
  423. package/dist/tool-execution.d.ts +5 -141
  424. package/dist/tool-execution.d.ts.map +1 -1
  425. package/dist/tool-execution.js +6 -395
  426. package/dist/tool-execution.js.map +1 -1
  427. package/dist/usage-reconciliation-support.d.ts +20 -0
  428. package/dist/usage-reconciliation-support.d.ts.map +1 -0
  429. package/dist/usage-reconciliation-support.js +95 -0
  430. package/dist/usage-reconciliation-support.js.map +1 -0
  431. package/dist/usage-reconciliation.d.ts +14 -35
  432. package/dist/usage-reconciliation.d.ts.map +1 -1
  433. package/dist/usage-reconciliation.js +17 -394
  434. package/dist/usage-reconciliation.js.map +1 -1
  435. package/dist/workspace-paths.d.ts +3 -0
  436. package/dist/workspace-paths.d.ts.map +1 -0
  437. package/dist/workspace-paths.js +13 -0
  438. package/dist/workspace-paths.js.map +1 -0
  439. package/dist/workspace-service.d.ts +0 -1
  440. package/dist/workspace-service.d.ts.map +1 -1
  441. package/dist/workspace-service.js +1 -4
  442. package/dist/workspace-service.js.map +1 -1
  443. package/package.json +3 -3
  444. package/dist/run-timeline.d.ts +0 -11
  445. package/dist/run-timeline.d.ts.map +0 -1
  446. package/dist/run-timeline.js +0 -2
  447. package/dist/run-timeline.js.map +0 -1
  448. package/dist/trusted-attachments.d.ts +0 -20
  449. package/dist/trusted-attachments.d.ts.map +0 -1
  450. package/dist/trusted-attachments.js +0 -276
  451. package/dist/trusted-attachments.js.map +0 -1
package/dist/state.d.ts CHANGED
@@ -1,1076 +1,8 @@
1
- import type { JsonObject, JsonValue, MemoryListInput, MemorySearchInput } from "@assemblyline-agents/core";
2
- import type { DeliveryFailureInput, DeliveryLeaseOptions, DeliveryObligationInput, DeliveryObligationPatch } from "./delivery-queue.js";
3
- /**
4
- * Durable state contracts for the Assembly Line runtime.
5
- *
6
- * The historical monolithic `StateAdapter` is decomposed into capability
7
- * interfaces: `RunStore` is required, everything else is optional. The
8
- * `StateAdapter` type stays the intersection of every facet so existing
9
- * adapters (Postgres/File/InMemory) keep compiling without edits, while
10
- * `StateStores` lets embedders bring only the facets they can persist.
11
- */
12
- export type RunStatus = "created" | "running" | "waiting_for_approval" | "waiting_for_input" | "waiting_for_connection" | "suspended" | "completed" | "failed" | "cancelled";
13
- export type RunDeliveryStatus = "pending" | "sending" | "sent" | "failed" | "suppressed";
14
- export type RunEventType = "run.accepted" | "context.bundle_built" | "sandbox.acquired" | "sandbox.snapshot_created" | "sandbox.snapshot_failed" | "sandbox.snapshot_skipped" | "sandbox.command_completed" | "sandbox.file_written" | "sandbox.file_read" | "harness.started" | "model.request_started" | "agent.message_completed" | "model.response_completed" | "tool.call_requested" | "tool.approval_requested" | "tool.approval_auto_resolved" | "eval.judged" | "tool.execution_started" | "tool.execution_completed" | "tool.execution_failed" | "human_input.requested" | "memory.sync_completed" | "delivery.obligation_created" | "delivery.sent" | "run.completed" | "run.failed" | "run.execution_error" | "run.stalled" | "run.progress_reported" | "model.request_retried" | "run.suspend_requested" | "run.suspended" | "run.resumed" | "run.cancel_requested" | "run.cancelled" | "agent.disabled" | "agent.enabled" | string;
15
- export interface RunRecord {
16
- id: string;
17
- agentRevision: string;
18
- status: RunStatus;
19
- input: JsonObject;
20
- createdAt: string;
21
- updatedAt: string;
22
- contextBundleId?: string;
23
- sandboxId?: string;
24
- sandboxSnapshotId?: string;
25
- memoryRevision?: string;
26
- /** Explicit undefined is accepted by update patches to clear a pending intent. */
27
- controlIntent?: RunControlIntent | undefined;
28
- /** Machine-readable failure reason, set when the run reaches `failed`. Null for successes. */
29
- terminalReason?: string;
30
- /** Human-readable failure message, set alongside `terminalReason`. */
31
- terminalError?: string;
32
- /** User-visible delivery outcome, tracked independently from model execution status. */
33
- deliveryStatus?: RunDeliveryStatus;
34
- /** Latest delivery failure detail while pending or after terminal failure. */
35
- deliveryError?: string | undefined;
36
- /** Number of channel-send attempts recorded for the primary delivery. */
37
- deliveryAttempts?: number;
38
- }
39
- export type RunControlIntent = "suspend" | "cancel";
40
- export interface RuntimeSettingRecord {
41
- scope: string;
42
- key: string;
43
- value: JsonValue;
44
- updatedAt: string;
45
- }
46
- export interface RuntimeControlEvent {
47
- id: string;
48
- scope: string;
49
- type: string;
50
- timestamp: string;
51
- data: JsonObject;
52
- }
53
- export interface AgentStateRecord {
54
- agentScope: string;
55
- conversationId: string;
56
- key: string;
57
- value: JsonValue;
58
- /** Aggregate revision for this conversation state after this key was written. */
59
- revision: number;
60
- createdAt: string;
61
- updatedAt: string;
62
- }
63
- export interface AgentStateScope {
64
- agentScope: string;
65
- conversationId: string;
66
- }
67
- export interface AgentStateSnapshot extends AgentStateScope {
68
- values: JsonObject;
69
- revision: number;
70
- }
71
- export interface AgentStateMutation {
72
- revision: number;
73
- changed: boolean;
74
- record?: AgentStateRecord;
75
- }
76
- export interface RunEvent {
77
- id: string;
78
- runId: string;
79
- sequence: number;
80
- type: RunEventType;
81
- timestamp: string;
82
- data: JsonObject;
83
- }
84
- export interface ToolCallRecord {
85
- id: string;
86
- runId: string;
87
- toolName: string;
88
- status: "requested" | "waiting_for_approval" | "running" | "completed" | "failed" | "cancelled" | "timeout";
89
- input: unknown;
90
- result?: unknown;
91
- modelOutput?: unknown;
92
- error?: string;
93
- idempotencyKey: string;
94
- createdAt: string;
95
- updatedAt: string;
96
- }
97
- export interface CheckpointRecord {
98
- id: string;
99
- runId: string;
100
- name: string;
101
- createdAt: string;
102
- data: JsonObject;
103
- }
104
- /**
105
- * Checkpoint name holding a conversation's resumable harness transcript, and
106
- * the conversation-metadata key of the pointer that references it. Defined
107
- * here (not in conversation-transcript.ts) so store implementations can
108
- * exempt live-pointed transcripts from terminal retention without importing
109
- * runtime modules.
110
- */
111
- export declare const TRANSCRIPT_CHECKPOINT_NAME = "conversation.transcript";
112
- export declare const TRANSCRIPT_METADATA_KEY = "transcript";
113
- export type CheckpointRetentionReason = "active_compaction" | "terminal_ttl";
114
- export interface CheckpointRetentionOptions {
115
- /** Report candidate rows/bytes without deleting anything. */
116
- dryRun?: boolean;
117
- /** Restrict maintenance to one run. */
118
- runId?: string;
119
- /** Restrict active compaction to these checkpoint names. Terminal TTL still applies to all names. */
120
- activeNames?: string[] | undefined;
121
- /** Clock used for TTL cutoffs. Defaults to the adapter/runtime clock. */
122
- now?: Date | string | undefined;
123
- /** Active/waiting runs keep only this many latest checkpoints per (run_id, name). */
124
- maxActivePerRunName?: number | undefined;
125
- /** Completed/cancelled terminal runs lose checkpoints after this age. */
126
- terminalTtlMs?: number | undefined;
127
- /** Failed terminal runs lose checkpoints after this age. */
128
- failedRunTtlMs?: number | undefined;
129
- /** Scheduled terminal runs can use a shorter checkpoint TTL. */
130
- scheduledRunTtlMs?: number | undefined;
131
- }
132
- export interface CheckpointRetentionResult {
133
- dryRun: boolean;
134
- candidateRows: number;
135
- candidateBytes: number;
136
- prunedRows: number;
137
- prunedBytes: number;
138
- byReason: Record<CheckpointRetentionReason, {
139
- rows: number;
140
- bytes: number;
141
- }>;
142
- }
143
- export interface DeliveryObligation {
144
- id: string;
145
- runId: string;
146
- channel: string;
147
- payload: JsonObject;
148
- idempotencyKey: string;
149
- status: "pending" | "sending" | "sent" | "failed";
150
- attemptCount: number;
151
- maxAttempts: number;
152
- nextAttemptAt: string;
153
- leaseToken?: string;
154
- leaseExpiresAt?: string;
155
- lastError?: string;
156
- sentAt?: string;
157
- failedAt?: string;
158
- createdAt: string;
159
- updatedAt: string;
160
- }
161
- export interface ConversationRecord {
162
- id: string;
163
- /** Stable logical agent identity. Unlike agentRevision, this survives deploys. */
164
- agentScope?: string;
165
- agentRevision: string;
166
- channel: string;
167
- subject?: string;
168
- title?: string;
169
- archivedAt?: string;
170
- metadata: JsonObject;
171
- createdAt: string;
172
- updatedAt: string;
173
- }
174
- export interface ConversationCursor {
175
- updatedAt: string;
176
- id: string;
177
- }
178
- export interface MessageCursor {
179
- createdAt: string;
180
- id: string;
181
- }
182
- export interface MessageRecord {
183
- id: string;
184
- conversationId: string;
185
- runId?: string;
186
- role: "user" | "assistant" | "tool" | "system";
187
- content: JsonObject;
188
- createdAt: string;
189
- }
190
- /** Provider-neutral address for an externally observed conversation message. */
191
- export interface ExternalMessageSource extends JsonObject {
192
- provider: string;
193
- workspaceId: string;
194
- channelId: string;
195
- threadId?: string;
196
- messageId?: string;
197
- authorId?: string;
198
- authorDisplayName?: string;
199
- visibility?: "public" | "private";
200
- permalink?: string;
201
- observedAt?: string;
202
- editedAt?: string;
203
- deletedAt?: string;
204
- }
205
- export interface MessageSearchInput {
206
- agentScope: string;
207
- query?: string;
208
- channel?: string;
209
- conversationId?: string;
210
- subject?: string;
211
- source?: Pick<ExternalMessageSource, "provider" | "workspaceId" | "channelId"> & {
212
- threadId?: string;
213
- };
214
- excludeConversationId?: string;
215
- limit?: number;
216
- }
217
- export interface MessageSearchResult {
218
- message: MessageRecord;
219
- conversationMetadata: JsonObject;
220
- score: number;
221
- }
222
- export type ConversationTurnStatus = "pending" | "running" | "blocked" | "coalesced" | "completed" | "failed" | "cancelled";
223
- /**
224
- * Durable ingress mailbox row. A conversation may have at most one
225
- * `running`/`blocked` row; later turns remain `pending` in provider order.
226
- */
227
- export interface ConversationTurnRecord {
228
- id: string;
229
- agentScope: string;
230
- conversationId: string;
231
- channel: string;
232
- eventId: string;
233
- payload: JsonObject;
234
- idempotencyScope: string;
235
- idempotencyKey: string;
236
- status: ConversationTurnStatus;
237
- runId?: string;
238
- attemptCount: number;
239
- maxAttempts: number;
240
- nextAttemptAt: string;
241
- leaseToken?: string;
242
- leaseExpiresAt?: string;
243
- lastError?: string;
244
- createdAt: string;
245
- updatedAt: string;
246
- }
247
- export interface ConversationTurnMergeResult {
248
- turn: ConversationTurnRecord;
249
- merged: ConversationTurnRecord[];
250
- }
251
- export interface ScheduleRecord {
252
- id: string;
253
- name: string;
254
- cron: string;
255
- timezone?: string;
256
- metadata: JsonObject;
257
- createdAt: string;
258
- updatedAt: string;
259
- }
260
- export interface ScheduleRunRecord {
261
- id: string;
262
- scheduleId: string;
263
- runId?: string;
264
- status: string;
265
- runAt: string;
266
- idempotencyKey: string;
267
- createdAt: string;
268
- updatedAt: string;
269
- }
270
- export interface FileIndexRecord {
271
- id: string;
272
- runId?: string;
273
- /** Durable workspace that owns this file across run and sandbox lifetimes. */
274
- workspaceId?: string;
275
- path: string;
276
- kind: "memory" | "artifact" | "file";
277
- blobKey: string;
278
- sha256: string;
279
- sizeBytes: number;
280
- metadata: JsonObject;
281
- createdAt: string;
282
- }
283
- export declare const DEFAULT_WORKSPACE_FILE_INDEX_LIMIT = 50;
284
- export declare const MAX_WORKSPACE_FILE_INDEX_LIMIT = 200;
285
- export type WorkspaceScopeKind = "explicit" | "project" | "conversation" | "schedule" | "run";
286
- export interface WorkspaceScope {
287
- agentScope: string;
288
- kind: WorkspaceScopeKind;
289
- scopeId: string;
290
- tenantId?: string;
291
- }
292
- export interface Workspace {
293
- id: string;
294
- scopeKey: string;
295
- scope: WorkspaceScope;
296
- headVersionId?: string;
297
- sourceWorkspaceId?: string;
298
- sourceVersionId?: string;
299
- name?: string;
300
- metadata: JsonObject;
301
- createdAt: string;
302
- updatedAt: string;
303
- }
304
- export interface WorkspaceManifestEntry {
305
- path: string;
306
- blobKey: string;
307
- sha256: string;
308
- sizeBytes: number;
309
- contentType: string;
310
- mode: number;
311
- }
312
- export interface WorkspaceManifest {
313
- format: 1;
314
- workspaceId: string;
315
- entries: WorkspaceManifestEntry[];
316
- fileCount: number;
317
- totalBytes: number;
318
- createdAt: string;
319
- }
320
- export type WorkspaceVersionReason = "sync" | "restore" | "fork" | "repair";
321
- export interface WorkspaceVersion {
322
- id: string;
323
- workspaceId: string;
324
- parentVersionId?: string;
325
- sourceVersionId?: string;
326
- sourceCheckpointId?: string;
327
- manifestBlobKey: string;
328
- manifestSha256: string;
329
- fileCount: number;
330
- totalBytes: number;
331
- reason: WorkspaceVersionReason;
332
- runId?: string;
333
- idempotencyKey: string;
334
- metadata: JsonObject;
335
- createdAt: string;
336
- }
337
- export interface WorkspaceCheckpoint {
338
- id: string;
339
- workspaceId: string;
340
- name: string;
341
- versionId: string;
342
- createdAt: string;
343
- updatedAt: string;
344
- }
345
- export interface WorkspaceSearchChunk {
346
- id: string;
347
- workspaceId: string;
348
- versionId: string;
349
- path: string;
350
- startLine: number;
351
- endLine: number;
352
- content: string;
353
- contentSha256: string;
354
- contentType: string;
355
- metadata: JsonObject;
356
- createdAt: string;
357
- embedding?: number[];
358
- embeddingModel?: string;
359
- }
360
- export interface WorkspaceSearchIndex {
361
- workspaceId: string;
362
- versionId: string;
363
- chunkCount: number;
364
- indexedAt: string;
365
- embeddingModel?: string;
366
- }
367
- export interface WorkspaceSearchResult {
368
- path: string;
369
- versionId: string;
370
- startLine: number;
371
- endLine: number;
372
- snippet: string;
373
- score: number;
374
- rankingSource: "full_text" | "semantic" | "hybrid" | "direct";
375
- }
376
- export interface WorkspaceVersionDeleteResult {
377
- workspaceId: string;
378
- requestedVersionIds: string[];
379
- deletedVersionIds: string[];
380
- }
381
- export interface WorkspaceCommitInput {
382
- workspaceId: string;
383
- /** `null` means the caller expects an empty workspace with no head. */
384
- expectedHeadVersionId: string | null;
385
- manifestBlobKey: string;
386
- manifestSha256: string;
387
- fileCount: number;
388
- totalBytes: number;
389
- reason: WorkspaceVersionReason;
390
- runId?: string;
391
- sourceVersionId?: string;
392
- sourceCheckpointId?: string;
393
- idempotencyKey: string;
394
- metadata?: JsonObject;
395
- }
396
- export interface WorkspaceCommitResult {
397
- workspace: Workspace;
398
- version: WorkspaceVersion;
399
- created: boolean;
400
- }
401
- export declare class WorkspaceConflictError extends Error {
402
- readonly workspaceId: string;
403
- readonly expectedHeadVersionId: string | null;
404
- readonly actualHeadVersionId: string | null;
405
- readonly code = "workspace_head_conflict";
406
- constructor(workspaceId: string, expectedHeadVersionId: string | null, actualHeadVersionId: string | null);
407
- }
408
- export type UsageBillingMode = "api_key" | "byok" | "subscription" | "unknown";
409
- export type UsageTokenSource = "provider_reported" | "provider_reconciled" | "unavailable";
410
- export type UsageCostSource = "provider_reported" | "provider_reconciled" | "unavailable";
411
- export type UsageRecordKind = "transaction" | "control_total" | "adjustment";
412
- export interface UsageRecordInput {
413
- idempotencyKey?: string;
414
- runId?: string;
415
- parentRunId?: string;
416
- agentId?: string;
417
- agentRevision?: string;
418
- subagent?: string;
419
- turnId?: string;
420
- iteration?: number;
421
- provider?: string;
422
- providerRequestId?: string;
423
- model?: string;
424
- responseModel?: string;
425
- billingMode?: UsageBillingMode;
426
- recordKind?: UsageRecordKind;
427
- /** Total provider input including cached input. */
428
- inputTokens?: number;
429
- outputTokens?: number;
430
- /** Subset of inputTokens served from cache. */
431
- cachedTokens?: number;
432
- /** Subset of inputTokens written to an explicit provider cache. */
433
- cacheWriteTokens?: number;
434
- /** Subset of outputTokens consumed by reasoning. */
435
- reasoningTokens?: number;
436
- /** Actual provider-reported/reconciled USD. Never use for estimates. */
437
- costUsd?: number | null;
438
- upstreamCostUsd?: number | null;
439
- currency?: string;
440
- tokenSource?: UsageTokenSource;
441
- costSource?: UsageCostSource;
442
- providerReceipt?: JsonObject;
443
- receiptSha256?: string;
444
- metadata?: JsonObject;
445
- occurredAt?: string;
446
- }
447
- export interface UsageRecord {
448
- id: string;
449
- idempotencyKey: string;
450
- runId?: string;
451
- parentRunId?: string;
452
- agentId?: string;
453
- agentRevision?: string;
454
- subagent?: string;
455
- turnId?: string;
456
- iteration?: number;
457
- provider?: string;
458
- providerRequestId?: string;
459
- model?: string;
460
- responseModel?: string;
461
- billingMode: UsageBillingMode;
462
- recordKind: UsageRecordKind;
463
- inputTokens: number;
464
- outputTokens: number;
465
- cachedTokens: number;
466
- cacheWriteTokens: number;
467
- reasoningTokens: number;
468
- /** Exact integer micro-dollars serialized as a decimal string. */
469
- costMicros: string | null;
470
- upstreamCostMicros: string | null;
471
- /** Convenience projections; exact accounting uses the micro-dollar fields. */
472
- costUsd: number | null;
473
- upstreamCostUsd: number | null;
474
- currency: string;
475
- tokenSource: UsageTokenSource;
476
- costSource: UsageCostSource;
477
- providerReceipt: JsonObject;
478
- receiptSha256?: string;
479
- metadata: JsonObject;
480
- occurredAt: string;
481
- createdAt: string;
482
- }
483
- export type UsageGroupBy = "agentId" | "agentRevision" | "runId" | "parentRunId" | "subagent" | "provider" | "model" | "responseModel" | "billingMode" | "currency" | "tokenSource" | "costSource" | "recordKind" | "day" | "month";
484
- export interface UsageQuery {
485
- runId?: string;
486
- parentRunId?: string;
487
- agentId?: string;
488
- agentRevision?: string;
489
- subagent?: string;
490
- provider?: string;
491
- model?: string;
492
- responseModel?: string;
493
- billingMode?: UsageBillingMode;
494
- currency?: string;
495
- tokenSource?: UsageTokenSource;
496
- costSource?: UsageCostSource;
497
- recordKind?: UsageRecordKind;
498
- from?: string;
499
- to?: string;
500
- before?: {
501
- occurredAt: string;
502
- id: string;
503
- };
504
- limit?: number;
505
- }
506
- export interface UsageSummaryQuery extends Omit<UsageQuery, "before" | "limit"> {
507
- groupBy?: UsageGroupBy[];
508
- }
509
- export interface UsageAggregate {
510
- dimensions: JsonObject;
511
- recordCount: string;
512
- inputTokens: string;
513
- outputTokens: string;
514
- cachedTokens: string;
515
- cacheWriteTokens: string;
516
- reasoningTokens: string;
517
- actualCostMicros: string;
518
- upstreamCostMicros: string;
519
- currency: string;
520
- unavailableCostRecords: string;
521
- unreconciledTokenRecords: string;
522
- /** Records without provider-reported/reconciled cash. */
523
- unreconciledRecords: string;
524
- }
525
- export interface SandboxSnapshotRecord {
526
- id: string;
527
- runId: string;
528
- sandboxId: string;
529
- snapshotId: string;
530
- metadata: JsonObject;
531
- createdAt: string;
532
- }
533
- export interface SandboxSyncJobRecord {
534
- id: string;
535
- runId: string;
536
- sandboxId: string;
537
- status: "pending" | "running" | "completed" | "failed" | "blocked_requires_operator";
538
- idempotencyKey: string;
539
- reason: string;
540
- manifest: JsonObject;
541
- error?: string;
542
- attemptCount: number;
543
- maxAttempts: number;
544
- nextAttemptAt: string;
545
- leaseToken?: string;
546
- leaseExpiresAt?: string;
547
- completedAt?: string;
548
- failedAt?: string;
549
- lastError?: string;
550
- metadata: JsonObject;
551
- createdAt: string;
552
- updatedAt: string;
553
- }
554
- export interface SandboxSessionRecord {
555
- id: string;
556
- sessionKey: string;
557
- provider: string;
558
- sandboxId: string;
559
- runId?: string;
560
- state: "live" | "warm" | "dirty" | "clean" | "blocked_requires_operator";
561
- dirty: boolean;
562
- lastSeenAt: string;
563
- lastSyncedAt?: string;
564
- snapshotId?: string;
565
- syncJobId?: string;
566
- manifest: JsonObject;
567
- createdAt: string;
568
- updatedAt: string;
569
- }
570
- export type SandboxSessionInput = Omit<SandboxSessionRecord, "id" | "createdAt" | "updatedAt"> & {
571
- id?: string;
572
- createdAt?: string;
573
- updatedAt?: string;
574
- };
575
- export type SandboxSessionPatch = {
576
- [K in keyof Omit<SandboxSessionRecord, "id" | "createdAt" | "sessionKey">]?: Omit<SandboxSessionRecord, "id" | "createdAt" | "sessionKey">[K] | undefined;
577
- };
578
- export interface SandboxSessionRotationInput {
579
- sessionKey: string;
580
- expectedSandboxId: string;
581
- quarantineKey: string;
582
- replacementProviderSessionKey: string;
583
- runId: string;
584
- reason: string;
585
- expectedWorkspaceId: string;
586
- replacementManifest: JsonObject;
587
- quarantineState: SandboxSessionRecord["state"];
588
- rotatedAt?: string;
589
- }
590
- export interface SandboxSessionRotationResult {
591
- rotated: boolean;
592
- replacement: SandboxSessionRecord;
593
- quarantined?: SandboxSessionRecord;
594
- }
595
- export type SandboxSyncJobInput = Omit<SandboxSyncJobRecord, "id" | "createdAt" | "updatedAt" | "attemptCount" | "maxAttempts" | "nextAttemptAt" | "metadata"> & {
596
- attemptCount?: number;
597
- maxAttempts?: number;
598
- nextAttemptAt?: string;
599
- metadata?: JsonObject;
600
- };
601
- export interface SandboxSyncLeaseOptions {
602
- now?: Date;
603
- limit?: number;
604
- leaseForMs?: number;
605
- }
606
- export interface SandboxSyncFailureInput {
607
- error: string;
608
- now?: Date;
609
- retryDelayMs?: number;
610
- }
611
- export interface SandboxSyncExecutionResult {
612
- jobId: string;
613
- status: "completed" | "retrying" | "failed";
614
- run?: RunRecord;
615
- error?: string;
616
- }
617
- export interface SandboxSyncDiagnostics {
618
- total: number;
619
- byStatus: Record<string, number>;
620
- due: number;
621
- leased: number;
622
- expiredLeases: number;
623
- failed: number;
624
- blockedRequiresOperator: number;
625
- }
626
- export interface SandboxSyncJobInspection {
627
- job: SandboxSyncJobRecord;
628
- due: boolean;
629
- leaseExpired: boolean;
630
- }
631
- export type SandboxSyncJobPatch = {
632
- [Key in keyof Omit<SandboxSyncJobRecord, "id" | "createdAt">]?: Omit<SandboxSyncJobRecord, "id" | "createdAt">[Key] | undefined;
633
- };
634
- export interface MemoryScope {
635
- agentScope: string;
636
- userId?: string;
637
- conversationId?: string;
638
- projectId?: string;
639
- }
640
- export interface MemoryDocument {
641
- scope: MemoryScope;
642
- path: string;
643
- body: string | {
644
- blobKey: string;
645
- };
646
- contentType: "text/markdown" | "application/json" | "text/plain";
647
- title?: string;
648
- summary?: string;
649
- tags: string[];
650
- confidence?: "low" | "medium" | "high";
651
- sourceRefs?: string[];
652
- tokenEstimate: number;
653
- sha256: string;
654
- revision: string;
655
- createdAt: string;
656
- updatedAt: string;
657
- }
658
- export interface MemorySearchResult {
659
- path: string;
660
- title?: string;
661
- summary?: string;
662
- snippet: string;
663
- revision: string;
664
- tags: string[];
665
- updatedAt: string;
666
- rankReason: string;
667
- }
668
- export interface MemoryEmbeddingProvider {
669
- model: string;
670
- dimensions?: number;
671
- maxInputTokens?: number;
672
- embed(input: {
673
- text: string;
674
- purpose: "query" | "document";
675
- model?: string;
676
- metadata?: JsonObject;
677
- }): Promise<{
678
- embedding: number[];
679
- model?: string;
680
- dimensions?: number;
681
- }> | {
682
- embedding: number[];
683
- model?: string;
684
- dimensions?: number;
685
- };
686
- }
687
- export interface MemoryEmbeddingRecord {
688
- id: string;
689
- scope: MemoryScope;
690
- path: string;
691
- model: string;
692
- dimensions: number;
693
- contentSha256: string;
694
- embedding: number[];
695
- stale: boolean;
696
- metadata: JsonObject;
697
- createdAt: string;
698
- updatedAt: string;
699
- }
700
- /**
701
- * Required facet: runs, events, tool calls, checkpoints, deliveries
702
- * (including the durable delivery queue), and idempotency reservations.
703
- */
704
- export interface RunStore {
705
- createRun(input: Omit<RunRecord, "id" | "createdAt" | "updatedAt">): Promise<RunRecord>;
706
- updateRun(id: string, patch: Partial<Omit<RunRecord, "id" | "createdAt">>): Promise<RunRecord>;
707
- /**
708
- * Heartbeat: bump `updatedAt` only, and only while the run is still
709
- * `created`/`running`. Unlike `updateRun`, this must never write any other
710
- * column, so a heartbeat racing a status transition cannot clobber it.
711
- */
712
- touchRun?(id: string): Promise<void>;
713
- /** Atomically request suspension or terminal cancellation, with cancel precedence across replicas. */
714
- requestRunControl?(id: string, intent: RunControlIntent): Promise<RunRecord>;
715
- /** Atomically apply the latest pending control intent and clear it. */
716
- settleRunControl?(id: string): Promise<RunRecord>;
717
- getRun(id: string): Promise<RunRecord | undefined>;
718
- listRuns(): Promise<RunRecord[]>;
719
- appendEvent(runId: string, type: RunEventType, data?: JsonObject): Promise<RunEvent>;
720
- listEvents(runId: string): Promise<RunEvent[]>;
721
- createToolCall(input: Omit<ToolCallRecord, "id" | "createdAt" | "updatedAt">): Promise<ToolCallRecord>;
722
- updateToolCall(id: string, patch: Partial<Omit<ToolCallRecord, "id" | "createdAt">>): Promise<ToolCallRecord>;
723
- listToolCalls(runId: string): Promise<ToolCallRecord[]>;
724
- createCheckpoint(input: Omit<CheckpointRecord, "id" | "createdAt">): Promise<CheckpointRecord>;
725
- listCheckpoints(runId: string): Promise<CheckpointRecord[]>;
726
- compactCheckpoints?(options?: CheckpointRetentionOptions): Promise<CheckpointRetentionResult>;
727
- createDelivery(input: DeliveryObligationInput): Promise<DeliveryObligation>;
728
- updateDelivery(id: string, patch: DeliveryObligationPatch): Promise<DeliveryObligation>;
729
- listDeliveries(runId: string): Promise<DeliveryObligation[]>;
730
- leaseDueDeliveries?(options?: DeliveryLeaseOptions): Promise<DeliveryObligation[]>;
731
- completeDeliverySend?(id: string, leaseToken: string, patch?: {
732
- payload?: JsonObject;
733
- }): Promise<DeliveryObligation>;
734
- failDeliverySend?(id: string, leaseToken: string, failure: DeliveryFailureInput): Promise<DeliveryObligation>;
735
- recoverExpiredDeliveries?(now?: Date): Promise<DeliveryObligation[]>;
736
- listRunsByStatus?(statuses: RunStatus[], options?: {
737
- updatedBefore?: string;
738
- limit?: number;
739
- }): Promise<RunRecord[]>;
740
- reserveIdempotencyKey(scope: string, key: string, ownerId?: string): Promise<boolean>;
741
- /**
742
- * Un-burn a reservation whose guarded work failed before becoming durable,
743
- * so the provider's retry replays as a fresh event instead of a silent drop.
744
- */
745
- releaseIdempotencyKey?(scope: string, key: string): Promise<void>;
746
- /** Release owned connections/resources; called once during graceful shutdown. */
747
- close?(): Promise<void> | void;
748
- }
749
- /** Optional facet: conversations and message history. */
750
- export interface ConversationStore {
751
- upsertConversation(input: {
752
- id: string;
753
- agentScope?: string;
754
- agentRevision: string;
755
- channel: string;
756
- subject?: string;
757
- title?: string;
758
- metadata?: JsonObject;
759
- }): Promise<ConversationRecord>;
760
- getConversation(id: string): Promise<ConversationRecord | undefined>;
761
- listConversations?(input: {
762
- agentScope: string;
763
- channel?: string;
764
- subject?: string;
765
- archived?: boolean;
766
- before?: ConversationCursor;
767
- limit?: number;
768
- }): Promise<ConversationRecord[]>;
769
- updateConversation?(id: string, patch: {
770
- title?: string | null;
771
- archivedAt?: string | null;
772
- metadata?: JsonObject;
773
- }): Promise<ConversationRecord | undefined>;
774
- listRecentConversationsBySubject?(input: {
775
- agentScope: string;
776
- channel: string;
777
- subject: string;
778
- since?: string;
779
- limit?: number;
780
- excludeId?: string;
781
- }): Promise<ConversationRecord[]>;
782
- appendMessage(input: {
783
- conversationId: string;
784
- runId?: string;
785
- role: MessageRecord["role"];
786
- content: JsonObject;
787
- }): Promise<MessageRecord>;
788
- /** Idempotently persist an externally identified message, including edits and tombstones. */
789
- upsertMessage(input: {
790
- id: string;
791
- conversationId: string;
792
- runId?: string;
793
- role: MessageRecord["role"];
794
- content: JsonObject;
795
- createdAt?: string;
796
- }): Promise<MessageRecord>;
797
- listRecentMessages(conversationId: string, limit?: number): Promise<MessageRecord[]>;
798
- listMessages?(input: {
799
- conversationId: string;
800
- before?: MessageCursor;
801
- limit?: number;
802
- }): Promise<MessageRecord[]>;
803
- /** Search attributed history within the caller's durable agent scope. */
804
- searchMessages(input: MessageSearchInput): Promise<MessageSearchResult[]>;
805
- }
806
- /** Optional facet: durable, per-conversation FIFO ingress mailbox. */
807
- export interface ConversationTurnStore {
808
- enqueueConversationTurn(input: {
809
- agentScope: string;
810
- conversationId: string;
811
- channel: string;
812
- eventId: string;
813
- payload: JsonObject;
814
- idempotencyScope: string;
815
- idempotencyKey: string;
816
- maxAttempts?: number;
817
- /** Initial eligibility time, used by bounded channel composition windows. */
818
- notBeforeAt?: string;
819
- }): Promise<{
820
- turn: ConversationTurnRecord;
821
- inserted: boolean;
822
- }>;
823
- leaseNextConversationTurn(options: {
824
- agentScope: string;
825
- leaseForMs: number;
826
- now?: Date;
827
- }): Promise<ConversationTurnRecord | undefined>;
828
- /** Atomically fold eligible pending composition siblings into a leased head turn. */
829
- mergePendingConversationTurns(id: string, leaseToken: string): Promise<ConversationTurnMergeResult | undefined>;
830
- attachConversationTurnRun(id: string, leaseToken: string, runId: string): Promise<ConversationTurnRecord>;
831
- renewConversationTurnLease(id: string, leaseToken: string, leaseForMs: number, now?: Date): Promise<ConversationTurnRecord>;
832
- settleConversationTurn(id: string, leaseToken: string, status: "blocked" | "completed" | "failed" | "cancelled", options?: {
833
- runId?: string;
834
- error?: string;
835
- }): Promise<ConversationTurnRecord>;
836
- settleConversationTurnByRunId(runId: string, status: "blocked" | "completed" | "failed" | "cancelled", options?: {
837
- error?: string;
838
- expiredBefore?: string;
839
- }): Promise<ConversationTurnRecord | undefined>;
840
- retryConversationTurn(id: string, leaseToken: string, error: string): Promise<ConversationTurnRecord>;
841
- recoverExpiredConversationTurns(now?: Date): Promise<ConversationTurnRecord[]>;
842
- listConversationTurns(options?: {
843
- agentScope?: string;
844
- conversationId?: string;
845
- status?: ConversationTurnStatus;
846
- }): Promise<ConversationTurnRecord[]>;
847
- }
848
- /** Optional facet: schedule registrations and dedupe of schedule runs. */
849
- export interface ScheduleStateStore {
850
- registerSchedule(input: {
851
- id: string;
852
- name: string;
853
- cron: string;
854
- timezone?: string;
855
- metadata?: JsonObject;
856
- }): Promise<ScheduleRecord>;
857
- recordScheduleRun(input: {
858
- scheduleId: string;
859
- runId?: string;
860
- runAt: string;
861
- idempotencyKey: string;
862
- status?: string;
863
- }): Promise<ScheduleRunRecord>;
864
- }
865
- /** Optional facet: index of memory/artifact/file blobs written by runs. */
866
- export interface FileIndexStore {
867
- recordFileIndex(input: {
868
- runId?: string;
869
- workspaceId?: string;
870
- path: string;
871
- kind: FileIndexRecord["kind"];
872
- blobKey: string;
873
- sha256: string;
874
- sizeBytes: number;
875
- metadata?: JsonObject;
876
- }): Promise<FileIndexRecord>;
877
- listFileIndexes?(runId?: string): Promise<FileIndexRecord[]>;
878
- listWorkspaceFileIndexes(workspaceId: string, input?: {
879
- id?: string;
880
- query?: string;
881
- limit?: number;
882
- }): Promise<FileIndexRecord[]>;
883
- }
884
- /** Durable, provider-neutral workspace identities and immutable version metadata. */
885
- export interface WorkspaceStore {
886
- /** Reports whether semantic workspace vectors can be persisted and queried. */
887
- supportsWorkspaceEmbeddings?(): boolean;
888
- resolveWorkspace(input: {
889
- scopeKey: string;
890
- scope: WorkspaceScope;
891
- id?: string;
892
- name?: string;
893
- metadata?: JsonObject;
894
- }): Promise<Workspace>;
895
- getWorkspace(id: string): Promise<Workspace | undefined>;
896
- listWorkspaces(input?: {
897
- agentScope?: string;
898
- }): Promise<Workspace[]>;
899
- getWorkspaceVersion(id: string): Promise<WorkspaceVersion | undefined>;
900
- listWorkspaceVersions(workspaceId: string, input?: {
901
- limit?: number;
902
- }): Promise<WorkspaceVersion[]>;
903
- commitWorkspaceVersion(input: WorkspaceCommitInput): Promise<WorkspaceCommitResult>;
904
- createWorkspaceCheckpoint(input: {
905
- workspaceId: string;
906
- name: string;
907
- versionId: string;
908
- replace?: boolean;
909
- }): Promise<WorkspaceCheckpoint>;
910
- getWorkspaceCheckpoint(workspaceId: string, name: string): Promise<WorkspaceCheckpoint | undefined>;
911
- listWorkspaceCheckpoints(workspaceId: string): Promise<WorkspaceCheckpoint[]>;
912
- deleteWorkspaceCheckpoint(workspaceId: string, name: string): Promise<boolean>;
913
- forkWorkspace(input: {
914
- sourceWorkspaceId: string;
915
- sourceVersionId: string;
916
- scopeKey: string;
917
- scope: WorkspaceScope;
918
- id?: string;
919
- name?: string;
920
- metadata?: JsonObject;
921
- }): Promise<Workspace>;
922
- replaceWorkspaceSearchChunks(input: {
923
- workspaceId: string;
924
- versionId: string;
925
- chunks: WorkspaceSearchChunk[];
926
- embeddingModel?: string;
927
- }): Promise<WorkspaceSearchIndex>;
928
- getWorkspaceSearchIndex(workspaceId: string): Promise<WorkspaceSearchIndex | undefined>;
929
- listWorkspaceSearchChunks(workspaceId: string, versionId: string): Promise<WorkspaceSearchChunk[]>;
930
- searchWorkspaceChunks(input: {
931
- workspaceId: string;
932
- versionId: string;
933
- query: string;
934
- limit?: number;
935
- }): Promise<WorkspaceSearchResult[]>;
936
- searchWorkspaceEmbeddings(input: {
937
- workspaceId: string;
938
- versionId: string;
939
- embedding: number[];
940
- model: string;
941
- limit?: number;
942
- }): Promise<WorkspaceSearchResult[]>;
943
- deleteWorkspaceVersions(workspaceId: string, versionIds: string[]): Promise<WorkspaceVersionDeleteResult>;
944
- repairWorkspaceHead(input: {
945
- workspaceId: string;
946
- expectedHeadVersionId: string | null;
947
- targetVersionId: string;
948
- }): Promise<Workspace>;
949
- }
950
- /** Optional facet: source-backed model usage observability. */
951
- export interface UsageStore {
952
- recordUsage(input: UsageRecordInput): Promise<UsageRecord>;
953
- listUsage(runId?: string): Promise<UsageRecord[]>;
954
- queryUsage?(query: UsageQuery): Promise<UsageRecord[]>;
955
- summarizeUsage?(query: UsageSummaryQuery): Promise<UsageAggregate[]>;
956
- }
957
- /** Optional facet: sandbox sessions, snapshots, and the sandbox-sync queue. */
958
- export interface SandboxSessionStore {
959
- recordSandboxSnapshot(input: {
960
- runId: string;
961
- sandboxId: string;
962
- snapshotId: string;
963
- metadata?: JsonObject;
964
- }): Promise<SandboxSnapshotRecord>;
965
- upsertSandboxSession(input: SandboxSessionInput): Promise<SandboxSessionRecord>;
966
- getSandboxSession(sessionKey: string): Promise<SandboxSessionRecord | undefined>;
967
- listSandboxSessions?(options?: {
968
- dirty?: boolean;
969
- }): Promise<SandboxSessionRecord[]>;
970
- updateSandboxSession(sessionKey: string, patch: SandboxSessionPatch): Promise<SandboxSessionRecord>;
971
- rotateSandboxSession(input: SandboxSessionRotationInput): Promise<SandboxSessionRotationResult>;
972
- createSandboxSyncJob(input: SandboxSyncJobInput): Promise<SandboxSyncJobRecord>;
973
- updateSandboxSyncJob(id: string, patch: SandboxSyncJobPatch): Promise<SandboxSyncJobRecord>;
974
- listSandboxSyncJobs(runId?: string): Promise<SandboxSyncJobRecord[]>;
975
- enqueueSandboxSyncJob(input: SandboxSyncJobInput): Promise<SandboxSyncJobRecord>;
976
- leaseSandboxSyncJobs(options?: SandboxSyncLeaseOptions): Promise<SandboxSyncJobRecord[]>;
977
- completeSandboxSyncJob(id: string, leaseToken: string, patch?: {
978
- manifest?: JsonObject;
979
- metadata?: JsonObject;
980
- }): Promise<SandboxSyncJobRecord>;
981
- failSandboxSyncJob(id: string, leaseToken: string, failure: SandboxSyncFailureInput): Promise<SandboxSyncJobRecord>;
982
- recoverExpiredSandboxSyncJobs(now?: Date): Promise<SandboxSyncJobRecord[]>;
983
- }
984
- /** Optional facet: durable memory documents and embeddings. */
985
- export interface MemoryStateStore {
986
- /**
987
- * Reports whether the durable store can persist and query vector
988
- * embeddings. Omitted means supported for compatibility with existing
989
- * adapters; stores with an optional vector backend must return false until
990
- * that backend is configured.
991
- */
992
- supportsMemoryEmbeddings?(): boolean;
993
- listMemoryDocuments(scope: MemoryScope, input?: MemoryListInput): Promise<MemoryDocument[]>;
994
- /**
995
- * Optional operator facet: list this agent's memory documents across every
996
- * scope (user, conversation, project), bypassing recall scoping. Powers the
997
- * admin memory HTTP surface; runtime recall always goes through the scoped
998
- * listMemoryDocuments.
999
- */
1000
- listAllMemoryDocuments?(agentScope: string, input?: MemoryListInput): Promise<MemoryDocument[]>;
1001
- searchMemoryDocuments?(scope: MemoryScope, input: MemorySearchInput): Promise<MemorySearchResult[]>;
1002
- getMemoryDocument(scope: MemoryScope, path: string): Promise<MemoryDocument | undefined>;
1003
- upsertMemoryDocument(document: MemoryDocument): Promise<MemoryDocument>;
1004
- deleteMemoryDocument(scope: MemoryScope, path: string): Promise<void>;
1005
- listMemoryDocumentsNeedingEmbeddings(scope: MemoryScope, options: {
1006
- model: string;
1007
- limit?: number;
1008
- }): Promise<MemoryDocument[]>;
1009
- upsertMemoryEmbedding(input: Omit<MemoryEmbeddingRecord, "id" | "createdAt" | "updatedAt">): Promise<MemoryEmbeddingRecord>;
1010
- searchMemoryEmbeddings(scope: MemoryScope, input: MemorySearchInput, embedding: number[], options: {
1011
- model: string;
1012
- limit?: number;
1013
- }): Promise<MemorySearchResult[]>;
1014
- markMemoryEmbeddingsStale(scope: MemoryScope, path: string, currentSha256: string): Promise<void>;
1015
- }
1016
- /** Optional durable runtime settings and non-run control-plane audit log. */
1017
- export interface RuntimeSettingsStore {
1018
- getSetting(scope: string, key: string): Promise<RuntimeSettingRecord | undefined>;
1019
- setSetting(scope: string, key: string, value: RuntimeSettingRecord["value"]): Promise<RuntimeSettingRecord>;
1020
- appendRuntimeControlEvent(scope: string, type: string, data?: JsonObject): Promise<RuntimeControlEvent>;
1021
- listRuntimeControlEvents(scope: string): Promise<RuntimeControlEvent[]>;
1022
- }
1023
- /** Small, conversation-scoped durable control-plane state used by agent hooks. */
1024
- export interface AgentStateStore {
1025
- readAgentState(scope: AgentStateScope): Promise<AgentStateSnapshot>;
1026
- getAgentState(scope: AgentStateScope, key: string): Promise<AgentStateRecord | undefined>;
1027
- setAgentState(scope: AgentStateScope, key: string, value: JsonValue, options?: {
1028
- expectedRevision?: number;
1029
- }): Promise<AgentStateMutation>;
1030
- updateAgentState(scope: AgentStateScope, key: string, update: (current: JsonValue | undefined) => JsonValue, options?: {
1031
- expectedRevision?: number;
1032
- }): Promise<AgentStateMutation>;
1033
- deleteAgentState(scope: AgentStateScope, key: string, options?: {
1034
- expectedRevision?: number;
1035
- }): Promise<AgentStateMutation>;
1036
- }
1037
- /**
1038
- * The historical monolithic state contract. Runtime settings remain outside
1039
- * this public intersection so existing third-party adapters keep compiling;
1040
- * the runtime adds an in-memory settings fallback during normalization.
1041
- */
1042
- export type StateAdapter = RunStore & ConversationStore & ScheduleStateStore & FileIndexStore & WorkspaceStore & UsageStore & SandboxSessionStore & MemoryStateStore & AgentStateStore;
1043
- /** Internal normalized state contract after optional facets are filled. */
1044
- export type ResolvedStateAdapter = StateAdapter & RuntimeSettingsStore & ConversationTurnStore;
1045
- /**
1046
- * Facet-shaped state configuration for `RuntimeOptions.state`. Only `runs`
1047
- * is required; missing optional facets fall back to non-durable in-memory
1048
- * implementations (the runtime logs one `state.degraded` warning at boot).
1049
- */
1050
- export interface StateStores {
1051
- runs: RunStore;
1052
- conversations?: ConversationStore;
1053
- conversationTurns?: ConversationTurnStore;
1054
- schedules?: ScheduleStateStore;
1055
- files?: FileIndexStore;
1056
- workspaces?: WorkspaceStore;
1057
- usage?: UsageStore;
1058
- sandboxSessions?: SandboxSessionStore;
1059
- memory?: MemoryStateStore;
1060
- settings?: RuntimeSettingsStore;
1061
- agentState?: AgentStateStore;
1062
- }
1063
- export declare function isRunStore(value: unknown): value is RunStore;
1064
- export declare function isConversationStore(value: unknown): value is ConversationStore;
1065
- export declare function isScheduleStateStore(value: unknown): value is ScheduleStateStore;
1066
- export declare function isFileIndexStore(value: unknown): value is FileIndexStore;
1067
- export declare function isWorkspaceStore(value: unknown): value is WorkspaceStore;
1068
- export declare function isUsageStore(value: unknown): value is UsageStore;
1069
- export declare function isSandboxSessionStore(value: unknown): value is SandboxSessionStore;
1070
- export declare function isMemoryStateStore(value: unknown): value is MemoryStateStore;
1071
- export declare function isRuntimeSettingsStore(value: unknown): value is RuntimeSettingsStore;
1072
- export declare function isAgentStateStore(value: unknown): value is AgentStateStore;
1073
- export declare function isConversationTurnStore(value: unknown): value is ConversationTurnStore;
1074
- /** Detects a monolithic StateAdapter (vs a facet-shaped `StateStores`). */
1075
- export declare function isStateAdapter(value: unknown): value is StateAdapter;
1
+ /** Canonical public barrel for durable runtime state contracts. */
2
+ export * from "./state/run-state.js";
3
+ export * from "./state/conversation-state.js";
4
+ export * from "./state/workspace-state.js";
5
+ export * from "./state/usage-state.js";
6
+ export * from "./state/sandbox-memory-state.js";
7
+ export * from "./state/store-contracts.js";
1076
8
  //# sourceMappingURL=state.d.ts.map