@agimon-ai/po-core 0.0.0-alpha.21 → 0.0.0-alpha.211

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 (1639) hide show
  1. package/LICENSE +21 -149
  2. package/NOTICE +1 -1
  3. package/README.md +40 -3
  4. package/dist/agentModel.cjs +4 -0
  5. package/dist/agentModel.d.mts +3 -1
  6. package/dist/agentModel.mjs +3 -1
  7. package/dist/apiContracts.cjs +631 -326
  8. package/dist/apiContracts.cjs.map +1 -1
  9. package/dist/apiContracts.d.mts +1252 -149
  10. package/dist/apiContracts.d.mts.map +1 -1
  11. package/dist/apiContracts.mjs +626 -323
  12. package/dist/apiContracts.mjs.map +1 -1
  13. package/dist/approval.cjs +17 -0
  14. package/dist/approval.d.mts +5 -0
  15. package/dist/approval.mjs +4 -0
  16. package/dist/backgroundWork.cjs +5 -0
  17. package/dist/backgroundWork.d.mts +2 -2
  18. package/dist/backgroundWork.mjs +1 -1
  19. package/dist/bundlePublicationWorker.cjs +30 -0
  20. package/dist/bundlePublicationWorker.cjs.map +1 -0
  21. package/dist/bundlePublicationWorker.d.mts +1 -0
  22. package/dist/bundlePublicationWorker.mjs +28 -0
  23. package/dist/bundlePublicationWorker.mjs.map +1 -0
  24. package/dist/childSession.d.mts +3 -2
  25. package/dist/clientDevices.cjs +4 -0
  26. package/dist/clientDevices.d.mts +3 -0
  27. package/dist/clientDevices.mjs +1 -0
  28. package/dist/clientMetadata.cjs +13 -0
  29. package/dist/clientMetadata.d.mts +4 -0
  30. package/dist/clientMetadata.mjs +3 -0
  31. package/dist/codemode.cjs +7 -0
  32. package/dist/codemode.d.mts +2 -0
  33. package/dist/codemode.mjs +1 -0
  34. package/dist/contextDetailStore.cjs +20 -12
  35. package/dist/contextDetailStore.cjs.map +1 -1
  36. package/dist/contextDetailStore.d.mts +7 -4
  37. package/dist/contextDetailStore.d.mts.map +1 -1
  38. package/dist/contextDetailStore.mjs +19 -11
  39. package/dist/contextDetailStore.mjs.map +1 -1
  40. package/dist/contextProjection.cjs +68 -8
  41. package/dist/contextProjection.cjs.map +1 -1
  42. package/dist/contextProjection.d.mts +34 -10
  43. package/dist/contextProjection.d.mts.map +1 -1
  44. package/dist/contextProjection.mjs +65 -9
  45. package/dist/contextProjection.mjs.map +1 -1
  46. package/dist/delegation.cjs +3 -0
  47. package/dist/delegation.d.mts +2 -2
  48. package/dist/delegation.mjs +1 -1
  49. package/dist/executionBudget.cjs +13 -5
  50. package/dist/executionBudget.cjs.map +1 -1
  51. package/dist/executionBudget.d.mts.map +1 -1
  52. package/dist/executionBudget.mjs +13 -5
  53. package/dist/executionBudget.mjs.map +1 -1
  54. package/dist/extensionFile.cjs +1 -2
  55. package/dist/extensionFile.d.mts +4 -4
  56. package/dist/extensionFile.mjs +3 -3
  57. package/dist/headless.cjs +22 -0
  58. package/dist/headless.d.mts +6 -2
  59. package/dist/headless.mjs +5 -1
  60. package/dist/headlessHub.cjs +941 -137
  61. package/dist/headlessHub.cjs.map +1 -1
  62. package/dist/headlessHub.d.mts +133 -25
  63. package/dist/headlessHub.d.mts.map +1 -1
  64. package/dist/headlessHub.mjs +938 -135
  65. package/dist/headlessHub.mjs.map +1 -1
  66. package/dist/headlessProtocol.cjs +331 -74
  67. package/dist/headlessProtocol.cjs.map +1 -1
  68. package/dist/headlessProtocol.d.mts +29 -3
  69. package/dist/headlessProtocol.d.mts.map +1 -1
  70. package/dist/headlessProtocol.mjs +335 -79
  71. package/dist/headlessProtocol.mjs.map +1 -1
  72. package/dist/headlessServer.cjs +1057 -219
  73. package/dist/headlessServer.cjs.map +1 -1
  74. package/dist/headlessServer.d.mts +140 -14
  75. package/dist/headlessServer.d.mts.map +1 -1
  76. package/dist/headlessServer.mjs +1057 -219
  77. package/dist/headlessServer.mjs.map +1 -1
  78. package/dist/headlessSessionHost.d.mts +65 -24
  79. package/dist/headlessSessionHost.d.mts.map +1 -1
  80. package/dist/headlessSessionManager.cjs +23 -16
  81. package/dist/headlessSessionManager.cjs.map +1 -1
  82. package/dist/headlessSessionManager.d.mts +1 -1
  83. package/dist/headlessSessionManager.d.mts.map +1 -1
  84. package/dist/headlessSessionManager.mjs +23 -16
  85. package/dist/headlessSessionManager.mjs.map +1 -1
  86. package/dist/help.cjs +6 -0
  87. package/dist/help.d.mts +2 -2
  88. package/dist/help.mjs +2 -2
  89. package/dist/history.cjs +7 -0
  90. package/dist/history.d.mts +5 -3
  91. package/dist/history.mjs +5 -2
  92. package/dist/historyOwnership.cjs +100 -71
  93. package/dist/historyOwnership.cjs.map +1 -1
  94. package/dist/historyOwnership.d.mts.map +1 -1
  95. package/dist/historyOwnership.mjs +103 -75
  96. package/dist/historyOwnership.mjs.map +1 -1
  97. package/dist/hubChannel.cjs +32 -0
  98. package/dist/hubChannel.d.mts +5 -3
  99. package/dist/hubChannel.mjs +5 -3
  100. package/dist/images.cjs +15 -0
  101. package/dist/images.d.mts +2 -0
  102. package/dist/images.mjs +1 -0
  103. package/dist/index.cjs +27 -0
  104. package/dist/index.d.mts +7 -3
  105. package/dist/index.mjs +7 -3
  106. package/dist/inputTemplate.cjs +5 -0
  107. package/dist/inputTemplate.d.mts +3 -0
  108. package/dist/inputTemplate.mjs +1 -0
  109. package/dist/interop/piCodingAgent.mjs +1 -0
  110. package/dist/lintReview.cjs +4 -0
  111. package/dist/lintReview.d.mts +2 -0
  112. package/dist/lintReview.mjs +1 -0
  113. package/dist/locale.cjs +19 -0
  114. package/dist/locale.d.mts +3 -0
  115. package/dist/locale.mjs +3 -0
  116. package/dist/machineApi.cjs +30 -81
  117. package/dist/machineApi.cjs.map +1 -1
  118. package/dist/machineApi.d.mts +1 -1
  119. package/dist/machineApi.d.mts.map +1 -1
  120. package/dist/machineApi.mjs +30 -79
  121. package/dist/machineApi.mjs.map +1 -1
  122. package/dist/main.cjs +6 -1
  123. package/dist/main.d.mts +3 -3
  124. package/dist/main.mjs +3 -3
  125. package/dist/mcp.cjs +7 -0
  126. package/dist/mcp.d.mts +2 -0
  127. package/dist/mcp.mjs +1 -0
  128. package/dist/mcpProjection.cjs +1 -0
  129. package/dist/mcpProjection.d.mts +2 -2
  130. package/dist/mcpProjection.mjs +1 -1
  131. package/dist/mcpSchemaCost.cjs +10 -10
  132. package/dist/mcpSchemaCost.cjs.map +1 -1
  133. package/dist/mcpSchemaCost.mjs +9 -9
  134. package/dist/mcpSchemaCost.mjs.map +1 -1
  135. package/dist/modelGateway.cjs +33 -0
  136. package/dist/modelGateway.d.mts +13 -0
  137. package/dist/modelGateway.mjs +10 -0
  138. package/dist/moduleResolution.cjs +18 -18
  139. package/dist/moduleResolution.cjs.map +1 -1
  140. package/dist/moduleResolution.d.mts +4 -4
  141. package/dist/moduleResolution.d.mts.map +1 -1
  142. package/dist/moduleResolution.mjs +17 -17
  143. package/dist/moduleResolution.mjs.map +1 -1
  144. package/dist/native.cjs +99 -13
  145. package/dist/native.d.mts +26 -9
  146. package/dist/native.mjs +20 -4
  147. package/dist/nodePlatform.cjs +42 -4
  148. package/dist/nodePlatform.cjs.map +1 -1
  149. package/dist/nodePlatform.d.mts +5 -0
  150. package/dist/nodePlatform.d.mts.map +1 -1
  151. package/dist/nodePlatform.mjs +42 -5
  152. package/dist/nodePlatform.mjs.map +1 -1
  153. package/dist/notification.cjs +1 -0
  154. package/dist/notification.d.mts +2 -2
  155. package/dist/notification.mjs +1 -1
  156. package/dist/operationHook.cjs +3 -0
  157. package/dist/operationHook.d.mts +2 -0
  158. package/dist/operationHook.mjs +1 -0
  159. package/dist/packageApi.cjs +9 -0
  160. package/dist/packageApi.d.mts +4 -2
  161. package/dist/packageApi.mjs +3 -2
  162. package/dist/packageApiServer.cjs +148 -40
  163. package/dist/packageApiServer.cjs.map +1 -1
  164. package/dist/packageApiServer.d.mts +34 -6
  165. package/dist/packageApiServer.d.mts.map +1 -1
  166. package/dist/packageApiServer.mjs +140 -36
  167. package/dist/packageApiServer.mjs.map +1 -1
  168. package/dist/pairingPage.cjs +6 -0
  169. package/dist/pairingPage.d.mts +2 -0
  170. package/dist/pairingPage.mjs +1 -0
  171. package/dist/personTimeZone.cjs +7 -0
  172. package/dist/personTimeZone.d.mts +2 -0
  173. package/dist/personTimeZone.mjs +1 -0
  174. package/dist/piSettings.cjs +2 -0
  175. package/dist/piSettings.d.mts +3 -3
  176. package/dist/piSettings.mjs +3 -3
  177. package/dist/platform.cjs +47 -2
  178. package/dist/platform.d.mts +11 -6
  179. package/dist/platform.mjs +11 -6
  180. package/dist/pluginProtocol.cjs +15 -0
  181. package/dist/pluginProtocol.d.mts +2 -2
  182. package/dist/pluginProtocol.mjs +1 -1
  183. package/dist/po-runtime-identity.json +1 -0
  184. package/dist/protocolTransport.cjs +7 -0
  185. package/dist/protocolTransport.d.mts +3 -0
  186. package/dist/protocolTransport.mjs +3 -0
  187. package/dist/providerAuth.cjs +8 -0
  188. package/dist/providerAuth.d.mts +4 -0
  189. package/dist/providerAuth.mjs +3 -0
  190. package/dist/remoteChildSession.cjs +6 -0
  191. package/dist/remoteChildSession.d.mts +3 -0
  192. package/dist/remoteChildSession.mjs +1 -0
  193. package/dist/remoteContract.cjs +42 -0
  194. package/dist/remoteContract.d.mts +4 -0
  195. package/dist/remoteContract.mjs +3 -0
  196. package/dist/remoteOrigin.cjs +4 -0
  197. package/dist/remoteOrigin.d.mts +2 -0
  198. package/dist/remoteOrigin.mjs +1 -0
  199. package/dist/runtimeContextApi.cjs +1 -1
  200. package/dist/runtimeContextApi.cjs.map +1 -1
  201. package/dist/runtimeContextApi.mjs +1 -1
  202. package/dist/runtimeContextApi.mjs.map +1 -1
  203. package/dist/runtimeCordisHost.cjs +9 -8
  204. package/dist/runtimeCordisHost.cjs.map +1 -1
  205. package/dist/runtimeCordisHost.d.mts +1 -1
  206. package/dist/runtimeCordisHost.d.mts.map +1 -1
  207. package/dist/runtimeCordisHost.mjs +3 -2
  208. package/dist/runtimeCordisHost.mjs.map +1 -1
  209. package/dist/runtimeEnvironment.cjs +6 -0
  210. package/dist/runtimeEnvironment.d.mts +2 -0
  211. package/dist/runtimeEnvironment.mjs +1 -0
  212. package/dist/runtimeHeadlessSessionManager.d.mts +1 -0
  213. package/dist/runtimeHeadlessSessionManager.d.mts.map +1 -1
  214. package/dist/runtimeIdentity.cjs.map +1 -1
  215. package/dist/runtimeIdentity.d.mts +1 -1
  216. package/dist/runtimeIdentity.mjs.map +1 -1
  217. package/dist/runtimeLogSinkTelemetry.cjs +4 -4
  218. package/dist/runtimeLogSinkTelemetry.cjs.map +1 -1
  219. package/dist/runtimeLogSinkTelemetry.d.mts +4 -3
  220. package/dist/runtimeLogSinkTelemetry.d.mts.map +1 -1
  221. package/dist/runtimeLogSinkTelemetry.mjs +4 -4
  222. package/dist/runtimeLogSinkTelemetry.mjs.map +1 -1
  223. package/dist/runtimePackages.cjs +27 -22
  224. package/dist/runtimePackages.cjs.map +1 -1
  225. package/dist/runtimePackages.d.mts +9 -1
  226. package/dist/runtimePackages.d.mts.map +1 -1
  227. package/dist/runtimePackages.mjs +26 -21
  228. package/dist/runtimePackages.mjs.map +1 -1
  229. package/dist/runtimePiSettings.cjs +2 -0
  230. package/dist/runtimePiSettings.d.mts +3 -3
  231. package/dist/runtimePiSettings.mjs +3 -3
  232. package/dist/runtimeTransition.cjs.map +1 -1
  233. package/dist/runtimeTransition.d.mts +7 -7
  234. package/dist/runtimeTransition.d.mts.map +1 -1
  235. package/dist/runtimeTransition.mjs.map +1 -1
  236. package/dist/sandboxIdentity.cjs +5 -0
  237. package/dist/sandboxIdentity.d.mts +2 -0
  238. package/dist/sandboxIdentity.mjs +1 -0
  239. package/dist/server.d.mts +3 -3
  240. package/dist/serverPlugin.cjs +45 -6
  241. package/dist/serverPlugin.d.mts +18 -5
  242. package/dist/serverPlugin.mjs +16 -3
  243. package/dist/serverTelemetry.cjs +2 -2
  244. package/dist/serverTelemetry.cjs.map +1 -1
  245. package/dist/serverTelemetry.d.mts +2 -1
  246. package/dist/serverTelemetry.d.mts.map +1 -1
  247. package/dist/serverTelemetry.mjs +1 -1
  248. package/dist/serverTelemetry.mjs.map +1 -1
  249. package/dist/sessionFilesApi.cjs +17 -6
  250. package/dist/sessionFilesApi.cjs.map +1 -1
  251. package/dist/sessionFilesApi.d.mts.map +1 -1
  252. package/dist/sessionFilesApi.mjs +17 -6
  253. package/dist/sessionFilesApi.mjs.map +1 -1
  254. package/dist/sessionMcpContract.cjs +18 -0
  255. package/dist/sessionMcpContract.d.mts +5 -0
  256. package/dist/sessionMcpContract.mjs +1 -0
  257. package/dist/sessionProtocol.cjs +24 -2
  258. package/dist/sessionProtocol.d.mts +6 -5
  259. package/dist/sessionProtocol.mjs +6 -5
  260. package/dist/skills.cjs +4 -0
  261. package/dist/skills.d.mts +2 -1
  262. package/dist/skills.mjs +3 -1
  263. package/dist/sqliteSessionStorage.cjs +20 -13
  264. package/dist/sqliteSessionStorage.cjs.map +1 -1
  265. package/dist/sqliteSessionStorage.d.mts +3 -3
  266. package/dist/sqliteSessionStorage.d.mts.map +1 -1
  267. package/dist/sqliteSessionStorage.mjs +19 -12
  268. package/dist/sqliteSessionStorage.mjs.map +1 -1
  269. package/dist/src/constants/agentSettled.d.mts +5 -0
  270. package/dist/src/constants/agentSettled.d.mts.map +1 -0
  271. package/dist/src/constants/cloud.cjs +11 -0
  272. package/dist/src/constants/cloud.cjs.map +1 -0
  273. package/dist/src/constants/cloud.d.mts +9 -0
  274. package/dist/src/constants/cloud.d.mts.map +1 -0
  275. package/dist/src/constants/cloud.mjs +11 -0
  276. package/dist/src/constants/cloud.mjs.map +1 -0
  277. package/dist/src/constants/fixedCore.cjs +38 -0
  278. package/dist/src/constants/fixedCore.cjs.map +1 -0
  279. package/dist/src/constants/fixedCore.d.mts +12 -0
  280. package/dist/src/constants/fixedCore.d.mts.map +1 -0
  281. package/dist/src/constants/fixedCore.mjs +38 -0
  282. package/dist/src/constants/fixedCore.mjs.map +1 -0
  283. package/dist/src/constants/globalSettings.cjs +10 -0
  284. package/dist/src/constants/globalSettings.cjs.map +1 -0
  285. package/dist/src/constants/globalSettings.d.mts +8 -0
  286. package/dist/src/constants/globalSettings.d.mts.map +1 -0
  287. package/dist/src/constants/globalSettings.mjs +10 -0
  288. package/dist/src/constants/globalSettings.mjs.map +1 -0
  289. package/dist/src/constants/modelGateway.cjs +48 -0
  290. package/dist/src/constants/modelGateway.cjs.map +1 -0
  291. package/dist/src/constants/modelGateway.d.mts +29 -0
  292. package/dist/src/constants/modelGateway.d.mts.map +1 -0
  293. package/dist/src/constants/modelGateway.mjs +42 -0
  294. package/dist/src/constants/modelGateway.mjs.map +1 -0
  295. package/dist/src/constants/nativeHost.cjs +11 -1
  296. package/dist/src/constants/nativeHost.cjs.map +1 -1
  297. package/dist/src/constants/nativeHost.d.mts +1 -1
  298. package/dist/src/constants/nativeHost.d.mts.map +1 -1
  299. package/dist/src/constants/nativeHost.mjs +11 -1
  300. package/dist/src/constants/nativeHost.mjs.map +1 -1
  301. package/dist/src/constants/remote.cjs +26 -14
  302. package/dist/src/constants/remote.cjs.map +1 -1
  303. package/dist/src/constants/remote.d.mts +105 -0
  304. package/dist/src/constants/remote.d.mts.map +1 -0
  305. package/dist/src/constants/remote.mjs +18 -10
  306. package/dist/src/constants/remote.mjs.map +1 -1
  307. package/dist/src/constants/sessionFiles.cjs +3 -0
  308. package/dist/src/constants/sessionFiles.cjs.map +1 -1
  309. package/dist/src/constants/sessionFiles.d.mts +9 -0
  310. package/dist/src/constants/sessionFiles.d.mts.map +1 -0
  311. package/dist/src/constants/sessionFiles.mjs +3 -1
  312. package/dist/src/constants/sessionFiles.mjs.map +1 -1
  313. package/dist/src/constants/template.cjs +13 -0
  314. package/dist/src/constants/template.cjs.map +1 -0
  315. package/dist/src/constants/template.d.mts +9 -0
  316. package/dist/src/constants/template.d.mts.map +1 -0
  317. package/dist/src/constants/template.mjs +11 -0
  318. package/dist/src/constants/template.mjs.map +1 -0
  319. package/dist/src/extensions/extensionFile.cjs +9 -10
  320. package/dist/src/extensions/extensionFile.cjs.map +1 -1
  321. package/dist/src/extensions/extensionFile.d.mts +16 -8
  322. package/dist/src/extensions/extensionFile.d.mts.map +1 -1
  323. package/dist/src/extensions/extensionFile.mjs +10 -10
  324. package/dist/src/extensions/extensionFile.mjs.map +1 -1
  325. package/dist/src/extensions/serverPlugin.cjs +55 -7
  326. package/dist/src/extensions/serverPlugin.cjs.map +1 -1
  327. package/dist/src/extensions/serverPlugin.d.mts +1 -1
  328. package/dist/src/extensions/serverPlugin.d.mts.map +1 -1
  329. package/dist/src/extensions/serverPlugin.mjs +53 -5
  330. package/dist/src/extensions/serverPlugin.mjs.map +1 -1
  331. package/dist/src/extensions/webPlugin.cjs +25 -2
  332. package/dist/src/extensions/webPlugin.cjs.map +1 -1
  333. package/dist/src/extensions/webPlugin.d.mts +10 -2
  334. package/dist/src/extensions/webPlugin.d.mts.map +1 -1
  335. package/dist/src/extensions/webPlugin.mjs +21 -2
  336. package/dist/src/extensions/webPlugin.mjs.map +1 -1
  337. package/dist/src/pi/piSessionRuntime.cjs +299 -132
  338. package/dist/src/pi/piSessionRuntime.cjs.map +1 -1
  339. package/dist/src/pi/piSessionRuntime.d.mts +45 -9
  340. package/dist/src/pi/piSessionRuntime.d.mts.map +1 -1
  341. package/dist/src/pi/piSessionRuntime.mjs +299 -133
  342. package/dist/src/pi/piSessionRuntime.mjs.map +1 -1
  343. package/dist/src/schemas/agentModel.cjs +1 -1
  344. package/dist/src/schemas/agentModel.cjs.map +1 -1
  345. package/dist/src/schemas/agentModel.d.mts +1 -1
  346. package/dist/src/schemas/agentModel.mjs +1 -1
  347. package/dist/src/schemas/agentModel.mjs.map +1 -1
  348. package/dist/src/schemas/agentRun.cjs +16 -0
  349. package/dist/src/schemas/agentRun.cjs.map +1 -0
  350. package/dist/src/schemas/agentRun.d.mts +48 -0
  351. package/dist/src/schemas/agentRun.d.mts.map +1 -0
  352. package/dist/src/schemas/agentRun.mjs +14 -0
  353. package/dist/src/schemas/agentRun.mjs.map +1 -0
  354. package/dist/src/schemas/apiContracts.d.mts +2 -2
  355. package/dist/src/schemas/apiContracts.d.mts.map +1 -1
  356. package/dist/src/schemas/approval.cjs +21 -0
  357. package/dist/src/schemas/approval.cjs.map +1 -0
  358. package/dist/src/schemas/approval.d.mts +82 -0
  359. package/dist/src/schemas/approval.d.mts.map +1 -0
  360. package/dist/src/schemas/approval.mjs +15 -0
  361. package/dist/src/schemas/approval.mjs.map +1 -0
  362. package/dist/src/schemas/approvalPrompt.cjs +103 -0
  363. package/dist/src/schemas/approvalPrompt.cjs.map +1 -0
  364. package/dist/src/schemas/approvalPrompt.d.mts +83 -0
  365. package/dist/src/schemas/approvalPrompt.d.mts.map +1 -0
  366. package/dist/src/schemas/approvalPrompt.mjs +99 -0
  367. package/dist/src/schemas/approvalPrompt.mjs.map +1 -0
  368. package/dist/src/schemas/askUser.d.mts.map +1 -1
  369. package/dist/src/schemas/backgroundWork.cjs +24 -2
  370. package/dist/src/schemas/backgroundWork.cjs.map +1 -1
  371. package/dist/src/schemas/backgroundWork.d.mts +11 -1
  372. package/dist/src/schemas/backgroundWork.d.mts.map +1 -1
  373. package/dist/src/schemas/backgroundWork.mjs +20 -3
  374. package/dist/src/schemas/backgroundWork.mjs.map +1 -1
  375. package/dist/src/schemas/brain.cjs +43 -0
  376. package/dist/src/schemas/brain.cjs.map +1 -0
  377. package/dist/src/schemas/brain.d.mts +107 -0
  378. package/dist/src/schemas/brain.d.mts.map +1 -0
  379. package/dist/src/schemas/brain.mjs +43 -0
  380. package/dist/src/schemas/brain.mjs.map +1 -0
  381. package/dist/src/schemas/childProcess.cjs +2 -1
  382. package/dist/src/schemas/childProcess.cjs.map +1 -1
  383. package/dist/src/schemas/childProcess.d.mts +1 -1
  384. package/dist/src/schemas/childProcess.d.mts.map +1 -1
  385. package/dist/src/schemas/childProcess.mjs +2 -1
  386. package/dist/src/schemas/childProcess.mjs.map +1 -1
  387. package/dist/src/schemas/childReport.cjs +42 -0
  388. package/dist/src/schemas/childReport.cjs.map +1 -0
  389. package/dist/src/schemas/childReport.d.mts +96 -0
  390. package/dist/src/schemas/childReport.d.mts.map +1 -0
  391. package/dist/src/schemas/childReport.mjs +35 -0
  392. package/dist/src/schemas/childReport.mjs.map +1 -0
  393. package/dist/src/schemas/clientDevices.d.mts +25 -0
  394. package/dist/src/schemas/clientDevices.d.mts.map +1 -0
  395. package/dist/src/schemas/clientMetadata.d.mts +27 -0
  396. package/dist/src/schemas/clientMetadata.d.mts.map +1 -0
  397. package/dist/src/schemas/codemode.cjs +34 -0
  398. package/dist/src/schemas/codemode.cjs.map +1 -0
  399. package/dist/src/schemas/codemode.d.mts +162 -0
  400. package/dist/src/schemas/codemode.d.mts.map +1 -0
  401. package/dist/src/schemas/codemode.mjs +30 -0
  402. package/dist/src/schemas/codemode.mjs.map +1 -0
  403. package/dist/src/schemas/delegation.cjs +35 -3
  404. package/dist/src/schemas/delegation.cjs.map +1 -1
  405. package/dist/src/schemas/delegation.d.mts +23 -0
  406. package/dist/src/schemas/delegation.d.mts.map +1 -1
  407. package/dist/src/schemas/delegation.mjs +33 -4
  408. package/dist/src/schemas/delegation.mjs.map +1 -1
  409. package/dist/src/schemas/extensionFile.d.mts +11 -5
  410. package/dist/src/schemas/extensionFile.d.mts.map +1 -1
  411. package/dist/src/schemas/federation.cjs +50 -0
  412. package/dist/src/schemas/federation.cjs.map +1 -0
  413. package/dist/src/schemas/federation.d.mts +376 -0
  414. package/dist/src/schemas/federation.d.mts.map +1 -0
  415. package/dist/src/schemas/federation.mjs +44 -0
  416. package/dist/src/schemas/federation.mjs.map +1 -0
  417. package/dist/src/schemas/headless.cjs +153 -5
  418. package/dist/src/schemas/headless.cjs.map +1 -1
  419. package/dist/src/schemas/headless.d.mts +409 -20
  420. package/dist/src/schemas/headless.d.mts.map +1 -1
  421. package/dist/src/schemas/headless.mjs +143 -6
  422. package/dist/src/schemas/headless.mjs.map +1 -1
  423. package/dist/src/schemas/help.cjs +22 -3
  424. package/dist/src/schemas/help.cjs.map +1 -1
  425. package/dist/src/schemas/help.d.mts +70 -3
  426. package/dist/src/schemas/help.d.mts.map +1 -1
  427. package/dist/src/schemas/help.mjs +17 -4
  428. package/dist/src/schemas/help.mjs.map +1 -1
  429. package/dist/src/schemas/home.cjs +35 -12
  430. package/dist/src/schemas/home.cjs.map +1 -1
  431. package/dist/src/schemas/home.d.mts +6 -0
  432. package/dist/src/schemas/home.d.mts.map +1 -1
  433. package/dist/src/schemas/home.mjs +34 -13
  434. package/dist/src/schemas/home.mjs.map +1 -1
  435. package/dist/src/schemas/hostServiceContracts.cjs +39 -0
  436. package/dist/src/schemas/hostServiceContracts.cjs.map +1 -0
  437. package/dist/src/schemas/hostServiceContracts.d.mts +26 -0
  438. package/dist/src/schemas/hostServiceContracts.d.mts.map +1 -0
  439. package/dist/src/schemas/hostServiceContracts.mjs +39 -0
  440. package/dist/src/schemas/hostServiceContracts.mjs.map +1 -0
  441. package/dist/src/schemas/hostServices.cjs +14 -0
  442. package/dist/src/schemas/hostServices.cjs.map +1 -0
  443. package/dist/src/schemas/hostServices.d.mts +45 -0
  444. package/dist/src/schemas/hostServices.d.mts.map +1 -0
  445. package/dist/src/schemas/hostServices.mjs +12 -0
  446. package/dist/src/schemas/hostServices.mjs.map +1 -0
  447. package/dist/src/schemas/hostTeam.cjs +15 -0
  448. package/dist/src/schemas/hostTeam.cjs.map +1 -0
  449. package/dist/src/schemas/hostTeam.d.mts +64 -0
  450. package/dist/src/schemas/hostTeam.d.mts.map +1 -0
  451. package/dist/src/schemas/hostTeam.mjs +13 -0
  452. package/dist/src/schemas/hostTeam.mjs.map +1 -0
  453. package/dist/src/schemas/httpApiContracts.cjs +282 -18
  454. package/dist/src/schemas/httpApiContracts.cjs.map +1 -1
  455. package/dist/src/schemas/httpApiContracts.mjs +282 -18
  456. package/dist/src/schemas/httpApiContracts.mjs.map +1 -1
  457. package/dist/src/schemas/hubChannel.cjs +132 -0
  458. package/dist/src/schemas/hubChannel.cjs.map +1 -1
  459. package/dist/src/schemas/hubChannel.d.mts +366 -15
  460. package/dist/src/schemas/hubChannel.d.mts.map +1 -1
  461. package/dist/src/schemas/hubChannel.mjs +116 -1
  462. package/dist/src/schemas/hubChannel.mjs.map +1 -1
  463. package/dist/src/schemas/humanIdentity.cjs +16 -0
  464. package/dist/src/schemas/humanIdentity.cjs.map +1 -0
  465. package/dist/src/schemas/humanIdentity.d.mts +39 -0
  466. package/dist/src/schemas/humanIdentity.d.mts.map +1 -0
  467. package/dist/src/schemas/humanIdentity.mjs +14 -0
  468. package/dist/src/schemas/humanIdentity.mjs.map +1 -0
  469. package/dist/src/schemas/identity.cjs +34 -0
  470. package/dist/src/schemas/identity.cjs.map +1 -0
  471. package/dist/src/schemas/identity.d.mts +193 -0
  472. package/dist/src/schemas/identity.d.mts.map +1 -0
  473. package/dist/src/schemas/identity.mjs +30 -0
  474. package/dist/src/schemas/identity.mjs.map +1 -0
  475. package/dist/src/schemas/lang.cjs +34 -0
  476. package/dist/src/schemas/lang.cjs.map +1 -0
  477. package/dist/src/schemas/lang.d.mts +37 -0
  478. package/dist/src/schemas/lang.d.mts.map +1 -0
  479. package/dist/src/schemas/lang.mjs +27 -0
  480. package/dist/src/schemas/lang.mjs.map +1 -0
  481. package/dist/src/schemas/leader.cjs +1 -1
  482. package/dist/src/schemas/leader.cjs.map +1 -1
  483. package/dist/src/schemas/leader.d.mts +1 -1
  484. package/dist/src/schemas/leader.d.mts.map +1 -1
  485. package/dist/src/schemas/leader.mjs +1 -1
  486. package/dist/src/schemas/leader.mjs.map +1 -1
  487. package/dist/src/schemas/lintReview.cjs +14 -0
  488. package/dist/src/schemas/lintReview.cjs.map +1 -0
  489. package/dist/src/schemas/lintReview.d.mts +75 -0
  490. package/dist/src/schemas/lintReview.d.mts.map +1 -0
  491. package/dist/src/schemas/lintReview.mjs +13 -0
  492. package/dist/src/schemas/lintReview.mjs.map +1 -0
  493. package/dist/src/schemas/locale.cjs +116 -0
  494. package/dist/src/schemas/locale.cjs.map +1 -0
  495. package/dist/src/schemas/locale.d.mts +40 -0
  496. package/dist/src/schemas/locale.d.mts.map +1 -0
  497. package/dist/src/schemas/locale.mjs +108 -0
  498. package/dist/src/schemas/locale.mjs.map +1 -0
  499. package/dist/src/schemas/mcp.cjs +17 -0
  500. package/dist/src/schemas/mcp.cjs.map +1 -0
  501. package/dist/src/schemas/mcp.d.mts +112 -0
  502. package/dist/src/schemas/mcp.d.mts.map +1 -0
  503. package/dist/src/schemas/mcp.mjs +13 -0
  504. package/dist/src/schemas/mcp.mjs.map +1 -0
  505. package/dist/src/schemas/mcpFacet.cjs.map +1 -1
  506. package/dist/src/schemas/mcpFacet.d.mts +4 -3
  507. package/dist/src/schemas/mcpFacet.d.mts.map +1 -1
  508. package/dist/src/schemas/mcpFacet.mjs.map +1 -1
  509. package/dist/src/schemas/mcpProjection.cjs +11 -1
  510. package/dist/src/schemas/mcpProjection.cjs.map +1 -1
  511. package/dist/src/schemas/mcpProjection.d.mts +10 -4
  512. package/dist/src/schemas/mcpProjection.d.mts.map +1 -1
  513. package/dist/src/schemas/mcpProjection.mjs +11 -2
  514. package/dist/src/schemas/mcpProjection.mjs.map +1 -1
  515. package/dist/src/schemas/mcpSession.d.mts +1 -1
  516. package/dist/src/schemas/modelGateway.cjs +143 -0
  517. package/dist/src/schemas/modelGateway.cjs.map +1 -0
  518. package/dist/src/schemas/modelGateway.d.mts +150 -0
  519. package/dist/src/schemas/modelGateway.d.mts.map +1 -0
  520. package/dist/src/schemas/modelGateway.mjs +135 -0
  521. package/dist/src/schemas/modelGateway.mjs.map +1 -0
  522. package/dist/src/schemas/narration.d.mts.map +1 -1
  523. package/dist/src/schemas/notification.cjs +59 -5
  524. package/dist/src/schemas/notification.cjs.map +1 -1
  525. package/dist/src/schemas/notification.d.mts +26 -0
  526. package/dist/src/schemas/notification.d.mts.map +1 -1
  527. package/dist/src/schemas/notification.mjs +59 -6
  528. package/dist/src/schemas/notification.mjs.map +1 -1
  529. package/dist/src/schemas/operationHook.cjs +180 -0
  530. package/dist/src/schemas/operationHook.cjs.map +1 -0
  531. package/dist/src/schemas/operationHook.d.mts +141 -0
  532. package/dist/src/schemas/operationHook.d.mts.map +1 -0
  533. package/dist/src/schemas/operationHook.mjs +180 -0
  534. package/dist/src/schemas/operationHook.mjs.map +1 -0
  535. package/dist/src/schemas/packageApi.cjs +76 -7
  536. package/dist/src/schemas/packageApi.cjs.map +1 -1
  537. package/dist/src/schemas/packageApi.d.mts +174 -30
  538. package/dist/src/schemas/packageApi.d.mts.map +1 -1
  539. package/dist/src/schemas/packageApi.mjs +70 -8
  540. package/dist/src/schemas/packageApi.mjs.map +1 -1
  541. package/dist/src/schemas/personTimeZone.cjs +29 -0
  542. package/dist/src/schemas/personTimeZone.cjs.map +1 -0
  543. package/dist/src/schemas/personTimeZone.d.mts +33 -0
  544. package/dist/src/schemas/personTimeZone.d.mts.map +1 -0
  545. package/dist/src/schemas/personTimeZone.mjs +25 -0
  546. package/dist/src/schemas/personTimeZone.mjs.map +1 -0
  547. package/dist/src/schemas/platform.cjs +48 -0
  548. package/dist/src/schemas/platform.cjs.map +1 -1
  549. package/dist/src/schemas/platform.d.mts +355 -11
  550. package/dist/src/schemas/platform.d.mts.map +1 -1
  551. package/dist/src/schemas/platform.mjs +34 -1
  552. package/dist/src/schemas/platform.mjs.map +1 -1
  553. package/dist/src/schemas/pluginCatalog.cjs +42 -0
  554. package/dist/src/schemas/pluginCatalog.cjs.map +1 -0
  555. package/dist/src/schemas/pluginCatalog.d.mts +67 -0
  556. package/dist/src/schemas/pluginCatalog.d.mts.map +1 -0
  557. package/dist/src/schemas/pluginCatalog.mjs +39 -0
  558. package/dist/src/schemas/pluginCatalog.mjs.map +1 -0
  559. package/dist/src/schemas/pluginContributions.cjs.map +1 -1
  560. package/dist/src/schemas/pluginContributions.d.mts +5 -2
  561. package/dist/src/schemas/pluginContributions.d.mts.map +1 -1
  562. package/dist/src/schemas/pluginContributions.mjs.map +1 -1
  563. package/dist/src/schemas/pluginProtocol.cjs +110 -10
  564. package/dist/src/schemas/pluginProtocol.cjs.map +1 -1
  565. package/dist/src/schemas/pluginProtocol.d.mts +63 -5
  566. package/dist/src/schemas/pluginProtocol.d.mts.map +1 -1
  567. package/dist/src/schemas/pluginProtocol.mjs +96 -11
  568. package/dist/src/schemas/pluginProtocol.mjs.map +1 -1
  569. package/dist/src/schemas/profileIdentity.cjs +3 -3
  570. package/dist/src/schemas/profileIdentity.cjs.map +1 -1
  571. package/dist/src/schemas/profileIdentity.d.mts +2 -2
  572. package/dist/src/schemas/profileIdentity.mjs +3 -3
  573. package/dist/src/schemas/profileIdentity.mjs.map +1 -1
  574. package/dist/src/schemas/protocolChannelsContract.cjs +4 -8
  575. package/dist/src/schemas/protocolChannelsContract.cjs.map +1 -1
  576. package/dist/src/schemas/protocolChannelsContract.d.mts +16 -22
  577. package/dist/src/schemas/protocolChannelsContract.d.mts.map +1 -1
  578. package/dist/src/schemas/protocolChannelsContract.mjs +5 -9
  579. package/dist/src/schemas/protocolChannelsContract.mjs.map +1 -1
  580. package/dist/src/schemas/protocolContracts.cjs +193 -133
  581. package/dist/src/schemas/protocolContracts.cjs.map +1 -1
  582. package/dist/src/schemas/protocolContracts.d.mts +136 -32
  583. package/dist/src/schemas/protocolContracts.d.mts.map +1 -1
  584. package/dist/src/schemas/protocolContracts.mjs +186 -132
  585. package/dist/src/schemas/protocolContracts.mjs.map +1 -1
  586. package/dist/src/schemas/protocolHubContract.cjs +109 -27
  587. package/dist/src/schemas/protocolHubContract.cjs.map +1 -1
  588. package/dist/src/schemas/protocolHubContract.d.mts +292 -134
  589. package/dist/src/schemas/protocolHubContract.d.mts.map +1 -1
  590. package/dist/src/schemas/protocolHubContract.mjs +103 -30
  591. package/dist/src/schemas/protocolHubContract.mjs.map +1 -1
  592. package/dist/src/schemas/protocolService.cjs +12 -0
  593. package/dist/src/schemas/protocolService.cjs.map +1 -0
  594. package/dist/src/schemas/protocolService.d.mts +22 -0
  595. package/dist/src/schemas/protocolService.d.mts.map +1 -0
  596. package/dist/src/schemas/protocolService.mjs +11 -0
  597. package/dist/src/schemas/protocolService.mjs.map +1 -0
  598. package/dist/src/schemas/protocolSessionContract.cjs +7 -11
  599. package/dist/src/schemas/protocolSessionContract.cjs.map +1 -1
  600. package/dist/src/schemas/protocolSessionContract.d.mts +303 -299
  601. package/dist/src/schemas/protocolSessionContract.d.mts.map +1 -1
  602. package/dist/src/schemas/protocolSessionContract.mjs +9 -13
  603. package/dist/src/schemas/protocolSessionContract.mjs.map +1 -1
  604. package/dist/src/schemas/protocolThreadContract.cjs +5 -6
  605. package/dist/src/schemas/protocolThreadContract.cjs.map +1 -1
  606. package/dist/src/schemas/protocolThreadContract.d.mts +12 -16
  607. package/dist/src/schemas/protocolThreadContract.d.mts.map +1 -1
  608. package/dist/src/schemas/protocolThreadContract.mjs +6 -7
  609. package/dist/src/schemas/protocolThreadContract.mjs.map +1 -1
  610. package/dist/src/schemas/remoteGateway.cjs +14 -0
  611. package/dist/src/schemas/remoteGateway.cjs.map +1 -0
  612. package/dist/src/schemas/remoteGateway.d.mts +19 -0
  613. package/dist/src/schemas/remoteGateway.d.mts.map +1 -0
  614. package/dist/src/schemas/remoteGateway.mjs +12 -0
  615. package/dist/src/schemas/remoteGateway.mjs.map +1 -0
  616. package/dist/src/schemas/remoteOrigin.cjs +9 -0
  617. package/dist/src/schemas/remoteOrigin.cjs.map +1 -0
  618. package/dist/src/schemas/remoteOrigin.d.mts +16 -0
  619. package/dist/src/schemas/remoteOrigin.d.mts.map +1 -0
  620. package/dist/src/schemas/remoteOrigin.mjs +8 -0
  621. package/dist/src/schemas/remoteOrigin.mjs.map +1 -0
  622. package/dist/src/schemas/sandboxIdentity.cjs +14 -0
  623. package/dist/src/schemas/sandboxIdentity.cjs.map +1 -0
  624. package/dist/src/schemas/sandboxIdentity.d.mts +23 -0
  625. package/dist/src/schemas/sandboxIdentity.d.mts.map +1 -0
  626. package/dist/src/schemas/sandboxIdentity.mjs +12 -0
  627. package/dist/src/schemas/sandboxIdentity.mjs.map +1 -0
  628. package/dist/src/schemas/serverBundle.cjs +13 -0
  629. package/dist/src/schemas/serverBundle.cjs.map +1 -0
  630. package/dist/src/schemas/serverBundle.d.mts +29 -1
  631. package/dist/src/schemas/serverBundle.d.mts.map +1 -1
  632. package/dist/src/schemas/serverBundle.mjs +13 -0
  633. package/dist/src/schemas/serverBundle.mjs.map +1 -0
  634. package/dist/src/schemas/serverPlugin.cjs +5 -3
  635. package/dist/src/schemas/serverPlugin.cjs.map +1 -1
  636. package/dist/src/schemas/serverPlugin.d.mts +2 -2
  637. package/dist/src/schemas/serverPlugin.d.mts.map +1 -1
  638. package/dist/src/schemas/serverPlugin.mjs +5 -3
  639. package/dist/src/schemas/serverPlugin.mjs.map +1 -1
  640. package/dist/src/schemas/serverScope.cjs +21 -3
  641. package/dist/src/schemas/serverScope.cjs.map +1 -1
  642. package/dist/src/schemas/serverScope.d.mts +17 -1
  643. package/dist/src/schemas/serverScope.d.mts.map +1 -1
  644. package/dist/src/schemas/serverScope.mjs +21 -4
  645. package/dist/src/schemas/serverScope.mjs.map +1 -1
  646. package/dist/src/schemas/sessionApiContracts.cjs +17 -11
  647. package/dist/src/schemas/sessionApiContracts.cjs.map +1 -1
  648. package/dist/src/schemas/sessionApiContracts.mjs +18 -11
  649. package/dist/src/schemas/sessionApiContracts.mjs.map +1 -1
  650. package/dist/src/schemas/sessionLifecycle.cjs +12 -0
  651. package/dist/src/schemas/sessionLifecycle.cjs.map +1 -0
  652. package/dist/src/schemas/sessionLifecycle.d.mts +33 -0
  653. package/dist/src/schemas/sessionLifecycle.d.mts.map +1 -0
  654. package/dist/src/schemas/sessionLifecycle.mjs +11 -0
  655. package/dist/src/schemas/sessionLifecycle.mjs.map +1 -0
  656. package/dist/src/schemas/sessionProtocol.cjs +13 -0
  657. package/dist/src/schemas/sessionProtocol.cjs.map +1 -1
  658. package/dist/src/schemas/sessionProtocol.d.mts +57 -15
  659. package/dist/src/schemas/sessionProtocol.d.mts.map +1 -1
  660. package/dist/src/schemas/sessionProtocol.mjs +12 -1
  661. package/dist/src/schemas/sessionProtocol.mjs.map +1 -1
  662. package/dist/src/schemas/sharedModels.cjs +9 -0
  663. package/dist/src/schemas/sharedModels.cjs.map +1 -0
  664. package/dist/src/schemas/sharedModels.d.mts +33 -0
  665. package/dist/src/schemas/sharedModels.d.mts.map +1 -0
  666. package/dist/src/schemas/sharedModels.mjs +8 -0
  667. package/dist/src/schemas/sharedModels.mjs.map +1 -0
  668. package/dist/src/schemas/skills.cjs +1 -1
  669. package/dist/src/schemas/skills.cjs.map +1 -1
  670. package/dist/src/schemas/skills.d.mts +1 -1
  671. package/dist/src/schemas/skills.mjs +1 -1
  672. package/dist/src/schemas/skills.mjs.map +1 -1
  673. package/dist/src/schemas/space.cjs +33 -0
  674. package/dist/src/schemas/space.cjs.map +1 -0
  675. package/dist/src/schemas/space.d.mts +90 -0
  676. package/dist/src/schemas/space.d.mts.map +1 -0
  677. package/dist/src/schemas/space.mjs +29 -0
  678. package/dist/src/schemas/space.mjs.map +1 -0
  679. package/dist/src/schemas/toolSurface.cjs.map +1 -1
  680. package/dist/src/schemas/toolSurface.d.mts +2 -2
  681. package/dist/src/schemas/toolSurface.d.mts.map +1 -1
  682. package/dist/src/schemas/toolSurface.mjs.map +1 -1
  683. package/dist/src/schemas/userFeedback.cjs +22 -0
  684. package/dist/src/schemas/userFeedback.cjs.map +1 -0
  685. package/dist/src/schemas/userFeedback.d.mts +30 -0
  686. package/dist/src/schemas/userFeedback.d.mts.map +1 -0
  687. package/dist/src/schemas/userFeedback.mjs +18 -0
  688. package/dist/src/schemas/userFeedback.mjs.map +1 -0
  689. package/dist/src/schemas/voiceReloadHandoff.cjs +3 -3
  690. package/dist/src/schemas/voiceReloadHandoff.cjs.map +1 -1
  691. package/dist/src/schemas/voiceReloadHandoff.d.mts +5 -5
  692. package/dist/src/schemas/voiceReloadHandoff.d.mts.map +1 -1
  693. package/dist/src/schemas/voiceReloadHandoff.mjs +3 -3
  694. package/dist/src/schemas/voiceReloadHandoff.mjs.map +1 -1
  695. package/dist/src/schemas/workflow.cjs +217 -0
  696. package/dist/src/schemas/workflow.cjs.map +1 -0
  697. package/dist/src/schemas/workflow.d.mts +593 -0
  698. package/dist/src/schemas/workflow.d.mts.map +1 -0
  699. package/dist/src/schemas/workflow.mjs +188 -0
  700. package/dist/src/schemas/workflow.mjs.map +1 -0
  701. package/dist/src/schemas/workspaceRegistry.cjs +13 -0
  702. package/dist/src/schemas/workspaceRegistry.cjs.map +1 -0
  703. package/dist/src/schemas/workspaceRegistry.d.mts +45 -0
  704. package/dist/src/schemas/workspaceRegistry.d.mts.map +1 -0
  705. package/dist/src/schemas/workspaceRegistry.mjs +11 -0
  706. package/dist/src/schemas/workspaceRegistry.mjs.map +1 -0
  707. package/dist/src/schemas/workspaceSandboxes.cjs +14 -0
  708. package/dist/src/schemas/workspaceSandboxes.cjs.map +1 -0
  709. package/dist/src/schemas/workspaceSandboxes.d.mts +85 -0
  710. package/dist/src/schemas/workspaceSandboxes.d.mts.map +1 -0
  711. package/dist/src/schemas/workspaceSandboxes.mjs +12 -0
  712. package/dist/src/schemas/workspaceSandboxes.mjs.map +1 -0
  713. package/dist/src/server/conversationEvents.cjs +345 -0
  714. package/dist/src/server/conversationEvents.cjs.map +1 -0
  715. package/dist/src/server/conversationEvents.mjs +345 -0
  716. package/dist/src/server/conversationEvents.mjs.map +1 -0
  717. package/dist/src/server/directHarnessRuntime.cjs +1326 -549
  718. package/dist/src/server/directHarnessRuntime.cjs.map +1 -1
  719. package/dist/src/server/directHarnessRuntime.d.mts +1 -1
  720. package/dist/src/server/directHarnessRuntime.d.mts.map +1 -1
  721. package/dist/src/server/directHarnessRuntime.mjs +1308 -532
  722. package/dist/src/server/directHarnessRuntime.mjs.map +1 -1
  723. package/dist/src/server/largeFrameLink.cjs +22 -37
  724. package/dist/src/server/largeFrameLink.cjs.map +1 -1
  725. package/dist/src/server/largeFrameLink.mjs +22 -37
  726. package/dist/src/server/largeFrameLink.mjs.map +1 -1
  727. package/dist/src/server/mcpBundleLoader.cjs +2 -1
  728. package/dist/src/server/mcpBundleLoader.cjs.map +1 -1
  729. package/dist/src/server/mcpBundleLoader.d.mts +1 -1
  730. package/dist/src/server/mcpBundleLoader.d.mts.map +1 -1
  731. package/dist/src/server/mcpBundleLoader.mjs +2 -1
  732. package/dist/src/server/mcpBundleLoader.mjs.map +1 -1
  733. package/dist/src/server/providerRoutes.cjs +74 -0
  734. package/dist/src/server/providerRoutes.cjs.map +1 -0
  735. package/dist/src/server/providerRoutes.d.mts +20 -0
  736. package/dist/src/server/providerRoutes.d.mts.map +1 -0
  737. package/dist/src/server/providerRoutes.mjs +74 -0
  738. package/dist/src/server/providerRoutes.mjs.map +1 -0
  739. package/dist/src/server/providerRuntime.cjs +41 -0
  740. package/dist/src/server/providerRuntime.cjs.map +1 -0
  741. package/dist/src/server/providerRuntime.d.mts +12 -0
  742. package/dist/src/server/providerRuntime.d.mts.map +1 -0
  743. package/dist/src/server/providerRuntime.mjs +39 -0
  744. package/dist/src/server/providerRuntime.mjs.map +1 -0
  745. package/dist/src/server/serverPackages.cjs +29 -7
  746. package/dist/src/server/serverPackages.cjs.map +1 -1
  747. package/dist/src/server/serverPackages.d.mts +9 -3
  748. package/dist/src/server/serverPackages.d.mts.map +1 -1
  749. package/dist/src/server/serverPackages.mjs +29 -7
  750. package/dist/src/server/serverPackages.mjs.map +1 -1
  751. package/dist/src/server/serverScope.cjs +434 -34
  752. package/dist/src/server/serverScope.cjs.map +1 -1
  753. package/dist/src/server/serverScope.d.mts +72 -8
  754. package/dist/src/server/serverScope.d.mts.map +1 -1
  755. package/dist/src/server/serverScope.mjs +435 -35
  756. package/dist/src/server/serverScope.mjs.map +1 -1
  757. package/dist/src/server/threadJournals.cjs.map +1 -1
  758. package/dist/src/server/threadJournals.mjs.map +1 -1
  759. package/dist/src/services/approvalGate/index.cjs +179 -0
  760. package/dist/src/services/approvalGate/index.cjs.map +1 -0
  761. package/dist/src/services/approvalGate/index.d.mts +30 -0
  762. package/dist/src/services/approvalGate/index.d.mts.map +1 -0
  763. package/dist/src/services/approvalGate/index.mjs +174 -0
  764. package/dist/src/services/approvalGate/index.mjs.map +1 -0
  765. package/dist/src/services/approvalGate/type.d.mts +36 -0
  766. package/dist/src/services/approvalGate/type.d.mts.map +1 -0
  767. package/dist/src/services/bundlePublication/index.cjs +103 -39
  768. package/dist/src/services/bundlePublication/index.cjs.map +1 -1
  769. package/dist/src/services/bundlePublication/index.d.mts +11 -0
  770. package/dist/src/services/bundlePublication/index.d.mts.map +1 -0
  771. package/dist/src/services/bundlePublication/index.mjs +101 -39
  772. package/dist/src/services/bundlePublication/index.mjs.map +1 -1
  773. package/dist/src/services/chatgptImages/index.cjs +56 -11
  774. package/dist/src/services/chatgptImages/index.cjs.map +1 -1
  775. package/dist/src/services/chatgptImages/index.mjs +56 -11
  776. package/dist/src/services/chatgptImages/index.mjs.map +1 -1
  777. package/dist/src/services/chatgptLogin/index.cjs +2 -2
  778. package/dist/src/services/chatgptLogin/index.cjs.map +1 -1
  779. package/dist/src/services/chordAdapter/index.cjs +456 -0
  780. package/dist/src/services/chordAdapter/index.cjs.map +1 -0
  781. package/dist/src/services/chordAdapter/index.d.mts +13 -0
  782. package/dist/src/services/chordAdapter/index.d.mts.map +1 -0
  783. package/dist/src/services/chordAdapter/index.mjs +453 -0
  784. package/dist/src/services/chordAdapter/index.mjs.map +1 -0
  785. package/dist/src/services/chordAdapter/type.d.mts +24 -0
  786. package/dist/src/services/chordAdapter/type.d.mts.map +1 -0
  787. package/dist/src/services/clientDevices/index.cjs +75 -0
  788. package/dist/src/services/clientDevices/index.cjs.map +1 -0
  789. package/dist/src/services/clientDevices/index.d.mts +7 -0
  790. package/dist/src/services/clientDevices/index.d.mts.map +1 -0
  791. package/dist/src/services/clientDevices/index.mjs +74 -0
  792. package/dist/src/services/clientDevices/index.mjs.map +1 -0
  793. package/dist/src/services/clientMetadata/_lib/codec.cjs +96 -0
  794. package/dist/src/services/clientMetadata/_lib/codec.cjs.map +1 -0
  795. package/dist/src/services/clientMetadata/_lib/codec.d.mts +16 -0
  796. package/dist/src/services/clientMetadata/_lib/codec.d.mts.map +1 -0
  797. package/dist/src/services/clientMetadata/_lib/codec.mjs +89 -0
  798. package/dist/src/services/clientMetadata/_lib/codec.mjs.map +1 -0
  799. package/dist/src/services/clientMetadata/_lib/deviceLabel.cjs +63 -0
  800. package/dist/src/services/clientMetadata/_lib/deviceLabel.cjs.map +1 -0
  801. package/dist/src/services/clientMetadata/_lib/deviceLabel.d.mts +10 -0
  802. package/dist/src/services/clientMetadata/_lib/deviceLabel.d.mts.map +1 -0
  803. package/dist/src/services/clientMetadata/_lib/deviceLabel.mjs +62 -0
  804. package/dist/src/services/clientMetadata/_lib/deviceLabel.mjs.map +1 -0
  805. package/dist/src/services/contextUsage/index.cjs +0 -9
  806. package/dist/src/services/contextUsage/index.cjs.map +1 -1
  807. package/dist/src/services/contextUsage/index.mjs +1 -9
  808. package/dist/src/services/contextUsage/index.mjs.map +1 -1
  809. package/dist/src/services/durableNavigation/docs.cjs +1 -0
  810. package/dist/src/services/durableNavigation/docs.cjs.map +1 -1
  811. package/dist/src/services/durableNavigation/docs.mjs +1 -0
  812. package/dist/src/services/durableNavigation/docs.mjs.map +1 -1
  813. package/dist/src/services/durableNavigation/index.cjs.map +1 -1
  814. package/dist/src/services/durableNavigation/index.mjs.map +1 -1
  815. package/dist/src/services/durableQueue/docs.cjs +1 -0
  816. package/dist/src/services/durableQueue/docs.cjs.map +1 -1
  817. package/dist/src/services/durableQueue/docs.mjs +1 -0
  818. package/dist/src/services/durableQueue/docs.mjs.map +1 -1
  819. package/dist/src/services/durableQueue/index.cjs +157 -69
  820. package/dist/src/services/durableQueue/index.cjs.map +1 -1
  821. package/dist/src/services/durableQueue/index.mjs +156 -70
  822. package/dist/src/services/durableQueue/index.mjs.map +1 -1
  823. package/dist/src/services/durableRequestReceipts/docs.cjs +1 -0
  824. package/dist/src/services/durableRequestReceipts/docs.cjs.map +1 -1
  825. package/dist/src/services/durableRequestReceipts/docs.mjs +1 -0
  826. package/dist/src/services/durableRequestReceipts/docs.mjs.map +1 -1
  827. package/dist/src/services/durableResumeSnapshots/docs.cjs +49 -0
  828. package/dist/src/services/durableResumeSnapshots/docs.cjs.map +1 -0
  829. package/dist/src/services/durableResumeSnapshots/docs.mjs +48 -0
  830. package/dist/src/services/durableResumeSnapshots/docs.mjs.map +1 -0
  831. package/dist/src/services/durableResumeSnapshots/index.cjs +392 -0
  832. package/dist/src/services/durableResumeSnapshots/index.cjs.map +1 -0
  833. package/dist/src/services/durableResumeSnapshots/index.mjs +392 -0
  834. package/dist/src/services/durableResumeSnapshots/index.mjs.map +1 -0
  835. package/dist/src/services/durableResumeSnapshots/type.d.mts +27 -0
  836. package/dist/src/services/durableResumeSnapshots/type.d.mts.map +1 -0
  837. package/dist/src/services/durableSession/docs.cjs +13 -1
  838. package/dist/src/services/durableSession/docs.cjs.map +1 -1
  839. package/dist/src/services/durableSession/docs.d.mts +9 -1
  840. package/dist/src/services/durableSession/docs.d.mts.map +1 -1
  841. package/dist/src/services/durableSession/docs.mjs +13 -1
  842. package/dist/src/services/durableSession/docs.mjs.map +1 -1
  843. package/dist/src/services/durableSession/index.cjs.map +1 -1
  844. package/dist/src/services/durableSession/index.d.mts +1 -1
  845. package/dist/src/services/durableSession/index.mjs.map +1 -1
  846. package/dist/src/services/durableSubagents/docs.cjs +1 -0
  847. package/dist/src/services/durableSubagents/docs.cjs.map +1 -1
  848. package/dist/src/services/durableSubagents/docs.mjs +1 -0
  849. package/dist/src/services/durableSubagents/docs.mjs.map +1 -1
  850. package/dist/src/services/durableSubagents/extension.cjs.map +1 -1
  851. package/dist/src/services/durableSubagents/index.cjs +29 -3
  852. package/dist/src/services/durableSubagents/index.cjs.map +1 -1
  853. package/dist/src/services/durableSubagents/index.mjs +29 -4
  854. package/dist/src/services/durableSubagents/index.mjs.map +1 -1
  855. package/dist/src/services/durableSubagents/tasks.cjs.map +1 -1
  856. package/dist/src/services/edgeModelRuntime/index.cjs +377 -0
  857. package/dist/src/services/edgeModelRuntime/index.cjs.map +1 -0
  858. package/dist/src/services/edgeModelRuntime/index.d.mts +24 -0
  859. package/dist/src/services/edgeModelRuntime/index.d.mts.map +1 -0
  860. package/dist/src/services/edgeModelRuntime/index.mjs +374 -0
  861. package/dist/src/services/edgeModelRuntime/index.mjs.map +1 -0
  862. package/dist/src/services/edgeModelRuntime/type.d.mts +39 -0
  863. package/dist/src/services/edgeModelRuntime/type.d.mts.map +1 -0
  864. package/dist/src/services/editPresence/index.cjs +53 -0
  865. package/dist/src/services/editPresence/index.cjs.map +1 -0
  866. package/dist/src/services/editPresence/index.d.mts +6 -0
  867. package/dist/src/services/editPresence/index.d.mts.map +1 -0
  868. package/dist/src/services/editPresence/index.mjs +53 -0
  869. package/dist/src/services/editPresence/index.mjs.map +1 -0
  870. package/dist/src/services/fileAccess/accessibleFile.cjs +63 -0
  871. package/dist/src/services/fileAccess/accessibleFile.cjs.map +1 -0
  872. package/dist/src/services/fileAccess/accessibleFile.d.mts +1 -0
  873. package/dist/src/services/fileAccess/accessibleFile.mjs +60 -0
  874. package/dist/src/services/fileAccess/accessibleFile.mjs.map +1 -0
  875. package/dist/src/services/fileAccess/core.cjs +87 -0
  876. package/dist/src/services/fileAccess/core.cjs.map +1 -0
  877. package/dist/src/services/fileAccess/core.mjs +78 -0
  878. package/dist/src/services/fileAccess/core.mjs.map +1 -0
  879. package/dist/src/services/fileAccess/index.cjs +34 -0
  880. package/dist/src/services/fileAccess/index.cjs.map +1 -0
  881. package/dist/src/services/fileAccess/index.d.mts +23 -0
  882. package/dist/src/services/fileAccess/index.d.mts.map +1 -0
  883. package/dist/src/services/fileAccess/index.mjs +29 -0
  884. package/dist/src/services/fileAccess/index.mjs.map +1 -0
  885. package/dist/src/services/fileAccess/type.d.mts +1 -0
  886. package/dist/src/services/grantLedger/index.cjs +56 -0
  887. package/dist/src/services/grantLedger/index.cjs.map +1 -0
  888. package/dist/src/services/grantLedger/index.mjs +55 -0
  889. package/dist/src/services/grantLedger/index.mjs.map +1 -0
  890. package/dist/src/services/guardedFile/index.cjs +36 -0
  891. package/dist/src/services/guardedFile/index.cjs.map +1 -0
  892. package/dist/src/services/guardedFile/index.d.mts +9 -0
  893. package/dist/src/services/guardedFile/index.d.mts.map +1 -0
  894. package/dist/src/services/guardedFile/index.mjs +33 -0
  895. package/dist/src/services/guardedFile/index.mjs.map +1 -0
  896. package/dist/src/services/headlessClient/index.cjs +85 -3
  897. package/dist/src/services/headlessClient/index.cjs.map +1 -1
  898. package/dist/src/services/headlessClient/index.mjs +86 -4
  899. package/dist/src/services/headlessClient/index.mjs.map +1 -1
  900. package/dist/src/services/hostServices/index.cjs +157 -0
  901. package/dist/src/services/hostServices/index.cjs.map +1 -0
  902. package/dist/src/services/hostServices/index.d.mts +33 -0
  903. package/dist/src/services/hostServices/index.d.mts.map +1 -0
  904. package/dist/src/services/hostServices/index.mjs +157 -0
  905. package/dist/src/services/hostServices/index.mjs.map +1 -0
  906. package/dist/src/services/inputTemplate/index.cjs +120 -0
  907. package/dist/src/services/inputTemplate/index.cjs.map +1 -0
  908. package/dist/src/services/inputTemplate/index.d.mts +10 -0
  909. package/dist/src/services/inputTemplate/index.d.mts.map +1 -0
  910. package/dist/src/services/inputTemplate/index.mjs +118 -0
  911. package/dist/src/services/inputTemplate/index.mjs.map +1 -0
  912. package/dist/src/services/inputTemplate/type.d.mts +17 -0
  913. package/dist/src/services/inputTemplate/type.d.mts.map +1 -0
  914. package/dist/src/services/json/core.cjs.map +1 -1
  915. package/dist/src/services/json/core.d.mts +1 -1
  916. package/dist/src/services/json/core.mjs.map +1 -1
  917. package/dist/src/services/json/sync.cjs +2 -2
  918. package/dist/src/services/json/sync.cjs.map +1 -1
  919. package/dist/src/services/json/sync.d.mts.map +1 -1
  920. package/dist/src/services/json/sync.mjs +1 -1
  921. package/dist/src/services/json/sync.mjs.map +1 -1
  922. package/dist/src/services/kernel/index.cjs.map +1 -1
  923. package/dist/src/services/kernel/index.d.mts +1 -1
  924. package/dist/src/services/kernel/index.mjs.map +1 -1
  925. package/dist/src/services/loginFlow/index.cjs +7 -1
  926. package/dist/src/services/loginFlow/index.cjs.map +1 -1
  927. package/dist/src/services/loginFlow/index.mjs +7 -1
  928. package/dist/src/services/loginFlow/index.mjs.map +1 -1
  929. package/dist/src/services/modelDispatch/index.cjs +200 -0
  930. package/dist/src/services/modelDispatch/index.cjs.map +1 -0
  931. package/dist/src/services/modelDispatch/index.mjs +197 -0
  932. package/dist/src/services/modelDispatch/index.mjs.map +1 -0
  933. package/dist/src/services/modelFallback/index.cjs +88 -0
  934. package/dist/src/services/modelFallback/index.cjs.map +1 -0
  935. package/dist/src/services/modelFallback/index.d.mts +16 -0
  936. package/dist/src/services/modelFallback/index.d.mts.map +1 -0
  937. package/dist/src/services/modelFallback/index.mjs +86 -0
  938. package/dist/src/services/modelFallback/index.mjs.map +1 -0
  939. package/dist/src/services/modelFallback/type.d.mts +16 -0
  940. package/dist/src/services/modelFallback/type.d.mts.map +1 -0
  941. package/dist/src/services/modelGatewayContainer/index.cjs +394 -0
  942. package/dist/src/services/modelGatewayContainer/index.cjs.map +1 -0
  943. package/dist/src/services/modelGatewayContainer/index.d.mts +16 -0
  944. package/dist/src/services/modelGatewayContainer/index.d.mts.map +1 -0
  945. package/dist/src/services/modelGatewayContainer/index.mjs +393 -0
  946. package/dist/src/services/modelGatewayContainer/index.mjs.map +1 -0
  947. package/dist/src/services/modelGatewayContainer/type.d.mts +28 -0
  948. package/dist/src/services/modelGatewayContainer/type.d.mts.map +1 -0
  949. package/dist/src/services/modelGatewayExecutor/index.cjs +160 -0
  950. package/dist/src/services/modelGatewayExecutor/index.cjs.map +1 -0
  951. package/dist/src/services/modelGatewayExecutor/index.d.mts +18 -0
  952. package/dist/src/services/modelGatewayExecutor/index.d.mts.map +1 -0
  953. package/dist/src/services/modelGatewayExecutor/index.mjs +160 -0
  954. package/dist/src/services/modelGatewayExecutor/index.mjs.map +1 -0
  955. package/dist/src/services/modelGatewayExecutor/type.d.mts +36 -0
  956. package/dist/src/services/modelGatewayExecutor/type.d.mts.map +1 -0
  957. package/dist/src/services/modelGatewayHost/index.cjs +292 -0
  958. package/dist/src/services/modelGatewayHost/index.cjs.map +1 -0
  959. package/dist/src/services/modelGatewayHost/index.d.mts +13 -0
  960. package/dist/src/services/modelGatewayHost/index.d.mts.map +1 -0
  961. package/dist/src/services/modelGatewayHost/index.mjs +292 -0
  962. package/dist/src/services/modelGatewayHost/index.mjs.map +1 -0
  963. package/dist/src/services/modelGatewayHost/type.d.mts +61 -0
  964. package/dist/src/services/modelGatewayHost/type.d.mts.map +1 -0
  965. package/dist/src/services/modelGatewayWire/index.cjs +170 -0
  966. package/dist/src/services/modelGatewayWire/index.cjs.map +1 -0
  967. package/dist/src/services/modelGatewayWire/index.d.mts +30 -0
  968. package/dist/src/services/modelGatewayWire/index.d.mts.map +1 -0
  969. package/dist/src/services/modelGatewayWire/index.mjs +163 -0
  970. package/dist/src/services/modelGatewayWire/index.mjs.map +1 -0
  971. package/dist/src/services/nativeChildTools/index.cjs +307 -9
  972. package/dist/src/services/nativeChildTools/index.cjs.map +1 -1
  973. package/dist/src/services/nativeChildTools/index.d.mts +11 -0
  974. package/dist/src/services/nativeChildTools/index.d.mts.map +1 -0
  975. package/dist/src/services/nativeChildTools/index.mjs +298 -3
  976. package/dist/src/services/nativeChildTools/index.mjs.map +1 -1
  977. package/dist/src/services/nodeHost/index.cjs +4 -2
  978. package/dist/src/services/nodeHost/index.cjs.map +1 -1
  979. package/dist/src/services/nodeHost/index.d.mts +2 -0
  980. package/dist/src/services/nodeHost/index.d.mts.map +1 -1
  981. package/dist/src/services/nodeHost/index.mjs +3 -1
  982. package/dist/src/services/nodeHost/index.mjs.map +1 -1
  983. package/dist/src/services/nodeModelDependencies/index.cjs +26 -29
  984. package/dist/src/services/nodeModelDependencies/index.cjs.map +1 -1
  985. package/dist/src/services/nodeModelDependencies/index.mjs +18 -20
  986. package/dist/src/services/nodeModelDependencies/index.mjs.map +1 -1
  987. package/dist/src/services/openSessionRegistry/index.cjs +1 -0
  988. package/dist/src/services/openSessionRegistry/index.cjs.map +1 -1
  989. package/dist/src/services/openSessionRegistry/index.d.mts +1 -1
  990. package/dist/src/services/openSessionRegistry/index.mjs +1 -0
  991. package/dist/src/services/openSessionRegistry/index.mjs.map +1 -1
  992. package/dist/src/services/openSessionRegistry/openSessionRecords.cjs +44 -4
  993. package/dist/src/services/openSessionRegistry/openSessionRecords.cjs.map +1 -1
  994. package/dist/src/services/openSessionRegistry/openSessionRecords.d.mts +26 -0
  995. package/dist/src/services/openSessionRegistry/openSessionRecords.d.mts.map +1 -1
  996. package/dist/src/services/openSessionRegistry/openSessionRecords.mjs +44 -4
  997. package/dist/src/services/openSessionRegistry/openSessionRecords.mjs.map +1 -1
  998. package/dist/src/services/openSessionRegistry/sync.cjs +9 -4
  999. package/dist/src/services/openSessionRegistry/sync.cjs.map +1 -1
  1000. package/dist/src/services/openSessionRegistry/sync.d.mts.map +1 -1
  1001. package/dist/src/services/openSessionRegistry/sync.mjs +8 -3
  1002. package/dist/src/services/openSessionRegistry/sync.mjs.map +1 -1
  1003. package/dist/src/services/operationDispatch/index.cjs +263 -0
  1004. package/dist/src/services/operationDispatch/index.cjs.map +1 -0
  1005. package/dist/src/services/operationDispatch/index.mjs +263 -0
  1006. package/dist/src/services/operationDispatch/index.mjs.map +1 -0
  1007. package/dist/src/services/packageApiHarness/index.cjs +2 -1
  1008. package/dist/src/services/packageApiHarness/index.cjs.map +1 -1
  1009. package/dist/src/services/packageApiHarness/index.d.mts +2 -1
  1010. package/dist/src/services/packageApiHarness/index.d.mts.map +1 -1
  1011. package/dist/src/services/packageApiHarness/index.mjs +2 -1
  1012. package/dist/src/services/packageApiHarness/index.mjs.map +1 -1
  1013. package/dist/src/services/packageContentRevision/index.cjs +173 -0
  1014. package/dist/src/services/packageContentRevision/index.cjs.map +1 -0
  1015. package/dist/src/services/packageContentRevision/index.d.mts +39 -0
  1016. package/dist/src/services/packageContentRevision/index.d.mts.map +1 -0
  1017. package/dist/src/services/packageContentRevision/index.mjs +168 -0
  1018. package/dist/src/services/packageContentRevision/index.mjs.map +1 -0
  1019. package/dist/src/services/packageResource/index.cjs +12 -8
  1020. package/dist/src/services/packageResource/index.cjs.map +1 -1
  1021. package/dist/src/services/packageResource/index.d.mts.map +1 -1
  1022. package/dist/src/services/packageResource/index.mjs +12 -8
  1023. package/dist/src/services/packageResource/index.mjs.map +1 -1
  1024. package/dist/src/services/pairingPage/index.cjs +85 -24
  1025. package/dist/src/services/pairingPage/index.cjs.map +1 -1
  1026. package/dist/src/services/pairingPage/index.d.mts +23 -0
  1027. package/dist/src/services/pairingPage/index.d.mts.map +1 -0
  1028. package/dist/src/services/pairingPage/index.mjs +86 -25
  1029. package/dist/src/services/pairingPage/index.mjs.map +1 -1
  1030. package/dist/src/services/piArgs/index.cjs +2 -2
  1031. package/dist/src/services/piArgs/index.cjs.map +1 -1
  1032. package/dist/src/services/piExtensionHost/index.cjs +344 -56
  1033. package/dist/src/services/piExtensionHost/index.cjs.map +1 -1
  1034. package/dist/src/services/piExtensionHost/index.d.mts +3 -1
  1035. package/dist/src/services/piExtensionHost/index.d.mts.map +1 -1
  1036. package/dist/src/services/piExtensionHost/index.mjs +325 -37
  1037. package/dist/src/services/piExtensionHost/index.mjs.map +1 -1
  1038. package/dist/src/services/piMessages/index.cjs +16 -0
  1039. package/dist/src/services/piMessages/index.cjs.map +1 -1
  1040. package/dist/src/services/piMessages/index.d.mts +12 -0
  1041. package/dist/src/services/piMessages/index.d.mts.map +1 -0
  1042. package/dist/src/services/piMessages/index.mjs +16 -1
  1043. package/dist/src/services/piMessages/index.mjs.map +1 -1
  1044. package/dist/src/services/piSettings/core.cjs +18 -5
  1045. package/dist/src/services/piSettings/core.cjs.map +1 -1
  1046. package/dist/src/services/piSettings/core.d.mts +6 -1
  1047. package/dist/src/services/piSettings/core.d.mts.map +1 -1
  1048. package/dist/src/services/piSettings/core.mjs +18 -6
  1049. package/dist/src/services/piSettings/core.mjs.map +1 -1
  1050. package/dist/src/services/piSettings/sync.cjs +31 -2
  1051. package/dist/src/services/piSettings/sync.cjs.map +1 -1
  1052. package/dist/src/services/piSettings/sync.d.mts +3 -0
  1053. package/dist/src/services/piSettings/sync.d.mts.map +1 -1
  1054. package/dist/src/services/piSettings/sync.mjs +31 -3
  1055. package/dist/src/services/piSettings/sync.mjs.map +1 -1
  1056. package/dist/src/services/piSummary/index.cjs +2 -2
  1057. package/dist/src/services/piSummary/index.cjs.map +1 -1
  1058. package/dist/src/services/platformFiles/index.cjs +81 -0
  1059. package/dist/src/services/platformFiles/index.cjs.map +1 -1
  1060. package/dist/src/services/platformFiles/index.d.mts +12 -1
  1061. package/dist/src/services/platformFiles/index.d.mts.map +1 -1
  1062. package/dist/src/services/platformFiles/index.mjs +76 -1
  1063. package/dist/src/services/platformFiles/index.mjs.map +1 -1
  1064. package/dist/src/services/platformFiles/rootBoundReplace.cjs +110 -0
  1065. package/dist/src/services/platformFiles/rootBoundReplace.cjs.map +1 -0
  1066. package/dist/src/services/platformFiles/rootBoundReplace.d.mts +21 -0
  1067. package/dist/src/services/platformFiles/rootBoundReplace.d.mts.map +1 -0
  1068. package/dist/src/services/platformFiles/rootBoundReplace.mjs +106 -0
  1069. package/dist/src/services/platformFiles/rootBoundReplace.mjs.map +1 -0
  1070. package/dist/src/services/poPackage/core.cjs.map +1 -1
  1071. package/dist/src/services/poPackage/core.d.mts +1 -1
  1072. package/dist/src/services/poPackage/core.mjs.map +1 -1
  1073. package/dist/src/services/poPackage/sync.cjs +2 -2
  1074. package/dist/src/services/poPackage/sync.cjs.map +1 -1
  1075. package/dist/src/services/poPackage/sync.d.mts.map +1 -1
  1076. package/dist/src/services/poPackage/sync.mjs +1 -1
  1077. package/dist/src/services/poPackage/sync.mjs.map +1 -1
  1078. package/dist/src/services/poTelemetry/index.cjs +69 -0
  1079. package/dist/src/services/poTelemetry/index.cjs.map +1 -0
  1080. package/dist/src/services/poTelemetry/index.d.mts +7 -0
  1081. package/dist/src/services/poTelemetry/index.d.mts.map +1 -0
  1082. package/dist/src/services/poTelemetry/index.mjs +66 -0
  1083. package/dist/src/services/poTelemetry/index.mjs.map +1 -0
  1084. package/dist/src/services/portableConfig/index.cjs +136 -0
  1085. package/dist/src/services/portableConfig/index.cjs.map +1 -0
  1086. package/dist/src/services/portableConfig/index.d.mts +30 -0
  1087. package/dist/src/services/portableConfig/index.d.mts.map +1 -0
  1088. package/dist/src/services/portableConfig/index.mjs +130 -0
  1089. package/dist/src/services/portableConfig/index.mjs.map +1 -0
  1090. package/dist/src/services/providerAuth/index.cjs +6 -10
  1091. package/dist/src/services/providerAuth/index.cjs.map +1 -1
  1092. package/dist/src/services/providerAuth/index.mjs +5 -7
  1093. package/dist/src/services/providerAuth/index.mjs.map +1 -1
  1094. package/dist/src/services/providerImages/fitter.cjs +48 -0
  1095. package/dist/src/services/providerImages/fitter.cjs.map +1 -0
  1096. package/dist/src/services/providerImages/fitter.mjs +47 -0
  1097. package/dist/src/services/providerImages/fitter.mjs.map +1 -0
  1098. package/dist/src/services/providerImages/index.cjs +21 -0
  1099. package/dist/src/services/providerImages/index.cjs.map +1 -0
  1100. package/dist/src/services/providerImages/index.d.mts +3 -0
  1101. package/dist/src/services/providerImages/index.mjs +21 -0
  1102. package/dist/src/services/providerImages/index.mjs.map +1 -0
  1103. package/dist/src/services/runtimeEnvironment/index.cjs +228 -0
  1104. package/dist/src/services/runtimeEnvironment/index.cjs.map +1 -0
  1105. package/dist/src/services/runtimeEnvironment/index.d.mts +37 -0
  1106. package/dist/src/services/runtimeEnvironment/index.d.mts.map +1 -0
  1107. package/dist/src/services/runtimeEnvironment/index.mjs +219 -0
  1108. package/dist/src/services/runtimeEnvironment/index.mjs.map +1 -0
  1109. package/dist/src/services/runtimeIdentity/sync.cjs +2 -2
  1110. package/dist/src/services/runtimeIdentity/sync.cjs.map +1 -1
  1111. package/dist/src/services/runtimeIdentity/sync.d.mts.map +1 -1
  1112. package/dist/src/services/runtimeIdentity/sync.mjs +1 -1
  1113. package/dist/src/services/runtimeIdentity/sync.mjs.map +1 -1
  1114. package/dist/src/services/scopeInput/index.cjs +49 -0
  1115. package/dist/src/services/scopeInput/index.cjs.map +1 -0
  1116. package/dist/src/services/scopeInput/index.mjs +47 -0
  1117. package/dist/src/services/scopeInput/index.mjs.map +1 -0
  1118. package/dist/src/services/serialRunner/index.cjs +3 -0
  1119. package/dist/src/services/serialRunner/index.cjs.map +1 -1
  1120. package/dist/src/services/serialRunner/index.d.mts +2 -0
  1121. package/dist/src/services/serialRunner/index.d.mts.map +1 -1
  1122. package/dist/src/services/serialRunner/index.mjs +3 -1
  1123. package/dist/src/services/serialRunner/index.mjs.map +1 -1
  1124. package/dist/src/services/serverHost/index.cjs +12 -2
  1125. package/dist/src/services/serverHost/index.cjs.map +1 -1
  1126. package/dist/src/services/serverHost/index.d.mts +3 -1
  1127. package/dist/src/services/serverHost/index.d.mts.map +1 -1
  1128. package/dist/src/services/serverHost/index.mjs +12 -2
  1129. package/dist/src/services/serverHost/index.mjs.map +1 -1
  1130. package/dist/src/services/sessionAccess/index.cjs +168 -0
  1131. package/dist/src/services/sessionAccess/index.cjs.map +1 -0
  1132. package/dist/src/services/sessionAccess/index.d.mts +11 -0
  1133. package/dist/src/services/sessionAccess/index.d.mts.map +1 -0
  1134. package/dist/src/services/sessionAccess/index.mjs +163 -0
  1135. package/dist/src/services/sessionAccess/index.mjs.map +1 -0
  1136. package/dist/src/services/sessionAccess/type.d.mts +32 -0
  1137. package/dist/src/services/sessionAccess/type.d.mts.map +1 -0
  1138. package/dist/src/services/sessionAttachments/index.cjs +13 -13
  1139. package/dist/src/services/sessionAttachments/index.cjs.map +1 -1
  1140. package/dist/src/services/sessionAttachments/index.d.mts +3 -1
  1141. package/dist/src/services/sessionAttachments/index.d.mts.map +1 -1
  1142. package/dist/src/services/sessionAttachments/index.mjs +12 -12
  1143. package/dist/src/services/sessionAttachments/index.mjs.map +1 -1
  1144. package/dist/src/services/sessionFiles/index.cjs +35 -13
  1145. package/dist/src/services/sessionFiles/index.cjs.map +1 -1
  1146. package/dist/src/services/sessionFiles/index.d.mts +10 -1
  1147. package/dist/src/services/sessionFiles/index.d.mts.map +1 -1
  1148. package/dist/src/services/sessionFiles/index.mjs +34 -14
  1149. package/dist/src/services/sessionFiles/index.mjs.map +1 -1
  1150. package/dist/src/services/sessionFiles/sessionDirectory.cjs +3 -3
  1151. package/dist/src/services/sessionFiles/sessionDirectory.cjs.map +1 -1
  1152. package/dist/src/services/sessionFiles/sessionDirectory.mjs +3 -3
  1153. package/dist/src/services/sessionFiles/sessionDirectory.mjs.map +1 -1
  1154. package/dist/src/services/sessionLifecycle/index.cjs +293 -0
  1155. package/dist/src/services/sessionLifecycle/index.cjs.map +1 -0
  1156. package/dist/src/services/sessionLifecycle/index.mjs +293 -0
  1157. package/dist/src/services/sessionLifecycle/index.mjs.map +1 -0
  1158. package/dist/src/services/sessionLifecycle/type.d.mts +32 -0
  1159. package/dist/src/services/sessionLifecycle/type.d.mts.map +1 -0
  1160. package/dist/src/services/sessionMcpRoutePaths/index.cjs +60 -0
  1161. package/dist/src/services/sessionMcpRoutePaths/index.cjs.map +1 -0
  1162. package/dist/src/services/sessionMcpRoutePaths/index.d.mts +31 -0
  1163. package/dist/src/services/sessionMcpRoutePaths/index.d.mts.map +1 -0
  1164. package/dist/src/services/sessionMcpRoutePaths/index.mjs +45 -0
  1165. package/dist/src/services/sessionMcpRoutePaths/index.mjs.map +1 -0
  1166. package/dist/src/services/sessionWorkspaceMove/index.cjs +81 -0
  1167. package/dist/src/services/sessionWorkspaceMove/index.cjs.map +1 -0
  1168. package/dist/src/services/sessionWorkspaceMove/index.d.mts +6 -0
  1169. package/dist/src/services/sessionWorkspaceMove/index.d.mts.map +1 -0
  1170. package/dist/src/services/sessionWorkspaceMove/index.mjs +81 -0
  1171. package/dist/src/services/sessionWorkspaceMove/index.mjs.map +1 -0
  1172. package/dist/src/services/sessionWorkspaceMove/type.d.mts +16 -0
  1173. package/dist/src/services/sessionWorkspaceMove/type.d.mts.map +1 -0
  1174. package/dist/src/services/skillPrompt/index.cjs +14 -4
  1175. package/dist/src/services/skillPrompt/index.cjs.map +1 -1
  1176. package/dist/src/services/skillPrompt/index.mjs +14 -5
  1177. package/dist/src/services/skillPrompt/index.mjs.map +1 -1
  1178. package/dist/src/services/skillRelations/index.cjs +113 -0
  1179. package/dist/src/services/skillRelations/index.cjs.map +1 -0
  1180. package/dist/src/services/skillRelations/index.d.mts +32 -0
  1181. package/dist/src/services/skillRelations/index.d.mts.map +1 -0
  1182. package/dist/src/services/skillRelations/index.mjs +111 -0
  1183. package/dist/src/services/skillRelations/index.mjs.map +1 -0
  1184. package/dist/src/services/sqliteSessionHistory/index.cjs +38 -10
  1185. package/dist/src/services/sqliteSessionHistory/index.cjs.map +1 -1
  1186. package/dist/src/services/sqliteSessionHistory/index.d.mts +13 -0
  1187. package/dist/src/services/sqliteSessionHistory/index.d.mts.map +1 -1
  1188. package/dist/src/services/sqliteSessionHistory/index.mjs +37 -10
  1189. package/dist/src/services/sqliteSessionHistory/index.mjs.map +1 -1
  1190. package/dist/src/services/sqliteTranscriptReader/index.cjs +12 -12
  1191. package/dist/src/services/sqliteTranscriptReader/index.cjs.map +1 -1
  1192. package/dist/src/services/sqliteTranscriptReader/index.d.mts +2 -2
  1193. package/dist/src/services/sqliteTranscriptReader/index.mjs +3 -3
  1194. package/dist/src/services/sqliteTranscriptReader/index.mjs.map +1 -1
  1195. package/dist/src/services/telemetry/index.cjs +591 -0
  1196. package/dist/src/services/telemetry/index.cjs.map +1 -0
  1197. package/dist/src/services/telemetry/index.d.mts +7 -0
  1198. package/dist/src/services/telemetry/index.d.mts.map +1 -0
  1199. package/dist/src/services/telemetry/index.mjs +587 -0
  1200. package/dist/src/services/telemetry/index.mjs.map +1 -0
  1201. package/dist/src/services/toolContinuation/index.cjs +84 -0
  1202. package/dist/src/services/toolContinuation/index.cjs.map +1 -0
  1203. package/dist/src/services/toolContinuation/index.mjs +83 -0
  1204. package/dist/src/services/toolContinuation/index.mjs.map +1 -0
  1205. package/dist/src/services/traceContext/index.cjs.map +1 -1
  1206. package/dist/src/services/traceContext/index.mjs.map +1 -1
  1207. package/dist/src/services/transcriptPages/index.cjs +169 -8
  1208. package/dist/src/services/transcriptPages/index.cjs.map +1 -1
  1209. package/dist/src/services/transcriptPages/index.mjs +165 -9
  1210. package/dist/src/services/transcriptPages/index.mjs.map +1 -1
  1211. package/dist/src/services/verifiedArchive/index.cjs +181 -0
  1212. package/dist/src/services/verifiedArchive/index.cjs.map +1 -0
  1213. package/dist/src/services/verifiedArchive/index.d.mts +38 -0
  1214. package/dist/src/services/verifiedArchive/index.d.mts.map +1 -0
  1215. package/dist/src/services/verifiedArchive/index.mjs +173 -0
  1216. package/dist/src/services/verifiedArchive/index.mjs.map +1 -0
  1217. package/dist/src/services/voiceReloadHandoff/index.cjs +5 -5
  1218. package/dist/src/services/voiceReloadHandoff/index.cjs.map +1 -1
  1219. package/dist/src/services/voiceReloadHandoff/index.d.mts +1 -1
  1220. package/dist/src/services/voiceReloadHandoff/index.mjs +5 -5
  1221. package/dist/src/services/voiceReloadHandoff/index.mjs.map +1 -1
  1222. package/dist/src/services/workspaceLookup/index.cjs +34 -0
  1223. package/dist/src/services/workspaceLookup/index.cjs.map +1 -0
  1224. package/dist/src/services/workspaceLookup/index.d.mts +6 -0
  1225. package/dist/src/services/workspaceLookup/index.d.mts.map +1 -0
  1226. package/dist/src/services/workspaceLookup/index.mjs +34 -0
  1227. package/dist/src/services/workspaceLookup/index.mjs.map +1 -0
  1228. package/dist/src/services/workspaceRegistry/index.cjs +2 -0
  1229. package/dist/src/services/workspaceRegistry/index.cjs.map +1 -1
  1230. package/dist/src/services/workspaceRegistry/index.d.mts +3 -3
  1231. package/dist/src/services/workspaceRegistry/index.mjs +4 -2
  1232. package/dist/src/services/workspaceRegistry/index.mjs.map +1 -1
  1233. package/dist/src/services/workspaceRegistry/sync.cjs +18 -6
  1234. package/dist/src/services/workspaceRegistry/sync.cjs.map +1 -1
  1235. package/dist/src/services/workspaceRegistry/sync.d.mts +4 -4
  1236. package/dist/src/services/workspaceRegistry/sync.d.mts.map +1 -1
  1237. package/dist/src/services/workspaceRegistry/sync.mjs +18 -6
  1238. package/dist/src/services/workspaceRegistry/sync.mjs.map +1 -1
  1239. package/dist/src/services/workspaceRegistry/workspaceRecords.cjs +60 -8
  1240. package/dist/src/services/workspaceRegistry/workspaceRecords.cjs.map +1 -1
  1241. package/dist/src/services/workspaceRegistry/workspaceRecords.d.mts +20 -0
  1242. package/dist/src/services/workspaceRegistry/workspaceRecords.d.mts.map +1 -1
  1243. package/dist/src/services/workspaceRegistry/workspaceRecords.mjs +58 -9
  1244. package/dist/src/services/workspaceRegistry/workspaceRecords.mjs.map +1 -1
  1245. package/dist/src/services/workspaceSandboxes/index.cjs +33 -0
  1246. package/dist/src/services/workspaceSandboxes/index.cjs.map +1 -0
  1247. package/dist/src/services/workspaceSandboxes/index.d.mts +9 -0
  1248. package/dist/src/services/workspaceSandboxes/index.d.mts.map +1 -0
  1249. package/dist/src/services/workspaceSandboxes/index.mjs +33 -0
  1250. package/dist/src/services/workspaceSandboxes/index.mjs.map +1 -0
  1251. package/dist/src/systems/child/adapters/headlessChildSessionService.cjs +65 -27
  1252. package/dist/src/systems/child/adapters/headlessChildSessionService.cjs.map +1 -1
  1253. package/dist/src/systems/child/adapters/headlessChildSessionService.d.mts +19 -0
  1254. package/dist/src/systems/child/adapters/headlessChildSessionService.d.mts.map +1 -1
  1255. package/dist/src/systems/child/adapters/headlessChildSessionService.mjs +65 -30
  1256. package/dist/src/systems/child/adapters/headlessChildSessionService.mjs.map +1 -1
  1257. package/dist/src/systems/child/adapters/remoteChildSessionService.cjs +328 -0
  1258. package/dist/src/systems/child/adapters/remoteChildSessionService.cjs.map +1 -0
  1259. package/dist/src/systems/child/adapters/remoteChildSessionService.d.mts +35 -0
  1260. package/dist/src/systems/child/adapters/remoteChildSessionService.d.mts.map +1 -0
  1261. package/dist/src/systems/child/adapters/remoteChildSessionService.mjs +325 -0
  1262. package/dist/src/systems/child/adapters/remoteChildSessionService.mjs.map +1 -0
  1263. package/dist/src/systems/child/services/childSession/index.cjs +60 -32
  1264. package/dist/src/systems/child/services/childSession/index.cjs.map +1 -1
  1265. package/dist/src/systems/child/services/childSession/index.d.mts +5 -0
  1266. package/dist/src/systems/child/services/childSession/index.d.mts.map +1 -1
  1267. package/dist/src/systems/child/services/childSession/index.mjs +60 -32
  1268. package/dist/src/systems/child/services/childSession/index.mjs.map +1 -1
  1269. package/dist/src/systems/child/types/childSession.cjs.map +1 -1
  1270. package/dist/src/systems/child/types/childSession.d.mts +34 -18
  1271. package/dist/src/systems/child/types/childSession.d.mts.map +1 -1
  1272. package/dist/src/systems/child/types/childSession.mjs.map +1 -1
  1273. package/dist/src/systems/child/types/childSessionInput.d.mts +17 -0
  1274. package/dist/src/systems/child/types/childSessionInput.d.mts.map +1 -0
  1275. package/dist/src/systems/child/types/remoteChildSession.d.mts +85 -0
  1276. package/dist/src/systems/child/types/remoteChildSession.d.mts.map +1 -0
  1277. package/dist/src/systems/main/adapters/headlessHost.cjs +614 -82
  1278. package/dist/src/systems/main/adapters/headlessHost.cjs.map +1 -1
  1279. package/dist/src/systems/main/adapters/headlessHost.d.mts +60 -12
  1280. package/dist/src/systems/main/adapters/headlessHost.d.mts.map +1 -1
  1281. package/dist/src/systems/main/adapters/headlessHost.mjs +612 -81
  1282. package/dist/src/systems/main/adapters/headlessHost.mjs.map +1 -1
  1283. package/dist/src/systems/main/adapters/headlessSessionHost.cjs +866 -184
  1284. package/dist/src/systems/main/adapters/headlessSessionHost.cjs.map +1 -1
  1285. package/dist/src/systems/main/adapters/headlessSessionHost.d.mts +23 -3
  1286. package/dist/src/systems/main/adapters/headlessSessionHost.d.mts.map +1 -1
  1287. package/dist/src/systems/main/adapters/headlessSessionHost.mjs +845 -167
  1288. package/dist/src/systems/main/adapters/headlessSessionHost.mjs.map +1 -1
  1289. package/dist/src/systems/main/types/headlessHost.d.mts +14 -5
  1290. package/dist/src/systems/main/types/headlessHost.d.mts.map +1 -1
  1291. package/dist/src/testing/pi/testHost.cjs +1 -0
  1292. package/dist/src/testing/pi/testHost.cjs.map +1 -1
  1293. package/dist/src/testing/pi/testHost.mjs +1 -0
  1294. package/dist/src/testing/pi/testHost.mjs.map +1 -1
  1295. package/dist/src/types/kernel.d.mts +3 -3
  1296. package/dist/src/types/remote.d.mts +53 -29
  1297. package/dist/src/types/remote.d.mts.map +1 -1
  1298. package/dist/src/types/server/agentSessionForward.d.mts +14 -0
  1299. package/dist/src/types/server/agentSessionForward.d.mts.map +1 -0
  1300. package/dist/src/types/server/auth.d.mts +104 -0
  1301. package/dist/src/types/server/auth.d.mts.map +1 -0
  1302. package/dist/src/types/server/directHarnessRuntime.d.mts +144 -19
  1303. package/dist/src/types/server/directHarnessRuntime.d.mts.map +1 -1
  1304. package/dist/src/types/server/sessionMcp.d.mts +34 -0
  1305. package/dist/src/types/server/sessionMcp.d.mts.map +1 -0
  1306. package/dist/src/types/telemetry.d.mts +64 -0
  1307. package/dist/src/types/telemetry.d.mts.map +1 -0
  1308. package/dist/src/web/hostSlots.cjs +199 -0
  1309. package/dist/src/web/hostSlots.cjs.map +1 -0
  1310. package/dist/src/web/hostSlots.d.mts +196 -0
  1311. package/dist/src/web/hostSlots.d.mts.map +1 -0
  1312. package/dist/src/web/hostSlots.mjs +195 -0
  1313. package/dist/src/web/hostSlots.mjs.map +1 -0
  1314. package/dist/src/web/models/globalStore.cjs +2 -2
  1315. package/dist/src/web/models/globalStore.cjs.map +1 -1
  1316. package/dist/src/web/models/globalStore.d.mts +2 -2
  1317. package/dist/src/web/models/globalStore.d.mts.map +1 -1
  1318. package/dist/src/web/models/globalStore.mjs +2 -2
  1319. package/dist/src/web/models/globalStore.mjs.map +1 -1
  1320. package/dist/src/web/models/sessionStore.cjs +1 -1
  1321. package/dist/src/web/models/sessionStore.cjs.map +1 -1
  1322. package/dist/src/web/models/sessionStore.mjs +1 -1
  1323. package/dist/src/web/models/sessionStore.mjs.map +1 -1
  1324. package/dist/src/web/schemas/onboarding.cjs +17 -0
  1325. package/dist/src/web/schemas/onboarding.cjs.map +1 -0
  1326. package/dist/src/web/schemas/onboarding.d.mts +6 -0
  1327. package/dist/src/web/schemas/onboarding.d.mts.map +1 -0
  1328. package/dist/src/web/schemas/onboarding.mjs +17 -0
  1329. package/dist/src/web/schemas/onboarding.mjs.map +1 -0
  1330. package/dist/src/web/schemas/template.cjs +20 -8
  1331. package/dist/src/web/schemas/template.cjs.map +1 -1
  1332. package/dist/src/web/schemas/template.d.mts +6 -2
  1333. package/dist/src/web/schemas/template.d.mts.map +1 -1
  1334. package/dist/src/web/schemas/template.mjs +20 -8
  1335. package/dist/src/web/schemas/template.mjs.map +1 -1
  1336. package/dist/src/web/services/apiClient/index.cjs +13 -2
  1337. package/dist/src/web/services/apiClient/index.cjs.map +1 -1
  1338. package/dist/src/web/services/apiClient/index.d.mts +3 -2
  1339. package/dist/src/web/services/apiClient/index.d.mts.map +1 -1
  1340. package/dist/src/web/services/apiClient/index.mjs +13 -2
  1341. package/dist/src/web/services/apiClient/index.mjs.map +1 -1
  1342. package/dist/src/web/services/apiPaths/index.cjs +1 -1
  1343. package/dist/src/web/services/apiPaths/index.cjs.map +1 -1
  1344. package/dist/src/web/services/apiPaths/index.d.mts +1 -1
  1345. package/dist/src/web/services/apiPaths/index.mjs +1 -1
  1346. package/dist/src/web/services/apiPaths/index.mjs.map +1 -1
  1347. package/dist/src/web/services/apiRoutes/index.cjs +4 -4
  1348. package/dist/src/web/services/apiRoutes/index.cjs.map +1 -1
  1349. package/dist/src/web/services/apiRoutes/index.d.mts +2 -2
  1350. package/dist/src/web/services/apiRoutes/index.mjs +4 -4
  1351. package/dist/src/web/services/apiRoutes/index.mjs.map +1 -1
  1352. package/dist/src/web/services/htmlInspect.cjs +277 -0
  1353. package/dist/src/web/services/htmlInspect.cjs.map +1 -0
  1354. package/dist/src/web/services/htmlInspect.d.mts +75 -0
  1355. package/dist/src/web/services/htmlInspect.d.mts.map +1 -0
  1356. package/dist/src/web/services/htmlInspect.mjs +272 -0
  1357. package/dist/src/web/services/htmlInspect.mjs.map +1 -0
  1358. package/dist/src/web/services/hubRevisions/index.cjs +60 -0
  1359. package/dist/src/web/services/hubRevisions/index.cjs.map +1 -0
  1360. package/dist/src/web/services/hubRevisions/index.d.mts +13 -0
  1361. package/dist/src/web/services/hubRevisions/index.d.mts.map +1 -0
  1362. package/dist/src/web/services/hubRevisions/index.mjs +57 -0
  1363. package/dist/src/web/services/hubRevisions/index.mjs.map +1 -0
  1364. package/dist/src/web/services/i18n/index.cjs +94 -0
  1365. package/dist/src/web/services/i18n/index.cjs.map +1 -0
  1366. package/dist/src/web/services/i18n/index.d.mts +18 -0
  1367. package/dist/src/web/services/i18n/index.d.mts.map +1 -0
  1368. package/dist/src/web/services/i18n/index.mjs +87 -0
  1369. package/dist/src/web/services/i18n/index.mjs.map +1 -0
  1370. package/dist/src/web/services/nativeByteCodec/index.cjs +28 -0
  1371. package/dist/src/web/services/nativeByteCodec/index.cjs.map +1 -0
  1372. package/dist/src/web/services/nativeByteCodec/index.d.mts +10 -0
  1373. package/dist/src/web/services/nativeByteCodec/index.d.mts.map +1 -0
  1374. package/dist/src/web/services/nativeByteCodec/index.mjs +26 -0
  1375. package/dist/src/web/services/nativeByteCodec/index.mjs.map +1 -0
  1376. package/dist/src/web/services/nativeByteCodec/type.d.mts +8 -0
  1377. package/dist/src/web/services/nativeByteCodec/type.d.mts.map +1 -0
  1378. package/dist/src/web/services/railSteps/index.cjs +39 -0
  1379. package/dist/src/web/services/railSteps/index.cjs.map +1 -0
  1380. package/dist/src/web/services/railSteps/index.d.mts +17 -0
  1381. package/dist/src/web/services/railSteps/index.d.mts.map +1 -0
  1382. package/dist/src/web/services/railSteps/index.mjs +39 -0
  1383. package/dist/src/web/services/railSteps/index.mjs.map +1 -0
  1384. package/dist/src/web/services/testing/settingsDirectory.cjs +164 -0
  1385. package/dist/src/web/services/testing/settingsDirectory.cjs.map +1 -0
  1386. package/dist/src/web/services/testing/settingsDirectory.d.mts +18 -0
  1387. package/dist/src/web/services/testing/settingsDirectory.d.mts.map +1 -0
  1388. package/dist/src/web/services/testing/settingsDirectory.mjs +164 -0
  1389. package/dist/src/web/services/testing/settingsDirectory.mjs.map +1 -0
  1390. package/dist/src/web/services/testing/templateRail.cjs +84 -6
  1391. package/dist/src/web/services/testing/templateRail.cjs.map +1 -1
  1392. package/dist/src/web/services/testing/templateRail.d.mts +8 -1
  1393. package/dist/src/web/services/testing/templateRail.d.mts.map +1 -1
  1394. package/dist/src/web/services/testing/templateRail.mjs +83 -7
  1395. package/dist/src/web/services/testing/templateRail.mjs.map +1 -1
  1396. package/dist/src/web/types/extensionFile.d.mts +11 -4
  1397. package/dist/src/web/types/extensionFile.d.mts.map +1 -1
  1398. package/dist/src/web/types/nativeTemplate.d.mts +170 -7
  1399. package/dist/src/web/types/nativeTemplate.d.mts.map +1 -1
  1400. package/dist/src/web/types/template.d.mts +133 -17
  1401. package/dist/src/web/types/template.d.mts.map +1 -1
  1402. package/dist/src/web/types/webPlugin.d.mts +535 -38
  1403. package/dist/src/web/types/webPlugin.d.mts.map +1 -1
  1404. package/dist/telemetry.cjs +7 -0
  1405. package/dist/telemetry.d.mts +4 -0
  1406. package/dist/telemetry.mjs +3 -0
  1407. package/dist/transition.d.mts +2 -2
  1408. package/dist/transitionClassifier.cjs +9 -9
  1409. package/dist/transitionClassifier.cjs.map +1 -1
  1410. package/dist/transitionClassifier.d.mts +1 -1
  1411. package/dist/transitionClassifier.mjs +9 -9
  1412. package/dist/transitionClassifier.mjs.map +1 -1
  1413. package/dist/userFeedback.cjs +7 -0
  1414. package/dist/userFeedback.d.mts +2 -0
  1415. package/dist/userFeedback.mjs +1 -0
  1416. package/dist/vendor/upm/_chunks/main.mjs +1 -1
  1417. package/dist/verifiedArchive.cjs +11 -0
  1418. package/dist/verifiedArchive.d.mts +2 -0
  1419. package/dist/verifiedArchive.mjs +1 -0
  1420. package/dist/web.cjs +89 -32
  1421. package/dist/web.d.mts +22 -9
  1422. package/dist/web.mjs +16 -5
  1423. package/dist/webCompositions.cjs +87 -17
  1424. package/dist/webCompositions.cjs.map +1 -1
  1425. package/dist/webCompositions.d.mts +22 -6
  1426. package/dist/webCompositions.d.mts.map +1 -1
  1427. package/dist/webCompositions.mjs +87 -18
  1428. package/dist/webCompositions.mjs.map +1 -1
  1429. package/dist/webTesting.cjs +4 -0
  1430. package/dist/webTesting.d.mts +3 -2
  1431. package/dist/webTesting.mjs +3 -2
  1432. package/dist/workflow.cjs +32 -0
  1433. package/dist/workflow.d.mts +2 -0
  1434. package/dist/workflow.mjs +1 -0
  1435. package/dist/workspaceRegistry.cjs +7 -0
  1436. package/dist/workspaceRegistry.d.mts +3 -0
  1437. package/dist/workspaceRegistry.mjs +3 -0
  1438. package/dist/workspaceSandboxes.cjs +7 -0
  1439. package/dist/workspaceSandboxes.d.mts +3 -0
  1440. package/dist/workspaceSandboxes.mjs +3 -0
  1441. package/locales/vi.json +4 -0
  1442. package/locales/zh-CN.json +4 -0
  1443. package/package.json +164 -51
  1444. package/dist/authorTools.cjs +0 -5
  1445. package/dist/authorTools.d.mts +0 -2
  1446. package/dist/authorTools.mjs +0 -1
  1447. package/dist/cockpitContainer.cjs +0 -4
  1448. package/dist/cockpitContainer.d.mts +0 -2
  1449. package/dist/cockpitContainer.mjs +0 -1
  1450. package/dist/remoteApi.cjs +0 -45
  1451. package/dist/remoteApi.cjs.map +0 -1
  1452. package/dist/remoteApi.d.mts +0 -7
  1453. package/dist/remoteApi.d.mts.map +0 -1
  1454. package/dist/remoteApi.mjs +0 -44
  1455. package/dist/remoteApi.mjs.map +0 -1
  1456. package/dist/remoteRuntime.cjs +0 -475
  1457. package/dist/remoteRuntime.cjs.map +0 -1
  1458. package/dist/remoteRuntime.d.mts +0 -37
  1459. package/dist/remoteRuntime.d.mts.map +0 -1
  1460. package/dist/remoteRuntime.mjs +0 -473
  1461. package/dist/remoteRuntime.mjs.map +0 -1
  1462. package/dist/sandboxHarness.cjs +0 -6
  1463. package/dist/sandboxHarness.d.mts +0 -2
  1464. package/dist/sandboxHarness.mjs +0 -1
  1465. package/dist/sessionMcp.cjs +0 -6
  1466. package/dist/sessionMcp.d.mts +0 -5
  1467. package/dist/sessionMcp.mjs +0 -3
  1468. package/dist/src/constants/authorTools.cjs +0 -10
  1469. package/dist/src/constants/authorTools.cjs.map +0 -1
  1470. package/dist/src/constants/authorTools.d.mts +0 -6
  1471. package/dist/src/constants/authorTools.d.mts.map +0 -1
  1472. package/dist/src/constants/authorTools.mjs +0 -8
  1473. package/dist/src/constants/authorTools.mjs.map +0 -1
  1474. package/dist/src/schemas/cockpitContainer.cjs +0 -31
  1475. package/dist/src/schemas/cockpitContainer.cjs.map +0 -1
  1476. package/dist/src/schemas/cockpitContainer.d.mts +0 -80
  1477. package/dist/src/schemas/cockpitContainer.d.mts.map +0 -1
  1478. package/dist/src/schemas/cockpitContainer.mjs +0 -30
  1479. package/dist/src/schemas/cockpitContainer.mjs.map +0 -1
  1480. package/dist/src/schemas/httpApiContracts.d.mts +0 -78
  1481. package/dist/src/schemas/httpApiContracts.d.mts.map +0 -1
  1482. package/dist/src/schemas/sandboxHarness.cjs +0 -29
  1483. package/dist/src/schemas/sandboxHarness.cjs.map +0 -1
  1484. package/dist/src/schemas/sandboxHarness.d.mts +0 -39
  1485. package/dist/src/schemas/sandboxHarness.d.mts.map +0 -1
  1486. package/dist/src/schemas/sandboxHarness.mjs +0 -26
  1487. package/dist/src/schemas/sandboxHarness.mjs.map +0 -1
  1488. package/dist/src/server/devProxyForward.cjs +0 -141
  1489. package/dist/src/server/devProxyForward.cjs.map +0 -1
  1490. package/dist/src/server/devProxyForward.mjs +0 -139
  1491. package/dist/src/server/devProxyForward.mjs.map +0 -1
  1492. package/dist/src/server/devProxyRoutes.cjs +0 -97
  1493. package/dist/src/server/devProxyRoutes.cjs.map +0 -1
  1494. package/dist/src/server/devProxyRoutes.mjs +0 -97
  1495. package/dist/src/server/devProxyRoutes.mjs.map +0 -1
  1496. package/dist/src/server/devProxySocket.cjs +0 -93
  1497. package/dist/src/server/devProxySocket.cjs.map +0 -1
  1498. package/dist/src/server/devProxySocket.d.mts +0 -25
  1499. package/dist/src/server/devProxySocket.d.mts.map +0 -1
  1500. package/dist/src/server/devProxySocket.mjs +0 -93
  1501. package/dist/src/server/devProxySocket.mjs.map +0 -1
  1502. package/dist/src/server/remoteRoutes.cjs +0 -463
  1503. package/dist/src/server/remoteRoutes.cjs.map +0 -1
  1504. package/dist/src/server/remoteRoutes.mjs +0 -463
  1505. package/dist/src/server/remoteRoutes.mjs.map +0 -1
  1506. package/dist/src/server/sessionMcpHandler.cjs +0 -585
  1507. package/dist/src/server/sessionMcpHandler.cjs.map +0 -1
  1508. package/dist/src/server/sessionMcpHandler.d.mts +0 -50
  1509. package/dist/src/server/sessionMcpHandler.d.mts.map +0 -1
  1510. package/dist/src/server/sessionMcpHandler.mjs +0 -582
  1511. package/dist/src/server/sessionMcpHandler.mjs.map +0 -1
  1512. package/dist/src/server/sessionMcpRoutes.cjs +0 -822
  1513. package/dist/src/server/sessionMcpRoutes.cjs.map +0 -1
  1514. package/dist/src/server/sessionMcpRoutes.mjs +0 -816
  1515. package/dist/src/server/sessionMcpRoutes.mjs.map +0 -1
  1516. package/dist/src/services/devProxyPolicy/index.cjs +0 -168
  1517. package/dist/src/services/devProxyPolicy/index.cjs.map +0 -1
  1518. package/dist/src/services/devProxyPolicy/index.mjs +0 -165
  1519. package/dist/src/services/devProxyPolicy/index.mjs.map +0 -1
  1520. package/dist/src/services/devProxyStore/devProxyRecords.cjs +0 -59
  1521. package/dist/src/services/devProxyStore/devProxyRecords.cjs.map +0 -1
  1522. package/dist/src/services/devProxyStore/devProxyRecords.mjs +0 -56
  1523. package/dist/src/services/devProxyStore/devProxyRecords.mjs.map +0 -1
  1524. package/dist/src/services/devProxyStore/index.cjs +0 -13
  1525. package/dist/src/services/devProxyStore/index.cjs.map +0 -1
  1526. package/dist/src/services/devProxyStore/index.mjs +0 -10
  1527. package/dist/src/services/devProxyStore/index.mjs.map +0 -1
  1528. package/dist/src/services/devProxyStore/sync.cjs +0 -66
  1529. package/dist/src/services/devProxyStore/sync.cjs.map +0 -1
  1530. package/dist/src/services/devProxyStore/sync.mjs +0 -63
  1531. package/dist/src/services/devProxyStore/sync.mjs.map +0 -1
  1532. package/dist/src/services/deviceAuth/index.cjs +0 -146
  1533. package/dist/src/services/deviceAuth/index.cjs.map +0 -1
  1534. package/dist/src/services/deviceAuth/index.d.mts +0 -9
  1535. package/dist/src/services/deviceAuth/index.d.mts.map +0 -1
  1536. package/dist/src/services/deviceAuth/index.mjs +0 -146
  1537. package/dist/src/services/deviceAuth/index.mjs.map +0 -1
  1538. package/dist/src/services/deviceSessions/index.cjs +0 -147
  1539. package/dist/src/services/deviceSessions/index.cjs.map +0 -1
  1540. package/dist/src/services/deviceSessions/index.d.mts +0 -18
  1541. package/dist/src/services/deviceSessions/index.d.mts.map +0 -1
  1542. package/dist/src/services/deviceSessions/index.mjs +0 -141
  1543. package/dist/src/services/deviceSessions/index.mjs.map +0 -1
  1544. package/dist/src/services/deviceTrust/index.cjs +0 -294
  1545. package/dist/src/services/deviceTrust/index.cjs.map +0 -1
  1546. package/dist/src/services/deviceTrust/index.mjs +0 -282
  1547. package/dist/src/services/deviceTrust/index.mjs.map +0 -1
  1548. package/dist/src/services/loopbackAddress/index.cjs +0 -58
  1549. package/dist/src/services/loopbackAddress/index.cjs.map +0 -1
  1550. package/dist/src/services/loopbackAddress/index.mjs +0 -56
  1551. package/dist/src/services/loopbackAddress/index.mjs.map +0 -1
  1552. package/dist/src/services/pairingFlow/index.cjs +0 -145
  1553. package/dist/src/services/pairingFlow/index.cjs.map +0 -1
  1554. package/dist/src/services/pairingFlow/index.d.mts +0 -44
  1555. package/dist/src/services/pairingFlow/index.d.mts.map +0 -1
  1556. package/dist/src/services/pairingFlow/index.mjs +0 -145
  1557. package/dist/src/services/pairingFlow/index.mjs.map +0 -1
  1558. package/dist/src/services/publicFileShares/index.cjs +0 -192
  1559. package/dist/src/services/publicFileShares/index.cjs.map +0 -1
  1560. package/dist/src/services/publicFileShares/index.d.mts +0 -16
  1561. package/dist/src/services/publicFileShares/index.d.mts.map +0 -1
  1562. package/dist/src/services/publicFileShares/index.mjs +0 -188
  1563. package/dist/src/services/publicFileShares/index.mjs.map +0 -1
  1564. package/dist/src/services/remoteAccess/index.cjs +0 -567
  1565. package/dist/src/services/remoteAccess/index.cjs.map +0 -1
  1566. package/dist/src/services/remoteAccess/index.d.mts +0 -122
  1567. package/dist/src/services/remoteAccess/index.d.mts.map +0 -1
  1568. package/dist/src/services/remoteAccess/index.mjs +0 -567
  1569. package/dist/src/services/remoteAccess/index.mjs.map +0 -1
  1570. package/dist/src/services/remoteAccessSettings/index.cjs +0 -151
  1571. package/dist/src/services/remoteAccessSettings/index.cjs.map +0 -1
  1572. package/dist/src/services/remoteAccessSettings/index.mjs +0 -149
  1573. package/dist/src/services/remoteAccessSettings/index.mjs.map +0 -1
  1574. package/dist/src/services/remoteAccessStore/index.cjs +0 -15
  1575. package/dist/src/services/remoteAccessStore/index.cjs.map +0 -1
  1576. package/dist/src/services/remoteAccessStore/index.d.mts +0 -2
  1577. package/dist/src/services/remoteAccessStore/index.mjs +0 -12
  1578. package/dist/src/services/remoteAccessStore/index.mjs.map +0 -1
  1579. package/dist/src/services/remoteAccessStore/remoteAccessRecords.cjs +0 -98
  1580. package/dist/src/services/remoteAccessStore/remoteAccessRecords.cjs.map +0 -1
  1581. package/dist/src/services/remoteAccessStore/remoteAccessRecords.mjs +0 -88
  1582. package/dist/src/services/remoteAccessStore/remoteAccessRecords.mjs.map +0 -1
  1583. package/dist/src/services/remoteAccessStore/sync.cjs +0 -111
  1584. package/dist/src/services/remoteAccessStore/sync.cjs.map +0 -1
  1585. package/dist/src/services/remoteAccessStore/sync.mjs +0 -108
  1586. package/dist/src/services/remoteAccessStore/sync.mjs.map +0 -1
  1587. package/dist/src/services/remoteGuardPolicy/index.cjs +0 -200
  1588. package/dist/src/services/remoteGuardPolicy/index.cjs.map +0 -1
  1589. package/dist/src/services/remoteGuardPolicy/index.d.mts +0 -7
  1590. package/dist/src/services/remoteGuardPolicy/index.d.mts.map +0 -1
  1591. package/dist/src/services/remoteGuardPolicy/index.mjs +0 -196
  1592. package/dist/src/services/remoteGuardPolicy/index.mjs.map +0 -1
  1593. package/dist/src/services/sessionMcpActivity/index.cjs +0 -115
  1594. package/dist/src/services/sessionMcpActivity/index.cjs.map +0 -1
  1595. package/dist/src/services/sessionMcpActivity/index.mjs +0 -111
  1596. package/dist/src/services/sessionMcpActivity/index.mjs.map +0 -1
  1597. package/dist/src/services/sessionMcpAuthorization/index.cjs +0 -473
  1598. package/dist/src/services/sessionMcpAuthorization/index.cjs.map +0 -1
  1599. package/dist/src/services/sessionMcpAuthorization/index.d.mts +0 -125
  1600. package/dist/src/services/sessionMcpAuthorization/index.d.mts.map +0 -1
  1601. package/dist/src/services/sessionMcpAuthorization/index.mjs +0 -469
  1602. package/dist/src/services/sessionMcpAuthorization/index.mjs.map +0 -1
  1603. package/dist/src/services/sessionMcpConversations/index.cjs +0 -217
  1604. package/dist/src/services/sessionMcpConversations/index.cjs.map +0 -1
  1605. package/dist/src/services/sessionMcpConversations/index.mjs +0 -212
  1606. package/dist/src/services/sessionMcpConversations/index.mjs.map +0 -1
  1607. package/dist/src/services/sessionMcpRegistrationStore/index.cjs +0 -86
  1608. package/dist/src/services/sessionMcpRegistrationStore/index.cjs.map +0 -1
  1609. package/dist/src/services/sessionMcpRegistrationStore/index.mjs +0 -83
  1610. package/dist/src/services/sessionMcpRegistrationStore/index.mjs.map +0 -1
  1611. package/dist/src/services/testMode/index.cjs +0 -162
  1612. package/dist/src/services/testMode/index.cjs.map +0 -1
  1613. package/dist/src/services/testMode/index.d.mts +0 -17
  1614. package/dist/src/services/testMode/index.d.mts.map +0 -1
  1615. package/dist/src/services/testMode/index.mjs +0 -155
  1616. package/dist/src/services/testMode/index.mjs.map +0 -1
  1617. package/dist/src/services/tunnelOutput/index.cjs +0 -58
  1618. package/dist/src/services/tunnelOutput/index.cjs.map +0 -1
  1619. package/dist/src/services/tunnelOutput/index.mjs +0 -54
  1620. package/dist/src/services/tunnelOutput/index.mjs.map +0 -1
  1621. package/dist/src/services/tunnelProcess/index.cjs +0 -487
  1622. package/dist/src/services/tunnelProcess/index.cjs.map +0 -1
  1623. package/dist/src/services/tunnelProcess/index.mjs +0 -481
  1624. package/dist/src/services/tunnelProcess/index.mjs.map +0 -1
  1625. package/dist/src/services/webauthn/index.cjs +0 -262
  1626. package/dist/src/services/webauthn/index.cjs.map +0 -1
  1627. package/dist/src/services/webauthn/index.d.mts +0 -39
  1628. package/dist/src/services/webauthn/index.d.mts.map +0 -1
  1629. package/dist/src/services/webauthn/index.mjs +0 -262
  1630. package/dist/src/services/webauthn/index.mjs.map +0 -1
  1631. package/dist/src/services/webauthnPolicy/index.cjs +0 -184
  1632. package/dist/src/services/webauthnPolicy/index.cjs.map +0 -1
  1633. package/dist/src/services/webauthnPolicy/index.d.mts +0 -41
  1634. package/dist/src/services/webauthnPolicy/index.d.mts.map +0 -1
  1635. package/dist/src/services/webauthnPolicy/index.mjs +0 -177
  1636. package/dist/src/services/webauthnPolicy/index.mjs.map +0 -1
  1637. package/dist/testMode.cjs +0 -4
  1638. package/dist/testMode.d.mts +0 -2
  1639. package/dist/testMode.mjs +0 -1
