@playcraft/common 0.1.51 → 0.1.53-beta

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 (438) hide show
  1. package/README.md +1 -1
  2. package/dist/agent/competitor-report.d.ts +1 -1
  3. package/dist/agent/session-title.d.ts +1 -1
  4. package/dist/agent/session-title.js +1 -1
  5. package/dist/agent-messages/db-message-converter.d.ts +10 -0
  6. package/dist/agent-messages/db-message-converter.d.ts.map +1 -1
  7. package/dist/agent-messages/db-message-converter.js +13 -0
  8. package/dist/agent-messages/db-message-converter.js.map +1 -1
  9. package/dist/agent-tools/index.d.ts +5 -0
  10. package/dist/agent-tools/index.d.ts.map +1 -1
  11. package/dist/agent-tools/index.js +5 -0
  12. package/dist/agent-tools/index.js.map +1 -1
  13. package/dist/agent-tools/operation-protocol.d.ts +10 -0
  14. package/dist/agent-tools/operation-protocol.d.ts.map +1 -0
  15. package/dist/agent-tools/operation-protocol.js +13 -0
  16. package/dist/agent-tools/operation-protocol.js.map +1 -0
  17. package/dist/agent-tools/replica-recording.d.ts +283 -0
  18. package/dist/agent-tools/replica-recording.d.ts.map +1 -0
  19. package/dist/agent-tools/replica-recording.js +109 -0
  20. package/dist/agent-tools/replica-recording.js.map +1 -0
  21. package/dist/agent-tools/replica-validation.d.ts +972 -0
  22. package/dist/agent-tools/replica-validation.d.ts.map +1 -0
  23. package/dist/agent-tools/replica-validation.js +254 -0
  24. package/dist/agent-tools/replica-validation.js.map +1 -0
  25. package/dist/agent-tools/types.d.ts +9 -1
  26. package/dist/agent-tools/types.d.ts.map +1 -1
  27. package/dist/agent-tools/types.js.map +1 -1
  28. package/dist/agent-tools/video-model-proxy.d.ts +113 -0
  29. package/dist/agent-tools/video-model-proxy.d.ts.map +1 -0
  30. package/dist/agent-tools/video-model-proxy.js +49 -0
  31. package/dist/agent-tools/video-model-proxy.js.map +1 -0
  32. package/dist/agent-tools/video-replication.d.ts +421 -0
  33. package/dist/agent-tools/video-replication.d.ts.map +1 -0
  34. package/dist/agent-tools/video-replication.js +95 -0
  35. package/dist/agent-tools/video-replication.js.map +1 -0
  36. package/dist/asset-library-stream.d.ts +14 -0
  37. package/dist/asset-library-stream.d.ts.map +1 -0
  38. package/dist/asset-library-stream.js +101 -0
  39. package/dist/asset-library-stream.js.map +1 -0
  40. package/dist/cloud-workspace/runtime/agent-background-processes.d.ts +68 -0
  41. package/dist/cloud-workspace/runtime/agent-background-processes.d.ts.map +1 -0
  42. package/dist/cloud-workspace/runtime/agent-background-processes.js +60 -0
  43. package/dist/cloud-workspace/runtime/agent-background-processes.js.map +1 -0
  44. package/dist/cloud-workspace/runtime/agent-chat-flush.d.ts +55 -0
  45. package/dist/cloud-workspace/runtime/agent-chat-flush.d.ts.map +1 -0
  46. package/dist/cloud-workspace/runtime/agent-chat-flush.js +51 -0
  47. package/dist/cloud-workspace/runtime/agent-chat-flush.js.map +1 -0
  48. package/dist/cloud-workspace/runtime/agent-command.d.ts +152 -0
  49. package/dist/cloud-workspace/runtime/agent-command.d.ts.map +1 -0
  50. package/dist/cloud-workspace/runtime/agent-command.js +90 -0
  51. package/dist/cloud-workspace/runtime/agent-command.js.map +1 -0
  52. package/dist/cloud-workspace/runtime/agent-competitor-report.d.ts +143 -0
  53. package/dist/cloud-workspace/runtime/agent-competitor-report.d.ts.map +1 -0
  54. package/dist/cloud-workspace/runtime/agent-competitor-report.js +115 -0
  55. package/dist/cloud-workspace/runtime/agent-competitor-report.js.map +1 -0
  56. package/dist/cloud-workspace/runtime/agent-connection.d.ts +76 -0
  57. package/dist/cloud-workspace/runtime/agent-connection.d.ts.map +1 -0
  58. package/dist/cloud-workspace/runtime/agent-connection.js +59 -0
  59. package/dist/cloud-workspace/runtime/agent-connection.js.map +1 -0
  60. package/dist/cloud-workspace/runtime/agent-issue-artifacts.d.ts +90 -0
  61. package/dist/cloud-workspace/runtime/agent-issue-artifacts.d.ts.map +1 -0
  62. package/dist/cloud-workspace/runtime/agent-issue-artifacts.js +60 -0
  63. package/dist/cloud-workspace/runtime/agent-issue-artifacts.js.map +1 -0
  64. package/dist/cloud-workspace/runtime/agent-lifecycle.d.ts +87 -0
  65. package/dist/cloud-workspace/runtime/agent-lifecycle.d.ts.map +1 -0
  66. package/dist/cloud-workspace/runtime/agent-lifecycle.js +75 -0
  67. package/dist/cloud-workspace/runtime/agent-lifecycle.js.map +1 -0
  68. package/dist/cloud-workspace/runtime/agent-mutation.d.ts +197 -0
  69. package/dist/cloud-workspace/runtime/agent-mutation.d.ts.map +1 -0
  70. package/dist/cloud-workspace/runtime/agent-mutation.js +114 -0
  71. package/dist/cloud-workspace/runtime/agent-mutation.js.map +1 -0
  72. package/dist/cloud-workspace/runtime/agent-opencode-gateway.d.ts +230 -0
  73. package/dist/cloud-workspace/runtime/agent-opencode-gateway.d.ts.map +1 -0
  74. package/dist/cloud-workspace/runtime/agent-opencode-gateway.js +185 -0
  75. package/dist/cloud-workspace/runtime/agent-opencode-gateway.js.map +1 -0
  76. package/dist/cloud-workspace/runtime/agent-opencode.d.ts +406 -0
  77. package/dist/cloud-workspace/runtime/agent-opencode.d.ts.map +1 -0
  78. package/dist/cloud-workspace/runtime/agent-opencode.js +237 -0
  79. package/dist/cloud-workspace/runtime/agent-opencode.js.map +1 -0
  80. package/dist/cloud-workspace/runtime/agent-promotion.d.ts +21 -0
  81. package/dist/cloud-workspace/runtime/agent-promotion.d.ts.map +1 -0
  82. package/dist/cloud-workspace/runtime/agent-promotion.js +23 -0
  83. package/dist/cloud-workspace/runtime/agent-promotion.js.map +1 -0
  84. package/dist/cloud-workspace/runtime/agent-read.d.ts +343 -0
  85. package/dist/cloud-workspace/runtime/agent-read.d.ts.map +1 -0
  86. package/dist/cloud-workspace/runtime/agent-read.js +159 -0
  87. package/dist/cloud-workspace/runtime/agent-read.js.map +1 -0
  88. package/dist/cloud-workspace/runtime/agent-source-project.d.ts +126 -0
  89. package/dist/cloud-workspace/runtime/agent-source-project.d.ts.map +1 -0
  90. package/dist/cloud-workspace/runtime/agent-source-project.js +95 -0
  91. package/dist/cloud-workspace/runtime/agent-source-project.js.map +1 -0
  92. package/dist/cloud-workspace/runtime/agent-tool-claim.d.ts +18 -0
  93. package/dist/cloud-workspace/runtime/agent-tool-claim.d.ts.map +1 -0
  94. package/dist/cloud-workspace/runtime/agent-tool-claim.js +16 -0
  95. package/dist/cloud-workspace/runtime/agent-tool-claim.js.map +1 -0
  96. package/dist/cloud-workspace/runtime/agent-variant-chat.d.ts +9 -0
  97. package/dist/cloud-workspace/runtime/agent-variant-chat.d.ts.map +1 -0
  98. package/dist/cloud-workspace/runtime/agent-variant-chat.js +23 -0
  99. package/dist/cloud-workspace/runtime/agent-variant-chat.js.map +1 -0
  100. package/dist/cloud-workspace/runtime/agent-variant-git.d.ts +75 -0
  101. package/dist/cloud-workspace/runtime/agent-variant-git.d.ts.map +1 -0
  102. package/dist/cloud-workspace/runtime/agent-variant-git.js +62 -0
  103. package/dist/cloud-workspace/runtime/agent-variant-git.js.map +1 -0
  104. package/dist/cloud-workspace/runtime/animation-editor.d.ts +766 -0
  105. package/dist/cloud-workspace/runtime/animation-editor.d.ts.map +1 -0
  106. package/dist/cloud-workspace/runtime/animation-editor.js +84 -0
  107. package/dist/cloud-workspace/runtime/animation-editor.js.map +1 -0
  108. package/dist/cloud-workspace/runtime/animation-quality.d.ts +33 -0
  109. package/dist/cloud-workspace/runtime/animation-quality.d.ts.map +1 -0
  110. package/dist/cloud-workspace/runtime/animation-quality.js +14 -0
  111. package/dist/cloud-workspace/runtime/animation-quality.js.map +1 -0
  112. package/dist/cloud-workspace/runtime/artifacts.d.ts +239 -0
  113. package/dist/cloud-workspace/runtime/artifacts.d.ts.map +1 -0
  114. package/dist/cloud-workspace/runtime/artifacts.js +105 -0
  115. package/dist/cloud-workspace/runtime/artifacts.js.map +1 -0
  116. package/dist/cloud-workspace/runtime/asset-generation-bundle.d.ts +61 -0
  117. package/dist/cloud-workspace/runtime/asset-generation-bundle.d.ts.map +1 -0
  118. package/dist/cloud-workspace/runtime/asset-generation-bundle.js +59 -0
  119. package/dist/cloud-workspace/runtime/asset-generation-bundle.js.map +1 -0
  120. package/dist/cloud-workspace/runtime/asset-generation-video-validator.d.ts +15 -0
  121. package/dist/cloud-workspace/runtime/asset-generation-video-validator.d.ts.map +1 -0
  122. package/dist/cloud-workspace/runtime/asset-generation-video-validator.js +63 -0
  123. package/dist/cloud-workspace/runtime/asset-generation-video-validator.js.map +1 -0
  124. package/dist/cloud-workspace/runtime/asset-generation-video.d.ts +92 -0
  125. package/dist/cloud-workspace/runtime/asset-generation-video.d.ts.map +1 -0
  126. package/dist/cloud-workspace/runtime/asset-generation-video.js +63 -0
  127. package/dist/cloud-workspace/runtime/asset-generation-video.js.map +1 -0
  128. package/dist/cloud-workspace/runtime/asset-generation.d.ts +913 -0
  129. package/dist/cloud-workspace/runtime/asset-generation.d.ts.map +1 -0
  130. package/dist/cloud-workspace/runtime/asset-generation.js +177 -0
  131. package/dist/cloud-workspace/runtime/asset-generation.js.map +1 -0
  132. package/dist/cloud-workspace/runtime/asset-library-import.d.ts +73 -0
  133. package/dist/cloud-workspace/runtime/asset-library-import.d.ts.map +1 -0
  134. package/dist/cloud-workspace/runtime/asset-library-import.js +37 -0
  135. package/dist/cloud-workspace/runtime/asset-library-import.js.map +1 -0
  136. package/dist/cloud-workspace/runtime/asset-library-save.d.ts +296 -0
  137. package/dist/cloud-workspace/runtime/asset-library-save.d.ts.map +1 -0
  138. package/dist/cloud-workspace/runtime/asset-library-save.js +114 -0
  139. package/dist/cloud-workspace/runtime/asset-library-save.js.map +1 -0
  140. package/dist/cloud-workspace/runtime/asset-transfers.d.ts +92 -0
  141. package/dist/cloud-workspace/runtime/asset-transfers.d.ts.map +1 -0
  142. package/dist/cloud-workspace/runtime/asset-transfers.js +119 -0
  143. package/dist/cloud-workspace/runtime/asset-transfers.js.map +1 -0
  144. package/dist/cloud-workspace/runtime/attachment-base64.d.ts +3 -0
  145. package/dist/cloud-workspace/runtime/attachment-base64.d.ts.map +1 -0
  146. package/dist/cloud-workspace/runtime/attachment-base64.js +8 -0
  147. package/dist/cloud-workspace/runtime/attachment-base64.js.map +1 -0
  148. package/dist/cloud-workspace/runtime/attachments.d.ts +33 -0
  149. package/dist/cloud-workspace/runtime/attachments.d.ts.map +1 -0
  150. package/dist/cloud-workspace/runtime/attachments.js +35 -0
  151. package/dist/cloud-workspace/runtime/attachments.js.map +1 -0
  152. package/dist/cloud-workspace/runtime/batch-generation.d.ts +96 -0
  153. package/dist/cloud-workspace/runtime/batch-generation.d.ts.map +1 -0
  154. package/dist/cloud-workspace/runtime/batch-generation.js +77 -0
  155. package/dist/cloud-workspace/runtime/batch-generation.js.map +1 -0
  156. package/dist/cloud-workspace/runtime/batch-production.d.ts +66 -0
  157. package/dist/cloud-workspace/runtime/batch-production.d.ts.map +1 -0
  158. package/dist/cloud-workspace/runtime/batch-production.js +35 -0
  159. package/dist/cloud-workspace/runtime/batch-production.js.map +1 -0
  160. package/dist/cloud-workspace/runtime/batch-runs.d.ts +713 -0
  161. package/dist/cloud-workspace/runtime/batch-runs.d.ts.map +1 -0
  162. package/dist/cloud-workspace/runtime/batch-runs.js +227 -0
  163. package/dist/cloud-workspace/runtime/batch-runs.js.map +1 -0
  164. package/dist/cloud-workspace/runtime/batch-source.d.ts +20 -0
  165. package/dist/cloud-workspace/runtime/batch-source.d.ts.map +1 -0
  166. package/dist/cloud-workspace/runtime/batch-source.js +28 -0
  167. package/dist/cloud-workspace/runtime/batch-source.js.map +1 -0
  168. package/dist/cloud-workspace/runtime/capabilities.d.ts +40 -0
  169. package/dist/cloud-workspace/runtime/capabilities.d.ts.map +1 -0
  170. package/dist/cloud-workspace/runtime/capabilities.js +53 -0
  171. package/dist/cloud-workspace/runtime/capabilities.js.map +1 -0
  172. package/dist/cloud-workspace/runtime/chat-realtime-admission.d.ts +53 -0
  173. package/dist/cloud-workspace/runtime/chat-realtime-admission.d.ts.map +1 -0
  174. package/dist/cloud-workspace/runtime/chat-realtime-admission.js +95 -0
  175. package/dist/cloud-workspace/runtime/chat-realtime-admission.js.map +1 -0
  176. package/dist/cloud-workspace/runtime/chat-realtime.d.ts +197 -0
  177. package/dist/cloud-workspace/runtime/chat-realtime.d.ts.map +1 -0
  178. package/dist/cloud-workspace/runtime/chat-realtime.js +300 -0
  179. package/dist/cloud-workspace/runtime/chat-realtime.js.map +1 -0
  180. package/dist/cloud-workspace/runtime/checkpoints.d.ts +35 -0
  181. package/dist/cloud-workspace/runtime/checkpoints.d.ts.map +1 -0
  182. package/dist/cloud-workspace/runtime/checkpoints.js +35 -0
  183. package/dist/cloud-workspace/runtime/checkpoints.js.map +1 -0
  184. package/dist/cloud-workspace/runtime/cloud-assets.d.ts +119 -0
  185. package/dist/cloud-workspace/runtime/cloud-assets.d.ts.map +1 -0
  186. package/dist/cloud-workspace/runtime/cloud-assets.js +51 -0
  187. package/dist/cloud-workspace/runtime/cloud-assets.js.map +1 -0
  188. package/dist/cloud-workspace/runtime/composer-context.d.ts +82 -0
  189. package/dist/cloud-workspace/runtime/composer-context.d.ts.map +1 -0
  190. package/dist/cloud-workspace/runtime/composer-context.js +51 -0
  191. package/dist/cloud-workspace/runtime/composer-context.js.map +1 -0
  192. package/dist/cloud-workspace/runtime/config.d.ts +48 -0
  193. package/dist/cloud-workspace/runtime/config.d.ts.map +1 -0
  194. package/dist/cloud-workspace/runtime/config.js +126 -0
  195. package/dist/cloud-workspace/runtime/config.js.map +1 -0
  196. package/dist/cloud-workspace/runtime/connectivity.d.ts +211 -0
  197. package/dist/cloud-workspace/runtime/connectivity.d.ts.map +1 -0
  198. package/dist/cloud-workspace/runtime/connectivity.js +46 -0
  199. package/dist/cloud-workspace/runtime/connectivity.js.map +1 -0
  200. package/dist/cloud-workspace/runtime/delivery.d.ts +1042 -0
  201. package/dist/cloud-workspace/runtime/delivery.d.ts.map +1 -0
  202. package/dist/cloud-workspace/runtime/delivery.js +208 -0
  203. package/dist/cloud-workspace/runtime/delivery.js.map +1 -0
  204. package/dist/cloud-workspace/runtime/directories.d.ts +32 -0
  205. package/dist/cloud-workspace/runtime/directories.d.ts.map +1 -0
  206. package/dist/cloud-workspace/runtime/directories.js +44 -0
  207. package/dist/cloud-workspace/runtime/directories.js.map +1 -0
  208. package/dist/cloud-workspace/runtime/directory-attachments.d.ts +28 -0
  209. package/dist/cloud-workspace/runtime/directory-attachments.d.ts.map +1 -0
  210. package/dist/cloud-workspace/runtime/directory-attachments.js +30 -0
  211. package/dist/cloud-workspace/runtime/directory-attachments.js.map +1 -0
  212. package/dist/cloud-workspace/runtime/errors.d.ts +26 -0
  213. package/dist/cloud-workspace/runtime/errors.d.ts.map +1 -0
  214. package/dist/cloud-workspace/runtime/errors.js +40 -0
  215. package/dist/cloud-workspace/runtime/errors.js.map +1 -0
  216. package/dist/cloud-workspace/runtime/events.d.ts +107 -0
  217. package/dist/cloud-workspace/runtime/events.d.ts.map +1 -0
  218. package/dist/cloud-workspace/runtime/events.js +70 -0
  219. package/dist/cloud-workspace/runtime/events.js.map +1 -0
  220. package/dist/cloud-workspace/runtime/execution-admission.d.ts +201 -0
  221. package/dist/cloud-workspace/runtime/execution-admission.d.ts.map +1 -0
  222. package/dist/cloud-workspace/runtime/execution-admission.js +127 -0
  223. package/dist/cloud-workspace/runtime/execution-admission.js.map +1 -0
  224. package/dist/cloud-workspace/runtime/execution-grant.d.ts +36 -0
  225. package/dist/cloud-workspace/runtime/execution-grant.d.ts.map +1 -0
  226. package/dist/cloud-workspace/runtime/execution-grant.js +102 -0
  227. package/dist/cloud-workspace/runtime/execution-grant.js.map +1 -0
  228. package/dist/cloud-workspace/runtime/files-search.d.ts +17 -0
  229. package/dist/cloud-workspace/runtime/files-search.d.ts.map +1 -0
  230. package/dist/cloud-workspace/runtime/files-search.js +14 -0
  231. package/dist/cloud-workspace/runtime/files-search.js.map +1 -0
  232. package/dist/cloud-workspace/runtime/files.d.ts +132 -0
  233. package/dist/cloud-workspace/runtime/files.d.ts.map +1 -0
  234. package/dist/cloud-workspace/runtime/files.js +129 -0
  235. package/dist/cloud-workspace/runtime/files.js.map +1 -0
  236. package/dist/cloud-workspace/runtime/generations.d.ts +18 -0
  237. package/dist/cloud-workspace/runtime/generations.d.ts.map +1 -0
  238. package/dist/cloud-workspace/runtime/generations.js +39 -0
  239. package/dist/cloud-workspace/runtime/generations.js.map +1 -0
  240. package/dist/cloud-workspace/runtime/git-auth-mode.d.ts +35 -0
  241. package/dist/cloud-workspace/runtime/git-auth-mode.d.ts.map +1 -0
  242. package/dist/cloud-workspace/runtime/git-auth-mode.js +73 -0
  243. package/dist/cloud-workspace/runtime/git-auth-mode.js.map +1 -0
  244. package/dist/cloud-workspace/runtime/git.d.ts +147 -0
  245. package/dist/cloud-workspace/runtime/git.d.ts.map +1 -0
  246. package/dist/cloud-workspace/runtime/git.js +128 -0
  247. package/dist/cloud-workspace/runtime/git.js.map +1 -0
  248. package/dist/cloud-workspace/runtime/handshake.d.ts +47 -0
  249. package/dist/cloud-workspace/runtime/handshake.d.ts.map +1 -0
  250. package/dist/cloud-workspace/runtime/handshake.js +31 -0
  251. package/dist/cloud-workspace/runtime/handshake.js.map +1 -0
  252. package/dist/cloud-workspace/runtime/index.d.ts +80 -0
  253. package/dist/cloud-workspace/runtime/index.d.ts.map +1 -0
  254. package/dist/cloud-workspace/runtime/index.js +80 -0
  255. package/dist/cloud-workspace/runtime/index.js.map +1 -0
  256. package/dist/cloud-workspace/runtime/library-attachments.d.ts +120 -0
  257. package/dist/cloud-workspace/runtime/library-attachments.d.ts.map +1 -0
  258. package/dist/cloud-workspace/runtime/library-attachments.js +75 -0
  259. package/dist/cloud-workspace/runtime/library-attachments.js.map +1 -0
  260. package/dist/cloud-workspace/runtime/mcp.d.ts +82 -0
  261. package/dist/cloud-workspace/runtime/mcp.d.ts.map +1 -0
  262. package/dist/cloud-workspace/runtime/mcp.js +48 -0
  263. package/dist/cloud-workspace/runtime/mcp.js.map +1 -0
  264. package/dist/cloud-workspace/runtime/native-history.d.ts +66 -0
  265. package/dist/cloud-workspace/runtime/native-history.d.ts.map +1 -0
  266. package/dist/cloud-workspace/runtime/native-history.js +132 -0
  267. package/dist/cloud-workspace/runtime/native-history.js.map +1 -0
  268. package/dist/cloud-workspace/runtime/operations.d.ts +667 -0
  269. package/dist/cloud-workspace/runtime/operations.d.ts.map +1 -0
  270. package/dist/cloud-workspace/runtime/operations.js +299 -0
  271. package/dist/cloud-workspace/runtime/operations.js.map +1 -0
  272. package/dist/cloud-workspace/runtime/parameter-agent.d.ts +255 -0
  273. package/dist/cloud-workspace/runtime/parameter-agent.d.ts.map +1 -0
  274. package/dist/cloud-workspace/runtime/parameter-agent.js +82 -0
  275. package/dist/cloud-workspace/runtime/parameter-agent.js.map +1 -0
  276. package/dist/cloud-workspace/runtime/parameter-assets.d.ts +14 -0
  277. package/dist/cloud-workspace/runtime/parameter-assets.d.ts.map +1 -0
  278. package/dist/cloud-workspace/runtime/parameter-assets.js +55 -0
  279. package/dist/cloud-workspace/runtime/parameter-assets.js.map +1 -0
  280. package/dist/cloud-workspace/runtime/parameter-catalog.d.ts +30 -0
  281. package/dist/cloud-workspace/runtime/parameter-catalog.d.ts.map +1 -0
  282. package/dist/cloud-workspace/runtime/parameter-catalog.js +292 -0
  283. package/dist/cloud-workspace/runtime/parameter-catalog.js.map +1 -0
  284. package/dist/cloud-workspace/runtime/parameters.d.ts +66 -0
  285. package/dist/cloud-workspace/runtime/parameters.d.ts.map +1 -0
  286. package/dist/cloud-workspace/runtime/parameters.js +118 -0
  287. package/dist/cloud-workspace/runtime/parameters.js.map +1 -0
  288. package/dist/cloud-workspace/runtime/permissions.d.ts +24 -0
  289. package/dist/cloud-workspace/runtime/permissions.d.ts.map +1 -0
  290. package/dist/cloud-workspace/runtime/permissions.js +19 -0
  291. package/dist/cloud-workspace/runtime/permissions.js.map +1 -0
  292. package/dist/cloud-workspace/runtime/platform-endpoints.d.ts +25 -0
  293. package/dist/cloud-workspace/runtime/platform-endpoints.d.ts.map +1 -0
  294. package/dist/cloud-workspace/runtime/platform-endpoints.js +37 -0
  295. package/dist/cloud-workspace/runtime/platform-endpoints.js.map +1 -0
  296. package/dist/cloud-workspace/runtime/preview-runtime.d.ts +33 -0
  297. package/dist/cloud-workspace/runtime/preview-runtime.d.ts.map +1 -0
  298. package/dist/cloud-workspace/runtime/preview-runtime.js +51 -0
  299. package/dist/cloud-workspace/runtime/preview-runtime.js.map +1 -0
  300. package/dist/cloud-workspace/runtime/previews.d.ts +109 -0
  301. package/dist/cloud-workspace/runtime/previews.d.ts.map +1 -0
  302. package/dist/cloud-workspace/runtime/previews.js +66 -0
  303. package/dist/cloud-workspace/runtime/previews.js.map +1 -0
  304. package/dist/cloud-workspace/runtime/project-native-skills.d.ts +40 -0
  305. package/dist/cloud-workspace/runtime/project-native-skills.d.ts.map +1 -0
  306. package/dist/cloud-workspace/runtime/project-native-skills.js +45 -0
  307. package/dist/cloud-workspace/runtime/project-native-skills.js.map +1 -0
  308. package/dist/cloud-workspace/runtime/protocol.d.ts +23 -0
  309. package/dist/cloud-workspace/runtime/protocol.d.ts.map +1 -0
  310. package/dist/cloud-workspace/runtime/protocol.js +30 -0
  311. package/dist/cloud-workspace/runtime/protocol.js.map +1 -0
  312. package/dist/cloud-workspace/runtime/remix-references.d.ts +197 -0
  313. package/dist/cloud-workspace/runtime/remix-references.d.ts.map +1 -0
  314. package/dist/cloud-workspace/runtime/remix-references.js +73 -0
  315. package/dist/cloud-workspace/runtime/remix-references.js.map +1 -0
  316. package/dist/cloud-workspace/runtime/resource-grant.d.ts +62 -0
  317. package/dist/cloud-workspace/runtime/resource-grant.d.ts.map +1 -0
  318. package/dist/cloud-workspace/runtime/resource-grant.js +87 -0
  319. package/dist/cloud-workspace/runtime/resource-grant.js.map +1 -0
  320. package/dist/cloud-workspace/runtime/self-contained-glb.d.ts +3 -0
  321. package/dist/cloud-workspace/runtime/self-contained-glb.d.ts.map +1 -0
  322. package/dist/cloud-workspace/runtime/self-contained-glb.js +67 -0
  323. package/dist/cloud-workspace/runtime/self-contained-glb.js.map +1 -0
  324. package/dist/cloud-workspace/runtime/session-restore.d.ts +31 -0
  325. package/dist/cloud-workspace/runtime/session-restore.d.ts.map +1 -0
  326. package/dist/cloud-workspace/runtime/session-restore.js +24 -0
  327. package/dist/cloud-workspace/runtime/session-restore.js.map +1 -0
  328. package/dist/cloud-workspace/runtime/skills.d.ts +39 -0
  329. package/dist/cloud-workspace/runtime/skills.d.ts.map +1 -0
  330. package/dist/cloud-workspace/runtime/skills.js +33 -0
  331. package/dist/cloud-workspace/runtime/skills.js.map +1 -0
  332. package/dist/cloud-workspace/runtime/terminal-session.d.ts +78 -0
  333. package/dist/cloud-workspace/runtime/terminal-session.d.ts.map +1 -0
  334. package/dist/cloud-workspace/runtime/terminal-session.js +178 -0
  335. package/dist/cloud-workspace/runtime/terminal-session.js.map +1 -0
  336. package/dist/cloud-workspace/runtime/terminals.d.ts +90 -0
  337. package/dist/cloud-workspace/runtime/terminals.d.ts.map +1 -0
  338. package/dist/cloud-workspace/runtime/terminals.js +111 -0
  339. package/dist/cloud-workspace/runtime/terminals.js.map +1 -0
  340. package/dist/cloud-workspace/runtime/turn-control.d.ts +27 -0
  341. package/dist/cloud-workspace/runtime/turn-control.d.ts.map +1 -0
  342. package/dist/cloud-workspace/runtime/turn-control.js +18 -0
  343. package/dist/cloud-workspace/runtime/turn-control.js.map +1 -0
  344. package/dist/cloud-workspace/runtime/variant-workspace.d.ts +221 -0
  345. package/dist/cloud-workspace/runtime/variant-workspace.d.ts.map +1 -0
  346. package/dist/cloud-workspace/runtime/variant-workspace.js +75 -0
  347. package/dist/cloud-workspace/runtime/variant-workspace.js.map +1 -0
  348. package/dist/cloud-workspace/runtime/workspace-binding.d.ts +219 -0
  349. package/dist/cloud-workspace/runtime/workspace-binding.d.ts.map +1 -0
  350. package/dist/cloud-workspace/runtime/workspace-binding.js +178 -0
  351. package/dist/cloud-workspace/runtime/workspace-binding.js.map +1 -0
  352. package/dist/cloud-workspace/runtime/workspace-directories.d.ts +44 -0
  353. package/dist/cloud-workspace/runtime/workspace-directories.d.ts.map +1 -0
  354. package/dist/cloud-workspace/runtime/workspace-directories.js +34 -0
  355. package/dist/cloud-workspace/runtime/workspace-directories.js.map +1 -0
  356. package/dist/cloud-workspace/runtime/workspace-models.d.ts +31 -0
  357. package/dist/cloud-workspace/runtime/workspace-models.d.ts.map +1 -0
  358. package/dist/cloud-workspace/runtime/workspace-models.js +63 -0
  359. package/dist/cloud-workspace/runtime/workspace-models.js.map +1 -0
  360. package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +37 -0
  361. package/dist/cloud-workspace/runtime/workspace-notifications.d.ts.map +1 -0
  362. package/dist/cloud-workspace/runtime/workspace-notifications.js +90 -0
  363. package/dist/cloud-workspace/runtime/workspace-notifications.js.map +1 -0
  364. package/dist/cloud-workspace/runtime/workspace-ui.d.ts +252 -0
  365. package/dist/cloud-workspace/runtime/workspace-ui.d.ts.map +1 -0
  366. package/dist/cloud-workspace/runtime/workspace-ui.js +94 -0
  367. package/dist/cloud-workspace/runtime/workspace-ui.js.map +1 -0
  368. package/dist/database/operators.d.ts +2 -0
  369. package/dist/database/operators.d.ts.map +1 -0
  370. package/dist/database/operators.js +2 -0
  371. package/dist/database/operators.js.map +1 -0
  372. package/dist/database/postgres-adapter.js +1 -1
  373. package/dist/database/postgres-adapter.js.map +1 -1
  374. package/dist/database/schema.d.ts +1 -1
  375. package/dist/database/schema.js +1 -1
  376. package/dist/model-proxy/index.d.ts +29 -0
  377. package/dist/model-proxy/index.d.ts.map +1 -0
  378. package/dist/model-proxy/index.js +81 -0
  379. package/dist/model-proxy/index.js.map +1 -0
  380. package/dist/project-skills/bundle-archive.d.ts +21 -0
  381. package/dist/project-skills/bundle-archive.d.ts.map +1 -0
  382. package/dist/project-skills/bundle-archive.js +165 -0
  383. package/dist/project-skills/bundle-archive.js.map +1 -0
  384. package/dist/project-skills/bundle-path.d.ts +3 -0
  385. package/dist/project-skills/bundle-path.d.ts.map +1 -0
  386. package/dist/project-skills/bundle-path.js +17 -0
  387. package/dist/project-skills/bundle-path.js.map +1 -0
  388. package/dist/project-skills/evidence.d.ts +15 -0
  389. package/dist/project-skills/evidence.d.ts.map +1 -0
  390. package/dist/project-skills/evidence.js +33 -0
  391. package/dist/project-skills/evidence.js.map +1 -0
  392. package/dist/project-skills/index.d.ts +7 -0
  393. package/dist/project-skills/index.d.ts.map +1 -0
  394. package/dist/project-skills/index.js +7 -0
  395. package/dist/project-skills/index.js.map +1 -0
  396. package/dist/project-skills/inventory.d.ts +23 -0
  397. package/dist/project-skills/inventory.d.ts.map +1 -0
  398. package/dist/project-skills/inventory.js +150 -0
  399. package/dist/project-skills/inventory.js.map +1 -0
  400. package/dist/project-skills/local-snapshot.d.ts +12 -0
  401. package/dist/project-skills/local-snapshot.d.ts.map +1 -0
  402. package/dist/project-skills/local-snapshot.js +66 -0
  403. package/dist/project-skills/local-snapshot.js.map +1 -0
  404. package/dist/project-skills/protocol.d.ts +31 -0
  405. package/dist/project-skills/protocol.d.ts.map +1 -0
  406. package/dist/project-skills/protocol.js +197 -0
  407. package/dist/project-skills/protocol.js.map +1 -0
  408. package/dist/project-skills/runtime-plugin.d.ts +66 -0
  409. package/dist/project-skills/runtime-plugin.d.ts.map +1 -0
  410. package/dist/project-skills/runtime-plugin.js +102 -0
  411. package/dist/project-skills/runtime-plugin.js.map +1 -0
  412. package/dist/project-skills/types.d.ts +63 -0
  413. package/dist/project-skills/types.d.ts.map +1 -0
  414. package/dist/project-skills/types.js +13 -0
  415. package/dist/project-skills/types.js.map +1 -0
  416. package/dist/public-network-address.d.ts +3 -0
  417. package/dist/public-network-address.d.ts.map +1 -0
  418. package/dist/public-network-address.js +20 -0
  419. package/dist/public-network-address.js.map +1 -0
  420. package/dist/recommend/types.d.ts +1 -1
  421. package/dist/recommend/types.js +1 -1
  422. package/dist/remix/auto-name.d.ts +24 -0
  423. package/dist/remix/auto-name.d.ts.map +1 -0
  424. package/dist/remix/auto-name.js +40 -0
  425. package/dist/remix/auto-name.js.map +1 -0
  426. package/dist/remix/index.d.ts +2 -0
  427. package/dist/remix/index.d.ts.map +1 -0
  428. package/dist/remix/index.js +2 -0
  429. package/dist/remix/index.js.map +1 -0
  430. package/dist/skill-evaluation.d.ts +152 -0
  431. package/dist/skill-evaluation.d.ts.map +1 -0
  432. package/dist/skill-evaluation.js +14 -0
  433. package/dist/skill-evaluation.js.map +1 -0
  434. package/dist/storage/cos.d.ts +11 -0
  435. package/dist/storage/cos.d.ts.map +1 -1
  436. package/dist/storage/cos.js +29 -0
  437. package/dist/storage/cos.js.map +1 -1
  438. package/package.json +41 -1
