@tangle-network/agent-app 0.43.56 → 0.43.58

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 (352) hide show
  1. package/dist/DesignCanvas-UNL34LS2.js +12 -0
  2. package/dist/DesignCanvasEditor-FJIVYOA2.js +13 -0
  3. package/dist/IntakeInterview-3ZIQMZS6.js +8 -0
  4. package/dist/InvitationsPanel-CJ7DR4F7.js +8 -0
  5. package/dist/MembersPanel-BB4OD2KB.js +8 -0
  6. package/dist/{TimelineEditor-I35SJJAJ.js → TimelineEditor-2ECKSU6P.js} +3 -3
  7. package/dist/{VaultPane-DrQ_tH6c.d.ts → VaultPane-BDP6SB_K.d.ts} +1 -0
  8. package/dist/{access-BZ81Btt5.d.ts → access-490O6aOU.d.ts} +16 -1
  9. package/dist/app-auth/index.d.ts +6 -1
  10. package/dist/app-auth/index.js +3 -3
  11. package/dist/app-auth/index.js.map +1 -1
  12. package/dist/{apply-Gk4raT2j.d.ts → apply-6wlMOLf8.d.ts} +30 -1
  13. package/dist/assets/index.d.ts +41 -0
  14. package/dist/assets/index.js +1 -1
  15. package/dist/assistant/index.d.ts +26 -6
  16. package/dist/assistant/index.js +9 -9
  17. package/dist/assistant/index.js.map +1 -1
  18. package/dist/{attachment-validation-D0csjCvz.d.ts → attachment-validation-tPRp-PP1.d.ts} +7 -1
  19. package/dist/{auth-DuptSkWh.d.ts → auth-_FU8w01b.d.ts} +4 -1
  20. package/dist/billing/index.d.ts +8 -0
  21. package/dist/billing/index.js +1 -1
  22. package/dist/brand/index.d.ts +2 -0
  23. package/dist/brand/index.js.map +1 -1
  24. package/dist/brand-extraction/index.d.ts +3 -0
  25. package/dist/brand-extraction/index.js.map +1 -1
  26. package/dist/catalog/index.d.ts +2 -0
  27. package/dist/catalog/index.js +1 -1
  28. package/dist/chat-routes/index.d.ts +41 -10
  29. package/dist/chat-routes/index.js +15 -15
  30. package/dist/chat-routes/index.js.map +1 -1
  31. package/dist/chat-store/index.d.ts +18 -4
  32. package/dist/chat-store/index.js +4 -4
  33. package/dist/chat-store/index.js.map +1 -1
  34. package/dist/{chunk-H5FM75MR.js → chunk-22GLESKE.js} +3 -3
  35. package/dist/chunk-22GLESKE.js.map +1 -0
  36. package/dist/{chunk-WEBBJBDH.js → chunk-2DRYTJHI.js} +1 -1
  37. package/dist/chunk-2DRYTJHI.js.map +1 -0
  38. package/dist/{chunk-7EVZUIHW.js → chunk-3EJ6SFJI.js} +1 -1
  39. package/dist/chunk-3EJ6SFJI.js.map +1 -0
  40. package/dist/{chunk-HRJJH3RX.js → chunk-3OFQFW5K.js} +4 -4
  41. package/dist/chunk-3OFQFW5K.js.map +1 -0
  42. package/dist/{chunk-7SUPA2YT.js → chunk-4KKXZQPT.js} +2 -2
  43. package/dist/chunk-4KKXZQPT.js.map +1 -0
  44. package/dist/{chunk-5PTGEJZL.js → chunk-5SD6HT2V.js} +1 -1
  45. package/dist/chunk-5SD6HT2V.js.map +1 -0
  46. package/dist/{chunk-7C64WKAH.js → chunk-5SXS3YAB.js} +2 -2
  47. package/dist/{chunk-L2TG5DBW.js → chunk-5TESA4SN.js} +1 -1
  48. package/dist/chunk-5TESA4SN.js.map +1 -0
  49. package/dist/{chunk-63CE7FEZ.js → chunk-6XIAPIW6.js} +1 -1
  50. package/dist/chunk-6XIAPIW6.js.map +1 -0
  51. package/dist/{chunk-MFRCM32T.js → chunk-7CTIUCQ4.js} +1 -1
  52. package/dist/chunk-7CTIUCQ4.js.map +1 -0
  53. package/dist/{chunk-6KVH5SP5.js → chunk-7YW6EBDX.js} +2 -2
  54. package/dist/chunk-7YW6EBDX.js.map +1 -0
  55. package/dist/{chunk-ZXNXAQAH.js → chunk-AP2UXKUK.js} +1 -1
  56. package/dist/chunk-AP2UXKUK.js.map +1 -0
  57. package/dist/{chunk-K63OWUDJ.js → chunk-BPSV5AA2.js} +2 -2
  58. package/dist/chunk-BPSV5AA2.js.map +1 -0
  59. package/dist/{chunk-MFI4ZM7W.js → chunk-BT4QFCTB.js} +1 -1
  60. package/dist/chunk-BT4QFCTB.js.map +1 -0
  61. package/dist/{chunk-ZYBWGSAZ.js → chunk-BVKQKGRK.js} +1 -1
  62. package/dist/chunk-BVKQKGRK.js.map +1 -0
  63. package/dist/{chunk-RVUISYUE.js → chunk-C3NSB66C.js} +7 -7
  64. package/dist/chunk-C3NSB66C.js.map +1 -0
  65. package/dist/{chunk-BQV42AFK.js → chunk-CCVWR33L.js} +1 -1
  66. package/dist/chunk-CCVWR33L.js.map +1 -0
  67. package/dist/{chunk-MCJSS6SM.js → chunk-CQZSAR77.js} +1 -1
  68. package/dist/chunk-CQZSAR77.js.map +1 -0
  69. package/dist/{chunk-3SVAA3MA.js → chunk-DJ4VJIH5.js} +1 -1
  70. package/dist/chunk-DJ4VJIH5.js.map +1 -0
  71. package/dist/{chunk-XKBIYSSM.js → chunk-DTSPS2HV.js} +3 -3
  72. package/dist/chunk-DTSPS2HV.js.map +1 -0
  73. package/dist/{chunk-4QN75UHX.js → chunk-E7N67FYI.js} +8 -8
  74. package/dist/chunk-E7N67FYI.js.map +1 -0
  75. package/dist/{chunk-2QI7XV2T.js → chunk-FBVLEGEG.js} +1 -1
  76. package/dist/{chunk-2QI7XV2T.js.map → chunk-FBVLEGEG.js.map} +1 -1
  77. package/dist/{chunk-5RMIUJDI.js → chunk-FKCB5FTD.js} +1 -1
  78. package/dist/chunk-FKCB5FTD.js.map +1 -0
  79. package/dist/{chunk-EEPJGZJW.js → chunk-GPBRL2XR.js} +1 -1
  80. package/dist/chunk-GPBRL2XR.js.map +1 -0
  81. package/dist/{chunk-G3HCU7TA.js → chunk-GXE6KHTS.js} +1 -1
  82. package/dist/chunk-GXE6KHTS.js.map +1 -0
  83. package/dist/{chunk-65P3HJY3.js → chunk-HCOROIRT.js} +1 -1
  84. package/dist/chunk-HCOROIRT.js.map +1 -0
  85. package/dist/{chunk-54GSK2KK.js → chunk-HYTIHYNV.js} +2 -2
  86. package/dist/chunk-HYTIHYNV.js.map +1 -0
  87. package/dist/{chunk-5MG74GVQ.js → chunk-IG46XCZM.js} +3 -3
  88. package/dist/chunk-IG46XCZM.js.map +1 -0
  89. package/dist/{chunk-ND3XEGBE.js → chunk-JDEGS53O.js} +1 -1
  90. package/dist/chunk-JDEGS53O.js.map +1 -0
  91. package/dist/{chunk-7W5XSTUF.js → chunk-JML7WKWU.js} +1 -1
  92. package/dist/chunk-JML7WKWU.js.map +1 -0
  93. package/dist/{chunk-Q4TKVF3L.js → chunk-JTLYXUEV.js} +1 -1
  94. package/dist/chunk-JTLYXUEV.js.map +1 -0
  95. package/dist/{chunk-CCRVDLV3.js → chunk-JWBZ74TW.js} +2 -2
  96. package/dist/chunk-JWBZ74TW.js.map +1 -0
  97. package/dist/{chunk-ZU5GNSOJ.js → chunk-K3LIPKFV.js} +3 -3
  98. package/dist/chunk-K3LIPKFV.js.map +1 -0
  99. package/dist/{chunk-GQRL6VNU.js → chunk-LGBO24FL.js} +1 -1
  100. package/dist/chunk-LGBO24FL.js.map +1 -0
  101. package/dist/{chunk-SWUVTGMR.js → chunk-MEUNTJL5.js} +3 -3
  102. package/dist/{chunk-SWUVTGMR.js.map → chunk-MEUNTJL5.js.map} +1 -1
  103. package/dist/{chunk-YNALYIQ3.js → chunk-NLSSFLLS.js} +1 -1
  104. package/dist/chunk-NLSSFLLS.js.map +1 -0
  105. package/dist/{chunk-HFC4BTWJ.js → chunk-PTUMBMVH.js} +1 -1
  106. package/dist/chunk-PTUMBMVH.js.map +1 -0
  107. package/dist/{chunk-R4NOKZMD.js → chunk-ROLFDOMJ.js} +3 -3
  108. package/dist/{chunk-NYATNLRK.js → chunk-RT5RKAFX.js} +1 -1
  109. package/dist/chunk-RT5RKAFX.js.map +1 -0
  110. package/dist/{chunk-GNL3MG5J.js → chunk-S564OFTL.js} +2 -2
  111. package/dist/{chunk-GUSCYE3S.js → chunk-TQOFR6XY.js} +1 -1
  112. package/dist/chunk-TQOFR6XY.js.map +1 -0
  113. package/dist/{chunk-47C6PJCW.js → chunk-TZO3SOUL.js} +1 -1
  114. package/dist/chunk-TZO3SOUL.js.map +1 -0
  115. package/dist/{chunk-YGUNTIT5.js → chunk-UKTYKG57.js} +1 -1
  116. package/dist/chunk-UKTYKG57.js.map +1 -0
  117. package/dist/{chunk-23LUHHHN.js → chunk-VCOD5AOR.js} +1 -1
  118. package/dist/chunk-VCOD5AOR.js.map +1 -0
  119. package/dist/{chunk-5I72FRZY.js → chunk-VOJB7MVG.js} +2 -2
  120. package/dist/{chunk-XWJXZ6WE.js → chunk-VTWKH4YU.js} +2 -2
  121. package/dist/chunk-VTWKH4YU.js.map +1 -0
  122. package/dist/{chunk-4K7BZYO7.js → chunk-VWAEWOWK.js} +3 -3
  123. package/dist/chunk-VWAEWOWK.js.map +1 -0
  124. package/dist/{chunk-M2EBUDZ7.js → chunk-VWOPOLVO.js} +2 -2
  125. package/dist/chunk-VWOPOLVO.js.map +1 -0
  126. package/dist/{chunk-BN2USWIR.js → chunk-VYECQAGM.js} +2 -2
  127. package/dist/chunk-VYECQAGM.js.map +1 -0
  128. package/dist/{chunk-SIXYZ2FB.js → chunk-YJMCRXQQ.js} +1 -1
  129. package/dist/chunk-YJMCRXQQ.js.map +1 -0
  130. package/dist/{chunk-PJC4NXPA.js → chunk-YKBDH2UY.js} +3 -3
  131. package/dist/chunk-YKBDH2UY.js.map +1 -0
  132. package/dist/{chunk-XAWFPMAR.js → chunk-YKOM4ZLQ.js} +1 -1
  133. package/dist/chunk-YKOM4ZLQ.js.map +1 -0
  134. package/dist/{chunk-TKVJE63N.js → chunk-YRMLYFVR.js} +3 -3
  135. package/dist/chunk-YRMLYFVR.js.map +1 -0
  136. package/dist/{chunk-USYXHDKE.js → chunk-YZ6KQULN.js} +2 -2
  137. package/dist/{command-stack-B_-WNfZU.d.ts → command-stack-TNPWJCzW.d.ts} +14 -2
  138. package/dist/{completion-Kaqp_tWk.d.ts → completion-CvcNUz07.d.ts} +1 -1
  139. package/dist/config/index.d.ts +1 -1
  140. package/dist/{contract-KfqJh_au.d.ts → contract-TjB68uqA.d.ts} +17 -0
  141. package/dist/design-canvas/drizzle.d.ts +10 -2
  142. package/dist/design-canvas/drizzle.js.map +1 -1
  143. package/dist/design-canvas/index.d.ts +29 -11
  144. package/dist/design-canvas/index.js +1070 -17
  145. package/dist/design-canvas/index.js.map +1 -1
  146. package/dist/design-canvas-react/engine.d.ts +42 -6
  147. package/dist/design-canvas-react/engine.js +4 -4
  148. package/dist/design-canvas-react/index.d.ts +12 -7
  149. package/dist/design-canvas-react/index.js +11 -11
  150. package/dist/design-canvas-react/index.js.map +1 -1
  151. package/dist/design-canvas-react/lazy.d.ts +4 -4
  152. package/dist/design-canvas-react/lazy.js +1 -1
  153. package/dist/durable-chat/index.d.ts +46 -1
  154. package/dist/durable-chat/index.js +3 -3
  155. package/dist/eval/index.d.ts +1 -1
  156. package/dist/{export-presets-DAsU5Wal.d.ts → export-presets-mgVulRaV.d.ts} +10 -1
  157. package/dist/{flow-types-Cb_AblZs.d.ts → flow-types-CqomVAUN.d.ts} +1 -0
  158. package/dist/harness/index.d.ts +5 -0
  159. package/dist/harness/index.js +1 -1
  160. package/dist/index.d.ts +10 -18
  161. package/dist/index.js +30 -231
  162. package/dist/intakes/api.d.ts +3 -2
  163. package/dist/intakes/api.js +3 -3
  164. package/dist/intakes/api.js.map +1 -1
  165. package/dist/intakes/drizzle.d.ts +10 -2
  166. package/dist/intakes/drizzle.js +3 -3
  167. package/dist/intakes/drizzle.js.map +1 -1
  168. package/dist/intakes/index.d.ts +2 -2
  169. package/dist/intakes/index.js +2 -2
  170. package/dist/intakes-react/index.d.ts +2 -1
  171. package/dist/intakes-react/index.js +2 -2
  172. package/dist/intakes-react/lazy.d.ts +2 -1
  173. package/dist/intakes-react/lazy.js +1 -1
  174. package/dist/intakes-react/lazy.js.map +1 -1
  175. package/dist/integrations/index.d.ts +4 -0
  176. package/dist/integrations/index.js +1 -1
  177. package/dist/interactions/index.d.ts +13 -2
  178. package/dist/interactions/index.js +2 -2
  179. package/dist/{invitations-CZ5G2tIn.d.ts → invitations-DoYMvXea.d.ts} +11 -1
  180. package/dist/{invitations-schema-DaMO4hZE.d.ts → invitations-schema-_fI7HkJP.d.ts} +5 -1
  181. package/dist/knowledge/index.d.ts +2 -0
  182. package/dist/knowledge/index.js +1 -1
  183. package/dist/knowledge-loop/index.d.ts +4 -1
  184. package/dist/knowledge-loop/index.js +1 -1
  185. package/dist/{lazy-C7LiVeFt.d.ts → lazy-DrkVyDpe.d.ts} +2 -2
  186. package/dist/{mcp-BHfIoGLW.d.ts → mcp-BjPqQ-3C.d.ts} +4 -2
  187. package/dist/{mcp-rpc-DLw_r9PQ.d.ts → mcp-rpc-BfUOsalw.d.ts} +3 -0
  188. package/dist/missions/index.d.ts +25 -0
  189. package/dist/missions/index.js +1 -1
  190. package/dist/{model-Bzi5i63l.d.ts → model-C8U0HZxL.d.ts} +1 -0
  191. package/dist/{model-dF2h4xT9.d.ts → model-DmdkIteM.d.ts} +19 -0
  192. package/dist/{model-BBwyOuWG.d.ts → model-DnfO_PdJ.d.ts} +25 -1
  193. package/dist/model-resolution/index.d.ts +10 -0
  194. package/dist/model-resolution/index.js.map +1 -1
  195. package/dist/{operations-DLIvvD00.d.ts → operations-ByJ6yXOW.d.ts} +20 -2
  196. package/dist/{parts-1sRYSPjF.d.ts → parts-n9XUon0a.d.ts} +29 -1
  197. package/dist/plans/index.d.ts +6 -0
  198. package/dist/plans/index.js +1 -1
  199. package/dist/platform/index.d.ts +24 -2
  200. package/dist/platform/index.js +3 -3
  201. package/dist/platform/index.js.map +1 -1
  202. package/dist/preflight/index.d.ts +3 -0
  203. package/dist/preflight/index.js +1 -1
  204. package/dist/preset-cloudflare/index.d.ts +4 -1
  205. package/dist/preset-cloudflare/index.js +2 -2
  206. package/dist/redact/index.d.ts +5 -0
  207. package/dist/redact/index.js +1 -1
  208. package/dist/{roles-BC1n4t37.d.ts → roles-B4nU3jDi.d.ts} +12 -0
  209. package/dist/run/index.d.ts +3 -0
  210. package/dist/run/index.js +1 -1
  211. package/dist/run/index.js.map +1 -1
  212. package/dist/runtime/index.d.ts +11 -4
  213. package/dist/runtime/index.js +4 -4
  214. package/dist/sandbox/index.d.ts +96 -3
  215. package/dist/sandbox/index.js +6 -6
  216. package/dist/{sandbox-terminal-BIIC__CP.d.ts → sandbox-terminal-ChNEdHF8.d.ts} +5 -0
  217. package/dist/sequences/drizzle.d.ts +11 -1
  218. package/dist/sequences/drizzle.js +1 -1
  219. package/dist/sequences/drizzle.js.map +1 -1
  220. package/dist/sequences/index.d.ts +32 -7
  221. package/dist/sequences/index.js +1562 -47
  222. package/dist/sequences/index.js.map +1 -1
  223. package/dist/sequences-react/index.d.ts +32 -2
  224. package/dist/sequences-react/index.js +3 -3
  225. package/dist/sequences-react/index.js.map +1 -1
  226. package/dist/{sso-CNOsARMJ.d.ts → sso-Cm00S61u.d.ts} +13 -0
  227. package/dist/{stale-turn-lock-C8Na1cFZ.d.ts → stale-turn-lock-DucQzvXu.d.ts} +2 -0
  228. package/dist/store/index.d.ts +5 -0
  229. package/dist/store/index.js.map +1 -1
  230. package/dist/{store-gckrNq-g.d.ts → store-B7LLlk9p.d.ts} +22 -1
  231. package/dist/{store-CFyxgTlD.d.ts → store-CqfDtnPQ.d.ts} +8 -2
  232. package/dist/stream/index.d.ts +10 -4
  233. package/dist/stream/index.js +4 -4
  234. package/dist/{stream-normalizer-DWvtmY6F.d.ts → stream-normalizer-C3M--r6y.d.ts} +17 -1
  235. package/dist/studio/index.d.ts +37 -0
  236. package/dist/studio/index.js +1 -1
  237. package/dist/studio-react/index.d.ts +3 -0
  238. package/dist/studio-react/index.js +1 -1
  239. package/dist/studio-react/index.js.map +1 -1
  240. package/dist/tangle/index.d.ts +3 -0
  241. package/dist/tangle/index.js +1 -1
  242. package/dist/teams/drizzle.d.ts +8 -4
  243. package/dist/teams/drizzle.js +1 -1
  244. package/dist/teams/drizzle.js.map +1 -1
  245. package/dist/teams/index.d.ts +4 -2
  246. package/dist/teams/index.js +3 -3
  247. package/dist/teams/invitations-api.d.ts +10 -4
  248. package/dist/teams/invitations-api.js +4 -4
  249. package/dist/teams/invitations-api.js.map +1 -1
  250. package/dist/teams/members-api.d.ts +4 -2
  251. package/dist/teams/members-api.js +3 -3
  252. package/dist/teams/resend.d.ts +5 -4
  253. package/dist/teams/resend.js +1 -1
  254. package/dist/teams/resend.js.map +1 -1
  255. package/dist/teams-react/index.d.ts +7 -2
  256. package/dist/teams-react/index.js +3 -3
  257. package/dist/teams-react/lazy.d.ts +5 -2
  258. package/dist/teams-react/lazy.js +2 -2
  259. package/dist/teams-react/lazy.js.map +1 -1
  260. package/dist/theme/index.d.ts +2 -0
  261. package/dist/theme/index.js +1 -1
  262. package/dist/theme/tailwind-preset.d.ts +1 -0
  263. package/dist/theme/tailwind-preset.js.map +1 -1
  264. package/dist/theme-contract/cli.js +1 -1
  265. package/dist/theme-contract/index.d.ts +3 -0
  266. package/dist/theme-contract/index.js +1 -1
  267. package/dist/tools/index.d.ts +13 -6
  268. package/dist/tools/index.js +3 -3
  269. package/dist/trace/index.d.ts +6 -1
  270. package/dist/trace/index.js +2 -2
  271. package/dist/{turn-buffer-C9mEgoop.d.ts → turn-buffer-DGnAPKwa.d.ts} +6 -0
  272. package/dist/turn-stream/index.d.ts +28 -2
  273. package/dist/turn-stream/index.js +1 -1
  274. package/dist/turn-stream/index.js.map +1 -1
  275. package/dist/{types-BEOvc_ue.d.ts → types-CBRyqijY.d.ts} +10 -0
  276. package/dist/vault/index.d.ts +1 -1
  277. package/dist/vault/lazy.d.ts +3 -2
  278. package/dist/vault/lazy.js.map +1 -1
  279. package/dist/web/index.d.ts +4 -0
  280. package/dist/web/index.js +1 -1
  281. package/dist/web-react/index.d.ts +51 -8
  282. package/dist/web-react/index.js +9 -9
  283. package/dist/web-react/terminal.d.ts +2 -2
  284. package/dist/web-react/terminal.js +1 -1
  285. package/package.json +3 -2
  286. package/dist/DesignCanvas-5DJAFDNC.js +0 -12
  287. package/dist/DesignCanvasEditor-XUJZARSN.js +0 -13
  288. package/dist/IntakeInterview-WHVKMNQW.js +0 -8
  289. package/dist/InvitationsPanel-XUUWZBPV.js +0 -8
  290. package/dist/MembersPanel-FOVHWUQ3.js +0 -8
  291. package/dist/chunk-23LUHHHN.js.map +0 -1
  292. package/dist/chunk-3SVAA3MA.js.map +0 -1
  293. package/dist/chunk-47C6PJCW.js.map +0 -1
  294. package/dist/chunk-4K7BZYO7.js.map +0 -1
  295. package/dist/chunk-4QN75UHX.js.map +0 -1
  296. package/dist/chunk-54GSK2KK.js.map +0 -1
  297. package/dist/chunk-5MG74GVQ.js.map +0 -1
  298. package/dist/chunk-5PTGEJZL.js.map +0 -1
  299. package/dist/chunk-5RMIUJDI.js.map +0 -1
  300. package/dist/chunk-63CE7FEZ.js.map +0 -1
  301. package/dist/chunk-65P3HJY3.js.map +0 -1
  302. package/dist/chunk-6KVH5SP5.js.map +0 -1
  303. package/dist/chunk-7EVZUIHW.js.map +0 -1
  304. package/dist/chunk-7SUPA2YT.js.map +0 -1
  305. package/dist/chunk-7W5XSTUF.js.map +0 -1
  306. package/dist/chunk-BN2USWIR.js.map +0 -1
  307. package/dist/chunk-BQV42AFK.js.map +0 -1
  308. package/dist/chunk-CCRVDLV3.js.map +0 -1
  309. package/dist/chunk-EEPJGZJW.js.map +0 -1
  310. package/dist/chunk-G3HCU7TA.js.map +0 -1
  311. package/dist/chunk-GQRL6VNU.js.map +0 -1
  312. package/dist/chunk-GUSCYE3S.js.map +0 -1
  313. package/dist/chunk-H5FM75MR.js.map +0 -1
  314. package/dist/chunk-HFC4BTWJ.js.map +0 -1
  315. package/dist/chunk-HRJJH3RX.js.map +0 -1
  316. package/dist/chunk-K63OWUDJ.js.map +0 -1
  317. package/dist/chunk-L2TG5DBW.js.map +0 -1
  318. package/dist/chunk-M2EBUDZ7.js.map +0 -1
  319. package/dist/chunk-MCJSS6SM.js.map +0 -1
  320. package/dist/chunk-MFI4ZM7W.js.map +0 -1
  321. package/dist/chunk-MFRCM32T.js.map +0 -1
  322. package/dist/chunk-ND3XEGBE.js.map +0 -1
  323. package/dist/chunk-NEOV2NQ3.js +0 -1617
  324. package/dist/chunk-NEOV2NQ3.js.map +0 -1
  325. package/dist/chunk-NYATNLRK.js.map +0 -1
  326. package/dist/chunk-PJC4NXPA.js.map +0 -1
  327. package/dist/chunk-Q4TKVF3L.js.map +0 -1
  328. package/dist/chunk-RVUISYUE.js.map +0 -1
  329. package/dist/chunk-SIXYZ2FB.js.map +0 -1
  330. package/dist/chunk-TKVJE63N.js.map +0 -1
  331. package/dist/chunk-WEBBJBDH.js.map +0 -1
  332. package/dist/chunk-WFMUDX5J.js +0 -1092
  333. package/dist/chunk-WFMUDX5J.js.map +0 -1
  334. package/dist/chunk-XAWFPMAR.js.map +0 -1
  335. package/dist/chunk-XKBIYSSM.js.map +0 -1
  336. package/dist/chunk-XWJXZ6WE.js.map +0 -1
  337. package/dist/chunk-YGUNTIT5.js.map +0 -1
  338. package/dist/chunk-YNALYIQ3.js.map +0 -1
  339. package/dist/chunk-ZU5GNSOJ.js.map +0 -1
  340. package/dist/chunk-ZXNXAQAH.js.map +0 -1
  341. package/dist/chunk-ZYBWGSAZ.js.map +0 -1
  342. /package/dist/{DesignCanvas-5DJAFDNC.js.map → DesignCanvas-UNL34LS2.js.map} +0 -0
  343. /package/dist/{DesignCanvasEditor-XUJZARSN.js.map → DesignCanvasEditor-FJIVYOA2.js.map} +0 -0
  344. /package/dist/{IntakeInterview-WHVKMNQW.js.map → IntakeInterview-3ZIQMZS6.js.map} +0 -0
  345. /package/dist/{InvitationsPanel-XUUWZBPV.js.map → InvitationsPanel-CJ7DR4F7.js.map} +0 -0
  346. /package/dist/{MembersPanel-FOVHWUQ3.js.map → MembersPanel-BB4OD2KB.js.map} +0 -0
  347. /package/dist/{TimelineEditor-I35SJJAJ.js.map → TimelineEditor-2ECKSU6P.js.map} +0 -0
  348. /package/dist/{chunk-7C64WKAH.js.map → chunk-5SXS3YAB.js.map} +0 -0
  349. /package/dist/{chunk-R4NOKZMD.js.map → chunk-ROLFDOMJ.js.map} +0 -0
  350. /package/dist/{chunk-GNL3MG5J.js.map → chunk-S564OFTL.js.map} +0 -0
  351. /package/dist/{chunk-5I72FRZY.js.map → chunk-VOJB7MVG.js.map} +0 -0
  352. /package/dist/{chunk-USYXHDKE.js.map → chunk-YZ6KQULN.js.map} +0 -0
