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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/README.md +23 -9
  2. package/dist/.treeseed-build-complete.json +1 -0
  3. package/dist/accounts/account-contracts.d.ts +6 -0
  4. package/dist/agent-capacity/allocation.d.ts +0 -3
  5. package/dist/agent-capacity/allocation.js +0 -221
  6. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +1 -1
  7. package/dist/agent-capacity/artifacts.d.ts +17 -1
  8. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +4395 -0
  9. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +176 -0
  10. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +304 -0
  11. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.js +44 -0
  12. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +22 -2
  13. package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.d.ts +25 -0
  14. package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.js +67 -0
  15. package/dist/agent-capacity/contracts/capacity/communication/communication-records.d.ts +1 -1
  16. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +0 -2
  17. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +82 -0
  18. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +115 -0
  19. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +142 -0
  20. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +51 -0
  21. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +331 -0
  22. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +135 -0
  23. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +3 -22
  24. package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
  25. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +218 -0
  26. package/dist/agent-capacity/contracts/operations/agent-team-clone.js +57 -0
  27. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -1
  28. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +3 -3
  29. package/dist/agent-capacity/contracts/support/decision-work.d.ts +3 -27
  30. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +1087 -0
  31. package/dist/agent-capacity/contracts/support/execution-graph.js +120 -0
  32. package/dist/agent-capacity/contracts/support/time-capacity.d.ts +0 -14
  33. package/dist/agent-capacity/contracts/support/time-capacity.js +1 -8
  34. package/dist/agent-capacity/validation/activity-profile.d.ts +1 -1
  35. package/dist/agent-capacity/validation/activity-profile.js +3 -259
  36. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +2687 -8933
  37. package/dist/agent-capacity/validation/agent-definition-schema.js +64 -174
  38. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +23 -23
  39. package/dist/agent-capacity/validation/assignment-records.js +1 -1
  40. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  41. package/dist/agent-capacity/validation/configuration.js +1 -2
  42. package/dist/agent-capacity/validation/execution/execution-graph.d.ts +1 -0
  43. package/dist/agent-capacity/validation/execution/execution-graph.js +16 -0
  44. package/dist/agent-capacity/validation/index.d.ts +2 -1
  45. package/dist/agent-capacity/validation/index.js +2 -1
  46. package/dist/capacity/agents/agent-capacity.d.ts +9 -1
  47. package/dist/capacity/agents/agent-capacity.js +8 -1
  48. package/dist/capacity-provider/capability-ontology.d.ts +1495 -0
  49. package/dist/capacity-provider/capability-ontology.js +221 -0
  50. package/dist/capacity-provider/client.d.ts +69 -0
  51. package/dist/capacity-provider/client.js +22 -1
  52. package/dist/capacity-provider/contracts/capacity-facts.d.ts +14 -0
  53. package/dist/capacity-provider/contracts/environment-profiles.d.ts +255 -0
  54. package/dist/capacity-provider/contracts/environment-profiles.js +71 -0
  55. package/dist/capacity-provider/contracts/governance.d.ts +109 -35
  56. package/dist/capacity-provider/contracts/index.d.ts +1 -0
  57. package/dist/capacity-provider/contracts/index.js +1 -0
  58. package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
  59. package/dist/capacity-provider/core-capability-catalog.js +49 -0
  60. package/dist/capacity-provider/environment-catalog.d.ts +877 -0
  61. package/dist/capacity-provider/environment-catalog.js +116 -0
  62. package/dist/capacity-provider/index.d.ts +5 -0
  63. package/dist/capacity-provider/index.js +5 -0
  64. package/dist/capacity-provider/install-configuration.d.ts +39 -0
  65. package/dist/capacity-provider/install-configuration.js +18 -0
  66. package/dist/capacity-provider/sandbox-contracts.d.ts +602 -0
  67. package/dist/capacity-provider/sandbox-contracts.js +90 -0
  68. package/dist/capacity-provider/sandbox.d.ts +2 -0
  69. package/dist/capacity-provider/sandbox.js +2 -0
  70. package/dist/capacity-provider/source-workspace.d.ts +642 -0
  71. package/dist/capacity-provider/source-workspace.js +126 -0
  72. package/dist/capacity-provider/validation.d.ts +2 -2
  73. package/dist/capacity-provider/validation.js +91 -55
  74. package/dist/configuration/secrets-capability.d.ts +5 -1
  75. package/dist/configuration/secrets-capability.js +5 -1
  76. package/dist/content/contracts.d.ts +1 -1
  77. package/dist/content/validation/agent-operational-content-schemas.d.ts +431 -780
  78. package/dist/content/validation/agent-operational-content-schemas.js +29 -57
  79. package/dist/content/validation/auxiliary-content-schemas.d.ts +208 -208
  80. package/dist/content/validation/content-model-schemas.d.ts +9362 -19159
  81. package/dist/content/validation/content-model-schemas.js +172 -43
  82. package/dist/content/validation/portable-content-data.d.ts +453 -1761
  83. package/dist/content/validation/portable-content-data.js +5 -4
  84. package/dist/deployment/ai/storage.d.ts +158 -0
  85. package/dist/deployment/ai/storage.js +32 -0
  86. package/dist/deployment/ai-hosting.d.ts +297 -0
  87. package/dist/deployment/ai-hosting.js +63 -0
  88. package/dist/deployment/ai-instance.d.ts +65 -0
  89. package/dist/deployment/ai-instance.js +30 -0
  90. package/dist/deployment/ai-mode.d.ts +454 -0
  91. package/dist/deployment/ai-mode.js +67 -0
  92. package/dist/deployment/canonical.d.ts +2 -0
  93. package/dist/deployment/canonical.js +17 -0
  94. package/dist/deployment/catalog.d.ts +16 -0
  95. package/dist/deployment/catalog.js +48 -0
  96. package/dist/deployment/hosted-topology-template.d.ts +449 -0
  97. package/dist/deployment/hosted-topology-template.js +56 -0
  98. package/dist/deployment/hosted-topology.d.ts +2698 -0
  99. package/dist/deployment/hosted-topology.js +468 -0
  100. package/dist/deployment/index.d.ts +13 -0
  101. package/dist/deployment/index.js +13 -0
  102. package/dist/deployment/postgres/contracts.d.ts +418 -0
  103. package/dist/deployment/postgres/contracts.js +83 -0
  104. package/dist/deployment/postgres/requirements.d.ts +15 -0
  105. package/dist/deployment/postgres/requirements.js +32 -0
  106. package/dist/deployment/postgres/transfer.d.ts +97 -0
  107. package/dist/deployment/postgres/transfer.js +29 -0
  108. package/dist/deployment/schemas.d.ts +8625 -0
  109. package/dist/deployment/schemas.js +455 -0
  110. package/dist/deployment/topology.d.ts +9 -0
  111. package/dist/deployment/topology.js +35 -0
  112. package/dist/development/index.d.ts +1 -0
  113. package/dist/development/index.js +1 -0
  114. package/dist/development/schemas.d.ts +3594 -0
  115. package/dist/development/schemas.js +204 -0
  116. package/dist/development/session-migration.d.ts +3 -0
  117. package/dist/development/session-migration.js +25 -0
  118. package/dist/entrypoints/clients/control-plane-client.d.ts +9 -1
  119. package/dist/entrypoints/clients/control-plane-client.js +17 -5
  120. package/dist/graph/context-query-contracts.d.ts +16 -1
  121. package/dist/graph/context-query-contracts.js +5 -0
  122. package/dist/guarantees/evidence-trust.d.ts +32 -0
  123. package/dist/guarantees/evidence-trust.js +47 -0
  124. package/dist/guarantees/index.d.ts +130 -0
  125. package/dist/guarantees/index.js +44 -0
  126. package/dist/identity/browser-session.d.ts +233 -0
  127. package/dist/identity/browser-session.js +51 -0
  128. package/dist/identity/contracts.d.ts +191 -0
  129. package/dist/identity/contracts.js +72 -0
  130. package/dist/identity/index.d.ts +3 -0
  131. package/dist/identity/index.js +3 -0
  132. package/dist/identity/runtime.d.ts +186 -0
  133. package/dist/identity/runtime.js +49 -0
  134. package/dist/model-registry/agent-operational-models.d.ts +1 -1
  135. package/dist/model-registry/agent-operational-models.js +1 -4
  136. package/dist/model-registry/build-builtin-model-registry.js +44 -72
  137. package/dist/operator-contracts/canonical-command-tree.js +392 -43
  138. package/dist/operator-contracts/catalog/admin-account-team-operations.d.ts +36 -0
  139. package/dist/operator-contracts/catalog/admin-account-team-operations.js +52 -0
  140. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +75 -0
  141. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.js +42 -0
  142. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +163 -0
  143. package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
  144. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +60 -0
  145. package/dist/operator-contracts/catalog/commands/command-tree-builders.js +191 -0
  146. package/dist/operator-contracts/catalog/communication-operations.d.ts +439 -0
  147. package/dist/operator-contracts/catalog/communication-operations.js +92 -0
  148. package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
  149. package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
  150. package/dist/operator-contracts/catalog/execution/execution-operations.d.ts +36 -0
  151. package/dist/operator-contracts/catalog/execution/execution-operations.js +39 -0
  152. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +399 -0
  153. package/dist/operator-contracts/catalog/hosted-topology-operations.js +79 -0
  154. package/dist/operator-contracts/catalog/inbox-operations.d.ts +265 -0
  155. package/dist/operator-contracts/catalog/inbox-operations.js +36 -0
  156. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +53 -0
  157. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +23 -0
  158. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.d.ts +3 -0
  159. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.js +15 -0
  160. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +127 -0
  161. package/dist/operator-contracts/catalog/knowledge-share-operations.js +25 -0
  162. package/dist/operator-contracts/catalog/provider-environment-commands.d.ts +4 -0
  163. package/dist/operator-contracts/catalog/provider-environment-commands.js +69 -0
  164. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +41 -0
  165. package/dist/operator-contracts/catalog/provider-environment-operations.js +61 -0
  166. package/dist/operator-contracts/catalog/services/identity-commands.d.ts +2 -0
  167. package/dist/operator-contracts/catalog/services/identity-commands.js +13 -0
  168. package/dist/operator-contracts/catalog/services/secret-commands.d.ts +2 -0
  169. package/dist/operator-contracts/catalog/services/secret-commands.js +31 -0
  170. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +62 -0
  171. package/dist/operator-contracts/catalog/services/secret-operations.js +51 -0
  172. package/dist/operator-contracts/catalog/treeai-operations.d.ts +13 -0
  173. package/dist/operator-contracts/catalog/treeai-operations.js +61 -0
  174. package/dist/operator-contracts/catalog/workdays/profile-commands.d.ts +4 -0
  175. package/dist/operator-contracts/catalog/workdays/profile-commands.js +20 -0
  176. package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +41 -0
  177. package/dist/operator-contracts/catalog/workdays/profile-operations.js +50 -0
  178. package/dist/operator-contracts/catalog/workdays/selection-commands.d.ts +3 -0
  179. package/dist/operator-contracts/catalog/workdays/selection-commands.js +29 -0
  180. package/dist/operator-contracts/command-tree.d.ts +29 -0
  181. package/dist/operator-contracts/command-tree.js +50 -0
  182. package/dist/operator-contracts/communication/addressing.d.ts +8 -0
  183. package/dist/operator-contracts/communication/addressing.js +57 -0
  184. package/dist/operator-contracts/communication/contracts.d.ts +1824 -0
  185. package/dist/operator-contracts/communication/contracts.js +190 -0
  186. package/dist/operator-contracts/control-plane-operation.d.ts +9 -0
  187. package/dist/operator-contracts/control-plane-operation.js +12 -2
  188. package/dist/operator-contracts/control-plane-operations.d.ts +2356 -209
  189. package/dist/operator-contracts/control-plane-operations.js +239 -102
  190. package/dist/operator-contracts/inbox/contracts.d.ts +1111 -0
  191. package/dist/operator-contracts/inbox/contracts.js +138 -0
  192. package/dist/operator-contracts/index.d.ts +6 -1
  193. package/dist/operator-contracts/index.js +6 -1
  194. package/dist/operator-contracts/knowledge/contracts.d.ts +130 -0
  195. package/dist/operator-contracts/knowledge/contracts.js +39 -0
  196. package/dist/operator-contracts/mcp.d.ts +5 -0
  197. package/dist/operator-contracts/mcp.js +61 -0
  198. package/dist/operator-contracts/oauth.d.ts +45 -0
  199. package/dist/operator-contracts/oauth.js +7 -0
  200. package/dist/operator-contracts/operation-builder.d.ts +18 -0
  201. package/dist/operator-contracts/operation-builder.js +78 -0
  202. package/dist/operator-contracts/seed/seed-bundle.d.ts +138 -0
  203. package/dist/operator-contracts/seed/seed-bundle.js +68 -0
  204. package/dist/operator-contracts/workday-lifecycle.d.ts +21 -28
  205. package/dist/operator-contracts/workday-lifecycle.js +46 -8
  206. package/dist/platform/contracts.d.ts +429 -0
  207. package/dist/platform/contracts.js +93 -0
  208. package/dist/platform/index.d.ts +6 -0
  209. package/dist/platform/index.js +6 -0
  210. package/dist/platform/inventory.d.ts +11 -0
  211. package/dist/platform/inventory.js +53 -0
  212. package/dist/platform/project-create.d.ts +49 -0
  213. package/dist/platform/project-create.js +75 -0
  214. package/dist/platform/schemas.d.ts +986 -0
  215. package/dist/platform/schemas.js +73 -0
  216. package/dist/platform/verification.d.ts +9 -0
  217. package/dist/platform/verification.js +104 -0
  218. package/dist/platform/workset.d.ts +21 -0
  219. package/dist/platform/workset.js +106 -0
  220. package/dist/sdk-types/support/sdk-model-names.d.ts +1 -1
  221. package/dist/sdk-types/support/sdk-model-names.js +0 -3
  222. package/dist/secrets-capability/github-actions-encryption.d.ts +2 -0
  223. package/dist/secrets-capability/github-actions-encryption.js +11 -0
  224. package/dist/secrets-capability/provider-operation-contracts.d.ts +15 -1
  225. package/dist/secrets-capability/secret-contracts.d.ts +33 -0
  226. package/dist/secrets-capability/secret-contracts.js +49 -0
  227. package/dist/secrets-capability/service-provider-contracts.d.ts +5 -3
  228. package/dist/secrets-capability/service-provider-contracts.js +66 -50
  229. package/dist/secrets-capability/shared-access.d.ts +51 -0
  230. package/dist/secrets-capability/shared-access.js +36 -0
  231. package/dist/secrets-capability/shared-resources.d.ts +376 -0
  232. package/dist/secrets-capability/shared-resources.js +91 -0
  233. package/dist/secrets-capability/vault-contracts.d.ts +132 -0
  234. package/dist/secrets-capability/vault-contracts.js +56 -0
  235. package/dist/security/encrypted-envelope.d.ts +177 -0
  236. package/dist/security/encrypted-envelope.js +34 -0
  237. package/dist/security/envelope-codec.d.ts +38 -0
  238. package/dist/security/envelope-codec.js +96 -0
  239. package/dist/security/index.d.ts +2 -0
  240. package/dist/security/index.js +2 -0
  241. package/dist/site-contracts/catalog.d.ts +16 -0
  242. package/dist/site-contracts/catalog.js +19 -0
  243. package/dist/site-contracts/cloudflare.d.ts +48 -0
  244. package/dist/site-contracts/platform.d.ts +94 -0
  245. package/dist/site-contracts/plugin.d.ts +63 -0
  246. package/dist/site-contracts/plugin.js +26 -0
  247. package/dist/treeai/catalog.d.ts +1 -0
  248. package/dist/treeai/catalog.js +1 -0
  249. package/dist/treeai/client.d.ts +793 -0
  250. package/dist/treeai/client.js +44 -0
  251. package/dist/treeai/contract.d.ts +41 -0
  252. package/dist/treeai/contract.js +51 -0
  253. package/dist/treeai/generated/upstream.d.ts +770 -0
  254. package/dist/treeai/generated/upstream.js +4 -0
  255. package/dist/treeai/index.d.ts +4 -0
  256. package/dist/treeai/index.js +4 -0
  257. package/dist/treedx/client.d.ts +605 -0
  258. package/dist/treedx/client.js +39 -0
  259. package/dist/treedx/contract.d.ts +32 -0
  260. package/dist/treedx/contract.js +63 -0
  261. package/dist/treedx/index.d.ts +3 -0
  262. package/dist/treedx/index.js +2 -0
  263. package/dist/treedx/types.d.ts +8 -7
  264. package/dist/treedx/types.js +0 -7
  265. package/dist/types/agents/agent-activity-profile.d.ts +42 -98
  266. package/dist/types/agents/agent-activity-profile.js +23 -0
  267. package/dist/types/agents/agent-trigger-kinds.d.ts +3 -5
  268. package/dist/types/agents/agent-trigger-kinds.js +1 -13
  269. package/dist/types/agents/execution-run-ref.d.ts +1 -8
  270. package/package.json +64 -11
  271. package/dist/agent-capacity/authority/agent-authority-presets.d.ts +0 -13
  272. package/dist/agent-capacity/authority/agent-authority-presets.js +0 -106
  273. package/dist/agent-capacity/contracts/operations/workflow-promotion.d.ts +0 -24
  274. package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.d.ts +0 -29
  275. package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.js +0 -110
  276. package/dist/agent-capacity/validation/workflow-promotion.d.ts +0 -2
  277. package/dist/agent-capacity/validation/workflow-promotion.js +0 -34
  278. package/dist/operator-contracts/workday-profile.d.ts +0 -72
  279. package/dist/operator-contracts/workday-profile.js +0 -106
  280. package/dist/secrets-capability/service-vault-contracts.d.ts +0 -61
  281. package/dist/secrets-capability/service-vault-contracts.js +0 -39
  282. package/dist/treedx/accounts/auth.d.ts +0 -17
  283. package/dist/treedx/accounts/auth.js +0 -48
  284. package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +0 -3
  285. package/dist/treedx/client/accounts/contracts/auth-mode.js +0 -6
  286. package/dist/treedx/client/build/creation/build-context.d.ts +0 -3
  287. package/dist/treedx/client/build/creation/build-context.js +0 -7
  288. package/dist/treedx/client/build/creation/build-snapshot.d.ts +0 -3
  289. package/dist/treedx/client/build/creation/build-snapshot.js +0 -8
  290. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +0 -3
  291. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +0 -7
  292. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +0 -6
  293. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +0 -10
  294. package/dist/treedx/client/methods.d.ts +0 -102
  295. package/dist/treedx/client/methods.js +0 -209
  296. package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +0 -3
  297. package/dist/treedx/client/persistence/contracts/restore-storage.js +0 -6
  298. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +0 -3
  299. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +0 -6
  300. package/dist/treedx/client/repositories/creation/register-repository.d.ts +0 -3
  301. package/dist/treedx/client/repositories/creation/register-repository.js +0 -7
  302. package/dist/treedx/client/repositories/queries/get-repository.d.ts +0 -3
  303. package/dist/treedx/client/repositories/queries/get-repository.js +0 -7
  304. package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +0 -3
  305. package/dist/treedx/client/repositories/queries/list-repository-paths.js +0 -7
  306. package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +0 -3
  307. package/dist/treedx/client/repositories/queries/list-repository-refs.js +0 -12
  308. package/dist/treedx/client/repositories/queries/query-repository.d.ts +0 -3
  309. package/dist/treedx/client/repositories/queries/query-repository.js +0 -7
  310. package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +0 -3
  311. package/dist/treedx/client/repositories/queries/read-repository-file.js +0 -6
  312. package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +0 -3
  313. package/dist/treedx/client/repositories/queries/read-repository-files.js +0 -7
  314. package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +0 -3
  315. package/dist/treedx/client/repositories/queries/search-repository-files.js +0 -7
  316. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +0 -3
  317. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +0 -9
  318. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +0 -3
  319. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +0 -6
  320. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +0 -3
  321. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +0 -7
  322. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +0 -5
  323. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +0 -7
  324. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +0 -3
  325. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +0 -6
  326. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +0 -3
  327. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +0 -7
  328. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +0 -2
  329. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +0 -19
  330. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +0 -3
  331. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +0 -7
  332. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +0 -3
  333. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +0 -6
  334. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +0 -3
  335. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +0 -7
  336. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +0 -3
  337. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +0 -6
  338. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +0 -3
  339. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +0 -7
  340. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +0 -6
  341. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +0 -23
  342. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +0 -3
  343. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +0 -8
  344. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +0 -3
  345. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +0 -7
  346. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +0 -3
  347. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +0 -8
  348. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +0 -3
  349. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +0 -8
  350. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +0 -2
  351. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +0 -15
  352. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +0 -2
  353. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +0 -38
  354. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +0 -2
  355. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +0 -15
  356. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +0 -2
  357. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +0 -15
  358. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +0 -2
  359. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +0 -14
  360. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +0 -2
  361. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +0 -14
  362. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +0 -6
  363. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +0 -41
  364. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +0 -2
  365. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +0 -14
  366. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +0 -3
  367. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +0 -7
  368. package/dist/treedx/client/support/creation/apply-changeset.d.ts +0 -3
  369. package/dist/treedx/client/support/creation/apply-changeset.js +0 -10
  370. package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +0 -3
  371. package/dist/treedx/client/support/creation/apply-storage-migration.js +0 -7
  372. package/dist/treedx/client/support/creation/create-migration.d.ts +0 -6
  373. package/dist/treedx/client/support/creation/create-migration.js +0 -7
  374. package/dist/treedx/client/support/creation/export-artifact.d.ts +0 -3
  375. package/dist/treedx/client/support/creation/export-artifact.js +0 -8
  376. package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +0 -3
  377. package/dist/treedx/client/support/creation/plan-storage-migration.js +0 -7
  378. package/dist/treedx/client/support/creation/request-binary.d.ts +0 -6
  379. package/dist/treedx/client/support/creation/request-binary.js +0 -42
  380. package/dist/treedx/client/support/creation/write-file.d.ts +0 -3
  381. package/dist/treedx/client/support/creation/write-file.js +0 -10
  382. package/dist/treedx/client/support/creation/write-files.d.ts +0 -3
  383. package/dist/treedx/client/support/creation/write-files.js +0 -12
  384. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +0 -3
  385. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +0 -7
  386. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +0 -3
  387. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +0 -7
  388. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +0 -3
  389. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +0 -9
  390. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +0 -4
  391. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +0 -6
  392. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +0 -3
  393. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +0 -7
  394. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +0 -3
  395. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +0 -7
  396. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +0 -3
  397. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +0 -7
  398. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +0 -3
  399. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +0 -7
  400. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +0 -3
  401. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +0 -10
  402. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +0 -3
  403. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +0 -9
  404. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +0 -3
  405. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +0 -7
  406. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +0 -6
  407. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +0 -7
  408. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +0 -6
  409. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +0 -7
  410. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +0 -6
  411. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +0 -6
  412. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +0 -15
  413. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +0 -6
  414. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +0 -3
  415. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +0 -7
  416. package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +0 -3
  417. package/dist/treedx/client/support/retirement/cleanup-artifacts.js +0 -7
  418. package/dist/treedx/client/support/retirement/delete-artifact.d.ts +0 -3
  419. package/dist/treedx/client/support/retirement/delete-artifact.js +0 -7
  420. package/dist/treedx/client/support/retirement/delete-file.d.ts +0 -3
  421. package/dist/treedx/client/support/retirement/delete-file.js +0 -10
  422. package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +0 -3
  423. package/dist/treedx/client/support/retirement/rollback-storage-migration.js +0 -7
  424. package/dist/treedx/client/support/updates/patch-file.d.ts +0 -3
  425. package/dist/treedx/client/support/updates/patch-file.js +0 -10
  426. package/dist/treedx/client/support/updates/refresh-search-index.d.ts +0 -3
  427. package/dist/treedx/client/support/updates/refresh-search-index.js +0 -8
  428. package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +0 -3
  429. package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +0 -6
  430. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +0 -3
  431. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +0 -8
  432. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +0 -3
  433. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +0 -27
  434. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +0 -3
  435. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +0 -41
  436. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +0 -3
  437. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +0 -27
  438. package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +0 -3
  439. package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +0 -6
  440. package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +0 -3
  441. package/dist/treedx/client/treedx/blobs/creation/write-blob.js +0 -8
  442. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +0 -3
  443. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +0 -8
  444. package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +0 -3
  445. package/dist/treedx/client/treedx/blobs/queries/read-blob.js +0 -10
  446. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +0 -3
  447. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +0 -7
  448. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +0 -3
  449. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +0 -8
  450. package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +0 -3
  451. package/dist/treedx/client/treedx/federation/contracts/federated-query.js +0 -7
  452. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +0 -3
  453. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +0 -6
  454. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +0 -3
  455. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +0 -7
  456. package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +0 -3
  457. package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +0 -7
  458. package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +0 -3
  459. package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +0 -7
  460. package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +0 -3
  461. package/dist/treedx/client/treedx/graph/contracts/federated-context.js +0 -7
  462. package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +0 -3
  463. package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +0 -7
  464. package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +0 -3
  465. package/dist/treedx/client/treedx/graph/contracts/graph-search.js +0 -8
  466. package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +0 -3
  467. package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +0 -10
  468. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +0 -3
  469. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +0 -7
  470. package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +0 -3
  471. package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +0 -7
  472. package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +0 -3
  473. package/dist/treedx/client/treedx/graph/queries/query-graph.js +0 -7
  474. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +0 -3
  475. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +0 -6
  476. package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +0 -3
  477. package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +0 -6
  478. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +0 -3
  479. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +0 -6
  480. package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +0 -3
  481. package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +0 -7
  482. package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +0 -3
  483. package/dist/treedx/client/treedx/search/contracts/federated-search.js +0 -7
  484. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +0 -3
  485. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +0 -7
  486. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +0 -3
  487. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +0 -12
  488. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +0 -2
  489. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +0 -6
  490. package/dist/treedx/generated/openapi-types.d.ts +0 -3662
  491. package/dist/treedx/support/client.d.ts +0 -251
  492. package/dist/treedx/support/client.js +0 -252
  493. package/dist/treedx/support/errors.d.ts +0 -13
  494. package/dist/treedx/support/errors.js +0 -17
  495. package/dist/treedx/types/tree-dx-actor.d.ts +0 -209
  496. package/dist/treedx/types/tree-dx-actor.js +0 -8
  497. package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +0 -13
  498. package/dist/treedx/types/tree-dx-artifact-list-response.js +0 -0
  499. package/dist/treedx/types/tree-dx-changeset.d.ts +0 -51
  500. package/dist/treedx/types/tree-dx-changeset.js +0 -6
  501. package/dist/treedx/types/tree-dx-context-request.d.ts +0 -245
  502. package/dist/treedx/types/tree-dx-context-request.js +0 -0
  503. package/dist/treedx/types/tree-dx-exec-result.d.ts +0 -249
  504. package/dist/treedx/types/tree-dx-exec-result.js +0 -0
  505. package/dist/treedx/types/tree-dx-list-tree-request.d.ts +0 -222
  506. package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
  507. package/dist/treedx/types/tree-dx-push-request.d.ts +0 -229
  508. package/dist/treedx/types/tree-dx-push-request.js +0 -0
  509. /package/dist/{agent-capacity/contracts/operations/workflow-promotion.js → site-contracts/cloudflare.js} +0 -0
  510. /package/dist/{treedx/generated/openapi-types.js → site-contracts/platform.js} +0 -0
