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

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