@treeseed/sdk 0.13.0-rc.13 → 0.13.0-rc.130

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 (558) hide show
  1. package/README.md +69 -9
  2. package/dist/accounts/account-contracts.d.ts +6 -0
  3. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +5485 -0
  4. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +242 -0
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +304 -0
  6. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.js +44 -0
  7. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
  8. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
  9. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +23 -60
  10. package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.d.ts +25 -0
  11. package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.js +67 -0
  12. package/dist/agent-capacity/contracts/capacity/communication/communication-records.d.ts +1 -1
  13. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +126 -3
  14. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
  15. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +80 -0
  16. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +121 -0
  17. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +103 -0
  18. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +51 -0
  19. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +490 -0
  20. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +170 -0
  21. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +210 -91
  22. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
  23. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
  24. package/dist/agent-capacity/contracts/configuration/configuration.js +1 -3
  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 +119 -24
  28. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
  29. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
  30. package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
  31. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +1291 -0
  32. package/dist/agent-capacity/contracts/support/execution-graph.js +122 -0
  33. package/dist/agent-capacity/contracts/support/financial-records.d.ts +3 -6
  34. package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
  35. package/dist/agent-capacity/contracts/support/time-capacity.d.ts +0 -14
  36. package/dist/agent-capacity/contracts/support/time-capacity.js +1 -8
  37. package/dist/agent-capacity/grant.d.ts +34 -0
  38. package/dist/agent-capacity/grant.js +4 -0
  39. package/dist/agent-capacity/validation/activity-profile.d.ts +1 -1
  40. package/dist/agent-capacity/validation/activity-profile.js +3 -259
  41. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +2538 -9020
  42. package/dist/agent-capacity/validation/agent-definition-schema.js +59 -181
  43. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +25 -25
  44. package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
  45. package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
  46. package/dist/agent-capacity/validation/assignment-records.js +49 -35
  47. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  48. package/dist/agent-capacity/validation/configuration.js +2 -7
  49. package/dist/agent-capacity/validation/execution/execution-graph.d.ts +1 -0
  50. package/dist/agent-capacity/validation/execution/execution-graph.js +16 -0
  51. package/dist/agent-capacity/validation/grant.d.ts +11 -0
  52. package/dist/agent-capacity/validation/grant.js +31 -0
  53. package/dist/agent-capacity/validation/index.d.ts +2 -1
  54. package/dist/agent-capacity/validation/index.js +2 -1
  55. package/dist/agent-capacity/workday.d.ts +13 -4
  56. package/dist/agent-capacity/workday.js +10 -26
  57. package/dist/capacity/agents/agent-capacity.d.ts +11 -4
  58. package/dist/capacity/agents/agent-capacity.js +9 -3
  59. package/dist/capacity-provider/capability-ontology.d.ts +1495 -0
  60. package/dist/capacity-provider/capability-ontology.js +221 -0
  61. package/dist/capacity-provider/client.d.ts +78 -3
  62. package/dist/capacity-provider/client.js +22 -10
  63. package/dist/capacity-provider/contracts/capacity-facts.d.ts +13 -0
  64. package/dist/capacity-provider/contracts/environment-profiles.d.ts +255 -0
  65. package/dist/capacity-provider/contracts/environment-profiles.js +71 -0
  66. package/dist/capacity-provider/contracts/governance.d.ts +110 -51
  67. package/dist/capacity-provider/contracts/index.d.ts +3 -0
  68. package/dist/capacity-provider/contracts/index.js +3 -0
  69. package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
  70. package/dist/capacity-provider/core-capability-catalog.js +49 -0
  71. package/dist/capacity-provider/environment-catalog.d.ts +877 -0
  72. package/dist/capacity-provider/environment-catalog.js +116 -0
  73. package/dist/capacity-provider/index.d.ts +5 -0
  74. package/dist/capacity-provider/index.js +5 -0
  75. package/dist/capacity-provider/install-configuration.d.ts +39 -0
  76. package/dist/capacity-provider/install-configuration.js +18 -0
  77. package/dist/capacity-provider/sandbox-contracts.d.ts +602 -0
  78. package/dist/capacity-provider/sandbox-contracts.js +90 -0
  79. package/dist/capacity-provider/sandbox.d.ts +2 -0
  80. package/dist/capacity-provider/sandbox.js +2 -0
  81. package/dist/capacity-provider/source-workspace.d.ts +740 -0
  82. package/dist/capacity-provider/source-workspace.js +130 -0
  83. package/dist/capacity-provider/validation.d.ts +11 -3
  84. package/dist/capacity-provider/validation.js +136 -70
  85. package/dist/configuration/secrets-capability.d.ts +5 -1
  86. package/dist/configuration/secrets-capability.js +5 -1
  87. package/dist/content/contracts.d.ts +1 -1
  88. package/dist/content/validation/agent-operational-content-schemas.d.ts +430 -777
  89. package/dist/content/validation/agent-operational-content-schemas.js +31 -57
  90. package/dist/content/validation/auxiliary-content-schemas.d.ts +144 -144
  91. package/dist/content/validation/content-model-schemas.d.ts +16063 -19764
  92. package/dist/content/validation/content-model-schemas.js +350 -98
  93. package/dist/content/validation/portable-content-data.d.ts +751 -1782
  94. package/dist/content/validation/portable-content-data.js +10 -4
  95. package/dist/content/validation/schema-constraints.d.ts +80 -0
  96. package/dist/content/validation/schema-constraints.js +173 -0
  97. package/dist/deployment/ai/storage.d.ts +158 -0
  98. package/dist/deployment/ai/storage.js +32 -0
  99. package/dist/deployment/ai-hosting.d.ts +297 -0
  100. package/dist/deployment/ai-hosting.js +63 -0
  101. package/dist/deployment/ai-instance.d.ts +65 -0
  102. package/dist/deployment/ai-instance.js +30 -0
  103. package/dist/deployment/ai-mode.d.ts +454 -0
  104. package/dist/deployment/ai-mode.js +67 -0
  105. package/dist/deployment/canonical.d.ts +2 -0
  106. package/dist/deployment/canonical.js +17 -0
  107. package/dist/deployment/catalog.d.ts +16 -0
  108. package/dist/deployment/catalog.js +48 -0
  109. package/dist/deployment/hosted-topology-template.d.ts +449 -0
  110. package/dist/deployment/hosted-topology-template.js +56 -0
  111. package/dist/deployment/hosted-topology.d.ts +2698 -0
  112. package/dist/deployment/hosted-topology.js +468 -0
  113. package/dist/deployment/index.d.ts +13 -0
  114. package/dist/deployment/index.js +13 -0
  115. package/dist/deployment/postgres/contracts.d.ts +418 -0
  116. package/dist/deployment/postgres/contracts.js +83 -0
  117. package/dist/deployment/postgres/requirements.d.ts +15 -0
  118. package/dist/deployment/postgres/requirements.js +32 -0
  119. package/dist/deployment/postgres/transfer.d.ts +97 -0
  120. package/dist/deployment/postgres/transfer.js +29 -0
  121. package/dist/deployment/schemas.d.ts +8625 -0
  122. package/dist/deployment/schemas.js +455 -0
  123. package/dist/deployment/topology.d.ts +9 -0
  124. package/dist/deployment/topology.js +35 -0
  125. package/dist/development/index.d.ts +1 -0
  126. package/dist/development/index.js +1 -0
  127. package/dist/development/schemas.d.ts +3594 -0
  128. package/dist/development/schemas.js +204 -0
  129. package/dist/development/session-migration.d.ts +3 -0
  130. package/dist/development/session-migration.js +25 -0
  131. package/dist/entrypoints/clients/control-plane-client.d.ts +9 -1
  132. package/dist/entrypoints/clients/control-plane-client.js +17 -5
  133. package/dist/graph/context-query-contracts.d.ts +16 -1
  134. package/dist/graph/context-query-contracts.js +6 -1
  135. package/dist/guarantees/evidence-trust.d.ts +32 -0
  136. package/dist/guarantees/evidence-trust.js +47 -0
  137. package/dist/guarantees/index.d.ts +154 -0
  138. package/dist/guarantees/index.js +44 -0
  139. package/dist/identity/browser-session.d.ts +233 -0
  140. package/dist/identity/browser-session.js +51 -0
  141. package/dist/identity/contracts.d.ts +191 -0
  142. package/dist/identity/contracts.js +77 -0
  143. package/dist/identity/index.d.ts +3 -0
  144. package/dist/identity/index.js +3 -0
  145. package/dist/identity/runtime.d.ts +186 -0
  146. package/dist/identity/runtime.js +49 -0
  147. package/dist/knowledge/contracts.d.ts +9 -2
  148. package/dist/knowledge/contracts.js +2 -2
  149. package/dist/model-registry/agent-operational-models.d.ts +1 -1
  150. package/dist/model-registry/agent-operational-models.js +1 -4
  151. package/dist/model-registry/build-builtin-model-registry.js +44 -72
  152. package/dist/model-registry/discussion-models.js +0 -1
  153. package/dist/operator-contracts/canonical-command-tree.js +415 -44
  154. package/dist/operator-contracts/catalog/admin-account-team-operations.d.ts +36 -0
  155. package/dist/operator-contracts/catalog/admin-account-team-operations.js +52 -0
  156. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +75 -0
  157. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.js +42 -0
  158. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +163 -0
  159. package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
  160. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +62 -0
  161. package/dist/operator-contracts/catalog/commands/command-tree-builders.js +191 -0
  162. package/dist/operator-contracts/catalog/communication-operations.d.ts +457 -0
  163. package/dist/operator-contracts/catalog/communication-operations.js +92 -0
  164. package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
  165. package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
  166. package/dist/operator-contracts/catalog/execution/execution-operations.d.ts +36 -0
  167. package/dist/operator-contracts/catalog/execution/execution-operations.js +39 -0
  168. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +399 -0
  169. package/dist/operator-contracts/catalog/hosted-topology-operations.js +79 -0
  170. package/dist/operator-contracts/catalog/inbox-operations.d.ts +265 -0
  171. package/dist/operator-contracts/catalog/inbox-operations.js +36 -0
  172. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +53 -0
  173. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +24 -0
  174. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.d.ts +3 -0
  175. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.js +15 -0
  176. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +127 -0
  177. package/dist/operator-contracts/catalog/knowledge-share-operations.js +25 -0
  178. package/dist/operator-contracts/catalog/provider-environment-commands.d.ts +4 -0
  179. package/dist/operator-contracts/catalog/provider-environment-commands.js +69 -0
  180. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +41 -0
  181. package/dist/operator-contracts/catalog/provider-environment-operations.js +61 -0
  182. package/dist/operator-contracts/catalog/services/identity-commands.d.ts +2 -0
  183. package/dist/operator-contracts/catalog/services/identity-commands.js +13 -0
  184. package/dist/operator-contracts/catalog/services/secret-commands.d.ts +2 -0
  185. package/dist/operator-contracts/catalog/services/secret-commands.js +31 -0
  186. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +70 -0
  187. package/dist/operator-contracts/catalog/services/secret-operations.js +52 -0
  188. package/dist/operator-contracts/catalog/treeai-operations.d.ts +13 -0
  189. package/dist/operator-contracts/catalog/treeai-operations.js +61 -0
  190. package/dist/operator-contracts/catalog/workdays/profile-commands.d.ts +4 -0
  191. package/dist/operator-contracts/catalog/workdays/profile-commands.js +20 -0
  192. package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +41 -0
  193. package/dist/operator-contracts/catalog/workdays/profile-operations.js +50 -0
  194. package/dist/operator-contracts/catalog/workdays/selection-commands.d.ts +3 -0
  195. package/dist/operator-contracts/catalog/workdays/selection-commands.js +28 -0
  196. package/dist/operator-contracts/command-tree.d.ts +29 -0
  197. package/dist/operator-contracts/command-tree.js +50 -0
  198. package/dist/operator-contracts/communication/addressing.d.ts +8 -0
  199. package/dist/operator-contracts/communication/addressing.js +57 -0
  200. package/dist/operator-contracts/communication/contracts.d.ts +1966 -0
  201. package/dist/operator-contracts/communication/contracts.js +195 -0
  202. package/dist/operator-contracts/control-plane-operation.d.ts +15 -1
  203. package/dist/operator-contracts/control-plane-operation.js +14 -6
  204. package/dist/operator-contracts/control-plane-operations.d.ts +2496 -328
  205. package/dist/operator-contracts/control-plane-operations.js +280 -127
  206. package/dist/operator-contracts/inbox/contracts.d.ts +1111 -0
  207. package/dist/operator-contracts/inbox/contracts.js +138 -0
  208. package/dist/operator-contracts/index.d.ts +6 -1
  209. package/dist/operator-contracts/index.js +6 -1
  210. package/dist/operator-contracts/knowledge/contracts.d.ts +130 -0
  211. package/dist/operator-contracts/knowledge/contracts.js +39 -0
  212. package/dist/operator-contracts/mcp.d.ts +5 -0
  213. package/dist/operator-contracts/mcp.js +62 -0
  214. package/dist/operator-contracts/oauth.d.ts +45 -0
  215. package/dist/operator-contracts/oauth.js +7 -0
  216. package/dist/operator-contracts/operation-builder.d.ts +18 -0
  217. package/dist/operator-contracts/operation-builder.js +78 -0
  218. package/dist/operator-contracts/seed/seed-bundle.d.ts +138 -0
  219. package/dist/operator-contracts/seed/seed-bundle.js +68 -0
  220. package/dist/operator-contracts/workday-lifecycle.d.ts +383 -28
  221. package/dist/operator-contracts/workday-lifecycle.js +124 -17
  222. package/dist/platform/agent-schema-verification.d.ts +3 -0
  223. package/dist/platform/agent-schema-verification.js +377 -0
  224. package/dist/platform/contracts.d.ts +429 -0
  225. package/dist/platform/contracts.js +93 -0
  226. package/dist/platform/index.d.ts +6 -0
  227. package/dist/platform/index.js +6 -0
  228. package/dist/platform/inventory.d.ts +11 -0
  229. package/dist/platform/inventory.js +53 -0
  230. package/dist/platform/project-create.d.ts +49 -0
  231. package/dist/platform/project-create.js +75 -0
  232. package/dist/platform/schemas.d.ts +1094 -0
  233. package/dist/platform/schemas.js +99 -0
  234. package/dist/platform/verification.d.ts +9 -0
  235. package/dist/platform/verification.js +114 -0
  236. package/dist/platform/workset.d.ts +21 -0
  237. package/dist/platform/workset.js +106 -0
  238. package/dist/sdk-types/support/planning-policy.d.ts +1 -1
  239. package/dist/sdk-types/support/sdk-model-names.d.ts +1 -1
  240. package/dist/sdk-types/support/sdk-model-names.js +0 -3
  241. package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
  242. package/dist/secrets-capability/github-actions-encryption.d.ts +2 -0
  243. package/dist/secrets-capability/github-actions-encryption.js +11 -0
  244. package/dist/secrets-capability/provider-operation-contracts.d.ts +15 -1
  245. package/dist/secrets-capability/secret-contracts.d.ts +33 -0
  246. package/dist/secrets-capability/secret-contracts.js +49 -0
  247. package/dist/secrets-capability/service-provider-contracts.d.ts +5 -3
  248. package/dist/secrets-capability/service-provider-contracts.js +66 -50
  249. package/dist/secrets-capability/shared-access.d.ts +51 -0
  250. package/dist/secrets-capability/shared-access.js +36 -0
  251. package/dist/secrets-capability/shared-resources.d.ts +376 -0
  252. package/dist/secrets-capability/shared-resources.js +91 -0
  253. package/dist/secrets-capability/vault-contracts.d.ts +132 -0
  254. package/dist/secrets-capability/vault-contracts.js +56 -0
  255. package/dist/security/encrypted-envelope.d.ts +177 -0
  256. package/dist/security/encrypted-envelope.js +34 -0
  257. package/dist/security/envelope-codec.d.ts +38 -0
  258. package/dist/security/envelope-codec.js +96 -0
  259. package/dist/security/index.d.ts +2 -0
  260. package/dist/security/index.js +2 -0
  261. package/dist/site-contracts/catalog.d.ts +16 -0
  262. package/dist/site-contracts/catalog.js +19 -0
  263. package/dist/site-contracts/cloudflare.d.ts +48 -0
  264. package/dist/site-contracts/platform.d.ts +94 -0
  265. package/dist/site-contracts/plugin.d.ts +63 -0
  266. package/dist/site-contracts/plugin.js +26 -0
  267. package/dist/treeai/catalog.d.ts +1 -0
  268. package/dist/treeai/catalog.js +1 -0
  269. package/dist/treeai/client.d.ts +793 -0
  270. package/dist/treeai/client.js +44 -0
  271. package/dist/treeai/contract.d.ts +41 -0
  272. package/dist/treeai/contract.js +51 -0
  273. package/dist/treeai/generated/upstream.d.ts +770 -0
  274. package/dist/treeai/generated/upstream.js +4 -0
  275. package/dist/treeai/index.d.ts +4 -0
  276. package/dist/treeai/index.js +4 -0
  277. package/dist/treedx/client.d.ts +605 -0
  278. package/dist/treedx/client.js +39 -0
  279. package/dist/treedx/contract.d.ts +32 -0
  280. package/dist/treedx/contract.js +63 -0
  281. package/dist/treedx/index.d.ts +3 -0
  282. package/dist/treedx/index.js +3 -0
  283. package/dist/treedx/types.d.ts +294 -7
  284. package/dist/treedx/types.js +44 -7
  285. package/dist/types/agents/agent-activity-profile.d.ts +43 -98
  286. package/dist/types/agents/agent-activity-profile.js +23 -0
  287. package/dist/types/agents/agent-trigger-kinds.d.ts +3 -5
  288. package/dist/types/agents/agent-trigger-kinds.js +1 -13
  289. package/dist/types/agents/execution-run-ref.d.ts +1 -8
  290. package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
  291. package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
  292. package/guarantees/agent/golden/product.guarantee.yaml +12 -0
  293. package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +858 -0
  294. package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
  295. package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
  296. package/guarantees/verifiers/golden.verifiers.yaml +1464 -0
  297. package/package.json +72 -13
  298. package/tests/acceptance/golden-product.test.ts +205 -0
  299. package/tests/acceptance/golden-product.ts +404 -0
  300. package/tests/acceptance/product/base-red.ts +73 -0
  301. package/tests/acceptance/product/documentation-examples.ts +68 -0
  302. package/tests/acceptance/product/intent-runtime.ts +145 -0
  303. package/tests/acceptance/product/release-output.ts +160 -0
  304. package/tests/acceptance/product/research-artifact.ts +87 -0
  305. package/tests/acceptance/product/research-revision.ts +82 -0
  306. package/tests/acceptance/product/research-source.ts +91 -0
  307. package/tests/acceptance/product/test-chain.ts +192 -0
  308. package/treeseed.package.yaml +147 -0
  309. package/dist/agent-capacity/allocation.d.ts +0 -186
  310. package/dist/agent-capacity/allocation.js +0 -226
  311. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
  312. package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
  313. package/dist/agent-capacity/artifacts.d.ts +0 -107
  314. package/dist/agent-capacity/artifacts.js +0 -39
  315. package/dist/agent-capacity/authority/agent-authority-presets.d.ts +0 -13
  316. package/dist/agent-capacity/authority/agent-authority-presets.js +0 -106
  317. package/dist/agent-capacity/contracts/operations/workflow-promotion.d.ts +0 -24
  318. package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -251
  319. package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.d.ts +0 -29
  320. package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.js +0 -110
  321. package/dist/agent-capacity/validation/allocation.d.ts +0 -12
  322. package/dist/agent-capacity/validation/allocation.js +0 -115
  323. package/dist/agent-capacity/validation/workflow-promotion.d.ts +0 -2
  324. package/dist/agent-capacity/validation/workflow-promotion.js +0 -34
  325. package/dist/operator-contracts/workday-profile.d.ts +0 -72
  326. package/dist/operator-contracts/workday-profile.js +0 -106
  327. package/dist/secrets-capability/service-vault-contracts.d.ts +0 -61
  328. package/dist/secrets-capability/service-vault-contracts.js +0 -39
  329. package/dist/treedx/accounts/auth.d.ts +0 -17
  330. package/dist/treedx/accounts/auth.js +0 -48
  331. package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +0 -3
  332. package/dist/treedx/client/accounts/contracts/auth-mode.js +0 -6
  333. package/dist/treedx/client/build/creation/build-context.d.ts +0 -3
  334. package/dist/treedx/client/build/creation/build-context.js +0 -7
  335. package/dist/treedx/client/build/creation/build-snapshot.d.ts +0 -3
  336. package/dist/treedx/client/build/creation/build-snapshot.js +0 -8
  337. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +0 -3
  338. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +0 -7
  339. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +0 -6
  340. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +0 -10
  341. package/dist/treedx/client/methods.d.ts +0 -102
  342. package/dist/treedx/client/methods.js +0 -209
  343. package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +0 -3
  344. package/dist/treedx/client/persistence/contracts/restore-storage.js +0 -6
  345. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +0 -3
  346. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +0 -6
  347. package/dist/treedx/client/repositories/creation/register-repository.d.ts +0 -3
  348. package/dist/treedx/client/repositories/creation/register-repository.js +0 -7
  349. package/dist/treedx/client/repositories/queries/get-repository.d.ts +0 -3
  350. package/dist/treedx/client/repositories/queries/get-repository.js +0 -7
  351. package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +0 -3
  352. package/dist/treedx/client/repositories/queries/list-repository-paths.js +0 -7
  353. package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +0 -3
  354. package/dist/treedx/client/repositories/queries/list-repository-refs.js +0 -12
  355. package/dist/treedx/client/repositories/queries/query-repository.d.ts +0 -3
  356. package/dist/treedx/client/repositories/queries/query-repository.js +0 -7
  357. package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +0 -3
  358. package/dist/treedx/client/repositories/queries/read-repository-file.js +0 -6
  359. package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +0 -3
  360. package/dist/treedx/client/repositories/queries/read-repository-files.js +0 -7
  361. package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +0 -3
  362. package/dist/treedx/client/repositories/queries/search-repository-files.js +0 -7
  363. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +0 -3
  364. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +0 -9
  365. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +0 -3
  366. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +0 -6
  367. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +0 -3
  368. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +0 -7
  369. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +0 -5
  370. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +0 -7
  371. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +0 -3
  372. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +0 -6
  373. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +0 -3
  374. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +0 -7
  375. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +0 -2
  376. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +0 -19
  377. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +0 -3
  378. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +0 -7
  379. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +0 -3
  380. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +0 -6
  381. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +0 -3
  382. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +0 -7
  383. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +0 -3
  384. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +0 -6
  385. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +0 -3
  386. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +0 -7
  387. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +0 -6
  388. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +0 -23
  389. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +0 -3
  390. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +0 -8
  391. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +0 -3
  392. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +0 -7
  393. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +0 -3
  394. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +0 -8
  395. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +0 -3
  396. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +0 -8
  397. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +0 -2
  398. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +0 -15
  399. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +0 -2
  400. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +0 -38
  401. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +0 -2
  402. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +0 -15
  403. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +0 -2
  404. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +0 -15
  405. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +0 -2
  406. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +0 -14
  407. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +0 -2
  408. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +0 -14
  409. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +0 -6
  410. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +0 -41
  411. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +0 -2
  412. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +0 -14
  413. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +0 -3
  414. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +0 -7
  415. package/dist/treedx/client/support/creation/apply-changeset.d.ts +0 -3
  416. package/dist/treedx/client/support/creation/apply-changeset.js +0 -10
  417. package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +0 -3
  418. package/dist/treedx/client/support/creation/apply-storage-migration.js +0 -7
  419. package/dist/treedx/client/support/creation/create-migration.d.ts +0 -6
  420. package/dist/treedx/client/support/creation/create-migration.js +0 -7
  421. package/dist/treedx/client/support/creation/export-artifact.d.ts +0 -3
  422. package/dist/treedx/client/support/creation/export-artifact.js +0 -8
  423. package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +0 -3
  424. package/dist/treedx/client/support/creation/plan-storage-migration.js +0 -7
  425. package/dist/treedx/client/support/creation/request-binary.d.ts +0 -6
  426. package/dist/treedx/client/support/creation/request-binary.js +0 -42
  427. package/dist/treedx/client/support/creation/write-file.d.ts +0 -3
  428. package/dist/treedx/client/support/creation/write-file.js +0 -10
  429. package/dist/treedx/client/support/creation/write-files.d.ts +0 -3
  430. package/dist/treedx/client/support/creation/write-files.js +0 -12
  431. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +0 -3
  432. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +0 -7
  433. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +0 -3
  434. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +0 -7
  435. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +0 -3
  436. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +0 -9
  437. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +0 -4
  438. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +0 -6
  439. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +0 -3
  440. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +0 -7
  441. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +0 -3
  442. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +0 -7
  443. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +0 -3
  444. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +0 -7
  445. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +0 -3
  446. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +0 -7
  447. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +0 -3
  448. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +0 -10
  449. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +0 -3
  450. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +0 -9
  451. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +0 -3
  452. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +0 -7
  453. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +0 -6
  454. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +0 -7
  455. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +0 -6
  456. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +0 -7
  457. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +0 -6
  458. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +0 -6
  459. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +0 -15
  460. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +0 -6
  461. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +0 -3
  462. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +0 -7
  463. package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +0 -3
  464. package/dist/treedx/client/support/retirement/cleanup-artifacts.js +0 -7
  465. package/dist/treedx/client/support/retirement/delete-artifact.d.ts +0 -3
  466. package/dist/treedx/client/support/retirement/delete-artifact.js +0 -7
  467. package/dist/treedx/client/support/retirement/delete-file.d.ts +0 -3
  468. package/dist/treedx/client/support/retirement/delete-file.js +0 -10
  469. package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +0 -3
  470. package/dist/treedx/client/support/retirement/rollback-storage-migration.js +0 -7
  471. package/dist/treedx/client/support/updates/patch-file.d.ts +0 -3
  472. package/dist/treedx/client/support/updates/patch-file.js +0 -10
  473. package/dist/treedx/client/support/updates/refresh-search-index.d.ts +0 -3
  474. package/dist/treedx/client/support/updates/refresh-search-index.js +0 -8
  475. package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +0 -3
  476. package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +0 -6
  477. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +0 -3
  478. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +0 -8
  479. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +0 -3
  480. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +0 -27
  481. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +0 -3
  482. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +0 -41
  483. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +0 -3
  484. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +0 -27
  485. package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +0 -3
  486. package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +0 -6
  487. package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +0 -3
  488. package/dist/treedx/client/treedx/blobs/creation/write-blob.js +0 -8
  489. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +0 -3
  490. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +0 -8
  491. package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +0 -3
  492. package/dist/treedx/client/treedx/blobs/queries/read-blob.js +0 -10
  493. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +0 -3
  494. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +0 -7
  495. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +0 -3
  496. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +0 -8
  497. package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +0 -3
  498. package/dist/treedx/client/treedx/federation/contracts/federated-query.js +0 -7
  499. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +0 -3
  500. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +0 -6
  501. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +0 -3
  502. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +0 -7
  503. package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +0 -3
  504. package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +0 -7
  505. package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +0 -3
  506. package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +0 -7
  507. package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +0 -3
  508. package/dist/treedx/client/treedx/graph/contracts/federated-context.js +0 -7
  509. package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +0 -3
  510. package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +0 -7
  511. package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +0 -3
  512. package/dist/treedx/client/treedx/graph/contracts/graph-search.js +0 -8
  513. package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +0 -3
  514. package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +0 -10
  515. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +0 -3
  516. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +0 -7
  517. package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +0 -3
  518. package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +0 -7
  519. package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +0 -3
  520. package/dist/treedx/client/treedx/graph/queries/query-graph.js +0 -7
  521. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +0 -3
  522. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +0 -6
  523. package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +0 -3
  524. package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +0 -6
  525. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +0 -3
  526. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +0 -6
  527. package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +0 -3
  528. package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +0 -7
  529. package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +0 -3
  530. package/dist/treedx/client/treedx/search/contracts/federated-search.js +0 -7
  531. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +0 -3
  532. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +0 -7
  533. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +0 -3
  534. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +0 -12
  535. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +0 -2
  536. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +0 -6
  537. package/dist/treedx/generated/openapi-types.d.ts +0 -3662
  538. package/dist/treedx/generated/openapi-types.js +0 -0
  539. package/dist/treedx/support/client.d.ts +0 -251
  540. package/dist/treedx/support/client.js +0 -252
  541. package/dist/treedx/support/errors.d.ts +0 -13
  542. package/dist/treedx/support/errors.js +0 -17
  543. package/dist/treedx/types/tree-dx-actor.d.ts +0 -209
  544. package/dist/treedx/types/tree-dx-actor.js +0 -8
  545. package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +0 -13
  546. package/dist/treedx/types/tree-dx-artifact-list-response.js +0 -0
  547. package/dist/treedx/types/tree-dx-changeset.d.ts +0 -51
  548. package/dist/treedx/types/tree-dx-changeset.js +0 -6
  549. package/dist/treedx/types/tree-dx-context-request.d.ts +0 -245
  550. package/dist/treedx/types/tree-dx-context-request.js +0 -0
  551. package/dist/treedx/types/tree-dx-exec-result.d.ts +0 -249
  552. package/dist/treedx/types/tree-dx-exec-result.js +0 -0
  553. package/dist/treedx/types/tree-dx-list-tree-request.d.ts +0 -222
  554. package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
  555. package/dist/treedx/types/tree-dx-push-request.d.ts +0 -229
  556. package/dist/treedx/types/tree-dx-push-request.js +0 -0
  557. /package/dist/{agent-capacity/contracts/operations/workflow-promotion.js → site-contracts/cloudflare.js} +0 -0
  558. /package/dist/{agent-capacity/contracts/support/decision-work.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
+ environment: Record<string, string>;
24
+ command: string;
25
+ args: string[];
26
+ timeoutSeconds: number;
27
+ cwd?: string | undefined;
28
+ }, {
29
+ command: string;
30
+ environment?: Record<string, string> | undefined;
31
+ args?: string[] | undefined;
32
+ cwd?: 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
+ environment: Record<string, string>;
43
+ command: string;
44
+ args: string[];
45
+ timeoutSeconds: number;
46
+ cwd?: string | undefined;
47
+ }, {
48
+ command: string;
49
+ environment?: Record<string, string> | undefined;
50
+ args?: string[] | undefined;
51
+ cwd?: 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
+ environment: Record<string, string>;
62
+ command: string;
63
+ args: string[];
64
+ timeoutSeconds: number;
65
+ cwd?: string | undefined;
66
+ }, {
67
+ command: string;
68
+ environment?: Record<string, string> | undefined;
69
+ args?: string[] | undefined;
70
+ cwd?: 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
+ environment: Record<string, string>;
81
+ command: string;
82
+ args: string[];
83
+ timeoutSeconds: number;
84
+ cwd?: string | undefined;
85
+ }, {
86
+ command: string;
87
+ environment?: Record<string, string> | undefined;
88
+ args?: string[] | undefined;
89
+ cwd?: 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
+ environment: Record<string, string>;
100
+ command: string;
101
+ args: string[];
102
+ timeoutSeconds: number;
103
+ cwd?: string | undefined;
104
+ }, {
105
+ command: string;
106
+ environment?: Record<string, string> | undefined;
107
+ args?: string[] | undefined;
108
+ cwd?: 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
+ environment: Record<string, string>;
119
+ command: string;
120
+ args: string[];
121
+ timeoutSeconds: number;
122
+ cwd?: string | undefined;
123
+ }, {
124
+ command: string;
125
+ environment?: Record<string, string> | undefined;
126
+ args?: string[] | undefined;
127
+ cwd?: 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
+ environment: Record<string, string>;
138
+ command: string;
139
+ args: string[];
140
+ timeoutSeconds: number;
141
+ cwd?: string | undefined;
142
+ }, {
143
+ command: string;
144
+ environment?: Record<string, string> | undefined;
145
+ args?: string[] | undefined;
146
+ cwd?: string | undefined;
147
+ timeoutSeconds?: number | undefined;
148
+ }>>;
149
+ }, "strict", z.ZodTypeAny, {
150
+ build?: {
151
+ environment: Record<string, string>;
152
+ command: string;
153
+ args: string[];
154
+ timeoutSeconds: number;
155
+ cwd?: string | undefined;
156
+ } | undefined;
157
+ setup?: {
158
+ environment: Record<string, string>;
159
+ command: string;
160
+ args: string[];
161
+ timeoutSeconds: number;
162
+ cwd?: string | undefined;
163
+ } | undefined;
164
+ watch?: {
165
+ environment: Record<string, string>;
166
+ command: string;
167
+ args: string[];
168
+ timeoutSeconds: number;
169
+ cwd?: string | undefined;
170
+ } | undefined;
171
+ start?: {
172
+ environment: Record<string, string>;
173
+ command: string;
174
+ args: string[];
175
+ timeoutSeconds: number;
176
+ cwd?: string | undefined;
177
+ } | undefined;
178
+ stop?: {
179
+ environment: Record<string, string>;
180
+ command: string;
181
+ args: string[];
182
+ timeoutSeconds: number;
183
+ cwd?: string | undefined;
184
+ } | undefined;
185
+ verify?: {
186
+ environment: Record<string, string>;
187
+ command: string;
188
+ args: string[];
189
+ timeoutSeconds: number;
190
+ cwd?: string | undefined;
191
+ } | undefined;
192
+ cleanup?: {
193
+ environment: Record<string, string>;
194
+ command: string;
195
+ args: string[];
196
+ timeoutSeconds: number;
197
+ cwd?: string | undefined;
198
+ } | undefined;
199
+ }, {
200
+ build?: {
201
+ command: string;
202
+ environment?: Record<string, string> | undefined;
203
+ args?: string[] | undefined;
204
+ cwd?: string | undefined;
205
+ timeoutSeconds?: number | undefined;
206
+ } | undefined;
207
+ setup?: {
208
+ command: string;
209
+ environment?: Record<string, string> | undefined;
210
+ args?: string[] | undefined;
211
+ cwd?: string | undefined;
212
+ timeoutSeconds?: number | undefined;
213
+ } | undefined;
214
+ watch?: {
215
+ command: string;
216
+ environment?: Record<string, string> | undefined;
217
+ args?: string[] | undefined;
218
+ cwd?: string | undefined;
219
+ timeoutSeconds?: number | undefined;
220
+ } | undefined;
221
+ start?: {
222
+ command: string;
223
+ environment?: Record<string, string> | undefined;
224
+ args?: string[] | undefined;
225
+ cwd?: string | undefined;
226
+ timeoutSeconds?: number | undefined;
227
+ } | undefined;
228
+ stop?: {
229
+ command: string;
230
+ environment?: Record<string, string> | undefined;
231
+ args?: string[] | undefined;
232
+ cwd?: string | undefined;
233
+ timeoutSeconds?: number | undefined;
234
+ } | undefined;
235
+ verify?: {
236
+ command: string;
237
+ environment?: Record<string, string> | undefined;
238
+ args?: string[] | undefined;
239
+ cwd?: string | undefined;
240
+ timeoutSeconds?: number | undefined;
241
+ } | undefined;
242
+ cleanup?: {
243
+ command: string;
244
+ environment?: Record<string, string> | undefined;
245
+ args?: string[] | undefined;
246
+ cwd?: 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: "local" | "remote" | "either";
358
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
359
+ capability?: string | undefined;
360
+ }, {
361
+ id: string;
362
+ target: string;
363
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
364
+ capability?: string | undefined;
365
+ locality?: "local" | "remote" | "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
+ environment: Record<string, string>;
379
+ command: string;
380
+ args: string[];
381
+ timeoutSeconds: number;
382
+ cwd?: string | undefined;
383
+ }, {
384
+ command: string;
385
+ environment?: Record<string, string> | undefined;
386
+ args?: string[] | undefined;
387
+ cwd?: 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
+ environment: Record<string, string>;
397
+ command: string;
398
+ args: string[];
399
+ timeoutSeconds: number;
400
+ cwd?: string | undefined;
401
+ } | undefined;
402
+ }, {
403
+ graceSeconds?: number | undefined;
404
+ drainOperation?: {
405
+ command: string;
406
+ environment?: Record<string, string> | undefined;
407
+ args?: string[] | undefined;
408
+ cwd?: 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
+ environment: Record<string, string>;
438
+ command: string;
439
+ args: string[];
440
+ timeoutSeconds: number;
441
+ cwd?: string | undefined;
442
+ }, {
443
+ command: string;
444
+ environment?: Record<string, string> | undefined;
445
+ args?: string[] | undefined;
446
+ cwd?: 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
+ environment: Record<string, string>;
458
+ command: string;
459
+ args: string[];
460
+ timeoutSeconds: number;
461
+ cwd?: string | undefined;
462
+ }, {
463
+ command: string;
464
+ environment?: Record<string, string> | undefined;
465
+ args?: string[] | undefined;
466
+ cwd?: string | undefined;
467
+ timeoutSeconds?: number | undefined;
468
+ }>, "many">>;
469
+ }, "strict", z.ZodTypeAny, {
470
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
471
+ operation: {
472
+ environment: Record<string, string>;
473
+ command: string;
474
+ args: string[];
475
+ timeoutSeconds: number;
476
+ cwd?: string | undefined;
477
+ };
478
+ artifacts: string[];
479
+ contractOperations: {
480
+ environment: Record<string, string>;
481
+ command: string;
482
+ args: string[];
483
+ timeoutSeconds: number;
484
+ cwd?: string | undefined;
485
+ }[];
486
+ }, {
487
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
488
+ operation: {
489
+ command: string;
490
+ environment?: Record<string, string> | undefined;
491
+ args?: string[] | undefined;
492
+ cwd?: string | undefined;
493
+ timeoutSeconds?: number | undefined;
494
+ };
495
+ artifacts: string[];
496
+ contractOperations?: {
497
+ command: string;
498
+ environment?: Record<string, string> | undefined;
499
+ args?: string[] | undefined;
500
+ cwd?: 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
+ ready: {
518
+ path: string;
519
+ kind: "marker";
520
+ timeoutSeconds: number;
521
+ } | {
522
+ path: string;
523
+ kind: "http";
524
+ timeoutSeconds: number;
525
+ expectedStatus: number;
526
+ } | {
527
+ kind: "tcp";
528
+ timeoutSeconds: number;
529
+ } | {
530
+ kind: "process";
531
+ graceSeconds: number;
532
+ };
533
+ outputs: {
534
+ path: string;
535
+ mediaType: string;
536
+ digestAlgorithm: "sha256";
537
+ completionMarker?: string | undefined;
538
+ }[];
539
+ operations: {
540
+ build?: {
541
+ environment: Record<string, string>;
542
+ command: string;
543
+ args: string[];
544
+ timeoutSeconds: number;
545
+ cwd?: string | undefined;
546
+ } | undefined;
547
+ setup?: {
548
+ environment: Record<string, string>;
549
+ command: string;
550
+ args: string[];
551
+ timeoutSeconds: number;
552
+ cwd?: string | undefined;
553
+ } | undefined;
554
+ watch?: {
555
+ environment: Record<string, string>;
556
+ command: string;
557
+ args: string[];
558
+ timeoutSeconds: number;
559
+ cwd?: string | undefined;
560
+ } | undefined;
561
+ start?: {
562
+ environment: Record<string, string>;
563
+ command: string;
564
+ args: string[];
565
+ timeoutSeconds: number;
566
+ cwd?: string | undefined;
567
+ } | undefined;
568
+ stop?: {
569
+ environment: Record<string, string>;
570
+ command: string;
571
+ args: string[];
572
+ timeoutSeconds: number;
573
+ cwd?: string | undefined;
574
+ } | undefined;
575
+ verify?: {
576
+ environment: Record<string, string>;
577
+ command: string;
578
+ args: string[];
579
+ timeoutSeconds: number;
580
+ cwd?: string | undefined;
581
+ } | undefined;
582
+ cleanup?: {
583
+ environment: Record<string, string>;
584
+ command: string;
585
+ args: string[];
586
+ timeoutSeconds: number;
587
+ cwd?: string | undefined;
588
+ } | undefined;
589
+ };
590
+ resources: {
591
+ cpuCores?: number | undefined;
592
+ memoryBytes?: number | undefined;
593
+ diskBytes?: number | undefined;
594
+ };
595
+ dependencies: {
596
+ id: string;
597
+ target: string;
598
+ locality: "local" | "remote" | "either";
599
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
600
+ capability?: string | undefined;
601
+ }[];
602
+ executionCustody: "caller" | "manager";
603
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
604
+ runtimeRequirements: string[];
605
+ sourceRoots: string[];
606
+ ignoredPaths: string[];
607
+ endpoints: {
608
+ id: string;
609
+ visibility: "private" | "host" | "loopback";
610
+ protocol: "http" | "tcp" | "https";
611
+ port: number;
612
+ authentication: "none" | "application" | "mtls";
613
+ canonicalAlias?: 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
+ environment: Record<string, string>;
623
+ command: string;
624
+ args: 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: "executable" | "npm-package" | "oci-image" | "archive";
637
+ operation: {
638
+ environment: Record<string, string>;
639
+ command: string;
640
+ args: string[];
641
+ timeoutSeconds: number;
642
+ cwd?: string | undefined;
643
+ };
644
+ artifacts: string[];
645
+ contractOperations: {
646
+ environment: Record<string, string>;
647
+ command: string;
648
+ args: 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
+ operations: {
673
+ build?: {
674
+ command: string;
675
+ environment?: Record<string, string> | undefined;
676
+ args?: string[] | undefined;
677
+ cwd?: string | undefined;
678
+ timeoutSeconds?: number | undefined;
679
+ } | undefined;
680
+ setup?: {
681
+ command: string;
682
+ environment?: Record<string, string> | undefined;
683
+ args?: string[] | undefined;
684
+ cwd?: string | undefined;
685
+ timeoutSeconds?: number | undefined;
686
+ } | undefined;
687
+ watch?: {
688
+ command: string;
689
+ environment?: Record<string, string> | undefined;
690
+ args?: string[] | undefined;
691
+ cwd?: string | undefined;
692
+ timeoutSeconds?: number | undefined;
693
+ } | undefined;
694
+ start?: {
695
+ command: string;
696
+ environment?: Record<string, string> | undefined;
697
+ args?: string[] | undefined;
698
+ cwd?: string | undefined;
699
+ timeoutSeconds?: number | undefined;
700
+ } | undefined;
701
+ stop?: {
702
+ command: string;
703
+ environment?: Record<string, string> | undefined;
704
+ args?: string[] | undefined;
705
+ cwd?: string | undefined;
706
+ timeoutSeconds?: number | undefined;
707
+ } | undefined;
708
+ verify?: {
709
+ command: string;
710
+ environment?: Record<string, string> | undefined;
711
+ args?: string[] | undefined;
712
+ cwd?: string | undefined;
713
+ timeoutSeconds?: number | undefined;
714
+ } | undefined;
715
+ cleanup?: {
716
+ command: string;
717
+ environment?: Record<string, string> | undefined;
718
+ args?: string[] | undefined;
719
+ cwd?: string | undefined;
720
+ timeoutSeconds?: number | undefined;
721
+ } | undefined;
722
+ };
723
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
724
+ sourceRoots: string[];
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
+ environment?: Record<string, string> | undefined;
732
+ args?: string[] | undefined;
733
+ cwd?: 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
+ outputs?: {
743
+ path: string;
744
+ mediaType: string;
745
+ completionMarker?: string | undefined;
746
+ digestAlgorithm?: "sha256" | undefined;
747
+ }[] | undefined;
748
+ resources?: {
749
+ cpuCores?: number | undefined;
750
+ memoryBytes?: number | undefined;
751
+ diskBytes?: number | undefined;
752
+ } | undefined;
753
+ dependencies?: {
754
+ id: string;
755
+ target: string;
756
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
757
+ capability?: string | undefined;
758
+ locality?: "local" | "remote" | "either" | undefined;
759
+ }[] | undefined;
760
+ executionCustody?: "caller" | "manager" | undefined;
761
+ runtimeRequirements?: string[] | undefined;
762
+ ignoredPaths?: string[] | undefined;
763
+ endpoints?: {
764
+ id: string;
765
+ visibility: "private" | "host" | "loopback";
766
+ protocol: "http" | "tcp" | "https";
767
+ port: number;
768
+ canonicalAlias?: string | undefined;
769
+ authentication?: "none" | "application" | "mtls" | undefined;
770
+ }[] | undefined;
771
+ secretRefs?: Record<string, string> | undefined;
772
+ logs?: string[] | undefined;
773
+ forbiddenOperations?: string[] | undefined;
774
+ freeze?: {
775
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
776
+ operation: {
777
+ command: string;
778
+ environment?: Record<string, string> | undefined;
779
+ args?: string[] | undefined;
780
+ cwd?: string | undefined;
781
+ timeoutSeconds?: number | undefined;
782
+ };
783
+ artifacts: string[];
784
+ contractOperations?: {
785
+ command: string;
786
+ environment?: Record<string, string> | undefined;
787
+ args?: string[] | undefined;
788
+ cwd?: 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
+ ready: {
796
+ path: string;
797
+ kind: "marker";
798
+ timeoutSeconds: number;
799
+ } | {
800
+ path: string;
801
+ kind: "http";
802
+ timeoutSeconds: number;
803
+ expectedStatus: number;
804
+ } | {
805
+ kind: "tcp";
806
+ timeoutSeconds: number;
807
+ } | {
808
+ kind: "process";
809
+ graceSeconds: number;
810
+ };
811
+ outputs: {
812
+ path: string;
813
+ mediaType: string;
814
+ digestAlgorithm: "sha256";
815
+ completionMarker?: string | undefined;
816
+ }[];
817
+ operations: {
818
+ build?: {
819
+ environment: Record<string, string>;
820
+ command: string;
821
+ args: string[];
822
+ timeoutSeconds: number;
823
+ cwd?: string | undefined;
824
+ } | undefined;
825
+ setup?: {
826
+ environment: Record<string, string>;
827
+ command: string;
828
+ args: string[];
829
+ timeoutSeconds: number;
830
+ cwd?: string | undefined;
831
+ } | undefined;
832
+ watch?: {
833
+ environment: Record<string, string>;
834
+ command: string;
835
+ args: string[];
836
+ timeoutSeconds: number;
837
+ cwd?: string | undefined;
838
+ } | undefined;
839
+ start?: {
840
+ environment: Record<string, string>;
841
+ command: string;
842
+ args: string[];
843
+ timeoutSeconds: number;
844
+ cwd?: string | undefined;
845
+ } | undefined;
846
+ stop?: {
847
+ environment: Record<string, string>;
848
+ command: string;
849
+ args: string[];
850
+ timeoutSeconds: number;
851
+ cwd?: string | undefined;
852
+ } | undefined;
853
+ verify?: {
854
+ environment: Record<string, string>;
855
+ command: string;
856
+ args: string[];
857
+ timeoutSeconds: number;
858
+ cwd?: string | undefined;
859
+ } | undefined;
860
+ cleanup?: {
861
+ environment: Record<string, string>;
862
+ command: string;
863
+ args: string[];
864
+ timeoutSeconds: number;
865
+ cwd?: string | undefined;
866
+ } | undefined;
867
+ };
868
+ resources: {
869
+ cpuCores?: number | undefined;
870
+ memoryBytes?: number | undefined;
871
+ diskBytes?: number | undefined;
872
+ };
873
+ dependencies: {
874
+ id: string;
875
+ target: string;
876
+ locality: "local" | "remote" | "either";
877
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
878
+ capability?: string | undefined;
879
+ }[];
880
+ executionCustody: "caller" | "manager";
881
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
882
+ runtimeRequirements: string[];
883
+ sourceRoots: string[];
884
+ ignoredPaths: string[];
885
+ endpoints: {
886
+ id: string;
887
+ visibility: "private" | "host" | "loopback";
888
+ protocol: "http" | "tcp" | "https";
889
+ port: number;
890
+ authentication: "none" | "application" | "mtls";
891
+ canonicalAlias?: 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
+ environment: Record<string, string>;
901
+ command: string;
902
+ args: 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: "executable" | "npm-package" | "oci-image" | "archive";
915
+ operation: {
916
+ environment: Record<string, string>;
917
+ command: string;
918
+ args: string[];
919
+ timeoutSeconds: number;
920
+ cwd?: string | undefined;
921
+ };
922
+ artifacts: string[];
923
+ contractOperations: {
924
+ environment: Record<string, string>;
925
+ command: string;
926
+ args: 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
+ operations: {
951
+ build?: {
952
+ command: string;
953
+ environment?: Record<string, string> | undefined;
954
+ args?: string[] | undefined;
955
+ cwd?: string | undefined;
956
+ timeoutSeconds?: number | undefined;
957
+ } | undefined;
958
+ setup?: {
959
+ command: string;
960
+ environment?: Record<string, string> | undefined;
961
+ args?: string[] | undefined;
962
+ cwd?: string | undefined;
963
+ timeoutSeconds?: number | undefined;
964
+ } | undefined;
965
+ watch?: {
966
+ command: string;
967
+ environment?: Record<string, string> | undefined;
968
+ args?: string[] | undefined;
969
+ cwd?: string | undefined;
970
+ timeoutSeconds?: number | undefined;
971
+ } | undefined;
972
+ start?: {
973
+ command: string;
974
+ environment?: Record<string, string> | undefined;
975
+ args?: string[] | undefined;
976
+ cwd?: string | undefined;
977
+ timeoutSeconds?: number | undefined;
978
+ } | undefined;
979
+ stop?: {
980
+ command: string;
981
+ environment?: Record<string, string> | undefined;
982
+ args?: string[] | undefined;
983
+ cwd?: string | undefined;
984
+ timeoutSeconds?: number | undefined;
985
+ } | undefined;
986
+ verify?: {
987
+ command: string;
988
+ environment?: Record<string, string> | undefined;
989
+ args?: string[] | undefined;
990
+ cwd?: string | undefined;
991
+ timeoutSeconds?: number | undefined;
992
+ } | undefined;
993
+ cleanup?: {
994
+ command: string;
995
+ environment?: Record<string, string> | undefined;
996
+ args?: string[] | undefined;
997
+ cwd?: string | undefined;
998
+ timeoutSeconds?: number | undefined;
999
+ } | undefined;
1000
+ };
1001
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1002
+ sourceRoots: string[];
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
+ environment?: Record<string, string> | undefined;
1010
+ args?: string[] | undefined;
1011
+ cwd?: 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
+ outputs?: {
1021
+ path: string;
1022
+ mediaType: string;
1023
+ completionMarker?: string | undefined;
1024
+ digestAlgorithm?: "sha256" | undefined;
1025
+ }[] | undefined;
1026
+ resources?: {
1027
+ cpuCores?: number | undefined;
1028
+ memoryBytes?: number | undefined;
1029
+ diskBytes?: number | undefined;
1030
+ } | undefined;
1031
+ dependencies?: {
1032
+ id: string;
1033
+ target: string;
1034
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
1035
+ capability?: string | undefined;
1036
+ locality?: "local" | "remote" | "either" | undefined;
1037
+ }[] | undefined;
1038
+ executionCustody?: "caller" | "manager" | undefined;
1039
+ runtimeRequirements?: string[] | undefined;
1040
+ ignoredPaths?: string[] | undefined;
1041
+ endpoints?: {
1042
+ id: string;
1043
+ visibility: "private" | "host" | "loopback";
1044
+ protocol: "http" | "tcp" | "https";
1045
+ port: number;
1046
+ canonicalAlias?: string | undefined;
1047
+ authentication?: "none" | "application" | "mtls" | undefined;
1048
+ }[] | undefined;
1049
+ secretRefs?: Record<string, string> | undefined;
1050
+ logs?: string[] | undefined;
1051
+ forbiddenOperations?: string[] | undefined;
1052
+ freeze?: {
1053
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
1054
+ operation: {
1055
+ command: string;
1056
+ environment?: Record<string, string> | undefined;
1057
+ args?: string[] | undefined;
1058
+ cwd?: string | undefined;
1059
+ timeoutSeconds?: number | undefined;
1060
+ };
1061
+ artifacts: string[];
1062
+ contractOperations?: {
1063
+ command: string;
1064
+ environment?: Record<string, string> | undefined;
1065
+ args?: string[] | undefined;
1066
+ cwd?: 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
+ environment: Record<string, string>;
1107
+ command: string;
1108
+ args: string[];
1109
+ timeoutSeconds: number;
1110
+ cwd?: string | undefined;
1111
+ }, {
1112
+ command: string;
1113
+ environment?: Record<string, string> | undefined;
1114
+ args?: string[] | undefined;
1115
+ cwd?: 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
+ environment: Record<string, string>;
1126
+ command: string;
1127
+ args: string[];
1128
+ timeoutSeconds: number;
1129
+ cwd?: string | undefined;
1130
+ }, {
1131
+ command: string;
1132
+ environment?: Record<string, string> | undefined;
1133
+ args?: string[] | undefined;
1134
+ cwd?: 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
+ environment: Record<string, string>;
1145
+ command: string;
1146
+ args: string[];
1147
+ timeoutSeconds: number;
1148
+ cwd?: string | undefined;
1149
+ }, {
1150
+ command: string;
1151
+ environment?: Record<string, string> | undefined;
1152
+ args?: string[] | undefined;
1153
+ cwd?: 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
+ environment: Record<string, string>;
1164
+ command: string;
1165
+ args: string[];
1166
+ timeoutSeconds: number;
1167
+ cwd?: string | undefined;
1168
+ }, {
1169
+ command: string;
1170
+ environment?: Record<string, string> | undefined;
1171
+ args?: string[] | undefined;
1172
+ cwd?: 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
+ environment: Record<string, string>;
1183
+ command: string;
1184
+ args: string[];
1185
+ timeoutSeconds: number;
1186
+ cwd?: string | undefined;
1187
+ }, {
1188
+ command: string;
1189
+ environment?: Record<string, string> | undefined;
1190
+ args?: string[] | undefined;
1191
+ cwd?: 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
+ environment: Record<string, string>;
1202
+ command: string;
1203
+ args: string[];
1204
+ timeoutSeconds: number;
1205
+ cwd?: string | undefined;
1206
+ }, {
1207
+ command: string;
1208
+ environment?: Record<string, string> | undefined;
1209
+ args?: string[] | undefined;
1210
+ cwd?: 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
+ environment: Record<string, string>;
1221
+ command: string;
1222
+ args: string[];
1223
+ timeoutSeconds: number;
1224
+ cwd?: string | undefined;
1225
+ }, {
1226
+ command: string;
1227
+ environment?: Record<string, string> | undefined;
1228
+ args?: string[] | undefined;
1229
+ cwd?: string | undefined;
1230
+ timeoutSeconds?: number | undefined;
1231
+ }>>;
1232
+ }, "strict", z.ZodTypeAny, {
1233
+ build?: {
1234
+ environment: Record<string, string>;
1235
+ command: string;
1236
+ args: string[];
1237
+ timeoutSeconds: number;
1238
+ cwd?: string | undefined;
1239
+ } | undefined;
1240
+ setup?: {
1241
+ environment: Record<string, string>;
1242
+ command: string;
1243
+ args: string[];
1244
+ timeoutSeconds: number;
1245
+ cwd?: string | undefined;
1246
+ } | undefined;
1247
+ watch?: {
1248
+ environment: Record<string, string>;
1249
+ command: string;
1250
+ args: string[];
1251
+ timeoutSeconds: number;
1252
+ cwd?: string | undefined;
1253
+ } | undefined;
1254
+ start?: {
1255
+ environment: Record<string, string>;
1256
+ command: string;
1257
+ args: string[];
1258
+ timeoutSeconds: number;
1259
+ cwd?: string | undefined;
1260
+ } | undefined;
1261
+ stop?: {
1262
+ environment: Record<string, string>;
1263
+ command: string;
1264
+ args: string[];
1265
+ timeoutSeconds: number;
1266
+ cwd?: string | undefined;
1267
+ } | undefined;
1268
+ verify?: {
1269
+ environment: Record<string, string>;
1270
+ command: string;
1271
+ args: string[];
1272
+ timeoutSeconds: number;
1273
+ cwd?: string | undefined;
1274
+ } | undefined;
1275
+ cleanup?: {
1276
+ environment: Record<string, string>;
1277
+ command: string;
1278
+ args: string[];
1279
+ timeoutSeconds: number;
1280
+ cwd?: string | undefined;
1281
+ } | undefined;
1282
+ }, {
1283
+ build?: {
1284
+ command: string;
1285
+ environment?: Record<string, string> | undefined;
1286
+ args?: string[] | undefined;
1287
+ cwd?: string | undefined;
1288
+ timeoutSeconds?: number | undefined;
1289
+ } | undefined;
1290
+ setup?: {
1291
+ command: string;
1292
+ environment?: Record<string, string> | undefined;
1293
+ args?: string[] | undefined;
1294
+ cwd?: string | undefined;
1295
+ timeoutSeconds?: number | undefined;
1296
+ } | undefined;
1297
+ watch?: {
1298
+ command: string;
1299
+ environment?: Record<string, string> | undefined;
1300
+ args?: string[] | undefined;
1301
+ cwd?: string | undefined;
1302
+ timeoutSeconds?: number | undefined;
1303
+ } | undefined;
1304
+ start?: {
1305
+ command: string;
1306
+ environment?: Record<string, string> | undefined;
1307
+ args?: string[] | undefined;
1308
+ cwd?: string | undefined;
1309
+ timeoutSeconds?: number | undefined;
1310
+ } | undefined;
1311
+ stop?: {
1312
+ command: string;
1313
+ environment?: Record<string, string> | undefined;
1314
+ args?: string[] | undefined;
1315
+ cwd?: string | undefined;
1316
+ timeoutSeconds?: number | undefined;
1317
+ } | undefined;
1318
+ verify?: {
1319
+ command: string;
1320
+ environment?: Record<string, string> | undefined;
1321
+ args?: string[] | undefined;
1322
+ cwd?: string | undefined;
1323
+ timeoutSeconds?: number | undefined;
1324
+ } | undefined;
1325
+ cleanup?: {
1326
+ command: string;
1327
+ environment?: Record<string, string> | undefined;
1328
+ args?: string[] | undefined;
1329
+ cwd?: 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: "local" | "remote" | "either";
1441
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
1442
+ capability?: string | undefined;
1443
+ }, {
1444
+ id: string;
1445
+ target: string;
1446
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
1447
+ capability?: string | undefined;
1448
+ locality?: "local" | "remote" | "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
+ environment: Record<string, string>;
1462
+ command: string;
1463
+ args: string[];
1464
+ timeoutSeconds: number;
1465
+ cwd?: string | undefined;
1466
+ }, {
1467
+ command: string;
1468
+ environment?: Record<string, string> | undefined;
1469
+ args?: string[] | undefined;
1470
+ cwd?: 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
+ environment: Record<string, string>;
1480
+ command: string;
1481
+ args: string[];
1482
+ timeoutSeconds: number;
1483
+ cwd?: string | undefined;
1484
+ } | undefined;
1485
+ }, {
1486
+ graceSeconds?: number | undefined;
1487
+ drainOperation?: {
1488
+ command: string;
1489
+ environment?: Record<string, string> | undefined;
1490
+ args?: string[] | undefined;
1491
+ cwd?: 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
+ environment: Record<string, string>;
1521
+ command: string;
1522
+ args: string[];
1523
+ timeoutSeconds: number;
1524
+ cwd?: string | undefined;
1525
+ }, {
1526
+ command: string;
1527
+ environment?: Record<string, string> | undefined;
1528
+ args?: string[] | undefined;
1529
+ cwd?: 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
+ environment: Record<string, string>;
1541
+ command: string;
1542
+ args: string[];
1543
+ timeoutSeconds: number;
1544
+ cwd?: string | undefined;
1545
+ }, {
1546
+ command: string;
1547
+ environment?: Record<string, string> | undefined;
1548
+ args?: string[] | undefined;
1549
+ cwd?: string | undefined;
1550
+ timeoutSeconds?: number | undefined;
1551
+ }>, "many">>;
1552
+ }, "strict", z.ZodTypeAny, {
1553
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
1554
+ operation: {
1555
+ environment: Record<string, string>;
1556
+ command: string;
1557
+ args: string[];
1558
+ timeoutSeconds: number;
1559
+ cwd?: string | undefined;
1560
+ };
1561
+ artifacts: string[];
1562
+ contractOperations: {
1563
+ environment: Record<string, string>;
1564
+ command: string;
1565
+ args: string[];
1566
+ timeoutSeconds: number;
1567
+ cwd?: string | undefined;
1568
+ }[];
1569
+ }, {
1570
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
1571
+ operation: {
1572
+ command: string;
1573
+ environment?: Record<string, string> | undefined;
1574
+ args?: string[] | undefined;
1575
+ cwd?: string | undefined;
1576
+ timeoutSeconds?: number | undefined;
1577
+ };
1578
+ artifacts: string[];
1579
+ contractOperations?: {
1580
+ command: string;
1581
+ environment?: Record<string, string> | undefined;
1582
+ args?: string[] | undefined;
1583
+ cwd?: 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
+ ready: {
1601
+ path: string;
1602
+ kind: "marker";
1603
+ timeoutSeconds: number;
1604
+ } | {
1605
+ path: string;
1606
+ kind: "http";
1607
+ timeoutSeconds: number;
1608
+ expectedStatus: number;
1609
+ } | {
1610
+ kind: "tcp";
1611
+ timeoutSeconds: number;
1612
+ } | {
1613
+ kind: "process";
1614
+ graceSeconds: number;
1615
+ };
1616
+ outputs: {
1617
+ path: string;
1618
+ mediaType: string;
1619
+ digestAlgorithm: "sha256";
1620
+ completionMarker?: string | undefined;
1621
+ }[];
1622
+ operations: {
1623
+ build?: {
1624
+ environment: Record<string, string>;
1625
+ command: string;
1626
+ args: string[];
1627
+ timeoutSeconds: number;
1628
+ cwd?: string | undefined;
1629
+ } | undefined;
1630
+ setup?: {
1631
+ environment: Record<string, string>;
1632
+ command: string;
1633
+ args: string[];
1634
+ timeoutSeconds: number;
1635
+ cwd?: string | undefined;
1636
+ } | undefined;
1637
+ watch?: {
1638
+ environment: Record<string, string>;
1639
+ command: string;
1640
+ args: string[];
1641
+ timeoutSeconds: number;
1642
+ cwd?: string | undefined;
1643
+ } | undefined;
1644
+ start?: {
1645
+ environment: Record<string, string>;
1646
+ command: string;
1647
+ args: string[];
1648
+ timeoutSeconds: number;
1649
+ cwd?: string | undefined;
1650
+ } | undefined;
1651
+ stop?: {
1652
+ environment: Record<string, string>;
1653
+ command: string;
1654
+ args: string[];
1655
+ timeoutSeconds: number;
1656
+ cwd?: string | undefined;
1657
+ } | undefined;
1658
+ verify?: {
1659
+ environment: Record<string, string>;
1660
+ command: string;
1661
+ args: string[];
1662
+ timeoutSeconds: number;
1663
+ cwd?: string | undefined;
1664
+ } | undefined;
1665
+ cleanup?: {
1666
+ environment: Record<string, string>;
1667
+ command: string;
1668
+ args: string[];
1669
+ timeoutSeconds: number;
1670
+ cwd?: string | undefined;
1671
+ } | undefined;
1672
+ };
1673
+ resources: {
1674
+ cpuCores?: number | undefined;
1675
+ memoryBytes?: number | undefined;
1676
+ diskBytes?: number | undefined;
1677
+ };
1678
+ dependencies: {
1679
+ id: string;
1680
+ target: string;
1681
+ locality: "local" | "remote" | "either";
1682
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
1683
+ capability?: string | undefined;
1684
+ }[];
1685
+ executionCustody: "caller" | "manager";
1686
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1687
+ runtimeRequirements: string[];
1688
+ sourceRoots: string[];
1689
+ ignoredPaths: string[];
1690
+ endpoints: {
1691
+ id: string;
1692
+ visibility: "private" | "host" | "loopback";
1693
+ protocol: "http" | "tcp" | "https";
1694
+ port: number;
1695
+ authentication: "none" | "application" | "mtls";
1696
+ canonicalAlias?: 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
+ environment: Record<string, string>;
1706
+ command: string;
1707
+ args: 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: "executable" | "npm-package" | "oci-image" | "archive";
1720
+ operation: {
1721
+ environment: Record<string, string>;
1722
+ command: string;
1723
+ args: string[];
1724
+ timeoutSeconds: number;
1725
+ cwd?: string | undefined;
1726
+ };
1727
+ artifacts: string[];
1728
+ contractOperations: {
1729
+ environment: Record<string, string>;
1730
+ command: string;
1731
+ args: 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
+ operations: {
1756
+ build?: {
1757
+ command: string;
1758
+ environment?: Record<string, string> | undefined;
1759
+ args?: string[] | undefined;
1760
+ cwd?: string | undefined;
1761
+ timeoutSeconds?: number | undefined;
1762
+ } | undefined;
1763
+ setup?: {
1764
+ command: string;
1765
+ environment?: Record<string, string> | undefined;
1766
+ args?: string[] | undefined;
1767
+ cwd?: string | undefined;
1768
+ timeoutSeconds?: number | undefined;
1769
+ } | undefined;
1770
+ watch?: {
1771
+ command: string;
1772
+ environment?: Record<string, string> | undefined;
1773
+ args?: string[] | undefined;
1774
+ cwd?: string | undefined;
1775
+ timeoutSeconds?: number | undefined;
1776
+ } | undefined;
1777
+ start?: {
1778
+ command: string;
1779
+ environment?: Record<string, string> | undefined;
1780
+ args?: string[] | undefined;
1781
+ cwd?: string | undefined;
1782
+ timeoutSeconds?: number | undefined;
1783
+ } | undefined;
1784
+ stop?: {
1785
+ command: string;
1786
+ environment?: Record<string, string> | undefined;
1787
+ args?: string[] | undefined;
1788
+ cwd?: string | undefined;
1789
+ timeoutSeconds?: number | undefined;
1790
+ } | undefined;
1791
+ verify?: {
1792
+ command: string;
1793
+ environment?: Record<string, string> | undefined;
1794
+ args?: string[] | undefined;
1795
+ cwd?: string | undefined;
1796
+ timeoutSeconds?: number | undefined;
1797
+ } | undefined;
1798
+ cleanup?: {
1799
+ command: string;
1800
+ environment?: Record<string, string> | undefined;
1801
+ args?: string[] | undefined;
1802
+ cwd?: string | undefined;
1803
+ timeoutSeconds?: number | undefined;
1804
+ } | undefined;
1805
+ };
1806
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1807
+ sourceRoots: string[];
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
+ environment?: Record<string, string> | undefined;
1815
+ args?: string[] | undefined;
1816
+ cwd?: 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
+ outputs?: {
1826
+ path: string;
1827
+ mediaType: string;
1828
+ completionMarker?: string | undefined;
1829
+ digestAlgorithm?: "sha256" | undefined;
1830
+ }[] | undefined;
1831
+ resources?: {
1832
+ cpuCores?: number | undefined;
1833
+ memoryBytes?: number | undefined;
1834
+ diskBytes?: number | undefined;
1835
+ } | undefined;
1836
+ dependencies?: {
1837
+ id: string;
1838
+ target: string;
1839
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
1840
+ capability?: string | undefined;
1841
+ locality?: "local" | "remote" | "either" | undefined;
1842
+ }[] | undefined;
1843
+ executionCustody?: "caller" | "manager" | undefined;
1844
+ runtimeRequirements?: string[] | undefined;
1845
+ ignoredPaths?: string[] | undefined;
1846
+ endpoints?: {
1847
+ id: string;
1848
+ visibility: "private" | "host" | "loopback";
1849
+ protocol: "http" | "tcp" | "https";
1850
+ port: number;
1851
+ canonicalAlias?: string | undefined;
1852
+ authentication?: "none" | "application" | "mtls" | undefined;
1853
+ }[] | undefined;
1854
+ secretRefs?: Record<string, string> | undefined;
1855
+ logs?: string[] | undefined;
1856
+ forbiddenOperations?: string[] | undefined;
1857
+ freeze?: {
1858
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
1859
+ operation: {
1860
+ command: string;
1861
+ environment?: Record<string, string> | undefined;
1862
+ args?: string[] | undefined;
1863
+ cwd?: string | undefined;
1864
+ timeoutSeconds?: number | undefined;
1865
+ };
1866
+ artifacts: string[];
1867
+ contractOperations?: {
1868
+ command: string;
1869
+ environment?: Record<string, string> | undefined;
1870
+ args?: string[] | undefined;
1871
+ cwd?: 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
+ ready: {
1879
+ path: string;
1880
+ kind: "marker";
1881
+ timeoutSeconds: number;
1882
+ } | {
1883
+ path: string;
1884
+ kind: "http";
1885
+ timeoutSeconds: number;
1886
+ expectedStatus: number;
1887
+ } | {
1888
+ kind: "tcp";
1889
+ timeoutSeconds: number;
1890
+ } | {
1891
+ kind: "process";
1892
+ graceSeconds: number;
1893
+ };
1894
+ outputs: {
1895
+ path: string;
1896
+ mediaType: string;
1897
+ digestAlgorithm: "sha256";
1898
+ completionMarker?: string | undefined;
1899
+ }[];
1900
+ operations: {
1901
+ build?: {
1902
+ environment: Record<string, string>;
1903
+ command: string;
1904
+ args: string[];
1905
+ timeoutSeconds: number;
1906
+ cwd?: string | undefined;
1907
+ } | undefined;
1908
+ setup?: {
1909
+ environment: Record<string, string>;
1910
+ command: string;
1911
+ args: string[];
1912
+ timeoutSeconds: number;
1913
+ cwd?: string | undefined;
1914
+ } | undefined;
1915
+ watch?: {
1916
+ environment: Record<string, string>;
1917
+ command: string;
1918
+ args: string[];
1919
+ timeoutSeconds: number;
1920
+ cwd?: string | undefined;
1921
+ } | undefined;
1922
+ start?: {
1923
+ environment: Record<string, string>;
1924
+ command: string;
1925
+ args: string[];
1926
+ timeoutSeconds: number;
1927
+ cwd?: string | undefined;
1928
+ } | undefined;
1929
+ stop?: {
1930
+ environment: Record<string, string>;
1931
+ command: string;
1932
+ args: string[];
1933
+ timeoutSeconds: number;
1934
+ cwd?: string | undefined;
1935
+ } | undefined;
1936
+ verify?: {
1937
+ environment: Record<string, string>;
1938
+ command: string;
1939
+ args: string[];
1940
+ timeoutSeconds: number;
1941
+ cwd?: string | undefined;
1942
+ } | undefined;
1943
+ cleanup?: {
1944
+ environment: Record<string, string>;
1945
+ command: string;
1946
+ args: string[];
1947
+ timeoutSeconds: number;
1948
+ cwd?: string | undefined;
1949
+ } | undefined;
1950
+ };
1951
+ resources: {
1952
+ cpuCores?: number | undefined;
1953
+ memoryBytes?: number | undefined;
1954
+ diskBytes?: number | undefined;
1955
+ };
1956
+ dependencies: {
1957
+ id: string;
1958
+ target: string;
1959
+ locality: "local" | "remote" | "either";
1960
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
1961
+ capability?: string | undefined;
1962
+ }[];
1963
+ executionCustody: "caller" | "manager";
1964
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1965
+ runtimeRequirements: string[];
1966
+ sourceRoots: string[];
1967
+ ignoredPaths: string[];
1968
+ endpoints: {
1969
+ id: string;
1970
+ visibility: "private" | "host" | "loopback";
1971
+ protocol: "http" | "tcp" | "https";
1972
+ port: number;
1973
+ authentication: "none" | "application" | "mtls";
1974
+ canonicalAlias?: 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
+ environment: Record<string, string>;
1984
+ command: string;
1985
+ args: 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: "executable" | "npm-package" | "oci-image" | "archive";
1998
+ operation: {
1999
+ environment: Record<string, string>;
2000
+ command: string;
2001
+ args: string[];
2002
+ timeoutSeconds: number;
2003
+ cwd?: string | undefined;
2004
+ };
2005
+ artifacts: string[];
2006
+ contractOperations: {
2007
+ environment: Record<string, string>;
2008
+ command: string;
2009
+ args: 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
+ operations: {
2034
+ build?: {
2035
+ command: string;
2036
+ environment?: Record<string, string> | undefined;
2037
+ args?: string[] | undefined;
2038
+ cwd?: string | undefined;
2039
+ timeoutSeconds?: number | undefined;
2040
+ } | undefined;
2041
+ setup?: {
2042
+ command: string;
2043
+ environment?: Record<string, string> | undefined;
2044
+ args?: string[] | undefined;
2045
+ cwd?: string | undefined;
2046
+ timeoutSeconds?: number | undefined;
2047
+ } | undefined;
2048
+ watch?: {
2049
+ command: string;
2050
+ environment?: Record<string, string> | undefined;
2051
+ args?: string[] | undefined;
2052
+ cwd?: string | undefined;
2053
+ timeoutSeconds?: number | undefined;
2054
+ } | undefined;
2055
+ start?: {
2056
+ command: string;
2057
+ environment?: Record<string, string> | undefined;
2058
+ args?: string[] | undefined;
2059
+ cwd?: string | undefined;
2060
+ timeoutSeconds?: number | undefined;
2061
+ } | undefined;
2062
+ stop?: {
2063
+ command: string;
2064
+ environment?: Record<string, string> | undefined;
2065
+ args?: string[] | undefined;
2066
+ cwd?: string | undefined;
2067
+ timeoutSeconds?: number | undefined;
2068
+ } | undefined;
2069
+ verify?: {
2070
+ command: string;
2071
+ environment?: Record<string, string> | undefined;
2072
+ args?: string[] | undefined;
2073
+ cwd?: string | undefined;
2074
+ timeoutSeconds?: number | undefined;
2075
+ } | undefined;
2076
+ cleanup?: {
2077
+ command: string;
2078
+ environment?: Record<string, string> | undefined;
2079
+ args?: string[] | undefined;
2080
+ cwd?: string | undefined;
2081
+ timeoutSeconds?: number | undefined;
2082
+ } | undefined;
2083
+ };
2084
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2085
+ sourceRoots: string[];
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
+ environment?: Record<string, string> | undefined;
2093
+ args?: string[] | undefined;
2094
+ cwd?: 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
+ outputs?: {
2104
+ path: string;
2105
+ mediaType: string;
2106
+ completionMarker?: string | undefined;
2107
+ digestAlgorithm?: "sha256" | undefined;
2108
+ }[] | undefined;
2109
+ resources?: {
2110
+ cpuCores?: number | undefined;
2111
+ memoryBytes?: number | undefined;
2112
+ diskBytes?: number | undefined;
2113
+ } | undefined;
2114
+ dependencies?: {
2115
+ id: string;
2116
+ target: string;
2117
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
2118
+ capability?: string | undefined;
2119
+ locality?: "local" | "remote" | "either" | undefined;
2120
+ }[] | undefined;
2121
+ executionCustody?: "caller" | "manager" | undefined;
2122
+ runtimeRequirements?: string[] | undefined;
2123
+ ignoredPaths?: string[] | undefined;
2124
+ endpoints?: {
2125
+ id: string;
2126
+ visibility: "private" | "host" | "loopback";
2127
+ protocol: "http" | "tcp" | "https";
2128
+ port: number;
2129
+ canonicalAlias?: string | undefined;
2130
+ authentication?: "none" | "application" | "mtls" | undefined;
2131
+ }[] | undefined;
2132
+ secretRefs?: Record<string, string> | undefined;
2133
+ logs?: string[] | undefined;
2134
+ forbiddenOperations?: string[] | undefined;
2135
+ freeze?: {
2136
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
2137
+ operation: {
2138
+ command: string;
2139
+ environment?: Record<string, string> | undefined;
2140
+ args?: string[] | undefined;
2141
+ cwd?: string | undefined;
2142
+ timeoutSeconds?: number | undefined;
2143
+ };
2144
+ artifacts: string[];
2145
+ contractOperations?: {
2146
+ command: string;
2147
+ environment?: Record<string, string> | undefined;
2148
+ args?: string[] | undefined;
2149
+ cwd?: 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
+ ready: {
2164
+ path: string;
2165
+ kind: "marker";
2166
+ timeoutSeconds: number;
2167
+ } | {
2168
+ path: string;
2169
+ kind: "http";
2170
+ timeoutSeconds: number;
2171
+ expectedStatus: number;
2172
+ } | {
2173
+ kind: "tcp";
2174
+ timeoutSeconds: number;
2175
+ } | {
2176
+ kind: "process";
2177
+ graceSeconds: number;
2178
+ };
2179
+ outputs: {
2180
+ path: string;
2181
+ mediaType: string;
2182
+ digestAlgorithm: "sha256";
2183
+ completionMarker?: string | undefined;
2184
+ }[];
2185
+ operations: {
2186
+ build?: {
2187
+ environment: Record<string, string>;
2188
+ command: string;
2189
+ args: string[];
2190
+ timeoutSeconds: number;
2191
+ cwd?: string | undefined;
2192
+ } | undefined;
2193
+ setup?: {
2194
+ environment: Record<string, string>;
2195
+ command: string;
2196
+ args: string[];
2197
+ timeoutSeconds: number;
2198
+ cwd?: string | undefined;
2199
+ } | undefined;
2200
+ watch?: {
2201
+ environment: Record<string, string>;
2202
+ command: string;
2203
+ args: string[];
2204
+ timeoutSeconds: number;
2205
+ cwd?: string | undefined;
2206
+ } | undefined;
2207
+ start?: {
2208
+ environment: Record<string, string>;
2209
+ command: string;
2210
+ args: string[];
2211
+ timeoutSeconds: number;
2212
+ cwd?: string | undefined;
2213
+ } | undefined;
2214
+ stop?: {
2215
+ environment: Record<string, string>;
2216
+ command: string;
2217
+ args: string[];
2218
+ timeoutSeconds: number;
2219
+ cwd?: string | undefined;
2220
+ } | undefined;
2221
+ verify?: {
2222
+ environment: Record<string, string>;
2223
+ command: string;
2224
+ args: string[];
2225
+ timeoutSeconds: number;
2226
+ cwd?: string | undefined;
2227
+ } | undefined;
2228
+ cleanup?: {
2229
+ environment: Record<string, string>;
2230
+ command: string;
2231
+ args: string[];
2232
+ timeoutSeconds: number;
2233
+ cwd?: string | undefined;
2234
+ } | undefined;
2235
+ };
2236
+ resources: {
2237
+ cpuCores?: number | undefined;
2238
+ memoryBytes?: number | undefined;
2239
+ diskBytes?: number | undefined;
2240
+ };
2241
+ dependencies: {
2242
+ id: string;
2243
+ target: string;
2244
+ locality: "local" | "remote" | "either";
2245
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
2246
+ capability?: string | undefined;
2247
+ }[];
2248
+ executionCustody: "caller" | "manager";
2249
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2250
+ runtimeRequirements: string[];
2251
+ sourceRoots: string[];
2252
+ ignoredPaths: string[];
2253
+ endpoints: {
2254
+ id: string;
2255
+ visibility: "private" | "host" | "loopback";
2256
+ protocol: "http" | "tcp" | "https";
2257
+ port: number;
2258
+ authentication: "none" | "application" | "mtls";
2259
+ canonicalAlias?: 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
+ environment: Record<string, string>;
2269
+ command: string;
2270
+ args: 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: "executable" | "npm-package" | "oci-image" | "archive";
2283
+ operation: {
2284
+ environment: Record<string, string>;
2285
+ command: string;
2286
+ args: string[];
2287
+ timeoutSeconds: number;
2288
+ cwd?: string | undefined;
2289
+ };
2290
+ artifacts: string[];
2291
+ contractOperations: {
2292
+ environment: Record<string, string>;
2293
+ command: string;
2294
+ args: 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
+ operations: {
2329
+ build?: {
2330
+ command: string;
2331
+ environment?: Record<string, string> | undefined;
2332
+ args?: string[] | undefined;
2333
+ cwd?: string | undefined;
2334
+ timeoutSeconds?: number | undefined;
2335
+ } | undefined;
2336
+ setup?: {
2337
+ command: string;
2338
+ environment?: Record<string, string> | undefined;
2339
+ args?: string[] | undefined;
2340
+ cwd?: string | undefined;
2341
+ timeoutSeconds?: number | undefined;
2342
+ } | undefined;
2343
+ watch?: {
2344
+ command: string;
2345
+ environment?: Record<string, string> | undefined;
2346
+ args?: string[] | undefined;
2347
+ cwd?: string | undefined;
2348
+ timeoutSeconds?: number | undefined;
2349
+ } | undefined;
2350
+ start?: {
2351
+ command: string;
2352
+ environment?: Record<string, string> | undefined;
2353
+ args?: string[] | undefined;
2354
+ cwd?: string | undefined;
2355
+ timeoutSeconds?: number | undefined;
2356
+ } | undefined;
2357
+ stop?: {
2358
+ command: string;
2359
+ environment?: Record<string, string> | undefined;
2360
+ args?: string[] | undefined;
2361
+ cwd?: string | undefined;
2362
+ timeoutSeconds?: number | undefined;
2363
+ } | undefined;
2364
+ verify?: {
2365
+ command: string;
2366
+ environment?: Record<string, string> | undefined;
2367
+ args?: string[] | undefined;
2368
+ cwd?: string | undefined;
2369
+ timeoutSeconds?: number | undefined;
2370
+ } | undefined;
2371
+ cleanup?: {
2372
+ command: string;
2373
+ environment?: Record<string, string> | undefined;
2374
+ args?: string[] | undefined;
2375
+ cwd?: string | undefined;
2376
+ timeoutSeconds?: number | undefined;
2377
+ } | undefined;
2378
+ };
2379
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2380
+ sourceRoots: string[];
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
+ environment?: Record<string, string> | undefined;
2388
+ args?: string[] | undefined;
2389
+ cwd?: 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
+ outputs?: {
2399
+ path: string;
2400
+ mediaType: string;
2401
+ completionMarker?: string | undefined;
2402
+ digestAlgorithm?: "sha256" | undefined;
2403
+ }[] | undefined;
2404
+ resources?: {
2405
+ cpuCores?: number | undefined;
2406
+ memoryBytes?: number | undefined;
2407
+ diskBytes?: number | undefined;
2408
+ } | undefined;
2409
+ dependencies?: {
2410
+ id: string;
2411
+ target: string;
2412
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
2413
+ capability?: string | undefined;
2414
+ locality?: "local" | "remote" | "either" | undefined;
2415
+ }[] | undefined;
2416
+ executionCustody?: "caller" | "manager" | undefined;
2417
+ runtimeRequirements?: string[] | undefined;
2418
+ ignoredPaths?: string[] | undefined;
2419
+ endpoints?: {
2420
+ id: string;
2421
+ visibility: "private" | "host" | "loopback";
2422
+ protocol: "http" | "tcp" | "https";
2423
+ port: number;
2424
+ canonicalAlias?: string | undefined;
2425
+ authentication?: "none" | "application" | "mtls" | undefined;
2426
+ }[] | undefined;
2427
+ secretRefs?: Record<string, string> | undefined;
2428
+ logs?: string[] | undefined;
2429
+ forbiddenOperations?: string[] | undefined;
2430
+ freeze?: {
2431
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
2432
+ operation: {
2433
+ command: string;
2434
+ environment?: Record<string, string> | undefined;
2435
+ args?: string[] | undefined;
2436
+ cwd?: string | undefined;
2437
+ timeoutSeconds?: number | undefined;
2438
+ };
2439
+ artifacts: string[];
2440
+ contractOperations?: {
2441
+ command: string;
2442
+ environment?: Record<string, string> | undefined;
2443
+ args?: string[] | undefined;
2444
+ cwd?: 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
+ ready: {
2462
+ path: string;
2463
+ kind: "marker";
2464
+ timeoutSeconds: number;
2465
+ } | {
2466
+ path: string;
2467
+ kind: "http";
2468
+ timeoutSeconds: number;
2469
+ expectedStatus: number;
2470
+ } | {
2471
+ kind: "tcp";
2472
+ timeoutSeconds: number;
2473
+ } | {
2474
+ kind: "process";
2475
+ graceSeconds: number;
2476
+ };
2477
+ outputs: {
2478
+ path: string;
2479
+ mediaType: string;
2480
+ digestAlgorithm: "sha256";
2481
+ completionMarker?: string | undefined;
2482
+ }[];
2483
+ operations: {
2484
+ build?: {
2485
+ environment: Record<string, string>;
2486
+ command: string;
2487
+ args: string[];
2488
+ timeoutSeconds: number;
2489
+ cwd?: string | undefined;
2490
+ } | undefined;
2491
+ setup?: {
2492
+ environment: Record<string, string>;
2493
+ command: string;
2494
+ args: string[];
2495
+ timeoutSeconds: number;
2496
+ cwd?: string | undefined;
2497
+ } | undefined;
2498
+ watch?: {
2499
+ environment: Record<string, string>;
2500
+ command: string;
2501
+ args: string[];
2502
+ timeoutSeconds: number;
2503
+ cwd?: string | undefined;
2504
+ } | undefined;
2505
+ start?: {
2506
+ environment: Record<string, string>;
2507
+ command: string;
2508
+ args: string[];
2509
+ timeoutSeconds: number;
2510
+ cwd?: string | undefined;
2511
+ } | undefined;
2512
+ stop?: {
2513
+ environment: Record<string, string>;
2514
+ command: string;
2515
+ args: string[];
2516
+ timeoutSeconds: number;
2517
+ cwd?: string | undefined;
2518
+ } | undefined;
2519
+ verify?: {
2520
+ environment: Record<string, string>;
2521
+ command: string;
2522
+ args: string[];
2523
+ timeoutSeconds: number;
2524
+ cwd?: string | undefined;
2525
+ } | undefined;
2526
+ cleanup?: {
2527
+ environment: Record<string, string>;
2528
+ command: string;
2529
+ args: string[];
2530
+ timeoutSeconds: number;
2531
+ cwd?: string | undefined;
2532
+ } | undefined;
2533
+ };
2534
+ resources: {
2535
+ cpuCores?: number | undefined;
2536
+ memoryBytes?: number | undefined;
2537
+ diskBytes?: number | undefined;
2538
+ };
2539
+ dependencies: {
2540
+ id: string;
2541
+ target: string;
2542
+ locality: "local" | "remote" | "either";
2543
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
2544
+ capability?: string | undefined;
2545
+ }[];
2546
+ executionCustody: "caller" | "manager";
2547
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2548
+ runtimeRequirements: string[];
2549
+ sourceRoots: string[];
2550
+ ignoredPaths: string[];
2551
+ endpoints: {
2552
+ id: string;
2553
+ visibility: "private" | "host" | "loopback";
2554
+ protocol: "http" | "tcp" | "https";
2555
+ port: number;
2556
+ authentication: "none" | "application" | "mtls";
2557
+ canonicalAlias?: 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
+ environment: Record<string, string>;
2567
+ command: string;
2568
+ args: 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: "executable" | "npm-package" | "oci-image" | "archive";
2581
+ operation: {
2582
+ environment: Record<string, string>;
2583
+ command: string;
2584
+ args: string[];
2585
+ timeoutSeconds: number;
2586
+ cwd?: string | undefined;
2587
+ };
2588
+ artifacts: string[];
2589
+ contractOperations: {
2590
+ environment: Record<string, string>;
2591
+ command: string;
2592
+ args: 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
+ operations: {
2627
+ build?: {
2628
+ command: string;
2629
+ environment?: Record<string, string> | undefined;
2630
+ args?: string[] | undefined;
2631
+ cwd?: string | undefined;
2632
+ timeoutSeconds?: number | undefined;
2633
+ } | undefined;
2634
+ setup?: {
2635
+ command: string;
2636
+ environment?: Record<string, string> | undefined;
2637
+ args?: string[] | undefined;
2638
+ cwd?: string | undefined;
2639
+ timeoutSeconds?: number | undefined;
2640
+ } | undefined;
2641
+ watch?: {
2642
+ command: string;
2643
+ environment?: Record<string, string> | undefined;
2644
+ args?: string[] | undefined;
2645
+ cwd?: string | undefined;
2646
+ timeoutSeconds?: number | undefined;
2647
+ } | undefined;
2648
+ start?: {
2649
+ command: string;
2650
+ environment?: Record<string, string> | undefined;
2651
+ args?: string[] | undefined;
2652
+ cwd?: string | undefined;
2653
+ timeoutSeconds?: number | undefined;
2654
+ } | undefined;
2655
+ stop?: {
2656
+ command: string;
2657
+ environment?: Record<string, string> | undefined;
2658
+ args?: string[] | undefined;
2659
+ cwd?: string | undefined;
2660
+ timeoutSeconds?: number | undefined;
2661
+ } | undefined;
2662
+ verify?: {
2663
+ command: string;
2664
+ environment?: Record<string, string> | undefined;
2665
+ args?: string[] | undefined;
2666
+ cwd?: string | undefined;
2667
+ timeoutSeconds?: number | undefined;
2668
+ } | undefined;
2669
+ cleanup?: {
2670
+ command: string;
2671
+ environment?: Record<string, string> | undefined;
2672
+ args?: string[] | undefined;
2673
+ cwd?: string | undefined;
2674
+ timeoutSeconds?: number | undefined;
2675
+ } | undefined;
2676
+ };
2677
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2678
+ sourceRoots: string[];
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
+ environment?: Record<string, string> | undefined;
2686
+ args?: string[] | undefined;
2687
+ cwd?: 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
+ outputs?: {
2697
+ path: string;
2698
+ mediaType: string;
2699
+ completionMarker?: string | undefined;
2700
+ digestAlgorithm?: "sha256" | undefined;
2701
+ }[] | undefined;
2702
+ resources?: {
2703
+ cpuCores?: number | undefined;
2704
+ memoryBytes?: number | undefined;
2705
+ diskBytes?: number | undefined;
2706
+ } | undefined;
2707
+ dependencies?: {
2708
+ id: string;
2709
+ target: string;
2710
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
2711
+ capability?: string | undefined;
2712
+ locality?: "local" | "remote" | "either" | undefined;
2713
+ }[] | undefined;
2714
+ executionCustody?: "caller" | "manager" | undefined;
2715
+ runtimeRequirements?: string[] | undefined;
2716
+ ignoredPaths?: string[] | undefined;
2717
+ endpoints?: {
2718
+ id: string;
2719
+ visibility: "private" | "host" | "loopback";
2720
+ protocol: "http" | "tcp" | "https";
2721
+ port: number;
2722
+ canonicalAlias?: string | undefined;
2723
+ authentication?: "none" | "application" | "mtls" | undefined;
2724
+ }[] | undefined;
2725
+ secretRefs?: Record<string, string> | undefined;
2726
+ logs?: string[] | undefined;
2727
+ forbiddenOperations?: string[] | undefined;
2728
+ freeze?: {
2729
+ kind: "executable" | "npm-package" | "oci-image" | "archive";
2730
+ operation: {
2731
+ command: string;
2732
+ environment?: Record<string, string> | undefined;
2733
+ args?: string[] | undefined;
2734
+ cwd?: string | undefined;
2735
+ timeoutSeconds?: number | undefined;
2736
+ };
2737
+ artifacts: string[];
2738
+ contractOperations?: {
2739
+ command: string;
2740
+ environment?: Record<string, string> | undefined;
2741
+ args?: string[] | undefined;
2742
+ cwd?: 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
+ ready: {
2760
+ path: string;
2761
+ kind: "marker";
2762
+ timeoutSeconds: number;
2763
+ } | {
2764
+ path: string;
2765
+ kind: "http";
2766
+ timeoutSeconds: number;
2767
+ expectedStatus: number;
2768
+ } | {
2769
+ kind: "tcp";
2770
+ timeoutSeconds: number;
2771
+ } | {
2772
+ kind: "process";
2773
+ graceSeconds: number;
2774
+ };
2775
+ outputs: {
2776
+ path: string;
2777
+ mediaType: string;
2778
+ digestAlgorithm: "sha256";
2779
+ completionMarker?: string | undefined;
2780
+ }[];
2781
+ operations: {
2782
+ build?: {
2783
+ environment: Record<string, string>;
2784
+ command: string;
2785
+ args: string[];
2786
+ timeoutSeconds: number;
2787
+ cwd?: string | undefined;
2788
+ } | undefined;
2789
+ setup?: {
2790
+ environment: Record<string, string>;
2791
+ command: string;
2792
+ args: string[];
2793
+ timeoutSeconds: number;
2794
+ cwd?: string | undefined;
2795
+ } | undefined;
2796
+ watch?: {
2797
+ environment: Record<string, string>;
2798
+ command: string;
2799
+ args: string[];
2800
+ timeoutSeconds: number;
2801
+ cwd?: string | undefined;
2802
+ } | undefined;
2803
+ start?: {
2804
+ environment: Record<string, string>;
2805
+ command: string;
2806
+ args: string[];
2807
+ timeoutSeconds: number;
2808
+ cwd?: string | undefined;
2809
+ } | undefined;
2810
+ stop?: {
2811
+ environment: Record<string, string>;
2812
+ command: string;
2813
+ args: string[];
2814
+ timeoutSeconds: number;
2815
+ cwd?: string | undefined;
2816
+ } | undefined;
2817
+ verify?: {
2818
+ environment: Record<string, string>;
2819
+ command: string;
2820
+ args: string[];
2821
+ timeoutSeconds: number;
2822
+ cwd?: string | undefined;
2823
+ } | undefined;
2824
+ cleanup?: {
2825
+ environment: Record<string, string>;
2826
+ command: string;
2827
+ args: string[];
2828
+ timeoutSeconds: number;
2829
+ cwd?: string | undefined;
2830
+ } | undefined;
2831
+ };
2832
+ resources: {
2833
+ cpuCores?: number | undefined;
2834
+ memoryBytes?: number | undefined;
2835
+ diskBytes?: number | undefined;
2836
+ };
2837
+ dependencies: {
2838
+ id: string;
2839
+ target: string;
2840
+ locality: "local" | "remote" | "either";
2841
+ reaction: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild";
2842
+ capability?: string | undefined;
2843
+ }[];
2844
+ executionCustody: "caller" | "manager";
2845
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2846
+ runtimeRequirements: string[];
2847
+ sourceRoots: string[];
2848
+ ignoredPaths: string[];
2849
+ endpoints: {
2850
+ id: string;
2851
+ visibility: "private" | "host" | "loopback";
2852
+ protocol: "http" | "tcp" | "https";
2853
+ port: number;
2854
+ authentication: "none" | "application" | "mtls";
2855
+ canonicalAlias?: 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
+ environment: Record<string, string>;
2865
+ command: string;
2866
+ args: 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: "executable" | "npm-package" | "oci-image" | "archive";
2879
+ operation: {
2880
+ environment: Record<string, string>;
2881
+ command: string;
2882
+ args: string[];
2883
+ timeoutSeconds: number;
2884
+ cwd?: string | undefined;
2885
+ };
2886
+ artifacts: string[];
2887
+ contractOperations: {
2888
+ environment: Record<string, string>;
2889
+ command: string;
2890
+ args: 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", "suspended", "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
+ branch: string | null;
2919
+ commit: string;
2920
+ repository: string;
2921
+ projectId: string;
2922
+ worktree: string;
2923
+ dirtyDigest: string | null;
2924
+ recipeDigest: string;
2925
+ }, {
2926
+ dirty: boolean;
2927
+ branch: string | null;
2928
+ commit: string;
2929
+ repository: 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
+ generation: number;
2945
+ mode: "released" | "live" | "candidate";
2946
+ targetId: string;
2947
+ health: "pending" | "degraded" | "ready" | "stopped";
2948
+ reaction?: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild" | undefined;
2949
+ }, {
2950
+ projectId: string;
2951
+ generation: number;
2952
+ mode: "released" | "live" | "candidate";
2953
+ targetId: string;
2954
+ health: "pending" | "degraded" | "ready" | "stopped";
2955
+ reaction?: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild" | 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" | "secret" | "alias" | "component";
2964
+ acquiredAt: string;
2965
+ }, {
2966
+ resource: string;
2967
+ kind: "state" | "secret" | "alias" | "component";
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" | "planning" | "degraded" | "suspended" | "stopped" | "restoring";
2986
+ actor: string;
2987
+ schemaVersion: "treeseed.development-session/v2";
2988
+ createdAt: string;
2989
+ repositories: {
2990
+ dirty: boolean;
2991
+ branch: string | null;
2992
+ commit: string;
2993
+ repository: string;
2994
+ projectId: string;
2995
+ worktree: string;
2996
+ dirtyDigest: string | null;
2997
+ recipeDigest: string;
2998
+ }[];
2999
+ targets: {
3000
+ projectId: string;
3001
+ generation: number;
3002
+ mode: "released" | "live" | "candidate";
3003
+ targetId: string;
3004
+ health: "pending" | "degraded" | "ready" | "stopped";
3005
+ reaction?: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild" | undefined;
3006
+ }[];
3007
+ blockers: {
3008
+ code: string;
3009
+ message: string;
3010
+ targetId?: string | undefined;
3011
+ }[];
3012
+ leases: {
3013
+ resource: string;
3014
+ kind: "state" | "secret" | "alias" | "component";
3015
+ acquiredAt: string;
3016
+ }[];
3017
+ sessionId: string;
3018
+ hostId: string;
3019
+ restoredReceiptId: string | null;
3020
+ }, {
3021
+ status: "active" | "planning" | "degraded" | "suspended" | "stopped" | "restoring";
3022
+ actor: string;
3023
+ schemaVersion: "treeseed.development-session/v2";
3024
+ createdAt: string;
3025
+ repositories: {
3026
+ dirty: boolean;
3027
+ branch: string | null;
3028
+ commit: string;
3029
+ repository: string;
3030
+ projectId: string;
3031
+ worktree: string;
3032
+ dirtyDigest: string | null;
3033
+ recipeDigest: string;
3034
+ }[];
3035
+ targets: {
3036
+ projectId: string;
3037
+ generation: number;
3038
+ mode: "released" | "live" | "candidate";
3039
+ targetId: string;
3040
+ health: "pending" | "degraded" | "ready" | "stopped";
3041
+ reaction?: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild" | undefined;
3042
+ }[];
3043
+ blockers: {
3044
+ code: string;
3045
+ message: string;
3046
+ targetId?: string | undefined;
3047
+ }[];
3048
+ leases: {
3049
+ resource: string;
3050
+ kind: "state" | "secret" | "alias" | "component";
3051
+ acquiredAt: string;
3052
+ }[];
3053
+ sessionId: string;
3054
+ hostId: string;
3055
+ restoredReceiptId: string | null;
3056
+ }>, {
3057
+ status: "active" | "planning" | "degraded" | "suspended" | "stopped" | "restoring";
3058
+ actor: string;
3059
+ schemaVersion: "treeseed.development-session/v2";
3060
+ createdAt: string;
3061
+ repositories: {
3062
+ dirty: boolean;
3063
+ branch: string | null;
3064
+ commit: string;
3065
+ repository: string;
3066
+ projectId: string;
3067
+ worktree: string;
3068
+ dirtyDigest: string | null;
3069
+ recipeDigest: string;
3070
+ }[];
3071
+ targets: {
3072
+ projectId: string;
3073
+ generation: number;
3074
+ mode: "released" | "live" | "candidate";
3075
+ targetId: string;
3076
+ health: "pending" | "degraded" | "ready" | "stopped";
3077
+ reaction?: "none" | "stale" | "manual" | "reload" | "restart" | "rebuild" | undefined;
3078
+ }[];
3079
+ blockers: {
3080
+ code: string;
3081
+ message: string;
3082
+ targetId?: string | undefined;
3083
+ }[];
3084
+ leases: {
3085
+ resource: string;
3086
+ kind: "state" | "secret" | "alias" | "component";
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
+ branch: string | null;
3110
+ commit: string;
3111
+ repository: string;
3112
+ projectId: string;
3113
+ worktree: string;
3114
+ dirtyDigest: string | null;
3115
+ recipeDigest: string;
3116
+ }, {
3117
+ dirty: boolean;
3118
+ branch: string | null;
3119
+ commit: string;
3120
+ repository: 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: "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle";
3136
+ projectId: string;
3137
+ digest: string;
3138
+ targetId: string;
3139
+ integrity?: string | undefined;
3140
+ }, {
3141
+ identity: string;
3142
+ kind: "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle";
3143
+ projectId: string;
3144
+ digest: 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" | "failed" | "passed";
3172
+ operations: string[];
3173
+ completedAt: string | null;
3174
+ }, {
3175
+ status: "pending" | "failed" | "passed";
3176
+ operations: string[];
3177
+ completedAt: string | null;
3178
+ }>;
3179
+ promotable: z.ZodBoolean;
3180
+ }, "strict", z.ZodTypeAny, {
3181
+ schemaVersion: "treeseed.development-candidate/v1";
3182
+ verification: {
3183
+ status: "pending" | "failed" | "passed";
3184
+ operations: string[];
3185
+ completedAt: string | null;
3186
+ };
3187
+ createdAt: string;
3188
+ source: {
3189
+ dirty: boolean;
3190
+ branch: string | null;
3191
+ commit: string;
3192
+ repository: string;
3193
+ projectId: string;
3194
+ worktree: string;
3195
+ dirtyDigest: string | null;
3196
+ recipeDigest: string;
3197
+ }[];
3198
+ artifacts: {
3199
+ identity: string;
3200
+ kind: "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle";
3201
+ projectId: string;
3202
+ digest: string;
3203
+ targetId: string;
3204
+ integrity?: string | undefined;
3205
+ }[];
3206
+ sessionId: string;
3207
+ candidateId: string;
3208
+ configurationDigest: string;
3209
+ dependencyGenerations: Record<string, number>;
3210
+ compatibilityAttestations: {
3211
+ digest: string;
3212
+ contractId: string;
3213
+ compatible: boolean;
3214
+ minimumBump: "none" | "patch" | "minor" | "major";
3215
+ }[];
3216
+ promotable: boolean;
3217
+ }, {
3218
+ schemaVersion: "treeseed.development-candidate/v1";
3219
+ verification: {
3220
+ status: "pending" | "failed" | "passed";
3221
+ operations: string[];
3222
+ completedAt: string | null;
3223
+ };
3224
+ createdAt: string;
3225
+ source: {
3226
+ dirty: boolean;
3227
+ branch: string | null;
3228
+ commit: string;
3229
+ repository: string;
3230
+ projectId: string;
3231
+ worktree: string;
3232
+ dirtyDigest: string | null;
3233
+ recipeDigest: string;
3234
+ }[];
3235
+ artifacts: {
3236
+ identity: string;
3237
+ kind: "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle";
3238
+ projectId: string;
3239
+ digest: string;
3240
+ targetId: string;
3241
+ integrity?: string | undefined;
3242
+ }[];
3243
+ sessionId: string;
3244
+ candidateId: string;
3245
+ configurationDigest: string;
3246
+ dependencyGenerations: Record<string, number>;
3247
+ compatibilityAttestations: {
3248
+ digest: string;
3249
+ contractId: string;
3250
+ compatible: boolean;
3251
+ minimumBump: "none" | "patch" | "minor" | "major";
3252
+ }[];
3253
+ promotable: boolean;
3254
+ }>, {
3255
+ schemaVersion: "treeseed.development-candidate/v1";
3256
+ verification: {
3257
+ status: "pending" | "failed" | "passed";
3258
+ operations: string[];
3259
+ completedAt: string | null;
3260
+ };
3261
+ createdAt: string;
3262
+ source: {
3263
+ dirty: boolean;
3264
+ branch: string | null;
3265
+ commit: string;
3266
+ repository: string;
3267
+ projectId: string;
3268
+ worktree: string;
3269
+ dirtyDigest: string | null;
3270
+ recipeDigest: string;
3271
+ }[];
3272
+ artifacts: {
3273
+ identity: string;
3274
+ kind: "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle";
3275
+ projectId: string;
3276
+ digest: string;
3277
+ targetId: string;
3278
+ integrity?: string | undefined;
3279
+ }[];
3280
+ sessionId: string;
3281
+ candidateId: string;
3282
+ configurationDigest: string;
3283
+ dependencyGenerations: Record<string, number>;
3284
+ compatibilityAttestations: {
3285
+ digest: string;
3286
+ contractId: string;
3287
+ compatible: boolean;
3288
+ minimumBump: "none" | "patch" | "minor" | "major";
3289
+ }[];
3290
+ promotable: boolean;
3291
+ }, {
3292
+ schemaVersion: "treeseed.development-candidate/v1";
3293
+ verification: {
3294
+ status: "pending" | "failed" | "passed";
3295
+ operations: string[];
3296
+ completedAt: string | null;
3297
+ };
3298
+ createdAt: string;
3299
+ source: {
3300
+ dirty: boolean;
3301
+ branch: string | null;
3302
+ commit: string;
3303
+ repository: string;
3304
+ projectId: string;
3305
+ worktree: string;
3306
+ dirtyDigest: string | null;
3307
+ recipeDigest: string;
3308
+ }[];
3309
+ artifacts: {
3310
+ identity: string;
3311
+ kind: "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle";
3312
+ projectId: string;
3313
+ digest: string;
3314
+ targetId: string;
3315
+ integrity?: string | undefined;
3316
+ }[];
3317
+ sessionId: string;
3318
+ candidateId: string;
3319
+ configurationDigest: string;
3320
+ dependencyGenerations: Record<string, number>;
3321
+ compatibilityAttestations: {
3322
+ digest: string;
3323
+ contractId: string;
3324
+ compatible: boolean;
3325
+ minimumBump: "none" | "patch" | "minor" | "major";
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: "provenance" | "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose";
3380
+ id: string;
3381
+ digest: string;
3382
+ mediaType: string;
3383
+ size?: number | undefined;
3384
+ }, {
3385
+ identity: string;
3386
+ kind: "provenance" | "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose";
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
+ verification: {
3434
+ status: "passed";
3435
+ operations: string[];
3436
+ completedAt: string;
3437
+ };
3438
+ packages: {
3439
+ version: string;
3440
+ name: string;
3441
+ projectId: string;
3442
+ minimumBump: "none" | "patch" | "minor" | "major";
3443
+ }[];
3444
+ candidate: {
3445
+ id: string;
3446
+ createdAt: string;
3447
+ receiptDigest: string;
3448
+ sourceCommit: string;
3449
+ stagingRef: string;
3450
+ workflowRunId: string;
3451
+ };
3452
+ artifacts: {
3453
+ identity: string;
3454
+ kind: "provenance" | "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose";
3455
+ id: string;
3456
+ digest: string;
3457
+ mediaType: string;
3458
+ size?: number | undefined;
3459
+ }[];
3460
+ compatibilityAttestations: {
3461
+ digest: string;
3462
+ contractId: string;
3463
+ compatible: true;
3464
+ minimumBump: "none" | "patch" | "minor" | "major";
3465
+ }[];
3466
+ contractBundles: {
3467
+ id: string;
3468
+ digest: string;
3469
+ }[];
3470
+ }, {
3471
+ schemaVersion: "treeseed.release-evidence/v1";
3472
+ verification: {
3473
+ status: "passed";
3474
+ operations: string[];
3475
+ completedAt: string;
3476
+ };
3477
+ packages: {
3478
+ version: string;
3479
+ name: string;
3480
+ projectId: string;
3481
+ minimumBump: "none" | "patch" | "minor" | "major";
3482
+ }[];
3483
+ candidate: {
3484
+ id: string;
3485
+ createdAt: string;
3486
+ receiptDigest: string;
3487
+ sourceCommit: string;
3488
+ stagingRef: string;
3489
+ workflowRunId: string;
3490
+ };
3491
+ artifacts: {
3492
+ identity: string;
3493
+ kind: "provenance" | "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose";
3494
+ id: string;
3495
+ digest: string;
3496
+ mediaType: string;
3497
+ size?: number | undefined;
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
+ verification: {
3512
+ status: "passed";
3513
+ operations: string[];
3514
+ completedAt: string;
3515
+ };
3516
+ packages: {
3517
+ version: string;
3518
+ name: string;
3519
+ projectId: string;
3520
+ minimumBump: "none" | "patch" | "minor" | "major";
3521
+ }[];
3522
+ candidate: {
3523
+ id: string;
3524
+ createdAt: string;
3525
+ receiptDigest: string;
3526
+ sourceCommit: string;
3527
+ stagingRef: string;
3528
+ workflowRunId: string;
3529
+ };
3530
+ artifacts: {
3531
+ identity: string;
3532
+ kind: "provenance" | "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose";
3533
+ id: string;
3534
+ digest: string;
3535
+ mediaType: string;
3536
+ size?: number | undefined;
3537
+ }[];
3538
+ compatibilityAttestations: {
3539
+ digest: string;
3540
+ contractId: string;
3541
+ compatible: true;
3542
+ minimumBump: "none" | "patch" | "minor" | "major";
3543
+ }[];
3544
+ contractBundles: {
3545
+ id: string;
3546
+ digest: string;
3547
+ }[];
3548
+ }, {
3549
+ schemaVersion: "treeseed.release-evidence/v1";
3550
+ verification: {
3551
+ status: "passed";
3552
+ operations: string[];
3553
+ completedAt: string;
3554
+ };
3555
+ packages: {
3556
+ version: string;
3557
+ name: string;
3558
+ projectId: string;
3559
+ minimumBump: "none" | "patch" | "minor" | "major";
3560
+ }[];
3561
+ candidate: {
3562
+ id: string;
3563
+ createdAt: string;
3564
+ receiptDigest: string;
3565
+ sourceCommit: string;
3566
+ stagingRef: string;
3567
+ workflowRunId: string;
3568
+ };
3569
+ artifacts: {
3570
+ identity: string;
3571
+ kind: "provenance" | "executable" | "npm-package" | "oci-image" | "archive" | "contract-bundle" | "sbom" | "compatibility-attestation" | "component-manifest" | "compose";
3572
+ id: string;
3573
+ digest: string;
3574
+ mediaType: string;
3575
+ size?: number | undefined;
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>;