@@ -0,0 +1,1087 @@
1
+ import { z } from 'zod';
2
+ export declare const conditionDefinitionSchema: z.ZodObject<{
3
+ conditionType: z.ZodEnum<["question", "external", "authority", "lifecycle"]>;
4
+ subjectRef: z.ZodEffects<z.ZodObject<{
5
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
6
+ model: z.ZodString;
7
+ id: z.ZodString;
8
+ revision: z.ZodOptional<z.ZodNumber>;
9
+ digest: z.ZodOptional<z.ZodString>;
10
+ repository: z.ZodOptional<z.ZodString>;
11
+ commit: z.ZodOptional<z.ZodString>;
12
+ path: z.ZodOptional<z.ZodString>;
13
+ anchor: z.ZodOptional<z.ZodString>;
14
+ startLine: z.ZodOptional<z.ZodNumber>;
15
+ endLine: z.ZodOptional<z.ZodNumber>;
16
+ url: z.ZodOptional<z.ZodString>;
17
+ }, "strict", z.ZodTypeAny, {
18
+ id: string;
19
+ model: string;
20
+ store: "git" | "url" | "postgresql" | "treedx";
21
+ path?: string | undefined;
22
+ repository?: string | undefined;
23
+ commit?: string | undefined;
24
+ digest?: string | undefined;
25
+ anchor?: string | undefined;
26
+ url?: string | undefined;
27
+ revision?: number | undefined;
28
+ startLine?: number | undefined;
29
+ endLine?: number | undefined;
30
+ }, {
31
+ id: string;
32
+ model: string;
33
+ store: "git" | "url" | "postgresql" | "treedx";
34
+ path?: string | undefined;
35
+ repository?: string | undefined;
36
+ commit?: string | undefined;
37
+ digest?: string | undefined;
38
+ anchor?: string | undefined;
39
+ url?: string | undefined;
40
+ revision?: number | undefined;
41
+ startLine?: number | undefined;
42
+ endLine?: number | undefined;
43
+ }>, {
44
+ id: string;
45
+ model: string;
46
+ store: "git" | "url" | "postgresql" | "treedx";
47
+ path?: string | undefined;
48
+ repository?: string | undefined;
49
+ commit?: string | undefined;
50
+ digest?: string | undefined;
51
+ anchor?: string | undefined;
52
+ url?: string | undefined;
53
+ revision?: number | undefined;
54
+ startLine?: number | undefined;
55
+ endLine?: number | undefined;
56
+ }, {
57
+ id: string;
58
+ model: string;
59
+ store: "git" | "url" | "postgresql" | "treedx";
60
+ path?: string | undefined;
61
+ repository?: string | undefined;
62
+ commit?: string | undefined;
63
+ digest?: string | undefined;
64
+ anchor?: string | undefined;
65
+ url?: string | undefined;
66
+ revision?: number | undefined;
67
+ startLine?: number | undefined;
68
+ endLine?: number | undefined;
69
+ }>;
70
+ expectedState: z.ZodString;
71
+ }, "strict", z.ZodTypeAny, {
72
+ conditionType: "external" | "authority" | "question" | "lifecycle";
73
+ subjectRef: {
74
+ id: string;
75
+ model: string;
76
+ store: "git" | "url" | "postgresql" | "treedx";
77
+ path?: string | undefined;
78
+ repository?: string | undefined;
79
+ commit?: string | undefined;
80
+ digest?: string | undefined;
81
+ anchor?: string | undefined;
82
+ url?: string | undefined;
83
+ revision?: number | undefined;
84
+ startLine?: number | undefined;
85
+ endLine?: number | undefined;
86
+ };
87
+ expectedState: string;
88
+ }, {
89
+ conditionType: "external" | "authority" | "question" | "lifecycle";
90
+ subjectRef: {
91
+ id: string;
92
+ model: string;
93
+ store: "git" | "url" | "postgresql" | "treedx";
94
+ path?: string | undefined;
95
+ repository?: string | undefined;
96
+ commit?: string | undefined;
97
+ digest?: string | undefined;
98
+ anchor?: string | undefined;
99
+ url?: string | undefined;
100
+ revision?: number | undefined;
101
+ startLine?: number | undefined;
102
+ endLine?: number | undefined;
103
+ };
104
+ expectedState: string;
105
+ }>;
106
+ export declare const executionNodeSchema: z.ZodEffects<z.ZodObject<{
107
+ schemaVersion: z.ZodLiteral<"treeseed.execution-node/v1">;
108
+ id: z.ZodString;
109
+ teamId: z.ZodString;
110
+ projectId: z.ZodString;
111
+ workdayId: z.ZodOptional<z.ZodString>;
112
+ workItemId: z.ZodOptional<z.ZodString>;
113
+ kind: z.ZodEnum<["planning", "estimating", "acting", "reviewing", "reporting", "communication", "condition"]>;
114
+ pairRole: z.ZodNullable<z.ZodEnum<["actor", "reviewer"]>>;
115
+ sourceRef: z.ZodEffects<z.ZodObject<{
116
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
117
+ model: z.ZodString;
118
+ id: z.ZodString;
119
+ revision: z.ZodOptional<z.ZodNumber>;
120
+ digest: z.ZodOptional<z.ZodString>;
121
+ repository: z.ZodOptional<z.ZodString>;
122
+ commit: z.ZodOptional<z.ZodString>;
123
+ path: z.ZodOptional<z.ZodString>;
124
+ anchor: z.ZodOptional<z.ZodString>;
125
+ startLine: z.ZodOptional<z.ZodNumber>;
126
+ endLine: z.ZodOptional<z.ZodNumber>;
127
+ url: z.ZodOptional<z.ZodString>;
128
+ }, "strict", z.ZodTypeAny, {
129
+ id: string;
130
+ model: string;
131
+ store: "git" | "url" | "postgresql" | "treedx";
132
+ path?: string | undefined;
133
+ repository?: string | undefined;
134
+ commit?: string | undefined;
135
+ digest?: string | undefined;
136
+ anchor?: string | undefined;
137
+ url?: string | undefined;
138
+ revision?: number | undefined;
139
+ startLine?: number | undefined;
140
+ endLine?: number | undefined;
141
+ }, {
142
+ id: string;
143
+ model: string;
144
+ store: "git" | "url" | "postgresql" | "treedx";
145
+ path?: string | undefined;
146
+ repository?: string | undefined;
147
+ commit?: string | undefined;
148
+ digest?: string | undefined;
149
+ anchor?: string | undefined;
150
+ url?: string | undefined;
151
+ revision?: number | undefined;
152
+ startLine?: number | undefined;
153
+ endLine?: number | undefined;
154
+ }>, {
155
+ id: string;
156
+ model: string;
157
+ store: "git" | "url" | "postgresql" | "treedx";
158
+ path?: string | undefined;
159
+ repository?: string | undefined;
160
+ commit?: string | undefined;
161
+ digest?: string | undefined;
162
+ anchor?: string | undefined;
163
+ url?: string | undefined;
164
+ revision?: number | undefined;
165
+ startLine?: number | undefined;
166
+ endLine?: number | undefined;
167
+ }, {
168
+ id: string;
169
+ model: string;
170
+ store: "git" | "url" | "postgresql" | "treedx";
171
+ path?: string | undefined;
172
+ repository?: string | undefined;
173
+ commit?: string | undefined;
174
+ digest?: string | undefined;
175
+ anchor?: string | undefined;
176
+ url?: string | undefined;
177
+ revision?: number | undefined;
178
+ startLine?: number | undefined;
179
+ endLine?: number | undefined;
180
+ }>;
181
+ authorityRefs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
182
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
183
+ model: z.ZodString;
184
+ id: z.ZodString;
185
+ revision: z.ZodOptional<z.ZodNumber>;
186
+ digest: z.ZodOptional<z.ZodString>;
187
+ repository: z.ZodOptional<z.ZodString>;
188
+ commit: z.ZodOptional<z.ZodString>;
189
+ path: z.ZodOptional<z.ZodString>;
190
+ anchor: z.ZodOptional<z.ZodString>;
191
+ startLine: z.ZodOptional<z.ZodNumber>;
192
+ endLine: z.ZodOptional<z.ZodNumber>;
193
+ url: z.ZodOptional<z.ZodString>;
194
+ }, "strict", z.ZodTypeAny, {
195
+ id: string;
196
+ model: string;
197
+ store: "git" | "url" | "postgresql" | "treedx";
198
+ path?: string | undefined;
199
+ repository?: string | undefined;
200
+ commit?: string | undefined;
201
+ digest?: string | undefined;
202
+ anchor?: string | undefined;
203
+ url?: string | undefined;
204
+ revision?: number | undefined;
205
+ startLine?: number | undefined;
206
+ endLine?: number | undefined;
207
+ }, {
208
+ id: string;
209
+ model: string;
210
+ store: "git" | "url" | "postgresql" | "treedx";
211
+ path?: string | undefined;
212
+ repository?: string | undefined;
213
+ commit?: string | undefined;
214
+ digest?: string | undefined;
215
+ anchor?: string | undefined;
216
+ url?: string | undefined;
217
+ revision?: number | undefined;
218
+ startLine?: number | undefined;
219
+ endLine?: number | undefined;
220
+ }>, {
221
+ id: string;
222
+ model: string;
223
+ store: "git" | "url" | "postgresql" | "treedx";
224
+ path?: string | undefined;
225
+ repository?: string | undefined;
226
+ commit?: string | undefined;
227
+ digest?: string | undefined;
228
+ anchor?: string | undefined;
229
+ url?: string | undefined;
230
+ revision?: number | undefined;
231
+ startLine?: number | undefined;
232
+ endLine?: number | undefined;
233
+ }, {
234
+ id: string;
235
+ model: string;
236
+ store: "git" | "url" | "postgresql" | "treedx";
237
+ path?: string | undefined;
238
+ repository?: string | undefined;
239
+ commit?: string | undefined;
240
+ digest?: string | undefined;
241
+ anchor?: string | undefined;
242
+ url?: string | undefined;
243
+ revision?: number | undefined;
244
+ startLine?: number | undefined;
245
+ endLine?: number | undefined;
246
+ }>, "many">>;
247
+ ruleRevision: z.ZodNumber;
248
+ nodeRevision: z.ZodNumber;
249
+ agentClass: z.ZodOptional<z.ZodString>;
250
+ status: z.ZodEnum<["proposed", "blocked", "ready", "assigned", "running", "completed", "failed", "cancelled", "stale"]>;
251
+ estimate: z.ZodOptional<z.ZodEffects<z.ZodObject<{
252
+ minimumSeconds: z.ZodNumber;
253
+ expectedSeconds: z.ZodNumber;
254
+ maximumSeconds: z.ZodNumber;
255
+ rationale: z.ZodOptional<z.ZodString>;
256
+ }, "strict", z.ZodTypeAny, {
257
+ minimumSeconds: number;
258
+ expectedSeconds: number;
259
+ maximumSeconds: number;
260
+ rationale?: string | undefined;
261
+ }, {
262
+ minimumSeconds: number;
263
+ expectedSeconds: number;
264
+ maximumSeconds: number;
265
+ rationale?: string | undefined;
266
+ }>, {
267
+ minimumSeconds: number;
268
+ expectedSeconds: number;
269
+ maximumSeconds: number;
270
+ rationale?: string | undefined;
271
+ }, {
272
+ minimumSeconds: number;
273
+ expectedSeconds: number;
274
+ maximumSeconds: number;
275
+ rationale?: string | undefined;
276
+ }>>;
277
+ requiredCapabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
278
+ requestedPermissions: z.ZodOptional<z.ZodObject<{
279
+ content: z.ZodObject<{
280
+ read: z.ZodEffects<z.ZodArray<z.ZodEnum<["agent", "book", "knowledge", "objective", "discussion", "discussion-message", "proposal", "question", "note", "decision"]>, "many">, ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[], ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[]>;
281
+ write: z.ZodEffects<z.ZodArray<z.ZodEnum<["agent", "book", "knowledge", "objective", "discussion", "discussion-message", "proposal", "question", "note", "decision"]>, "many">, ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[], ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[]>;
282
+ }, "strict", z.ZodTypeAny, {
283
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
284
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
285
+ }, {
286
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
287
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
288
+ }>;
289
+ tools: z.ZodEffects<z.ZodArray<z.ZodEnum<["discussion", "source.read", "source.write", "verification", "release"]>, "many">, ("release" | "verification" | "discussion" | "source.read" | "source.write")[], ("release" | "verification" | "discussion" | "source.read" | "source.write")[]>;
290
+ }, "strict", z.ZodTypeAny, {
291
+ content: {
292
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
293
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
294
+ };
295
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
296
+ }, {
297
+ content: {
298
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
299
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
300
+ };
301
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
302
+ }>>;
303
+ workspace: z.ZodOptional<z.ZodEnum<["read-only", "treedx", "git"]>>;
304
+ acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
305
+ maximumReviewCycles: z.ZodOptional<z.ZodNumber>;
306
+ condition: z.ZodOptional<z.ZodObject<{
307
+ conditionType: z.ZodEnum<["question", "external", "authority", "lifecycle"]>;
308
+ subjectRef: z.ZodEffects<z.ZodObject<{
309
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
310
+ model: z.ZodString;
311
+ id: z.ZodString;
312
+ revision: z.ZodOptional<z.ZodNumber>;
313
+ digest: z.ZodOptional<z.ZodString>;
314
+ repository: z.ZodOptional<z.ZodString>;
315
+ commit: z.ZodOptional<z.ZodString>;
316
+ path: z.ZodOptional<z.ZodString>;
317
+ anchor: z.ZodOptional<z.ZodString>;
318
+ startLine: z.ZodOptional<z.ZodNumber>;
319
+ endLine: z.ZodOptional<z.ZodNumber>;
320
+ url: z.ZodOptional<z.ZodString>;
321
+ }, "strict", z.ZodTypeAny, {
322
+ id: string;
323
+ model: string;
324
+ store: "git" | "url" | "postgresql" | "treedx";
325
+ path?: string | undefined;
326
+ repository?: string | undefined;
327
+ commit?: string | undefined;
328
+ digest?: string | undefined;
329
+ anchor?: string | undefined;
330
+ url?: string | undefined;
331
+ revision?: number | undefined;
332
+ startLine?: number | undefined;
333
+ endLine?: number | undefined;
334
+ }, {
335
+ id: string;
336
+ model: string;
337
+ store: "git" | "url" | "postgresql" | "treedx";
338
+ path?: string | undefined;
339
+ repository?: string | undefined;
340
+ commit?: string | undefined;
341
+ digest?: string | undefined;
342
+ anchor?: string | undefined;
343
+ url?: string | undefined;
344
+ revision?: number | undefined;
345
+ startLine?: number | undefined;
346
+ endLine?: number | undefined;
347
+ }>, {
348
+ id: string;
349
+ model: string;
350
+ store: "git" | "url" | "postgresql" | "treedx";
351
+ path?: string | undefined;
352
+ repository?: string | undefined;
353
+ commit?: string | undefined;
354
+ digest?: string | undefined;
355
+ anchor?: string | undefined;
356
+ url?: string | undefined;
357
+ revision?: number | undefined;
358
+ startLine?: number | undefined;
359
+ endLine?: number | undefined;
360
+ }, {
361
+ id: string;
362
+ model: string;
363
+ store: "git" | "url" | "postgresql" | "treedx";
364
+ path?: string | undefined;
365
+ repository?: string | undefined;
366
+ commit?: string | undefined;
367
+ digest?: string | undefined;
368
+ anchor?: string | undefined;
369
+ url?: string | undefined;
370
+ revision?: number | undefined;
371
+ startLine?: number | undefined;
372
+ endLine?: number | undefined;
373
+ }>;
374
+ expectedState: z.ZodString;
375
+ }, "strict", z.ZodTypeAny, {
376
+ conditionType: "external" | "authority" | "question" | "lifecycle";
377
+ subjectRef: {
378
+ id: string;
379
+ model: string;
380
+ store: "git" | "url" | "postgresql" | "treedx";
381
+ path?: string | undefined;
382
+ repository?: string | undefined;
383
+ commit?: string | undefined;
384
+ digest?: string | undefined;
385
+ anchor?: string | undefined;
386
+ url?: string | undefined;
387
+ revision?: number | undefined;
388
+ startLine?: number | undefined;
389
+ endLine?: number | undefined;
390
+ };
391
+ expectedState: string;
392
+ }, {
393
+ conditionType: "external" | "authority" | "question" | "lifecycle";
394
+ subjectRef: {
395
+ id: string;
396
+ model: string;
397
+ store: "git" | "url" | "postgresql" | "treedx";
398
+ path?: string | undefined;
399
+ repository?: string | undefined;
400
+ commit?: string | undefined;
401
+ digest?: string | undefined;
402
+ anchor?: string | undefined;
403
+ url?: string | undefined;
404
+ revision?: number | undefined;
405
+ startLine?: number | undefined;
406
+ endLine?: number | undefined;
407
+ };
408
+ expectedState: string;
409
+ }>>;
410
+ graphRevisionCreated: z.ZodNumber;
411
+ graphRevisionUpdated: z.ZodNumber;
412
+ }, "strict", z.ZodTypeAny, {
413
+ status: "blocked" | "ready" | "stale" | "failed" | "running" | "completed" | "cancelled" | "proposed" | "assigned";
414
+ kind: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "communication" | "condition";
415
+ id: string;
416
+ schemaVersion: "treeseed.execution-node/v1";
417
+ projectId: string;
418
+ teamId: string;
419
+ nodeRevision: number;
420
+ sourceRef: {
421
+ id: string;
422
+ model: string;
423
+ store: "git" | "url" | "postgresql" | "treedx";
424
+ path?: string | undefined;
425
+ repository?: string | undefined;
426
+ commit?: string | undefined;
427
+ digest?: string | undefined;
428
+ anchor?: string | undefined;
429
+ url?: string | undefined;
430
+ revision?: number | undefined;
431
+ startLine?: number | undefined;
432
+ endLine?: number | undefined;
433
+ };
434
+ pairRole: "actor" | "reviewer" | null;
435
+ ruleRevision: number;
436
+ graphRevisionCreated: number;
437
+ graphRevisionUpdated: number;
438
+ requiredCapabilities?: string[] | undefined;
439
+ workspace?: "git" | "treedx" | "read-only" | undefined;
440
+ agentClass?: string | undefined;
441
+ estimate?: {
442
+ minimumSeconds: number;
443
+ expectedSeconds: number;
444
+ maximumSeconds: number;
445
+ rationale?: string | undefined;
446
+ } | undefined;
447
+ workdayId?: string | undefined;
448
+ workItemId?: string | undefined;
449
+ authorityRefs?: {
450
+ id: string;
451
+ model: string;
452
+ store: "git" | "url" | "postgresql" | "treedx";
453
+ path?: string | undefined;
454
+ repository?: string | undefined;
455
+ commit?: string | undefined;
456
+ digest?: string | undefined;
457
+ anchor?: string | undefined;
458
+ url?: string | undefined;
459
+ revision?: number | undefined;
460
+ startLine?: number | undefined;
461
+ endLine?: number | undefined;
462
+ }[] | undefined;
463
+ acceptanceCriteria?: string[] | undefined;
464
+ condition?: {
465
+ conditionType: "external" | "authority" | "question" | "lifecycle";
466
+ subjectRef: {
467
+ id: string;
468
+ model: string;
469
+ store: "git" | "url" | "postgresql" | "treedx";
470
+ path?: string | undefined;
471
+ repository?: string | undefined;
472
+ commit?: string | undefined;
473
+ digest?: string | undefined;
474
+ anchor?: string | undefined;
475
+ url?: string | undefined;
476
+ revision?: number | undefined;
477
+ startLine?: number | undefined;
478
+ endLine?: number | undefined;
479
+ };
480
+ expectedState: string;
481
+ } | undefined;
482
+ requestedPermissions?: {
483
+ content: {
484
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
485
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
486
+ };
487
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
488
+ } | undefined;
489
+ maximumReviewCycles?: number | undefined;
490
+ }, {
491
+ status: "blocked" | "ready" | "stale" | "failed" | "running" | "completed" | "cancelled" | "proposed" | "assigned";
492
+ kind: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "communication" | "condition";
493
+ id: string;
494
+ schemaVersion: "treeseed.execution-node/v1";
495
+ projectId: string;
496
+ teamId: string;
497
+ nodeRevision: number;
498
+ sourceRef: {
499
+ id: string;
500
+ model: string;
501
+ store: "git" | "url" | "postgresql" | "treedx";
502
+ path?: string | undefined;
503
+ repository?: string | undefined;
504
+ commit?: string | undefined;
505
+ digest?: string | undefined;
506
+ anchor?: string | undefined;
507
+ url?: string | undefined;
508
+ revision?: number | undefined;
509
+ startLine?: number | undefined;
510
+ endLine?: number | undefined;
511
+ };
512
+ pairRole: "actor" | "reviewer" | null;
513
+ ruleRevision: number;
514
+ graphRevisionCreated: number;
515
+ graphRevisionUpdated: number;
516
+ requiredCapabilities?: string[] | undefined;
517
+ workspace?: "git" | "treedx" | "read-only" | undefined;
518
+ agentClass?: string | undefined;
519
+ estimate?: {
520
+ minimumSeconds: number;
521
+ expectedSeconds: number;
522
+ maximumSeconds: number;
523
+ rationale?: string | undefined;
524
+ } | undefined;
525
+ workdayId?: string | undefined;
526
+ workItemId?: string | undefined;
527
+ authorityRefs?: {
528
+ id: string;
529
+ model: string;
530
+ store: "git" | "url" | "postgresql" | "treedx";
531
+ path?: string | undefined;
532
+ repository?: string | undefined;
533
+ commit?: string | undefined;
534
+ digest?: string | undefined;
535
+ anchor?: string | undefined;
536
+ url?: string | undefined;
537
+ revision?: number | undefined;
538
+ startLine?: number | undefined;
539
+ endLine?: number | undefined;
540
+ }[] | undefined;
541
+ acceptanceCriteria?: string[] | undefined;
542
+ condition?: {
543
+ conditionType: "external" | "authority" | "question" | "lifecycle";
544
+ subjectRef: {
545
+ id: string;
546
+ model: string;
547
+ store: "git" | "url" | "postgresql" | "treedx";
548
+ path?: string | undefined;
549
+ repository?: string | undefined;
550
+ commit?: string | undefined;
551
+ digest?: string | undefined;
552
+ anchor?: string | undefined;
553
+ url?: string | undefined;
554
+ revision?: number | undefined;
555
+ startLine?: number | undefined;
556
+ endLine?: number | undefined;
557
+ };
558
+ expectedState: string;
559
+ } | undefined;
560
+ requestedPermissions?: {
561
+ content: {
562
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
563
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
564
+ };
565
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
566
+ } | undefined;
567
+ maximumReviewCycles?: number | undefined;
568
+ }>, {
569
+ status: "blocked" | "ready" | "stale" | "failed" | "running" | "completed" | "cancelled" | "proposed" | "assigned";
570
+ kind: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "communication" | "condition";
571
+ id: string;
572
+ schemaVersion: "treeseed.execution-node/v1";
573
+ projectId: string;
574
+ teamId: string;
575
+ nodeRevision: number;
576
+ sourceRef: {
577
+ id: string;
578
+ model: string;
579
+ store: "git" | "url" | "postgresql" | "treedx";
580
+ path?: string | undefined;
581
+ repository?: string | undefined;
582
+ commit?: string | undefined;
583
+ digest?: string | undefined;
584
+ anchor?: string | undefined;
585
+ url?: string | undefined;
586
+ revision?: number | undefined;
587
+ startLine?: number | undefined;
588
+ endLine?: number | undefined;
589
+ };
590
+ pairRole: "actor" | "reviewer" | null;
591
+ ruleRevision: number;
592
+ graphRevisionCreated: number;
593
+ graphRevisionUpdated: number;
594
+ requiredCapabilities?: string[] | undefined;
595
+ workspace?: "git" | "treedx" | "read-only" | undefined;
596
+ agentClass?: string | undefined;
597
+ estimate?: {
598
+ minimumSeconds: number;
599
+ expectedSeconds: number;
600
+ maximumSeconds: number;
601
+ rationale?: string | undefined;
602
+ } | undefined;
603
+ workdayId?: string | undefined;
604
+ workItemId?: string | undefined;
605
+ authorityRefs?: {
606
+ id: string;
607
+ model: string;
608
+ store: "git" | "url" | "postgresql" | "treedx";
609
+ path?: string | undefined;
610
+ repository?: string | undefined;
611
+ commit?: string | undefined;
612
+ digest?: string | undefined;
613
+ anchor?: string | undefined;
614
+ url?: string | undefined;
615
+ revision?: number | undefined;
616
+ startLine?: number | undefined;
617
+ endLine?: number | undefined;
618
+ }[] | undefined;
619
+ acceptanceCriteria?: string[] | undefined;
620
+ condition?: {
621
+ conditionType: "external" | "authority" | "question" | "lifecycle";
622
+ subjectRef: {
623
+ id: string;
624
+ model: string;
625
+ store: "git" | "url" | "postgresql" | "treedx";
626
+ path?: string | undefined;
627
+ repository?: string | undefined;
628
+ commit?: string | undefined;
629
+ digest?: string | undefined;
630
+ anchor?: string | undefined;
631
+ url?: string | undefined;
632
+ revision?: number | undefined;
633
+ startLine?: number | undefined;
634
+ endLine?: number | undefined;
635
+ };
636
+ expectedState: string;
637
+ } | undefined;
638
+ requestedPermissions?: {
639
+ content: {
640
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
641
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
642
+ };
643
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
644
+ } | undefined;
645
+ maximumReviewCycles?: number | undefined;
646
+ }, {
647
+ status: "blocked" | "ready" | "stale" | "failed" | "running" | "completed" | "cancelled" | "proposed" | "assigned";
648
+ kind: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "communication" | "condition";
649
+ id: string;
650
+ schemaVersion: "treeseed.execution-node/v1";
651
+ projectId: string;
652
+ teamId: string;
653
+ nodeRevision: number;
654
+ sourceRef: {
655
+ id: string;
656
+ model: string;
657
+ store: "git" | "url" | "postgresql" | "treedx";
658
+ path?: string | undefined;
659
+ repository?: string | undefined;
660
+ commit?: string | undefined;
661
+ digest?: string | undefined;
662
+ anchor?: string | undefined;
663
+ url?: string | undefined;
664
+ revision?: number | undefined;
665
+ startLine?: number | undefined;
666
+ endLine?: number | undefined;
667
+ };
668
+ pairRole: "actor" | "reviewer" | null;
669
+ ruleRevision: number;
670
+ graphRevisionCreated: number;
671
+ graphRevisionUpdated: number;
672
+ requiredCapabilities?: string[] | undefined;
673
+ workspace?: "git" | "treedx" | "read-only" | undefined;
674
+ agentClass?: string | undefined;
675
+ estimate?: {
676
+ minimumSeconds: number;
677
+ expectedSeconds: number;
678
+ maximumSeconds: number;
679
+ rationale?: string | undefined;
680
+ } | undefined;
681
+ workdayId?: string | undefined;
682
+ workItemId?: string | undefined;
683
+ authorityRefs?: {
684
+ id: string;
685
+ model: string;
686
+ store: "git" | "url" | "postgresql" | "treedx";
687
+ path?: string | undefined;
688
+ repository?: string | undefined;
689
+ commit?: string | undefined;
690
+ digest?: string | undefined;
691
+ anchor?: string | undefined;
692
+ url?: string | undefined;
693
+ revision?: number | undefined;
694
+ startLine?: number | undefined;
695
+ endLine?: number | undefined;
696
+ }[] | undefined;
697
+ acceptanceCriteria?: string[] | undefined;
698
+ condition?: {
699
+ conditionType: "external" | "authority" | "question" | "lifecycle";
700
+ subjectRef: {
701
+ id: string;
702
+ model: string;
703
+ store: "git" | "url" | "postgresql" | "treedx";
704
+ path?: string | undefined;
705
+ repository?: string | undefined;
706
+ commit?: string | undefined;
707
+ digest?: string | undefined;
708
+ anchor?: string | undefined;
709
+ url?: string | undefined;
710
+ revision?: number | undefined;
711
+ startLine?: number | undefined;
712
+ endLine?: number | undefined;
713
+ };
714
+ expectedState: string;
715
+ } | undefined;
716
+ requestedPermissions?: {
717
+ content: {
718
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
719
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
720
+ };
721
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
722
+ } | undefined;
723
+ maximumReviewCycles?: number | undefined;
724
+ }>;
725
+ export declare const executionEdgeSchema: z.ZodEffects<z.ZodObject<{
726
+ schemaVersion: z.ZodLiteral<"treeseed.execution-edge/v1">;
727
+ id: z.ZodString;
728
+ teamId: z.ZodString;
729
+ fromNodeId: z.ZodString;
730
+ toNodeId: z.ZodString;
731
+ provenance: z.ZodEnum<["profile-agent", "profile-event", "work-item", "review-pair", "governance"]>;
732
+ sourceRef: z.ZodOptional<z.ZodEffects<z.ZodObject<{
733
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
734
+ model: z.ZodString;
735
+ id: z.ZodString;
736
+ revision: z.ZodOptional<z.ZodNumber>;
737
+ digest: z.ZodOptional<z.ZodString>;
738
+ repository: z.ZodOptional<z.ZodString>;
739
+ commit: z.ZodOptional<z.ZodString>;
740
+ path: z.ZodOptional<z.ZodString>;
741
+ anchor: z.ZodOptional<z.ZodString>;
742
+ startLine: z.ZodOptional<z.ZodNumber>;
743
+ endLine: z.ZodOptional<z.ZodNumber>;
744
+ url: z.ZodOptional<z.ZodString>;
745
+ }, "strict", z.ZodTypeAny, {
746
+ id: string;
747
+ model: string;
748
+ store: "git" | "url" | "postgresql" | "treedx";
749
+ path?: string | undefined;
750
+ repository?: string | undefined;
751
+ commit?: string | undefined;
752
+ digest?: string | undefined;
753
+ anchor?: string | undefined;
754
+ url?: string | undefined;
755
+ revision?: number | undefined;
756
+ startLine?: number | undefined;
757
+ endLine?: number | undefined;
758
+ }, {
759
+ id: string;
760
+ model: string;
761
+ store: "git" | "url" | "postgresql" | "treedx";
762
+ path?: string | undefined;
763
+ repository?: string | undefined;
764
+ commit?: string | undefined;
765
+ digest?: string | undefined;
766
+ anchor?: string | undefined;
767
+ url?: string | undefined;
768
+ revision?: number | undefined;
769
+ startLine?: number | undefined;
770
+ endLine?: number | undefined;
771
+ }>, {
772
+ id: string;
773
+ model: string;
774
+ store: "git" | "url" | "postgresql" | "treedx";
775
+ path?: string | undefined;
776
+ repository?: string | undefined;
777
+ commit?: string | undefined;
778
+ digest?: string | undefined;
779
+ anchor?: string | undefined;
780
+ url?: string | undefined;
781
+ revision?: number | undefined;
782
+ startLine?: number | undefined;
783
+ endLine?: number | undefined;
784
+ }, {
785
+ id: string;
786
+ model: string;
787
+ store: "git" | "url" | "postgresql" | "treedx";
788
+ path?: string | undefined;
789
+ repository?: string | undefined;
790
+ commit?: string | undefined;
791
+ digest?: string | undefined;
792
+ anchor?: string | undefined;
793
+ url?: string | undefined;
794
+ revision?: number | undefined;
795
+ startLine?: number | undefined;
796
+ endLine?: number | undefined;
797
+ }>>;
798
+ graphRevisionCreated: z.ZodNumber;
799
+ graphRevisionRemoved: z.ZodOptional<z.ZodNumber>;
800
+ }, "strict", z.ZodTypeAny, {
801
+ id: string;
802
+ schemaVersion: "treeseed.execution-edge/v1";
803
+ teamId: string;
804
+ provenance: "governance" | "profile-agent" | "profile-event" | "work-item" | "review-pair";
805
+ graphRevisionCreated: number;
806
+ fromNodeId: string;
807
+ toNodeId: string;
808
+ sourceRef?: {
809
+ id: string;
810
+ model: string;
811
+ store: "git" | "url" | "postgresql" | "treedx";
812
+ path?: string | undefined;
813
+ repository?: string | undefined;
814
+ commit?: string | undefined;
815
+ digest?: string | undefined;
816
+ anchor?: string | undefined;
817
+ url?: string | undefined;
818
+ revision?: number | undefined;
819
+ startLine?: number | undefined;
820
+ endLine?: number | undefined;
821
+ } | undefined;
822
+ graphRevisionRemoved?: number | undefined;
823
+ }, {
824
+ id: string;
825
+ schemaVersion: "treeseed.execution-edge/v1";
826
+ teamId: string;
827
+ provenance: "governance" | "profile-agent" | "profile-event" | "work-item" | "review-pair";
828
+ graphRevisionCreated: number;
829
+ fromNodeId: string;
830
+ toNodeId: string;
831
+ sourceRef?: {
832
+ id: string;
833
+ model: string;
834
+ store: "git" | "url" | "postgresql" | "treedx";
835
+ path?: string | undefined;
836
+ repository?: string | undefined;
837
+ commit?: string | undefined;
838
+ digest?: string | undefined;
839
+ anchor?: string | undefined;
840
+ url?: string | undefined;
841
+ revision?: number | undefined;
842
+ startLine?: number | undefined;
843
+ endLine?: number | undefined;
844
+ } | undefined;
845
+ graphRevisionRemoved?: number | undefined;
846
+ }>, {
847
+ id: string;
848
+ schemaVersion: "treeseed.execution-edge/v1";
849
+ teamId: string;
850
+ provenance: "governance" | "profile-agent" | "profile-event" | "work-item" | "review-pair";
851
+ graphRevisionCreated: number;
852
+ fromNodeId: string;
853
+ toNodeId: string;
854
+ sourceRef?: {
855
+ id: string;
856
+ model: string;
857
+ store: "git" | "url" | "postgresql" | "treedx";
858
+ path?: string | undefined;
859
+ repository?: string | undefined;
860
+ commit?: string | undefined;
861
+ digest?: string | undefined;
862
+ anchor?: string | undefined;
863
+ url?: string | undefined;
864
+ revision?: number | undefined;
865
+ startLine?: number | undefined;
866
+ endLine?: number | undefined;
867
+ } | undefined;
868
+ graphRevisionRemoved?: number | undefined;
869
+ }, {
870
+ id: string;
871
+ schemaVersion: "treeseed.execution-edge/v1";
872
+ teamId: string;
873
+ provenance: "governance" | "profile-agent" | "profile-event" | "work-item" | "review-pair";
874
+ graphRevisionCreated: number;
875
+ fromNodeId: string;
876
+ toNodeId: string;
877
+ sourceRef?: {
878
+ id: string;
879
+ model: string;
880
+ store: "git" | "url" | "postgresql" | "treedx";
881
+ path?: string | undefined;
882
+ repository?: string | undefined;
883
+ commit?: string | undefined;
884
+ digest?: string | undefined;
885
+ anchor?: string | undefined;
886
+ url?: string | undefined;
887
+ revision?: number | undefined;
888
+ startLine?: number | undefined;
889
+ endLine?: number | undefined;
890
+ } | undefined;
891
+ graphRevisionRemoved?: number | undefined;
892
+ }>;
893
+ export declare const graphChangeSetSchema: z.ZodObject<{
894
+ added: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
895
+ changed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
896
+ completed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
897
+ blocked: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
898
+ stale: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
899
+ removedEdges: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
900
+ addedEdges: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
901
+ }, "strict", z.ZodTypeAny, {
902
+ blocked: string[];
903
+ stale: string[];
904
+ completed: string[];
905
+ added: string[];
906
+ changed: string[];
907
+ removedEdges: string[];
908
+ addedEdges: string[];
909
+ }, {
910
+ blocked: string[];
911
+ stale: string[];
912
+ completed: string[];
913
+ added: string[];
914
+ changed: string[];
915
+ removedEdges: string[];
916
+ addedEdges: string[];
917
+ }>;
918
+ export declare const graphRevisionSchema: z.ZodObject<{
919
+ schemaVersion: z.ZodLiteral<"treeseed.graph-revision/v1">;
920
+ teamId: z.ZodString;
921
+ revision: z.ZodNumber;
922
+ ruleRevision: z.ZodNumber;
923
+ changedSourceRefs: z.ZodArray<z.ZodEffects<z.ZodObject<{
924
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
925
+ model: z.ZodString;
926
+ id: z.ZodString;
927
+ revision: z.ZodOptional<z.ZodNumber>;
928
+ digest: z.ZodOptional<z.ZodString>;
929
+ repository: z.ZodOptional<z.ZodString>;
930
+ commit: z.ZodOptional<z.ZodString>;
931
+ path: z.ZodOptional<z.ZodString>;
932
+ anchor: z.ZodOptional<z.ZodString>;
933
+ startLine: z.ZodOptional<z.ZodNumber>;
934
+ endLine: z.ZodOptional<z.ZodNumber>;
935
+ url: z.ZodOptional<z.ZodString>;
936
+ }, "strict", z.ZodTypeAny, {
937
+ id: string;
938
+ model: string;
939
+ store: "git" | "url" | "postgresql" | "treedx";
940
+ path?: string | undefined;
941
+ repository?: string | undefined;
942
+ commit?: string | undefined;
943
+ digest?: string | undefined;
944
+ anchor?: string | undefined;
945
+ url?: string | undefined;
946
+ revision?: number | undefined;
947
+ startLine?: number | undefined;
948
+ endLine?: number | undefined;
949
+ }, {
950
+ id: string;
951
+ model: string;
952
+ store: "git" | "url" | "postgresql" | "treedx";
953
+ path?: string | undefined;
954
+ repository?: string | undefined;
955
+ commit?: string | undefined;
956
+ digest?: string | undefined;
957
+ anchor?: string | undefined;
958
+ url?: string | undefined;
959
+ revision?: number | undefined;
960
+ startLine?: number | undefined;
961
+ endLine?: number | undefined;
962
+ }>, {
963
+ id: string;
964
+ model: string;
965
+ store: "git" | "url" | "postgresql" | "treedx";
966
+ path?: string | undefined;
967
+ repository?: string | undefined;
968
+ commit?: string | undefined;
969
+ digest?: string | undefined;
970
+ anchor?: string | undefined;
971
+ url?: string | undefined;
972
+ revision?: number | undefined;
973
+ startLine?: number | undefined;
974
+ endLine?: number | undefined;
975
+ }, {
976
+ id: string;
977
+ model: string;
978
+ store: "git" | "url" | "postgresql" | "treedx";
979
+ path?: string | undefined;
980
+ repository?: string | undefined;
981
+ commit?: string | undefined;
982
+ digest?: string | undefined;
983
+ anchor?: string | undefined;
984
+ url?: string | undefined;
985
+ revision?: number | undefined;
986
+ startLine?: number | undefined;
987
+ endLine?: number | undefined;
988
+ }>, "many">;
989
+ graphDigest: z.ZodString;
990
+ changes: z.ZodObject<{
991
+ added: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
992
+ changed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
993
+ completed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
994
+ blocked: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
995
+ stale: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
996
+ removedEdges: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
997
+ addedEdges: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
998
+ }, "strict", z.ZodTypeAny, {
999
+ blocked: string[];
1000
+ stale: string[];
1001
+ completed: string[];
1002
+ added: string[];
1003
+ changed: string[];
1004
+ removedEdges: string[];
1005
+ addedEdges: string[];
1006
+ }, {
1007
+ blocked: string[];
1008
+ stale: string[];
1009
+ completed: string[];
1010
+ added: string[];
1011
+ changed: string[];
1012
+ removedEdges: string[];
1013
+ addedEdges: string[];
1014
+ }>;
1015
+ createdAt: z.ZodString;
1016
+ }, "strict", z.ZodTypeAny, {
1017
+ schemaVersion: "treeseed.graph-revision/v1";
1018
+ teamId: string;
1019
+ createdAt: string;
1020
+ revision: number;
1021
+ changes: {
1022
+ blocked: string[];
1023
+ stale: string[];
1024
+ completed: string[];
1025
+ added: string[];
1026
+ changed: string[];
1027
+ removedEdges: string[];
1028
+ addedEdges: string[];
1029
+ };
1030
+ ruleRevision: number;
1031
+ changedSourceRefs: {
1032
+ id: string;
1033
+ model: string;
1034
+ store: "git" | "url" | "postgresql" | "treedx";
1035
+ path?: string | undefined;
1036
+ repository?: string | undefined;
1037
+ commit?: string | undefined;
1038
+ digest?: string | undefined;
1039
+ anchor?: string | undefined;
1040
+ url?: string | undefined;
1041
+ revision?: number | undefined;
1042
+ startLine?: number | undefined;
1043
+ endLine?: number | undefined;
1044
+ }[];
1045
+ graphDigest: string;
1046
+ }, {
1047
+ schemaVersion: "treeseed.graph-revision/v1";
1048
+ teamId: string;
1049
+ createdAt: string;
1050
+ revision: number;
1051
+ changes: {
1052
+ blocked: string[];
1053
+ stale: string[];
1054
+ completed: string[];
1055
+ added: string[];
1056
+ changed: string[];
1057
+ removedEdges: string[];
1058
+ addedEdges: string[];
1059
+ };
1060
+ ruleRevision: number;
1061
+ changedSourceRefs: {
1062
+ id: string;
1063
+ model: string;
1064
+ store: "git" | "url" | "postgresql" | "treedx";
1065
+ path?: string | undefined;
1066
+ repository?: string | undefined;
1067
+ commit?: string | undefined;
1068
+ digest?: string | undefined;
1069
+ anchor?: string | undefined;
1070
+ url?: string | undefined;
1071
+ revision?: number | undefined;
1072
+ startLine?: number | undefined;
1073
+ endLine?: number | undefined;
1074
+ }[];
1075
+ graphDigest: string;
1076
+ }>;
1077
+ export type ExecutionNode = z.infer<typeof executionNodeSchema>;
1078
+ export type ExecutionEdge = z.infer<typeof executionEdgeSchema>;
1079
+ export type GraphRevision = z.infer<typeof graphRevisionSchema>;
1080
+ export declare function validateExecutionGraph(nodes: ExecutionNode[], edges: ExecutionEdge[]): {
1081
+ ok: boolean;
1082
+ diagnostics: {
1083
+ code: string;
1084
+ path: string;
1085
+ message: string;
1086
+ }[];
1087
+ };