@@ -0,0 +1,713 @@
1
+ import { z } from 'zod';
2
+ import { batchRunSchema } from './execution-admission.js';
3
+ export declare const batchSourceFreezeRequestSchema: z.ZodObject<{
4
+ batchId: z.ZodString;
5
+ workspaceId: z.ZodString;
6
+ sourceDirectoryName: z.ZodString;
7
+ initiatorDirectoryName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>>;
8
+ initiatorOperationId: z.ZodOptional<z.ZodString>;
9
+ syncId: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strict>;
11
+ export type BatchSourceFreezeRequest = z.infer<typeof batchSourceFreezeRequestSchema>;
12
+ /**
13
+ * `frozen`: snapshot captured and durable.
14
+ * `pending`: source directory busy with another turn — freeze runs after that turn and before the next.
15
+ */
16
+ export declare const batchSourceFreezeResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
17
+ status: z.ZodLiteral<"frozen">;
18
+ snapshot: z.ZodObject<{
19
+ batchId: z.ZodString;
20
+ commitHash: z.ZodString;
21
+ digest: z.ZodString;
22
+ sourceWorkspaceId: z.ZodString;
23
+ sourceDirectoryName: z.ZodString;
24
+ remoteRef: z.ZodOptional<z.ZodString>;
25
+ artifactKey: z.ZodOptional<z.ZodString>;
26
+ frozenAt: z.ZodString;
27
+ }, z.core.$strict>;
28
+ }, z.core.$strict>, z.ZodObject<{
29
+ status: z.ZodLiteral<"pending">;
30
+ batchId: z.ZodString;
31
+ failure: z.ZodOptional<z.ZodObject<{
32
+ code: z.ZodString;
33
+ stage: z.ZodEnum<{
34
+ verify: "verify";
35
+ capture: "capture";
36
+ publish: "publish";
37
+ }>;
38
+ retryable: z.ZodBoolean;
39
+ outcome: z.ZodEnum<{
40
+ unknown: "unknown";
41
+ not_published: "not_published";
42
+ }>;
43
+ diagnosticId: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strict>>;
45
+ }, z.core.$strict>, z.ZodObject<{
46
+ status: z.ZodLiteral<"failed">;
47
+ batchId: z.ZodString;
48
+ error: z.ZodString;
49
+ failure: z.ZodOptional<z.ZodObject<{
50
+ code: z.ZodString;
51
+ stage: z.ZodEnum<{
52
+ verify: "verify";
53
+ capture: "capture";
54
+ publish: "publish";
55
+ }>;
56
+ retryable: z.ZodBoolean;
57
+ outcome: z.ZodEnum<{
58
+ unknown: "unknown";
59
+ not_published: "not_published";
60
+ }>;
61
+ diagnosticId: z.ZodOptional<z.ZodString>;
62
+ }, z.core.$strict>>;
63
+ }, z.core.$strict>], "status">;
64
+ export type BatchSourceFreezeResult = z.infer<typeof batchSourceFreezeResultSchema>;
65
+ /** Sandbox `POST /runtime/batch-sources/freeze`. Synchronous; idempotent per batchId. */
66
+ export declare const sandboxBatchSourceFreezeRequestSchema: z.ZodObject<{
67
+ batchId: z.ZodString;
68
+ workspaceId: z.ZodString;
69
+ sourceDirectoryName: z.ZodString;
70
+ persist: z.ZodEnum<{
71
+ remote_ref: "remote_ref";
72
+ artifact: "artifact";
73
+ }>;
74
+ resumeOnly: z.ZodOptional<z.ZodBoolean>;
75
+ }, z.core.$strict>;
76
+ export type SandboxBatchSourceFreezeRequest = z.infer<typeof sandboxBatchSourceFreezeRequestSchema>;
77
+ /** `POST /runtime/batch-members/prepare` — clone/restore from snapshot (or resume commit), install deps. */
78
+ export declare const sandboxBatchMemberPrepareSchema: z.ZodObject<{
79
+ snapshot: z.ZodObject<{
80
+ batchId: z.ZodString;
81
+ commitHash: z.ZodString;
82
+ digest: z.ZodString;
83
+ sourceWorkspaceId: z.ZodString;
84
+ sourceDirectoryName: z.ZodString;
85
+ remoteRef: z.ZodOptional<z.ZodString>;
86
+ artifactKey: z.ZodOptional<z.ZodString>;
87
+ frozenAt: z.ZodString;
88
+ }, z.core.$strict>;
89
+ remixId: z.ZodNullable<z.ZodString>;
90
+ branchName: z.ZodString;
91
+ resumeFromCommit: z.ZodOptional<z.ZodString>;
92
+ runId: z.ZodString;
93
+ ownerFence: z.ZodNumber;
94
+ workspaceId: z.ZodString;
95
+ directoryName: z.ZodString;
96
+ occupancyId: z.ZodString;
97
+ }, z.core.$strict>;
98
+ export type SandboxBatchMemberPrepare = z.infer<typeof sandboxBatchMemberPrepareSchema>;
99
+ /** `POST /runtime/batch-members/generate` — one unattended turn on the shared session base. */
100
+ export declare const sandboxBatchMemberGenerateSchema: z.ZodObject<{
101
+ prompt: z.ZodString;
102
+ model: z.ZodOptional<z.ZodString>;
103
+ sessionId: z.ZodOptional<z.ZodString>;
104
+ runId: z.ZodString;
105
+ ownerFence: z.ZodNumber;
106
+ workspaceId: z.ZodString;
107
+ directoryName: z.ZodString;
108
+ occupancyId: z.ZodString;
109
+ }, z.core.$strict>;
110
+ export type SandboxBatchMemberGenerate = z.infer<typeof sandboxBatchMemberGenerateSchema>;
111
+ /** `POST /runtime/batch-members/deliver` — save exact commit, push, build from it, verify, publish. */
112
+ export declare const sandboxBatchMemberDeliverSchema: z.ZodObject<{
113
+ pushRemote: z.ZodBoolean;
114
+ fromCommit: z.ZodOptional<z.ZodString>;
115
+ runId: z.ZodString;
116
+ ownerFence: z.ZodNumber;
117
+ workspaceId: z.ZodString;
118
+ directoryName: z.ZodString;
119
+ occupancyId: z.ZodString;
120
+ }, z.core.$strict>;
121
+ export type SandboxBatchMemberDeliver = z.infer<typeof sandboxBatchMemberDeliverSchema>;
122
+ /** `POST /runtime/batch-members/:runId/stop`. */
123
+ export declare const sandboxBatchMemberStopSchema: z.ZodObject<{
124
+ runId: z.ZodString;
125
+ ownerFence: z.ZodNumber;
126
+ }, z.core.$strict>;
127
+ export declare const sandboxBatchMemberStateSchema: z.ZodEnum<{
128
+ unknown: "unknown";
129
+ failed: "failed";
130
+ completed: "completed";
131
+ running: "running";
132
+ idle: "idle";
133
+ stopped: "stopped";
134
+ stopping: "stopping";
135
+ needs_user: "needs_user";
136
+ }>;
137
+ export type SandboxBatchMemberState = z.infer<typeof sandboxBatchMemberStateSchema>;
138
+ /** Response of every member command and of `GET /runtime/batch-members/:runId`. Read-only query. */
139
+ export declare const sandboxBatchMemberStatusSchema: z.ZodObject<{
140
+ runId: z.ZodString;
141
+ ownerFence: z.ZodNumber;
142
+ phase: z.ZodEnum<{
143
+ prepare: "prepare";
144
+ generate: "generate";
145
+ deliver: "deliver";
146
+ }>;
147
+ state: z.ZodEnum<{
148
+ unknown: "unknown";
149
+ failed: "failed";
150
+ completed: "completed";
151
+ running: "running";
152
+ idle: "idle";
153
+ stopped: "stopped";
154
+ stopping: "stopping";
155
+ needs_user: "needs_user";
156
+ }>;
157
+ writersStopped: z.ZodBoolean;
158
+ sessionId: z.ZodOptional<z.ZodString>;
159
+ operationId: z.ZodOptional<z.ZodString>;
160
+ headCommit: z.ZodOptional<z.ZodString>;
161
+ evidence: z.ZodOptional<z.ZodObject<{
162
+ savedCommit: z.ZodOptional<z.ZodString>;
163
+ pushedCommit: z.ZodOptional<z.ZodString>;
164
+ buildDigest: z.ZodOptional<z.ZodString>;
165
+ verified: z.ZodOptional<z.ZodBoolean>;
166
+ previewRef: z.ZodOptional<z.ZodString>;
167
+ }, z.core.$strict>>;
168
+ error: z.ZodOptional<z.ZodString>;
169
+ updatedAt: z.ZodString;
170
+ }, z.core.$strict>;
171
+ export type SandboxBatchMemberStatus = z.infer<typeof sandboxBatchMemberStatusSchema>;
172
+ export declare const batchRunMemberInputSchema: z.ZodObject<{
173
+ resultVersionId: z.ZodString;
174
+ workspaceId: z.ZodString;
175
+ directoryName: z.ZodString;
176
+ remixId: z.ZodNullable<z.ZodString>;
177
+ branchName: z.ZodString;
178
+ prompt: z.ZodString;
179
+ model: z.ZodOptional<z.ZodString>;
180
+ resumeFromCommit: z.ZodOptional<z.ZodString>;
181
+ syncOfResultVersionId: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$strict>;
183
+ export type BatchRunMemberInput = z.infer<typeof batchRunMemberInputSchema>;
184
+ /** `POST /internal/batch-runs` — idempotent per resultVersionId. */
185
+ export declare const submitBatchRunsRequestSchema: z.ZodObject<{
186
+ batchId: z.ZodString;
187
+ userId: z.ZodString;
188
+ snapshot: z.ZodObject<{
189
+ batchId: z.ZodString;
190
+ commitHash: z.ZodString;
191
+ digest: z.ZodString;
192
+ sourceWorkspaceId: z.ZodString;
193
+ sourceDirectoryName: z.ZodString;
194
+ remoteRef: z.ZodOptional<z.ZodString>;
195
+ artifactKey: z.ZodOptional<z.ZodString>;
196
+ frozenAt: z.ZodString;
197
+ }, z.core.$strict>;
198
+ members: z.ZodArray<z.ZodObject<{
199
+ resultVersionId: z.ZodString;
200
+ workspaceId: z.ZodString;
201
+ directoryName: z.ZodString;
202
+ remixId: z.ZodNullable<z.ZodString>;
203
+ branchName: z.ZodString;
204
+ prompt: z.ZodString;
205
+ model: z.ZodOptional<z.ZodString>;
206
+ resumeFromCommit: z.ZodOptional<z.ZodString>;
207
+ syncOfResultVersionId: z.ZodOptional<z.ZodString>;
208
+ }, z.core.$strict>>;
209
+ }, z.core.$strict>;
210
+ export type SubmitBatchRunsRequest = z.infer<typeof submitBatchRunsRequestSchema>;
211
+ export declare const batchRunViewSchema: z.ZodObject<{
212
+ runId: z.ZodString;
213
+ batchId: z.ZodString;
214
+ resultVersionId: z.ZodString;
215
+ runtimeId: z.ZodString;
216
+ workspaceId: z.ZodString;
217
+ directoryName: z.ZodString;
218
+ occupancyId: z.ZodOptional<z.ZodString>;
219
+ sessionId: z.ZodOptional<z.ZodString>;
220
+ operationId: z.ZodOptional<z.ZodString>;
221
+ status: z.ZodEnum<{
222
+ failed: "failed";
223
+ running: "running";
224
+ queued: "queued";
225
+ cancelled: "cancelled";
226
+ reconciling: "reconciling";
227
+ stopping: "stopping";
228
+ succeeded: "succeeded";
229
+ }>;
230
+ phase: z.ZodEnum<{
231
+ prepare: "prepare";
232
+ generate: "generate";
233
+ deliver: "deliver";
234
+ }>;
235
+ resumeFromCommit: z.ZodOptional<z.ZodString>;
236
+ evidence: z.ZodOptional<z.ZodObject<{
237
+ savedCommit: z.ZodOptional<z.ZodString>;
238
+ pushedCommit: z.ZodOptional<z.ZodString>;
239
+ buildDigest: z.ZodOptional<z.ZodString>;
240
+ verified: z.ZodOptional<z.ZodBoolean>;
241
+ previewRef: z.ZodOptional<z.ZodString>;
242
+ }, z.core.$strict>>;
243
+ previousRunId: z.ZodOptional<z.ZodString>;
244
+ autoRecoveryCount: z.ZodNumber;
245
+ cancelRequested: z.ZodBoolean;
246
+ ownerFence: z.ZodNumber;
247
+ revision: z.ZodNumber;
248
+ error: z.ZodOptional<z.ZodString>;
249
+ createdAt: z.ZodString;
250
+ updatedAt: z.ZodString;
251
+ startedAt: z.ZodOptional<z.ZodString>;
252
+ finishedAt: z.ZodOptional<z.ZodString>;
253
+ queuePosition: z.ZodOptional<z.ZodNumber>;
254
+ }, z.core.$strict>;
255
+ export type BatchRunView = z.infer<typeof batchRunViewSchema>;
256
+ /** `POST /internal/batch-runs/:runId/sync` — replace input of a not-yet-started Run. */
257
+ export declare const replaceBatchRunSnapshotSchema: z.ZodObject<{
258
+ snapshot: z.ZodObject<{
259
+ batchId: z.ZodString;
260
+ commitHash: z.ZodString;
261
+ digest: z.ZodString;
262
+ sourceWorkspaceId: z.ZodString;
263
+ sourceDirectoryName: z.ZodString;
264
+ remoteRef: z.ZodOptional<z.ZodString>;
265
+ artifactKey: z.ZodOptional<z.ZodString>;
266
+ frozenAt: z.ZodString;
267
+ }, z.core.$strict>;
268
+ }, z.core.$strict>;
269
+ /**
270
+ * Running, stopping, or reconciling members cannot switch snapshot mid-execution.
271
+ * The caller stores `pending_sync` and applies it after the Run ends.
272
+ */
273
+ export declare const replaceBatchRunSnapshotResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
274
+ status: z.ZodLiteral<"replaced">;
275
+ run: z.ZodObject<{
276
+ runId: z.ZodString;
277
+ batchId: z.ZodString;
278
+ resultVersionId: z.ZodString;
279
+ runtimeId: z.ZodString;
280
+ workspaceId: z.ZodString;
281
+ directoryName: z.ZodString;
282
+ occupancyId: z.ZodOptional<z.ZodString>;
283
+ sessionId: z.ZodOptional<z.ZodString>;
284
+ operationId: z.ZodOptional<z.ZodString>;
285
+ status: z.ZodEnum<{
286
+ failed: "failed";
287
+ running: "running";
288
+ queued: "queued";
289
+ cancelled: "cancelled";
290
+ reconciling: "reconciling";
291
+ stopping: "stopping";
292
+ succeeded: "succeeded";
293
+ }>;
294
+ phase: z.ZodEnum<{
295
+ prepare: "prepare";
296
+ generate: "generate";
297
+ deliver: "deliver";
298
+ }>;
299
+ resumeFromCommit: z.ZodOptional<z.ZodString>;
300
+ evidence: z.ZodOptional<z.ZodObject<{
301
+ savedCommit: z.ZodOptional<z.ZodString>;
302
+ pushedCommit: z.ZodOptional<z.ZodString>;
303
+ buildDigest: z.ZodOptional<z.ZodString>;
304
+ verified: z.ZodOptional<z.ZodBoolean>;
305
+ previewRef: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$strict>>;
307
+ previousRunId: z.ZodOptional<z.ZodString>;
308
+ autoRecoveryCount: z.ZodNumber;
309
+ cancelRequested: z.ZodBoolean;
310
+ ownerFence: z.ZodNumber;
311
+ revision: z.ZodNumber;
312
+ error: z.ZodOptional<z.ZodString>;
313
+ createdAt: z.ZodString;
314
+ updatedAt: z.ZodString;
315
+ startedAt: z.ZodOptional<z.ZodString>;
316
+ finishedAt: z.ZodOptional<z.ZodString>;
317
+ queuePosition: z.ZodOptional<z.ZodNumber>;
318
+ }, z.core.$strict>;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ status: z.ZodLiteral<"pending_sync">;
321
+ runId: z.ZodString;
322
+ }, z.core.$strict>], "status">;
323
+ export type ReplaceBatchRunSnapshotResult = z.infer<typeof replaceBatchRunSnapshotResultSchema>;
324
+ /** Batch-level source fact. Present when the event is not about a member Run. */
325
+ export declare const batchSourceEventSubjectSchema: z.ZodObject<{
326
+ batchId: z.ZodString;
327
+ workspaceId: z.ZodString;
328
+ status: z.ZodEnum<{
329
+ ready: "ready";
330
+ failed: "failed";
331
+ lost: "lost";
332
+ }>;
333
+ snapshot: z.ZodOptional<z.ZodObject<{
334
+ batchId: z.ZodString;
335
+ commitHash: z.ZodString;
336
+ digest: z.ZodString;
337
+ sourceWorkspaceId: z.ZodString;
338
+ sourceDirectoryName: z.ZodString;
339
+ remoteRef: z.ZodOptional<z.ZodString>;
340
+ artifactKey: z.ZodOptional<z.ZodString>;
341
+ frozenAt: z.ZodString;
342
+ }, z.core.$strict>>;
343
+ error: z.ZodOptional<z.ZodString>;
344
+ failure: z.ZodOptional<z.ZodObject<{
345
+ code: z.ZodString;
346
+ stage: z.ZodEnum<{
347
+ verify: "verify";
348
+ capture: "capture";
349
+ publish: "publish";
350
+ }>;
351
+ retryable: z.ZodBoolean;
352
+ outcome: z.ZodEnum<{
353
+ unknown: "unknown";
354
+ not_published: "not_published";
355
+ }>;
356
+ diagnosticId: z.ZodOptional<z.ZodString>;
357
+ }, z.core.$strict>>;
358
+ }, z.core.$strict>;
359
+ export type BatchSourceEventSubject = z.infer<typeof batchSourceEventSubjectSchema>;
360
+ export declare const batchRunEventReasonSchema: z.ZodEnum<{
361
+ source_lost: "source_lost";
362
+ status_changed: "status_changed";
363
+ phase_changed: "phase_changed";
364
+ queue_changed: "queue_changed";
365
+ recovered: "recovered";
366
+ source_ready: "source_ready";
367
+ source_failed: "source_failed";
368
+ }>;
369
+ /**
370
+ * Runtime → Business `POST /api/internal/cloud-batches/runs/events`; at-least-once, ordered by revision.
371
+ * A member event carries `run`. A source freeze event carries `source` and no run.
372
+ * `source_ready` / `source_failed` are additive reason values.
373
+ */
374
+ export declare const batchRunEventSchema: z.ZodUnion<readonly [z.ZodObject<{
375
+ run: z.ZodObject<{
376
+ runId: z.ZodString;
377
+ batchId: z.ZodString;
378
+ resultVersionId: z.ZodString;
379
+ runtimeId: z.ZodString;
380
+ workspaceId: z.ZodString;
381
+ directoryName: z.ZodString;
382
+ occupancyId: z.ZodOptional<z.ZodString>;
383
+ sessionId: z.ZodOptional<z.ZodString>;
384
+ operationId: z.ZodOptional<z.ZodString>;
385
+ status: z.ZodEnum<{
386
+ failed: "failed";
387
+ running: "running";
388
+ queued: "queued";
389
+ cancelled: "cancelled";
390
+ reconciling: "reconciling";
391
+ stopping: "stopping";
392
+ succeeded: "succeeded";
393
+ }>;
394
+ phase: z.ZodEnum<{
395
+ prepare: "prepare";
396
+ generate: "generate";
397
+ deliver: "deliver";
398
+ }>;
399
+ resumeFromCommit: z.ZodOptional<z.ZodString>;
400
+ evidence: z.ZodOptional<z.ZodObject<{
401
+ savedCommit: z.ZodOptional<z.ZodString>;
402
+ pushedCommit: z.ZodOptional<z.ZodString>;
403
+ buildDigest: z.ZodOptional<z.ZodString>;
404
+ verified: z.ZodOptional<z.ZodBoolean>;
405
+ previewRef: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$strict>>;
407
+ previousRunId: z.ZodOptional<z.ZodString>;
408
+ autoRecoveryCount: z.ZodNumber;
409
+ cancelRequested: z.ZodBoolean;
410
+ ownerFence: z.ZodNumber;
411
+ revision: z.ZodNumber;
412
+ error: z.ZodOptional<z.ZodString>;
413
+ createdAt: z.ZodString;
414
+ updatedAt: z.ZodString;
415
+ startedAt: z.ZodOptional<z.ZodString>;
416
+ finishedAt: z.ZodOptional<z.ZodString>;
417
+ queuePosition: z.ZodOptional<z.ZodNumber>;
418
+ }, z.core.$strict>;
419
+ reason: z.ZodEnum<{
420
+ source_lost: "source_lost";
421
+ status_changed: "status_changed";
422
+ phase_changed: "phase_changed";
423
+ queue_changed: "queue_changed";
424
+ recovered: "recovered";
425
+ source_ready: "source_ready";
426
+ source_failed: "source_failed";
427
+ }>;
428
+ }, z.core.$strict>, z.ZodObject<{
429
+ source: z.ZodObject<{
430
+ batchId: z.ZodString;
431
+ workspaceId: z.ZodString;
432
+ status: z.ZodEnum<{
433
+ ready: "ready";
434
+ failed: "failed";
435
+ lost: "lost";
436
+ }>;
437
+ snapshot: z.ZodOptional<z.ZodObject<{
438
+ batchId: z.ZodString;
439
+ commitHash: z.ZodString;
440
+ digest: z.ZodString;
441
+ sourceWorkspaceId: z.ZodString;
442
+ sourceDirectoryName: z.ZodString;
443
+ remoteRef: z.ZodOptional<z.ZodString>;
444
+ artifactKey: z.ZodOptional<z.ZodString>;
445
+ frozenAt: z.ZodString;
446
+ }, z.core.$strict>>;
447
+ error: z.ZodOptional<z.ZodString>;
448
+ failure: z.ZodOptional<z.ZodObject<{
449
+ code: z.ZodString;
450
+ stage: z.ZodEnum<{
451
+ verify: "verify";
452
+ capture: "capture";
453
+ publish: "publish";
454
+ }>;
455
+ retryable: z.ZodBoolean;
456
+ outcome: z.ZodEnum<{
457
+ unknown: "unknown";
458
+ not_published: "not_published";
459
+ }>;
460
+ diagnosticId: z.ZodOptional<z.ZodString>;
461
+ }, z.core.$strict>>;
462
+ }, z.core.$strict>;
463
+ reason: z.ZodEnum<{
464
+ source_lost: "source_lost";
465
+ source_ready: "source_ready";
466
+ source_failed: "source_failed";
467
+ }>;
468
+ }, z.core.$strict>]>;
469
+ export type BatchRunEvent = z.infer<typeof batchRunEventSchema>;
470
+ export declare const batchSourceStatusSchema: z.ZodEnum<{
471
+ ready: "ready";
472
+ failed: "failed";
473
+ freezing: "freezing";
474
+ waiting_source_idle: "waiting_source_idle";
475
+ lost: "lost";
476
+ }>;
477
+ export type BatchSourceStatus = z.infer<typeof batchSourceStatusSchema>;
478
+ export declare const batchMemberDisplayStatusSchema: z.ZodEnum<{
479
+ failed: "failed";
480
+ queued: "queued";
481
+ cancelled: "cancelled";
482
+ generating: "generating";
483
+ preparing: "preparing";
484
+ reconciling: "reconciling";
485
+ stopping: "stopping";
486
+ succeeded: "succeeded";
487
+ pending_sync: "pending_sync";
488
+ source_failed: "source_failed";
489
+ waiting_source: "waiting_source";
490
+ delivering: "delivering";
491
+ }>;
492
+ export type BatchMemberDisplayStatus = z.infer<typeof batchMemberDisplayStatusSchema>;
493
+ export declare const batchMemberViewSchema: z.ZodObject<{
494
+ resultVersionId: z.ZodString;
495
+ ordinal: z.ZodNumber;
496
+ prompt: z.ZodString;
497
+ status: z.ZodEnum<{
498
+ failed: "failed";
499
+ queued: "queued";
500
+ cancelled: "cancelled";
501
+ generating: "generating";
502
+ preparing: "preparing";
503
+ reconciling: "reconciling";
504
+ stopping: "stopping";
505
+ succeeded: "succeeded";
506
+ pending_sync: "pending_sync";
507
+ source_failed: "source_failed";
508
+ waiting_source: "waiting_source";
509
+ delivering: "delivering";
510
+ }>;
511
+ queuePosition: z.ZodOptional<z.ZodNumber>;
512
+ startedAt: z.ZodOptional<z.ZodString>;
513
+ finishedAt: z.ZodOptional<z.ZodString>;
514
+ directoryName: z.ZodOptional<z.ZodString>;
515
+ remixId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
+ sessionId: z.ZodOptional<z.ZodString>;
517
+ runId: z.ZodOptional<z.ZodString>;
518
+ previewRef: z.ZodOptional<z.ZodString>;
519
+ previewStale: z.ZodOptional<z.ZodBoolean>;
520
+ error: z.ZodOptional<z.ZodString>;
521
+ }, z.core.$strict>;
522
+ export type BatchMemberView = z.infer<typeof batchMemberViewSchema>;
523
+ export declare const batchViewSchema: z.ZodObject<{
524
+ batchId: z.ZodString;
525
+ workspaceId: z.ZodString;
526
+ sourceDirectoryName: z.ZodString;
527
+ sourceStatus: z.ZodEnum<{
528
+ ready: "ready";
529
+ failed: "failed";
530
+ freezing: "freezing";
531
+ waiting_source_idle: "waiting_source_idle";
532
+ lost: "lost";
533
+ }>;
534
+ sourceError: z.ZodOptional<z.ZodObject<{
535
+ code: z.ZodString;
536
+ stage: z.ZodEnum<{
537
+ verify: "verify";
538
+ capture: "capture";
539
+ publish: "publish";
540
+ }>;
541
+ retryable: z.ZodBoolean;
542
+ outcome: z.ZodEnum<{
543
+ unknown: "unknown";
544
+ not_published: "not_published";
545
+ }>;
546
+ diagnosticId: z.ZodOptional<z.ZodString>;
547
+ }, z.core.$strict>>;
548
+ cancelRequested: z.ZodBoolean;
549
+ counts: z.ZodObject<{
550
+ queued: z.ZodNumber;
551
+ running: z.ZodNumber;
552
+ succeeded: z.ZodNumber;
553
+ failed: z.ZodNumber;
554
+ cancelled: z.ZodNumber;
555
+ }, z.core.$strict>;
556
+ members: z.ZodArray<z.ZodObject<{
557
+ resultVersionId: z.ZodString;
558
+ ordinal: z.ZodNumber;
559
+ prompt: z.ZodString;
560
+ status: z.ZodEnum<{
561
+ failed: "failed";
562
+ queued: "queued";
563
+ cancelled: "cancelled";
564
+ generating: "generating";
565
+ preparing: "preparing";
566
+ reconciling: "reconciling";
567
+ stopping: "stopping";
568
+ succeeded: "succeeded";
569
+ pending_sync: "pending_sync";
570
+ source_failed: "source_failed";
571
+ waiting_source: "waiting_source";
572
+ delivering: "delivering";
573
+ }>;
574
+ queuePosition: z.ZodOptional<z.ZodNumber>;
575
+ startedAt: z.ZodOptional<z.ZodString>;
576
+ finishedAt: z.ZodOptional<z.ZodString>;
577
+ directoryName: z.ZodOptional<z.ZodString>;
578
+ remixId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ sessionId: z.ZodOptional<z.ZodString>;
580
+ runId: z.ZodOptional<z.ZodString>;
581
+ previewRef: z.ZodOptional<z.ZodString>;
582
+ previewStale: z.ZodOptional<z.ZodBoolean>;
583
+ error: z.ZodOptional<z.ZodString>;
584
+ }, z.core.$strict>>;
585
+ createdAt: z.ZodString;
586
+ }, z.core.$strict>;
587
+ export type BatchView = z.infer<typeof batchViewSchema>;
588
+ export declare const batchCreateAcceptedSchema: z.ZodObject<{
589
+ flowVersion: z.ZodLiteral<"v2">;
590
+ accepted: z.ZodLiteral<true>;
591
+ batchId: z.ZodString;
592
+ sourceStatus: z.ZodEnum<{
593
+ ready: "ready";
594
+ failed: "failed";
595
+ freezing: "freezing";
596
+ waiting_source_idle: "waiting_source_idle";
597
+ lost: "lost";
598
+ }>;
599
+ view: z.ZodObject<{
600
+ batchId: z.ZodString;
601
+ workspaceId: z.ZodString;
602
+ sourceDirectoryName: z.ZodString;
603
+ sourceStatus: z.ZodEnum<{
604
+ ready: "ready";
605
+ failed: "failed";
606
+ freezing: "freezing";
607
+ waiting_source_idle: "waiting_source_idle";
608
+ lost: "lost";
609
+ }>;
610
+ sourceError: z.ZodOptional<z.ZodObject<{
611
+ code: z.ZodString;
612
+ stage: z.ZodEnum<{
613
+ verify: "verify";
614
+ capture: "capture";
615
+ publish: "publish";
616
+ }>;
617
+ retryable: z.ZodBoolean;
618
+ outcome: z.ZodEnum<{
619
+ unknown: "unknown";
620
+ not_published: "not_published";
621
+ }>;
622
+ diagnosticId: z.ZodOptional<z.ZodString>;
623
+ }, z.core.$strict>>;
624
+ cancelRequested: z.ZodBoolean;
625
+ counts: z.ZodObject<{
626
+ queued: z.ZodNumber;
627
+ running: z.ZodNumber;
628
+ succeeded: z.ZodNumber;
629
+ failed: z.ZodNumber;
630
+ cancelled: z.ZodNumber;
631
+ }, z.core.$strict>;
632
+ members: z.ZodArray<z.ZodObject<{
633
+ resultVersionId: z.ZodString;
634
+ ordinal: z.ZodNumber;
635
+ prompt: z.ZodString;
636
+ status: z.ZodEnum<{
637
+ failed: "failed";
638
+ queued: "queued";
639
+ cancelled: "cancelled";
640
+ generating: "generating";
641
+ preparing: "preparing";
642
+ reconciling: "reconciling";
643
+ stopping: "stopping";
644
+ succeeded: "succeeded";
645
+ pending_sync: "pending_sync";
646
+ source_failed: "source_failed";
647
+ waiting_source: "waiting_source";
648
+ delivering: "delivering";
649
+ }>;
650
+ queuePosition: z.ZodOptional<z.ZodNumber>;
651
+ startedAt: z.ZodOptional<z.ZodString>;
652
+ finishedAt: z.ZodOptional<z.ZodString>;
653
+ directoryName: z.ZodOptional<z.ZodString>;
654
+ remixId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
+ sessionId: z.ZodOptional<z.ZodString>;
656
+ runId: z.ZodOptional<z.ZodString>;
657
+ previewRef: z.ZodOptional<z.ZodString>;
658
+ previewStale: z.ZodOptional<z.ZodBoolean>;
659
+ error: z.ZodOptional<z.ZodString>;
660
+ }, z.core.$strict>>;
661
+ createdAt: z.ZodString;
662
+ }, z.core.$strict>;
663
+ }, z.core.$strict>;
664
+ export type BatchCreateAccepted = z.infer<typeof batchCreateAcceptedSchema>;
665
+ export declare function batchMemberDisplayStatus(run: Pick<z.infer<typeof batchRunSchema>, 'status' | 'phase'> | undefined, source: BatchSourceStatus, pendingSync?: boolean): BatchMemberDisplayStatus;
666
+ /** `GET /runtime/workspaces/:workspaceId/execution-queue` — open occupancies of the caller's sandbox. */
667
+ export declare const executionQueueEntrySchema: z.ZodObject<{
668
+ occupancyId: z.ZodString;
669
+ workspaceId: z.ZodString;
670
+ directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
671
+ source: z.ZodEnum<{
672
+ session_turn: "session_turn";
673
+ preview_build: "preview_build";
674
+ batch_run: "batch_run";
675
+ }>;
676
+ status: z.ZodEnum<{
677
+ queued: "queued";
678
+ active: "active";
679
+ waiting_user: "waiting_user";
680
+ reconciling: "reconciling";
681
+ }>;
682
+ operationId: z.ZodOptional<z.ZodString>;
683
+ runId: z.ZodOptional<z.ZodString>;
684
+ queuePosition: z.ZodOptional<z.ZodNumber>;
685
+ sessionId: z.ZodOptional<z.ZodString>;
686
+ }, z.core.$strict>;
687
+ export type ExecutionQueueEntry = z.infer<typeof executionQueueEntrySchema>;
688
+ export declare const executionQueueViewSchema: z.ZodObject<{
689
+ workspaceMax: z.ZodNumber;
690
+ sandboxMax: z.ZodNumber;
691
+ entries: z.ZodArray<z.ZodObject<{
692
+ occupancyId: z.ZodString;
693
+ workspaceId: z.ZodString;
694
+ directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
695
+ source: z.ZodEnum<{
696
+ session_turn: "session_turn";
697
+ preview_build: "preview_build";
698
+ batch_run: "batch_run";
699
+ }>;
700
+ status: z.ZodEnum<{
701
+ queued: "queued";
702
+ active: "active";
703
+ waiting_user: "waiting_user";
704
+ reconciling: "reconciling";
705
+ }>;
706
+ operationId: z.ZodOptional<z.ZodString>;
707
+ runId: z.ZodOptional<z.ZodString>;
708
+ queuePosition: z.ZodOptional<z.ZodNumber>;
709
+ sessionId: z.ZodOptional<z.ZodString>;
710
+ }, z.core.$strict>>;
711
+ }, z.core.$strict>;
712
+ export type ExecutionQueueView = z.infer<typeof executionQueueViewSchema>;
713
+ //# sourceMappingURL=batch-runs.d.ts.map