@treeseed/sdk 0.13.0-rc.12 → 0.13.0-rc.120

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 (510) hide show
  1. package/README.md +23 -9
  2. package/dist/.treeseed-build-complete.json +1 -0
  3. package/dist/accounts/account-contracts.d.ts +6 -0
  4. package/dist/agent-capacity/allocation.d.ts +0 -3
  5. package/dist/agent-capacity/allocation.js +0 -221
  6. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +1 -1
  7. package/dist/agent-capacity/artifacts.d.ts +17 -1
  8. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +4395 -0
  9. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +176 -0
  10. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +304 -0
  11. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.js +44 -0
  12. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +22 -2
  13. package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.d.ts +25 -0
  14. package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.js +67 -0
  15. package/dist/agent-capacity/contracts/capacity/communication/communication-records.d.ts +1 -1
  16. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +0 -2
  17. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +82 -0
  18. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +115 -0
  19. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +142 -0
  20. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +51 -0
  21. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +331 -0
  22. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +135 -0
  23. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +3 -22
  24. package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
  25. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +218 -0
  26. package/dist/agent-capacity/contracts/operations/agent-team-clone.js +57 -0
  27. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -1
  28. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +3 -3
  29. package/dist/agent-capacity/contracts/support/decision-work.d.ts +3 -27
  30. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +1087 -0
  31. package/dist/agent-capacity/contracts/support/execution-graph.js +120 -0
  32. package/dist/agent-capacity/contracts/support/time-capacity.d.ts +0 -14
  33. package/dist/agent-capacity/contracts/support/time-capacity.js +1 -8
  34. package/dist/agent-capacity/validation/activity-profile.d.ts +1 -1
  35. package/dist/agent-capacity/validation/activity-profile.js +3 -259
  36. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +2687 -8933
  37. package/dist/agent-capacity/validation/agent-definition-schema.js +64 -174
  38. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +23 -23
  39. package/dist/agent-capacity/validation/assignment-records.js +1 -1
  40. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  41. package/dist/agent-capacity/validation/configuration.js +1 -2
  42. package/dist/agent-capacity/validation/execution/execution-graph.d.ts +1 -0
  43. package/dist/agent-capacity/validation/execution/execution-graph.js +16 -0
  44. package/dist/agent-capacity/validation/index.d.ts +2 -1
  45. package/dist/agent-capacity/validation/index.js +2 -1
  46. package/dist/capacity/agents/agent-capacity.d.ts +9 -1
  47. package/dist/capacity/agents/agent-capacity.js +8 -1
  48. package/dist/capacity-provider/capability-ontology.d.ts +1495 -0
  49. package/dist/capacity-provider/capability-ontology.js +221 -0
  50. package/dist/capacity-provider/client.d.ts +69 -0
  51. package/dist/capacity-provider/client.js +22 -1
  52. package/dist/capacity-provider/contracts/capacity-facts.d.ts +14 -0
  53. package/dist/capacity-provider/contracts/environment-profiles.d.ts +255 -0
  54. package/dist/capacity-provider/contracts/environment-profiles.js +71 -0
  55. package/dist/capacity-provider/contracts/governance.d.ts +109 -35
  56. package/dist/capacity-provider/contracts/index.d.ts +1 -0
  57. package/dist/capacity-provider/contracts/index.js +1 -0
  58. package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
  59. package/dist/capacity-provider/core-capability-catalog.js +49 -0
  60. package/dist/capacity-provider/environment-catalog.d.ts +877 -0
  61. package/dist/capacity-provider/environment-catalog.js +116 -0
  62. package/dist/capacity-provider/index.d.ts +5 -0
  63. package/dist/capacity-provider/index.js +5 -0
  64. package/dist/capacity-provider/install-configuration.d.ts +39 -0
  65. package/dist/capacity-provider/install-configuration.js +18 -0
  66. package/dist/capacity-provider/sandbox-contracts.d.ts +602 -0
  67. package/dist/capacity-provider/sandbox-contracts.js +90 -0
  68. package/dist/capacity-provider/sandbox.d.ts +2 -0
  69. package/dist/capacity-provider/sandbox.js +2 -0
  70. package/dist/capacity-provider/source-workspace.d.ts +642 -0
  71. package/dist/capacity-provider/source-workspace.js +126 -0
  72. package/dist/capacity-provider/validation.d.ts +2 -2
  73. package/dist/capacity-provider/validation.js +91 -55
  74. package/dist/configuration/secrets-capability.d.ts +5 -1
  75. package/dist/configuration/secrets-capability.js +5 -1
  76. package/dist/content/contracts.d.ts +1 -1
  77. package/dist/content/validation/agent-operational-content-schemas.d.ts +431 -780
  78. package/dist/content/validation/agent-operational-content-schemas.js +29 -57
  79. package/dist/content/validation/auxiliary-content-schemas.d.ts +208 -208
  80. package/dist/content/validation/content-model-schemas.d.ts +9362 -19159
  81. package/dist/content/validation/content-model-schemas.js +172 -43
  82. package/dist/content/validation/portable-content-data.d.ts +453 -1761
  83. package/dist/content/validation/portable-content-data.js +5 -4
  84. package/dist/deployment/ai/storage.d.ts +158 -0
  85. package/dist/deployment/ai/storage.js +32 -0
  86. package/dist/deployment/ai-hosting.d.ts +297 -0
  87. package/dist/deployment/ai-hosting.js +63 -0
  88. package/dist/deployment/ai-instance.d.ts +65 -0
  89. package/dist/deployment/ai-instance.js +30 -0
  90. package/dist/deployment/ai-mode.d.ts +454 -0
  91. package/dist/deployment/ai-mode.js +67 -0
  92. package/dist/deployment/canonical.d.ts +2 -0
  93. package/dist/deployment/canonical.js +17 -0
  94. package/dist/deployment/catalog.d.ts +16 -0
  95. package/dist/deployment/catalog.js +48 -0
  96. package/dist/deployment/hosted-topology-template.d.ts +449 -0
  97. package/dist/deployment/hosted-topology-template.js +56 -0
  98. package/dist/deployment/hosted-topology.d.ts +2698 -0
  99. package/dist/deployment/hosted-topology.js +468 -0
  100. package/dist/deployment/index.d.ts +13 -0
  101. package/dist/deployment/index.js +13 -0
  102. package/dist/deployment/postgres/contracts.d.ts +418 -0
  103. package/dist/deployment/postgres/contracts.js +83 -0
  104. package/dist/deployment/postgres/requirements.d.ts +15 -0
  105. package/dist/deployment/postgres/requirements.js +32 -0
  106. package/dist/deployment/postgres/transfer.d.ts +97 -0
  107. package/dist/deployment/postgres/transfer.js +29 -0
  108. package/dist/deployment/schemas.d.ts +8625 -0
  109. package/dist/deployment/schemas.js +455 -0
  110. package/dist/deployment/topology.d.ts +9 -0
  111. package/dist/deployment/topology.js +35 -0
  112. package/dist/development/index.d.ts +1 -0
  113. package/dist/development/index.js +1 -0
  114. package/dist/development/schemas.d.ts +3594 -0
  115. package/dist/development/schemas.js +204 -0
  116. package/dist/development/session-migration.d.ts +3 -0
  117. package/dist/development/session-migration.js +25 -0
  118. package/dist/entrypoints/clients/control-plane-client.d.ts +9 -1
  119. package/dist/entrypoints/clients/control-plane-client.js +17 -5
  120. package/dist/graph/context-query-contracts.d.ts +16 -1
  121. package/dist/graph/context-query-contracts.js +5 -0
  122. package/dist/guarantees/evidence-trust.d.ts +32 -0
  123. package/dist/guarantees/evidence-trust.js +47 -0
  124. package/dist/guarantees/index.d.ts +130 -0
  125. package/dist/guarantees/index.js +44 -0
  126. package/dist/identity/browser-session.d.ts +233 -0
  127. package/dist/identity/browser-session.js +51 -0
  128. package/dist/identity/contracts.d.ts +191 -0
  129. package/dist/identity/contracts.js +72 -0
  130. package/dist/identity/index.d.ts +3 -0
  131. package/dist/identity/index.js +3 -0
  132. package/dist/identity/runtime.d.ts +186 -0
  133. package/dist/identity/runtime.js +49 -0
  134. package/dist/model-registry/agent-operational-models.d.ts +1 -1
  135. package/dist/model-registry/agent-operational-models.js +1 -4
  136. package/dist/model-registry/build-builtin-model-registry.js +44 -72
  137. package/dist/operator-contracts/canonical-command-tree.js +392 -43
  138. package/dist/operator-contracts/catalog/admin-account-team-operations.d.ts +36 -0
  139. package/dist/operator-contracts/catalog/admin-account-team-operations.js +52 -0
  140. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +75 -0
  141. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.js +42 -0
  142. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +163 -0
  143. package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
  144. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +60 -0
  145. package/dist/operator-contracts/catalog/commands/command-tree-builders.js +191 -0
  146. package/dist/operator-contracts/catalog/communication-operations.d.ts +439 -0
  147. package/dist/operator-contracts/catalog/communication-operations.js +92 -0
  148. package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
  149. package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
  150. package/dist/operator-contracts/catalog/execution/execution-operations.d.ts +36 -0
  151. package/dist/operator-contracts/catalog/execution/execution-operations.js +39 -0
  152. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +399 -0
  153. package/dist/operator-contracts/catalog/hosted-topology-operations.js +79 -0
  154. package/dist/operator-contracts/catalog/inbox-operations.d.ts +265 -0
  155. package/dist/operator-contracts/catalog/inbox-operations.js +36 -0
  156. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +53 -0
  157. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +23 -0
  158. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.d.ts +3 -0
  159. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.js +15 -0
  160. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +127 -0
  161. package/dist/operator-contracts/catalog/knowledge-share-operations.js +25 -0
  162. package/dist/operator-contracts/catalog/provider-environment-commands.d.ts +4 -0
  163. package/dist/operator-contracts/catalog/provider-environment-commands.js +69 -0
  164. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +41 -0
  165. package/dist/operator-contracts/catalog/provider-environment-operations.js +61 -0
  166. package/dist/operator-contracts/catalog/services/identity-commands.d.ts +2 -0
  167. package/dist/operator-contracts/catalog/services/identity-commands.js +13 -0
  168. package/dist/operator-contracts/catalog/services/secret-commands.d.ts +2 -0
  169. package/dist/operator-contracts/catalog/services/secret-commands.js +31 -0
  170. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +62 -0
  171. package/dist/operator-contracts/catalog/services/secret-operations.js +51 -0
  172. package/dist/operator-contracts/catalog/treeai-operations.d.ts +13 -0
  173. package/dist/operator-contracts/catalog/treeai-operations.js +61 -0
  174. package/dist/operator-contracts/catalog/workdays/profile-commands.d.ts +4 -0
  175. package/dist/operator-contracts/catalog/workdays/profile-commands.js +20 -0
  176. package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +41 -0
  177. package/dist/operator-contracts/catalog/workdays/profile-operations.js +50 -0
  178. package/dist/operator-contracts/catalog/workdays/selection-commands.d.ts +3 -0
  179. package/dist/operator-contracts/catalog/workdays/selection-commands.js +29 -0
  180. package/dist/operator-contracts/command-tree.d.ts +29 -0
  181. package/dist/operator-contracts/command-tree.js +50 -0
  182. package/dist/operator-contracts/communication/addressing.d.ts +8 -0
  183. package/dist/operator-contracts/communication/addressing.js +57 -0
  184. package/dist/operator-contracts/communication/contracts.d.ts +1824 -0
  185. package/dist/operator-contracts/communication/contracts.js +190 -0
  186. package/dist/operator-contracts/control-plane-operation.d.ts +9 -0
  187. package/dist/operator-contracts/control-plane-operation.js +12 -2
  188. package/dist/operator-contracts/control-plane-operations.d.ts +2356 -209
  189. package/dist/operator-contracts/control-plane-operations.js +239 -102
  190. package/dist/operator-contracts/inbox/contracts.d.ts +1111 -0
  191. package/dist/operator-contracts/inbox/contracts.js +138 -0
  192. package/dist/operator-contracts/index.d.ts +6 -1
  193. package/dist/operator-contracts/index.js +6 -1
  194. package/dist/operator-contracts/knowledge/contracts.d.ts +130 -0
  195. package/dist/operator-contracts/knowledge/contracts.js +39 -0
  196. package/dist/operator-contracts/mcp.d.ts +5 -0
  197. package/dist/operator-contracts/mcp.js +61 -0
  198. package/dist/operator-contracts/oauth.d.ts +45 -0
  199. package/dist/operator-contracts/oauth.js +7 -0
  200. package/dist/operator-contracts/operation-builder.d.ts +18 -0
  201. package/dist/operator-contracts/operation-builder.js +78 -0
  202. package/dist/operator-contracts/seed/seed-bundle.d.ts +138 -0
  203. package/dist/operator-contracts/seed/seed-bundle.js +68 -0
  204. package/dist/operator-contracts/workday-lifecycle.d.ts +21 -28
  205. package/dist/operator-contracts/workday-lifecycle.js +46 -8
  206. package/dist/platform/contracts.d.ts +429 -0
  207. package/dist/platform/contracts.js +93 -0
  208. package/dist/platform/index.d.ts +6 -0
  209. package/dist/platform/index.js +6 -0
  210. package/dist/platform/inventory.d.ts +11 -0
  211. package/dist/platform/inventory.js +53 -0
  212. package/dist/platform/project-create.d.ts +49 -0
  213. package/dist/platform/project-create.js +75 -0
  214. package/dist/platform/schemas.d.ts +986 -0
  215. package/dist/platform/schemas.js +73 -0
  216. package/dist/platform/verification.d.ts +9 -0
  217. package/dist/platform/verification.js +104 -0
  218. package/dist/platform/workset.d.ts +21 -0
  219. package/dist/platform/workset.js +106 -0
  220. package/dist/sdk-types/support/sdk-model-names.d.ts +1 -1
  221. package/dist/sdk-types/support/sdk-model-names.js +0 -3
  222. package/dist/secrets-capability/github-actions-encryption.d.ts +2 -0
  223. package/dist/secrets-capability/github-actions-encryption.js +11 -0
  224. package/dist/secrets-capability/provider-operation-contracts.d.ts +15 -1
  225. package/dist/secrets-capability/secret-contracts.d.ts +33 -0
  226. package/dist/secrets-capability/secret-contracts.js +49 -0
  227. package/dist/secrets-capability/service-provider-contracts.d.ts +5 -3
  228. package/dist/secrets-capability/service-provider-contracts.js +66 -50
  229. package/dist/secrets-capability/shared-access.d.ts +51 -0
  230. package/dist/secrets-capability/shared-access.js +36 -0
  231. package/dist/secrets-capability/shared-resources.d.ts +376 -0
  232. package/dist/secrets-capability/shared-resources.js +91 -0
  233. package/dist/secrets-capability/vault-contracts.d.ts +132 -0
  234. package/dist/secrets-capability/vault-contracts.js +56 -0
  235. package/dist/security/encrypted-envelope.d.ts +177 -0
  236. package/dist/security/encrypted-envelope.js +34 -0
  237. package/dist/security/envelope-codec.d.ts +38 -0
  238. package/dist/security/envelope-codec.js +96 -0
  239. package/dist/security/index.d.ts +2 -0
  240. package/dist/security/index.js +2 -0
  241. package/dist/site-contracts/catalog.d.ts +16 -0
  242. package/dist/site-contracts/catalog.js +19 -0
  243. package/dist/site-contracts/cloudflare.d.ts +48 -0
  244. package/dist/site-contracts/platform.d.ts +94 -0
  245. package/dist/site-contracts/plugin.d.ts +63 -0
  246. package/dist/site-contracts/plugin.js +26 -0
  247. package/dist/treeai/catalog.d.ts +1 -0
  248. package/dist/treeai/catalog.js +1 -0
  249. package/dist/treeai/client.d.ts +793 -0
  250. package/dist/treeai/client.js +44 -0
  251. package/dist/treeai/contract.d.ts +41 -0
  252. package/dist/treeai/contract.js +51 -0
  253. package/dist/treeai/generated/upstream.d.ts +770 -0
  254. package/dist/treeai/generated/upstream.js +4 -0
  255. package/dist/treeai/index.d.ts +4 -0
  256. package/dist/treeai/index.js +4 -0
  257. package/dist/treedx/client.d.ts +605 -0
  258. package/dist/treedx/client.js +39 -0
  259. package/dist/treedx/contract.d.ts +32 -0
  260. package/dist/treedx/contract.js +63 -0
  261. package/dist/treedx/index.d.ts +3 -0
  262. package/dist/treedx/index.js +2 -0
  263. package/dist/treedx/types.d.ts +8 -7
  264. package/dist/treedx/types.js +0 -7
  265. package/dist/types/agents/agent-activity-profile.d.ts +42 -98
  266. package/dist/types/agents/agent-activity-profile.js +23 -0
  267. package/dist/types/agents/agent-trigger-kinds.d.ts +3 -5
  268. package/dist/types/agents/agent-trigger-kinds.js +1 -13
  269. package/dist/types/agents/execution-run-ref.d.ts +1 -8
  270. package/package.json +64 -11
  271. package/dist/agent-capacity/authority/agent-authority-presets.d.ts +0 -13
  272. package/dist/agent-capacity/authority/agent-authority-presets.js +0 -106
  273. package/dist/agent-capacity/contracts/operations/workflow-promotion.d.ts +0 -24
  274. package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.d.ts +0 -29
  275. package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.js +0 -110
  276. package/dist/agent-capacity/validation/workflow-promotion.d.ts +0 -2
  277. package/dist/agent-capacity/validation/workflow-promotion.js +0 -34
  278. package/dist/operator-contracts/workday-profile.d.ts +0 -72
  279. package/dist/operator-contracts/workday-profile.js +0 -106
  280. package/dist/secrets-capability/service-vault-contracts.d.ts +0 -61
  281. package/dist/secrets-capability/service-vault-contracts.js +0 -39
  282. package/dist/treedx/accounts/auth.d.ts +0 -17
  283. package/dist/treedx/accounts/auth.js +0 -48
  284. package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +0 -3
  285. package/dist/treedx/client/accounts/contracts/auth-mode.js +0 -6
  286. package/dist/treedx/client/build/creation/build-context.d.ts +0 -3
  287. package/dist/treedx/client/build/creation/build-context.js +0 -7
  288. package/dist/treedx/client/build/creation/build-snapshot.d.ts +0 -3
  289. package/dist/treedx/client/build/creation/build-snapshot.js +0 -8
  290. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +0 -3
  291. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +0 -7
  292. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +0 -6
  293. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +0 -10
  294. package/dist/treedx/client/methods.d.ts +0 -102
  295. package/dist/treedx/client/methods.js +0 -209
  296. package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +0 -3
  297. package/dist/treedx/client/persistence/contracts/restore-storage.js +0 -6
  298. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +0 -3
  299. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +0 -6
  300. package/dist/treedx/client/repositories/creation/register-repository.d.ts +0 -3
  301. package/dist/treedx/client/repositories/creation/register-repository.js +0 -7
  302. package/dist/treedx/client/repositories/queries/get-repository.d.ts +0 -3
  303. package/dist/treedx/client/repositories/queries/get-repository.js +0 -7
  304. package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +0 -3
  305. package/dist/treedx/client/repositories/queries/list-repository-paths.js +0 -7
  306. package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +0 -3
  307. package/dist/treedx/client/repositories/queries/list-repository-refs.js +0 -12
  308. package/dist/treedx/client/repositories/queries/query-repository.d.ts +0 -3
  309. package/dist/treedx/client/repositories/queries/query-repository.js +0 -7
  310. package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +0 -3
  311. package/dist/treedx/client/repositories/queries/read-repository-file.js +0 -6
  312. package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +0 -3
  313. package/dist/treedx/client/repositories/queries/read-repository-files.js +0 -7
  314. package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +0 -3
  315. package/dist/treedx/client/repositories/queries/search-repository-files.js +0 -7
  316. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +0 -3
  317. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +0 -9
  318. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +0 -3
  319. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +0 -6
  320. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +0 -3
  321. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +0 -7
  322. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +0 -5
  323. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +0 -7
  324. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +0 -3
  325. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +0 -6
  326. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +0 -3
  327. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +0 -7
  328. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +0 -2
  329. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +0 -19
  330. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +0 -3
  331. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +0 -7
  332. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +0 -3
  333. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +0 -6
  334. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +0 -3
  335. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +0 -7
  336. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +0 -3
  337. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +0 -6
  338. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +0 -3
  339. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +0 -7
  340. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +0 -6
  341. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +0 -23
  342. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +0 -3
  343. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +0 -8
  344. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +0 -3
  345. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +0 -7
  346. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +0 -3
  347. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +0 -8
  348. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +0 -3
  349. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +0 -8
  350. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +0 -2
  351. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +0 -15
  352. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +0 -2
  353. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +0 -38
  354. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +0 -2
  355. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +0 -15
  356. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +0 -2
  357. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +0 -15
  358. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +0 -2
  359. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +0 -14
  360. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +0 -2
  361. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +0 -14
  362. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +0 -6
  363. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +0 -41
  364. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +0 -2
  365. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +0 -14
  366. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +0 -3
  367. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +0 -7
  368. package/dist/treedx/client/support/creation/apply-changeset.d.ts +0 -3
  369. package/dist/treedx/client/support/creation/apply-changeset.js +0 -10
  370. package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +0 -3
  371. package/dist/treedx/client/support/creation/apply-storage-migration.js +0 -7
  372. package/dist/treedx/client/support/creation/create-migration.d.ts +0 -6
  373. package/dist/treedx/client/support/creation/create-migration.js +0 -7
  374. package/dist/treedx/client/support/creation/export-artifact.d.ts +0 -3
  375. package/dist/treedx/client/support/creation/export-artifact.js +0 -8
  376. package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +0 -3
  377. package/dist/treedx/client/support/creation/plan-storage-migration.js +0 -7
  378. package/dist/treedx/client/support/creation/request-binary.d.ts +0 -6
  379. package/dist/treedx/client/support/creation/request-binary.js +0 -42
  380. package/dist/treedx/client/support/creation/write-file.d.ts +0 -3
  381. package/dist/treedx/client/support/creation/write-file.js +0 -10
  382. package/dist/treedx/client/support/creation/write-files.d.ts +0 -3
  383. package/dist/treedx/client/support/creation/write-files.js +0 -12
  384. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +0 -3
  385. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +0 -7
  386. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +0 -3
  387. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +0 -7
  388. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +0 -3
  389. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +0 -9
  390. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +0 -4
  391. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +0 -6
  392. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +0 -3
  393. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +0 -7
  394. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +0 -3
  395. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +0 -7
  396. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +0 -3
  397. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +0 -7
  398. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +0 -3
  399. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +0 -7
  400. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +0 -3
  401. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +0 -10
  402. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +0 -3
  403. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +0 -9
  404. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +0 -3
  405. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +0 -7
  406. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +0 -6
  407. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +0 -7
  408. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +0 -6
  409. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +0 -7
  410. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +0 -6
  411. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +0 -6
  412. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +0 -15
  413. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +0 -6
  414. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +0 -3
  415. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +0 -7
  416. package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +0 -3
  417. package/dist/treedx/client/support/retirement/cleanup-artifacts.js +0 -7
  418. package/dist/treedx/client/support/retirement/delete-artifact.d.ts +0 -3
  419. package/dist/treedx/client/support/retirement/delete-artifact.js +0 -7
  420. package/dist/treedx/client/support/retirement/delete-file.d.ts +0 -3
  421. package/dist/treedx/client/support/retirement/delete-file.js +0 -10
  422. package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +0 -3
  423. package/dist/treedx/client/support/retirement/rollback-storage-migration.js +0 -7
  424. package/dist/treedx/client/support/updates/patch-file.d.ts +0 -3
  425. package/dist/treedx/client/support/updates/patch-file.js +0 -10
  426. package/dist/treedx/client/support/updates/refresh-search-index.d.ts +0 -3
  427. package/dist/treedx/client/support/updates/refresh-search-index.js +0 -8
  428. package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +0 -3
  429. package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +0 -6
  430. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +0 -3
  431. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +0 -8
  432. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +0 -3
  433. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +0 -27
  434. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +0 -3
  435. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +0 -41
  436. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +0 -3
  437. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +0 -27
  438. package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +0 -3
  439. package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +0 -6
  440. package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +0 -3
  441. package/dist/treedx/client/treedx/blobs/creation/write-blob.js +0 -8
  442. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +0 -3
  443. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +0 -8
  444. package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +0 -3
  445. package/dist/treedx/client/treedx/blobs/queries/read-blob.js +0 -10
  446. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +0 -3
  447. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +0 -7
  448. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +0 -3
  449. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +0 -8
  450. package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +0 -3
  451. package/dist/treedx/client/treedx/federation/contracts/federated-query.js +0 -7
  452. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +0 -3
  453. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +0 -6
  454. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +0 -3
  455. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +0 -7
  456. package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +0 -3
  457. package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +0 -7
  458. package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +0 -3
  459. package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +0 -7
  460. package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +0 -3
  461. package/dist/treedx/client/treedx/graph/contracts/federated-context.js +0 -7
  462. package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +0 -3
  463. package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +0 -7
  464. package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +0 -3
  465. package/dist/treedx/client/treedx/graph/contracts/graph-search.js +0 -8
  466. package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +0 -3
  467. package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +0 -10
  468. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +0 -3
  469. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +0 -7
  470. package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +0 -3
  471. package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +0 -7
  472. package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +0 -3
  473. package/dist/treedx/client/treedx/graph/queries/query-graph.js +0 -7
  474. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +0 -3
  475. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +0 -6
  476. package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +0 -3
  477. package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +0 -6
  478. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +0 -3
  479. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +0 -6
  480. package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +0 -3
  481. package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +0 -7
  482. package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +0 -3
  483. package/dist/treedx/client/treedx/search/contracts/federated-search.js +0 -7
  484. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +0 -3
  485. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +0 -7
  486. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +0 -3
  487. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +0 -12
  488. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +0 -2
  489. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +0 -6
  490. package/dist/treedx/generated/openapi-types.d.ts +0 -3662
  491. package/dist/treedx/support/client.d.ts +0 -251
  492. package/dist/treedx/support/client.js +0 -252
  493. package/dist/treedx/support/errors.d.ts +0 -13
  494. package/dist/treedx/support/errors.js +0 -17
  495. package/dist/treedx/types/tree-dx-actor.d.ts +0 -209
  496. package/dist/treedx/types/tree-dx-actor.js +0 -8
  497. package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +0 -13
  498. package/dist/treedx/types/tree-dx-artifact-list-response.js +0 -0
  499. package/dist/treedx/types/tree-dx-changeset.d.ts +0 -51
  500. package/dist/treedx/types/tree-dx-changeset.js +0 -6
  501. package/dist/treedx/types/tree-dx-context-request.d.ts +0 -245
  502. package/dist/treedx/types/tree-dx-context-request.js +0 -0
  503. package/dist/treedx/types/tree-dx-exec-result.d.ts +0 -249
  504. package/dist/treedx/types/tree-dx-exec-result.js +0 -0
  505. package/dist/treedx/types/tree-dx-list-tree-request.d.ts +0 -222
  506. package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
  507. package/dist/treedx/types/tree-dx-push-request.d.ts +0 -229
  508. package/dist/treedx/types/tree-dx-push-request.js +0 -0
  509. /package/dist/{agent-capacity/contracts/operations/workflow-promotion.js → site-contracts/cloudflare.js} +0 -0
  510. /package/dist/{treedx/generated/openapi-types.js → site-contracts/platform.js} +0 -0