@@ -1,11 +1,12 @@
1
1
  import { SandboxInstance, AgentProfileMcpServer, ProvisionEvent, AgentProfileFileMount, AgentProfile, StorageConfig, ScopedTokenScope, TurnDriveResult, Sandbox } from '@tangle-network/sandbox';
2
2
  export { StorageConfig } from '@tangle-network/sandbox';
3
- import { a as ToolHeaderNames } from '../auth-DuptSkWh.js';
4
- import { f as AppToolName, c as AppToolContext } from '../types-BEOvc_ue.js';
3
+ import { a as ToolHeaderNames } from '../auth-_FU8w01b.js';
4
+ import { f as AppToolName, c as AppToolContext } from '../types-CBRyqijY.js';
5
5
  import { Harness } from '../harness/index.js';
6
- import { f as TangleExecutionEnvironment } from '../model-dF2h4xT9.js';
6
+ import { f as TangleExecutionEnvironment } from '../model-DmdkIteM.js';
7
7
  import '@tangle-network/agent-interface';
8
8
 
9
+ /** Represent success or failure of an operation with corresponding value or error information */
9
10
  type Outcome<T> = {
10
11
  succeeded: true;
11
12
  value: T;
@@ -40,10 +41,12 @@ interface SandboxExecChannel {
40
41
  exitCode: number;
41
42
  }>;
42
43
  }
