@treeseed/sdk 0.13.0-rc.11 → 0.13.0-rc.111

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