@@ -0,0 +1,3594 @@
1
+ import { z } from 'zod';
2
+ export declare const developmentModeSchema: z.ZodEnum<["released", "candidate", "live"]>;
3
+ export declare const developmentTargetKindSchema: z.ZodEnum<["source-check", "package-watch", "live-web", "live-api", "rebuild-restart", "local-companion"]>;
4
+ export declare const developmentExecutionCustodySchema: z.ZodEnum<["caller", "manager"]>;
5
+ export declare const developmentReactionSchema: z.ZodEnum<["reload", "restart", "rebuild", "stale", "manual", "none"]>;
6
+ export declare const developmentStatePolicySchema: z.ZodEnum<["stateless", "ephemeral", "clone", "shared-compatible"]>;
7
+ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
8
+ id: z.ZodString;
9
+ kind: z.ZodEnum<["source-check", "package-watch", "live-web", "live-api", "rebuild-restart", "local-companion"]>;
10
+ executionCustody: z.ZodDefault<z.ZodEnum<["caller", "manager"]>>;
11
+ platforms: z.ZodArray<z.ZodEnum<["linux-amd64", "linux-arm64", "darwin-arm64", "darwin-amd64"]>, "many">;
12
+ runtimeRequirements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
+ sourceRoots: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
14
+ ignoredPaths: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
15
+ operations: z.ZodObject<{
16
+ setup: z.ZodOptional<z.ZodObject<{
17
+ command: z.ZodString;
18
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
19
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
20
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
21
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
22
+ }, "strict", z.ZodTypeAny, {
23
+ command: string;
24
+ args: string[];
25
+ environment: Record<string, string>;
26
+ timeoutSeconds: number;
27
+ cwd?: string | undefined;
28
+ }, {
29
+ command: string;
30
+ args?: string[] | undefined;
31
+ cwd?: string | undefined;
32
+ environment?: Record<string, string> | undefined;
33
+ timeoutSeconds?: number | undefined;
34
+ }>>;
35
+ watch: z.ZodOptional<z.ZodObject<{
36
+ command: z.ZodString;
37
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
38
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
39
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
40
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ command: string;
43
+ args: string[];
44
+ environment: Record<string, string>;
45
+ timeoutSeconds: number;
46
+ cwd?: string | undefined;
47
+ }, {
48
+ command: string;
49
+ args?: string[] | undefined;
50
+ cwd?: string | undefined;
51
+ environment?: Record<string, string> | undefined;
52
+ timeoutSeconds?: number | undefined;
53
+ }>>;
54
+ build: z.ZodOptional<z.ZodObject<{
55
+ command: z.ZodString;
56
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
57
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
58
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
59
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
60
+ }, "strict", z.ZodTypeAny, {
61
+ command: string;
62
+ args: string[];
63
+ environment: Record<string, string>;
64
+ timeoutSeconds: number;
65
+ cwd?: string | undefined;
66
+ }, {
67
+ command: string;
68
+ args?: string[] | undefined;
69
+ cwd?: string | undefined;
70
+ environment?: Record<string, string> | undefined;
71
+ timeoutSeconds?: number | undefined;
72
+ }>>;
73
+ start: z.ZodOptional<z.ZodObject<{
74
+ command: z.ZodString;
75
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
76
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
77
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
78
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
79
+ }, "strict", z.ZodTypeAny, {
80
+ command: string;
81
+ args: string[];
82
+ environment: Record<string, string>;
83
+ timeoutSeconds: number;
84
+ cwd?: string | undefined;
85
+ }, {
86
+ command: string;
87
+ args?: string[] | undefined;
88
+ cwd?: string | undefined;
89
+ environment?: Record<string, string> | undefined;
90
+ timeoutSeconds?: number | undefined;
91
+ }>>;
92
+ stop: z.ZodOptional<z.ZodObject<{
93
+ command: z.ZodString;
94
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
95
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
96
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
97
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
98
+ }, "strict", z.ZodTypeAny, {
99
+ command: string;
100
+ args: string[];
101
+ environment: Record<string, string>;
102
+ timeoutSeconds: number;
103
+ cwd?: string | undefined;
104
+ }, {
105
+ command: string;
106
+ args?: string[] | undefined;
107
+ cwd?: string | undefined;
108
+ environment?: Record<string, string> | undefined;
109
+ timeoutSeconds?: number | undefined;
110
+ }>>;
111
+ verify: z.ZodOptional<z.ZodObject<{
112
+ command: z.ZodString;
113
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
114
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
115
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
116
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
117
+ }, "strict", z.ZodTypeAny, {
118
+ command: string;
119
+ args: string[];
120
+ environment: Record<string, string>;
121
+ timeoutSeconds: number;
122
+ cwd?: string | undefined;
123
+ }, {
124
+ command: string;
125
+ args?: string[] | undefined;
126
+ cwd?: string | undefined;
127
+ environment?: Record<string, string> | undefined;
128
+ timeoutSeconds?: number | undefined;
129
+ }>>;
130
+ cleanup: z.ZodOptional<z.ZodObject<{
131
+ command: z.ZodString;
132
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
133
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
134
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
135
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
136
+ }, "strict", z.ZodTypeAny, {
137
+ command: string;
138
+ args: string[];
139
+ environment: Record<string, string>;
140
+ timeoutSeconds: number;
141
+ cwd?: string | undefined;
142
+ }, {
143
+ command: string;
144
+ args?: string[] | undefined;
145
+ cwd?: string | undefined;
146
+ environment?: Record<string, string> | undefined;
147
+ timeoutSeconds?: number | undefined;
148
+ }>>;
149
+ }, "strict", z.ZodTypeAny, {
150
+ setup?: {
151
+ command: string;
152
+ args: string[];
153
+ environment: Record<string, string>;
154
+ timeoutSeconds: number;
155
+ cwd?: string | undefined;
156
+ } | undefined;
157
+ watch?: {
158
+ command: string;
159
+ args: string[];
160
+ environment: Record<string, string>;
161
+ timeoutSeconds: number;
162
+ cwd?: string | undefined;
163
+ } | undefined;
164
+ build?: {
165
+ command: string;
166
+ args: string[];
167
+ environment: Record<string, string>;
168
+ timeoutSeconds: number;
169
+ cwd?: string | undefined;
170
+ } | undefined;
171
+ start?: {
172
+ command: string;
173
+ args: string[];
174
+ environment: Record<string, string>;
175
+ timeoutSeconds: number;
176
+ cwd?: string | undefined;
177
+ } | undefined;
178
+ stop?: {
179
+ command: string;
180
+ args: string[];
181
+ environment: Record<string, string>;
182
+ timeoutSeconds: number;
183
+ cwd?: string | undefined;
184
+ } | undefined;
185
+ verify?: {
186
+ command: string;
187
+ args: string[];
188
+ environment: Record<string, string>;
189
+ timeoutSeconds: number;
190
+ cwd?: string | undefined;
191
+ } | undefined;
192
+ cleanup?: {
193
+ command: string;
194
+ args: string[];
195
+ environment: Record<string, string>;
196
+ timeoutSeconds: number;
197
+ cwd?: string | undefined;
198
+ } | undefined;
199
+ }, {
200
+ setup?: {
201
+ command: string;
202
+ args?: string[] | undefined;
203
+ cwd?: string | undefined;
204
+ environment?: Record<string, string> | undefined;
205
+ timeoutSeconds?: number | undefined;
206
+ } | undefined;
207
+ watch?: {
208
+ command: string;
209
+ args?: string[] | undefined;
210
+ cwd?: string | undefined;
211
+ environment?: Record<string, string> | undefined;
212
+ timeoutSeconds?: number | undefined;
213
+ } | undefined;
214
+ build?: {
215
+ command: string;
216
+ args?: string[] | undefined;
217
+ cwd?: string | undefined;
218
+ environment?: Record<string, string> | undefined;
219
+ timeoutSeconds?: number | undefined;
220
+ } | undefined;
221
+ start?: {
222
+ command: string;
223
+ args?: string[] | undefined;
224
+ cwd?: string | undefined;
225
+ environment?: Record<string, string> | undefined;
226
+ timeoutSeconds?: number | undefined;
227
+ } | undefined;
228
+ stop?: {
229
+ command: string;
230
+ args?: string[] | undefined;
231
+ cwd?: string | undefined;
232
+ environment?: Record<string, string> | undefined;
233
+ timeoutSeconds?: number | undefined;
234
+ } | undefined;
235
+ verify?: {
236
+ command: string;
237
+ args?: string[] | undefined;
238
+ cwd?: string | undefined;
239
+ environment?: Record<string, string> | undefined;
240
+ timeoutSeconds?: number | undefined;
241
+ } | undefined;
242
+ cleanup?: {
243
+ command: string;
244
+ args?: string[] | undefined;
245
+ cwd?: string | undefined;
246
+ environment?: Record<string, string> | undefined;
247
+ timeoutSeconds?: number | undefined;
248
+ } | undefined;
249
+ }>;
250
+ ready: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
251
+ kind: z.ZodLiteral<"marker">;
252
+ path: z.ZodEffects<z.ZodString, string, string>;
253
+ timeoutSeconds: z.ZodNumber;
254
+ }, "strict", z.ZodTypeAny, {
255
+ path: string;
256
+ kind: "marker";
257
+ timeoutSeconds: number;
258
+ }, {
259
+ path: string;
260
+ kind: "marker";
261
+ timeoutSeconds: number;
262
+ }>, z.ZodObject<{
263
+ kind: z.ZodLiteral<"http">;
264
+ path: z.ZodString;
265
+ expectedStatus: z.ZodDefault<z.ZodNumber>;
266
+ timeoutSeconds: z.ZodNumber;
267
+ }, "strict", z.ZodTypeAny, {
268
+ path: string;
269
+ kind: "http";
270
+ timeoutSeconds: number;
271
+ expectedStatus: number;
272
+ }, {
273
+ path: string;
274
+ kind: "http";
275
+ timeoutSeconds: number;
276
+ expectedStatus?: number | undefined;
277
+ }>, z.ZodObject<{
278
+ kind: z.ZodLiteral<"tcp">;
279
+ timeoutSeconds: z.ZodNumber;
280
+ }, "strict", z.ZodTypeAny, {
281
+ kind: "tcp";
282
+ timeoutSeconds: number;
283
+ }, {
284
+ kind: "tcp";
285
+ timeoutSeconds: number;
286
+ }>, z.ZodObject<{
287
+ kind: z.ZodLiteral<"process">;
288
+ graceSeconds: z.ZodDefault<z.ZodNumber>;
289
+ }, "strict", z.ZodTypeAny, {
290
+ kind: "process";
291
+ graceSeconds: number;
292
+ }, {
293
+ kind: "process";
294
+ graceSeconds?: number | undefined;
295
+ }>]>;
296
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
297
+ path: z.ZodEffects<z.ZodString, string, string>;
298
+ mediaType: z.ZodString;
299
+ completionMarker: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
300
+ digestAlgorithm: z.ZodDefault<z.ZodLiteral<"sha256">>;
301
+ }, "strict", z.ZodTypeAny, {
302
+ path: string;
303
+ mediaType: string;
304
+ digestAlgorithm: "sha256";
305
+ completionMarker?: string | undefined;
306
+ }, {
307
+ path: string;
308
+ mediaType: string;
309
+ completionMarker?: string | undefined;
310
+ digestAlgorithm?: "sha256" | undefined;
311
+ }>, "many">>;
312
+ endpoints: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
313
+ id: z.ZodString;
314
+ protocol: z.ZodEnum<["http", "https", "tcp"]>;
315
+ port: z.ZodNumber;
316
+ canonicalAlias: z.ZodOptional<z.ZodString>;
317
+ visibility: z.ZodEnum<["host", "loopback", "private"]>;
318
+ authentication: z.ZodDefault<z.ZodEnum<["none", "application", "mtls"]>>;
319
+ }, "strict", z.ZodTypeAny, {
320
+ id: string;
321
+ visibility: "private" | "host" | "loopback";
322
+ protocol: "http" | "tcp" | "https";
323
+ port: number;
324
+ authentication: "none" | "application" | "mtls";
325
+ canonicalAlias?: string | undefined;
326
+ }, {
327
+ id: string;
328
+ visibility: "private" | "host" | "loopback";
329
+ protocol: "http" | "tcp" | "https";
330
+ port: number;
331
+ canonicalAlias?: string | undefined;
332
+ authentication?: "none" | "application" | "mtls" | undefined;
333
+ }>, {
334
+ id: string;
335
+ visibility: "private" | "host" | "loopback";
336
+ protocol: "http" | "tcp" | "https";
337
+ port: number;
338
+ authentication: "none" | "application" | "mtls";
339
+ canonicalAlias?: string | undefined;
340
+ }, {
341
+ id: string;
342
+ visibility: "private" | "host" | "loopback";
343
+ protocol: "http" | "tcp" | "https";
344
+ port: number;
345
+ canonicalAlias?: string | undefined;
346
+ authentication?: "none" | "application" | "mtls" | undefined;
347
+ }>, "many">>;
348
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
349
+ id: z.ZodString;
350
+ target: z.ZodString;
351
+ capability: z.ZodOptional<z.ZodString>;
352
+ locality: z.ZodDefault<z.ZodEnum<["local", "remote", "either"]>>;
353
+ reaction: z.ZodEnum<["reload", "restart", "rebuild", "stale", "manual", "none"]>;
354
+ }, "strict", z.ZodTypeAny, {
355
+ id: string;
356
+ target: string;
357
+ locality: "remote" | "local" | "either";
358
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
359
+ capability?: string | undefined;
360
+ }, {
361
+ id: string;
362
+ target: string;
363
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
364
+ capability?: string | undefined;
365
+ locality?: "remote" | "local" | "either" | undefined;
366
+ }>, "many">>;
367
+ statePolicy: z.ZodEnum<["stateless", "ephemeral", "clone", "shared-compatible"]>;
368
+ migrationPolicy: z.ZodEnum<["none", "explicit-review", "disposable-only"]>;
369
+ secretRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
370
+ shutdown: z.ZodObject<{
371
+ drainOperation: z.ZodOptional<z.ZodObject<{
372
+ command: z.ZodString;
373
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
374
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
375
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
376
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
377
+ }, "strict", z.ZodTypeAny, {
378
+ command: string;
379
+ args: string[];
380
+ environment: Record<string, string>;
381
+ timeoutSeconds: number;
382
+ cwd?: string | undefined;
383
+ }, {
384
+ command: string;
385
+ args?: string[] | undefined;
386
+ cwd?: string | undefined;
387
+ environment?: Record<string, string> | undefined;
388
+ timeoutSeconds?: number | undefined;
389
+ }>>;
390
+ graceSeconds: z.ZodDefault<z.ZodNumber>;
391
+ activeWorkPolicy: z.ZodDefault<z.ZodEnum<["block", "drain", "cancel-authorized"]>>;
392
+ }, "strict", z.ZodTypeAny, {
393
+ graceSeconds: number;
394
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
395
+ drainOperation?: {
396
+ command: string;
397
+ args: string[];
398
+ environment: Record<string, string>;
399
+ timeoutSeconds: number;
400
+ cwd?: string | undefined;
401
+ } | undefined;
402
+ }, {
403
+ graceSeconds?: number | undefined;
404
+ drainOperation?: {
405
+ command: string;
406
+ args?: string[] | undefined;
407
+ cwd?: string | undefined;
408
+ environment?: Record<string, string> | undefined;
409
+ timeoutSeconds?: number | undefined;
410
+ } | undefined;
411
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
412
+ }>;
413
+ resources: z.ZodDefault<z.ZodObject<{
414
+ cpuCores: z.ZodOptional<z.ZodNumber>;
415
+ memoryBytes: z.ZodOptional<z.ZodNumber>;
416
+ diskBytes: z.ZodOptional<z.ZodNumber>;
417
+ }, "strict", z.ZodTypeAny, {
418
+ cpuCores?: number | undefined;
419
+ memoryBytes?: number | undefined;
420
+ diskBytes?: number | undefined;
421
+ }, {
422
+ cpuCores?: number | undefined;
423
+ memoryBytes?: number | undefined;
424
+ diskBytes?: number | undefined;
425
+ }>>;
426
+ logs: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
427
+ forbiddenOperations: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
428
+ freeze: z.ZodOptional<z.ZodObject<{
429
+ kind: z.ZodEnum<["npm-package", "oci-image", "archive", "executable"]>;
430
+ operation: z.ZodObject<{
431
+ command: z.ZodString;
432
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
433
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
434
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
435
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
436
+ }, "strict", z.ZodTypeAny, {
437
+ command: string;
438
+ args: string[];
439
+ environment: Record<string, string>;
440
+ timeoutSeconds: number;
441
+ cwd?: string | undefined;
442
+ }, {
443
+ command: string;
444
+ args?: string[] | undefined;
445
+ cwd?: string | undefined;
446
+ environment?: Record<string, string> | undefined;
447
+ timeoutSeconds?: number | undefined;
448
+ }>;
449
+ artifacts: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
450
+ contractOperations: z.ZodDefault<z.ZodArray<z.ZodObject<{
451
+ command: z.ZodString;
452
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
453
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
454
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
455
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
456
+ }, "strict", z.ZodTypeAny, {
457
+ command: string;
458
+ args: string[];
459
+ environment: Record<string, string>;
460
+ timeoutSeconds: number;
461
+ cwd?: string | undefined;
462
+ }, {
463
+ command: string;
464
+ args?: string[] | undefined;
465
+ cwd?: string | undefined;
466
+ environment?: Record<string, string> | undefined;
467
+ timeoutSeconds?: number | undefined;
468
+ }>, "many">>;
469
+ }, "strict", z.ZodTypeAny, {
470
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
471
+ operation: {
472
+ command: string;
473
+ args: string[];
474
+ environment: Record<string, string>;
475
+ timeoutSeconds: number;
476
+ cwd?: string | undefined;
477
+ };
478
+ artifacts: string[];
479
+ contractOperations: {
480
+ command: string;
481
+ args: string[];
482
+ environment: Record<string, string>;
483
+ timeoutSeconds: number;
484
+ cwd?: string | undefined;
485
+ }[];
486
+ }, {
487
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
488
+ operation: {
489
+ command: string;
490
+ args?: string[] | undefined;
491
+ cwd?: string | undefined;
492
+ environment?: Record<string, string> | undefined;
493
+ timeoutSeconds?: number | undefined;
494
+ };
495
+ artifacts: string[];
496
+ contractOperations?: {
497
+ command: string;
498
+ args?: string[] | undefined;
499
+ cwd?: string | undefined;
500
+ environment?: Record<string, string> | undefined;
501
+ timeoutSeconds?: number | undefined;
502
+ }[] | undefined;
503
+ }>>;
504
+ promotion: z.ZodObject<{
505
+ liveAdmissible: z.ZodLiteral<false>;
506
+ candidateRequiresVerification: z.ZodLiteral<true>;
507
+ }, "strict", z.ZodTypeAny, {
508
+ liveAdmissible: false;
509
+ candidateRequiresVerification: true;
510
+ }, {
511
+ liveAdmissible: false;
512
+ candidateRequiresVerification: true;
513
+ }>;
514
+ }, "strict", z.ZodTypeAny, {
515
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
516
+ id: string;
517
+ resources: {
518
+ cpuCores?: number | undefined;
519
+ memoryBytes?: number | undefined;
520
+ diskBytes?: number | undefined;
521
+ };
522
+ ready: {
523
+ path: string;
524
+ kind: "marker";
525
+ timeoutSeconds: number;
526
+ } | {
527
+ path: string;
528
+ kind: "http";
529
+ timeoutSeconds: number;
530
+ expectedStatus: number;
531
+ } | {
532
+ kind: "tcp";
533
+ timeoutSeconds: number;
534
+ } | {
535
+ kind: "process";
536
+ graceSeconds: number;
537
+ };
538
+ executionCustody: "caller" | "manager";
539
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
540
+ runtimeRequirements: string[];
541
+ sourceRoots: string[];
542
+ ignoredPaths: string[];
543
+ operations: {
544
+ setup?: {
545
+ command: string;
546
+ args: string[];
547
+ environment: Record<string, string>;
548
+ timeoutSeconds: number;
549
+ cwd?: string | undefined;
550
+ } | undefined;
551
+ watch?: {
552
+ command: string;
553
+ args: string[];
554
+ environment: Record<string, string>;
555
+ timeoutSeconds: number;
556
+ cwd?: string | undefined;
557
+ } | undefined;
558
+ build?: {
559
+ command: string;
560
+ args: string[];
561
+ environment: Record<string, string>;
562
+ timeoutSeconds: number;
563
+ cwd?: string | undefined;
564
+ } | undefined;
565
+ start?: {
566
+ command: string;
567
+ args: string[];
568
+ environment: Record<string, string>;
569
+ timeoutSeconds: number;
570
+ cwd?: string | undefined;
571
+ } | undefined;
572
+ stop?: {
573
+ command: string;
574
+ args: string[];
575
+ environment: Record<string, string>;
576
+ timeoutSeconds: number;
577
+ cwd?: string | undefined;
578
+ } | undefined;
579
+ verify?: {
580
+ command: string;
581
+ args: string[];
582
+ environment: Record<string, string>;
583
+ timeoutSeconds: number;
584
+ cwd?: string | undefined;
585
+ } | undefined;
586
+ cleanup?: {
587
+ command: string;
588
+ args: string[];
589
+ environment: Record<string, string>;
590
+ timeoutSeconds: number;
591
+ cwd?: string | undefined;
592
+ } | undefined;
593
+ };
594
+ outputs: {
595
+ path: string;
596
+ mediaType: string;
597
+ digestAlgorithm: "sha256";
598
+ completionMarker?: string | undefined;
599
+ }[];
600
+ endpoints: {
601
+ id: string;
602
+ visibility: "private" | "host" | "loopback";
603
+ protocol: "http" | "tcp" | "https";
604
+ port: number;
605
+ authentication: "none" | "application" | "mtls";
606
+ canonicalAlias?: string | undefined;
607
+ }[];
608
+ dependencies: {
609
+ id: string;
610
+ target: string;
611
+ locality: "remote" | "local" | "either";
612
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
613
+ capability?: string | undefined;
614
+ }[];
615
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
616
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
617
+ secretRefs: Record<string, string>;
618
+ shutdown: {
619
+ graceSeconds: number;
620
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
621
+ drainOperation?: {
622
+ command: string;
623
+ args: string[];
624
+ environment: Record<string, string>;
625
+ timeoutSeconds: number;
626
+ cwd?: string | undefined;
627
+ } | undefined;
628
+ };
629
+ logs: string[];
630
+ forbiddenOperations: string[];
631
+ promotion: {
632
+ liveAdmissible: false;
633
+ candidateRequiresVerification: true;
634
+ };
635
+ freeze?: {
636
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
637
+ operation: {
638
+ command: string;
639
+ args: string[];
640
+ environment: Record<string, string>;
641
+ timeoutSeconds: number;
642
+ cwd?: string | undefined;
643
+ };
644
+ artifacts: string[];
645
+ contractOperations: {
646
+ command: string;
647
+ args: string[];
648
+ environment: Record<string, string>;
649
+ timeoutSeconds: number;
650
+ cwd?: string | undefined;
651
+ }[];
652
+ } | undefined;
653
+ }, {
654
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
655
+ id: string;
656
+ ready: {
657
+ path: string;
658
+ kind: "marker";
659
+ timeoutSeconds: number;
660
+ } | {
661
+ path: string;
662
+ kind: "http";
663
+ timeoutSeconds: number;
664
+ expectedStatus?: number | undefined;
665
+ } | {
666
+ kind: "tcp";
667
+ timeoutSeconds: number;
668
+ } | {
669
+ kind: "process";
670
+ graceSeconds?: number | undefined;
671
+ };
672
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
673
+ sourceRoots: string[];
674
+ operations: {
675
+ setup?: {
676
+ command: string;
677
+ args?: string[] | undefined;
678
+ cwd?: string | undefined;
679
+ environment?: Record<string, string> | undefined;
680
+ timeoutSeconds?: number | undefined;
681
+ } | undefined;
682
+ watch?: {
683
+ command: string;
684
+ args?: string[] | undefined;
685
+ cwd?: string | undefined;
686
+ environment?: Record<string, string> | undefined;
687
+ timeoutSeconds?: number | undefined;
688
+ } | undefined;
689
+ build?: {
690
+ command: string;
691
+ args?: string[] | undefined;
692
+ cwd?: string | undefined;
693
+ environment?: Record<string, string> | undefined;
694
+ timeoutSeconds?: number | undefined;
695
+ } | undefined;
696
+ start?: {
697
+ command: string;
698
+ args?: string[] | undefined;
699
+ cwd?: string | undefined;
700
+ environment?: Record<string, string> | undefined;
701
+ timeoutSeconds?: number | undefined;
702
+ } | undefined;
703
+ stop?: {
704
+ command: string;
705
+ args?: string[] | undefined;
706
+ cwd?: string | undefined;
707
+ environment?: Record<string, string> | undefined;
708
+ timeoutSeconds?: number | undefined;
709
+ } | undefined;
710
+ verify?: {
711
+ command: string;
712
+ args?: string[] | undefined;
713
+ cwd?: string | undefined;
714
+ environment?: Record<string, string> | undefined;
715
+ timeoutSeconds?: number | undefined;
716
+ } | undefined;
717
+ cleanup?: {
718
+ command: string;
719
+ args?: string[] | undefined;
720
+ cwd?: string | undefined;
721
+ environment?: Record<string, string> | undefined;
722
+ timeoutSeconds?: number | undefined;
723
+ } | undefined;
724
+ };
725
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
726
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
727
+ shutdown: {
728
+ graceSeconds?: number | undefined;
729
+ drainOperation?: {
730
+ command: string;
731
+ args?: string[] | undefined;
732
+ cwd?: string | undefined;
733
+ environment?: Record<string, string> | undefined;
734
+ timeoutSeconds?: number | undefined;
735
+ } | undefined;
736
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
737
+ };
738
+ promotion: {
739
+ liveAdmissible: false;
740
+ candidateRequiresVerification: true;
741
+ };
742
+ resources?: {
743
+ cpuCores?: number | undefined;
744
+ memoryBytes?: number | undefined;
745
+ diskBytes?: number | undefined;
746
+ } | undefined;
747
+ executionCustody?: "caller" | "manager" | undefined;
748
+ runtimeRequirements?: string[] | undefined;
749
+ ignoredPaths?: string[] | undefined;
750
+ outputs?: {
751
+ path: string;
752
+ mediaType: string;
753
+ completionMarker?: string | undefined;
754
+ digestAlgorithm?: "sha256" | undefined;
755
+ }[] | undefined;
756
+ endpoints?: {
757
+ id: string;
758
+ visibility: "private" | "host" | "loopback";
759
+ protocol: "http" | "tcp" | "https";
760
+ port: number;
761
+ canonicalAlias?: string | undefined;
762
+ authentication?: "none" | "application" | "mtls" | undefined;
763
+ }[] | undefined;
764
+ dependencies?: {
765
+ id: string;
766
+ target: string;
767
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
768
+ capability?: string | undefined;
769
+ locality?: "remote" | "local" | "either" | undefined;
770
+ }[] | undefined;
771
+ secretRefs?: Record<string, string> | undefined;
772
+ logs?: string[] | undefined;
773
+ forbiddenOperations?: string[] | undefined;
774
+ freeze?: {
775
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
776
+ operation: {
777
+ command: string;
778
+ args?: string[] | undefined;
779
+ cwd?: string | undefined;
780
+ environment?: Record<string, string> | undefined;
781
+ timeoutSeconds?: number | undefined;
782
+ };
783
+ artifacts: string[];
784
+ contractOperations?: {
785
+ command: string;
786
+ args?: string[] | undefined;
787
+ cwd?: string | undefined;
788
+ environment?: Record<string, string> | undefined;
789
+ timeoutSeconds?: number | undefined;
790
+ }[] | undefined;
791
+ } | undefined;
792
+ }>, {
793
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
794
+ id: string;
795
+ resources: {
796
+ cpuCores?: number | undefined;
797
+ memoryBytes?: number | undefined;
798
+ diskBytes?: number | undefined;
799
+ };
800
+ ready: {
801
+ path: string;
802
+ kind: "marker";
803
+ timeoutSeconds: number;
804
+ } | {
805
+ path: string;
806
+ kind: "http";
807
+ timeoutSeconds: number;
808
+ expectedStatus: number;
809
+ } | {
810
+ kind: "tcp";
811
+ timeoutSeconds: number;
812
+ } | {
813
+ kind: "process";
814
+ graceSeconds: number;
815
+ };
816
+ executionCustody: "caller" | "manager";
817
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
818
+ runtimeRequirements: string[];
819
+ sourceRoots: string[];
820
+ ignoredPaths: string[];
821
+ operations: {
822
+ setup?: {
823
+ command: string;
824
+ args: string[];
825
+ environment: Record<string, string>;
826
+ timeoutSeconds: number;
827
+ cwd?: string | undefined;
828
+ } | undefined;
829
+ watch?: {
830
+ command: string;
831
+ args: string[];
832
+ environment: Record<string, string>;
833
+ timeoutSeconds: number;
834
+ cwd?: string | undefined;
835
+ } | undefined;
836
+ build?: {
837
+ command: string;
838
+ args: string[];
839
+ environment: Record<string, string>;
840
+ timeoutSeconds: number;
841
+ cwd?: string | undefined;
842
+ } | undefined;
843
+ start?: {
844
+ command: string;
845
+ args: string[];
846
+ environment: Record<string, string>;
847
+ timeoutSeconds: number;
848
+ cwd?: string | undefined;
849
+ } | undefined;
850
+ stop?: {
851
+ command: string;
852
+ args: string[];
853
+ environment: Record<string, string>;
854
+ timeoutSeconds: number;
855
+ cwd?: string | undefined;
856
+ } | undefined;
857
+ verify?: {
858
+ command: string;
859
+ args: string[];
860
+ environment: Record<string, string>;
861
+ timeoutSeconds: number;
862
+ cwd?: string | undefined;
863
+ } | undefined;
864
+ cleanup?: {
865
+ command: string;
866
+ args: string[];
867
+ environment: Record<string, string>;
868
+ timeoutSeconds: number;
869
+ cwd?: string | undefined;
870
+ } | undefined;
871
+ };
872
+ outputs: {
873
+ path: string;
874
+ mediaType: string;
875
+ digestAlgorithm: "sha256";
876
+ completionMarker?: string | undefined;
877
+ }[];
878
+ endpoints: {
879
+ id: string;
880
+ visibility: "private" | "host" | "loopback";
881
+ protocol: "http" | "tcp" | "https";
882
+ port: number;
883
+ authentication: "none" | "application" | "mtls";
884
+ canonicalAlias?: string | undefined;
885
+ }[];
886
+ dependencies: {
887
+ id: string;
888
+ target: string;
889
+ locality: "remote" | "local" | "either";
890
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
891
+ capability?: string | undefined;
892
+ }[];
893
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
894
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
895
+ secretRefs: Record<string, string>;
896
+ shutdown: {
897
+ graceSeconds: number;
898
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
899
+ drainOperation?: {
900
+ command: string;
901
+ args: string[];
902
+ environment: Record<string, string>;
903
+ timeoutSeconds: number;
904
+ cwd?: string | undefined;
905
+ } | undefined;
906
+ };
907
+ logs: string[];
908
+ forbiddenOperations: string[];
909
+ promotion: {
910
+ liveAdmissible: false;
911
+ candidateRequiresVerification: true;
912
+ };
913
+ freeze?: {
914
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
915
+ operation: {
916
+ command: string;
917
+ args: string[];
918
+ environment: Record<string, string>;
919
+ timeoutSeconds: number;
920
+ cwd?: string | undefined;
921
+ };
922
+ artifacts: string[];
923
+ contractOperations: {
924
+ command: string;
925
+ args: string[];
926
+ environment: Record<string, string>;
927
+ timeoutSeconds: number;
928
+ cwd?: string | undefined;
929
+ }[];
930
+ } | undefined;
931
+ }, {
932
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
933
+ id: string;
934
+ ready: {
935
+ path: string;
936
+ kind: "marker";
937
+ timeoutSeconds: number;
938
+ } | {
939
+ path: string;
940
+ kind: "http";
941
+ timeoutSeconds: number;
942
+ expectedStatus?: number | undefined;
943
+ } | {
944
+ kind: "tcp";
945
+ timeoutSeconds: number;
946
+ } | {
947
+ kind: "process";
948
+ graceSeconds?: number | undefined;
949
+ };
950
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
951
+ sourceRoots: string[];
952
+ operations: {
953
+ setup?: {
954
+ command: string;
955
+ args?: string[] | undefined;
956
+ cwd?: string | undefined;
957
+ environment?: Record<string, string> | undefined;
958
+ timeoutSeconds?: number | undefined;
959
+ } | undefined;
960
+ watch?: {
961
+ command: string;
962
+ args?: string[] | undefined;
963
+ cwd?: string | undefined;
964
+ environment?: Record<string, string> | undefined;
965
+ timeoutSeconds?: number | undefined;
966
+ } | undefined;
967
+ build?: {
968
+ command: string;
969
+ args?: string[] | undefined;
970
+ cwd?: string | undefined;
971
+ environment?: Record<string, string> | undefined;
972
+ timeoutSeconds?: number | undefined;
973
+ } | undefined;
974
+ start?: {
975
+ command: string;
976
+ args?: string[] | undefined;
977
+ cwd?: string | undefined;
978
+ environment?: Record<string, string> | undefined;
979
+ timeoutSeconds?: number | undefined;
980
+ } | undefined;
981
+ stop?: {
982
+ command: string;
983
+ args?: string[] | undefined;
984
+ cwd?: string | undefined;
985
+ environment?: Record<string, string> | undefined;
986
+ timeoutSeconds?: number | undefined;
987
+ } | undefined;
988
+ verify?: {
989
+ command: string;
990
+ args?: string[] | undefined;
991
+ cwd?: string | undefined;
992
+ environment?: Record<string, string> | undefined;
993
+ timeoutSeconds?: number | undefined;
994
+ } | undefined;
995
+ cleanup?: {
996
+ command: string;
997
+ args?: string[] | undefined;
998
+ cwd?: string | undefined;
999
+ environment?: Record<string, string> | undefined;
1000
+ timeoutSeconds?: number | undefined;
1001
+ } | undefined;
1002
+ };
1003
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
1004
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
1005
+ shutdown: {
1006
+ graceSeconds?: number | undefined;
1007
+ drainOperation?: {
1008
+ command: string;
1009
+ args?: string[] | undefined;
1010
+ cwd?: string | undefined;
1011
+ environment?: Record<string, string> | undefined;
1012
+ timeoutSeconds?: number | undefined;
1013
+ } | undefined;
1014
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
1015
+ };
1016
+ promotion: {
1017
+ liveAdmissible: false;
1018
+ candidateRequiresVerification: true;
1019
+ };
1020
+ resources?: {
1021
+ cpuCores?: number | undefined;
1022
+ memoryBytes?: number | undefined;
1023
+ diskBytes?: number | undefined;
1024
+ } | undefined;
1025
+ executionCustody?: "caller" | "manager" | undefined;
1026
+ runtimeRequirements?: string[] | undefined;
1027
+ ignoredPaths?: string[] | undefined;
1028
+ outputs?: {
1029
+ path: string;
1030
+ mediaType: string;
1031
+ completionMarker?: string | undefined;
1032
+ digestAlgorithm?: "sha256" | undefined;
1033
+ }[] | undefined;
1034
+ endpoints?: {
1035
+ id: string;
1036
+ visibility: "private" | "host" | "loopback";
1037
+ protocol: "http" | "tcp" | "https";
1038
+ port: number;
1039
+ canonicalAlias?: string | undefined;
1040
+ authentication?: "none" | "application" | "mtls" | undefined;
1041
+ }[] | undefined;
1042
+ dependencies?: {
1043
+ id: string;
1044
+ target: string;
1045
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1046
+ capability?: string | undefined;
1047
+ locality?: "remote" | "local" | "either" | undefined;
1048
+ }[] | undefined;
1049
+ secretRefs?: Record<string, string> | undefined;
1050
+ logs?: string[] | undefined;
1051
+ forbiddenOperations?: string[] | undefined;
1052
+ freeze?: {
1053
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1054
+ operation: {
1055
+ command: string;
1056
+ args?: string[] | undefined;
1057
+ cwd?: string | undefined;
1058
+ environment?: Record<string, string> | undefined;
1059
+ timeoutSeconds?: number | undefined;
1060
+ };
1061
+ artifacts: string[];
1062
+ contractOperations?: {
1063
+ command: string;
1064
+ args?: string[] | undefined;
1065
+ cwd?: string | undefined;
1066
+ environment?: Record<string, string> | undefined;
1067
+ timeoutSeconds?: number | undefined;
1068
+ }[] | undefined;
1069
+ } | undefined;
1070
+ }>;
1071
+ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1072
+ schemaVersion: z.ZodLiteral<"treeseed.development-runtime/v2">;
1073
+ project: z.ZodObject<{
1074
+ id: z.ZodString;
1075
+ repository: z.ZodString;
1076
+ }, "strict", z.ZodTypeAny, {
1077
+ id: string;
1078
+ repository: string;
1079
+ }, {
1080
+ id: string;
1081
+ repository: string;
1082
+ }>;
1083
+ defaults: z.ZodObject<{
1084
+ restoreOnFailure: z.ZodDefault<z.ZodBoolean>;
1085
+ }, "strict", z.ZodTypeAny, {
1086
+ restoreOnFailure: boolean;
1087
+ }, {
1088
+ restoreOnFailure?: boolean | undefined;
1089
+ }>;
1090
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1091
+ id: z.ZodString;
1092
+ kind: z.ZodEnum<["source-check", "package-watch", "live-web", "live-api", "rebuild-restart", "local-companion"]>;
1093
+ executionCustody: z.ZodDefault<z.ZodEnum<["caller", "manager"]>>;
1094
+ platforms: z.ZodArray<z.ZodEnum<["linux-amd64", "linux-arm64", "darwin-arm64", "darwin-amd64"]>, "many">;
1095
+ runtimeRequirements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1096
+ sourceRoots: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1097
+ ignoredPaths: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1098
+ operations: z.ZodObject<{
1099
+ setup: z.ZodOptional<z.ZodObject<{
1100
+ command: z.ZodString;
1101
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1102
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1103
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1104
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1105
+ }, "strict", z.ZodTypeAny, {
1106
+ command: string;
1107
+ args: string[];
1108
+ environment: Record<string, string>;
1109
+ timeoutSeconds: number;
1110
+ cwd?: string | undefined;
1111
+ }, {
1112
+ command: string;
1113
+ args?: string[] | undefined;
1114
+ cwd?: string | undefined;
1115
+ environment?: Record<string, string> | undefined;
1116
+ timeoutSeconds?: number | undefined;
1117
+ }>>;
1118
+ watch: z.ZodOptional<z.ZodObject<{
1119
+ command: z.ZodString;
1120
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1121
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1122
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1123
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1124
+ }, "strict", z.ZodTypeAny, {
1125
+ command: string;
1126
+ args: string[];
1127
+ environment: Record<string, string>;
1128
+ timeoutSeconds: number;
1129
+ cwd?: string | undefined;
1130
+ }, {
1131
+ command: string;
1132
+ args?: string[] | undefined;
1133
+ cwd?: string | undefined;
1134
+ environment?: Record<string, string> | undefined;
1135
+ timeoutSeconds?: number | undefined;
1136
+ }>>;
1137
+ build: z.ZodOptional<z.ZodObject<{
1138
+ command: z.ZodString;
1139
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1140
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1141
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1142
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1143
+ }, "strict", z.ZodTypeAny, {
1144
+ command: string;
1145
+ args: string[];
1146
+ environment: Record<string, string>;
1147
+ timeoutSeconds: number;
1148
+ cwd?: string | undefined;
1149
+ }, {
1150
+ command: string;
1151
+ args?: string[] | undefined;
1152
+ cwd?: string | undefined;
1153
+ environment?: Record<string, string> | undefined;
1154
+ timeoutSeconds?: number | undefined;
1155
+ }>>;
1156
+ start: z.ZodOptional<z.ZodObject<{
1157
+ command: z.ZodString;
1158
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1159
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1160
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1161
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1162
+ }, "strict", z.ZodTypeAny, {
1163
+ command: string;
1164
+ args: string[];
1165
+ environment: Record<string, string>;
1166
+ timeoutSeconds: number;
1167
+ cwd?: string | undefined;
1168
+ }, {
1169
+ command: string;
1170
+ args?: string[] | undefined;
1171
+ cwd?: string | undefined;
1172
+ environment?: Record<string, string> | undefined;
1173
+ timeoutSeconds?: number | undefined;
1174
+ }>>;
1175
+ stop: z.ZodOptional<z.ZodObject<{
1176
+ command: z.ZodString;
1177
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1178
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1179
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1180
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1181
+ }, "strict", z.ZodTypeAny, {
1182
+ command: string;
1183
+ args: string[];
1184
+ environment: Record<string, string>;
1185
+ timeoutSeconds: number;
1186
+ cwd?: string | undefined;
1187
+ }, {
1188
+ command: string;
1189
+ args?: string[] | undefined;
1190
+ cwd?: string | undefined;
1191
+ environment?: Record<string, string> | undefined;
1192
+ timeoutSeconds?: number | undefined;
1193
+ }>>;
1194
+ verify: z.ZodOptional<z.ZodObject<{
1195
+ command: z.ZodString;
1196
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1197
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1198
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1199
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1200
+ }, "strict", z.ZodTypeAny, {
1201
+ command: string;
1202
+ args: string[];
1203
+ environment: Record<string, string>;
1204
+ timeoutSeconds: number;
1205
+ cwd?: string | undefined;
1206
+ }, {
1207
+ command: string;
1208
+ args?: string[] | undefined;
1209
+ cwd?: string | undefined;
1210
+ environment?: Record<string, string> | undefined;
1211
+ timeoutSeconds?: number | undefined;
1212
+ }>>;
1213
+ cleanup: z.ZodOptional<z.ZodObject<{
1214
+ command: z.ZodString;
1215
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1216
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1217
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1218
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1219
+ }, "strict", z.ZodTypeAny, {
1220
+ command: string;
1221
+ args: string[];
1222
+ environment: Record<string, string>;
1223
+ timeoutSeconds: number;
1224
+ cwd?: string | undefined;
1225
+ }, {
1226
+ command: string;
1227
+ args?: string[] | undefined;
1228
+ cwd?: string | undefined;
1229
+ environment?: Record<string, string> | undefined;
1230
+ timeoutSeconds?: number | undefined;
1231
+ }>>;
1232
+ }, "strict", z.ZodTypeAny, {
1233
+ setup?: {
1234
+ command: string;
1235
+ args: string[];
1236
+ environment: Record<string, string>;
1237
+ timeoutSeconds: number;
1238
+ cwd?: string | undefined;
1239
+ } | undefined;
1240
+ watch?: {
1241
+ command: string;
1242
+ args: string[];
1243
+ environment: Record<string, string>;
1244
+ timeoutSeconds: number;
1245
+ cwd?: string | undefined;
1246
+ } | undefined;
1247
+ build?: {
1248
+ command: string;
1249
+ args: string[];
1250
+ environment: Record<string, string>;
1251
+ timeoutSeconds: number;
1252
+ cwd?: string | undefined;
1253
+ } | undefined;
1254
+ start?: {
1255
+ command: string;
1256
+ args: string[];
1257
+ environment: Record<string, string>;
1258
+ timeoutSeconds: number;
1259
+ cwd?: string | undefined;
1260
+ } | undefined;
1261
+ stop?: {
1262
+ command: string;
1263
+ args: string[];
1264
+ environment: Record<string, string>;
1265
+ timeoutSeconds: number;
1266
+ cwd?: string | undefined;
1267
+ } | undefined;
1268
+ verify?: {
1269
+ command: string;
1270
+ args: string[];
1271
+ environment: Record<string, string>;
1272
+ timeoutSeconds: number;
1273
+ cwd?: string | undefined;
1274
+ } | undefined;
1275
+ cleanup?: {
1276
+ command: string;
1277
+ args: string[];
1278
+ environment: Record<string, string>;
1279
+ timeoutSeconds: number;
1280
+ cwd?: string | undefined;
1281
+ } | undefined;
1282
+ }, {
1283
+ setup?: {
1284
+ command: string;
1285
+ args?: string[] | undefined;
1286
+ cwd?: string | undefined;
1287
+ environment?: Record<string, string> | undefined;
1288
+ timeoutSeconds?: number | undefined;
1289
+ } | undefined;
1290
+ watch?: {
1291
+ command: string;
1292
+ args?: string[] | undefined;
1293
+ cwd?: string | undefined;
1294
+ environment?: Record<string, string> | undefined;
1295
+ timeoutSeconds?: number | undefined;
1296
+ } | undefined;
1297
+ build?: {
1298
+ command: string;
1299
+ args?: string[] | undefined;
1300
+ cwd?: string | undefined;
1301
+ environment?: Record<string, string> | undefined;
1302
+ timeoutSeconds?: number | undefined;
1303
+ } | undefined;
1304
+ start?: {
1305
+ command: string;
1306
+ args?: string[] | undefined;
1307
+ cwd?: string | undefined;
1308
+ environment?: Record<string, string> | undefined;
1309
+ timeoutSeconds?: number | undefined;
1310
+ } | undefined;
1311
+ stop?: {
1312
+ command: string;
1313
+ args?: string[] | undefined;
1314
+ cwd?: string | undefined;
1315
+ environment?: Record<string, string> | undefined;
1316
+ timeoutSeconds?: number | undefined;
1317
+ } | undefined;
1318
+ verify?: {
1319
+ command: string;
1320
+ args?: string[] | undefined;
1321
+ cwd?: string | undefined;
1322
+ environment?: Record<string, string> | undefined;
1323
+ timeoutSeconds?: number | undefined;
1324
+ } | undefined;
1325
+ cleanup?: {
1326
+ command: string;
1327
+ args?: string[] | undefined;
1328
+ cwd?: string | undefined;
1329
+ environment?: Record<string, string> | undefined;
1330
+ timeoutSeconds?: number | undefined;
1331
+ } | undefined;
1332
+ }>;
1333
+ ready: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1334
+ kind: z.ZodLiteral<"marker">;
1335
+ path: z.ZodEffects<z.ZodString, string, string>;
1336
+ timeoutSeconds: z.ZodNumber;
1337
+ }, "strict", z.ZodTypeAny, {
1338
+ path: string;
1339
+ kind: "marker";
1340
+ timeoutSeconds: number;
1341
+ }, {
1342
+ path: string;
1343
+ kind: "marker";
1344
+ timeoutSeconds: number;
1345
+ }>, z.ZodObject<{
1346
+ kind: z.ZodLiteral<"http">;
1347
+ path: z.ZodString;
1348
+ expectedStatus: z.ZodDefault<z.ZodNumber>;
1349
+ timeoutSeconds: z.ZodNumber;
1350
+ }, "strict", z.ZodTypeAny, {
1351
+ path: string;
1352
+ kind: "http";
1353
+ timeoutSeconds: number;
1354
+ expectedStatus: number;
1355
+ }, {
1356
+ path: string;
1357
+ kind: "http";
1358
+ timeoutSeconds: number;
1359
+ expectedStatus?: number | undefined;
1360
+ }>, z.ZodObject<{
1361
+ kind: z.ZodLiteral<"tcp">;
1362
+ timeoutSeconds: z.ZodNumber;
1363
+ }, "strict", z.ZodTypeAny, {
1364
+ kind: "tcp";
1365
+ timeoutSeconds: number;
1366
+ }, {
1367
+ kind: "tcp";
1368
+ timeoutSeconds: number;
1369
+ }>, z.ZodObject<{
1370
+ kind: z.ZodLiteral<"process">;
1371
+ graceSeconds: z.ZodDefault<z.ZodNumber>;
1372
+ }, "strict", z.ZodTypeAny, {
1373
+ kind: "process";
1374
+ graceSeconds: number;
1375
+ }, {
1376
+ kind: "process";
1377
+ graceSeconds?: number | undefined;
1378
+ }>]>;
1379
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1380
+ path: z.ZodEffects<z.ZodString, string, string>;
1381
+ mediaType: z.ZodString;
1382
+ completionMarker: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1383
+ digestAlgorithm: z.ZodDefault<z.ZodLiteral<"sha256">>;
1384
+ }, "strict", z.ZodTypeAny, {
1385
+ path: string;
1386
+ mediaType: string;
1387
+ digestAlgorithm: "sha256";
1388
+ completionMarker?: string | undefined;
1389
+ }, {
1390
+ path: string;
1391
+ mediaType: string;
1392
+ completionMarker?: string | undefined;
1393
+ digestAlgorithm?: "sha256" | undefined;
1394
+ }>, "many">>;
1395
+ endpoints: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
1396
+ id: z.ZodString;
1397
+ protocol: z.ZodEnum<["http", "https", "tcp"]>;
1398
+ port: z.ZodNumber;
1399
+ canonicalAlias: z.ZodOptional<z.ZodString>;
1400
+ visibility: z.ZodEnum<["host", "loopback", "private"]>;
1401
+ authentication: z.ZodDefault<z.ZodEnum<["none", "application", "mtls"]>>;
1402
+ }, "strict", z.ZodTypeAny, {
1403
+ id: string;
1404
+ visibility: "private" | "host" | "loopback";
1405
+ protocol: "http" | "tcp" | "https";
1406
+ port: number;
1407
+ authentication: "none" | "application" | "mtls";
1408
+ canonicalAlias?: string | undefined;
1409
+ }, {
1410
+ id: string;
1411
+ visibility: "private" | "host" | "loopback";
1412
+ protocol: "http" | "tcp" | "https";
1413
+ port: number;
1414
+ canonicalAlias?: string | undefined;
1415
+ authentication?: "none" | "application" | "mtls" | undefined;
1416
+ }>, {
1417
+ id: string;
1418
+ visibility: "private" | "host" | "loopback";
1419
+ protocol: "http" | "tcp" | "https";
1420
+ port: number;
1421
+ authentication: "none" | "application" | "mtls";
1422
+ canonicalAlias?: string | undefined;
1423
+ }, {
1424
+ id: string;
1425
+ visibility: "private" | "host" | "loopback";
1426
+ protocol: "http" | "tcp" | "https";
1427
+ port: number;
1428
+ canonicalAlias?: string | undefined;
1429
+ authentication?: "none" | "application" | "mtls" | undefined;
1430
+ }>, "many">>;
1431
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1432
+ id: z.ZodString;
1433
+ target: z.ZodString;
1434
+ capability: z.ZodOptional<z.ZodString>;
1435
+ locality: z.ZodDefault<z.ZodEnum<["local", "remote", "either"]>>;
1436
+ reaction: z.ZodEnum<["reload", "restart", "rebuild", "stale", "manual", "none"]>;
1437
+ }, "strict", z.ZodTypeAny, {
1438
+ id: string;
1439
+ target: string;
1440
+ locality: "remote" | "local" | "either";
1441
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1442
+ capability?: string | undefined;
1443
+ }, {
1444
+ id: string;
1445
+ target: string;
1446
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1447
+ capability?: string | undefined;
1448
+ locality?: "remote" | "local" | "either" | undefined;
1449
+ }>, "many">>;
1450
+ statePolicy: z.ZodEnum<["stateless", "ephemeral", "clone", "shared-compatible"]>;
1451
+ migrationPolicy: z.ZodEnum<["none", "explicit-review", "disposable-only"]>;
1452
+ secretRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1453
+ shutdown: z.ZodObject<{
1454
+ drainOperation: z.ZodOptional<z.ZodObject<{
1455
+ command: z.ZodString;
1456
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1457
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1458
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1459
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1460
+ }, "strict", z.ZodTypeAny, {
1461
+ command: string;
1462
+ args: string[];
1463
+ environment: Record<string, string>;
1464
+ timeoutSeconds: number;
1465
+ cwd?: string | undefined;
1466
+ }, {
1467
+ command: string;
1468
+ args?: string[] | undefined;
1469
+ cwd?: string | undefined;
1470
+ environment?: Record<string, string> | undefined;
1471
+ timeoutSeconds?: number | undefined;
1472
+ }>>;
1473
+ graceSeconds: z.ZodDefault<z.ZodNumber>;
1474
+ activeWorkPolicy: z.ZodDefault<z.ZodEnum<["block", "drain", "cancel-authorized"]>>;
1475
+ }, "strict", z.ZodTypeAny, {
1476
+ graceSeconds: number;
1477
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
1478
+ drainOperation?: {
1479
+ command: string;
1480
+ args: string[];
1481
+ environment: Record<string, string>;
1482
+ timeoutSeconds: number;
1483
+ cwd?: string | undefined;
1484
+ } | undefined;
1485
+ }, {
1486
+ graceSeconds?: number | undefined;
1487
+ drainOperation?: {
1488
+ command: string;
1489
+ args?: string[] | undefined;
1490
+ cwd?: string | undefined;
1491
+ environment?: Record<string, string> | undefined;
1492
+ timeoutSeconds?: number | undefined;
1493
+ } | undefined;
1494
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
1495
+ }>;
1496
+ resources: z.ZodDefault<z.ZodObject<{
1497
+ cpuCores: z.ZodOptional<z.ZodNumber>;
1498
+ memoryBytes: z.ZodOptional<z.ZodNumber>;
1499
+ diskBytes: z.ZodOptional<z.ZodNumber>;
1500
+ }, "strict", z.ZodTypeAny, {
1501
+ cpuCores?: number | undefined;
1502
+ memoryBytes?: number | undefined;
1503
+ diskBytes?: number | undefined;
1504
+ }, {
1505
+ cpuCores?: number | undefined;
1506
+ memoryBytes?: number | undefined;
1507
+ diskBytes?: number | undefined;
1508
+ }>>;
1509
+ logs: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1510
+ forbiddenOperations: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1511
+ freeze: z.ZodOptional<z.ZodObject<{
1512
+ kind: z.ZodEnum<["npm-package", "oci-image", "archive", "executable"]>;
1513
+ operation: z.ZodObject<{
1514
+ command: z.ZodString;
1515
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1516
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1517
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1518
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1519
+ }, "strict", z.ZodTypeAny, {
1520
+ command: string;
1521
+ args: string[];
1522
+ environment: Record<string, string>;
1523
+ timeoutSeconds: number;
1524
+ cwd?: string | undefined;
1525
+ }, {
1526
+ command: string;
1527
+ args?: string[] | undefined;
1528
+ cwd?: string | undefined;
1529
+ environment?: Record<string, string> | undefined;
1530
+ timeoutSeconds?: number | undefined;
1531
+ }>;
1532
+ artifacts: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1533
+ contractOperations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1534
+ command: z.ZodString;
1535
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1536
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1537
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1538
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1539
+ }, "strict", z.ZodTypeAny, {
1540
+ command: string;
1541
+ args: string[];
1542
+ environment: Record<string, string>;
1543
+ timeoutSeconds: number;
1544
+ cwd?: string | undefined;
1545
+ }, {
1546
+ command: string;
1547
+ args?: string[] | undefined;
1548
+ cwd?: string | undefined;
1549
+ environment?: Record<string, string> | undefined;
1550
+ timeoutSeconds?: number | undefined;
1551
+ }>, "many">>;
1552
+ }, "strict", z.ZodTypeAny, {
1553
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1554
+ operation: {
1555
+ command: string;
1556
+ args: string[];
1557
+ environment: Record<string, string>;
1558
+ timeoutSeconds: number;
1559
+ cwd?: string | undefined;
1560
+ };
1561
+ artifacts: string[];
1562
+ contractOperations: {
1563
+ command: string;
1564
+ args: string[];
1565
+ environment: Record<string, string>;
1566
+ timeoutSeconds: number;
1567
+ cwd?: string | undefined;
1568
+ }[];
1569
+ }, {
1570
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1571
+ operation: {
1572
+ command: string;
1573
+ args?: string[] | undefined;
1574
+ cwd?: string | undefined;
1575
+ environment?: Record<string, string> | undefined;
1576
+ timeoutSeconds?: number | undefined;
1577
+ };
1578
+ artifacts: string[];
1579
+ contractOperations?: {
1580
+ command: string;
1581
+ args?: string[] | undefined;
1582
+ cwd?: string | undefined;
1583
+ environment?: Record<string, string> | undefined;
1584
+ timeoutSeconds?: number | undefined;
1585
+ }[] | undefined;
1586
+ }>>;
1587
+ promotion: z.ZodObject<{
1588
+ liveAdmissible: z.ZodLiteral<false>;
1589
+ candidateRequiresVerification: z.ZodLiteral<true>;
1590
+ }, "strict", z.ZodTypeAny, {
1591
+ liveAdmissible: false;
1592
+ candidateRequiresVerification: true;
1593
+ }, {
1594
+ liveAdmissible: false;
1595
+ candidateRequiresVerification: true;
1596
+ }>;
1597
+ }, "strict", z.ZodTypeAny, {
1598
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
1599
+ id: string;
1600
+ resources: {
1601
+ cpuCores?: number | undefined;
1602
+ memoryBytes?: number | undefined;
1603
+ diskBytes?: number | undefined;
1604
+ };
1605
+ ready: {
1606
+ path: string;
1607
+ kind: "marker";
1608
+ timeoutSeconds: number;
1609
+ } | {
1610
+ path: string;
1611
+ kind: "http";
1612
+ timeoutSeconds: number;
1613
+ expectedStatus: number;
1614
+ } | {
1615
+ kind: "tcp";
1616
+ timeoutSeconds: number;
1617
+ } | {
1618
+ kind: "process";
1619
+ graceSeconds: number;
1620
+ };
1621
+ executionCustody: "caller" | "manager";
1622
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1623
+ runtimeRequirements: string[];
1624
+ sourceRoots: string[];
1625
+ ignoredPaths: string[];
1626
+ operations: {
1627
+ setup?: {
1628
+ command: string;
1629
+ args: string[];
1630
+ environment: Record<string, string>;
1631
+ timeoutSeconds: number;
1632
+ cwd?: string | undefined;
1633
+ } | undefined;
1634
+ watch?: {
1635
+ command: string;
1636
+ args: string[];
1637
+ environment: Record<string, string>;
1638
+ timeoutSeconds: number;
1639
+ cwd?: string | undefined;
1640
+ } | undefined;
1641
+ build?: {
1642
+ command: string;
1643
+ args: string[];
1644
+ environment: Record<string, string>;
1645
+ timeoutSeconds: number;
1646
+ cwd?: string | undefined;
1647
+ } | undefined;
1648
+ start?: {
1649
+ command: string;
1650
+ args: string[];
1651
+ environment: Record<string, string>;
1652
+ timeoutSeconds: number;
1653
+ cwd?: string | undefined;
1654
+ } | undefined;
1655
+ stop?: {
1656
+ command: string;
1657
+ args: string[];
1658
+ environment: Record<string, string>;
1659
+ timeoutSeconds: number;
1660
+ cwd?: string | undefined;
1661
+ } | undefined;
1662
+ verify?: {
1663
+ command: string;
1664
+ args: string[];
1665
+ environment: Record<string, string>;
1666
+ timeoutSeconds: number;
1667
+ cwd?: string | undefined;
1668
+ } | undefined;
1669
+ cleanup?: {
1670
+ command: string;
1671
+ args: string[];
1672
+ environment: Record<string, string>;
1673
+ timeoutSeconds: number;
1674
+ cwd?: string | undefined;
1675
+ } | undefined;
1676
+ };
1677
+ outputs: {
1678
+ path: string;
1679
+ mediaType: string;
1680
+ digestAlgorithm: "sha256";
1681
+ completionMarker?: string | undefined;
1682
+ }[];
1683
+ endpoints: {
1684
+ id: string;
1685
+ visibility: "private" | "host" | "loopback";
1686
+ protocol: "http" | "tcp" | "https";
1687
+ port: number;
1688
+ authentication: "none" | "application" | "mtls";
1689
+ canonicalAlias?: string | undefined;
1690
+ }[];
1691
+ dependencies: {
1692
+ id: string;
1693
+ target: string;
1694
+ locality: "remote" | "local" | "either";
1695
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1696
+ capability?: string | undefined;
1697
+ }[];
1698
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
1699
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
1700
+ secretRefs: Record<string, string>;
1701
+ shutdown: {
1702
+ graceSeconds: number;
1703
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
1704
+ drainOperation?: {
1705
+ command: string;
1706
+ args: string[];
1707
+ environment: Record<string, string>;
1708
+ timeoutSeconds: number;
1709
+ cwd?: string | undefined;
1710
+ } | undefined;
1711
+ };
1712
+ logs: string[];
1713
+ forbiddenOperations: string[];
1714
+ promotion: {
1715
+ liveAdmissible: false;
1716
+ candidateRequiresVerification: true;
1717
+ };
1718
+ freeze?: {
1719
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1720
+ operation: {
1721
+ command: string;
1722
+ args: string[];
1723
+ environment: Record<string, string>;
1724
+ timeoutSeconds: number;
1725
+ cwd?: string | undefined;
1726
+ };
1727
+ artifacts: string[];
1728
+ contractOperations: {
1729
+ command: string;
1730
+ args: string[];
1731
+ environment: Record<string, string>;
1732
+ timeoutSeconds: number;
1733
+ cwd?: string | undefined;
1734
+ }[];
1735
+ } | undefined;
1736
+ }, {
1737
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
1738
+ id: string;
1739
+ ready: {
1740
+ path: string;
1741
+ kind: "marker";
1742
+ timeoutSeconds: number;
1743
+ } | {
1744
+ path: string;
1745
+ kind: "http";
1746
+ timeoutSeconds: number;
1747
+ expectedStatus?: number | undefined;
1748
+ } | {
1749
+ kind: "tcp";
1750
+ timeoutSeconds: number;
1751
+ } | {
1752
+ kind: "process";
1753
+ graceSeconds?: number | undefined;
1754
+ };
1755
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1756
+ sourceRoots: string[];
1757
+ operations: {
1758
+ setup?: {
1759
+ command: string;
1760
+ args?: string[] | undefined;
1761
+ cwd?: string | undefined;
1762
+ environment?: Record<string, string> | undefined;
1763
+ timeoutSeconds?: number | undefined;
1764
+ } | undefined;
1765
+ watch?: {
1766
+ command: string;
1767
+ args?: string[] | undefined;
1768
+ cwd?: string | undefined;
1769
+ environment?: Record<string, string> | undefined;
1770
+ timeoutSeconds?: number | undefined;
1771
+ } | undefined;
1772
+ build?: {
1773
+ command: string;
1774
+ args?: string[] | undefined;
1775
+ cwd?: string | undefined;
1776
+ environment?: Record<string, string> | undefined;
1777
+ timeoutSeconds?: number | undefined;
1778
+ } | undefined;
1779
+ start?: {
1780
+ command: string;
1781
+ args?: string[] | undefined;
1782
+ cwd?: string | undefined;
1783
+ environment?: Record<string, string> | undefined;
1784
+ timeoutSeconds?: number | undefined;
1785
+ } | undefined;
1786
+ stop?: {
1787
+ command: string;
1788
+ args?: string[] | undefined;
1789
+ cwd?: string | undefined;
1790
+ environment?: Record<string, string> | undefined;
1791
+ timeoutSeconds?: number | undefined;
1792
+ } | undefined;
1793
+ verify?: {
1794
+ command: string;
1795
+ args?: string[] | undefined;
1796
+ cwd?: string | undefined;
1797
+ environment?: Record<string, string> | undefined;
1798
+ timeoutSeconds?: number | undefined;
1799
+ } | undefined;
1800
+ cleanup?: {
1801
+ command: string;
1802
+ args?: string[] | undefined;
1803
+ cwd?: string | undefined;
1804
+ environment?: Record<string, string> | undefined;
1805
+ timeoutSeconds?: number | undefined;
1806
+ } | undefined;
1807
+ };
1808
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
1809
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
1810
+ shutdown: {
1811
+ graceSeconds?: number | undefined;
1812
+ drainOperation?: {
1813
+ command: string;
1814
+ args?: string[] | undefined;
1815
+ cwd?: string | undefined;
1816
+ environment?: Record<string, string> | undefined;
1817
+ timeoutSeconds?: number | undefined;
1818
+ } | undefined;
1819
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
1820
+ };
1821
+ promotion: {
1822
+ liveAdmissible: false;
1823
+ candidateRequiresVerification: true;
1824
+ };
1825
+ resources?: {
1826
+ cpuCores?: number | undefined;
1827
+ memoryBytes?: number | undefined;
1828
+ diskBytes?: number | undefined;
1829
+ } | undefined;
1830
+ executionCustody?: "caller" | "manager" | undefined;
1831
+ runtimeRequirements?: string[] | undefined;
1832
+ ignoredPaths?: string[] | undefined;
1833
+ outputs?: {
1834
+ path: string;
1835
+ mediaType: string;
1836
+ completionMarker?: string | undefined;
1837
+ digestAlgorithm?: "sha256" | undefined;
1838
+ }[] | undefined;
1839
+ endpoints?: {
1840
+ id: string;
1841
+ visibility: "private" | "host" | "loopback";
1842
+ protocol: "http" | "tcp" | "https";
1843
+ port: number;
1844
+ canonicalAlias?: string | undefined;
1845
+ authentication?: "none" | "application" | "mtls" | undefined;
1846
+ }[] | undefined;
1847
+ dependencies?: {
1848
+ id: string;
1849
+ target: string;
1850
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1851
+ capability?: string | undefined;
1852
+ locality?: "remote" | "local" | "either" | undefined;
1853
+ }[] | undefined;
1854
+ secretRefs?: Record<string, string> | undefined;
1855
+ logs?: string[] | undefined;
1856
+ forbiddenOperations?: string[] | undefined;
1857
+ freeze?: {
1858
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1859
+ operation: {
1860
+ command: string;
1861
+ args?: string[] | undefined;
1862
+ cwd?: string | undefined;
1863
+ environment?: Record<string, string> | undefined;
1864
+ timeoutSeconds?: number | undefined;
1865
+ };
1866
+ artifacts: string[];
1867
+ contractOperations?: {
1868
+ command: string;
1869
+ args?: string[] | undefined;
1870
+ cwd?: string | undefined;
1871
+ environment?: Record<string, string> | undefined;
1872
+ timeoutSeconds?: number | undefined;
1873
+ }[] | undefined;
1874
+ } | undefined;
1875
+ }>, {
1876
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
1877
+ id: string;
1878
+ resources: {
1879
+ cpuCores?: number | undefined;
1880
+ memoryBytes?: number | undefined;
1881
+ diskBytes?: number | undefined;
1882
+ };
1883
+ ready: {
1884
+ path: string;
1885
+ kind: "marker";
1886
+ timeoutSeconds: number;
1887
+ } | {
1888
+ path: string;
1889
+ kind: "http";
1890
+ timeoutSeconds: number;
1891
+ expectedStatus: number;
1892
+ } | {
1893
+ kind: "tcp";
1894
+ timeoutSeconds: number;
1895
+ } | {
1896
+ kind: "process";
1897
+ graceSeconds: number;
1898
+ };
1899
+ executionCustody: "caller" | "manager";
1900
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1901
+ runtimeRequirements: string[];
1902
+ sourceRoots: string[];
1903
+ ignoredPaths: string[];
1904
+ operations: {
1905
+ setup?: {
1906
+ command: string;
1907
+ args: string[];
1908
+ environment: Record<string, string>;
1909
+ timeoutSeconds: number;
1910
+ cwd?: string | undefined;
1911
+ } | undefined;
1912
+ watch?: {
1913
+ command: string;
1914
+ args: string[];
1915
+ environment: Record<string, string>;
1916
+ timeoutSeconds: number;
1917
+ cwd?: string | undefined;
1918
+ } | undefined;
1919
+ build?: {
1920
+ command: string;
1921
+ args: string[];
1922
+ environment: Record<string, string>;
1923
+ timeoutSeconds: number;
1924
+ cwd?: string | undefined;
1925
+ } | undefined;
1926
+ start?: {
1927
+ command: string;
1928
+ args: string[];
1929
+ environment: Record<string, string>;
1930
+ timeoutSeconds: number;
1931
+ cwd?: string | undefined;
1932
+ } | undefined;
1933
+ stop?: {
1934
+ command: string;
1935
+ args: string[];
1936
+ environment: Record<string, string>;
1937
+ timeoutSeconds: number;
1938
+ cwd?: string | undefined;
1939
+ } | undefined;
1940
+ verify?: {
1941
+ command: string;
1942
+ args: string[];
1943
+ environment: Record<string, string>;
1944
+ timeoutSeconds: number;
1945
+ cwd?: string | undefined;
1946
+ } | undefined;
1947
+ cleanup?: {
1948
+ command: string;
1949
+ args: string[];
1950
+ environment: Record<string, string>;
1951
+ timeoutSeconds: number;
1952
+ cwd?: string | undefined;
1953
+ } | undefined;
1954
+ };
1955
+ outputs: {
1956
+ path: string;
1957
+ mediaType: string;
1958
+ digestAlgorithm: "sha256";
1959
+ completionMarker?: string | undefined;
1960
+ }[];
1961
+ endpoints: {
1962
+ id: string;
1963
+ visibility: "private" | "host" | "loopback";
1964
+ protocol: "http" | "tcp" | "https";
1965
+ port: number;
1966
+ authentication: "none" | "application" | "mtls";
1967
+ canonicalAlias?: string | undefined;
1968
+ }[];
1969
+ dependencies: {
1970
+ id: string;
1971
+ target: string;
1972
+ locality: "remote" | "local" | "either";
1973
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1974
+ capability?: string | undefined;
1975
+ }[];
1976
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
1977
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
1978
+ secretRefs: Record<string, string>;
1979
+ shutdown: {
1980
+ graceSeconds: number;
1981
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
1982
+ drainOperation?: {
1983
+ command: string;
1984
+ args: string[];
1985
+ environment: Record<string, string>;
1986
+ timeoutSeconds: number;
1987
+ cwd?: string | undefined;
1988
+ } | undefined;
1989
+ };
1990
+ logs: string[];
1991
+ forbiddenOperations: string[];
1992
+ promotion: {
1993
+ liveAdmissible: false;
1994
+ candidateRequiresVerification: true;
1995
+ };
1996
+ freeze?: {
1997
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1998
+ operation: {
1999
+ command: string;
2000
+ args: string[];
2001
+ environment: Record<string, string>;
2002
+ timeoutSeconds: number;
2003
+ cwd?: string | undefined;
2004
+ };
2005
+ artifacts: string[];
2006
+ contractOperations: {
2007
+ command: string;
2008
+ args: string[];
2009
+ environment: Record<string, string>;
2010
+ timeoutSeconds: number;
2011
+ cwd?: string | undefined;
2012
+ }[];
2013
+ } | undefined;
2014
+ }, {
2015
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2016
+ id: string;
2017
+ ready: {
2018
+ path: string;
2019
+ kind: "marker";
2020
+ timeoutSeconds: number;
2021
+ } | {
2022
+ path: string;
2023
+ kind: "http";
2024
+ timeoutSeconds: number;
2025
+ expectedStatus?: number | undefined;
2026
+ } | {
2027
+ kind: "tcp";
2028
+ timeoutSeconds: number;
2029
+ } | {
2030
+ kind: "process";
2031
+ graceSeconds?: number | undefined;
2032
+ };
2033
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2034
+ sourceRoots: string[];
2035
+ operations: {
2036
+ setup?: {
2037
+ command: string;
2038
+ args?: string[] | undefined;
2039
+ cwd?: string | undefined;
2040
+ environment?: Record<string, string> | undefined;
2041
+ timeoutSeconds?: number | undefined;
2042
+ } | undefined;
2043
+ watch?: {
2044
+ command: string;
2045
+ args?: string[] | undefined;
2046
+ cwd?: string | undefined;
2047
+ environment?: Record<string, string> | undefined;
2048
+ timeoutSeconds?: number | undefined;
2049
+ } | undefined;
2050
+ build?: {
2051
+ command: string;
2052
+ args?: string[] | undefined;
2053
+ cwd?: string | undefined;
2054
+ environment?: Record<string, string> | undefined;
2055
+ timeoutSeconds?: number | undefined;
2056
+ } | undefined;
2057
+ start?: {
2058
+ command: string;
2059
+ args?: string[] | undefined;
2060
+ cwd?: string | undefined;
2061
+ environment?: Record<string, string> | undefined;
2062
+ timeoutSeconds?: number | undefined;
2063
+ } | undefined;
2064
+ stop?: {
2065
+ command: string;
2066
+ args?: string[] | undefined;
2067
+ cwd?: string | undefined;
2068
+ environment?: Record<string, string> | undefined;
2069
+ timeoutSeconds?: number | undefined;
2070
+ } | undefined;
2071
+ verify?: {
2072
+ command: string;
2073
+ args?: string[] | undefined;
2074
+ cwd?: string | undefined;
2075
+ environment?: Record<string, string> | undefined;
2076
+ timeoutSeconds?: number | undefined;
2077
+ } | undefined;
2078
+ cleanup?: {
2079
+ command: string;
2080
+ args?: string[] | undefined;
2081
+ cwd?: string | undefined;
2082
+ environment?: Record<string, string> | undefined;
2083
+ timeoutSeconds?: number | undefined;
2084
+ } | undefined;
2085
+ };
2086
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
2087
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2088
+ shutdown: {
2089
+ graceSeconds?: number | undefined;
2090
+ drainOperation?: {
2091
+ command: string;
2092
+ args?: string[] | undefined;
2093
+ cwd?: string | undefined;
2094
+ environment?: Record<string, string> | undefined;
2095
+ timeoutSeconds?: number | undefined;
2096
+ } | undefined;
2097
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
2098
+ };
2099
+ promotion: {
2100
+ liveAdmissible: false;
2101
+ candidateRequiresVerification: true;
2102
+ };
2103
+ resources?: {
2104
+ cpuCores?: number | undefined;
2105
+ memoryBytes?: number | undefined;
2106
+ diskBytes?: number | undefined;
2107
+ } | undefined;
2108
+ executionCustody?: "caller" | "manager" | undefined;
2109
+ runtimeRequirements?: string[] | undefined;
2110
+ ignoredPaths?: string[] | undefined;
2111
+ outputs?: {
2112
+ path: string;
2113
+ mediaType: string;
2114
+ completionMarker?: string | undefined;
2115
+ digestAlgorithm?: "sha256" | undefined;
2116
+ }[] | undefined;
2117
+ endpoints?: {
2118
+ id: string;
2119
+ visibility: "private" | "host" | "loopback";
2120
+ protocol: "http" | "tcp" | "https";
2121
+ port: number;
2122
+ canonicalAlias?: string | undefined;
2123
+ authentication?: "none" | "application" | "mtls" | undefined;
2124
+ }[] | undefined;
2125
+ dependencies?: {
2126
+ id: string;
2127
+ target: string;
2128
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2129
+ capability?: string | undefined;
2130
+ locality?: "remote" | "local" | "either" | undefined;
2131
+ }[] | undefined;
2132
+ secretRefs?: Record<string, string> | undefined;
2133
+ logs?: string[] | undefined;
2134
+ forbiddenOperations?: string[] | undefined;
2135
+ freeze?: {
2136
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2137
+ operation: {
2138
+ command: string;
2139
+ args?: string[] | undefined;
2140
+ cwd?: string | undefined;
2141
+ environment?: Record<string, string> | undefined;
2142
+ timeoutSeconds?: number | undefined;
2143
+ };
2144
+ artifacts: string[];
2145
+ contractOperations?: {
2146
+ command: string;
2147
+ args?: string[] | undefined;
2148
+ cwd?: string | undefined;
2149
+ environment?: Record<string, string> | undefined;
2150
+ timeoutSeconds?: number | undefined;
2151
+ }[] | undefined;
2152
+ } | undefined;
2153
+ }>, "many">;
2154
+ }, "strict", z.ZodTypeAny, {
2155
+ schemaVersion: "treeseed.development-runtime/v2";
2156
+ project: {
2157
+ id: string;
2158
+ repository: string;
2159
+ };
2160
+ targets: {
2161
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2162
+ id: string;
2163
+ resources: {
2164
+ cpuCores?: number | undefined;
2165
+ memoryBytes?: number | undefined;
2166
+ diskBytes?: number | undefined;
2167
+ };
2168
+ ready: {
2169
+ path: string;
2170
+ kind: "marker";
2171
+ timeoutSeconds: number;
2172
+ } | {
2173
+ path: string;
2174
+ kind: "http";
2175
+ timeoutSeconds: number;
2176
+ expectedStatus: number;
2177
+ } | {
2178
+ kind: "tcp";
2179
+ timeoutSeconds: number;
2180
+ } | {
2181
+ kind: "process";
2182
+ graceSeconds: number;
2183
+ };
2184
+ executionCustody: "caller" | "manager";
2185
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2186
+ runtimeRequirements: string[];
2187
+ sourceRoots: string[];
2188
+ ignoredPaths: string[];
2189
+ operations: {
2190
+ setup?: {
2191
+ command: string;
2192
+ args: string[];
2193
+ environment: Record<string, string>;
2194
+ timeoutSeconds: number;
2195
+ cwd?: string | undefined;
2196
+ } | undefined;
2197
+ watch?: {
2198
+ command: string;
2199
+ args: string[];
2200
+ environment: Record<string, string>;
2201
+ timeoutSeconds: number;
2202
+ cwd?: string | undefined;
2203
+ } | undefined;
2204
+ build?: {
2205
+ command: string;
2206
+ args: string[];
2207
+ environment: Record<string, string>;
2208
+ timeoutSeconds: number;
2209
+ cwd?: string | undefined;
2210
+ } | undefined;
2211
+ start?: {
2212
+ command: string;
2213
+ args: string[];
2214
+ environment: Record<string, string>;
2215
+ timeoutSeconds: number;
2216
+ cwd?: string | undefined;
2217
+ } | undefined;
2218
+ stop?: {
2219
+ command: string;
2220
+ args: string[];
2221
+ environment: Record<string, string>;
2222
+ timeoutSeconds: number;
2223
+ cwd?: string | undefined;
2224
+ } | undefined;
2225
+ verify?: {
2226
+ command: string;
2227
+ args: string[];
2228
+ environment: Record<string, string>;
2229
+ timeoutSeconds: number;
2230
+ cwd?: string | undefined;
2231
+ } | undefined;
2232
+ cleanup?: {
2233
+ command: string;
2234
+ args: string[];
2235
+ environment: Record<string, string>;
2236
+ timeoutSeconds: number;
2237
+ cwd?: string | undefined;
2238
+ } | undefined;
2239
+ };
2240
+ outputs: {
2241
+ path: string;
2242
+ mediaType: string;
2243
+ digestAlgorithm: "sha256";
2244
+ completionMarker?: string | undefined;
2245
+ }[];
2246
+ endpoints: {
2247
+ id: string;
2248
+ visibility: "private" | "host" | "loopback";
2249
+ protocol: "http" | "tcp" | "https";
2250
+ port: number;
2251
+ authentication: "none" | "application" | "mtls";
2252
+ canonicalAlias?: string | undefined;
2253
+ }[];
2254
+ dependencies: {
2255
+ id: string;
2256
+ target: string;
2257
+ locality: "remote" | "local" | "either";
2258
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2259
+ capability?: string | undefined;
2260
+ }[];
2261
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
2262
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2263
+ secretRefs: Record<string, string>;
2264
+ shutdown: {
2265
+ graceSeconds: number;
2266
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
2267
+ drainOperation?: {
2268
+ command: string;
2269
+ args: string[];
2270
+ environment: Record<string, string>;
2271
+ timeoutSeconds: number;
2272
+ cwd?: string | undefined;
2273
+ } | undefined;
2274
+ };
2275
+ logs: string[];
2276
+ forbiddenOperations: string[];
2277
+ promotion: {
2278
+ liveAdmissible: false;
2279
+ candidateRequiresVerification: true;
2280
+ };
2281
+ freeze?: {
2282
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2283
+ operation: {
2284
+ command: string;
2285
+ args: string[];
2286
+ environment: Record<string, string>;
2287
+ timeoutSeconds: number;
2288
+ cwd?: string | undefined;
2289
+ };
2290
+ artifacts: string[];
2291
+ contractOperations: {
2292
+ command: string;
2293
+ args: string[];
2294
+ environment: Record<string, string>;
2295
+ timeoutSeconds: number;
2296
+ cwd?: string | undefined;
2297
+ }[];
2298
+ } | undefined;
2299
+ }[];
2300
+ defaults: {
2301
+ restoreOnFailure: boolean;
2302
+ };
2303
+ }, {
2304
+ schemaVersion: "treeseed.development-runtime/v2";
2305
+ project: {
2306
+ id: string;
2307
+ repository: string;
2308
+ };
2309
+ targets: {
2310
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2311
+ id: string;
2312
+ ready: {
2313
+ path: string;
2314
+ kind: "marker";
2315
+ timeoutSeconds: number;
2316
+ } | {
2317
+ path: string;
2318
+ kind: "http";
2319
+ timeoutSeconds: number;
2320
+ expectedStatus?: number | undefined;
2321
+ } | {
2322
+ kind: "tcp";
2323
+ timeoutSeconds: number;
2324
+ } | {
2325
+ kind: "process";
2326
+ graceSeconds?: number | undefined;
2327
+ };
2328
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2329
+ sourceRoots: string[];
2330
+ operations: {
2331
+ setup?: {
2332
+ command: string;
2333
+ args?: string[] | undefined;
2334
+ cwd?: string | undefined;
2335
+ environment?: Record<string, string> | undefined;
2336
+ timeoutSeconds?: number | undefined;
2337
+ } | undefined;
2338
+ watch?: {
2339
+ command: string;
2340
+ args?: string[] | undefined;
2341
+ cwd?: string | undefined;
2342
+ environment?: Record<string, string> | undefined;
2343
+ timeoutSeconds?: number | undefined;
2344
+ } | undefined;
2345
+ build?: {
2346
+ command: string;
2347
+ args?: string[] | undefined;
2348
+ cwd?: string | undefined;
2349
+ environment?: Record<string, string> | undefined;
2350
+ timeoutSeconds?: number | undefined;
2351
+ } | undefined;
2352
+ start?: {
2353
+ command: string;
2354
+ args?: string[] | undefined;
2355
+ cwd?: string | undefined;
2356
+ environment?: Record<string, string> | undefined;
2357
+ timeoutSeconds?: number | undefined;
2358
+ } | undefined;
2359
+ stop?: {
2360
+ command: string;
2361
+ args?: string[] | undefined;
2362
+ cwd?: string | undefined;
2363
+ environment?: Record<string, string> | undefined;
2364
+ timeoutSeconds?: number | undefined;
2365
+ } | undefined;
2366
+ verify?: {
2367
+ command: string;
2368
+ args?: string[] | undefined;
2369
+ cwd?: string | undefined;
2370
+ environment?: Record<string, string> | undefined;
2371
+ timeoutSeconds?: number | undefined;
2372
+ } | undefined;
2373
+ cleanup?: {
2374
+ command: string;
2375
+ args?: string[] | undefined;
2376
+ cwd?: string | undefined;
2377
+ environment?: Record<string, string> | undefined;
2378
+ timeoutSeconds?: number | undefined;
2379
+ } | undefined;
2380
+ };
2381
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
2382
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2383
+ shutdown: {
2384
+ graceSeconds?: number | undefined;
2385
+ drainOperation?: {
2386
+ command: string;
2387
+ args?: string[] | undefined;
2388
+ cwd?: string | undefined;
2389
+ environment?: Record<string, string> | undefined;
2390
+ timeoutSeconds?: number | undefined;
2391
+ } | undefined;
2392
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
2393
+ };
2394
+ promotion: {
2395
+ liveAdmissible: false;
2396
+ candidateRequiresVerification: true;
2397
+ };
2398
+ resources?: {
2399
+ cpuCores?: number | undefined;
2400
+ memoryBytes?: number | undefined;
2401
+ diskBytes?: number | undefined;
2402
+ } | undefined;
2403
+ executionCustody?: "caller" | "manager" | undefined;
2404
+ runtimeRequirements?: string[] | undefined;
2405
+ ignoredPaths?: string[] | undefined;
2406
+ outputs?: {
2407
+ path: string;
2408
+ mediaType: string;
2409
+ completionMarker?: string | undefined;
2410
+ digestAlgorithm?: "sha256" | undefined;
2411
+ }[] | undefined;
2412
+ endpoints?: {
2413
+ id: string;
2414
+ visibility: "private" | "host" | "loopback";
2415
+ protocol: "http" | "tcp" | "https";
2416
+ port: number;
2417
+ canonicalAlias?: string | undefined;
2418
+ authentication?: "none" | "application" | "mtls" | undefined;
2419
+ }[] | undefined;
2420
+ dependencies?: {
2421
+ id: string;
2422
+ target: string;
2423
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2424
+ capability?: string | undefined;
2425
+ locality?: "remote" | "local" | "either" | undefined;
2426
+ }[] | undefined;
2427
+ secretRefs?: Record<string, string> | undefined;
2428
+ logs?: string[] | undefined;
2429
+ forbiddenOperations?: string[] | undefined;
2430
+ freeze?: {
2431
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2432
+ operation: {
2433
+ command: string;
2434
+ args?: string[] | undefined;
2435
+ cwd?: string | undefined;
2436
+ environment?: Record<string, string> | undefined;
2437
+ timeoutSeconds?: number | undefined;
2438
+ };
2439
+ artifacts: string[];
2440
+ contractOperations?: {
2441
+ command: string;
2442
+ args?: string[] | undefined;
2443
+ cwd?: string | undefined;
2444
+ environment?: Record<string, string> | undefined;
2445
+ timeoutSeconds?: number | undefined;
2446
+ }[] | undefined;
2447
+ } | undefined;
2448
+ }[];
2449
+ defaults: {
2450
+ restoreOnFailure?: boolean | undefined;
2451
+ };
2452
+ }>, {
2453
+ schemaVersion: "treeseed.development-runtime/v2";
2454
+ project: {
2455
+ id: string;
2456
+ repository: string;
2457
+ };
2458
+ targets: {
2459
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2460
+ id: string;
2461
+ resources: {
2462
+ cpuCores?: number | undefined;
2463
+ memoryBytes?: number | undefined;
2464
+ diskBytes?: number | undefined;
2465
+ };
2466
+ ready: {
2467
+ path: string;
2468
+ kind: "marker";
2469
+ timeoutSeconds: number;
2470
+ } | {
2471
+ path: string;
2472
+ kind: "http";
2473
+ timeoutSeconds: number;
2474
+ expectedStatus: number;
2475
+ } | {
2476
+ kind: "tcp";
2477
+ timeoutSeconds: number;
2478
+ } | {
2479
+ kind: "process";
2480
+ graceSeconds: number;
2481
+ };
2482
+ executionCustody: "caller" | "manager";
2483
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2484
+ runtimeRequirements: string[];
2485
+ sourceRoots: string[];
2486
+ ignoredPaths: string[];
2487
+ operations: {
2488
+ setup?: {
2489
+ command: string;
2490
+ args: string[];
2491
+ environment: Record<string, string>;
2492
+ timeoutSeconds: number;
2493
+ cwd?: string | undefined;
2494
+ } | undefined;
2495
+ watch?: {
2496
+ command: string;
2497
+ args: string[];
2498
+ environment: Record<string, string>;
2499
+ timeoutSeconds: number;
2500
+ cwd?: string | undefined;
2501
+ } | undefined;
2502
+ build?: {
2503
+ command: string;
2504
+ args: string[];
2505
+ environment: Record<string, string>;
2506
+ timeoutSeconds: number;
2507
+ cwd?: string | undefined;
2508
+ } | undefined;
2509
+ start?: {
2510
+ command: string;
2511
+ args: string[];
2512
+ environment: Record<string, string>;
2513
+ timeoutSeconds: number;
2514
+ cwd?: string | undefined;
2515
+ } | undefined;
2516
+ stop?: {
2517
+ command: string;
2518
+ args: string[];
2519
+ environment: Record<string, string>;
2520
+ timeoutSeconds: number;
2521
+ cwd?: string | undefined;
2522
+ } | undefined;
2523
+ verify?: {
2524
+ command: string;
2525
+ args: string[];
2526
+ environment: Record<string, string>;
2527
+ timeoutSeconds: number;
2528
+ cwd?: string | undefined;
2529
+ } | undefined;
2530
+ cleanup?: {
2531
+ command: string;
2532
+ args: string[];
2533
+ environment: Record<string, string>;
2534
+ timeoutSeconds: number;
2535
+ cwd?: string | undefined;
2536
+ } | undefined;
2537
+ };
2538
+ outputs: {
2539
+ path: string;
2540
+ mediaType: string;
2541
+ digestAlgorithm: "sha256";
2542
+ completionMarker?: string | undefined;
2543
+ }[];
2544
+ endpoints: {
2545
+ id: string;
2546
+ visibility: "private" | "host" | "loopback";
2547
+ protocol: "http" | "tcp" | "https";
2548
+ port: number;
2549
+ authentication: "none" | "application" | "mtls";
2550
+ canonicalAlias?: string | undefined;
2551
+ }[];
2552
+ dependencies: {
2553
+ id: string;
2554
+ target: string;
2555
+ locality: "remote" | "local" | "either";
2556
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2557
+ capability?: string | undefined;
2558
+ }[];
2559
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
2560
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2561
+ secretRefs: Record<string, string>;
2562
+ shutdown: {
2563
+ graceSeconds: number;
2564
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
2565
+ drainOperation?: {
2566
+ command: string;
2567
+ args: string[];
2568
+ environment: Record<string, string>;
2569
+ timeoutSeconds: number;
2570
+ cwd?: string | undefined;
2571
+ } | undefined;
2572
+ };
2573
+ logs: string[];
2574
+ forbiddenOperations: string[];
2575
+ promotion: {
2576
+ liveAdmissible: false;
2577
+ candidateRequiresVerification: true;
2578
+ };
2579
+ freeze?: {
2580
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2581
+ operation: {
2582
+ command: string;
2583
+ args: string[];
2584
+ environment: Record<string, string>;
2585
+ timeoutSeconds: number;
2586
+ cwd?: string | undefined;
2587
+ };
2588
+ artifacts: string[];
2589
+ contractOperations: {
2590
+ command: string;
2591
+ args: string[];
2592
+ environment: Record<string, string>;
2593
+ timeoutSeconds: number;
2594
+ cwd?: string | undefined;
2595
+ }[];
2596
+ } | undefined;
2597
+ }[];
2598
+ defaults: {
2599
+ restoreOnFailure: boolean;
2600
+ };
2601
+ }, {
2602
+ schemaVersion: "treeseed.development-runtime/v2";
2603
+ project: {
2604
+ id: string;
2605
+ repository: string;
2606
+ };
2607
+ targets: {
2608
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2609
+ id: string;
2610
+ ready: {
2611
+ path: string;
2612
+ kind: "marker";
2613
+ timeoutSeconds: number;
2614
+ } | {
2615
+ path: string;
2616
+ kind: "http";
2617
+ timeoutSeconds: number;
2618
+ expectedStatus?: number | undefined;
2619
+ } | {
2620
+ kind: "tcp";
2621
+ timeoutSeconds: number;
2622
+ } | {
2623
+ kind: "process";
2624
+ graceSeconds?: number | undefined;
2625
+ };
2626
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2627
+ sourceRoots: string[];
2628
+ operations: {
2629
+ setup?: {
2630
+ command: string;
2631
+ args?: string[] | undefined;
2632
+ cwd?: string | undefined;
2633
+ environment?: Record<string, string> | undefined;
2634
+ timeoutSeconds?: number | undefined;
2635
+ } | undefined;
2636
+ watch?: {
2637
+ command: string;
2638
+ args?: string[] | undefined;
2639
+ cwd?: string | undefined;
2640
+ environment?: Record<string, string> | undefined;
2641
+ timeoutSeconds?: number | undefined;
2642
+ } | undefined;
2643
+ build?: {
2644
+ command: string;
2645
+ args?: string[] | undefined;
2646
+ cwd?: string | undefined;
2647
+ environment?: Record<string, string> | undefined;
2648
+ timeoutSeconds?: number | undefined;
2649
+ } | undefined;
2650
+ start?: {
2651
+ command: string;
2652
+ args?: string[] | undefined;
2653
+ cwd?: string | undefined;
2654
+ environment?: Record<string, string> | undefined;
2655
+ timeoutSeconds?: number | undefined;
2656
+ } | undefined;
2657
+ stop?: {
2658
+ command: string;
2659
+ args?: string[] | undefined;
2660
+ cwd?: string | undefined;
2661
+ environment?: Record<string, string> | undefined;
2662
+ timeoutSeconds?: number | undefined;
2663
+ } | undefined;
2664
+ verify?: {
2665
+ command: string;
2666
+ args?: string[] | undefined;
2667
+ cwd?: string | undefined;
2668
+ environment?: Record<string, string> | undefined;
2669
+ timeoutSeconds?: number | undefined;
2670
+ } | undefined;
2671
+ cleanup?: {
2672
+ command: string;
2673
+ args?: string[] | undefined;
2674
+ cwd?: string | undefined;
2675
+ environment?: Record<string, string> | undefined;
2676
+ timeoutSeconds?: number | undefined;
2677
+ } | undefined;
2678
+ };
2679
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
2680
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2681
+ shutdown: {
2682
+ graceSeconds?: number | undefined;
2683
+ drainOperation?: {
2684
+ command: string;
2685
+ args?: string[] | undefined;
2686
+ cwd?: string | undefined;
2687
+ environment?: Record<string, string> | undefined;
2688
+ timeoutSeconds?: number | undefined;
2689
+ } | undefined;
2690
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
2691
+ };
2692
+ promotion: {
2693
+ liveAdmissible: false;
2694
+ candidateRequiresVerification: true;
2695
+ };
2696
+ resources?: {
2697
+ cpuCores?: number | undefined;
2698
+ memoryBytes?: number | undefined;
2699
+ diskBytes?: number | undefined;
2700
+ } | undefined;
2701
+ executionCustody?: "caller" | "manager" | undefined;
2702
+ runtimeRequirements?: string[] | undefined;
2703
+ ignoredPaths?: string[] | undefined;
2704
+ outputs?: {
2705
+ path: string;
2706
+ mediaType: string;
2707
+ completionMarker?: string | undefined;
2708
+ digestAlgorithm?: "sha256" | undefined;
2709
+ }[] | undefined;
2710
+ endpoints?: {
2711
+ id: string;
2712
+ visibility: "private" | "host" | "loopback";
2713
+ protocol: "http" | "tcp" | "https";
2714
+ port: number;
2715
+ canonicalAlias?: string | undefined;
2716
+ authentication?: "none" | "application" | "mtls" | undefined;
2717
+ }[] | undefined;
2718
+ dependencies?: {
2719
+ id: string;
2720
+ target: string;
2721
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2722
+ capability?: string | undefined;
2723
+ locality?: "remote" | "local" | "either" | undefined;
2724
+ }[] | undefined;
2725
+ secretRefs?: Record<string, string> | undefined;
2726
+ logs?: string[] | undefined;
2727
+ forbiddenOperations?: string[] | undefined;
2728
+ freeze?: {
2729
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2730
+ operation: {
2731
+ command: string;
2732
+ args?: string[] | undefined;
2733
+ cwd?: string | undefined;
2734
+ environment?: Record<string, string> | undefined;
2735
+ timeoutSeconds?: number | undefined;
2736
+ };
2737
+ artifacts: string[];
2738
+ contractOperations?: {
2739
+ command: string;
2740
+ args?: string[] | undefined;
2741
+ cwd?: string | undefined;
2742
+ environment?: Record<string, string> | undefined;
2743
+ timeoutSeconds?: number | undefined;
2744
+ }[] | undefined;
2745
+ } | undefined;
2746
+ }[];
2747
+ defaults: {
2748
+ restoreOnFailure?: boolean | undefined;
2749
+ };
2750
+ }>, {
2751
+ schemaVersion: "treeseed.development-runtime/v2";
2752
+ project: {
2753
+ id: string;
2754
+ repository: string;
2755
+ };
2756
+ targets: {
2757
+ kind: "source-check" | "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2758
+ id: string;
2759
+ resources: {
2760
+ cpuCores?: number | undefined;
2761
+ memoryBytes?: number | undefined;
2762
+ diskBytes?: number | undefined;
2763
+ };
2764
+ ready: {
2765
+ path: string;
2766
+ kind: "marker";
2767
+ timeoutSeconds: number;
2768
+ } | {
2769
+ path: string;
2770
+ kind: "http";
2771
+ timeoutSeconds: number;
2772
+ expectedStatus: number;
2773
+ } | {
2774
+ kind: "tcp";
2775
+ timeoutSeconds: number;
2776
+ } | {
2777
+ kind: "process";
2778
+ graceSeconds: number;
2779
+ };
2780
+ executionCustody: "caller" | "manager";
2781
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2782
+ runtimeRequirements: string[];
2783
+ sourceRoots: string[];
2784
+ ignoredPaths: string[];
2785
+ operations: {
2786
+ setup?: {
2787
+ command: string;
2788
+ args: string[];
2789
+ environment: Record<string, string>;
2790
+ timeoutSeconds: number;
2791
+ cwd?: string | undefined;
2792
+ } | undefined;
2793
+ watch?: {
2794
+ command: string;
2795
+ args: string[];
2796
+ environment: Record<string, string>;
2797
+ timeoutSeconds: number;
2798
+ cwd?: string | undefined;
2799
+ } | undefined;
2800
+ build?: {
2801
+ command: string;
2802
+ args: string[];
2803
+ environment: Record<string, string>;
2804
+ timeoutSeconds: number;
2805
+ cwd?: string | undefined;
2806
+ } | undefined;
2807
+ start?: {
2808
+ command: string;
2809
+ args: string[];
2810
+ environment: Record<string, string>;
2811
+ timeoutSeconds: number;
2812
+ cwd?: string | undefined;
2813
+ } | undefined;
2814
+ stop?: {
2815
+ command: string;
2816
+ args: string[];
2817
+ environment: Record<string, string>;
2818
+ timeoutSeconds: number;
2819
+ cwd?: string | undefined;
2820
+ } | undefined;
2821
+ verify?: {
2822
+ command: string;
2823
+ args: string[];
2824
+ environment: Record<string, string>;
2825
+ timeoutSeconds: number;
2826
+ cwd?: string | undefined;
2827
+ } | undefined;
2828
+ cleanup?: {
2829
+ command: string;
2830
+ args: string[];
2831
+ environment: Record<string, string>;
2832
+ timeoutSeconds: number;
2833
+ cwd?: string | undefined;
2834
+ } | undefined;
2835
+ };
2836
+ outputs: {
2837
+ path: string;
2838
+ mediaType: string;
2839
+ digestAlgorithm: "sha256";
2840
+ completionMarker?: string | undefined;
2841
+ }[];
2842
+ endpoints: {
2843
+ id: string;
2844
+ visibility: "private" | "host" | "loopback";
2845
+ protocol: "http" | "tcp" | "https";
2846
+ port: number;
2847
+ authentication: "none" | "application" | "mtls";
2848
+ canonicalAlias?: string | undefined;
2849
+ }[];
2850
+ dependencies: {
2851
+ id: string;
2852
+ target: string;
2853
+ locality: "remote" | "local" | "either";
2854
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2855
+ capability?: string | undefined;
2856
+ }[];
2857
+ statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
2858
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2859
+ secretRefs: Record<string, string>;
2860
+ shutdown: {
2861
+ graceSeconds: number;
2862
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
2863
+ drainOperation?: {
2864
+ command: string;
2865
+ args: string[];
2866
+ environment: Record<string, string>;
2867
+ timeoutSeconds: number;
2868
+ cwd?: string | undefined;
2869
+ } | undefined;
2870
+ };
2871
+ logs: string[];
2872
+ forbiddenOperations: string[];
2873
+ promotion: {
2874
+ liveAdmissible: false;
2875
+ candidateRequiresVerification: true;
2876
+ };
2877
+ freeze?: {
2878
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2879
+ operation: {
2880
+ command: string;
2881
+ args: string[];
2882
+ environment: Record<string, string>;
2883
+ timeoutSeconds: number;
2884
+ cwd?: string | undefined;
2885
+ };
2886
+ artifacts: string[];
2887
+ contractOperations: {
2888
+ command: string;
2889
+ args: string[];
2890
+ environment: Record<string, string>;
2891
+ timeoutSeconds: number;
2892
+ cwd?: string | undefined;
2893
+ }[];
2894
+ } | undefined;
2895
+ }[];
2896
+ defaults: {
2897
+ restoreOnFailure: boolean;
2898
+ };
2899
+ }, unknown>;
2900
+ export declare const developmentSessionSchema: z.ZodEffects<z.ZodObject<{
2901
+ schemaVersion: z.ZodLiteral<"treeseed.development-session/v2">;
2902
+ sessionId: z.ZodString;
2903
+ actor: z.ZodString;
2904
+ hostId: z.ZodString;
2905
+ createdAt: z.ZodString;
2906
+ status: z.ZodEnum<["planning", "active", "degraded", "restoring", "stopped"]>;
2907
+ repositories: z.ZodArray<z.ZodObject<{
2908
+ projectId: z.ZodString;
2909
+ repository: z.ZodString;
2910
+ worktree: z.ZodString;
2911
+ commit: z.ZodString;
2912
+ branch: z.ZodNullable<z.ZodString>;
2913
+ dirty: z.ZodBoolean;
2914
+ dirtyDigest: z.ZodNullable<z.ZodString>;
2915
+ recipeDigest: z.ZodString;
2916
+ }, "strict", z.ZodTypeAny, {
2917
+ dirty: boolean;
2918
+ repository: string;
2919
+ branch: string | null;
2920
+ commit: string;
2921
+ projectId: string;
2922
+ worktree: string;
2923
+ dirtyDigest: string | null;
2924
+ recipeDigest: string;
2925
+ }, {
2926
+ dirty: boolean;
2927
+ repository: string;
2928
+ branch: string | null;
2929
+ commit: string;
2930
+ projectId: string;
2931
+ worktree: string;
2932
+ dirtyDigest: string | null;
2933
+ recipeDigest: string;
2934
+ }>, "many">;
2935
+ targets: z.ZodArray<z.ZodObject<{
2936
+ projectId: z.ZodString;
2937
+ targetId: z.ZodString;
2938
+ mode: z.ZodEnum<["released", "candidate", "live"]>;
2939
+ generation: z.ZodNumber;
2940
+ health: z.ZodEnum<["pending", "ready", "degraded", "stopped"]>;
2941
+ reaction: z.ZodOptional<z.ZodEnum<["reload", "restart", "rebuild", "stale", "manual", "none"]>>;
2942
+ }, "strict", z.ZodTypeAny, {
2943
+ projectId: string;
2944
+ mode: "released" | "candidate" | "live";
2945
+ targetId: string;
2946
+ generation: number;
2947
+ health: "ready" | "stopped" | "degraded" | "pending";
2948
+ reaction?: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none" | undefined;
2949
+ }, {
2950
+ projectId: string;
2951
+ mode: "released" | "candidate" | "live";
2952
+ targetId: string;
2953
+ generation: number;
2954
+ health: "ready" | "stopped" | "degraded" | "pending";
2955
+ reaction?: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none" | undefined;
2956
+ }>, "many">;
2957
+ leases: z.ZodArray<z.ZodObject<{
2958
+ kind: z.ZodEnum<["alias", "component", "state", "secret"]>;
2959
+ resource: z.ZodString;
2960
+ acquiredAt: z.ZodString;
2961
+ }, "strict", z.ZodTypeAny, {
2962
+ resource: string;
2963
+ kind: "state" | "alias" | "component" | "secret";
2964
+ acquiredAt: string;
2965
+ }, {
2966
+ resource: string;
2967
+ kind: "state" | "alias" | "component" | "secret";
2968
+ acquiredAt: string;
2969
+ }>, "many">;
2970
+ restoredReceiptId: z.ZodNullable<z.ZodString>;
2971
+ blockers: z.ZodArray<z.ZodObject<{
2972
+ code: z.ZodString;
2973
+ message: z.ZodString;
2974
+ targetId: z.ZodOptional<z.ZodString>;
2975
+ }, "strict", z.ZodTypeAny, {
2976
+ code: string;
2977
+ message: string;
2978
+ targetId?: string | undefined;
2979
+ }, {
2980
+ code: string;
2981
+ message: string;
2982
+ targetId?: string | undefined;
2983
+ }>, "many">;
2984
+ }, "strict", z.ZodTypeAny, {
2985
+ status: "active" | "stopped" | "planning" | "degraded" | "restoring";
2986
+ actor: string;
2987
+ schemaVersion: "treeseed.development-session/v2";
2988
+ repositories: {
2989
+ dirty: boolean;
2990
+ repository: string;
2991
+ branch: string | null;
2992
+ commit: string;
2993
+ projectId: string;
2994
+ worktree: string;
2995
+ dirtyDigest: string | null;
2996
+ recipeDigest: string;
2997
+ }[];
2998
+ targets: {
2999
+ projectId: string;
3000
+ mode: "released" | "candidate" | "live";
3001
+ targetId: string;
3002
+ generation: number;
3003
+ health: "ready" | "stopped" | "degraded" | "pending";
3004
+ reaction?: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none" | undefined;
3005
+ }[];
3006
+ blockers: {
3007
+ code: string;
3008
+ message: string;
3009
+ targetId?: string | undefined;
3010
+ }[];
3011
+ createdAt: string;
3012
+ leases: {
3013
+ resource: string;
3014
+ kind: "state" | "alias" | "component" | "secret";
3015
+ acquiredAt: string;
3016
+ }[];
3017
+ sessionId: string;
3018
+ hostId: string;
3019
+ restoredReceiptId: string | null;
3020
+ }, {
3021
+ status: "active" | "stopped" | "planning" | "degraded" | "restoring";
3022
+ actor: string;
3023
+ schemaVersion: "treeseed.development-session/v2";
3024
+ repositories: {
3025
+ dirty: boolean;
3026
+ repository: string;
3027
+ branch: string | null;
3028
+ commit: string;
3029
+ projectId: string;
3030
+ worktree: string;
3031
+ dirtyDigest: string | null;
3032
+ recipeDigest: string;
3033
+ }[];
3034
+ targets: {
3035
+ projectId: string;
3036
+ mode: "released" | "candidate" | "live";
3037
+ targetId: string;
3038
+ generation: number;
3039
+ health: "ready" | "stopped" | "degraded" | "pending";
3040
+ reaction?: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none" | undefined;
3041
+ }[];
3042
+ blockers: {
3043
+ code: string;
3044
+ message: string;
3045
+ targetId?: string | undefined;
3046
+ }[];
3047
+ createdAt: string;
3048
+ leases: {
3049
+ resource: string;
3050
+ kind: "state" | "alias" | "component" | "secret";
3051
+ acquiredAt: string;
3052
+ }[];
3053
+ sessionId: string;
3054
+ hostId: string;
3055
+ restoredReceiptId: string | null;
3056
+ }>, {
3057
+ status: "active" | "stopped" | "planning" | "degraded" | "restoring";
3058
+ actor: string;
3059
+ schemaVersion: "treeseed.development-session/v2";
3060
+ repositories: {
3061
+ dirty: boolean;
3062
+ repository: string;
3063
+ branch: string | null;
3064
+ commit: string;
3065
+ projectId: string;
3066
+ worktree: string;
3067
+ dirtyDigest: string | null;
3068
+ recipeDigest: string;
3069
+ }[];
3070
+ targets: {
3071
+ projectId: string;
3072
+ mode: "released" | "candidate" | "live";
3073
+ targetId: string;
3074
+ generation: number;
3075
+ health: "ready" | "stopped" | "degraded" | "pending";
3076
+ reaction?: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none" | undefined;
3077
+ }[];
3078
+ blockers: {
3079
+ code: string;
3080
+ message: string;
3081
+ targetId?: string | undefined;
3082
+ }[];
3083
+ createdAt: string;
3084
+ leases: {
3085
+ resource: string;
3086
+ kind: "state" | "alias" | "component" | "secret";
3087
+ acquiredAt: string;
3088
+ }[];
3089
+ sessionId: string;
3090
+ hostId: string;
3091
+ restoredReceiptId: string | null;
3092
+ }, unknown>;
3093
+ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
3094
+ schemaVersion: z.ZodLiteral<"treeseed.development-candidate/v1">;
3095
+ candidateId: z.ZodString;
3096
+ sessionId: z.ZodString;
3097
+ createdAt: z.ZodString;
3098
+ source: z.ZodArray<z.ZodObject<{
3099
+ projectId: z.ZodString;
3100
+ repository: z.ZodString;
3101
+ worktree: z.ZodString;
3102
+ commit: z.ZodString;
3103
+ branch: z.ZodNullable<z.ZodString>;
3104
+ dirty: z.ZodBoolean;
3105
+ dirtyDigest: z.ZodNullable<z.ZodString>;
3106
+ recipeDigest: z.ZodString;
3107
+ }, "strict", z.ZodTypeAny, {
3108
+ dirty: boolean;
3109
+ repository: string;
3110
+ branch: string | null;
3111
+ commit: string;
3112
+ projectId: string;
3113
+ worktree: string;
3114
+ dirtyDigest: string | null;
3115
+ recipeDigest: string;
3116
+ }, {
3117
+ dirty: boolean;
3118
+ repository: string;
3119
+ branch: string | null;
3120
+ commit: string;
3121
+ projectId: string;
3122
+ worktree: string;
3123
+ dirtyDigest: string | null;
3124
+ recipeDigest: string;
3125
+ }>, "many">;
3126
+ artifacts: z.ZodArray<z.ZodObject<{
3127
+ projectId: z.ZodString;
3128
+ targetId: z.ZodString;
3129
+ kind: z.ZodEnum<["npm-package", "oci-image", "archive", "executable", "contract-bundle"]>;
3130
+ identity: z.ZodString;
3131
+ digest: z.ZodString;
3132
+ integrity: z.ZodOptional<z.ZodString>;
3133
+ }, "strict", z.ZodTypeAny, {
3134
+ identity: string;
3135
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3136
+ digest: string;
3137
+ projectId: string;
3138
+ targetId: string;
3139
+ integrity?: string | undefined;
3140
+ }, {
3141
+ identity: string;
3142
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3143
+ digest: string;
3144
+ projectId: string;
3145
+ targetId: string;
3146
+ integrity?: string | undefined;
3147
+ }>, "many">;
3148
+ configurationDigest: z.ZodString;
3149
+ dependencyGenerations: z.ZodRecord<z.ZodString, z.ZodNumber>;
3150
+ compatibilityAttestations: z.ZodArray<z.ZodObject<{
3151
+ contractId: z.ZodString;
3152
+ digest: z.ZodString;
3153
+ compatible: z.ZodBoolean;
3154
+ minimumBump: z.ZodEnum<["none", "patch", "minor", "major"]>;
3155
+ }, "strict", z.ZodTypeAny, {
3156
+ digest: string;
3157
+ contractId: string;
3158
+ compatible: boolean;
3159
+ minimumBump: "none" | "patch" | "minor" | "major";
3160
+ }, {
3161
+ digest: string;
3162
+ contractId: string;
3163
+ compatible: boolean;
3164
+ minimumBump: "none" | "patch" | "minor" | "major";
3165
+ }>, "many">;
3166
+ verification: z.ZodObject<{
3167
+ status: z.ZodEnum<["pending", "passed", "failed"]>;
3168
+ operations: z.ZodArray<z.ZodString, "many">;
3169
+ completedAt: z.ZodNullable<z.ZodString>;
3170
+ }, "strict", z.ZodTypeAny, {
3171
+ status: "pending" | "passed" | "failed";
3172
+ operations: string[];
3173
+ completedAt: string | null;
3174
+ }, {
3175
+ status: "pending" | "passed" | "failed";
3176
+ operations: string[];
3177
+ completedAt: string | null;
3178
+ }>;
3179
+ promotable: z.ZodBoolean;
3180
+ }, "strict", z.ZodTypeAny, {
3181
+ schemaVersion: "treeseed.development-candidate/v1";
3182
+ createdAt: string;
3183
+ source: {
3184
+ dirty: boolean;
3185
+ repository: string;
3186
+ branch: string | null;
3187
+ commit: string;
3188
+ projectId: string;
3189
+ worktree: string;
3190
+ dirtyDigest: string | null;
3191
+ recipeDigest: string;
3192
+ }[];
3193
+ artifacts: {
3194
+ identity: string;
3195
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3196
+ digest: string;
3197
+ projectId: string;
3198
+ targetId: string;
3199
+ integrity?: string | undefined;
3200
+ }[];
3201
+ sessionId: string;
3202
+ candidateId: string;
3203
+ configurationDigest: string;
3204
+ dependencyGenerations: Record<string, number>;
3205
+ compatibilityAttestations: {
3206
+ digest: string;
3207
+ contractId: string;
3208
+ compatible: boolean;
3209
+ minimumBump: "none" | "patch" | "minor" | "major";
3210
+ }[];
3211
+ verification: {
3212
+ status: "pending" | "passed" | "failed";
3213
+ operations: string[];
3214
+ completedAt: string | null;
3215
+ };
3216
+ promotable: boolean;
3217
+ }, {
3218
+ schemaVersion: "treeseed.development-candidate/v1";
3219
+ createdAt: string;
3220
+ source: {
3221
+ dirty: boolean;
3222
+ repository: string;
3223
+ branch: string | null;
3224
+ commit: string;
3225
+ projectId: string;
3226
+ worktree: string;
3227
+ dirtyDigest: string | null;
3228
+ recipeDigest: string;
3229
+ }[];
3230
+ artifacts: {
3231
+ identity: string;
3232
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3233
+ digest: string;
3234
+ projectId: string;
3235
+ targetId: string;
3236
+ integrity?: string | undefined;
3237
+ }[];
3238
+ sessionId: string;
3239
+ candidateId: string;
3240
+ configurationDigest: string;
3241
+ dependencyGenerations: Record<string, number>;
3242
+ compatibilityAttestations: {
3243
+ digest: string;
3244
+ contractId: string;
3245
+ compatible: boolean;
3246
+ minimumBump: "none" | "patch" | "minor" | "major";
3247
+ }[];
3248
+ verification: {
3249
+ status: "pending" | "passed" | "failed";
3250
+ operations: string[];
3251
+ completedAt: string | null;
3252
+ };
3253
+ promotable: boolean;
3254
+ }>, {
3255
+ schemaVersion: "treeseed.development-candidate/v1";
3256
+ createdAt: string;
3257
+ source: {
3258
+ dirty: boolean;
3259
+ repository: string;
3260
+ branch: string | null;
3261
+ commit: string;
3262
+ projectId: string;
3263
+ worktree: string;
3264
+ dirtyDigest: string | null;
3265
+ recipeDigest: string;
3266
+ }[];
3267
+ artifacts: {
3268
+ identity: string;
3269
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3270
+ digest: string;
3271
+ projectId: string;
3272
+ targetId: string;
3273
+ integrity?: string | undefined;
3274
+ }[];
3275
+ sessionId: string;
3276
+ candidateId: string;
3277
+ configurationDigest: string;
3278
+ dependencyGenerations: Record<string, number>;
3279
+ compatibilityAttestations: {
3280
+ digest: string;
3281
+ contractId: string;
3282
+ compatible: boolean;
3283
+ minimumBump: "none" | "patch" | "minor" | "major";
3284
+ }[];
3285
+ verification: {
3286
+ status: "pending" | "passed" | "failed";
3287
+ operations: string[];
3288
+ completedAt: string | null;
3289
+ };
3290
+ promotable: boolean;
3291
+ }, {
3292
+ schemaVersion: "treeseed.development-candidate/v1";
3293
+ createdAt: string;
3294
+ source: {
3295
+ dirty: boolean;
3296
+ repository: string;
3297
+ branch: string | null;
3298
+ commit: string;
3299
+ projectId: string;
3300
+ worktree: string;
3301
+ dirtyDigest: string | null;
3302
+ recipeDigest: string;
3303
+ }[];
3304
+ artifacts: {
3305
+ identity: string;
3306
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3307
+ digest: string;
3308
+ projectId: string;
3309
+ targetId: string;
3310
+ integrity?: string | undefined;
3311
+ }[];
3312
+ sessionId: string;
3313
+ candidateId: string;
3314
+ configurationDigest: string;
3315
+ dependencyGenerations: Record<string, number>;
3316
+ compatibilityAttestations: {
3317
+ digest: string;
3318
+ contractId: string;
3319
+ compatible: boolean;
3320
+ minimumBump: "none" | "patch" | "minor" | "major";
3321
+ }[];
3322
+ verification: {
3323
+ status: "pending" | "passed" | "failed";
3324
+ operations: string[];
3325
+ completedAt: string | null;
3326
+ };
3327
+ promotable: boolean;
3328
+ }>;
3329
+ /** Exact, immutable custody record used to promote an already-built candidate. */
3330
+ export declare const releaseEvidenceSchema: z.ZodEffects<z.ZodObject<{
3331
+ schemaVersion: z.ZodLiteral<"treeseed.release-evidence/v1">;
3332
+ candidate: z.ZodObject<{
3333
+ id: z.ZodString;
3334
+ receiptDigest: z.ZodString;
3335
+ sourceCommit: z.ZodString;
3336
+ stagingRef: z.ZodString;
3337
+ workflowRunId: z.ZodString;
3338
+ createdAt: z.ZodString;
3339
+ }, "strict", z.ZodTypeAny, {
3340
+ id: string;
3341
+ createdAt: string;
3342
+ receiptDigest: string;
3343
+ sourceCommit: string;
3344
+ stagingRef: string;
3345
+ workflowRunId: string;
3346
+ }, {
3347
+ id: string;
3348
+ createdAt: string;
3349
+ receiptDigest: string;
3350
+ sourceCommit: string;
3351
+ stagingRef: string;
3352
+ workflowRunId: string;
3353
+ }>;
3354
+ packages: z.ZodArray<z.ZodObject<{
3355
+ projectId: z.ZodString;
3356
+ name: z.ZodString;
3357
+ version: z.ZodString;
3358
+ minimumBump: z.ZodEnum<["none", "patch", "minor", "major"]>;
3359
+ }, "strict", z.ZodTypeAny, {
3360
+ version: string;
3361
+ name: string;
3362
+ projectId: string;
3363
+ minimumBump: "none" | "patch" | "minor" | "major";
3364
+ }, {
3365
+ version: string;
3366
+ name: string;
3367
+ projectId: string;
3368
+ minimumBump: "none" | "patch" | "minor" | "major";
3369
+ }>, "many">;
3370
+ artifacts: z.ZodArray<z.ZodObject<{
3371
+ id: z.ZodString;
3372
+ kind: z.ZodEnum<["npm-package", "oci-image", "archive", "executable", "sbom", "contract-bundle", "compatibility-attestation", "component-manifest", "compose", "provenance"]>;
3373
+ identity: z.ZodString;
3374
+ digest: z.ZodString;
3375
+ mediaType: z.ZodString;
3376
+ size: z.ZodOptional<z.ZodNumber>;
3377
+ }, "strict", z.ZodTypeAny, {
3378
+ identity: string;
3379
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose" | "provenance";
3380
+ id: string;
3381
+ digest: string;
3382
+ mediaType: string;
3383
+ size?: number | undefined;
3384
+ }, {
3385
+ identity: string;
3386
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose" | "provenance";
3387
+ id: string;
3388
+ digest: string;
3389
+ mediaType: string;
3390
+ size?: number | undefined;
3391
+ }>, "many">;
3392
+ contractBundles: z.ZodDefault<z.ZodArray<z.ZodObject<{
3393
+ id: z.ZodString;
3394
+ digest: z.ZodString;
3395
+ }, "strict", z.ZodTypeAny, {
3396
+ id: string;
3397
+ digest: string;
3398
+ }, {
3399
+ id: string;
3400
+ digest: string;
3401
+ }>, "many">>;
3402
+ compatibilityAttestations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3403
+ contractId: z.ZodString;
3404
+ digest: z.ZodString;
3405
+ compatible: z.ZodLiteral<true>;
3406
+ minimumBump: z.ZodEnum<["none", "patch", "minor", "major"]>;
3407
+ }, "strict", z.ZodTypeAny, {
3408
+ digest: string;
3409
+ contractId: string;
3410
+ compatible: true;
3411
+ minimumBump: "none" | "patch" | "minor" | "major";
3412
+ }, {
3413
+ digest: string;
3414
+ contractId: string;
3415
+ compatible: true;
3416
+ minimumBump: "none" | "patch" | "minor" | "major";
3417
+ }>, "many">>;
3418
+ verification: z.ZodObject<{
3419
+ status: z.ZodLiteral<"passed">;
3420
+ operations: z.ZodArray<z.ZodString, "many">;
3421
+ completedAt: z.ZodString;
3422
+ }, "strict", z.ZodTypeAny, {
3423
+ status: "passed";
3424
+ operations: string[];
3425
+ completedAt: string;
3426
+ }, {
3427
+ status: "passed";
3428
+ operations: string[];
3429
+ completedAt: string;
3430
+ }>;
3431
+ }, "strict", z.ZodTypeAny, {
3432
+ schemaVersion: "treeseed.release-evidence/v1";
3433
+ packages: {
3434
+ version: string;
3435
+ name: string;
3436
+ projectId: string;
3437
+ minimumBump: "none" | "patch" | "minor" | "major";
3438
+ }[];
3439
+ candidate: {
3440
+ id: string;
3441
+ createdAt: string;
3442
+ receiptDigest: string;
3443
+ sourceCommit: string;
3444
+ stagingRef: string;
3445
+ workflowRunId: string;
3446
+ };
3447
+ artifacts: {
3448
+ identity: string;
3449
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose" | "provenance";
3450
+ id: string;
3451
+ digest: string;
3452
+ mediaType: string;
3453
+ size?: number | undefined;
3454
+ }[];
3455
+ compatibilityAttestations: {
3456
+ digest: string;
3457
+ contractId: string;
3458
+ compatible: true;
3459
+ minimumBump: "none" | "patch" | "minor" | "major";
3460
+ }[];
3461
+ verification: {
3462
+ status: "passed";
3463
+ operations: string[];
3464
+ completedAt: string;
3465
+ };
3466
+ contractBundles: {
3467
+ id: string;
3468
+ digest: string;
3469
+ }[];
3470
+ }, {
3471
+ schemaVersion: "treeseed.release-evidence/v1";
3472
+ packages: {
3473
+ version: string;
3474
+ name: string;
3475
+ projectId: string;
3476
+ minimumBump: "none" | "patch" | "minor" | "major";
3477
+ }[];
3478
+ candidate: {
3479
+ id: string;
3480
+ createdAt: string;
3481
+ receiptDigest: string;
3482
+ sourceCommit: string;
3483
+ stagingRef: string;
3484
+ workflowRunId: string;
3485
+ };
3486
+ artifacts: {
3487
+ identity: string;
3488
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose" | "provenance";
3489
+ id: string;
3490
+ digest: string;
3491
+ mediaType: string;
3492
+ size?: number | undefined;
3493
+ }[];
3494
+ verification: {
3495
+ status: "passed";
3496
+ operations: string[];
3497
+ completedAt: string;
3498
+ };
3499
+ compatibilityAttestations?: {
3500
+ digest: string;
3501
+ contractId: string;
3502
+ compatible: true;
3503
+ minimumBump: "none" | "patch" | "minor" | "major";
3504
+ }[] | undefined;
3505
+ contractBundles?: {
3506
+ id: string;
3507
+ digest: string;
3508
+ }[] | undefined;
3509
+ }>, {
3510
+ schemaVersion: "treeseed.release-evidence/v1";
3511
+ packages: {
3512
+ version: string;
3513
+ name: string;
3514
+ projectId: string;
3515
+ minimumBump: "none" | "patch" | "minor" | "major";
3516
+ }[];
3517
+ candidate: {
3518
+ id: string;
3519
+ createdAt: string;
3520
+ receiptDigest: string;
3521
+ sourceCommit: string;
3522
+ stagingRef: string;
3523
+ workflowRunId: string;
3524
+ };
3525
+ artifacts: {
3526
+ identity: string;
3527
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose" | "provenance";
3528
+ id: string;
3529
+ digest: string;
3530
+ mediaType: string;
3531
+ size?: number | undefined;
3532
+ }[];
3533
+ compatibilityAttestations: {
3534
+ digest: string;
3535
+ contractId: string;
3536
+ compatible: true;
3537
+ minimumBump: "none" | "patch" | "minor" | "major";
3538
+ }[];
3539
+ verification: {
3540
+ status: "passed";
3541
+ operations: string[];
3542
+ completedAt: string;
3543
+ };
3544
+ contractBundles: {
3545
+ id: string;
3546
+ digest: string;
3547
+ }[];
3548
+ }, {
3549
+ schemaVersion: "treeseed.release-evidence/v1";
3550
+ packages: {
3551
+ version: string;
3552
+ name: string;
3553
+ projectId: string;
3554
+ minimumBump: "none" | "patch" | "minor" | "major";
3555
+ }[];
3556
+ candidate: {
3557
+ id: string;
3558
+ createdAt: string;
3559
+ receiptDigest: string;
3560
+ sourceCommit: string;
3561
+ stagingRef: string;
3562
+ workflowRunId: string;
3563
+ };
3564
+ artifacts: {
3565
+ identity: string;
3566
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose" | "provenance";
3567
+ id: string;
3568
+ digest: string;
3569
+ mediaType: string;
3570
+ size?: number | undefined;
3571
+ }[];
3572
+ verification: {
3573
+ status: "passed";
3574
+ operations: string[];
3575
+ completedAt: string;
3576
+ };
3577
+ compatibilityAttestations?: {
3578
+ digest: string;
3579
+ contractId: string;
3580
+ compatible: true;
3581
+ minimumBump: "none" | "patch" | "minor" | "major";
3582
+ }[] | undefined;
3583
+ contractBundles?: {
3584
+ id: string;
3585
+ digest: string;
3586
+ }[] | undefined;
3587
+ }>;
3588
+ export type DevelopmentRuntime = z.infer<typeof developmentRuntimeSchema>;
3589
+ export type DevelopmentTarget = z.infer<typeof developmentTargetSchema>;
3590
+ export type DevelopmentSession = z.infer<typeof developmentSessionSchema>;
3591
+ export type DevelopmentCandidate = z.infer<typeof developmentCandidateSchema>;
3592
+ export type DevelopmentMode = z.infer<typeof developmentModeSchema>;
3593
+ export type DevelopmentReaction = z.infer<typeof developmentReactionSchema>;
3594
+ export type ReleaseEvidence = z.infer<typeof releaseEvidenceSchema>;