44
+ /** Define options to execute code within a sandbox environment with optional session control */
43
45
  interface SandboxExecOptions {
44
46
  /** Run inside a named session rather than the box's default one. */
45
47
  sessionId?: string;
46
48
  }
49
+ /** Resolve the outcome of a sandbox file size check with success status and value or error message */
47
50
  type SandboxFileSizeOutcome = {
48
51
  succeeded: true;
49
52
  value: number;
@@ -51,6 +54,7 @@ type SandboxFileSizeOutcome = {
51
54
  succeeded: false;
52
55
  error: string;
53
56
  };
57
+ /** Represent the outcome of reading sandbox file bytes with success status and corresponding data or error */
54
58
  type SandboxFileBytesOutcome = {
55
59
  succeeded: true;
56
60
  value: {
@@ -75,17 +79,21 @@ declare function statSandboxFileSize(box: SandboxExecChannel, absolutePath: stri
75
79
  * mismatch is reported, never returned as a short buffer. */
76
80
  declare function readSandboxBinaryBytes(box: SandboxExecChannel, absolutePath: string, expectedSize: number, options?: SandboxExecOptions): Promise<SandboxFileBytesOutcome>;
77
81
 
82
+ /** Define identity details for a terminal proxy including user, workspace, and sandbox identifiers */
78
83
  interface TerminalProxyIdentity {
79
84
  userId: string;
80
85
  workspaceId: string;
81
86
  sandboxId: string;
82
87
  }
88
+ /** Generate a signed token for TerminalProxyIdentity with an expiration based on TTL milliseconds */
83
89
  declare function mintTerminalProxyToken(secret: string, identity: TerminalProxyIdentity, ttlMs?: number, now?: () => number): Promise<Outcome<{
84
90
  token: string;
85
91
  expiresAt: Date;
86
92
  }>>;
93
+ /** Verify the authenticity and validity of a terminal proxy token against expected identity and timestamp */
87
94
  declare function verifyTerminalProxyToken(secret: string, token: string, expected: TerminalProxyIdentity, now?: () => number): Promise<boolean>;
88
95
 
96
+ /** Define the shape of a workspace sandbox instance including its connection details and status */
89
97
  interface WorkspaceSandboxInstanceLike {
90
98
  id: string;
91
99
  name?: string;
@@ -98,10 +106,12 @@ interface WorkspaceSandboxInstanceLike {
98
106
  authTokenExpiresAt?: string;
99
107
  } | null;
100
108
  }
109
+ /** Define the context containing workspace and user identifiers for sandbox environment operations */
101
110
  interface WorkspaceSandboxEnsureContext {
102
111
  workspaceId: string;
103
112
  userId: string;
104
113
  }
114
+ /** Define configuration options for managing and interacting with workspace sandboxes */
105
115
  interface WorkspaceSandboxManagerOptions<TClient, TBox extends WorkspaceSandboxInstanceLike, TEnsureOptions = void> {
106
116
  getClient: (ctx: WorkspaceSandboxEnsureContext) => Promise<TClient> | TClient;
107
117
  nameForWorkspace: (workspaceId: string, ctx: WorkspaceSandboxEnsureContext) => string;
@@ -118,25 +128,34 @@ interface WorkspaceSandboxManagerOptions<TClient, TBox extends WorkspaceSandboxI
118
128
  prepareCreated?: (box: TBox, ctx: WorkspaceSandboxEnsureContext, options: TEnsureOptions) => Promise<TBox | void>;
119
129
  onListError?: (error: unknown, ctx: WorkspaceSandboxEnsureContext) => void;
120
130
  }
131
+ /** Manage workspace sandboxes by ensuring their creation and retrieval for specified users */
121
132
  interface WorkspaceSandboxManager<TBox extends WorkspaceSandboxInstanceLike, TEnsureOptions = void> {
122
133
  ensureWorkspaceSandbox: (workspaceId: string, userId: string, options?: TEnsureOptions) => Promise<TBox>;
123
134
  }
135
+ /** Create a manager to handle workspace sandbox instances with client and options configuration */
124
136
  declare function createWorkspaceSandboxManager<TClient, TBox extends WorkspaceSandboxInstanceLike, TEnsureOptions = void>(opts: WorkspaceSandboxManagerOptions<TClient, TBox, TEnsureOptions>): WorkspaceSandboxManager<TBox, TEnsureOptions>;
137
+ /** Define options for generating a sandbox terminal token including secret and expiration settings */
125
138
  interface SandboxTerminalTokenOptions {
126
139
  secret?: string;
127
140
  expiresInMs?: number;
128
141
  now?: () => number;
129
142
  }
143
+ /** Resolve the identity type used for sandbox terminal token subjects */
130
144
  type SandboxTerminalTokenSubject = TerminalProxyIdentity;
145
+ /** Provide token and expiration details for a sandbox terminal session */
131
146
  interface SandboxTerminalTokenResult {
132
147
  token: string;
133
148
  expiresAt: Date;
134
149
  }
150
+ /** Generate a sandbox terminal token for a given subject with specified options */
135
151
  declare function createSandboxTerminalToken(subject: SandboxTerminalTokenSubject, opts: SandboxTerminalTokenOptions): Promise<SandboxTerminalTokenResult>;
152
+ /** Verify the validity of a sandbox terminal token against the expected identity and options */
136
153
  declare function verifySandboxTerminalToken(token: string, expected: SandboxTerminalTokenSubject, opts: SandboxTerminalTokenOptions): Promise<boolean>;
154
+ /** Represent an authenticated user within a sandbox environment with a unique identifier */
137
155
  interface AuthenticatedSandboxUser {
138
156
  id: string;
139
157
  }
158
+ /** Define options to handle workspace sandbox connections with user authentication and access control */
140
159
  interface WorkspaceSandboxConnectionHandlerOptions<TBox extends WorkspaceSandboxInstanceLike> {
141
160
  requireUser: (request: Request) => Promise<AuthenticatedSandboxUser>;
142
161
  requireWorkspaceAccess: (args: {
@@ -155,22 +174,27 @@ interface WorkspaceSandboxConnectionHandlerOptions<TBox extends WorkspaceSandbox
155
174
  }) => string;
156
175
  exposeDirectSidecar?: boolean;
157
176
  }
177
+ /** Define arguments required to establish a workspace sandbox connection */
158
178
  interface WorkspaceSandboxConnectionArgs {
159
179
  request: Request;
160
180
  params: {
161
181
  workspaceId?: string;
162
182
  };
163
183
  }
184
+ /** Create a handler to resolve workspace sandbox connections with user and access validation */
164
185
  declare function createWorkspaceSandboxConnectionHandler<TBox extends WorkspaceSandboxInstanceLike>(opts: WorkspaceSandboxConnectionHandlerOptions<TBox>): ({ request, params }: WorkspaceSandboxConnectionArgs) => Promise<Response>;
186
+ /** Define credentials required to access the sandbox API environment */
165
187
  interface SandboxApiCredentials {
166
188
  baseUrl: string;
167
189
  apiKey: string;
168
190
  }
191
+ /** Define a connection configuration for sandbox runtime including URL and optional server-side auth token */
169
192
  interface SandboxRuntimeConnection {
170
193
  runtimeUrl: string;
171
194
  /** Server-side sidecar bearer. Must authorize terminal routes; never expose it to browser code. */
172
195
  authToken?: string;
173
196
  }
197
+ /** Define options for handling workspace sandbox runtime proxy including user, access, credentials, and connection retrieval */
174
198
  interface WorkspaceSandboxRuntimeProxyHandlerOptions {
175
199
  requireUser: (request: Request) => Promise<AuthenticatedSandboxUser>;
176
200
  requireWorkspaceAccess: (args: {
@@ -195,6 +219,7 @@ interface WorkspaceSandboxRuntimeProxyHandlerOptions {
195
219
  fetch?: typeof fetch;
196
220
  forwardHeaders?: string[];
197
221
  }
222
+ /** Define arguments for proxying runtime requests within a workspace sandbox environment */
198
223
  interface WorkspaceSandboxRuntimeProxyArgs {
199
224
  request: Request;
200
225
  params: {
@@ -203,7 +228,9 @@ interface WorkspaceSandboxRuntimeProxyArgs {
203
228
  '*'?: string;
204
229
  };
205
230
  }
231
+ /** Create a proxy handler to resolve sandbox runtime requests with user and workspace access validation */
206
232
  declare function createWorkspaceSandboxRuntimeProxyHandler(opts: WorkspaceSandboxRuntimeProxyHandlerOptions): ({ request, params }: WorkspaceSandboxRuntimeProxyArgs) => Promise<Response>;
233
+ /** Define the structure for matching a sandbox terminal WebSocket with workspace and path details */
207
234
  interface SandboxTerminalWsMatch {
208
235
  workspaceId: string;
209
236
  sandboxId: string;
@@ -220,6 +247,7 @@ interface SandboxTerminalWsMatch {
220
247
  declare function matchSandboxTerminalWsPath(pathname: string): SandboxTerminalWsMatch | null;
221
248
  /** True when `request` is a WebSocket upgrade for a sandbox terminal path. */
222
249
  declare function isSandboxTerminalWsUpgrade(request: Request): boolean;
250
+ /** Define options to handle user authentication, workspace access, and sandbox API credential retrieval */
223
251
  interface WorkspaceSandboxTerminalUpgradeHandlerOptions {
224
252
  requireUser: (request: Request) => Promise<AuthenticatedSandboxUser>;
225
253
  requireWorkspaceAccess: (args: {
@@ -255,12 +283,18 @@ interface WorkspaceSandboxTerminalUpgradeHandlerOptions {
255
283
  * ```
256
284
  */
257
285
  declare function createWorkspaceSandboxTerminalUpgradeHandler(opts: WorkspaceSandboxTerminalUpgradeHandlerOptions): (request: Request) => Promise<Response | null>;
286
+ /** Build proxy headers for sandbox runtime including authorization and forwarded headers */
258
287
  declare function buildSandboxRuntimeProxyHeaders(source: Headers, sandboxApiKey: string, forwardHeaders?: string[]): Headers;
288
+ /** Encode a runtime path by URI-encoding each valid segment and returning null for invalid segments */
259
289
  declare function encodeSandboxRuntimePath(runtimePath: string): string | null;
290
+ /** Extract the token from a bearer authorization string or return null if invalid or missing */
260
291
  declare function bearerToken(value: string | null): string | null;
292
+ /** Resolve and decode a bearer token from a comma-separated subprotocol string or return null */
261
293
  declare function bearerSubprotocolToken(value: string | null): string | null;
294
+ /** Resolve the terminal token from request headers using Authorization or Sec-WebSocket-Protocol fields */
262
295
  declare function terminalTokenFromRequest(headers: Headers): string | null;
263
296
 
297
+ /** Define client credentials for accessing the sandbox environment with API key and base URL */
264
298
  interface SandboxClientCredentials {
265
299
  apiKey: string;
266
300
  baseUrl: string;
@@ -271,6 +305,7 @@ interface SandboxClientCredentials {
271
305
  * (see resolveTangleExecutionEnvironment in runtime/model).
272
306
  */
273
307
  type SandboxCredentialEnvironment = TangleExecutionEnvironment;
308
+ /** Resolve options for obtaining sandbox client credentials from environment variables and classification */
274
309
  interface ResolveSandboxClientCredentialsOptions {
275
310
  /**
276
311
  * Environment object to read from. Defaults to process.env when available.
@@ -311,7 +346,9 @@ interface ResolveSandboxClientCredentialsOptions {
311
346
  env: Record<string, string | undefined>;
312
347
  }) => SandboxClientCredentials | null | undefined | Promise<SandboxClientCredentials | null | undefined>;
313
348
  }
349
+ /** Resolve sandbox client credentials based on environment and provided options asynchronously */
314
350
  declare function resolveSandboxClientCredentials(options?: ResolveSandboxClientCredentialsOptions): Promise<SandboxClientCredentials>;
351
+ /** Define configuration parameters for sandbox resource allocation and lifecycle management */
315
352
  interface SandboxResourceConfig {
316
353
  image: string;
317
354
  cpuCores: number;
@@ -320,6 +357,7 @@ interface SandboxResourceConfig {
320
357
  maxLifetimeSeconds: number;
321
358
  idleTimeoutSeconds: number;
322
359
  }
360
+ /** Define configuration options for resolving a provider and its model with optional API keys and routing details */
323
361
  interface ProviderResolutionConfig {
324
362
  routerBaseUrl?: string;
325
363
  apiKey?: string;
@@ -329,41 +367,49 @@ interface ProviderResolutionConfig {
329
367
  openaiApiKey?: string;
330
368
  allowKeylessModel?: boolean;
331
369
  }
370
+ /** Define the context for building a sandbox including workspace, integrations, and optional user ID */
332
371
  interface SandboxBuildContext {
333
372
  workspaceId: string;
334
373
  connectedIntegrationIds: string[];
335
374
  userId?: string;
336
375
  }
337
376
 
377
+ /** Define a scope containing workspace and optional user identifiers for sandbox environments */
338
378
  interface SandboxScope {
339
379
  workspaceId: string;
340
380
  userId?: string;
341
381
  }
382
+ /** Define the specification for restoring a sandbox from a snapshot or another sandbox ID */
342
383
  interface SandboxRestoreSpec {
343
384
  fromSnapshot: string;
344
385
  fromSandboxId: string;
345
386
  }
387
+ /** Describe the failure details when resuming a stopped sandbox instance */
346
388
  interface StoppedSandboxResumeFailure {
347
389
  box: SandboxInstance;
348
390
  error: Error;
349
391
  scope: SandboxScope;
350
392
  boxKey: string;
351
393
  }
394
+ /** Define the structure for resuming a stopped sandbox with replacement key and optional restore options */
352
395
  interface StoppedSandboxResumeRecovery {
353
396
  replacementBoxKey: string;
354
397
  restore?: SandboxRestoreSpec | null;
355
398
  }
399
+ /** Define configuration for liveness probes including sidecar process pattern and optional timeouts */
356
400
  interface LivenessProbeConfig {
357
401
  sidecarProcessPattern: (harness: Harness) => string;
358
402
  execTimeoutMs?: number;
359
403
  psTimeoutMs?: number;
360
404
  }
405
+ /** Define options for composing a user profile including prompts, files, servers, and name */
361
406
  interface ProfileComposeOptions {
362
407
  systemPrompt?: string;
363
408
  extraFiles?: AgentProfileFileMount[];
364
409
  extraMcp?: Record<string, AgentProfileMcpServer>;
365
410
  name?: string;
366
411
  }
412
+ /** Define runtime configuration methods for sandbox environments including credentials, metadata, and permissions */
367
413
  interface SandboxRuntimeConfig {
368
414
  credentials: (scope?: SandboxScope) => SandboxClientCredentials | null | Promise<SandboxClientCredentials | null>;
369
415
  name: (workspaceId: string) => string;
@@ -388,14 +434,19 @@ interface SandboxRuntimeConfig {
388
434
  backendModelAtCreate?: boolean;
389
435
  deferProfileFiles?: boolean;
390
436
  }
437
+ /** Define default resource limits and settings for sandbox environments */
391
438
  declare const DEFAULT_SANDBOX_RESOURCES: SandboxResourceConfig;
439
+ /** Resolve a synchronous sandbox client from provided runtime configuration credentials */
392
440
  declare function getClient(shell: SandboxRuntimeConfig): Sandbox;
441
+ /** Reset the client cache to clear stored data and force fresh retrieval */
393
442
  declare function resetClientCache(): void;
443
+ /** Describe an application tool with its name, unique key, and description */
394
444
  interface AppToolDescriptor {
395
445
  tool: AppToolName;
396
446
  key: string;
397
447
  description: string;
398
448
  }
449
+ /** Define options for building MCP server configurations in the app tool environment */
399
450
  interface BuildAppToolMcpServersOptions {
400
451
  tools: AppToolDescriptor[];
401
452
  baseUrl: string;
@@ -403,7 +454,9 @@ interface BuildAppToolMcpServersOptions {
403
454
  ctx: AppToolContext;
404
455
  headerNames?: ToolHeaderNames;
405
456
  }
457
+ /** Build a mapping of MCP server profiles keyed by tool identifiers from provided options */
406
458
  declare function buildAppToolMcpServers(options: BuildAppToolMcpServersOptions): Record<string, AgentProfileMcpServer>;
459
+ /** Define options for ensuring a workspace sandbox with provisioning and progress handling */
407
460
  interface EnsureWorkspaceSandboxOptions {
408
461
  workspaceId: string;
409
462
  userId?: string;
@@ -412,40 +465,53 @@ interface EnsureWorkspaceSandboxOptions {
412
465
  onProgress?: (event: ProvisionEvent) => void;
413
466
  billingOwnerId?: string;
414
467
  }
468
+ /** Define the specification for a sandbox tool including its name, content, and optional executability */
415
469
  interface SandboxToolSpec {
416
470
  name: string;
417
471
  content: string;
418
472
  executable?: boolean;
419
473
  }
474
+ /** Define options for resolving sandbox tool paths including appName, baseDir, and binDir */
420
475
  interface SandboxToolPathOptions {
421
476
  appName: string;
422
477
  baseDir?: string;
423
478
  binDir?: string;
424
479
  }
480
+ /** Define options for building sandbox tool file mounts including tool specifications and paths */
425
481
  interface BuildSandboxToolFileMountsOptions extends SandboxToolPathOptions {
426
482
  tools: readonly SandboxToolSpec[];
427
483
  }
484
+ /** Resolve the root directory path for a sandbox tool based on provided options */
428
485
  declare function sandboxToolRootDir(options: SandboxToolPathOptions): string;
486
+ /** Resolve the binary directory path for a sandbox tool based on provided options */
429
487
  declare function sandboxToolBinDir(options: SandboxToolPathOptions): string;
488
+ /** Resolve the file system path to a specified sandbox tool based on given options */
430
489
  declare function sandboxToolPath(options: SandboxToolPathOptions & {
431
490
  toolName: string;
432
491
  }): string;
492
+ /** Build file mounts for sandbox tools based on provided options and tool configurations */
433
493
  declare function buildSandboxToolFileMounts(options: BuildSandboxToolFileMountsOptions): AgentProfileFileMount[];
494
+ /** Build a shell script that sets up and exports the sandbox tool binary directory in user profiles */
434
495
  declare function buildSandboxToolPathSetupScript(options: SandboxToolPathOptions): string;
496
+ /** Resolve the sandbox environment PATH setup by executing the configuration script with given options */
435
497
  declare function runSandboxToolPathSetup(box: SandboxInstance, options: SandboxToolPathOptions): Promise<Outcome<void>>;
498
+ /** Split profile files into inline deferred files and a lean profile without them */
436
499
  declare function splitDeferredProfileFiles(profile: AgentProfile): {
437
500
  leanProfile: AgentProfile;
438
501
  deferredFiles: AgentProfileFileMount[];
439
502
  };
440
503
  type ExistingBoxStage = 'reused' | 'resumed';
504
+ /** Represent an error thrown when sandbox runtime authentication refresh fails for a specific stage and name */
441
505
  declare class SandboxRuntimeAuthRefreshError extends Error {
442
506
  constructor(stage: ExistingBoxStage, name: string, detail: string, cause?: unknown);
443
507
  }
508
+ /** Define options to control execution timeout, pacing, and retry behavior when writing profile files */
444
509
  interface WriteProfileFilesOptions {
445
510
  execTimeoutMs?: number;
446
511
  paceMs?: number;
447
512
  maxRetries?: number;
448
513
  }
514
+ /** Write profile files to a sandbox with pacing, retries, and optional execution timeout handling */
449
515
  declare function writeProfileFilesToBox(box: SandboxInstance, files: AgentProfileFileMount[], options?: WriteProfileFilesOptions): Promise<Outcome<void>>;
450
516
  /** Stable content hash of the deferred file corpus (path + inline content).
451
517
  * Unchanged corpus ⇒ same hash; a new/edited/removed skill ⇒ different hash.
@@ -545,18 +611,23 @@ declare function peekWorkspaceSandbox(shell: SandboxRuntimeConfig, options: {
545
611
  workspaceId: string;
546
612
  userId?: string;
547
613
  }): Promise<PeekWorkspaceSandboxOutcome>;
614
+ /** Resolve or create a workspace sandbox instance with optional reuse and progress tracking */
548
615
  declare function ensureWorkspaceSandbox(shell: SandboxRuntimeConfig, options: EnsureWorkspaceSandboxOptions): Promise<SandboxInstance>;
616
+ /** Represent a fully configured model with optional API key and base URL for sandbox platform integration */
549
617
  interface ResolvedModel {
550
618
  model: string;
551
619
  provider: string;
552
620
  apiKey?: string;
553
621
  baseUrl?: string;
554
622
  }
623
+ /** Resolve and return the appropriate model configuration based on provider settings and optional overrides */
555
624
  declare function resolveModel(config: ProviderResolutionConfig | undefined, override?: {
556
625
  model?: string;
557
626
  modelApiKey?: string;
558
627
  }): ResolvedModel | undefined;
628
+ /** Extract a single element type from the array parameter of SandboxInstance's streamPrompt method */
559
629
  type PromptInputPart = Extract<Parameters<SandboxInstance['streamPrompt']>[0], readonly unknown[]>[number];
630
+ /** Build a single string combining conversation history and the current user message */
560
631
  declare function flattenHistory(message: string, history?: Array<{
561
632
  role: 'user' | 'assistant';
562
633
  content: string;
@@ -570,8 +641,11 @@ declare function mergeHistoryIntoParts(parts: PromptInputPart[], history?: Array
570
641
  role: 'user' | 'assistant';
571
642
  content: string;
572
643
  }>): PromptInputPart[];
644
+ /** Resolve conflicts and merge extra MCP profiles into the app tool MCP without overwriting existing keys */
573
645
  declare function mergeExtraMcp(appToolMcp: Record<string, AgentProfileMcpServer>, baseProfileMcp: Record<string, AgentProfileMcpServer>, extra: Record<string, AgentProfileMcpServer> | undefined): Record<string, AgentProfileMcpServer>;
646
+ /** Attach a specified reasoning effort level to an agent profile for a given harness */
574
647
  declare function attachReasoningEffort(profile: AgentProfile, harness: Harness, effort: 'auto' | 'low' | 'medium' | 'high' | undefined): AgentProfile;
648
+ /** Define options for configuring and controlling a streaming sandbox prompt session */
575
649
  interface StreamSandboxPromptOptions {
576
650
  sessionId?: string;
577
651
  executionId?: string;
@@ -599,25 +673,38 @@ interface StreamSandboxPromptOptions {
599
673
  };
600
674
  detach?: boolean;
601
675
  }
676
+ /** Resolve and stream AI-generated responses from a sandboxed environment based on input messages and options */
602
677
  declare function streamSandboxPrompt(shell: SandboxRuntimeConfig, box: SandboxInstance, message: string | PromptInputPart[], options?: StreamSandboxPromptOptions): AsyncGenerator<unknown>;
678
+ /** Resolve a sandbox prompt by streaming and aggregating message parts into a complete string */
603
679
  declare function runSandboxPrompt(shell: SandboxRuntimeConfig, box: SandboxInstance, message: string | PromptInputPart[], options?: StreamSandboxPromptOptions): Promise<string>;
680
+ /** Define permission levels for sandbox access and control */
604
681
  type SandboxPermissionLevel = 'owner' | 'admin' | 'developer' | 'viewer';
682
+ /** Map workspace roles to corresponding sandbox permission levels */
605
683
  interface MemberSyncSeam {
606
684
  roleToSandboxRole: (workspaceRole: string) => SandboxPermissionLevel;
607
685
  }
686
+ /** Resolve adding a user with a specific role to a sandbox and return the operation outcome */
608
687
  declare function syncSandboxMemberAdd(box: SandboxInstance, seam: MemberSyncSeam, userId: string, role: string): Promise<Outcome<void>>;
688
+ /** Remove a member from the sandbox while preserving their home directory and handle the outcome */
609
689
  declare function syncSandboxMemberRemove(box: SandboxInstance, userId: string): Promise<Outcome<void>>;
690
+ /** Synchronize a sandbox member's role by updating permissions based on the provided role mapping */
610
691
  declare function syncSandboxMemberRole(box: SandboxInstance, seam: MemberSyncSeam, userId: string, role: string): Promise<Outcome<void>>;
692
+ /** Define methods to create, update, retrieve, and delete secrets asynchronously */
611
693
  interface SecretStore {
612
694
  create: (name: string, value: string) => Promise<void>;
613
695
  update: (name: string, value: string) => Promise<void>;
614
696
  get: (name: string) => Promise<string>;
615
697
  delete: (name: string) => Promise<void>;
616
698
  }
699
+ /** Resolve a SecretStore interface using the provided SandboxRuntimeConfig shell */
617
700
  declare function secretStoreFromClient(shell: SandboxRuntimeConfig): SecretStore;
701
+ /** Resolve storing a secret by creating or updating it in the given SecretStore */
618
702
  declare function storeSecret(store: SecretStore, name: string, value: string): Promise<Outcome<void>>;
703
+ /** Resolve a secret value from the store by its name and return the outcome asynchronously */
619
704
  declare function readSecret(store: SecretStore, name: string): Promise<Outcome<string>>;
705
+ /** Delete a secret by name from the given secret store and return the operation outcome */
620
706
  declare function deleteSecret(store: SecretStore, name: string): Promise<Outcome<void>>;
707
+ /** Represent a token with its expiration date and associated scope */
621
708
  interface ScopedTokenResult {
622
709
  token: string;
623
710
  expiresAt: Date;
@@ -633,6 +720,7 @@ declare function mintSandboxScopedToken(box: SandboxInstance, options: {
633
720
  sessionId?: string;
634
721
  ttlMinutes?: number;
635
722
  }): Promise<Outcome<ScopedTokenResult>>;
723
+ /** Define options to manage deterministic session resumption and turn idempotency in sandboxed drive turns */
636
724
  interface DriveSandboxTurnOptions extends StreamSandboxPromptOptions {
637
725
  /** Deterministic resume key — required. Every tick for the same logical turn
638
726
  * MUST reuse it so a crash + re-drive finds the in-flight session instead of
@@ -646,7 +734,9 @@ interface DriveSandboxTurnOptions extends StreamSandboxPromptOptions {
646
734
  * turn that stalled on an interactive question nothing will answer). Omit for no cap. */
647
735
  wallCapMs?: number;
648
736
  }
737
+ /** Resolve a sandbox turn by processing a message with given configuration and options */
649
738
  declare function driveSandboxTurn(shell: SandboxRuntimeConfig, box: SandboxInstance, message: string | PromptInputPart[], options: DriveSandboxTurnOptions): Promise<Outcome<TurnDriveResult>>;
739
+ /** Define transitions marking the start or finish of a sandbox step with associated details */
650
740
  type SandboxStepTransition = {
651
741
  kind: 'step-start';
652
742
  } | {
@@ -654,8 +744,11 @@ type SandboxStepTransition = {
654
744
  reason: string;
655
745
  severed: boolean;
656
746
  };
747
+ /** Resolve the severed stream event to a corresponding sandbox step transition or null */
657
748
  declare function classifySeveredStream(event: unknown): SandboxStepTransition | null;
749
+ /** Determine if an event is a terminal prompt event with type 'result' or 'done */
658
750
  declare function isTerminalPromptEvent(event: unknown): boolean;
751
+ /** Resolve the interactive question text from a structured event or return null if none found */
659
752
  declare function detectInteractiveQuestion(event: unknown): string | null;
660
753
 
661
754
  export { type AppToolDescriptor, type AuthenticatedSandboxUser, type BuildAppToolMcpServersOptions, type BuildSandboxToolFileMountsOptions, DEFAULT_SANDBOX_RESOURCES, type DriveSandboxTurnOptions, ENV_TOTAL_MAX_BYTES, ENV_VALUE_MAX_BYTES, type EnsureWorkspaceSandboxOptions, type LivenessProbeConfig, type MemberSyncSeam, type Outcome, PROVISION_PAYLOAD_MAX_BYTES, type PeekWorkspaceSandboxOutcome, type ProfileComposeOptions, type PromptInputPart, type ProviderResolutionConfig, type ProvisionPayloadSections, type ProvisionProfileSection, type ResolveSandboxClientCredentialsOptions, type ResolvedModel, type SandboxApiCredentials, type SandboxBuildContext, type SandboxClientCredentials, type SandboxCredentialEnvironment, type SandboxExecChannel, type SandboxExecOptions, type SandboxFileBytesOutcome, type SandboxFileSizeOutcome, type SandboxPermissionLevel, type SandboxResourceConfig, type SandboxRestoreSpec, SandboxRuntimeAuthRefreshError, type SandboxRuntimeConfig, type SandboxRuntimeConnection, type SandboxScope, type SandboxStepTransition, type SandboxTerminalTokenOptions, type SandboxTerminalTokenResult, type SandboxTerminalTokenSubject, type SandboxTerminalWsMatch, type SandboxToolPathOptions, type SandboxToolSpec, type ScopedTokenResult, type SecretStore, type StoppedSandboxResumeFailure, type StoppedSandboxResumeRecovery, type StreamSandboxPromptOptions, type TerminalProxyIdentity, type WorkspaceSandboxConnectionArgs, type WorkspaceSandboxConnectionHandlerOptions, type WorkspaceSandboxEnsureContext, type WorkspaceSandboxInstanceLike, type WorkspaceSandboxManager, type WorkspaceSandboxManagerOptions, type WorkspaceSandboxRuntimeProxyArgs, type WorkspaceSandboxRuntimeProxyHandlerOptions, type WorkspaceSandboxTerminalUpgradeHandlerOptions, type WriteProfileFilesOptions, assertEnvWithinLimits, assertProvisionPayloadWithinCap, attachReasoningEffort, bearerSubprotocolToken, bearerToken, buildAppToolMcpServers, buildSandboxRuntimeProxyHeaders, buildSandboxToolFileMounts, buildSandboxToolPathSetupScript, classifySeveredStream, createSandboxTerminalToken, createWorkspaceSandboxConnectionHandler, createWorkspaceSandboxManager, createWorkspaceSandboxRuntimeProxyHandler, createWorkspaceSandboxTerminalUpgradeHandler, deferredCorpusHash, deleteSecret, detectInteractiveQuestion, driveSandboxTurn, encodeSandboxRuntimePath, ensureWorkspaceSandbox, flattenHistory, getClient, isSandboxTerminalWsUpgrade, isTerminalPromptEvent, matchSandboxTerminalWsPath, mergeExtraMcp, mergeHistoryIntoParts, mintSandboxScopedToken, mintTerminalProxyToken, peekWorkspaceSandbox, readSandboxBinaryBytes, readSecret, resetClientCache, resolveModel, resolveSandboxClientCredentials, runSandboxPrompt, runSandboxToolPathSetup, sandboxToolBinDir, sandboxToolPath, sandboxToolRootDir, secretStoreFromClient, shellQuote, splitDeferredProfileFiles, statSandboxFileSize, storeSecret, streamSandboxPrompt, syncSandboxMemberAdd, syncSandboxMemberRemove, syncSandboxMemberRole, terminalTokenFromRequest, verifySandboxTerminalToken, verifyTerminalProxyToken, writeProfileFilesToBox };
@@ -58,13 +58,13 @@ import {
58
58
  verifySandboxTerminalToken,
59
59
  verifyTerminalProxyToken,
60
60
  writeProfileFilesToBox
61
- } from "../chunk-HRJJH3RX.js";
62
- import "../chunk-MCJSS6SM.js";
63
- import "../chunk-PJC4NXPA.js";
64
- import "../chunk-7EVZUIHW.js";
61
+ } from "../chunk-3OFQFW5K.js";
62
+ import "../chunk-CQZSAR77.js";
63
+ import "../chunk-YKBDH2UY.js";
64
+ import "../chunk-3EJ6SFJI.js";
65
65
  import "../chunk-S5SRJJQG.js";
66
- import "../chunk-7W5XSTUF.js";
67
- import "../chunk-MFRCM32T.js";
66
+ import "../chunk-JML7WKWU.js";
67
+ import "../chunk-7CTIUCQ4.js";
68
68
  export {
69
69
  DEFAULT_SANDBOX_RESOURCES,
70
70
  ENV_TOTAL_MAX_BYTES,
@@ -1,3 +1,4 @@
1
+ /** Define the connection details and status for a sandbox terminal session */
1
2
  interface SandboxTerminalConnection {
2
3
  runtimeUrl: string | null;
3
4
  sidecarUrl: string | null;
@@ -8,6 +9,7 @@ interface SandboxTerminalConnection {
8
9
  loading: boolean;
9
10
  sandboxId?: string;
10
11
  }
12
+ /** Define the response structure for a sandbox terminal connection including URLs, token, status, and errors */
11
13
  interface SandboxTerminalConnectionResponse {
12
14
  runtimeUrl?: string;
13
15
  sidecarUrl?: string;
@@ -17,6 +19,7 @@ interface SandboxTerminalConnectionResponse {
17
19
  error?: string;
18
20
  sandboxId?: string;
19
21
  }
22
+ /** Define options for configuring a sandbox terminal connection including workspace ID and connection parameters */
20
23
  interface UseSandboxTerminalConnectionOptions {
21
24
  workspaceId: string;
22
25
  connectionUrl?: string | ((workspaceId: string) => string);
@@ -25,9 +28,11 @@ interface UseSandboxTerminalConnectionOptions {
25
28
  provisionPollTimeoutMs?: number;
26
29
  tokenRefreshSkewMs?: number;
27
30
  }
31
+ /** Resolve sandbox terminal connection status and provide a method to initiate the connection */
28
32
  interface UseSandboxTerminalConnectionResult extends SandboxTerminalConnection {
29
33
  connect: () => Promise<void>;
30
34
  }
35
+ /** Manage and maintain a sandbox terminal connection with automatic polling and token refresh handling */
31
36
  declare function useSandboxTerminalConnection(opts: UseSandboxTerminalConnectionOptions): UseSandboxTerminalConnectionResult;
32
37
  /**
33
38
  * Stable-per-tab, unique-per-client terminal connection id.
@@ -1,17 +1,19 @@
1
1
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
2
2
  import { AnySQLiteTable, AnySQLiteColumn, BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
3
- import { n as SequenceStoreScope, c as SequenceClipMedia, m as SequenceStore } from '../store-gckrNq-g.js';
3
+ import { S as SequenceStoreScope, a as SequenceClipMedia, b as SequenceStore } from '../store-B7LLlk9p.js';
4
4
 
5
5
  /** A product table referenced by FK — only the `id` column is touched. */
6
6
  type SequenceParentTable = AnySQLiteTable & {
7
7
  id: AnySQLiteColumn;
8
8
  };
9
+ /** Define options for creating sequence-related database tables including workspace and user tables */
9
10
  interface CreateSequenceTablesOptions {
10
11
  workspaceTable: SequenceParentTable;
11
12
  userTable: SequenceParentTable;
12
13
  generationTable?: SequenceParentTable;
13
14
  assetTable?: SequenceParentTable;
14
15
  }
16
+ /** Build SQLite sequence tables with defined columns and relationships based on provided options */
15
17
  declare function createSequenceTables(opts: CreateSequenceTablesOptions): {
16
18
  sequences: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
17
19
  name: "sequence";
@@ -1202,11 +1204,17 @@ declare function createSequenceTables(opts: CreateSequenceTablesOptions): {
1202
1204
  dialect: "sqlite";
1203
1205
  }>;
1204
1206
  };
1207
+ /** Resolve sequence tables by invoking the createSequenceTables factory function */
1205
1208
  type SequenceTables = ReturnType<typeof createSequenceTables>;
1209
+ /** Resolve a sequence row by inferring the selected fields from the sequences table */
1206
1210
  type SequenceRow = SequenceTables['sequences']['$inferSelect'];
1211
+ /** Resolve the selected sequence track row from the sequenceTracks table */
1207
1212
  type SequenceTrackRow = SequenceTables['sequenceTracks']['$inferSelect'];
1213
+ /** Resolve the selected fields of sequence clips from the sequence tables data structure */
1208
1214
  type SequenceClipRow = SequenceTables['sequenceClips']['$inferSelect'];
1215
+ /** Resolve a sequence decision row from the sequenceDecisions table data */
1209
1216
  type SequenceDecisionRow = SequenceTables['sequenceDecisions']['$inferSelect'];
1217
+ /** Resolve a row type representing exported sequence data from sequenceExports table */
1210
1218
  type SequenceExportRow = SequenceTables['sequenceExports']['$inferSelect'];
1211
1219
 
1212
1220
  /**
@@ -1233,12 +1241,14 @@ type SequenceDatabase = BaseSQLiteDatabase<'sync' | 'async', any, any>;
1233
1241
  /** Resolves product-specific media (generation rows, asset rows) for a batch
1234
1242
  * of clip rows. Keyed by clip id; clips absent from the map carry no media. */
1235
1243
  type SequenceMediaResolver = (clipRows: SequenceClipRow[]) => Promise<Map<string, SequenceClipMedia>>;
1244
+ /** Define options for creating a Drizzle sequence store including database, tables, scope, and media resolver */
1236
1245
  interface CreateDrizzleSequenceStoreOptions {
1237
1246
  db: SequenceDatabase;
1238
1247
  tables: SequenceTables;
1239
1248
  scope: SequenceStoreScope;
1240
1249
  resolveMedia?: SequenceMediaResolver;
1241
1250
  }
1251
+ /** Create a sequence store scoped to a specific sequence and workspace with database access and media resolution */
1242
1252
  declare function createDrizzleSequenceStore(options: CreateDrizzleSequenceStoreOptions): SequenceStore;
1243
1253
 
1244
1254
  export { type CreateDrizzleSequenceStoreOptions, type CreateSequenceTablesOptions, type SequenceClipRow, type SequenceDatabase, type SequenceDecisionRow, type SequenceExportRow, type SequenceMediaResolver, type SequenceParentTable, type SequenceRow, type SequenceTables, type SequenceTrackRow, createDrizzleSequenceStore, createSequenceTables };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MIN_SEQUENCE_CLIP_FRAMES
3
- } from "../chunk-ZYBWGSAZ.js";
3
+ } from "../chunk-BVKQKGRK.js";
4
4
 
5
5
  // src/sequences/schema.ts
6
6
  import { sql } from "drizzle-orm";