@@ -0,0 +1,188 @@
1
+ import { Type } from "typebox";
2
+ import { Check } from "typebox/value";
3
+ //#region src/schemas/workflow.ts
4
+ const PO_WORKFLOW_LAUNCH_SERVICE = "po/workflow-launch";
5
+ const PO_WORKFLOW_DEFINITION_SOURCES_SERVICE = "po/workflow-definition-sources";
6
+ const PO_WORKFLOW_RUNS_SERVICE = "po/workflow-runs";
7
+ const PO_WORKFLOW_OUTCOME_SERVICE = "po/workflow-outcome";
8
+ const PO_WORKFLOW_CONTEXT_SERVICE = "po/workflow-context";
9
+ const PO_WORKFLOW_ADMISSIONS_SERVICE = "po/workflow-admissions";
10
+ const PO_WORKFLOW_IDENTITY_SERVICE = "po/workflow-identity";
11
+ const PO_WORKFLOW_PROFILE_ADMISSION_SERVICE = "po/workflow-profile-admission";
12
+ /** A source-relative definition, never an arbitrary host path. */
13
+ const PoWorkflowDefinitionRefSchema = Type.Object({
14
+ source: Type.String({ minLength: 1 }),
15
+ key: Type.String({
16
+ minLength: 1,
17
+ pattern: "^(?!/)(?!.*\\\\)(?!.*:)(?!.*[\\u0000-\\u001f\\u007f])(?!.*(?:^|/)\\.{1,2}(?:/|$))[^/]+(?:/[^/]+)*$"
18
+ })
19
+ }, { additionalProperties: false });
20
+ /** Registration receipt. runId fences a runKey that can be reused later. */
21
+ const PoWorkflowRunRefSchema = Type.Object({
22
+ runId: Type.String({ minLength: 1 }),
23
+ ownerSessionId: Type.String({ minLength: 1 }),
24
+ runKey: Type.String({ minLength: 1 }),
25
+ registryWorkspace: Type.String({ minLength: 1 })
26
+ }, { additionalProperties: false });
27
+ const IdentityText = Type.String({
28
+ minLength: 1,
29
+ maxLength: 512,
30
+ pattern: "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$"
31
+ });
32
+ const IdentitySlug = Type.String({
33
+ minLength: 1,
34
+ maxLength: 64,
35
+ pattern: "^(?!(?:constructor|prototype|__proto__)$)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
36
+ });
37
+ /** Opaque provider reference. Only the scoped provider can establish whether it identifies an eligible profile. */
38
+ const StableProfileRef = Type.String({
39
+ minLength: 1,
40
+ maxLength: 512,
41
+ pattern: "^[^\\s\\u0000-\\u001f\\u007f]+$"
42
+ });
43
+ const IdentityDigest = Type.String({ pattern: "^[a-f0-9]{64}$" });
44
+ const IdentityRoles = Type.Array(IdentitySlug, { uniqueItems: true });
45
+ const PoWorkflowRoleGroupSchema = Type.Object({
46
+ kind: Type.Union([
47
+ Type.Literal("job"),
48
+ Type.Literal("child"),
49
+ Type.Literal("repair")
50
+ ]),
51
+ job: IdentityText,
52
+ roles: Type.Array(IdentitySlug, {
53
+ minItems: 1,
54
+ uniqueItems: true
55
+ })
56
+ }, { additionalProperties: false });
57
+ /** Derived from the effective graph. revision identifies the parsed definition, never a mutable path alone. */
58
+ const PoWorkflowIdentityRequirementsSchema = Type.Object({
59
+ definition: PoWorkflowDefinitionRefSchema,
60
+ revision: IdentityText,
61
+ roles: IdentityRoles,
62
+ groups: Type.Array(PoWorkflowRoleGroupSchema, { uniqueItems: true })
63
+ }, { additionalProperties: false });
64
+ const PoWorkflowAssignmentsSchema = Type.Record(IdentitySlug, StableProfileRef, { additionalProperties: false });
65
+ /** Safe picker projection. voiceConfigured is metadata, not provider readiness, entitlement or quota. */
66
+ const PoWorkflowIdentityCandidateSchema = Type.Object({
67
+ ref: StableProfileRef,
68
+ label: IdentityText,
69
+ roles: IdentityRoles,
70
+ voiceConfigured: Type.Boolean()
71
+ }, { additionalProperties: false });
72
+ /** Admitted workspace authorization scope. The historical export name is retained for compatibility; product is not required. */
73
+ const PoWorkflowProductScopeSchema = Type.Object({
74
+ workspaceId: IdentityText,
75
+ product: Type.Optional(IdentitySlug),
76
+ revision: IdentityText
77
+ }, { additionalProperties: false });
78
+ const PoWorkflowIdentityDiscoverySchema = Type.Object({
79
+ scope: PoWorkflowProductScopeSchema,
80
+ candidates: Type.Array(PoWorkflowIdentityCandidateSchema)
81
+ }, { additionalProperties: false });
82
+ /** Value-free evidence matching the initialized provider. credentialRef is not assumed equal to the stable ref. */
83
+ const PoWorkflowExpectedProviderSchema = Type.Object({
84
+ provider: IdentityText,
85
+ organizationId: IdentityText,
86
+ mailboxId: IdentityText,
87
+ credentialRef: IdentityText
88
+ }, { additionalProperties: false });
89
+ const PoWorkflowAllocatedProfileSchema = Type.Object({
90
+ ref: StableProfileRef,
91
+ profile: IdentityText,
92
+ contentDigest: IdentityDigest,
93
+ policyDigest: IdentityDigest,
94
+ provider: PoWorkflowExpectedProviderSchema
95
+ }, { additionalProperties: false });
96
+ /** Persisted before effects. Profiles contain exact admitted evidence, never secrets or an implicit team selection. */
97
+ const PoWorkflowAllocationSchema = Type.Object({
98
+ version: Type.Literal(1),
99
+ requirements: PoWorkflowIdentityRequirementsSchema,
100
+ scope: PoWorkflowProductScopeSchema,
101
+ assignments: PoWorkflowAssignmentsSchema,
102
+ profiles: Type.Array(PoWorkflowAllocatedProfileSchema)
103
+ }, { additionalProperties: false });
104
+ /** Step bootstrap only. An allocation-owned role-less session explicitly has no profile. */
105
+ const PoWorkflowExpectedIdentitySchema = Type.Union([Type.Object({ kind: Type.Literal("none") }, { additionalProperties: false }), Type.Object({
106
+ kind: Type.Literal("profile"),
107
+ scope: PoWorkflowProductScopeSchema,
108
+ definitionRevision: IdentityText,
109
+ roles: Type.Array(IdentitySlug, {
110
+ minItems: 1,
111
+ uniqueItems: true
112
+ }),
113
+ ...PoWorkflowAllocatedProfileSchema.properties
114
+ }, { additionalProperties: false })]);
115
+ /** Shared structural checks only. Eligibility, product scope and authorization require fresh provider admission. */
116
+ function validatePoWorkflowAssignments(requirements, assignments) {
117
+ const invalidRequirements = [{
118
+ code: "invalid_requirements",
119
+ message: "Workflow allocation requirements are invalid."
120
+ }];
121
+ if (!Check(PoWorkflowIdentityRequirementsSchema, requirements)) return invalidRequirements;
122
+ const roles = new Set(requirements.groups.flatMap((group) => group.roles));
123
+ if (new Set(requirements.groups.map((group) => JSON.stringify([group.kind, group.job]))).size !== requirements.groups.length || roles.size !== requirements.roles.length || requirements.roles.some((role) => !roles.has(role))) return invalidRequirements;
124
+ if (assignments === void 0) return requirements.roles.map((role) => ({
125
+ code: "missing_assignment",
126
+ role,
127
+ message: `Assign a stable profile reference to role ${role}.`
128
+ }));
129
+ if (!Check(PoWorkflowAssignmentsSchema, assignments)) return [{
130
+ code: "invalid_assignments",
131
+ message: "Workflow assignments must map role slugs to nonempty stable profile references."
132
+ }];
133
+ const issues = [];
134
+ for (const role of requirements.roles) if (!Object.hasOwn(assignments, role)) issues.push({
135
+ code: "missing_assignment",
136
+ role,
137
+ message: `Assign a stable profile reference to role ${role}.`
138
+ });
139
+ for (const role of Object.keys(assignments)) if (!roles.has(role)) issues.push({
140
+ code: "unknown_role",
141
+ role,
142
+ message: `Role ${role} is not required by this workflow.`
143
+ });
144
+ for (const group of requirements.groups) if (new Set(group.roles.filter((role) => Object.hasOwn(assignments, role)).map((role) => assignments[role])).size > 1) issues.push({
145
+ code: "conflicting_roles",
146
+ job: group.job,
147
+ message: `Roles for job ${group.job} must use the same profile reference.`
148
+ });
149
+ return issues;
150
+ }
151
+ /** Validates shape and cross-field consistency, then detaches persisted evidence from caller-owned objects. */
152
+ function parsePoWorkflowAllocation(value) {
153
+ if (!Check(PoWorkflowAllocationSchema, value)) throw new Error("Invalid or missing explicit workflow allocation snapshot.");
154
+ const issues = validatePoWorkflowAssignments(value.requirements, value.assignments);
155
+ if (issues.length) throw new Error(`Invalid workflow allocation: ${issues.map((issue) => issue.message).join(" ")}`);
156
+ const assigned = new Set(Object.values(value.assignments));
157
+ const profiles = new Set(value.profiles.map((profile) => profile.ref));
158
+ if (profiles.size !== value.profiles.length || profiles.size !== assigned.size || [...assigned].some((ref) => !profiles.has(ref))) throw new Error("Invalid workflow allocation: profile bindings must cover exactly the assigned references.");
159
+ return structuredClone(value);
160
+ }
161
+ function readPoWorkflowLaunchService(context) {
162
+ return context.get(PO_WORKFLOW_LAUNCH_SERVICE);
163
+ }
164
+ function readPoWorkflowDefinitionSourcesService(context) {
165
+ return context.get(PO_WORKFLOW_DEFINITION_SOURCES_SERVICE);
166
+ }
167
+ function readPoWorkflowRunsService(context) {
168
+ return context.get(PO_WORKFLOW_RUNS_SERVICE);
169
+ }
170
+ function readPoWorkflowOutcomeService(context) {
171
+ return context.get(PO_WORKFLOW_OUTCOME_SERVICE);
172
+ }
173
+ function readPoWorkflowContextService(context) {
174
+ return context.get(PO_WORKFLOW_CONTEXT_SERVICE);
175
+ }
176
+ function readPoWorkflowAdmissionsService(context) {
177
+ return context.get(PO_WORKFLOW_ADMISSIONS_SERVICE);
178
+ }
179
+ function readPoWorkflowIdentityService(context) {
180
+ return context.get(PO_WORKFLOW_IDENTITY_SERVICE);
181
+ }
182
+ function readPoWorkflowProfileAdmission(context) {
183
+ return context.get(PO_WORKFLOW_PROFILE_ADMISSION_SERVICE);
184
+ }
185
+ //#endregion
186
+ export { PO_WORKFLOW_ADMISSIONS_SERVICE, PO_WORKFLOW_CONTEXT_SERVICE, PO_WORKFLOW_DEFINITION_SOURCES_SERVICE, PO_WORKFLOW_IDENTITY_SERVICE, PO_WORKFLOW_LAUNCH_SERVICE, PO_WORKFLOW_OUTCOME_SERVICE, PO_WORKFLOW_PROFILE_ADMISSION_SERVICE, PO_WORKFLOW_RUNS_SERVICE, PoWorkflowAllocatedProfileSchema, PoWorkflowAllocationSchema, PoWorkflowAssignmentsSchema, PoWorkflowDefinitionRefSchema, PoWorkflowExpectedIdentitySchema, PoWorkflowExpectedProviderSchema, PoWorkflowIdentityCandidateSchema, PoWorkflowIdentityDiscoverySchema, PoWorkflowIdentityRequirementsSchema, PoWorkflowProductScopeSchema, PoWorkflowRoleGroupSchema, PoWorkflowRunRefSchema, parsePoWorkflowAllocation, readPoWorkflowAdmissionsService, readPoWorkflowContextService, readPoWorkflowDefinitionSourcesService, readPoWorkflowIdentityService, readPoWorkflowLaunchService, readPoWorkflowOutcomeService, readPoWorkflowProfileAdmission, readPoWorkflowRunsService, validatePoWorkflowAssignments };
187
+
188
+ //# sourceMappingURL=workflow.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.mjs","names":[],"sources":["../../../src/schemas/workflow.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\nimport { type Static, Type } from 'typebox';\nimport { Check } from 'typebox/value';\n\nexport const PO_WORKFLOW_LAUNCH_SERVICE = 'po/workflow-launch';\nexport const PO_WORKFLOW_DEFINITION_SOURCES_SERVICE = 'po/workflow-definition-sources';\nexport const PO_WORKFLOW_RUNS_SERVICE = 'po/workflow-runs';\nexport const PO_WORKFLOW_OUTCOME_SERVICE = 'po/workflow-outcome';\nexport const PO_WORKFLOW_CONTEXT_SERVICE = 'po/workflow-context';\nexport const PO_WORKFLOW_ADMISSIONS_SERVICE = 'po/workflow-admissions';\nexport const PO_WORKFLOW_IDENTITY_SERVICE = 'po/workflow-identity';\nexport const PO_WORKFLOW_PROFILE_ADMISSION_SERVICE = 'po/workflow-profile-admission';\n\n/** A source-relative definition, never an arbitrary host path. */\nexport const PoWorkflowDefinitionRefSchema = Type.Object(\n {\n source: Type.String({ minLength: 1 }),\n key: Type.String({\n minLength: 1,\n pattern: '^(?!/)(?!.*\\\\\\\\)(?!.*:)(?!.*[\\\\u0000-\\\\u001f\\\\u007f])(?!.*(?:^|/)\\\\.{1,2}(?:/|$))[^/]+(?:/[^/]+)*$',\n }),\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowDefinitionRef = Static<typeof PoWorkflowDefinitionRefSchema>;\n\n/** Registration receipt. runId fences a runKey that can be reused later. */\nexport const PoWorkflowRunRefSchema = Type.Object(\n {\n runId: Type.String({ minLength: 1 }),\n ownerSessionId: Type.String({ minLength: 1 }),\n runKey: Type.String({ minLength: 1 }),\n registryWorkspace: Type.String({ minLength: 1 }),\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowRunRef = Static<typeof PoWorkflowRunRefSchema>;\n\nconst IdentityText = Type.String({ minLength: 1, maxLength: 512, pattern: '^(?=.*\\\\S)[^\\\\u0000-\\\\u001f\\\\u007f]+$' });\nconst IdentitySlug = Type.String({\n minLength: 1,\n maxLength: 64,\n pattern: '^(?!(?:constructor|prototype|__proto__)$)[a-z][a-z0-9]*(?:-[a-z0-9]+)*$',\n});\n/** Opaque provider reference. Only the scoped provider can establish whether it identifies an eligible profile. */\nconst StableProfileRef = Type.String({ minLength: 1, maxLength: 512, pattern: '^[^\\\\s\\\\u0000-\\\\u001f\\\\u007f]+$' });\nconst IdentityDigest = Type.String({ pattern: '^[a-f0-9]{64}$' });\nconst IdentityRoles = Type.Array(IdentitySlug, { uniqueItems: true });\n\nexport const PoWorkflowRoleGroupSchema = Type.Object(\n {\n kind: Type.Union([Type.Literal('job'), Type.Literal('child'), Type.Literal('repair')]),\n job: IdentityText,\n roles: Type.Array(IdentitySlug, { minItems: 1, uniqueItems: true }),\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowRoleGroup = Static<typeof PoWorkflowRoleGroupSchema>;\n\n/** Derived from the effective graph. revision identifies the parsed definition, never a mutable path alone. */\nexport const PoWorkflowIdentityRequirementsSchema = Type.Object(\n {\n definition: PoWorkflowDefinitionRefSchema,\n revision: IdentityText,\n roles: IdentityRoles,\n groups: Type.Array(PoWorkflowRoleGroupSchema, { uniqueItems: true }),\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowIdentityRequirements = Static<typeof PoWorkflowIdentityRequirementsSchema>;\n\nexport const PoWorkflowAssignmentsSchema = Type.Record(IdentitySlug, StableProfileRef, { additionalProperties: false });\nexport type PoWorkflowAssignments = Static<typeof PoWorkflowAssignmentsSchema>;\n\n/** Safe picker projection. voiceConfigured is metadata, not provider readiness, entitlement or quota. */\nexport const PoWorkflowIdentityCandidateSchema = Type.Object(\n {\n ref: StableProfileRef,\n label: IdentityText,\n roles: IdentityRoles,\n voiceConfigured: Type.Boolean(),\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowIdentityCandidate = Static<typeof PoWorkflowIdentityCandidateSchema>;\n\n/** Admitted workspace authorization scope. The historical export name is retained for compatibility; product is not required. */\nexport const PoWorkflowProductScopeSchema = Type.Object(\n {\n workspaceId: IdentityText,\n product: Type.Optional(IdentitySlug),\n revision: IdentityText,\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowProductScope = Static<typeof PoWorkflowProductScopeSchema>;\n\nexport const PoWorkflowIdentityDiscoverySchema = Type.Object(\n {\n scope: PoWorkflowProductScopeSchema,\n candidates: Type.Array(PoWorkflowIdentityCandidateSchema),\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowIdentityDiscovery = Static<typeof PoWorkflowIdentityDiscoverySchema>;\n\n/** Value-free evidence matching the initialized provider. credentialRef is not assumed equal to the stable ref. */\nexport const PoWorkflowExpectedProviderSchema = Type.Object(\n {\n provider: IdentityText,\n organizationId: IdentityText,\n mailboxId: IdentityText,\n credentialRef: IdentityText,\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowExpectedProvider = Static<typeof PoWorkflowExpectedProviderSchema>;\n\nexport const PoWorkflowAllocatedProfileSchema = Type.Object(\n {\n ref: StableProfileRef,\n profile: IdentityText,\n contentDigest: IdentityDigest,\n policyDigest: IdentityDigest,\n provider: PoWorkflowExpectedProviderSchema,\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowAllocatedProfile = Static<typeof PoWorkflowAllocatedProfileSchema>;\n\n/** Persisted before effects. Profiles contain exact admitted evidence, never secrets or an implicit team selection. */\nexport const PoWorkflowAllocationSchema = Type.Object(\n {\n version: Type.Literal(1),\n requirements: PoWorkflowIdentityRequirementsSchema,\n scope: PoWorkflowProductScopeSchema,\n assignments: PoWorkflowAssignmentsSchema,\n profiles: Type.Array(PoWorkflowAllocatedProfileSchema),\n },\n { additionalProperties: false },\n);\nexport type PoWorkflowAllocation = Static<typeof PoWorkflowAllocationSchema>;\n\n/** Step bootstrap only. An allocation-owned role-less session explicitly has no profile. */\nexport const PoWorkflowExpectedIdentitySchema = Type.Union([\n Type.Object({ kind: Type.Literal('none') }, { additionalProperties: false }),\n Type.Object(\n {\n kind: Type.Literal('profile'),\n scope: PoWorkflowProductScopeSchema,\n definitionRevision: IdentityText,\n roles: Type.Array(IdentitySlug, { minItems: 1, uniqueItems: true }),\n ...PoWorkflowAllocatedProfileSchema.properties,\n },\n { additionalProperties: false },\n ),\n]);\nexport type PoWorkflowExpectedIdentity = Static<typeof PoWorkflowExpectedIdentitySchema>;\n\nexport interface PoWorkflowAllocationIssue {\n readonly code:\n | 'invalid_requirements'\n | 'invalid_assignments'\n | 'missing_assignment'\n | 'unknown_role'\n | 'conflicting_roles';\n readonly message: string;\n readonly role?: string;\n readonly job?: string;\n}\n\n/** Shared structural checks only. Eligibility, product scope and authorization require fresh provider admission. */\nexport function validatePoWorkflowAssignments(\n requirements: unknown,\n assignments: unknown,\n): PoWorkflowAllocationIssue[] {\n const invalidRequirements: PoWorkflowAllocationIssue[] = [\n { code: 'invalid_requirements', message: 'Workflow allocation requirements are invalid.' },\n ];\n if (!Check(PoWorkflowIdentityRequirementsSchema, requirements)) return invalidRequirements;\n const roles = new Set(requirements.groups.flatMap((group) => group.roles));\n const groups = new Set(requirements.groups.map((group) => JSON.stringify([group.kind, group.job])));\n if (\n groups.size !== requirements.groups.length ||\n roles.size !== requirements.roles.length ||\n requirements.roles.some((role) => !roles.has(role))\n )\n return invalidRequirements;\n if (assignments === undefined)\n return requirements.roles.map((role) => ({\n code: 'missing_assignment',\n role,\n message: `Assign a stable profile reference to role ${role}.`,\n }));\n if (!Check(PoWorkflowAssignmentsSchema, assignments))\n return [\n {\n code: 'invalid_assignments',\n message: 'Workflow assignments must map role slugs to nonempty stable profile references.',\n },\n ];\n const issues: PoWorkflowAllocationIssue[] = [];\n for (const role of requirements.roles) {\n if (!Object.hasOwn(assignments, role))\n issues.push({ code: 'missing_assignment', role, message: `Assign a stable profile reference to role ${role}.` });\n }\n for (const role of Object.keys(assignments)) {\n if (!roles.has(role))\n issues.push({ code: 'unknown_role', role, message: `Role ${role} is not required by this workflow.` });\n }\n for (const group of requirements.groups) {\n const refs = new Set(\n group.roles.filter((role) => Object.hasOwn(assignments, role)).map((role) => assignments[role]),\n );\n if (refs.size > 1)\n issues.push({\n code: 'conflicting_roles',\n job: group.job,\n message: `Roles for job ${group.job} must use the same profile reference.`,\n });\n }\n return issues;\n}\n\n/** Validates shape and cross-field consistency, then detaches persisted evidence from caller-owned objects. */\nexport function parsePoWorkflowAllocation(value: unknown): PoWorkflowAllocation {\n if (!Check(PoWorkflowAllocationSchema, value))\n throw new Error('Invalid or missing explicit workflow allocation snapshot.');\n const issues = validatePoWorkflowAssignments(value.requirements, value.assignments);\n if (issues.length) throw new Error(`Invalid workflow allocation: ${issues.map((issue) => issue.message).join(' ')}`);\n const assigned = new Set(Object.values(value.assignments));\n const profiles = new Set(value.profiles.map((profile) => profile.ref));\n if (\n profiles.size !== value.profiles.length ||\n profiles.size !== assigned.size ||\n [...assigned].some((ref) => !profiles.has(ref))\n )\n throw new Error('Invalid workflow allocation: profile bindings must cover exactly the assigned references.');\n return structuredClone(value);\n}\n\n/** Read-only effective-graph requirements and provider discovery. identity is absent only for role-less graphs. */\nexport interface PoWorkflowRequirementsReport {\n readonly requirements: PoWorkflowIdentityRequirements;\n readonly identity?: PoWorkflowIdentityDiscovery;\n}\n\nexport interface PoWorkflowAllocationRequest {\n readonly requirements: PoWorkflowIdentityRequirements;\n readonly assignments: Readonly<PoWorkflowAssignments>;\n}\n\nexport interface PoWorkflowLaunchOverrides {\n readonly runner?: string;\n readonly command?: string;\n readonly choice?: string;\n readonly job?: string;\n readonly inputs?: Readonly<Record<string, string>>;\n readonly env?: Readonly<Record<string, string>>;\n readonly prompt?: string;\n readonly name?: string;\n /** Name for a newly created workflow session, not the run or an existing owner session. */\n readonly sessionName?: string;\n /** Exact per-launch role assignments. Teams, defaults and local profile names cannot fill missing assignments. */\n readonly assignments?: Readonly<PoWorkflowAssignments>;\n /** Legacy team override only. Never a substitute for explicit allocation. */\n readonly team?: string;\n}\n\n/** Session-owned. Rejection means no observable registration was accepted. */\nexport interface PoWorkflowLaunchService {\n launch(definition: PoWorkflowDefinitionRef, overrides?: PoWorkflowLaunchOverrides): Promise<PoWorkflowRunRef>;\n}\n\n/** Non-secret host association. Environment variables never establish this binding. */\nexport interface PoWorkflowPolicyAssociation {\n readonly coordinator: string;\n readonly key: string;\n}\n\n/** Independent of runId and executionGeneration, including continue-next resumes. */\nexport interface PoWorkflowOperationEpoch {\n readonly admissionId: string;\n readonly operationId: string;\n}\n\nexport interface PoWorkflowPolicyBinding {\n readonly association: PoWorkflowPolicyAssociation;\n readonly epoch: PoWorkflowOperationEpoch;\n}\n\nexport interface PoWorkflowExecutionPolicyRequest {\n readonly binding: PoWorkflowPolicyBinding;\n readonly reason: 'launch' | 'recover' | 'startup' | 'resume';\n readonly ownerSessionId: string;\n readonly launcherSessionId: string;\n /** The engine supplies the actual persisted run after createRun, including startup and recovery. */\n readonly run?: PoWorkflowRunRef;\n readonly previousRun?: PoWorkflowRunRef;\n /** Ephemeral host lifetime, never persisted. */\n readonly signal: AbortSignal;\n}\n\nexport interface PoWorkflowExecutionPolicyResult {\n /** Trusted non-secret context only. PO_* and WORKFLOW_* engine identity keys are forbidden. */\n readonly environment?: Readonly<Record<string, string>>;\n}\n\n/**\n * How a bound generation ended. `abandoned` is a person giving up a failed run: it is never recovered.\n * A coordinator releases what it holds for success, skipped and abandoned, and keeps it for failed and\n * interrupted so a recovery of the run reuses it.\n */\nexport type PoWorkflowSettlementOutcome = PoWorkflowOutcome | 'abandoned';\n\nexport interface PoWorkflowSettlementRequest {\n readonly binding: PoWorkflowPolicyBinding;\n readonly run: PoWorkflowRunRef;\n readonly outcome: PoWorkflowSettlementOutcome;\n readonly failedJob?: string;\n readonly ownerSessionId: string;\n readonly launcherSessionId: string;\n /** Ephemeral host lifetime, never persisted. */\n readonly signal: AbortSignal;\n}\n\nexport interface PoWorkflowPolicyOptions {\n readonly environmentKeys: readonly string[];\n /**\n * Called once a bound generation is terminal, and again with `abandoned` if a person abandons it.\n * Delivery is durable: the engine retries until this resolves, including after a restart or a\n * remount, so it must be idempotent. Throwing leaves the settlement pending.\n */\n readonly settle?: (request: PoWorkflowSettlementRequest) => Promise<void>;\n}\n\nexport interface PoWorkflowAdmissionOverrides extends PoWorkflowLaunchOverrides {\n readonly policy?: PoWorkflowPolicyAssociation;\n /** Frozen preparation evidence. The destination revalidates it exactly, never treats it as authorization. */\n readonly allocation?: PoWorkflowAllocation;\n /**\n * Run the workflow as this same-workspace session instead of the caller, for example a session in an\n * isolated checkout. Trusted in-process launchers only: never accepted from tools, code mode or HTTP.\n */\n readonly targetSessionId?: string;\n}\n\nexport interface PoWorkflowRecoveryOptions {\n readonly runner?: string;\n}\n\nexport type PoWorkflowAdmissionRequest =\n | {\n readonly kind: 'launch';\n readonly definition: PoWorkflowDefinitionRef;\n readonly overrides?: PoWorkflowAdmissionOverrides;\n }\n | { readonly kind: 'recover'; readonly previousRun: PoWorkflowRunRef; readonly options?: PoWorkflowRecoveryOptions };\n\nexport interface PoWorkflowValidationReport {\n readonly errors: readonly { readonly code: string; readonly message: string; readonly location?: string }[];\n readonly warnings: readonly { readonly code: string; readonly message: string; readonly location?: string }[];\n readonly deferred: readonly { readonly location: string; readonly reference: string; readonly reason: string }[];\n /** Declared by the definition and reported only: the engine never provisions a checkout itself. */\n readonly isolation?: 'checkout';\n /** Trusted preparation evidence only. Ordinary namespace reports omit provider bindings. */\n readonly allocation?: PoWorkflowAllocation;\n}\n\nexport type PoWorkflowAdmission =\n | {\n readonly attemptId: string;\n readonly admissionId: string;\n readonly state: 'pending';\n readonly binding?: PoWorkflowPolicyBinding;\n }\n | {\n readonly attemptId: string;\n readonly admissionId: string;\n readonly state: 'rejected';\n readonly errors: readonly string[];\n }\n | {\n readonly attemptId: string;\n readonly admissionId: string;\n readonly state: 'registered';\n readonly run: PoWorkflowRunRef;\n readonly binding?: PoWorkflowPolicyBinding;\n };\n\n/** Trusted, session-bound opt-in capability, never exposed as a tool or code-mode namespace. */\nexport interface PoWorkflowAdmissionsService {\n /** Discovery precedes assignment and creates no admission journal, claims or workflow effects. */\n requirements?(\n definition: PoWorkflowDefinitionRef,\n options?: Pick<PoWorkflowLaunchOverrides, 'job'>,\n ): Promise<PoWorkflowRequirementsReport>;\n validate(request: PoWorkflowAdmissionRequest): Promise<PoWorkflowValidationReport>;\n launch(\n attemptId: string,\n definition: PoWorkflowDefinitionRef,\n overrides?: PoWorkflowAdmissionOverrides,\n ): Promise<PoWorkflowAdmission>;\n recover(\n attemptId: string,\n previousRun: PoWorkflowRunRef,\n options?: PoWorkflowRecoveryOptions,\n ): Promise<PoWorkflowAdmission>;\n /** Undefined is unknown or unauthorized, never proof that an executor did not start. */\n read(attemptId: string): Promise<PoWorkflowAdmission | undefined>;\n /** Session-owned registration. Duplicate (source session, coordinator) is rejected.\n * Disposal is generation-fenced. Remounting only reattaches; other sessions never supply this callback.\n * The engine persists the source launcher identity and never falls back to another session's policy.\n */\n registerPolicy(\n coordinator: string,\n beforeExecution: (request: PoWorkflowExecutionPolicyRequest) => Promise<PoWorkflowExecutionPolicyResult | void>,\n options: PoWorkflowPolicyOptions,\n ): { dispose(): void };\n}\nexport interface PoWorkflowDefinitionSource {\n readonly source: string;\n /** An admitted, materialized absolute directory. Registration does not fetch it. */\n readonly directory: string;\n}\n\nexport interface PoWorkflowDefinitionSourceHandle {\n readonly source: string;\n readonly generation: string;\n dispose(): void;\n}\n\n/** Workspace-owned registry. Disposal withdraws only the handle's registration. */\nexport interface PoWorkflowDefinitionSourcesService {\n register(contribution: PoWorkflowDefinitionSource): PoWorkflowDefinitionSourceHandle;\n list(): readonly PoWorkflowDefinitionSource[];\n subscribe(listener: (sources: readonly PoWorkflowDefinitionSource[]) => void): () => void;\n}\n\nexport type PoWorkflowStage = 'running' | 'completed' | 'error';\nexport type PoWorkflowOutcome = 'success' | 'skipped' | 'failed' | 'interrupted';\nexport type PoWorkflowProgressState =\n | 'pending'\n | 'running'\n | 'completed'\n | 'skipped'\n | 'failed'\n | 'pause_requested'\n | 'paused'\n | 'resumed';\n\nexport interface PoWorkflowStepState {\n readonly name: string;\n readonly status: PoWorkflowProgressState;\n readonly ref?: { readonly kind: string; readonly id: string; readonly label?: string };\n readonly reason?: string;\n}\n\nexport interface PoWorkflowJobState {\n readonly name: string;\n readonly phase: 'pre' | 'job' | 'post';\n readonly status: PoWorkflowProgressState;\n readonly steps: readonly PoWorkflowStepState[];\n}\n\nexport interface PoWorkflowRunState {\n readonly run: PoWorkflowRunRef;\n readonly stage: PoWorkflowStage;\n readonly outcome?: PoWorkflowOutcome;\n /** From the same persisted snapshot as stage/outcome, never a newer cached operation. */\n readonly binding?: PoWorkflowPolicyBinding;\n readonly jobs: readonly PoWorkflowJobState[];\n readonly children?: readonly PoWorkflowChildrenStatus[];\n}\n\n/** The parsed definition actually used, not a re-read of mutable YAML on disk. */\nexport interface PoWorkflowConfig {\n readonly definition: PoWorkflowDefinitionRef;\n readonly revision: string;\n /** Engine-owned YAML vocabulary. Core does not import or implement the parser. */\n readonly workflow: Readonly<Record<string, unknown>>;\n}\n\n/** Owner-authoritative views, or an authorized projection for a launcher. */\nexport interface PoWorkflowRunsService {\n readConfig(runId: string): Promise<PoWorkflowConfig | undefined>;\n readState(runId: string): Promise<PoWorkflowRunState | undefined>;\n /** Replays the latest state, including terminal state, before subsequent updates. */\n subscribe(runId: string, listener: (state: PoWorkflowRunState) => void): () => void;\n}\n\n/** Final result of a receipt's run through approval waits and automatic recovery. */\nexport type PoWorkflowReceiptOutcome = 'succeeded' | 'failed' | 'cancelled' | 'interrupted';\n\n/**\n * Outcome-only evidence bound to one launch receipt. `pending` covers running, parked on approval, awaiting\n * automatic recovery, and anything it cannot prove, so a caller never reports a false failure. It follows only\n * authoritative recovery links from the exact run and answers only the launching or owning session.\n */\nexport interface PoWorkflowOutcomeService {\n read(receipt: PoWorkflowRunRef): Promise<{ readonly outcome: PoWorkflowReceiptOutcome } | { readonly pending: true }>;\n}\n\nexport interface PoWorkflowChildInvocation {\n readonly invocationId: string;\n readonly job: string;\n readonly state: 'running' | 'completed' | 'failed' | 'interrupted';\n readonly sessionIds: readonly string[];\n readonly startedAt: string;\n readonly endedAt?: string;\n readonly error?: string;\n readonly usage?: import('./hubChannel').PoHubSessionUsage;\n}\n\nexport interface PoWorkflowCriterionState {\n readonly key: string;\n readonly description: string;\n readonly verifiedBy: string;\n readonly status: 'unchecked' | 'checked' | 'not-met';\n readonly feedback?: string;\n readonly invocationId?: string;\n}\n\nexport interface PoWorkflowChildrenStatus {\n readonly lead: string;\n readonly continuations: number;\n readonly maxContinuations: number;\n readonly criteria: readonly PoWorkflowCriterionState[];\n readonly invocations: readonly PoWorkflowChildInvocation[];\n}\n\n/** A child's immutable assignment, captured when it was spawned. */\nexport interface PoWorkflowChildAssignment {\n readonly assignmentId: string;\n readonly job: string;\n readonly prompt: string;\n readonly inputs: Readonly<Record<string, string | number | boolean>>;\n /** The sealed version, and its SHA-256, of each input path. */\n readonly inputManifest: Readonly<Record<string, { readonly versionId: string; readonly sha: string }>>;\n /** Paths the child is granted to write. */\n readonly outputs: readonly string[];\n}\n\n/** In-process, caller-bound capability. Never accepted from a tool or serialized. */\nexport interface PoWorkflowChildrenSession {\n readonly role: 'lead' | 'child' | 'consumer';\n spawnChild?(input: {\n job: string;\n prompt: string;\n inputs?: Record<string, string | number | boolean>;\n /** Run-directory paths the child reads; each is sealed and recorded in its assignment. */\n inputPaths?: string[];\n }): Promise<PoWorkflowChildInvocation>;\n childStatus?(input: { invocationId: string }): Promise<PoWorkflowChildInvocation>;\n children?(): Promise<PoWorkflowChildrenStatus>;\n reportCriteria?(input: {\n results: Record<string, { status: 'checked' | 'not-met'; feedback?: string }>;\n }): Promise<void>;\n /** Immutable pre-review snapshot selected by the runtime, not mutable paths. */\n reviewArtifacts?(): Promise<{ revision: string; artifacts: Readonly<Record<string, string>> }>;\n /** The child's own immutable assignment. */\n assignment?(): Promise<PoWorkflowChildAssignment>;\n /** Returns exactly the accepted bytes, after a fresh authoritative ledger/revision check. */\n acceptedArtifacts?(input: {\n job: string;\n }): Promise<{ revision: string; artifacts: Readonly<Record<string, string>> }>;\n}\n\n/** What an ordinary step's agent may record before it stops. `fix` is for steps that may restart an earlier job. */\nexport type PoWorkflowStepOutcome =\n | { readonly kind: 'complete'; readonly summary?: string }\n | { readonly kind: 'fail'; readonly reason: string }\n | { readonly kind: 'fix'; readonly restartFrom: string; readonly reason: string };\n\n/** A detached, authorized view of the step this session runs, read fresh from the engine. */\nexport interface PoWorkflowStepContextView {\n readonly run: { readonly runId: string; readonly runKey: string; readonly workspace: string };\n readonly job: string;\n readonly step: string;\n readonly attempt: number;\n /** The effective run context after trigger resolution, such as the launch prompt. */\n readonly context: Readonly<Record<string, unknown>>;\n /** Jobs a `fix` may restart from; empty when this step cannot request one. */\n readonly restartTargets: readonly string[];\n /** Whether the step fails when it stops without an outcome. */\n readonly required: boolean;\n readonly outcome?: PoWorkflowStepOutcome;\n}\n\n/** In-process, session-bound outcome capability of one step attempt. Never accepted from a tool or serialized. */\nexport interface PoWorkflowStepOutcomeSession {\n context(): Promise<PoWorkflowStepContextView>;\n /** Idempotent for the same outcome; a different one after it is refused, except a fail after a complete. */\n record(outcome: PoWorkflowStepOutcome): Promise<PoWorkflowStepContextView>;\n}\n\n/** Bound only in the trusted step-session bootstrap, before packages mount. */\nexport interface PoWorkflowContextService {\n readonly run: PoWorkflowRunRef;\n readonly job: string;\n readonly step: string;\n readonly matrixIndex?: number;\n readonly attempt: number;\n readonly config: PoWorkflowConfig;\n readonly jobEnvironment: Readonly<Record<string, string>>;\n readonly stepEnvironment: Readonly<Record<string, string>>;\n readonly traceparent?: string;\n /** Absolute path of the workflow's instructions file, read in place of the discovered AGENTS.md files. */\n readonly instructions?: string;\n readonly state: PoWorkflowRunsService;\n readonly children?: PoWorkflowChildrenSession;\n /** Present for an ordinary step attempt the engine tracks; managed leads and children report through `children`. */\n readonly outcome?: PoWorkflowStepOutcomeSession;\n /** Trusted startup evidence, not a remote session-create field. */\n readonly identity?: PoWorkflowExpectedIdentity;\n /** Frozen run evidence for trusted child admission. Never read from environment or public config views. */\n readonly allocation?: PoWorkflowAllocation;\n}\n\nexport interface PoWorkflowIdentityRequest {\n readonly team: string;\n /** Every role the job declares; all of them must belong to one member. */\n readonly roles: readonly string[];\n}\n\n/** One member a job was admitted as. Kept in run state, so it carries names and digests, never secrets. */\nexport interface PoWorkflowIdentityBinding {\n readonly team: string;\n readonly teamRevision: string;\n readonly product?: string;\n readonly roles: readonly string[];\n /** Stable across machines; the local profile name may differ between them. */\n readonly ref: string;\n readonly profile: string;\n readonly contentDigest: string;\n readonly policyDigest: string;\n}\n\n/**\n * Workspace-bound identity capability. New role-bound launches require the allocation methods;\n * an older provider missing them must fail closed rather than falling back to legacy teams.\n * Fresh admission narrows existing authorization and never grants credentials or changes the caller's profile.\n */\nexport interface PoWorkflowIdentityService {\n /** Ordinary read-only discovery, available without Help or a selected profile. */\n discover?(requirements: PoWorkflowIdentityRequirements): Promise<PoWorkflowIdentityDiscovery>;\n /** Refreshes eligibility and admits exactly the requested references in the provider's trusted product scope. */\n allocate?(request: PoWorkflowAllocationRequest): Promise<PoWorkflowAllocation>;\n /** Revalidates exact persisted evidence; any change blocks instead of substituting profiles or digests. */\n revalidateAllocation?(allocation: PoWorkflowAllocation): Promise<PoWorkflowAllocation>;\n /** Legacy team-based admission, not used by allocation-aware launches. */\n resolve(request: PoWorkflowIdentityRequest): Promise<PoWorkflowIdentityBinding>;\n /** Rechecks a saved binding against the current team and authorization, returning it as it stands now. */\n revalidate(binding: PoWorkflowIdentityBinding): Promise<PoWorkflowIdentityBinding>;\n}\n\n/** Required profile-version admission for allocation-owned prompts. Only the profile package supplies it. */\nexport interface PoWorkflowProfileAdmissionService {\n assertReady(expected: PoWorkflowExpectedIdentity): Promise<void>;\n}\n\n// These are in-process capabilities, not remote session-create fields or durable records.\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/workflow-launch': PoWorkflowLaunchService;\n 'po/workflow-definition-sources': PoWorkflowDefinitionSourcesService;\n 'po/workflow-runs': PoWorkflowRunsService;\n 'po/workflow-outcome': PoWorkflowOutcomeService;\n 'po/workflow-context': PoWorkflowContextService;\n 'po/workflow-admissions': PoWorkflowAdmissionsService;\n 'po/workflow-identity': PoWorkflowIdentityService;\n 'po/workflow-profile-admission': PoWorkflowProfileAdmissionService;\n }\n}\n\nexport function readPoWorkflowLaunchService(context: Context): PoWorkflowLaunchService | undefined {\n return context.get(PO_WORKFLOW_LAUNCH_SERVICE) as PoWorkflowLaunchService | undefined;\n}\n\nexport function readPoWorkflowDefinitionSourcesService(\n context: Context,\n): PoWorkflowDefinitionSourcesService | undefined {\n return context.get(PO_WORKFLOW_DEFINITION_SOURCES_SERVICE) as PoWorkflowDefinitionSourcesService | undefined;\n}\n\nexport function readPoWorkflowRunsService(context: Context): PoWorkflowRunsService | undefined {\n return context.get(PO_WORKFLOW_RUNS_SERVICE) as PoWorkflowRunsService | undefined;\n}\n\nexport function readPoWorkflowOutcomeService(context: Context): PoWorkflowOutcomeService | undefined {\n return context.get(PO_WORKFLOW_OUTCOME_SERVICE) as PoWorkflowOutcomeService | undefined;\n}\n\nexport function readPoWorkflowContextService(context: Context): PoWorkflowContextService | undefined {\n return context.get(PO_WORKFLOW_CONTEXT_SERVICE) as PoWorkflowContextService | undefined;\n}\n\nexport function readPoWorkflowAdmissionsService(context: Context): PoWorkflowAdmissionsService | undefined {\n return context.get(PO_WORKFLOW_ADMISSIONS_SERVICE) as PoWorkflowAdmissionsService | undefined;\n}\n\nexport function readPoWorkflowIdentityService(context: Context): PoWorkflowIdentityService | undefined {\n return context.get(PO_WORKFLOW_IDENTITY_SERVICE) as PoWorkflowIdentityService | undefined;\n}\n\nexport function readPoWorkflowProfileAdmission(context: Context): PoWorkflowProfileAdmissionService | undefined {\n return context.get(PO_WORKFLOW_PROFILE_ADMISSION_SERVICE) as PoWorkflowProfileAdmissionService | undefined;\n}\n"],"mappings":";;;AAIA,MAAa,6BAA6B;AAC1C,MAAa,yCAAyC;AACtD,MAAa,2BAA2B;AACxC,MAAa,8BAA8B;AAC3C,MAAa,8BAA8B;AAC3C,MAAa,iCAAiC;AAC9C,MAAa,+BAA+B;AAC5C,MAAa,wCAAwC;;AAGrD,MAAa,gCAAgC,KAAK,OAChD;CACE,QAAQ,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACpC,KAAK,KAAK,OAAO;EACf,WAAW;EACX,SAAS;CACX,CAAC;AACH,GACA,EAAE,sBAAsB,MAAM,CAChC;;AAIA,MAAa,yBAAyB,KAAK,OACzC;CACE,OAAO,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACnC,gBAAgB,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CAC5C,QAAQ,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACpC,mBAAmB,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;AACjD,GACA,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAM,eAAe,KAAK,OAAO;CAAE,WAAW;CAAG,WAAW;CAAK,SAAS;AAAwC,CAAC;AACnH,MAAM,eAAe,KAAK,OAAO;CAC/B,WAAW;CACX,WAAW;CACX,SAAS;AACX,CAAC;;AAED,MAAM,mBAAmB,KAAK,OAAO;CAAE,WAAW;CAAG,WAAW;CAAK,SAAS;AAAkC,CAAC;AACjH,MAAM,iBAAiB,KAAK,OAAO,EAAE,SAAS,iBAAiB,CAAC;AAChE,MAAM,gBAAgB,KAAK,MAAM,cAAc,EAAE,aAAa,KAAK,CAAC;AAEpE,MAAa,4BAA4B,KAAK,OAC5C;CACE,MAAM,KAAK,MAAM;EAAC,KAAK,QAAQ,KAAK;EAAG,KAAK,QAAQ,OAAO;EAAG,KAAK,QAAQ,QAAQ;CAAC,CAAC;CACrF,KAAK;CACL,OAAO,KAAK,MAAM,cAAc;EAAE,UAAU;EAAG,aAAa;CAAK,CAAC;AACpE,GACA,EAAE,sBAAsB,MAAM,CAChC;;AAIA,MAAa,uCAAuC,KAAK,OACvD;CACE,YAAY;CACZ,UAAU;CACV,OAAO;CACP,QAAQ,KAAK,MAAM,2BAA2B,EAAE,aAAa,KAAK,CAAC;AACrE,GACA,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAa,8BAA8B,KAAK,OAAO,cAAc,kBAAkB,EAAE,sBAAsB,MAAM,CAAC;;AAItH,MAAa,oCAAoC,KAAK,OACpD;CACE,KAAK;CACL,OAAO;CACP,OAAO;CACP,iBAAiB,KAAK,QAAQ;AAChC,GACA,EAAE,sBAAsB,MAAM,CAChC;;AAIA,MAAa,+BAA+B,KAAK,OAC/C;CACE,aAAa;CACb,SAAS,KAAK,SAAS,YAAY;CACnC,UAAU;AACZ,GACA,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAa,oCAAoC,KAAK,OACpD;CACE,OAAO;CACP,YAAY,KAAK,MAAM,iCAAiC;AAC1D,GACA,EAAE,sBAAsB,MAAM,CAChC;;AAIA,MAAa,mCAAmC,KAAK,OACnD;CACE,UAAU;CACV,gBAAgB;CAChB,WAAW;CACX,eAAe;AACjB,GACA,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAa,mCAAmC,KAAK,OACnD;CACE,KAAK;CACL,SAAS;CACT,eAAe;CACf,cAAc;CACd,UAAU;AACZ,GACA,EAAE,sBAAsB,MAAM,CAChC;;AAIA,MAAa,6BAA6B,KAAK,OAC7C;CACE,SAAS,KAAK,QAAQ,CAAC;CACvB,cAAc;CACd,OAAO;CACP,aAAa;CACb,UAAU,KAAK,MAAM,gCAAgC;AACvD,GACA,EAAE,sBAAsB,MAAM,CAChC;;AAIA,MAAa,mCAAmC,KAAK,MAAM,CACzD,KAAK,OAAO,EAAE,MAAM,KAAK,QAAQ,MAAM,EAAE,GAAG,EAAE,sBAAsB,MAAM,CAAC,GAC3E,KAAK,OACH;CACE,MAAM,KAAK,QAAQ,SAAS;CAC5B,OAAO;CACP,oBAAoB;CACpB,OAAO,KAAK,MAAM,cAAc;EAAE,UAAU;EAAG,aAAa;CAAK,CAAC;CAClE,GAAG,iCAAiC;AACtC,GACA,EAAE,sBAAsB,MAAM,CAChC,CACF,CAAC;;AAgBD,SAAgB,8BACd,cACA,aAC6B;CAC7B,MAAM,sBAAmD,CACvD;EAAE,MAAM;EAAwB,SAAS;CAAgD,CAC3F;CACA,IAAI,CAAC,MAAM,sCAAsC,YAAY,GAAG,OAAO;CACvE,MAAM,QAAQ,IAAI,IAAI,aAAa,OAAO,SAAS,UAAU,MAAM,KAAK,CAAC;CAEzE,IACE,IAFiB,IAAI,aAAa,OAAO,KAAK,UAAU,KAAK,UAAU,CAAC,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,CAE1F,CAAC,CAAC,SAAS,aAAa,OAAO,UACpC,MAAM,SAAS,aAAa,MAAM,UAClC,aAAa,MAAM,MAAM,SAAS,CAAC,MAAM,IAAI,IAAI,CAAC,GAElD,OAAO;CACT,IAAI,gBAAgB,KAAA,GAClB,OAAO,aAAa,MAAM,KAAK,UAAU;EACvC,MAAM;EACN;EACA,SAAS,6CAA6C,KAAK;CAC7D,EAAE;CACJ,IAAI,CAAC,MAAM,6BAA6B,WAAW,GACjD,OAAO,CACL;EACE,MAAM;EACN,SAAS;CACX,CACF;CACF,MAAM,SAAsC,CAAC;CAC7C,KAAK,MAAM,QAAQ,aAAa,OAC9B,IAAI,CAAC,OAAO,OAAO,aAAa,IAAI,GAClC,OAAO,KAAK;EAAE,MAAM;EAAsB;EAAM,SAAS,6CAA6C,KAAK;CAAG,CAAC;CAEnH,KAAK,MAAM,QAAQ,OAAO,KAAK,WAAW,GACxC,IAAI,CAAC,MAAM,IAAI,IAAI,GACjB,OAAO,KAAK;EAAE,MAAM;EAAgB;EAAM,SAAS,QAAQ,KAAK;CAAoC,CAAC;CAEzG,KAAK,MAAM,SAAS,aAAa,QAI/B,IAAI,IAHa,IACf,MAAM,MAAM,QAAQ,SAAS,OAAO,OAAO,aAAa,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,YAAY,KAAK,CAEzF,CAAC,CAAC,OAAO,GACd,OAAO,KAAK;EACV,MAAM;EACN,KAAK,MAAM;EACX,SAAS,iBAAiB,MAAM,IAAI;CACtC,CAAC;CAEL,OAAO;AACT;;AAGA,SAAgB,0BAA0B,OAAsC;CAC9E,IAAI,CAAC,MAAM,4BAA4B,KAAK,GAC1C,MAAM,IAAI,MAAM,2DAA2D;CAC7E,MAAM,SAAS,8BAA8B,MAAM,cAAc,MAAM,WAAW;CAClF,IAAI,OAAO,QAAQ,MAAM,IAAI,MAAM,gCAAgC,OAAO,KAAK,UAAU,MAAM,OAAO,CAAC,CAAC,KAAK,GAAG,GAAG;CACnH,MAAM,WAAW,IAAI,IAAI,OAAO,OAAO,MAAM,WAAW,CAAC;CACzD,MAAM,WAAW,IAAI,IAAI,MAAM,SAAS,KAAK,YAAY,QAAQ,GAAG,CAAC;CACrE,IACE,SAAS,SAAS,MAAM,SAAS,UACjC,SAAS,SAAS,SAAS,QAC3B,CAAC,GAAG,QAAQ,CAAC,CAAC,MAAM,QAAQ,CAAC,SAAS,IAAI,GAAG,CAAC,GAE9C,MAAM,IAAI,MAAM,2FAA2F;CAC7G,OAAO,gBAAgB,KAAK;AAC9B;AAobA,SAAgB,4BAA4B,SAAuD;CACjG,OAAO,QAAQ,IAAI,0BAA0B;AAC/C;AAEA,SAAgB,uCACd,SACgD;CAChD,OAAO,QAAQ,IAAI,sCAAsC;AAC3D;AAEA,SAAgB,0BAA0B,SAAqD;CAC7F,OAAO,QAAQ,IAAI,wBAAwB;AAC7C;AAEA,SAAgB,6BAA6B,SAAwD;CACnG,OAAO,QAAQ,IAAI,2BAA2B;AAChD;AAEA,SAAgB,6BAA6B,SAAwD;CACnG,OAAO,QAAQ,IAAI,2BAA2B;AAChD;AAEA,SAAgB,gCAAgC,SAA2D;CACzG,OAAO,QAAQ,IAAI,8BAA8B;AACnD;AAEA,SAAgB,8BAA8B,SAAyD;CACrG,OAAO,QAAQ,IAAI,4BAA4B;AACjD;AAEA,SAAgB,+BAA+B,SAAiE;CAC9G,OAAO,QAAQ,IAAI,qCAAqC;AAC1D"}
@@ -0,0 +1,13 @@
1
+ const require_serverScope = require("./serverScope.cjs");
2
+ //#region src/schemas/workspaceRegistry.ts
3
+ const PO_WORKSPACE_REGISTRY_SERVICE = "po/workspace-registry";
4
+ const PO_WORKSPACE_REGISTRY_CONTRACT = require_serverScope.defineServiceContract(PO_WORKSPACE_REGISTRY_SERVICE, { scope: "host" });
5
+ function readPoWorkspaceRegistry(context) {
6
+ return context.get(PO_WORKSPACE_REGISTRY_SERVICE);
7
+ }
8
+ //#endregion
9
+ exports.PO_WORKSPACE_REGISTRY_CONTRACT = PO_WORKSPACE_REGISTRY_CONTRACT;
10
+ exports.PO_WORKSPACE_REGISTRY_SERVICE = PO_WORKSPACE_REGISTRY_SERVICE;
11
+ exports.readPoWorkspaceRegistry = readPoWorkspaceRegistry;
12
+
13
+ //# sourceMappingURL=workspaceRegistry.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceRegistry.cjs","names":["defineServiceContract"],"sources":["../../../src/schemas/workspaceRegistry.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\n\nimport { defineServiceContract } from './serverScope';\n\nexport const PO_WORKSPACE_REGISTRY_SERVICE = 'po/workspace-registry';\n\n/** A host-local workspace identity. Metadata is free-form and validated by its consuming plugin. */\nexport interface PoWorkspaceInfo {\n id: string;\n root: string;\n name?: string;\n alias?: string;\n declaration?: string;\n metadata: Record<string, unknown>;\n}\n\nexport type PoWorkspaceSelector = { id: string } | { name: string } | { path: string } | { alias: string };\n\nexport type PoWorkspaceResolution =\n | { status: 'found'; workspace: PoWorkspaceInfo }\n | { status: 'missing' }\n | { status: 'ambiguous'; candidates: PoWorkspaceInfo[] };\n\n/** Read-only inventory of this host's admitted workspaces, never another workspace's Cordis services. */\nexport interface PoWorkspaceRegistry {\n list(): Promise<readonly PoWorkspaceInfo[]>;\n resolve(selector: PoWorkspaceSelector): Promise<PoWorkspaceResolution>;\n}\n\nexport const PO_WORKSPACE_REGISTRY_CONTRACT = defineServiceContract<PoWorkspaceRegistry>(\n PO_WORKSPACE_REGISTRY_SERVICE,\n { scope: 'host' },\n);\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/workspace-registry': PoWorkspaceRegistry;\n }\n}\n\nexport function readPoWorkspaceRegistry(context: Context): PoWorkspaceRegistry | undefined {\n return context.get(PO_WORKSPACE_REGISTRY_SERVICE) as PoWorkspaceRegistry | undefined;\n}\n"],"mappings":";;AAIA,MAAa,gCAAgC;AAyB7C,MAAa,iCAAiCA,oBAAAA,sBAC5C,+BACA,EAAE,OAAO,OAAO,CAClB;AAQA,SAAgB,wBAAwB,SAAmD;CACzF,OAAO,QAAQ,IAAI,6BAA6B;AAClD"}
@@ -0,0 +1,45 @@
1
+ import { PoServiceContract } from "./serverScope.mjs";
2
+ import { Context } from "@deepseek-ai/cordis";
3
+ //#region src/schemas/workspaceRegistry.d.ts
4
+ export declare const PO_WORKSPACE_REGISTRY_SERVICE = "po/workspace-registry";
5
+ /** A host-local workspace identity. Metadata is free-form and validated by its consuming plugin. */
6
+ export interface PoWorkspaceInfo {
7
+ id: string;
8
+ root: string;
9
+ name?: string;
10
+ alias?: string;
11
+ declaration?: string;
12
+ metadata: Record<string, unknown>;
13
+ }
14
+ export type PoWorkspaceSelector = {
15
+ id: string;
16
+ } | {
17
+ name: string;
18
+ } | {
19
+ path: string;
20
+ } | {
21
+ alias: string;
22
+ };
23
+ export type PoWorkspaceResolution = {
24
+ status: 'found';
25
+ workspace: PoWorkspaceInfo;
26
+ } | {
27
+ status: 'missing';
28
+ } | {
29
+ status: 'ambiguous';
30
+ candidates: PoWorkspaceInfo[];
31
+ };
32
+ /** Read-only inventory of this host's admitted workspaces, never another workspace's Cordis services. */
33
+ export interface PoWorkspaceRegistry {
34
+ list(): Promise<readonly PoWorkspaceInfo[]>;
35
+ resolve(selector: PoWorkspaceSelector): Promise<PoWorkspaceResolution>;
36
+ }
37
+ export declare const PO_WORKSPACE_REGISTRY_CONTRACT: PoServiceContract<PoWorkspaceRegistry>;
38
+ declare module '@deepseek-ai/cordis' {
39
+ interface Context {
40
+ 'po/workspace-registry': PoWorkspaceRegistry;
41
+ }
42
+ }
43
+ export declare function readPoWorkspaceRegistry(context: Context): PoWorkspaceRegistry | undefined;
44
+ //#endregion
45
+ //# sourceMappingURL=workspaceRegistry.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceRegistry.d.mts","names":["_$__serverScope0.PoServiceContract"],"sources":["../../../src/schemas/workspaceRegistry.ts"],"mappings":";;;qBAIa;;iBAGI;EACf;EACA;EACA;EACA;EACA;EACA,UAAU;;YAGA;EAAwB;;EAAiB;;EAAmB;;EAAmB;;YAE/E;EACN;EAAiB,WAAW;;EAC5B;;EACA;EAAqB,YAAY;;;iBAGtB;EACf,QAAQ,iBAAiB;EACzB,QAAQ,UAAU,sBAAsB,QAAQ;;qBAGrC,gCAA8BA,kBAAA;;YAM/B;IACR,yBAAyB;;;wBAIb,wBAAwB,SAAS,UAAU"}
@@ -0,0 +1,11 @@
1
+ import { defineServiceContract } from "./serverScope.mjs";
2
+ //#region src/schemas/workspaceRegistry.ts
3
+ const PO_WORKSPACE_REGISTRY_SERVICE = "po/workspace-registry";
4
+ const PO_WORKSPACE_REGISTRY_CONTRACT = defineServiceContract(PO_WORKSPACE_REGISTRY_SERVICE, { scope: "host" });
5
+ function readPoWorkspaceRegistry(context) {
6
+ return context.get(PO_WORKSPACE_REGISTRY_SERVICE);
7
+ }
8
+ //#endregion
9
+ export { PO_WORKSPACE_REGISTRY_CONTRACT, PO_WORKSPACE_REGISTRY_SERVICE, readPoWorkspaceRegistry };
10
+
11
+ //# sourceMappingURL=workspaceRegistry.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceRegistry.mjs","names":[],"sources":["../../../src/schemas/workspaceRegistry.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\n\nimport { defineServiceContract } from './serverScope';\n\nexport const PO_WORKSPACE_REGISTRY_SERVICE = 'po/workspace-registry';\n\n/** A host-local workspace identity. Metadata is free-form and validated by its consuming plugin. */\nexport interface PoWorkspaceInfo {\n id: string;\n root: string;\n name?: string;\n alias?: string;\n declaration?: string;\n metadata: Record<string, unknown>;\n}\n\nexport type PoWorkspaceSelector = { id: string } | { name: string } | { path: string } | { alias: string };\n\nexport type PoWorkspaceResolution =\n | { status: 'found'; workspace: PoWorkspaceInfo }\n | { status: 'missing' }\n | { status: 'ambiguous'; candidates: PoWorkspaceInfo[] };\n\n/** Read-only inventory of this host's admitted workspaces, never another workspace's Cordis services. */\nexport interface PoWorkspaceRegistry {\n list(): Promise<readonly PoWorkspaceInfo[]>;\n resolve(selector: PoWorkspaceSelector): Promise<PoWorkspaceResolution>;\n}\n\nexport const PO_WORKSPACE_REGISTRY_CONTRACT = defineServiceContract<PoWorkspaceRegistry>(\n PO_WORKSPACE_REGISTRY_SERVICE,\n { scope: 'host' },\n);\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/workspace-registry': PoWorkspaceRegistry;\n }\n}\n\nexport function readPoWorkspaceRegistry(context: Context): PoWorkspaceRegistry | undefined {\n return context.get(PO_WORKSPACE_REGISTRY_SERVICE) as PoWorkspaceRegistry | undefined;\n}\n"],"mappings":";;AAIA,MAAa,gCAAgC;AAyB7C,MAAa,iCAAiC,sBAC5C,+BACA,EAAE,OAAO,OAAO,CAClB;AAQA,SAAgB,wBAAwB,SAAmD;CACzF,OAAO,QAAQ,IAAI,6BAA6B;AAClD"}
@@ -0,0 +1,14 @@
1
+ const require_serverScope = require("./serverScope.cjs");
2
+ //#region src/schemas/workspaceSandboxes.ts
3
+ const PO_WORKSPACE_SANDBOXES_SERVICE = "po/workspace-sandboxes";
4
+ /** Global-scope contract: the server provides it, a root's global plugin registers into it. */
5
+ const PO_WORKSPACE_SANDBOXES_CONTRACT = require_serverScope.defineServiceContract(PO_WORKSPACE_SANDBOXES_SERVICE, { scope: "host" });
6
+ function readPoWorkspaceSandboxes(context) {
7
+ return context.get(PO_WORKSPACE_SANDBOXES_SERVICE);
8
+ }
9
+ //#endregion
10
+ exports.PO_WORKSPACE_SANDBOXES_CONTRACT = PO_WORKSPACE_SANDBOXES_CONTRACT;
11
+ exports.PO_WORKSPACE_SANDBOXES_SERVICE = PO_WORKSPACE_SANDBOXES_SERVICE;
12
+ exports.readPoWorkspaceSandboxes = readPoWorkspaceSandboxes;
13
+
14
+ //# sourceMappingURL=workspaceSandboxes.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceSandboxes.cjs","names":["defineServiceContract"],"sources":["../../../src/schemas/workspaceSandboxes.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\n\nimport { defineServiceContract } from './serverScope';\n\nexport const PO_WORKSPACE_SANDBOXES_SERVICE = 'po/workspace-sandboxes';\n\n/** Where the host reaches the Po server a sandbox runs for one workspace. Host-side only. */\nexport interface PoWorkspaceSandboxEndpoint {\n /** A loopback `http://127.0.0.1:<port>` origin; the protocol socket is `/api/ws` on it. */\n readonly origin: string;\n /** The token that server requires on every request but health. */\n readonly token: string;\n}\n\n/** Whether a provider can run sandboxes now; `reason` is a plain sentence, such as 'Docker is not running.'. */\nexport type PoWorkspaceSandboxAvailability =\n | { readonly available: true }\n | { readonly available: false; readonly reason: string };\n\n/** What a provider knows of one workspace's sandbox. The host adds linking, stopping and its own failures. */\nexport type PoWorkspaceSandboxStatus =\n | { readonly state: 'starting' | 'running' }\n | { readonly state: 'failed'; readonly reason: string };\n\n/** A way to run a workspace away from the host. A workspace record names one by `sandbox`. */\nexport interface PoWorkspaceSandboxProvider {\n readonly id: string;\n readonly label?: string;\n /**\n * The workspace's running sandbox server, once the provider's start pass has settled; undefined while none runs.\n * Read again before every dial: a restarted sandbox may listen on another port with another token.\n */\n readonly endpoint?: (workspaceId: string) => Promise<PoWorkspaceSandboxEndpoint | undefined>;\n /**\n * Starts the workspace's sandbox, after the host switched the workspace on and handed its saved sessions over.\n * Resolves once it runs; rejects when it cannot start.\n */\n readonly start?: (workspace: { readonly id: string; readonly root: string }) => Promise<void>;\n /** Stops the workspace's sandbox, for switching it off. Resolves at once when none runs. */\n readonly stop?: (workspaceId: string) => Promise<void>;\n /**\n * The real path of the Po home the workspace's sandbox runs with, on host disk, created when missing. A provider\n * that offers it, `start` and `stop` gets the workspace's sessions handed over when it is switched on or off.\n */\n readonly sessionHome?: (workspaceId: string) => Promise<string>;\n /** Whether sandboxes can run now; undefined while the provider still checks. */\n readonly availability?: () => PoWorkspaceSandboxAvailability | undefined;\n /** The workspace's sandbox as the provider sees it; undefined when none was started. */\n readonly status?: (workspaceId: string) => PoWorkspaceSandboxStatus | undefined;\n /** Calls `listener` after `availability` or any `status` changed. Returns the unsubscribe. */\n readonly onStatusChange?: (listener: () => void) => () => void;\n /**\n * Runs once when the person stops the server cleanly, before the global scope unloads. Never on a reload, an\n * idle restart (exit 75) or a crash, so the provider's sandboxes keep running for the next start to adopt.\n */\n readonly onCleanStop?: () => Promise<void>;\n}\n\n/**\n * The global registry of sandbox providers. The server binds it before the global scope is served, so a\n * root registers its provider while it loads; the server closes it once the global scope is up, and a\n * registration of a new id after that throws. A provider registered before close may register again when its\n * package reloads. A workspace whose `sandbox` names no registered provider stays unavailable.\n */\nexport interface PoWorkspaceSandboxes {\n /** Returns a function that removes the provider again. Throws when the id is taken or new after close. */\n register(provider: PoWorkspaceSandboxProvider): () => void;\n get(id: string): PoWorkspaceSandboxProvider | undefined;\n list(): readonly PoWorkspaceSandboxProvider[];\n /** Ends registration of new ids; `onReplaced` hears each provider a reloaded package registers again. */\n close(onReplaced?: (provider: PoWorkspaceSandboxProvider) => void): void;\n}\n\n/** Global-scope contract: the server provides it, a root's global plugin registers into it. */\nexport const PO_WORKSPACE_SANDBOXES_CONTRACT = defineServiceContract<PoWorkspaceSandboxes>(\n PO_WORKSPACE_SANDBOXES_SERVICE,\n {\n scope: 'host',\n },\n);\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/workspace-sandboxes': PoWorkspaceSandboxes;\n }\n}\n\nexport function readPoWorkspaceSandboxes(context: Context): PoWorkspaceSandboxes | undefined {\n return context.get(PO_WORKSPACE_SANDBOXES_SERVICE) as PoWorkspaceSandboxes | undefined;\n}\n"],"mappings":";;AAIA,MAAa,iCAAiC;;AAsE9C,MAAa,kCAAkCA,oBAAAA,sBAC7C,gCACA,EACE,OAAO,OACT,CACF;AAQA,SAAgB,yBAAyB,SAAoD;CAC3F,OAAO,QAAQ,IAAI,8BAA8B;AACnD"}
@@ -0,0 +1,85 @@
1
+ import { PoServiceContract } from "./serverScope.mjs";
2
+ import { Context } from "@deepseek-ai/cordis";
3
+ //#region src/schemas/workspaceSandboxes.d.ts
4
+ export declare const PO_WORKSPACE_SANDBOXES_SERVICE = "po/workspace-sandboxes";
5
+ /** Where the host reaches the Po server a sandbox runs for one workspace. Host-side only. */
6
+ export interface PoWorkspaceSandboxEndpoint {
7
+ /** A loopback `http://127.0.0.1:<port>` origin; the protocol socket is `/api/ws` on it. */
8
+ readonly origin: string;
9
+ /** The token that server requires on every request but health. */
10
+ readonly token: string;
11
+ }
12
+ /** Whether a provider can run sandboxes now; `reason` is a plain sentence, such as 'Docker is not running.'. */
13
+ export type PoWorkspaceSandboxAvailability = {
14
+ readonly available: true;
15
+ } | {
16
+ readonly available: false;
17
+ readonly reason: string;
18
+ };
19
+ /** What a provider knows of one workspace's sandbox. The host adds linking, stopping and its own failures. */
20
+ export type PoWorkspaceSandboxStatus = {
21
+ readonly state: 'starting' | 'running';
22
+ } | {
23
+ readonly state: 'failed';
24
+ readonly reason: string;
25
+ };
26
+ /** A way to run a workspace away from the host. A workspace record names one by `sandbox`. */
27
+ export interface PoWorkspaceSandboxProvider {
28
+ readonly id: string;
29
+ readonly label?: string;
30
+ /**
31
+ * The workspace's running sandbox server, once the provider's start pass has settled; undefined while none runs.
32
+ * Read again before every dial: a restarted sandbox may listen on another port with another token.
33
+ */
34
+ readonly endpoint?: (workspaceId: string) => Promise<PoWorkspaceSandboxEndpoint | undefined>;
35
+ /**
36
+ * Starts the workspace's sandbox, after the host switched the workspace on and handed its saved sessions over.
37
+ * Resolves once it runs; rejects when it cannot start.
38
+ */
39
+ readonly start?: (workspace: {
40
+ readonly id: string;
41
+ readonly root: string;
42
+ }) => Promise<void>;
43
+ /** Stops the workspace's sandbox, for switching it off. Resolves at once when none runs. */
44
+ readonly stop?: (workspaceId: string) => Promise<void>;
45
+ /**
46
+ * The real path of the Po home the workspace's sandbox runs with, on host disk, created when missing. A provider
47
+ * that offers it, `start` and `stop` gets the workspace's sessions handed over when it is switched on or off.
48
+ */
49
+ readonly sessionHome?: (workspaceId: string) => Promise<string>;
50
+ /** Whether sandboxes can run now; undefined while the provider still checks. */
51
+ readonly availability?: () => PoWorkspaceSandboxAvailability | undefined;
52
+ /** The workspace's sandbox as the provider sees it; undefined when none was started. */
53
+ readonly status?: (workspaceId: string) => PoWorkspaceSandboxStatus | undefined;
54
+ /** Calls `listener` after `availability` or any `status` changed. Returns the unsubscribe. */
55
+ readonly onStatusChange?: (listener: () => void) => () => void;
56
+ /**
57
+ * Runs once when the person stops the server cleanly, before the global scope unloads. Never on a reload, an
58
+ * idle restart (exit 75) or a crash, so the provider's sandboxes keep running for the next start to adopt.
59
+ */
60
+ readonly onCleanStop?: () => Promise<void>;
61
+ }
62
+ /**
63
+ * The global registry of sandbox providers. The server binds it before the global scope is served, so a
64
+ * root registers its provider while it loads; the server closes it once the global scope is up, and a
65
+ * registration of a new id after that throws. A provider registered before close may register again when its
66
+ * package reloads. A workspace whose `sandbox` names no registered provider stays unavailable.
67
+ */
68
+ export interface PoWorkspaceSandboxes {
69
+ /** Returns a function that removes the provider again. Throws when the id is taken or new after close. */
70
+ register(provider: PoWorkspaceSandboxProvider): () => void;
71
+ get(id: string): PoWorkspaceSandboxProvider | undefined;
72
+ list(): readonly PoWorkspaceSandboxProvider[];
73
+ /** Ends registration of new ids; `onReplaced` hears each provider a reloaded package registers again. */
74
+ close(onReplaced?: (provider: PoWorkspaceSandboxProvider) => void): void;
75
+ }
76
+ /** Global-scope contract: the server provides it, a root's global plugin registers into it. */
77
+ export declare const PO_WORKSPACE_SANDBOXES_CONTRACT: PoServiceContract<PoWorkspaceSandboxes>;
78
+ declare module '@deepseek-ai/cordis' {
79
+ interface Context {
80
+ 'po/workspace-sandboxes': PoWorkspaceSandboxes;
81
+ }
82
+ }
83
+ export declare function readPoWorkspaceSandboxes(context: Context): PoWorkspaceSandboxes | undefined;
84
+ //#endregion
85
+ //# sourceMappingURL=workspaceSandboxes.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceSandboxes.d.mts","names":["_$__serverScope0.PoServiceContract"],"sources":["../../../src/schemas/workspaceSandboxes.ts"],"mappings":";;;qBAIa;;iBAGI;;WAEN;;WAEA;;;YAIC;WACG;;WACA;WAA2B;;;YAG9B;WACG;;WACA;WAA0B;;;iBAGxB;WACN;WACA;;;;;WAKA,YAAY,wBAAwB,QAAQ;;;;;WAK5C,SAAS;aAAsB;aAAqB;QAAmB;;WAEvE,QAAQ,wBAAwB;;;;;WAKhC,eAAe,wBAAwB;;WAEvC,qBAAqB;;WAErB,UAAU,wBAAwB;;WAElC,kBAAkB;;;;;WAKlB,oBAAoB;;;;;;;;iBASd;;EAEf,SAAS,UAAU;EACnB,IAAI,aAAa;EACjB,iBAAiB;;EAEjB,MAAM,cAAc,UAAU;;;qBAInB,iCAA+BA,kBAAA;;YAQhC;IACR,0BAA0B;;;wBAId,yBAAyB,SAAS,UAAU"}
@@ -0,0 +1,12 @@
1
+ import { defineServiceContract } from "./serverScope.mjs";
2
+ //#region src/schemas/workspaceSandboxes.ts
3
+ const PO_WORKSPACE_SANDBOXES_SERVICE = "po/workspace-sandboxes";
4
+ /** Global-scope contract: the server provides it, a root's global plugin registers into it. */
5
+ const PO_WORKSPACE_SANDBOXES_CONTRACT = defineServiceContract(PO_WORKSPACE_SANDBOXES_SERVICE, { scope: "host" });
6
+ function readPoWorkspaceSandboxes(context) {
7
+ return context.get(PO_WORKSPACE_SANDBOXES_SERVICE);
8
+ }
9
+ //#endregion
10
+ export { PO_WORKSPACE_SANDBOXES_CONTRACT, PO_WORKSPACE_SANDBOXES_SERVICE, readPoWorkspaceSandboxes };
11
+
12
+ //# sourceMappingURL=workspaceSandboxes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceSandboxes.mjs","names":[],"sources":["../../../src/schemas/workspaceSandboxes.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\n\nimport { defineServiceContract } from './serverScope';\n\nexport const PO_WORKSPACE_SANDBOXES_SERVICE = 'po/workspace-sandboxes';\n\n/** Where the host reaches the Po server a sandbox runs for one workspace. Host-side only. */\nexport interface PoWorkspaceSandboxEndpoint {\n /** A loopback `http://127.0.0.1:<port>` origin; the protocol socket is `/api/ws` on it. */\n readonly origin: string;\n /** The token that server requires on every request but health. */\n readonly token: string;\n}\n\n/** Whether a provider can run sandboxes now; `reason` is a plain sentence, such as 'Docker is not running.'. */\nexport type PoWorkspaceSandboxAvailability =\n | { readonly available: true }\n | { readonly available: false; readonly reason: string };\n\n/** What a provider knows of one workspace's sandbox. The host adds linking, stopping and its own failures. */\nexport type PoWorkspaceSandboxStatus =\n | { readonly state: 'starting' | 'running' }\n | { readonly state: 'failed'; readonly reason: string };\n\n/** A way to run a workspace away from the host. A workspace record names one by `sandbox`. */\nexport interface PoWorkspaceSandboxProvider {\n readonly id: string;\n readonly label?: string;\n /**\n * The workspace's running sandbox server, once the provider's start pass has settled; undefined while none runs.\n * Read again before every dial: a restarted sandbox may listen on another port with another token.\n */\n readonly endpoint?: (workspaceId: string) => Promise<PoWorkspaceSandboxEndpoint | undefined>;\n /**\n * Starts the workspace's sandbox, after the host switched the workspace on and handed its saved sessions over.\n * Resolves once it runs; rejects when it cannot start.\n */\n readonly start?: (workspace: { readonly id: string; readonly root: string }) => Promise<void>;\n /** Stops the workspace's sandbox, for switching it off. Resolves at once when none runs. */\n readonly stop?: (workspaceId: string) => Promise<void>;\n /**\n * The real path of the Po home the workspace's sandbox runs with, on host disk, created when missing. A provider\n * that offers it, `start` and `stop` gets the workspace's sessions handed over when it is switched on or off.\n */\n readonly sessionHome?: (workspaceId: string) => Promise<string>;\n /** Whether sandboxes can run now; undefined while the provider still checks. */\n readonly availability?: () => PoWorkspaceSandboxAvailability | undefined;\n /** The workspace's sandbox as the provider sees it; undefined when none was started. */\n readonly status?: (workspaceId: string) => PoWorkspaceSandboxStatus | undefined;\n /** Calls `listener` after `availability` or any `status` changed. Returns the unsubscribe. */\n readonly onStatusChange?: (listener: () => void) => () => void;\n /**\n * Runs once when the person stops the server cleanly, before the global scope unloads. Never on a reload, an\n * idle restart (exit 75) or a crash, so the provider's sandboxes keep running for the next start to adopt.\n */\n readonly onCleanStop?: () => Promise<void>;\n}\n\n/**\n * The global registry of sandbox providers. The server binds it before the global scope is served, so a\n * root registers its provider while it loads; the server closes it once the global scope is up, and a\n * registration of a new id after that throws. A provider registered before close may register again when its\n * package reloads. A workspace whose `sandbox` names no registered provider stays unavailable.\n */\nexport interface PoWorkspaceSandboxes {\n /** Returns a function that removes the provider again. Throws when the id is taken or new after close. */\n register(provider: PoWorkspaceSandboxProvider): () => void;\n get(id: string): PoWorkspaceSandboxProvider | undefined;\n list(): readonly PoWorkspaceSandboxProvider[];\n /** Ends registration of new ids; `onReplaced` hears each provider a reloaded package registers again. */\n close(onReplaced?: (provider: PoWorkspaceSandboxProvider) => void): void;\n}\n\n/** Global-scope contract: the server provides it, a root's global plugin registers into it. */\nexport const PO_WORKSPACE_SANDBOXES_CONTRACT = defineServiceContract<PoWorkspaceSandboxes>(\n PO_WORKSPACE_SANDBOXES_SERVICE,\n {\n scope: 'host',\n },\n);\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/workspace-sandboxes': PoWorkspaceSandboxes;\n }\n}\n\nexport function readPoWorkspaceSandboxes(context: Context): PoWorkspaceSandboxes | undefined {\n return context.get(PO_WORKSPACE_SANDBOXES_SERVICE) as PoWorkspaceSandboxes | undefined;\n}\n"],"mappings":";;AAIA,MAAa,iCAAiC;;AAsE9C,MAAa,kCAAkC,sBAC7C,gCACA,EACE,OAAO,OACT,CACF;AAQA,SAAgB,yBAAyB,SAAoD;CAC3F,OAAO,QAAQ,IAAI,8BAA8B;AACnD"}