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

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 +397 -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,4395 @@
1
+ import { z } from 'zod';
2
+ export declare const exactEntityReferenceSchema: z.ZodEffects<z.ZodObject<{
3
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
4
+ model: z.ZodString;
5
+ id: z.ZodString;
6
+ revision: z.ZodOptional<z.ZodNumber>;
7
+ digest: z.ZodOptional<z.ZodString>;
8
+ repository: z.ZodOptional<z.ZodString>;
9
+ commit: z.ZodOptional<z.ZodString>;
10
+ path: z.ZodOptional<z.ZodString>;
11
+ anchor: z.ZodOptional<z.ZodString>;
12
+ startLine: z.ZodOptional<z.ZodNumber>;
13
+ endLine: z.ZodOptional<z.ZodNumber>;
14
+ url: z.ZodOptional<z.ZodString>;
15
+ }, "strict", z.ZodTypeAny, {
16
+ id: string;
17
+ model: string;
18
+ store: "git" | "url" | "postgresql" | "treedx";
19
+ path?: string | undefined;
20
+ repository?: string | undefined;
21
+ commit?: string | undefined;
22
+ digest?: string | undefined;
23
+ anchor?: string | undefined;
24
+ url?: string | undefined;
25
+ revision?: number | undefined;
26
+ startLine?: number | undefined;
27
+ endLine?: number | undefined;
28
+ }, {
29
+ id: string;
30
+ model: string;
31
+ store: "git" | "url" | "postgresql" | "treedx";
32
+ path?: string | undefined;
33
+ repository?: string | undefined;
34
+ commit?: string | undefined;
35
+ digest?: string | undefined;
36
+ anchor?: string | undefined;
37
+ url?: string | undefined;
38
+ revision?: number | undefined;
39
+ startLine?: number | undefined;
40
+ endLine?: number | undefined;
41
+ }>, {
42
+ id: string;
43
+ model: string;
44
+ store: "git" | "url" | "postgresql" | "treedx";
45
+ path?: string | undefined;
46
+ repository?: string | undefined;
47
+ commit?: string | undefined;
48
+ digest?: string | undefined;
49
+ anchor?: string | undefined;
50
+ url?: string | undefined;
51
+ revision?: number | undefined;
52
+ startLine?: number | undefined;
53
+ endLine?: number | undefined;
54
+ }, {
55
+ id: string;
56
+ model: string;
57
+ store: "git" | "url" | "postgresql" | "treedx";
58
+ path?: string | undefined;
59
+ repository?: string | undefined;
60
+ commit?: string | undefined;
61
+ digest?: string | undefined;
62
+ anchor?: string | undefined;
63
+ url?: string | undefined;
64
+ revision?: number | undefined;
65
+ startLine?: number | undefined;
66
+ endLine?: number | undefined;
67
+ }>;
68
+ export declare const assignmentReferenceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
69
+ kind: z.ZodLiteral<"git">;
70
+ repository: z.ZodString;
71
+ commit: z.ZodString;
72
+ branch: z.ZodOptional<z.ZodString>;
73
+ path: z.ZodOptional<z.ZodString>;
74
+ }, "strict", z.ZodTypeAny, {
75
+ kind: "git";
76
+ repository: string;
77
+ commit: string;
78
+ path?: string | undefined;
79
+ branch?: string | undefined;
80
+ }, {
81
+ kind: "git";
82
+ repository: string;
83
+ commit: string;
84
+ path?: string | undefined;
85
+ branch?: string | undefined;
86
+ }>, z.ZodObject<{
87
+ kind: z.ZodLiteral<"treedx">;
88
+ projectId: z.ZodString;
89
+ repository: z.ZodString;
90
+ commit: z.ZodString;
91
+ path: z.ZodString;
92
+ workspaceId: z.ZodOptional<z.ZodString>;
93
+ }, "strict", z.ZodTypeAny, {
94
+ path: string;
95
+ kind: "treedx";
96
+ repository: string;
97
+ commit: string;
98
+ projectId: string;
99
+ workspaceId?: string | undefined;
100
+ }, {
101
+ path: string;
102
+ kind: "treedx";
103
+ repository: string;
104
+ commit: string;
105
+ projectId: string;
106
+ workspaceId?: string | undefined;
107
+ }>, z.ZodObject<{
108
+ kind: z.ZodLiteral<"url">;
109
+ url: z.ZodString;
110
+ digest: z.ZodOptional<z.ZodString>;
111
+ }, "strict", z.ZodTypeAny, {
112
+ kind: "url";
113
+ url: string;
114
+ digest?: string | undefined;
115
+ }, {
116
+ kind: "url";
117
+ url: string;
118
+ digest?: string | undefined;
119
+ }>]>;
120
+ export declare const exactGrantSchema: z.ZodObject<{
121
+ contentRead: z.ZodArray<z.ZodEffects<z.ZodObject<{
122
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
123
+ model: z.ZodString;
124
+ id: z.ZodString;
125
+ revision: z.ZodOptional<z.ZodNumber>;
126
+ digest: z.ZodOptional<z.ZodString>;
127
+ repository: z.ZodOptional<z.ZodString>;
128
+ commit: z.ZodOptional<z.ZodString>;
129
+ path: z.ZodOptional<z.ZodString>;
130
+ anchor: z.ZodOptional<z.ZodString>;
131
+ startLine: z.ZodOptional<z.ZodNumber>;
132
+ endLine: z.ZodOptional<z.ZodNumber>;
133
+ url: z.ZodOptional<z.ZodString>;
134
+ }, "strict", z.ZodTypeAny, {
135
+ id: string;
136
+ model: string;
137
+ store: "git" | "url" | "postgresql" | "treedx";
138
+ path?: string | undefined;
139
+ repository?: string | undefined;
140
+ commit?: string | undefined;
141
+ digest?: string | undefined;
142
+ anchor?: string | undefined;
143
+ url?: string | undefined;
144
+ revision?: number | undefined;
145
+ startLine?: number | undefined;
146
+ endLine?: number | undefined;
147
+ }, {
148
+ id: string;
149
+ model: string;
150
+ store: "git" | "url" | "postgresql" | "treedx";
151
+ path?: string | undefined;
152
+ repository?: string | undefined;
153
+ commit?: string | undefined;
154
+ digest?: string | undefined;
155
+ anchor?: string | undefined;
156
+ url?: string | undefined;
157
+ revision?: number | undefined;
158
+ startLine?: number | undefined;
159
+ endLine?: number | undefined;
160
+ }>, {
161
+ id: string;
162
+ model: string;
163
+ store: "git" | "url" | "postgresql" | "treedx";
164
+ path?: string | undefined;
165
+ repository?: string | undefined;
166
+ commit?: string | undefined;
167
+ digest?: string | undefined;
168
+ anchor?: string | undefined;
169
+ url?: string | undefined;
170
+ revision?: number | undefined;
171
+ startLine?: number | undefined;
172
+ endLine?: number | undefined;
173
+ }, {
174
+ id: string;
175
+ model: string;
176
+ store: "git" | "url" | "postgresql" | "treedx";
177
+ path?: string | undefined;
178
+ repository?: string | undefined;
179
+ commit?: string | undefined;
180
+ digest?: string | undefined;
181
+ anchor?: string | undefined;
182
+ url?: string | undefined;
183
+ revision?: number | undefined;
184
+ startLine?: number | undefined;
185
+ endLine?: number | undefined;
186
+ }>, "many">;
187
+ contentWrite: z.ZodArray<z.ZodEffects<z.ZodObject<{
188
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
189
+ model: z.ZodString;
190
+ id: z.ZodString;
191
+ revision: z.ZodOptional<z.ZodNumber>;
192
+ digest: z.ZodOptional<z.ZodString>;
193
+ repository: z.ZodOptional<z.ZodString>;
194
+ commit: z.ZodOptional<z.ZodString>;
195
+ path: z.ZodOptional<z.ZodString>;
196
+ anchor: z.ZodOptional<z.ZodString>;
197
+ startLine: z.ZodOptional<z.ZodNumber>;
198
+ endLine: z.ZodOptional<z.ZodNumber>;
199
+ url: z.ZodOptional<z.ZodString>;
200
+ }, "strict", z.ZodTypeAny, {
201
+ id: string;
202
+ model: string;
203
+ store: "git" | "url" | "postgresql" | "treedx";
204
+ path?: string | undefined;
205
+ repository?: string | undefined;
206
+ commit?: string | undefined;
207
+ digest?: string | undefined;
208
+ anchor?: string | undefined;
209
+ url?: string | undefined;
210
+ revision?: number | undefined;
211
+ startLine?: number | undefined;
212
+ endLine?: number | undefined;
213
+ }, {
214
+ id: string;
215
+ model: string;
216
+ store: "git" | "url" | "postgresql" | "treedx";
217
+ path?: string | undefined;
218
+ repository?: string | undefined;
219
+ commit?: string | undefined;
220
+ digest?: string | undefined;
221
+ anchor?: string | undefined;
222
+ url?: string | undefined;
223
+ revision?: number | undefined;
224
+ startLine?: number | undefined;
225
+ endLine?: number | undefined;
226
+ }>, {
227
+ id: string;
228
+ model: string;
229
+ store: "git" | "url" | "postgresql" | "treedx";
230
+ path?: string | undefined;
231
+ repository?: string | undefined;
232
+ commit?: string | undefined;
233
+ digest?: string | undefined;
234
+ anchor?: string | undefined;
235
+ url?: string | undefined;
236
+ revision?: number | undefined;
237
+ startLine?: number | undefined;
238
+ endLine?: number | undefined;
239
+ }, {
240
+ id: string;
241
+ model: string;
242
+ store: "git" | "url" | "postgresql" | "treedx";
243
+ path?: string | undefined;
244
+ repository?: string | undefined;
245
+ commit?: string | undefined;
246
+ digest?: string | undefined;
247
+ anchor?: string | undefined;
248
+ url?: string | undefined;
249
+ revision?: number | undefined;
250
+ startLine?: number | undefined;
251
+ endLine?: number | undefined;
252
+ }>, "many">;
253
+ sourceRead: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
254
+ sourceWrite: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
255
+ tools: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
256
+ }, "strict", z.ZodTypeAny, {
257
+ tools: string[];
258
+ contentRead: {
259
+ id: string;
260
+ model: string;
261
+ store: "git" | "url" | "postgresql" | "treedx";
262
+ path?: string | undefined;
263
+ repository?: string | undefined;
264
+ commit?: string | undefined;
265
+ digest?: string | undefined;
266
+ anchor?: string | undefined;
267
+ url?: string | undefined;
268
+ revision?: number | undefined;
269
+ startLine?: number | undefined;
270
+ endLine?: number | undefined;
271
+ }[];
272
+ contentWrite: {
273
+ id: string;
274
+ model: string;
275
+ store: "git" | "url" | "postgresql" | "treedx";
276
+ path?: string | undefined;
277
+ repository?: string | undefined;
278
+ commit?: string | undefined;
279
+ digest?: string | undefined;
280
+ anchor?: string | undefined;
281
+ url?: string | undefined;
282
+ revision?: number | undefined;
283
+ startLine?: number | undefined;
284
+ endLine?: number | undefined;
285
+ }[];
286
+ sourceRead: string[];
287
+ sourceWrite: string[];
288
+ }, {
289
+ tools: string[];
290
+ contentRead: {
291
+ id: string;
292
+ model: string;
293
+ store: "git" | "url" | "postgresql" | "treedx";
294
+ path?: string | undefined;
295
+ repository?: string | undefined;
296
+ commit?: string | undefined;
297
+ digest?: string | undefined;
298
+ anchor?: string | undefined;
299
+ url?: string | undefined;
300
+ revision?: number | undefined;
301
+ startLine?: number | undefined;
302
+ endLine?: number | undefined;
303
+ }[];
304
+ contentWrite: {
305
+ id: string;
306
+ model: string;
307
+ store: "git" | "url" | "postgresql" | "treedx";
308
+ path?: string | undefined;
309
+ repository?: string | undefined;
310
+ commit?: string | undefined;
311
+ digest?: string | undefined;
312
+ anchor?: string | undefined;
313
+ url?: string | undefined;
314
+ revision?: number | undefined;
315
+ startLine?: number | undefined;
316
+ endLine?: number | undefined;
317
+ }[];
318
+ sourceRead: string[];
319
+ sourceWrite: string[];
320
+ }>;
321
+ export declare const assignmentWorkspaceSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
322
+ mode: z.ZodLiteral<"read-only">;
323
+ }, "strict", z.ZodTypeAny, {
324
+ mode: "read-only";
325
+ }, {
326
+ mode: "read-only";
327
+ }>, z.ZodObject<{
328
+ mode: z.ZodLiteral<"treedx">;
329
+ workspaceId: z.ZodString;
330
+ repository: z.ZodString;
331
+ baseCommit: z.ZodString;
332
+ writablePaths: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
333
+ }, "strict", z.ZodTypeAny, {
334
+ repository: string;
335
+ mode: "treedx";
336
+ workspaceId: string;
337
+ baseCommit: string;
338
+ writablePaths: string[];
339
+ }, {
340
+ repository: string;
341
+ mode: "treedx";
342
+ workspaceId: string;
343
+ baseCommit: string;
344
+ writablePaths: string[];
345
+ }>, z.ZodObject<{
346
+ mode: z.ZodLiteral<"git">;
347
+ repository: z.ZodString;
348
+ baseCommit: z.ZodString;
349
+ branch: z.ZodString;
350
+ writablePaths: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
351
+ }, "strict", z.ZodTypeAny, {
352
+ repository: string;
353
+ branch: string;
354
+ mode: "git";
355
+ baseCommit: string;
356
+ writablePaths: string[];
357
+ }, {
358
+ repository: string;
359
+ branch: string;
360
+ mode: "git";
361
+ baseCommit: string;
362
+ writablePaths: string[];
363
+ }>]>;
364
+ export declare const estimateSchema: z.ZodEffects<z.ZodObject<{
365
+ minimumSeconds: z.ZodNumber;
366
+ expectedSeconds: z.ZodNumber;
367
+ maximumSeconds: z.ZodNumber;
368
+ rationale: z.ZodOptional<z.ZodString>;
369
+ }, "strict", z.ZodTypeAny, {
370
+ minimumSeconds: number;
371
+ expectedSeconds: number;
372
+ maximumSeconds: number;
373
+ rationale?: string | undefined;
374
+ }, {
375
+ minimumSeconds: number;
376
+ expectedSeconds: number;
377
+ maximumSeconds: number;
378
+ rationale?: string | undefined;
379
+ }>, {
380
+ minimumSeconds: number;
381
+ expectedSeconds: number;
382
+ maximumSeconds: number;
383
+ rationale?: string | undefined;
384
+ }, {
385
+ minimumSeconds: number;
386
+ expectedSeconds: number;
387
+ maximumSeconds: number;
388
+ rationale?: string | undefined;
389
+ }>;
390
+ export declare const effectiveActivityProfileSchema: z.ZodObject<Omit<Omit<{
391
+ handler: z.ZodString;
392
+ dependsOn: z.ZodOptional<z.ZodEffects<z.ZodObject<{
393
+ agents: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
394
+ events: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodLiteral<"workday-closing">, "many">, "workday-closing"[], "workday-closing"[]>>;
395
+ }, "strict", z.ZodTypeAny, {
396
+ agents?: string[] | undefined;
397
+ events?: "workday-closing"[] | undefined;
398
+ }, {
399
+ agents?: string[] | undefined;
400
+ events?: "workday-closing"[] | undefined;
401
+ }>, {
402
+ agents?: string[] | undefined;
403
+ events?: "workday-closing"[] | undefined;
404
+ }, {
405
+ agents?: string[] | undefined;
406
+ events?: "workday-closing"[] | undefined;
407
+ }>>;
408
+ permissions: z.ZodObject<{
409
+ content: z.ZodObject<{
410
+ 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")[]>;
411
+ 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")[]>;
412
+ }, "strict", z.ZodTypeAny, {
413
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
414
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
415
+ }, {
416
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
417
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
418
+ }>;
419
+ 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")[]>;
420
+ }, "strict", z.ZodTypeAny, {
421
+ content: {
422
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
423
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
424
+ };
425
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
426
+ }, {
427
+ content: {
428
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
429
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
430
+ };
431
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
432
+ }>;
433
+ prompt: z.ZodObject<{
434
+ system: z.ZodString;
435
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
+ }, "strict", z.ZodTypeAny, {
437
+ system: string;
438
+ instructions?: string[] | undefined;
439
+ }, {
440
+ system: string;
441
+ instructions?: string[] | undefined;
442
+ }>;
443
+ additionalContext: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
444
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
445
+ }, "dependsOn"> & {
446
+ profileRef: z.ZodEffects<z.ZodObject<{
447
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
448
+ model: z.ZodString;
449
+ id: z.ZodString;
450
+ revision: z.ZodOptional<z.ZodNumber>;
451
+ digest: z.ZodOptional<z.ZodString>;
452
+ repository: z.ZodOptional<z.ZodString>;
453
+ commit: z.ZodOptional<z.ZodString>;
454
+ path: z.ZodOptional<z.ZodString>;
455
+ anchor: z.ZodOptional<z.ZodString>;
456
+ startLine: z.ZodOptional<z.ZodNumber>;
457
+ endLine: z.ZodOptional<z.ZodNumber>;
458
+ url: z.ZodOptional<z.ZodString>;
459
+ }, "strict", z.ZodTypeAny, {
460
+ id: string;
461
+ model: string;
462
+ store: "git" | "url" | "postgresql" | "treedx";
463
+ path?: string | undefined;
464
+ repository?: string | undefined;
465
+ commit?: string | undefined;
466
+ digest?: string | undefined;
467
+ anchor?: string | undefined;
468
+ url?: string | undefined;
469
+ revision?: number | undefined;
470
+ startLine?: number | undefined;
471
+ endLine?: number | undefined;
472
+ }, {
473
+ id: string;
474
+ model: string;
475
+ store: "git" | "url" | "postgresql" | "treedx";
476
+ path?: string | undefined;
477
+ repository?: string | undefined;
478
+ commit?: string | undefined;
479
+ digest?: string | undefined;
480
+ anchor?: string | undefined;
481
+ url?: string | undefined;
482
+ revision?: number | undefined;
483
+ startLine?: number | undefined;
484
+ endLine?: number | undefined;
485
+ }>, {
486
+ id: string;
487
+ model: string;
488
+ store: "git" | "url" | "postgresql" | "treedx";
489
+ path?: string | undefined;
490
+ repository?: string | undefined;
491
+ commit?: string | undefined;
492
+ digest?: string | undefined;
493
+ anchor?: string | undefined;
494
+ url?: string | undefined;
495
+ revision?: number | undefined;
496
+ startLine?: number | undefined;
497
+ endLine?: number | undefined;
498
+ }, {
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
+ activity: z.ZodEnum<["planning", "estimating", "acting", "reviewing", "reporting", "chat"]>;
513
+ handlerOrigin: z.ZodEnum<["agent-package", "project-runtime"]>;
514
+ permissionCeiling: z.ZodObject<{
515
+ content: z.ZodObject<{
516
+ 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")[]>;
517
+ 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")[]>;
518
+ }, "strict", z.ZodTypeAny, {
519
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
520
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
521
+ }, {
522
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
523
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
524
+ }>;
525
+ 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")[]>;
526
+ }, "strict", z.ZodTypeAny, {
527
+ content: {
528
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
529
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
530
+ };
531
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
532
+ }, {
533
+ content: {
534
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
535
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
536
+ };
537
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
538
+ }>;
539
+ }, "permissions">, "strict", z.ZodTypeAny, {
540
+ prompt: {
541
+ system: string;
542
+ instructions?: string[] | undefined;
543
+ };
544
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
545
+ handler: string;
546
+ profileRef: {
547
+ id: string;
548
+ model: string;
549
+ store: "git" | "url" | "postgresql" | "treedx";
550
+ path?: string | undefined;
551
+ repository?: string | undefined;
552
+ commit?: string | undefined;
553
+ digest?: string | undefined;
554
+ anchor?: string | undefined;
555
+ url?: string | undefined;
556
+ revision?: number | undefined;
557
+ startLine?: number | undefined;
558
+ endLine?: number | undefined;
559
+ };
560
+ handlerOrigin: "agent-package" | "project-runtime";
561
+ permissionCeiling: {
562
+ content: {
563
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
564
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
565
+ };
566
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
567
+ };
568
+ parameters?: Record<string, unknown> | undefined;
569
+ additionalContext?: string[] | undefined;
570
+ }, {
571
+ prompt: {
572
+ system: string;
573
+ instructions?: string[] | undefined;
574
+ };
575
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
576
+ handler: string;
577
+ profileRef: {
578
+ id: string;
579
+ model: string;
580
+ store: "git" | "url" | "postgresql" | "treedx";
581
+ path?: string | undefined;
582
+ repository?: string | undefined;
583
+ commit?: string | undefined;
584
+ digest?: string | undefined;
585
+ anchor?: string | undefined;
586
+ url?: string | undefined;
587
+ revision?: number | undefined;
588
+ startLine?: number | undefined;
589
+ endLine?: number | undefined;
590
+ };
591
+ handlerOrigin: "agent-package" | "project-runtime";
592
+ permissionCeiling: {
593
+ content: {
594
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
595
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
596
+ };
597
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
598
+ };
599
+ parameters?: Record<string, unknown> | undefined;
600
+ additionalContext?: string[] | undefined;
601
+ }>;
602
+ export declare const assignmentAttemptSchema: z.ZodObject<{
603
+ schemaVersion: z.ZodLiteral<"treeseed.assignment-attempt/v1">;
604
+ id: z.ZodString;
605
+ idempotencyKey: z.ZodString;
606
+ teamId: z.ZodString;
607
+ projectId: z.ZodString;
608
+ workdayId: z.ZodString;
609
+ nodeId: z.ZodString;
610
+ workItemId: z.ZodOptional<z.ZodString>;
611
+ nodeRevision: z.ZodNumber;
612
+ graphRevision: z.ZodNumber;
613
+ sourceRef: z.ZodEffects<z.ZodObject<{
614
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
615
+ model: z.ZodString;
616
+ id: z.ZodString;
617
+ revision: z.ZodOptional<z.ZodNumber>;
618
+ digest: z.ZodOptional<z.ZodString>;
619
+ repository: z.ZodOptional<z.ZodString>;
620
+ commit: z.ZodOptional<z.ZodString>;
621
+ path: z.ZodOptional<z.ZodString>;
622
+ anchor: z.ZodOptional<z.ZodString>;
623
+ startLine: z.ZodOptional<z.ZodNumber>;
624
+ endLine: z.ZodOptional<z.ZodNumber>;
625
+ url: z.ZodOptional<z.ZodString>;
626
+ }, "strict", z.ZodTypeAny, {
627
+ id: string;
628
+ model: string;
629
+ store: "git" | "url" | "postgresql" | "treedx";
630
+ path?: string | undefined;
631
+ repository?: string | undefined;
632
+ commit?: string | undefined;
633
+ digest?: string | undefined;
634
+ anchor?: string | undefined;
635
+ url?: string | undefined;
636
+ revision?: number | undefined;
637
+ startLine?: number | undefined;
638
+ endLine?: number | undefined;
639
+ }, {
640
+ id: string;
641
+ model: string;
642
+ store: "git" | "url" | "postgresql" | "treedx";
643
+ path?: string | undefined;
644
+ repository?: string | undefined;
645
+ commit?: string | undefined;
646
+ digest?: string | undefined;
647
+ anchor?: string | undefined;
648
+ url?: string | undefined;
649
+ revision?: number | undefined;
650
+ startLine?: number | undefined;
651
+ endLine?: number | undefined;
652
+ }>, {
653
+ id: string;
654
+ model: string;
655
+ store: "git" | "url" | "postgresql" | "treedx";
656
+ path?: string | undefined;
657
+ repository?: string | undefined;
658
+ commit?: string | undefined;
659
+ digest?: string | undefined;
660
+ anchor?: string | undefined;
661
+ url?: string | undefined;
662
+ revision?: number | undefined;
663
+ startLine?: number | undefined;
664
+ endLine?: number | undefined;
665
+ }, {
666
+ id: string;
667
+ model: string;
668
+ store: "git" | "url" | "postgresql" | "treedx";
669
+ path?: string | undefined;
670
+ repository?: string | undefined;
671
+ commit?: string | undefined;
672
+ digest?: string | undefined;
673
+ anchor?: string | undefined;
674
+ url?: string | undefined;
675
+ revision?: number | undefined;
676
+ startLine?: number | undefined;
677
+ endLine?: number | undefined;
678
+ }>;
679
+ authorityRefs: z.ZodArray<z.ZodEffects<z.ZodObject<{
680
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
681
+ model: z.ZodString;
682
+ id: z.ZodString;
683
+ revision: z.ZodOptional<z.ZodNumber>;
684
+ digest: z.ZodOptional<z.ZodString>;
685
+ repository: z.ZodOptional<z.ZodString>;
686
+ commit: z.ZodOptional<z.ZodString>;
687
+ path: z.ZodOptional<z.ZodString>;
688
+ anchor: z.ZodOptional<z.ZodString>;
689
+ startLine: z.ZodOptional<z.ZodNumber>;
690
+ endLine: z.ZodOptional<z.ZodNumber>;
691
+ url: z.ZodOptional<z.ZodString>;
692
+ }, "strict", z.ZodTypeAny, {
693
+ id: string;
694
+ model: string;
695
+ store: "git" | "url" | "postgresql" | "treedx";
696
+ path?: string | undefined;
697
+ repository?: string | undefined;
698
+ commit?: string | undefined;
699
+ digest?: string | undefined;
700
+ anchor?: string | undefined;
701
+ url?: string | undefined;
702
+ revision?: number | undefined;
703
+ startLine?: number | undefined;
704
+ endLine?: number | undefined;
705
+ }, {
706
+ id: string;
707
+ model: string;
708
+ store: "git" | "url" | "postgresql" | "treedx";
709
+ path?: string | undefined;
710
+ repository?: string | undefined;
711
+ commit?: string | undefined;
712
+ digest?: string | undefined;
713
+ anchor?: string | undefined;
714
+ url?: string | undefined;
715
+ revision?: number | undefined;
716
+ startLine?: number | undefined;
717
+ endLine?: number | undefined;
718
+ }>, {
719
+ id: string;
720
+ model: string;
721
+ store: "git" | "url" | "postgresql" | "treedx";
722
+ path?: string | undefined;
723
+ repository?: string | undefined;
724
+ commit?: string | undefined;
725
+ digest?: string | undefined;
726
+ anchor?: string | undefined;
727
+ url?: string | undefined;
728
+ revision?: number | undefined;
729
+ startLine?: number | undefined;
730
+ endLine?: number | undefined;
731
+ }, {
732
+ id: string;
733
+ model: string;
734
+ store: "git" | "url" | "postgresql" | "treedx";
735
+ path?: string | undefined;
736
+ repository?: string | undefined;
737
+ commit?: string | undefined;
738
+ digest?: string | undefined;
739
+ anchor?: string | undefined;
740
+ url?: string | undefined;
741
+ revision?: number | undefined;
742
+ startLine?: number | undefined;
743
+ endLine?: number | undefined;
744
+ }>, "many">;
745
+ effectiveProfile: z.ZodObject<Omit<Omit<{
746
+ handler: z.ZodString;
747
+ dependsOn: z.ZodOptional<z.ZodEffects<z.ZodObject<{
748
+ agents: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
749
+ events: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodLiteral<"workday-closing">, "many">, "workday-closing"[], "workday-closing"[]>>;
750
+ }, "strict", z.ZodTypeAny, {
751
+ agents?: string[] | undefined;
752
+ events?: "workday-closing"[] | undefined;
753
+ }, {
754
+ agents?: string[] | undefined;
755
+ events?: "workday-closing"[] | undefined;
756
+ }>, {
757
+ agents?: string[] | undefined;
758
+ events?: "workday-closing"[] | undefined;
759
+ }, {
760
+ agents?: string[] | undefined;
761
+ events?: "workday-closing"[] | undefined;
762
+ }>>;
763
+ permissions: z.ZodObject<{
764
+ content: z.ZodObject<{
765
+ 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")[]>;
766
+ 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")[]>;
767
+ }, "strict", z.ZodTypeAny, {
768
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
769
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
770
+ }, {
771
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
772
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
773
+ }>;
774
+ 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")[]>;
775
+ }, "strict", z.ZodTypeAny, {
776
+ content: {
777
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
778
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
779
+ };
780
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
781
+ }, {
782
+ content: {
783
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
784
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
785
+ };
786
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
787
+ }>;
788
+ prompt: z.ZodObject<{
789
+ system: z.ZodString;
790
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
791
+ }, "strict", z.ZodTypeAny, {
792
+ system: string;
793
+ instructions?: string[] | undefined;
794
+ }, {
795
+ system: string;
796
+ instructions?: string[] | undefined;
797
+ }>;
798
+ additionalContext: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
799
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
800
+ }, "dependsOn"> & {
801
+ profileRef: z.ZodEffects<z.ZodObject<{
802
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
803
+ model: z.ZodString;
804
+ id: z.ZodString;
805
+ revision: z.ZodOptional<z.ZodNumber>;
806
+ digest: z.ZodOptional<z.ZodString>;
807
+ repository: z.ZodOptional<z.ZodString>;
808
+ commit: z.ZodOptional<z.ZodString>;
809
+ path: z.ZodOptional<z.ZodString>;
810
+ anchor: z.ZodOptional<z.ZodString>;
811
+ startLine: z.ZodOptional<z.ZodNumber>;
812
+ endLine: z.ZodOptional<z.ZodNumber>;
813
+ url: z.ZodOptional<z.ZodString>;
814
+ }, "strict", z.ZodTypeAny, {
815
+ id: string;
816
+ model: string;
817
+ store: "git" | "url" | "postgresql" | "treedx";
818
+ path?: string | undefined;
819
+ repository?: string | undefined;
820
+ commit?: string | undefined;
821
+ digest?: string | undefined;
822
+ anchor?: string | undefined;
823
+ url?: string | undefined;
824
+ revision?: number | undefined;
825
+ startLine?: number | undefined;
826
+ endLine?: number | undefined;
827
+ }, {
828
+ id: string;
829
+ model: string;
830
+ store: "git" | "url" | "postgresql" | "treedx";
831
+ path?: string | undefined;
832
+ repository?: string | undefined;
833
+ commit?: string | undefined;
834
+ digest?: string | undefined;
835
+ anchor?: string | undefined;
836
+ url?: string | undefined;
837
+ revision?: number | undefined;
838
+ startLine?: number | undefined;
839
+ endLine?: number | undefined;
840
+ }>, {
841
+ id: string;
842
+ model: string;
843
+ store: "git" | "url" | "postgresql" | "treedx";
844
+ path?: string | undefined;
845
+ repository?: string | undefined;
846
+ commit?: string | undefined;
847
+ digest?: string | undefined;
848
+ anchor?: string | undefined;
849
+ url?: string | undefined;
850
+ revision?: number | undefined;
851
+ startLine?: number | undefined;
852
+ endLine?: number | undefined;
853
+ }, {
854
+ id: string;
855
+ model: string;
856
+ store: "git" | "url" | "postgresql" | "treedx";
857
+ path?: string | undefined;
858
+ repository?: string | undefined;
859
+ commit?: string | undefined;
860
+ digest?: string | undefined;
861
+ anchor?: string | undefined;
862
+ url?: string | undefined;
863
+ revision?: number | undefined;
864
+ startLine?: number | undefined;
865
+ endLine?: number | undefined;
866
+ }>;
867
+ activity: z.ZodEnum<["planning", "estimating", "acting", "reviewing", "reporting", "chat"]>;
868
+ handlerOrigin: z.ZodEnum<["agent-package", "project-runtime"]>;
869
+ permissionCeiling: z.ZodObject<{
870
+ content: z.ZodObject<{
871
+ 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")[]>;
872
+ 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")[]>;
873
+ }, "strict", z.ZodTypeAny, {
874
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
875
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
876
+ }, {
877
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
878
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
879
+ }>;
880
+ 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")[]>;
881
+ }, "strict", z.ZodTypeAny, {
882
+ content: {
883
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
884
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
885
+ };
886
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
887
+ }, {
888
+ content: {
889
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
890
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
891
+ };
892
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
893
+ }>;
894
+ }, "permissions">, "strict", z.ZodTypeAny, {
895
+ prompt: {
896
+ system: string;
897
+ instructions?: string[] | undefined;
898
+ };
899
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
900
+ handler: string;
901
+ profileRef: {
902
+ id: string;
903
+ model: string;
904
+ store: "git" | "url" | "postgresql" | "treedx";
905
+ path?: string | undefined;
906
+ repository?: string | undefined;
907
+ commit?: string | undefined;
908
+ digest?: string | undefined;
909
+ anchor?: string | undefined;
910
+ url?: string | undefined;
911
+ revision?: number | undefined;
912
+ startLine?: number | undefined;
913
+ endLine?: number | undefined;
914
+ };
915
+ handlerOrigin: "agent-package" | "project-runtime";
916
+ permissionCeiling: {
917
+ content: {
918
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
919
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
920
+ };
921
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
922
+ };
923
+ parameters?: Record<string, unknown> | undefined;
924
+ additionalContext?: string[] | undefined;
925
+ }, {
926
+ prompt: {
927
+ system: string;
928
+ instructions?: string[] | undefined;
929
+ };
930
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
931
+ handler: string;
932
+ profileRef: {
933
+ id: string;
934
+ model: string;
935
+ store: "git" | "url" | "postgresql" | "treedx";
936
+ path?: string | undefined;
937
+ repository?: string | undefined;
938
+ commit?: string | undefined;
939
+ digest?: string | undefined;
940
+ anchor?: string | undefined;
941
+ url?: string | undefined;
942
+ revision?: number | undefined;
943
+ startLine?: number | undefined;
944
+ endLine?: number | undefined;
945
+ };
946
+ handlerOrigin: "agent-package" | "project-runtime";
947
+ permissionCeiling: {
948
+ content: {
949
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
950
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
951
+ };
952
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
953
+ };
954
+ parameters?: Record<string, unknown> | undefined;
955
+ additionalContext?: string[] | undefined;
956
+ }>;
957
+ requiredCapabilities: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
958
+ grant: z.ZodObject<{
959
+ contentRead: z.ZodArray<z.ZodEffects<z.ZodObject<{
960
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
961
+ model: z.ZodString;
962
+ id: z.ZodString;
963
+ revision: z.ZodOptional<z.ZodNumber>;
964
+ digest: z.ZodOptional<z.ZodString>;
965
+ repository: z.ZodOptional<z.ZodString>;
966
+ commit: z.ZodOptional<z.ZodString>;
967
+ path: z.ZodOptional<z.ZodString>;
968
+ anchor: z.ZodOptional<z.ZodString>;
969
+ startLine: z.ZodOptional<z.ZodNumber>;
970
+ endLine: z.ZodOptional<z.ZodNumber>;
971
+ url: z.ZodOptional<z.ZodString>;
972
+ }, "strict", z.ZodTypeAny, {
973
+ id: string;
974
+ model: string;
975
+ store: "git" | "url" | "postgresql" | "treedx";
976
+ path?: string | undefined;
977
+ repository?: string | undefined;
978
+ commit?: string | undefined;
979
+ digest?: string | undefined;
980
+ anchor?: string | undefined;
981
+ url?: string | undefined;
982
+ revision?: number | undefined;
983
+ startLine?: number | undefined;
984
+ endLine?: number | undefined;
985
+ }, {
986
+ id: string;
987
+ model: string;
988
+ store: "git" | "url" | "postgresql" | "treedx";
989
+ path?: string | undefined;
990
+ repository?: string | undefined;
991
+ commit?: string | undefined;
992
+ digest?: string | undefined;
993
+ anchor?: string | undefined;
994
+ url?: string | undefined;
995
+ revision?: number | undefined;
996
+ startLine?: number | undefined;
997
+ endLine?: number | undefined;
998
+ }>, {
999
+ id: string;
1000
+ model: string;
1001
+ store: "git" | "url" | "postgresql" | "treedx";
1002
+ path?: string | undefined;
1003
+ repository?: string | undefined;
1004
+ commit?: string | undefined;
1005
+ digest?: string | undefined;
1006
+ anchor?: string | undefined;
1007
+ url?: string | undefined;
1008
+ revision?: number | undefined;
1009
+ startLine?: number | undefined;
1010
+ endLine?: number | undefined;
1011
+ }, {
1012
+ id: string;
1013
+ model: string;
1014
+ store: "git" | "url" | "postgresql" | "treedx";
1015
+ path?: string | undefined;
1016
+ repository?: string | undefined;
1017
+ commit?: string | undefined;
1018
+ digest?: string | undefined;
1019
+ anchor?: string | undefined;
1020
+ url?: string | undefined;
1021
+ revision?: number | undefined;
1022
+ startLine?: number | undefined;
1023
+ endLine?: number | undefined;
1024
+ }>, "many">;
1025
+ contentWrite: z.ZodArray<z.ZodEffects<z.ZodObject<{
1026
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
1027
+ model: z.ZodString;
1028
+ id: z.ZodString;
1029
+ revision: z.ZodOptional<z.ZodNumber>;
1030
+ digest: z.ZodOptional<z.ZodString>;
1031
+ repository: z.ZodOptional<z.ZodString>;
1032
+ commit: z.ZodOptional<z.ZodString>;
1033
+ path: z.ZodOptional<z.ZodString>;
1034
+ anchor: z.ZodOptional<z.ZodString>;
1035
+ startLine: z.ZodOptional<z.ZodNumber>;
1036
+ endLine: z.ZodOptional<z.ZodNumber>;
1037
+ url: z.ZodOptional<z.ZodString>;
1038
+ }, "strict", z.ZodTypeAny, {
1039
+ id: string;
1040
+ model: string;
1041
+ store: "git" | "url" | "postgresql" | "treedx";
1042
+ path?: string | undefined;
1043
+ repository?: string | undefined;
1044
+ commit?: string | undefined;
1045
+ digest?: string | undefined;
1046
+ anchor?: string | undefined;
1047
+ url?: string | undefined;
1048
+ revision?: number | undefined;
1049
+ startLine?: number | undefined;
1050
+ endLine?: number | undefined;
1051
+ }, {
1052
+ id: string;
1053
+ model: string;
1054
+ store: "git" | "url" | "postgresql" | "treedx";
1055
+ path?: string | undefined;
1056
+ repository?: string | undefined;
1057
+ commit?: string | undefined;
1058
+ digest?: string | undefined;
1059
+ anchor?: string | undefined;
1060
+ url?: string | undefined;
1061
+ revision?: number | undefined;
1062
+ startLine?: number | undefined;
1063
+ endLine?: number | undefined;
1064
+ }>, {
1065
+ id: string;
1066
+ model: string;
1067
+ store: "git" | "url" | "postgresql" | "treedx";
1068
+ path?: string | undefined;
1069
+ repository?: string | undefined;
1070
+ commit?: string | undefined;
1071
+ digest?: string | undefined;
1072
+ anchor?: string | undefined;
1073
+ url?: string | undefined;
1074
+ revision?: number | undefined;
1075
+ startLine?: number | undefined;
1076
+ endLine?: number | undefined;
1077
+ }, {
1078
+ id: string;
1079
+ model: string;
1080
+ store: "git" | "url" | "postgresql" | "treedx";
1081
+ path?: string | undefined;
1082
+ repository?: string | undefined;
1083
+ commit?: string | undefined;
1084
+ digest?: string | undefined;
1085
+ anchor?: string | undefined;
1086
+ url?: string | undefined;
1087
+ revision?: number | undefined;
1088
+ startLine?: number | undefined;
1089
+ endLine?: number | undefined;
1090
+ }>, "many">;
1091
+ sourceRead: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1092
+ sourceWrite: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1093
+ tools: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1094
+ }, "strict", z.ZodTypeAny, {
1095
+ tools: string[];
1096
+ contentRead: {
1097
+ id: string;
1098
+ model: string;
1099
+ store: "git" | "url" | "postgresql" | "treedx";
1100
+ path?: string | undefined;
1101
+ repository?: string | undefined;
1102
+ commit?: string | undefined;
1103
+ digest?: string | undefined;
1104
+ anchor?: string | undefined;
1105
+ url?: string | undefined;
1106
+ revision?: number | undefined;
1107
+ startLine?: number | undefined;
1108
+ endLine?: number | undefined;
1109
+ }[];
1110
+ contentWrite: {
1111
+ id: string;
1112
+ model: string;
1113
+ store: "git" | "url" | "postgresql" | "treedx";
1114
+ path?: string | undefined;
1115
+ repository?: string | undefined;
1116
+ commit?: string | undefined;
1117
+ digest?: string | undefined;
1118
+ anchor?: string | undefined;
1119
+ url?: string | undefined;
1120
+ revision?: number | undefined;
1121
+ startLine?: number | undefined;
1122
+ endLine?: number | undefined;
1123
+ }[];
1124
+ sourceRead: string[];
1125
+ sourceWrite: string[];
1126
+ }, {
1127
+ tools: string[];
1128
+ contentRead: {
1129
+ id: string;
1130
+ model: string;
1131
+ store: "git" | "url" | "postgresql" | "treedx";
1132
+ path?: string | undefined;
1133
+ repository?: string | undefined;
1134
+ commit?: string | undefined;
1135
+ digest?: string | undefined;
1136
+ anchor?: string | undefined;
1137
+ url?: string | undefined;
1138
+ revision?: number | undefined;
1139
+ startLine?: number | undefined;
1140
+ endLine?: number | undefined;
1141
+ }[];
1142
+ contentWrite: {
1143
+ id: string;
1144
+ model: string;
1145
+ store: "git" | "url" | "postgresql" | "treedx";
1146
+ path?: string | undefined;
1147
+ repository?: string | undefined;
1148
+ commit?: string | undefined;
1149
+ digest?: string | undefined;
1150
+ anchor?: string | undefined;
1151
+ url?: string | undefined;
1152
+ revision?: number | undefined;
1153
+ startLine?: number | undefined;
1154
+ endLine?: number | undefined;
1155
+ }[];
1156
+ sourceRead: string[];
1157
+ sourceWrite: string[];
1158
+ }>;
1159
+ provider: z.ZodObject<{
1160
+ providerId: z.ZodString;
1161
+ offerId: z.ZodString;
1162
+ executionProviderId: z.ZodString;
1163
+ modelConfigurationId: z.ZodString;
1164
+ executionCapabilityId: z.ZodString;
1165
+ offerRevision: z.ZodNumber;
1166
+ runtimeBuild: z.ZodString;
1167
+ }, "strict", z.ZodTypeAny, {
1168
+ providerId: string;
1169
+ executionProviderId: string;
1170
+ offerId: string;
1171
+ modelConfigurationId: string;
1172
+ executionCapabilityId: string;
1173
+ offerRevision: number;
1174
+ runtimeBuild: string;
1175
+ }, {
1176
+ providerId: string;
1177
+ executionProviderId: string;
1178
+ offerId: string;
1179
+ modelConfigurationId: string;
1180
+ executionCapabilityId: string;
1181
+ offerRevision: number;
1182
+ runtimeBuild: string;
1183
+ }>;
1184
+ contextRefs: z.ZodArray<z.ZodEffects<z.ZodObject<{
1185
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
1186
+ model: z.ZodString;
1187
+ id: z.ZodString;
1188
+ revision: z.ZodOptional<z.ZodNumber>;
1189
+ digest: z.ZodOptional<z.ZodString>;
1190
+ repository: z.ZodOptional<z.ZodString>;
1191
+ commit: z.ZodOptional<z.ZodString>;
1192
+ path: z.ZodOptional<z.ZodString>;
1193
+ anchor: z.ZodOptional<z.ZodString>;
1194
+ startLine: z.ZodOptional<z.ZodNumber>;
1195
+ endLine: z.ZodOptional<z.ZodNumber>;
1196
+ url: z.ZodOptional<z.ZodString>;
1197
+ }, "strict", z.ZodTypeAny, {
1198
+ id: string;
1199
+ model: string;
1200
+ store: "git" | "url" | "postgresql" | "treedx";
1201
+ path?: string | undefined;
1202
+ repository?: string | undefined;
1203
+ commit?: string | undefined;
1204
+ digest?: string | undefined;
1205
+ anchor?: string | undefined;
1206
+ url?: string | undefined;
1207
+ revision?: number | undefined;
1208
+ startLine?: number | undefined;
1209
+ endLine?: number | undefined;
1210
+ }, {
1211
+ id: string;
1212
+ model: string;
1213
+ store: "git" | "url" | "postgresql" | "treedx";
1214
+ path?: string | undefined;
1215
+ repository?: string | undefined;
1216
+ commit?: string | undefined;
1217
+ digest?: string | undefined;
1218
+ anchor?: string | undefined;
1219
+ url?: string | undefined;
1220
+ revision?: number | undefined;
1221
+ startLine?: number | undefined;
1222
+ endLine?: number | undefined;
1223
+ }>, {
1224
+ id: string;
1225
+ model: string;
1226
+ store: "git" | "url" | "postgresql" | "treedx";
1227
+ path?: string | undefined;
1228
+ repository?: string | undefined;
1229
+ commit?: string | undefined;
1230
+ digest?: string | undefined;
1231
+ anchor?: string | undefined;
1232
+ url?: string | undefined;
1233
+ revision?: number | undefined;
1234
+ startLine?: number | undefined;
1235
+ endLine?: number | undefined;
1236
+ }, {
1237
+ id: string;
1238
+ model: string;
1239
+ store: "git" | "url" | "postgresql" | "treedx";
1240
+ path?: string | undefined;
1241
+ repository?: string | undefined;
1242
+ commit?: string | undefined;
1243
+ digest?: string | undefined;
1244
+ anchor?: string | undefined;
1245
+ url?: string | undefined;
1246
+ revision?: number | undefined;
1247
+ startLine?: number | undefined;
1248
+ endLine?: number | undefined;
1249
+ }>, "many">;
1250
+ predecessorResultIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1251
+ acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1252
+ workspace: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1253
+ mode: z.ZodLiteral<"read-only">;
1254
+ }, "strict", z.ZodTypeAny, {
1255
+ mode: "read-only";
1256
+ }, {
1257
+ mode: "read-only";
1258
+ }>, z.ZodObject<{
1259
+ mode: z.ZodLiteral<"treedx">;
1260
+ workspaceId: z.ZodString;
1261
+ repository: z.ZodString;
1262
+ baseCommit: z.ZodString;
1263
+ writablePaths: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
1264
+ }, "strict", z.ZodTypeAny, {
1265
+ repository: string;
1266
+ mode: "treedx";
1267
+ workspaceId: string;
1268
+ baseCommit: string;
1269
+ writablePaths: string[];
1270
+ }, {
1271
+ repository: string;
1272
+ mode: "treedx";
1273
+ workspaceId: string;
1274
+ baseCommit: string;
1275
+ writablePaths: string[];
1276
+ }>, z.ZodObject<{
1277
+ mode: z.ZodLiteral<"git">;
1278
+ repository: z.ZodString;
1279
+ baseCommit: z.ZodString;
1280
+ branch: z.ZodString;
1281
+ writablePaths: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
1282
+ }, "strict", z.ZodTypeAny, {
1283
+ repository: string;
1284
+ branch: string;
1285
+ mode: "git";
1286
+ baseCommit: string;
1287
+ writablePaths: string[];
1288
+ }, {
1289
+ repository: string;
1290
+ branch: string;
1291
+ mode: "git";
1292
+ baseCommit: string;
1293
+ writablePaths: string[];
1294
+ }>]>;
1295
+ estimate: z.ZodEffects<z.ZodObject<{
1296
+ minimumSeconds: z.ZodNumber;
1297
+ expectedSeconds: z.ZodNumber;
1298
+ maximumSeconds: z.ZodNumber;
1299
+ rationale: z.ZodOptional<z.ZodString>;
1300
+ }, "strict", z.ZodTypeAny, {
1301
+ minimumSeconds: number;
1302
+ expectedSeconds: number;
1303
+ maximumSeconds: number;
1304
+ rationale?: string | undefined;
1305
+ }, {
1306
+ minimumSeconds: number;
1307
+ expectedSeconds: number;
1308
+ maximumSeconds: number;
1309
+ rationale?: string | undefined;
1310
+ }>, {
1311
+ minimumSeconds: number;
1312
+ expectedSeconds: number;
1313
+ maximumSeconds: number;
1314
+ rationale?: string | undefined;
1315
+ }, {
1316
+ minimumSeconds: number;
1317
+ expectedSeconds: number;
1318
+ maximumSeconds: number;
1319
+ rationale?: string | undefined;
1320
+ }>;
1321
+ limits: z.ZodObject<{
1322
+ maximumSeconds: z.ZodNumber;
1323
+ maximumContextBytes: z.ZodNumber;
1324
+ maximumContextTokens: z.ZodOptional<z.ZodNumber>;
1325
+ maximumContextItems: z.ZodNumber;
1326
+ }, "strict", z.ZodTypeAny, {
1327
+ maximumSeconds: number;
1328
+ maximumContextBytes: number;
1329
+ maximumContextItems: number;
1330
+ maximumContextTokens?: number | undefined;
1331
+ }, {
1332
+ maximumSeconds: number;
1333
+ maximumContextBytes: number;
1334
+ maximumContextItems: number;
1335
+ maximumContextTokens?: number | undefined;
1336
+ }>;
1337
+ deadline: z.ZodString;
1338
+ leaseId: z.ZodString;
1339
+ reservationId: z.ZodString;
1340
+ attempt: z.ZodNumber;
1341
+ status: z.ZodEnum<["created", "leased", "running", "completed", "blocked", "failed", "cancelled", "expired"]>;
1342
+ createdAt: z.ZodString;
1343
+ startedAt: z.ZodOptional<z.ZodString>;
1344
+ finishedAt: z.ZodOptional<z.ZodString>;
1345
+ }, "strict", z.ZodTypeAny, {
1346
+ status: "blocked" | "expired" | "failed" | "running" | "completed" | "cancelled" | "created" | "leased";
1347
+ provider: {
1348
+ providerId: string;
1349
+ executionProviderId: string;
1350
+ offerId: string;
1351
+ modelConfigurationId: string;
1352
+ executionCapabilityId: string;
1353
+ offerRevision: number;
1354
+ runtimeBuild: string;
1355
+ };
1356
+ id: string;
1357
+ schemaVersion: "treeseed.assignment-attempt/v1";
1358
+ projectId: string;
1359
+ teamId: string;
1360
+ createdAt: string;
1361
+ idempotencyKey: string;
1362
+ requiredCapabilities: string[];
1363
+ nodeId: string;
1364
+ grant: {
1365
+ tools: string[];
1366
+ contentRead: {
1367
+ id: string;
1368
+ model: string;
1369
+ store: "git" | "url" | "postgresql" | "treedx";
1370
+ path?: string | undefined;
1371
+ repository?: string | undefined;
1372
+ commit?: string | undefined;
1373
+ digest?: string | undefined;
1374
+ anchor?: string | undefined;
1375
+ url?: string | undefined;
1376
+ revision?: number | undefined;
1377
+ startLine?: number | undefined;
1378
+ endLine?: number | undefined;
1379
+ }[];
1380
+ contentWrite: {
1381
+ id: string;
1382
+ model: string;
1383
+ store: "git" | "url" | "postgresql" | "treedx";
1384
+ path?: string | undefined;
1385
+ repository?: string | undefined;
1386
+ commit?: string | undefined;
1387
+ digest?: string | undefined;
1388
+ anchor?: string | undefined;
1389
+ url?: string | undefined;
1390
+ revision?: number | undefined;
1391
+ startLine?: number | undefined;
1392
+ endLine?: number | undefined;
1393
+ }[];
1394
+ sourceRead: string[];
1395
+ sourceWrite: string[];
1396
+ };
1397
+ workspace: {
1398
+ mode: "read-only";
1399
+ } | {
1400
+ repository: string;
1401
+ mode: "treedx";
1402
+ workspaceId: string;
1403
+ baseCommit: string;
1404
+ writablePaths: string[];
1405
+ } | {
1406
+ repository: string;
1407
+ branch: string;
1408
+ mode: "git";
1409
+ baseCommit: string;
1410
+ writablePaths: string[];
1411
+ };
1412
+ limits: {
1413
+ maximumSeconds: number;
1414
+ maximumContextBytes: number;
1415
+ maximumContextItems: number;
1416
+ maximumContextTokens?: number | undefined;
1417
+ };
1418
+ estimate: {
1419
+ minimumSeconds: number;
1420
+ expectedSeconds: number;
1421
+ maximumSeconds: number;
1422
+ rationale?: string | undefined;
1423
+ };
1424
+ workdayId: string;
1425
+ nodeRevision: number;
1426
+ graphRevision: number;
1427
+ sourceRef: {
1428
+ id: string;
1429
+ model: string;
1430
+ store: "git" | "url" | "postgresql" | "treedx";
1431
+ path?: string | undefined;
1432
+ repository?: string | undefined;
1433
+ commit?: string | undefined;
1434
+ digest?: string | undefined;
1435
+ anchor?: string | undefined;
1436
+ url?: string | undefined;
1437
+ revision?: number | undefined;
1438
+ startLine?: number | undefined;
1439
+ endLine?: number | undefined;
1440
+ };
1441
+ authorityRefs: {
1442
+ id: string;
1443
+ model: string;
1444
+ store: "git" | "url" | "postgresql" | "treedx";
1445
+ path?: string | undefined;
1446
+ repository?: string | undefined;
1447
+ commit?: string | undefined;
1448
+ digest?: string | undefined;
1449
+ anchor?: string | undefined;
1450
+ url?: string | undefined;
1451
+ revision?: number | undefined;
1452
+ startLine?: number | undefined;
1453
+ endLine?: number | undefined;
1454
+ }[];
1455
+ effectiveProfile: {
1456
+ prompt: {
1457
+ system: string;
1458
+ instructions?: string[] | undefined;
1459
+ };
1460
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
1461
+ handler: string;
1462
+ profileRef: {
1463
+ id: string;
1464
+ model: string;
1465
+ store: "git" | "url" | "postgresql" | "treedx";
1466
+ path?: string | undefined;
1467
+ repository?: string | undefined;
1468
+ commit?: string | undefined;
1469
+ digest?: string | undefined;
1470
+ anchor?: string | undefined;
1471
+ url?: string | undefined;
1472
+ revision?: number | undefined;
1473
+ startLine?: number | undefined;
1474
+ endLine?: number | undefined;
1475
+ };
1476
+ handlerOrigin: "agent-package" | "project-runtime";
1477
+ permissionCeiling: {
1478
+ content: {
1479
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
1480
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
1481
+ };
1482
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
1483
+ };
1484
+ parameters?: Record<string, unknown> | undefined;
1485
+ additionalContext?: string[] | undefined;
1486
+ };
1487
+ contextRefs: {
1488
+ id: string;
1489
+ model: string;
1490
+ store: "git" | "url" | "postgresql" | "treedx";
1491
+ path?: string | undefined;
1492
+ repository?: string | undefined;
1493
+ commit?: string | undefined;
1494
+ digest?: string | undefined;
1495
+ anchor?: string | undefined;
1496
+ url?: string | undefined;
1497
+ revision?: number | undefined;
1498
+ startLine?: number | undefined;
1499
+ endLine?: number | undefined;
1500
+ }[];
1501
+ predecessorResultIds: string[];
1502
+ deadline: string;
1503
+ leaseId: string;
1504
+ reservationId: string;
1505
+ attempt: number;
1506
+ startedAt?: string | undefined;
1507
+ finishedAt?: string | undefined;
1508
+ workItemId?: string | undefined;
1509
+ acceptanceCriteria?: string[] | undefined;
1510
+ }, {
1511
+ status: "blocked" | "expired" | "failed" | "running" | "completed" | "cancelled" | "created" | "leased";
1512
+ provider: {
1513
+ providerId: string;
1514
+ executionProviderId: string;
1515
+ offerId: string;
1516
+ modelConfigurationId: string;
1517
+ executionCapabilityId: string;
1518
+ offerRevision: number;
1519
+ runtimeBuild: string;
1520
+ };
1521
+ id: string;
1522
+ schemaVersion: "treeseed.assignment-attempt/v1";
1523
+ projectId: string;
1524
+ teamId: string;
1525
+ createdAt: string;
1526
+ idempotencyKey: string;
1527
+ requiredCapabilities: string[];
1528
+ nodeId: string;
1529
+ grant: {
1530
+ tools: string[];
1531
+ contentRead: {
1532
+ id: string;
1533
+ model: string;
1534
+ store: "git" | "url" | "postgresql" | "treedx";
1535
+ path?: string | undefined;
1536
+ repository?: string | undefined;
1537
+ commit?: string | undefined;
1538
+ digest?: string | undefined;
1539
+ anchor?: string | undefined;
1540
+ url?: string | undefined;
1541
+ revision?: number | undefined;
1542
+ startLine?: number | undefined;
1543
+ endLine?: number | undefined;
1544
+ }[];
1545
+ contentWrite: {
1546
+ id: string;
1547
+ model: string;
1548
+ store: "git" | "url" | "postgresql" | "treedx";
1549
+ path?: string | undefined;
1550
+ repository?: string | undefined;
1551
+ commit?: string | undefined;
1552
+ digest?: string | undefined;
1553
+ anchor?: string | undefined;
1554
+ url?: string | undefined;
1555
+ revision?: number | undefined;
1556
+ startLine?: number | undefined;
1557
+ endLine?: number | undefined;
1558
+ }[];
1559
+ sourceRead: string[];
1560
+ sourceWrite: string[];
1561
+ };
1562
+ workspace: {
1563
+ mode: "read-only";
1564
+ } | {
1565
+ repository: string;
1566
+ mode: "treedx";
1567
+ workspaceId: string;
1568
+ baseCommit: string;
1569
+ writablePaths: string[];
1570
+ } | {
1571
+ repository: string;
1572
+ branch: string;
1573
+ mode: "git";
1574
+ baseCommit: string;
1575
+ writablePaths: string[];
1576
+ };
1577
+ limits: {
1578
+ maximumSeconds: number;
1579
+ maximumContextBytes: number;
1580
+ maximumContextItems: number;
1581
+ maximumContextTokens?: number | undefined;
1582
+ };
1583
+ estimate: {
1584
+ minimumSeconds: number;
1585
+ expectedSeconds: number;
1586
+ maximumSeconds: number;
1587
+ rationale?: string | undefined;
1588
+ };
1589
+ workdayId: string;
1590
+ nodeRevision: number;
1591
+ graphRevision: number;
1592
+ sourceRef: {
1593
+ id: string;
1594
+ model: string;
1595
+ store: "git" | "url" | "postgresql" | "treedx";
1596
+ path?: string | undefined;
1597
+ repository?: string | undefined;
1598
+ commit?: string | undefined;
1599
+ digest?: string | undefined;
1600
+ anchor?: string | undefined;
1601
+ url?: string | undefined;
1602
+ revision?: number | undefined;
1603
+ startLine?: number | undefined;
1604
+ endLine?: number | undefined;
1605
+ };
1606
+ authorityRefs: {
1607
+ id: string;
1608
+ model: string;
1609
+ store: "git" | "url" | "postgresql" | "treedx";
1610
+ path?: string | undefined;
1611
+ repository?: string | undefined;
1612
+ commit?: string | undefined;
1613
+ digest?: string | undefined;
1614
+ anchor?: string | undefined;
1615
+ url?: string | undefined;
1616
+ revision?: number | undefined;
1617
+ startLine?: number | undefined;
1618
+ endLine?: number | undefined;
1619
+ }[];
1620
+ effectiveProfile: {
1621
+ prompt: {
1622
+ system: string;
1623
+ instructions?: string[] | undefined;
1624
+ };
1625
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
1626
+ handler: string;
1627
+ profileRef: {
1628
+ id: string;
1629
+ model: string;
1630
+ store: "git" | "url" | "postgresql" | "treedx";
1631
+ path?: string | undefined;
1632
+ repository?: string | undefined;
1633
+ commit?: string | undefined;
1634
+ digest?: string | undefined;
1635
+ anchor?: string | undefined;
1636
+ url?: string | undefined;
1637
+ revision?: number | undefined;
1638
+ startLine?: number | undefined;
1639
+ endLine?: number | undefined;
1640
+ };
1641
+ handlerOrigin: "agent-package" | "project-runtime";
1642
+ permissionCeiling: {
1643
+ content: {
1644
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
1645
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
1646
+ };
1647
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
1648
+ };
1649
+ parameters?: Record<string, unknown> | undefined;
1650
+ additionalContext?: string[] | undefined;
1651
+ };
1652
+ contextRefs: {
1653
+ id: string;
1654
+ model: string;
1655
+ store: "git" | "url" | "postgresql" | "treedx";
1656
+ path?: string | undefined;
1657
+ repository?: string | undefined;
1658
+ commit?: string | undefined;
1659
+ digest?: string | undefined;
1660
+ anchor?: string | undefined;
1661
+ url?: string | undefined;
1662
+ revision?: number | undefined;
1663
+ startLine?: number | undefined;
1664
+ endLine?: number | undefined;
1665
+ }[];
1666
+ predecessorResultIds: string[];
1667
+ deadline: string;
1668
+ leaseId: string;
1669
+ reservationId: string;
1670
+ attempt: number;
1671
+ startedAt?: string | undefined;
1672
+ finishedAt?: string | undefined;
1673
+ workItemId?: string | undefined;
1674
+ acceptanceCriteria?: string[] | undefined;
1675
+ }>;
1676
+ export declare const verificationRecordSchema: z.ZodObject<{
1677
+ command: z.ZodString;
1678
+ status: z.ZodEnum<["passed", "failed", "skipped"]>;
1679
+ exitCode: z.ZodNumber;
1680
+ outputDigest: z.ZodString;
1681
+ durationSeconds: z.ZodOptional<z.ZodNumber>;
1682
+ }, "strict", z.ZodTypeAny, {
1683
+ status: "passed" | "failed" | "skipped";
1684
+ command: string;
1685
+ exitCode: number;
1686
+ outputDigest: string;
1687
+ durationSeconds?: number | undefined;
1688
+ }, {
1689
+ status: "passed" | "failed" | "skipped";
1690
+ command: string;
1691
+ exitCode: number;
1692
+ outputDigest: string;
1693
+ durationSeconds?: number | undefined;
1694
+ }>;
1695
+ export declare const usageSchema: z.ZodObject<{
1696
+ elapsedSeconds: z.ZodNumber;
1697
+ modelInputTokens: z.ZodOptional<z.ZodNumber>;
1698
+ modelOutputTokens: z.ZodOptional<z.ZodNumber>;
1699
+ native: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1700
+ }, "strict", z.ZodTypeAny, {
1701
+ elapsedSeconds: number;
1702
+ native?: Record<string, number> | undefined;
1703
+ modelInputTokens?: number | undefined;
1704
+ modelOutputTokens?: number | undefined;
1705
+ }, {
1706
+ elapsedSeconds: number;
1707
+ native?: Record<string, number> | undefined;
1708
+ modelInputTokens?: number | undefined;
1709
+ modelOutputTokens?: number | undefined;
1710
+ }>;
1711
+ export declare const diagnosticSchema: z.ZodObject<{
1712
+ code: z.ZodString;
1713
+ severity: z.ZodEnum<["info", "warning", "error"]>;
1714
+ message: z.ZodString;
1715
+ ref: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1716
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
1717
+ model: z.ZodString;
1718
+ id: z.ZodString;
1719
+ revision: z.ZodOptional<z.ZodNumber>;
1720
+ digest: z.ZodOptional<z.ZodString>;
1721
+ repository: z.ZodOptional<z.ZodString>;
1722
+ commit: z.ZodOptional<z.ZodString>;
1723
+ path: z.ZodOptional<z.ZodString>;
1724
+ anchor: z.ZodOptional<z.ZodString>;
1725
+ startLine: z.ZodOptional<z.ZodNumber>;
1726
+ endLine: z.ZodOptional<z.ZodNumber>;
1727
+ url: z.ZodOptional<z.ZodString>;
1728
+ }, "strict", z.ZodTypeAny, {
1729
+ id: string;
1730
+ model: string;
1731
+ store: "git" | "url" | "postgresql" | "treedx";
1732
+ path?: string | undefined;
1733
+ repository?: string | undefined;
1734
+ commit?: string | undefined;
1735
+ digest?: string | undefined;
1736
+ anchor?: string | undefined;
1737
+ url?: string | undefined;
1738
+ revision?: number | undefined;
1739
+ startLine?: number | undefined;
1740
+ endLine?: number | undefined;
1741
+ }, {
1742
+ id: string;
1743
+ model: string;
1744
+ store: "git" | "url" | "postgresql" | "treedx";
1745
+ path?: string | undefined;
1746
+ repository?: string | undefined;
1747
+ commit?: string | undefined;
1748
+ digest?: string | undefined;
1749
+ anchor?: string | undefined;
1750
+ url?: string | undefined;
1751
+ revision?: number | undefined;
1752
+ startLine?: number | undefined;
1753
+ endLine?: number | undefined;
1754
+ }>, {
1755
+ id: string;
1756
+ model: string;
1757
+ store: "git" | "url" | "postgresql" | "treedx";
1758
+ path?: string | undefined;
1759
+ repository?: string | undefined;
1760
+ commit?: string | undefined;
1761
+ digest?: string | undefined;
1762
+ anchor?: string | undefined;
1763
+ url?: string | undefined;
1764
+ revision?: number | undefined;
1765
+ startLine?: number | undefined;
1766
+ endLine?: number | undefined;
1767
+ }, {
1768
+ id: string;
1769
+ model: string;
1770
+ store: "git" | "url" | "postgresql" | "treedx";
1771
+ path?: string | undefined;
1772
+ repository?: string | undefined;
1773
+ commit?: string | undefined;
1774
+ digest?: string | undefined;
1775
+ anchor?: string | undefined;
1776
+ url?: string | undefined;
1777
+ revision?: number | undefined;
1778
+ startLine?: number | undefined;
1779
+ endLine?: number | undefined;
1780
+ }>>;
1781
+ }, "strict", z.ZodTypeAny, {
1782
+ code: string;
1783
+ message: string;
1784
+ severity: "error" | "warning" | "info";
1785
+ ref?: {
1786
+ id: string;
1787
+ model: string;
1788
+ store: "git" | "url" | "postgresql" | "treedx";
1789
+ path?: string | undefined;
1790
+ repository?: string | undefined;
1791
+ commit?: string | undefined;
1792
+ digest?: string | undefined;
1793
+ anchor?: string | undefined;
1794
+ url?: string | undefined;
1795
+ revision?: number | undefined;
1796
+ startLine?: number | undefined;
1797
+ endLine?: number | undefined;
1798
+ } | undefined;
1799
+ }, {
1800
+ code: string;
1801
+ message: string;
1802
+ severity: "error" | "warning" | "info";
1803
+ ref?: {
1804
+ id: string;
1805
+ model: string;
1806
+ store: "git" | "url" | "postgresql" | "treedx";
1807
+ path?: string | undefined;
1808
+ repository?: string | undefined;
1809
+ commit?: string | undefined;
1810
+ digest?: string | undefined;
1811
+ anchor?: string | undefined;
1812
+ url?: string | undefined;
1813
+ revision?: number | undefined;
1814
+ startLine?: number | undefined;
1815
+ endLine?: number | undefined;
1816
+ } | undefined;
1817
+ }>;
1818
+ export declare const assignmentTimingAwarenessReceiptSchema: z.ZodObject<{
1819
+ schemaVersion: z.ZodLiteral<"treeseed.assignment-timing-awareness/v1">;
1820
+ requiredChecks: z.ZodLiteral<2>;
1821
+ completedChecks: z.ZodNumber;
1822
+ firstTool: z.ZodLiteral<"treedx:treeseed_time_status">;
1823
+ firstToolSucceeded: z.ZodLiteral<true>;
1824
+ lastTool: z.ZodLiteral<"treedx:treeseed_time_status">;
1825
+ lastToolSucceeded: z.ZodLiteral<true>;
1826
+ firstToolCompliant: z.ZodLiteral<true>;
1827
+ finalToolCompliant: z.ZodLiteral<true>;
1828
+ }, "strict", z.ZodTypeAny, {
1829
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
1830
+ requiredChecks: 2;
1831
+ completedChecks: number;
1832
+ firstTool: "treedx:treeseed_time_status";
1833
+ firstToolSucceeded: true;
1834
+ lastTool: "treedx:treeseed_time_status";
1835
+ lastToolSucceeded: true;
1836
+ firstToolCompliant: true;
1837
+ finalToolCompliant: true;
1838
+ }, {
1839
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
1840
+ requiredChecks: 2;
1841
+ completedChecks: number;
1842
+ firstTool: "treedx:treeseed_time_status";
1843
+ firstToolSucceeded: true;
1844
+ lastTool: "treedx:treeseed_time_status";
1845
+ lastToolSucceeded: true;
1846
+ firstToolCompliant: true;
1847
+ finalToolCompliant: true;
1848
+ }>;
1849
+ export declare const assignmentResultSchema: z.ZodObject<{
1850
+ schemaVersion: z.ZodLiteral<"treeseed.assignment-result/v1">;
1851
+ id: z.ZodString;
1852
+ assignmentId: z.ZodString;
1853
+ status: z.ZodEnum<["completed", "blocked", "failed"]>;
1854
+ summary: z.ZodString;
1855
+ references: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1856
+ kind: z.ZodLiteral<"git">;
1857
+ repository: z.ZodString;
1858
+ commit: z.ZodString;
1859
+ branch: z.ZodOptional<z.ZodString>;
1860
+ path: z.ZodOptional<z.ZodString>;
1861
+ }, "strict", z.ZodTypeAny, {
1862
+ kind: "git";
1863
+ repository: string;
1864
+ commit: string;
1865
+ path?: string | undefined;
1866
+ branch?: string | undefined;
1867
+ }, {
1868
+ kind: "git";
1869
+ repository: string;
1870
+ commit: string;
1871
+ path?: string | undefined;
1872
+ branch?: string | undefined;
1873
+ }>, z.ZodObject<{
1874
+ kind: z.ZodLiteral<"treedx">;
1875
+ projectId: z.ZodString;
1876
+ repository: z.ZodString;
1877
+ commit: z.ZodString;
1878
+ path: z.ZodString;
1879
+ workspaceId: z.ZodOptional<z.ZodString>;
1880
+ }, "strict", z.ZodTypeAny, {
1881
+ path: string;
1882
+ kind: "treedx";
1883
+ repository: string;
1884
+ commit: string;
1885
+ projectId: string;
1886
+ workspaceId?: string | undefined;
1887
+ }, {
1888
+ path: string;
1889
+ kind: "treedx";
1890
+ repository: string;
1891
+ commit: string;
1892
+ projectId: string;
1893
+ workspaceId?: string | undefined;
1894
+ }>, z.ZodObject<{
1895
+ kind: z.ZodLiteral<"url">;
1896
+ url: z.ZodString;
1897
+ digest: z.ZodOptional<z.ZodString>;
1898
+ }, "strict", z.ZodTypeAny, {
1899
+ kind: "url";
1900
+ url: string;
1901
+ digest?: string | undefined;
1902
+ }, {
1903
+ kind: "url";
1904
+ url: string;
1905
+ digest?: string | undefined;
1906
+ }>]>, "many">;
1907
+ verification: z.ZodArray<z.ZodObject<{
1908
+ command: z.ZodString;
1909
+ status: z.ZodEnum<["passed", "failed", "skipped"]>;
1910
+ exitCode: z.ZodNumber;
1911
+ outputDigest: z.ZodString;
1912
+ durationSeconds: z.ZodOptional<z.ZodNumber>;
1913
+ }, "strict", z.ZodTypeAny, {
1914
+ status: "passed" | "failed" | "skipped";
1915
+ command: string;
1916
+ exitCode: number;
1917
+ outputDigest: string;
1918
+ durationSeconds?: number | undefined;
1919
+ }, {
1920
+ status: "passed" | "failed" | "skipped";
1921
+ command: string;
1922
+ exitCode: number;
1923
+ outputDigest: string;
1924
+ durationSeconds?: number | undefined;
1925
+ }>, "many">;
1926
+ usage: z.ZodObject<{
1927
+ elapsedSeconds: z.ZodNumber;
1928
+ modelInputTokens: z.ZodOptional<z.ZodNumber>;
1929
+ modelOutputTokens: z.ZodOptional<z.ZodNumber>;
1930
+ native: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1931
+ }, "strict", z.ZodTypeAny, {
1932
+ elapsedSeconds: number;
1933
+ native?: Record<string, number> | undefined;
1934
+ modelInputTokens?: number | undefined;
1935
+ modelOutputTokens?: number | undefined;
1936
+ }, {
1937
+ elapsedSeconds: number;
1938
+ native?: Record<string, number> | undefined;
1939
+ modelInputTokens?: number | undefined;
1940
+ modelOutputTokens?: number | undefined;
1941
+ }>;
1942
+ diagnostics: z.ZodArray<z.ZodObject<{
1943
+ code: z.ZodString;
1944
+ severity: z.ZodEnum<["info", "warning", "error"]>;
1945
+ message: z.ZodString;
1946
+ ref: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1947
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
1948
+ model: z.ZodString;
1949
+ id: z.ZodString;
1950
+ revision: z.ZodOptional<z.ZodNumber>;
1951
+ digest: z.ZodOptional<z.ZodString>;
1952
+ repository: z.ZodOptional<z.ZodString>;
1953
+ commit: z.ZodOptional<z.ZodString>;
1954
+ path: z.ZodOptional<z.ZodString>;
1955
+ anchor: z.ZodOptional<z.ZodString>;
1956
+ startLine: z.ZodOptional<z.ZodNumber>;
1957
+ endLine: z.ZodOptional<z.ZodNumber>;
1958
+ url: z.ZodOptional<z.ZodString>;
1959
+ }, "strict", z.ZodTypeAny, {
1960
+ id: string;
1961
+ model: string;
1962
+ store: "git" | "url" | "postgresql" | "treedx";
1963
+ path?: string | undefined;
1964
+ repository?: string | undefined;
1965
+ commit?: string | undefined;
1966
+ digest?: string | undefined;
1967
+ anchor?: string | undefined;
1968
+ url?: string | undefined;
1969
+ revision?: number | undefined;
1970
+ startLine?: number | undefined;
1971
+ endLine?: number | undefined;
1972
+ }, {
1973
+ id: string;
1974
+ model: string;
1975
+ store: "git" | "url" | "postgresql" | "treedx";
1976
+ path?: string | undefined;
1977
+ repository?: string | undefined;
1978
+ commit?: string | undefined;
1979
+ digest?: string | undefined;
1980
+ anchor?: string | undefined;
1981
+ url?: string | undefined;
1982
+ revision?: number | undefined;
1983
+ startLine?: number | undefined;
1984
+ endLine?: number | undefined;
1985
+ }>, {
1986
+ id: string;
1987
+ model: string;
1988
+ store: "git" | "url" | "postgresql" | "treedx";
1989
+ path?: string | undefined;
1990
+ repository?: string | undefined;
1991
+ commit?: string | undefined;
1992
+ digest?: string | undefined;
1993
+ anchor?: string | undefined;
1994
+ url?: string | undefined;
1995
+ revision?: number | undefined;
1996
+ startLine?: number | undefined;
1997
+ endLine?: number | undefined;
1998
+ }, {
1999
+ id: string;
2000
+ model: string;
2001
+ store: "git" | "url" | "postgresql" | "treedx";
2002
+ path?: string | undefined;
2003
+ repository?: string | undefined;
2004
+ commit?: string | undefined;
2005
+ digest?: string | undefined;
2006
+ anchor?: string | undefined;
2007
+ url?: string | undefined;
2008
+ revision?: number | undefined;
2009
+ startLine?: number | undefined;
2010
+ endLine?: number | undefined;
2011
+ }>>;
2012
+ }, "strict", z.ZodTypeAny, {
2013
+ code: string;
2014
+ message: string;
2015
+ severity: "error" | "warning" | "info";
2016
+ ref?: {
2017
+ id: string;
2018
+ model: string;
2019
+ store: "git" | "url" | "postgresql" | "treedx";
2020
+ path?: string | undefined;
2021
+ repository?: string | undefined;
2022
+ commit?: string | undefined;
2023
+ digest?: string | undefined;
2024
+ anchor?: string | undefined;
2025
+ url?: string | undefined;
2026
+ revision?: number | undefined;
2027
+ startLine?: number | undefined;
2028
+ endLine?: number | undefined;
2029
+ } | undefined;
2030
+ }, {
2031
+ code: string;
2032
+ message: string;
2033
+ severity: "error" | "warning" | "info";
2034
+ ref?: {
2035
+ id: string;
2036
+ model: string;
2037
+ store: "git" | "url" | "postgresql" | "treedx";
2038
+ path?: string | undefined;
2039
+ repository?: string | undefined;
2040
+ commit?: string | undefined;
2041
+ digest?: string | undefined;
2042
+ anchor?: string | undefined;
2043
+ url?: string | undefined;
2044
+ revision?: number | undefined;
2045
+ startLine?: number | undefined;
2046
+ endLine?: number | undefined;
2047
+ } | undefined;
2048
+ }>, "many">;
2049
+ timingAwareness: z.ZodOptional<z.ZodObject<{
2050
+ schemaVersion: z.ZodLiteral<"treeseed.assignment-timing-awareness/v1">;
2051
+ requiredChecks: z.ZodLiteral<2>;
2052
+ completedChecks: z.ZodNumber;
2053
+ firstTool: z.ZodLiteral<"treedx:treeseed_time_status">;
2054
+ firstToolSucceeded: z.ZodLiteral<true>;
2055
+ lastTool: z.ZodLiteral<"treedx:treeseed_time_status">;
2056
+ lastToolSucceeded: z.ZodLiteral<true>;
2057
+ firstToolCompliant: z.ZodLiteral<true>;
2058
+ finalToolCompliant: z.ZodLiteral<true>;
2059
+ }, "strict", z.ZodTypeAny, {
2060
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
2061
+ requiredChecks: 2;
2062
+ completedChecks: number;
2063
+ firstTool: "treedx:treeseed_time_status";
2064
+ firstToolSucceeded: true;
2065
+ lastTool: "treedx:treeseed_time_status";
2066
+ lastToolSucceeded: true;
2067
+ firstToolCompliant: true;
2068
+ finalToolCompliant: true;
2069
+ }, {
2070
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
2071
+ requiredChecks: 2;
2072
+ completedChecks: number;
2073
+ firstTool: "treedx:treeseed_time_status";
2074
+ firstToolSucceeded: true;
2075
+ lastTool: "treedx:treeseed_time_status";
2076
+ lastToolSucceeded: true;
2077
+ firstToolCompliant: true;
2078
+ finalToolCompliant: true;
2079
+ }>>;
2080
+ completedAt: z.ZodString;
2081
+ }, "strict", z.ZodTypeAny, {
2082
+ status: "blocked" | "failed" | "completed";
2083
+ id: string;
2084
+ schemaVersion: "treeseed.assignment-result/v1";
2085
+ assignmentId: string;
2086
+ completedAt: string;
2087
+ verification: {
2088
+ status: "passed" | "failed" | "skipped";
2089
+ command: string;
2090
+ exitCode: number;
2091
+ outputDigest: string;
2092
+ durationSeconds?: number | undefined;
2093
+ }[];
2094
+ summary: string;
2095
+ usage: {
2096
+ elapsedSeconds: number;
2097
+ native?: Record<string, number> | undefined;
2098
+ modelInputTokens?: number | undefined;
2099
+ modelOutputTokens?: number | undefined;
2100
+ };
2101
+ diagnostics: {
2102
+ code: string;
2103
+ message: string;
2104
+ severity: "error" | "warning" | "info";
2105
+ ref?: {
2106
+ id: string;
2107
+ model: string;
2108
+ store: "git" | "url" | "postgresql" | "treedx";
2109
+ path?: string | undefined;
2110
+ repository?: string | undefined;
2111
+ commit?: string | undefined;
2112
+ digest?: string | undefined;
2113
+ anchor?: string | undefined;
2114
+ url?: string | undefined;
2115
+ revision?: number | undefined;
2116
+ startLine?: number | undefined;
2117
+ endLine?: number | undefined;
2118
+ } | undefined;
2119
+ }[];
2120
+ references: ({
2121
+ kind: "git";
2122
+ repository: string;
2123
+ commit: string;
2124
+ path?: string | undefined;
2125
+ branch?: string | undefined;
2126
+ } | {
2127
+ path: string;
2128
+ kind: "treedx";
2129
+ repository: string;
2130
+ commit: string;
2131
+ projectId: string;
2132
+ workspaceId?: string | undefined;
2133
+ } | {
2134
+ kind: "url";
2135
+ url: string;
2136
+ digest?: string | undefined;
2137
+ })[];
2138
+ timingAwareness?: {
2139
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
2140
+ requiredChecks: 2;
2141
+ completedChecks: number;
2142
+ firstTool: "treedx:treeseed_time_status";
2143
+ firstToolSucceeded: true;
2144
+ lastTool: "treedx:treeseed_time_status";
2145
+ lastToolSucceeded: true;
2146
+ firstToolCompliant: true;
2147
+ finalToolCompliant: true;
2148
+ } | undefined;
2149
+ }, {
2150
+ status: "blocked" | "failed" | "completed";
2151
+ id: string;
2152
+ schemaVersion: "treeseed.assignment-result/v1";
2153
+ assignmentId: string;
2154
+ completedAt: string;
2155
+ verification: {
2156
+ status: "passed" | "failed" | "skipped";
2157
+ command: string;
2158
+ exitCode: number;
2159
+ outputDigest: string;
2160
+ durationSeconds?: number | undefined;
2161
+ }[];
2162
+ summary: string;
2163
+ usage: {
2164
+ elapsedSeconds: number;
2165
+ native?: Record<string, number> | undefined;
2166
+ modelInputTokens?: number | undefined;
2167
+ modelOutputTokens?: number | undefined;
2168
+ };
2169
+ diagnostics: {
2170
+ code: string;
2171
+ message: string;
2172
+ severity: "error" | "warning" | "info";
2173
+ ref?: {
2174
+ id: string;
2175
+ model: string;
2176
+ store: "git" | "url" | "postgresql" | "treedx";
2177
+ path?: string | undefined;
2178
+ repository?: string | undefined;
2179
+ commit?: string | undefined;
2180
+ digest?: string | undefined;
2181
+ anchor?: string | undefined;
2182
+ url?: string | undefined;
2183
+ revision?: number | undefined;
2184
+ startLine?: number | undefined;
2185
+ endLine?: number | undefined;
2186
+ } | undefined;
2187
+ }[];
2188
+ references: ({
2189
+ kind: "git";
2190
+ repository: string;
2191
+ commit: string;
2192
+ path?: string | undefined;
2193
+ branch?: string | undefined;
2194
+ } | {
2195
+ path: string;
2196
+ kind: "treedx";
2197
+ repository: string;
2198
+ commit: string;
2199
+ projectId: string;
2200
+ workspaceId?: string | undefined;
2201
+ } | {
2202
+ kind: "url";
2203
+ url: string;
2204
+ digest?: string | undefined;
2205
+ })[];
2206
+ timingAwareness?: {
2207
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
2208
+ requiredChecks: 2;
2209
+ completedChecks: number;
2210
+ firstTool: "treedx:treeseed_time_status";
2211
+ firstToolSucceeded: true;
2212
+ lastTool: "treedx:treeseed_time_status";
2213
+ lastToolSucceeded: true;
2214
+ firstToolCompliant: true;
2215
+ finalToolCompliant: true;
2216
+ } | undefined;
2217
+ }>;
2218
+ export declare const authorizedContextItemSchema: z.ZodObject<{
2219
+ ref: z.ZodEffects<z.ZodObject<{
2220
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
2221
+ model: z.ZodString;
2222
+ id: z.ZodString;
2223
+ revision: z.ZodOptional<z.ZodNumber>;
2224
+ digest: z.ZodOptional<z.ZodString>;
2225
+ repository: z.ZodOptional<z.ZodString>;
2226
+ commit: z.ZodOptional<z.ZodString>;
2227
+ path: z.ZodOptional<z.ZodString>;
2228
+ anchor: z.ZodOptional<z.ZodString>;
2229
+ startLine: z.ZodOptional<z.ZodNumber>;
2230
+ endLine: z.ZodOptional<z.ZodNumber>;
2231
+ url: z.ZodOptional<z.ZodString>;
2232
+ }, "strict", z.ZodTypeAny, {
2233
+ id: string;
2234
+ model: string;
2235
+ store: "git" | "url" | "postgresql" | "treedx";
2236
+ path?: string | undefined;
2237
+ repository?: string | undefined;
2238
+ commit?: string | undefined;
2239
+ digest?: string | undefined;
2240
+ anchor?: string | undefined;
2241
+ url?: string | undefined;
2242
+ revision?: number | undefined;
2243
+ startLine?: number | undefined;
2244
+ endLine?: number | undefined;
2245
+ }, {
2246
+ id: string;
2247
+ model: string;
2248
+ store: "git" | "url" | "postgresql" | "treedx";
2249
+ path?: string | undefined;
2250
+ repository?: string | undefined;
2251
+ commit?: string | undefined;
2252
+ digest?: string | undefined;
2253
+ anchor?: string | undefined;
2254
+ url?: string | undefined;
2255
+ revision?: number | undefined;
2256
+ startLine?: number | undefined;
2257
+ endLine?: number | undefined;
2258
+ }>, {
2259
+ id: string;
2260
+ model: string;
2261
+ store: "git" | "url" | "postgresql" | "treedx";
2262
+ path?: string | undefined;
2263
+ repository?: string | undefined;
2264
+ commit?: string | undefined;
2265
+ digest?: string | undefined;
2266
+ anchor?: string | undefined;
2267
+ url?: string | undefined;
2268
+ revision?: number | undefined;
2269
+ startLine?: number | undefined;
2270
+ endLine?: number | undefined;
2271
+ }, {
2272
+ id: string;
2273
+ model: string;
2274
+ store: "git" | "url" | "postgresql" | "treedx";
2275
+ path?: string | undefined;
2276
+ repository?: string | undefined;
2277
+ commit?: string | undefined;
2278
+ digest?: string | undefined;
2279
+ anchor?: string | undefined;
2280
+ url?: string | undefined;
2281
+ revision?: number | undefined;
2282
+ startLine?: number | undefined;
2283
+ endLine?: number | undefined;
2284
+ }>;
2285
+ mediaType: z.ZodString;
2286
+ digest: z.ZodString;
2287
+ value: z.ZodAny;
2288
+ }, "strict", z.ZodTypeAny, {
2289
+ digest: string;
2290
+ mediaType: string;
2291
+ ref: {
2292
+ id: string;
2293
+ model: string;
2294
+ store: "git" | "url" | "postgresql" | "treedx";
2295
+ path?: string | undefined;
2296
+ repository?: string | undefined;
2297
+ commit?: string | undefined;
2298
+ digest?: string | undefined;
2299
+ anchor?: string | undefined;
2300
+ url?: string | undefined;
2301
+ revision?: number | undefined;
2302
+ startLine?: number | undefined;
2303
+ endLine?: number | undefined;
2304
+ };
2305
+ value?: any;
2306
+ }, {
2307
+ digest: string;
2308
+ mediaType: string;
2309
+ ref: {
2310
+ id: string;
2311
+ model: string;
2312
+ store: "git" | "url" | "postgresql" | "treedx";
2313
+ path?: string | undefined;
2314
+ repository?: string | undefined;
2315
+ commit?: string | undefined;
2316
+ digest?: string | undefined;
2317
+ anchor?: string | undefined;
2318
+ url?: string | undefined;
2319
+ revision?: number | undefined;
2320
+ startLine?: number | undefined;
2321
+ endLine?: number | undefined;
2322
+ };
2323
+ value?: any;
2324
+ }>;
2325
+ export declare const assignmentContextSchema: z.ZodObject<{
2326
+ assignment: z.ZodObject<{
2327
+ schemaVersion: z.ZodLiteral<"treeseed.assignment-attempt/v1">;
2328
+ id: z.ZodString;
2329
+ idempotencyKey: z.ZodString;
2330
+ teamId: z.ZodString;
2331
+ projectId: z.ZodString;
2332
+ workdayId: z.ZodString;
2333
+ nodeId: z.ZodString;
2334
+ workItemId: z.ZodOptional<z.ZodString>;
2335
+ nodeRevision: z.ZodNumber;
2336
+ graphRevision: z.ZodNumber;
2337
+ sourceRef: z.ZodEffects<z.ZodObject<{
2338
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
2339
+ model: z.ZodString;
2340
+ id: z.ZodString;
2341
+ revision: z.ZodOptional<z.ZodNumber>;
2342
+ digest: z.ZodOptional<z.ZodString>;
2343
+ repository: z.ZodOptional<z.ZodString>;
2344
+ commit: z.ZodOptional<z.ZodString>;
2345
+ path: z.ZodOptional<z.ZodString>;
2346
+ anchor: z.ZodOptional<z.ZodString>;
2347
+ startLine: z.ZodOptional<z.ZodNumber>;
2348
+ endLine: z.ZodOptional<z.ZodNumber>;
2349
+ url: z.ZodOptional<z.ZodString>;
2350
+ }, "strict", z.ZodTypeAny, {
2351
+ id: string;
2352
+ model: string;
2353
+ store: "git" | "url" | "postgresql" | "treedx";
2354
+ path?: string | undefined;
2355
+ repository?: string | undefined;
2356
+ commit?: string | undefined;
2357
+ digest?: string | undefined;
2358
+ anchor?: string | undefined;
2359
+ url?: string | undefined;
2360
+ revision?: number | undefined;
2361
+ startLine?: number | undefined;
2362
+ endLine?: number | undefined;
2363
+ }, {
2364
+ id: string;
2365
+ model: string;
2366
+ store: "git" | "url" | "postgresql" | "treedx";
2367
+ path?: string | undefined;
2368
+ repository?: string | undefined;
2369
+ commit?: string | undefined;
2370
+ digest?: string | undefined;
2371
+ anchor?: string | undefined;
2372
+ url?: string | undefined;
2373
+ revision?: number | undefined;
2374
+ startLine?: number | undefined;
2375
+ endLine?: number | undefined;
2376
+ }>, {
2377
+ id: string;
2378
+ model: string;
2379
+ store: "git" | "url" | "postgresql" | "treedx";
2380
+ path?: string | undefined;
2381
+ repository?: string | undefined;
2382
+ commit?: string | undefined;
2383
+ digest?: string | undefined;
2384
+ anchor?: string | undefined;
2385
+ url?: string | undefined;
2386
+ revision?: number | undefined;
2387
+ startLine?: number | undefined;
2388
+ endLine?: number | undefined;
2389
+ }, {
2390
+ id: string;
2391
+ model: string;
2392
+ store: "git" | "url" | "postgresql" | "treedx";
2393
+ path?: string | undefined;
2394
+ repository?: string | undefined;
2395
+ commit?: string | undefined;
2396
+ digest?: string | undefined;
2397
+ anchor?: string | undefined;
2398
+ url?: string | undefined;
2399
+ revision?: number | undefined;
2400
+ startLine?: number | undefined;
2401
+ endLine?: number | undefined;
2402
+ }>;
2403
+ authorityRefs: z.ZodArray<z.ZodEffects<z.ZodObject<{
2404
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
2405
+ model: z.ZodString;
2406
+ id: z.ZodString;
2407
+ revision: z.ZodOptional<z.ZodNumber>;
2408
+ digest: z.ZodOptional<z.ZodString>;
2409
+ repository: z.ZodOptional<z.ZodString>;
2410
+ commit: z.ZodOptional<z.ZodString>;
2411
+ path: z.ZodOptional<z.ZodString>;
2412
+ anchor: z.ZodOptional<z.ZodString>;
2413
+ startLine: z.ZodOptional<z.ZodNumber>;
2414
+ endLine: z.ZodOptional<z.ZodNumber>;
2415
+ url: z.ZodOptional<z.ZodString>;
2416
+ }, "strict", z.ZodTypeAny, {
2417
+ id: string;
2418
+ model: string;
2419
+ store: "git" | "url" | "postgresql" | "treedx";
2420
+ path?: string | undefined;
2421
+ repository?: string | undefined;
2422
+ commit?: string | undefined;
2423
+ digest?: string | undefined;
2424
+ anchor?: string | undefined;
2425
+ url?: string | undefined;
2426
+ revision?: number | undefined;
2427
+ startLine?: number | undefined;
2428
+ endLine?: number | undefined;
2429
+ }, {
2430
+ id: string;
2431
+ model: string;
2432
+ store: "git" | "url" | "postgresql" | "treedx";
2433
+ path?: string | undefined;
2434
+ repository?: string | undefined;
2435
+ commit?: string | undefined;
2436
+ digest?: string | undefined;
2437
+ anchor?: string | undefined;
2438
+ url?: string | undefined;
2439
+ revision?: number | undefined;
2440
+ startLine?: number | undefined;
2441
+ endLine?: number | undefined;
2442
+ }>, {
2443
+ id: string;
2444
+ model: string;
2445
+ store: "git" | "url" | "postgresql" | "treedx";
2446
+ path?: string | undefined;
2447
+ repository?: string | undefined;
2448
+ commit?: string | undefined;
2449
+ digest?: string | undefined;
2450
+ anchor?: string | undefined;
2451
+ url?: string | undefined;
2452
+ revision?: number | undefined;
2453
+ startLine?: number | undefined;
2454
+ endLine?: number | undefined;
2455
+ }, {
2456
+ id: string;
2457
+ model: string;
2458
+ store: "git" | "url" | "postgresql" | "treedx";
2459
+ path?: string | undefined;
2460
+ repository?: string | undefined;
2461
+ commit?: string | undefined;
2462
+ digest?: string | undefined;
2463
+ anchor?: string | undefined;
2464
+ url?: string | undefined;
2465
+ revision?: number | undefined;
2466
+ startLine?: number | undefined;
2467
+ endLine?: number | undefined;
2468
+ }>, "many">;
2469
+ effectiveProfile: z.ZodObject<Omit<Omit<{
2470
+ handler: z.ZodString;
2471
+ dependsOn: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2472
+ agents: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
2473
+ events: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodLiteral<"workday-closing">, "many">, "workday-closing"[], "workday-closing"[]>>;
2474
+ }, "strict", z.ZodTypeAny, {
2475
+ agents?: string[] | undefined;
2476
+ events?: "workday-closing"[] | undefined;
2477
+ }, {
2478
+ agents?: string[] | undefined;
2479
+ events?: "workday-closing"[] | undefined;
2480
+ }>, {
2481
+ agents?: string[] | undefined;
2482
+ events?: "workday-closing"[] | undefined;
2483
+ }, {
2484
+ agents?: string[] | undefined;
2485
+ events?: "workday-closing"[] | undefined;
2486
+ }>>;
2487
+ permissions: z.ZodObject<{
2488
+ content: z.ZodObject<{
2489
+ 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")[]>;
2490
+ 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")[]>;
2491
+ }, "strict", z.ZodTypeAny, {
2492
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2493
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2494
+ }, {
2495
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2496
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2497
+ }>;
2498
+ 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")[]>;
2499
+ }, "strict", z.ZodTypeAny, {
2500
+ content: {
2501
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2502
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2503
+ };
2504
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
2505
+ }, {
2506
+ content: {
2507
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2508
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2509
+ };
2510
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
2511
+ }>;
2512
+ prompt: z.ZodObject<{
2513
+ system: z.ZodString;
2514
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2515
+ }, "strict", z.ZodTypeAny, {
2516
+ system: string;
2517
+ instructions?: string[] | undefined;
2518
+ }, {
2519
+ system: string;
2520
+ instructions?: string[] | undefined;
2521
+ }>;
2522
+ additionalContext: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
2523
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2524
+ }, "dependsOn"> & {
2525
+ profileRef: z.ZodEffects<z.ZodObject<{
2526
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
2527
+ model: z.ZodString;
2528
+ id: z.ZodString;
2529
+ revision: z.ZodOptional<z.ZodNumber>;
2530
+ digest: z.ZodOptional<z.ZodString>;
2531
+ repository: z.ZodOptional<z.ZodString>;
2532
+ commit: z.ZodOptional<z.ZodString>;
2533
+ path: z.ZodOptional<z.ZodString>;
2534
+ anchor: z.ZodOptional<z.ZodString>;
2535
+ startLine: z.ZodOptional<z.ZodNumber>;
2536
+ endLine: z.ZodOptional<z.ZodNumber>;
2537
+ url: z.ZodOptional<z.ZodString>;
2538
+ }, "strict", z.ZodTypeAny, {
2539
+ id: string;
2540
+ model: string;
2541
+ store: "git" | "url" | "postgresql" | "treedx";
2542
+ path?: string | undefined;
2543
+ repository?: string | undefined;
2544
+ commit?: string | undefined;
2545
+ digest?: string | undefined;
2546
+ anchor?: string | undefined;
2547
+ url?: string | undefined;
2548
+ revision?: number | undefined;
2549
+ startLine?: number | undefined;
2550
+ endLine?: number | undefined;
2551
+ }, {
2552
+ id: string;
2553
+ model: string;
2554
+ store: "git" | "url" | "postgresql" | "treedx";
2555
+ path?: string | undefined;
2556
+ repository?: string | undefined;
2557
+ commit?: string | undefined;
2558
+ digest?: string | undefined;
2559
+ anchor?: string | undefined;
2560
+ url?: string | undefined;
2561
+ revision?: number | undefined;
2562
+ startLine?: number | undefined;
2563
+ endLine?: number | undefined;
2564
+ }>, {
2565
+ id: string;
2566
+ model: string;
2567
+ store: "git" | "url" | "postgresql" | "treedx";
2568
+ path?: string | undefined;
2569
+ repository?: string | undefined;
2570
+ commit?: string | undefined;
2571
+ digest?: string | undefined;
2572
+ anchor?: string | undefined;
2573
+ url?: string | undefined;
2574
+ revision?: number | undefined;
2575
+ startLine?: number | undefined;
2576
+ endLine?: number | undefined;
2577
+ }, {
2578
+ id: string;
2579
+ model: string;
2580
+ store: "git" | "url" | "postgresql" | "treedx";
2581
+ path?: string | undefined;
2582
+ repository?: string | undefined;
2583
+ commit?: string | undefined;
2584
+ digest?: string | undefined;
2585
+ anchor?: string | undefined;
2586
+ url?: string | undefined;
2587
+ revision?: number | undefined;
2588
+ startLine?: number | undefined;
2589
+ endLine?: number | undefined;
2590
+ }>;
2591
+ activity: z.ZodEnum<["planning", "estimating", "acting", "reviewing", "reporting", "chat"]>;
2592
+ handlerOrigin: z.ZodEnum<["agent-package", "project-runtime"]>;
2593
+ permissionCeiling: z.ZodObject<{
2594
+ content: z.ZodObject<{
2595
+ 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")[]>;
2596
+ 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")[]>;
2597
+ }, "strict", z.ZodTypeAny, {
2598
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2599
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2600
+ }, {
2601
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2602
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2603
+ }>;
2604
+ 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")[]>;
2605
+ }, "strict", z.ZodTypeAny, {
2606
+ content: {
2607
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2608
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2609
+ };
2610
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
2611
+ }, {
2612
+ content: {
2613
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2614
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2615
+ };
2616
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
2617
+ }>;
2618
+ }, "permissions">, "strict", z.ZodTypeAny, {
2619
+ prompt: {
2620
+ system: string;
2621
+ instructions?: string[] | undefined;
2622
+ };
2623
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
2624
+ handler: string;
2625
+ profileRef: {
2626
+ id: string;
2627
+ model: string;
2628
+ store: "git" | "url" | "postgresql" | "treedx";
2629
+ path?: string | undefined;
2630
+ repository?: string | undefined;
2631
+ commit?: string | undefined;
2632
+ digest?: string | undefined;
2633
+ anchor?: string | undefined;
2634
+ url?: string | undefined;
2635
+ revision?: number | undefined;
2636
+ startLine?: number | undefined;
2637
+ endLine?: number | undefined;
2638
+ };
2639
+ handlerOrigin: "agent-package" | "project-runtime";
2640
+ permissionCeiling: {
2641
+ content: {
2642
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2643
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2644
+ };
2645
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
2646
+ };
2647
+ parameters?: Record<string, unknown> | undefined;
2648
+ additionalContext?: string[] | undefined;
2649
+ }, {
2650
+ prompt: {
2651
+ system: string;
2652
+ instructions?: string[] | undefined;
2653
+ };
2654
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
2655
+ handler: string;
2656
+ profileRef: {
2657
+ id: string;
2658
+ model: string;
2659
+ store: "git" | "url" | "postgresql" | "treedx";
2660
+ path?: string | undefined;
2661
+ repository?: string | undefined;
2662
+ commit?: string | undefined;
2663
+ digest?: string | undefined;
2664
+ anchor?: string | undefined;
2665
+ url?: string | undefined;
2666
+ revision?: number | undefined;
2667
+ startLine?: number | undefined;
2668
+ endLine?: number | undefined;
2669
+ };
2670
+ handlerOrigin: "agent-package" | "project-runtime";
2671
+ permissionCeiling: {
2672
+ content: {
2673
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2674
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
2675
+ };
2676
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
2677
+ };
2678
+ parameters?: Record<string, unknown> | undefined;
2679
+ additionalContext?: string[] | undefined;
2680
+ }>;
2681
+ requiredCapabilities: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2682
+ grant: z.ZodObject<{
2683
+ contentRead: z.ZodArray<z.ZodEffects<z.ZodObject<{
2684
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
2685
+ model: z.ZodString;
2686
+ id: z.ZodString;
2687
+ revision: z.ZodOptional<z.ZodNumber>;
2688
+ digest: z.ZodOptional<z.ZodString>;
2689
+ repository: z.ZodOptional<z.ZodString>;
2690
+ commit: z.ZodOptional<z.ZodString>;
2691
+ path: z.ZodOptional<z.ZodString>;
2692
+ anchor: z.ZodOptional<z.ZodString>;
2693
+ startLine: z.ZodOptional<z.ZodNumber>;
2694
+ endLine: z.ZodOptional<z.ZodNumber>;
2695
+ url: z.ZodOptional<z.ZodString>;
2696
+ }, "strict", z.ZodTypeAny, {
2697
+ id: string;
2698
+ model: string;
2699
+ store: "git" | "url" | "postgresql" | "treedx";
2700
+ path?: string | undefined;
2701
+ repository?: string | undefined;
2702
+ commit?: string | undefined;
2703
+ digest?: string | undefined;
2704
+ anchor?: string | undefined;
2705
+ url?: string | undefined;
2706
+ revision?: number | undefined;
2707
+ startLine?: number | undefined;
2708
+ endLine?: number | undefined;
2709
+ }, {
2710
+ id: string;
2711
+ model: string;
2712
+ store: "git" | "url" | "postgresql" | "treedx";
2713
+ path?: string | undefined;
2714
+ repository?: string | undefined;
2715
+ commit?: string | undefined;
2716
+ digest?: string | undefined;
2717
+ anchor?: string | undefined;
2718
+ url?: string | undefined;
2719
+ revision?: number | undefined;
2720
+ startLine?: number | undefined;
2721
+ endLine?: number | undefined;
2722
+ }>, {
2723
+ id: string;
2724
+ model: string;
2725
+ store: "git" | "url" | "postgresql" | "treedx";
2726
+ path?: string | undefined;
2727
+ repository?: string | undefined;
2728
+ commit?: string | undefined;
2729
+ digest?: string | undefined;
2730
+ anchor?: string | undefined;
2731
+ url?: string | undefined;
2732
+ revision?: number | undefined;
2733
+ startLine?: number | undefined;
2734
+ endLine?: number | undefined;
2735
+ }, {
2736
+ id: string;
2737
+ model: string;
2738
+ store: "git" | "url" | "postgresql" | "treedx";
2739
+ path?: string | undefined;
2740
+ repository?: string | undefined;
2741
+ commit?: string | undefined;
2742
+ digest?: string | undefined;
2743
+ anchor?: string | undefined;
2744
+ url?: string | undefined;
2745
+ revision?: number | undefined;
2746
+ startLine?: number | undefined;
2747
+ endLine?: number | undefined;
2748
+ }>, "many">;
2749
+ contentWrite: z.ZodArray<z.ZodEffects<z.ZodObject<{
2750
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
2751
+ model: z.ZodString;
2752
+ id: z.ZodString;
2753
+ revision: z.ZodOptional<z.ZodNumber>;
2754
+ digest: z.ZodOptional<z.ZodString>;
2755
+ repository: z.ZodOptional<z.ZodString>;
2756
+ commit: z.ZodOptional<z.ZodString>;
2757
+ path: z.ZodOptional<z.ZodString>;
2758
+ anchor: z.ZodOptional<z.ZodString>;
2759
+ startLine: z.ZodOptional<z.ZodNumber>;
2760
+ endLine: z.ZodOptional<z.ZodNumber>;
2761
+ url: z.ZodOptional<z.ZodString>;
2762
+ }, "strict", z.ZodTypeAny, {
2763
+ id: string;
2764
+ model: string;
2765
+ store: "git" | "url" | "postgresql" | "treedx";
2766
+ path?: string | undefined;
2767
+ repository?: string | undefined;
2768
+ commit?: string | undefined;
2769
+ digest?: string | undefined;
2770
+ anchor?: string | undefined;
2771
+ url?: string | undefined;
2772
+ revision?: number | undefined;
2773
+ startLine?: number | undefined;
2774
+ endLine?: number | undefined;
2775
+ }, {
2776
+ id: string;
2777
+ model: string;
2778
+ store: "git" | "url" | "postgresql" | "treedx";
2779
+ path?: string | undefined;
2780
+ repository?: string | undefined;
2781
+ commit?: string | undefined;
2782
+ digest?: string | undefined;
2783
+ anchor?: string | undefined;
2784
+ url?: string | undefined;
2785
+ revision?: number | undefined;
2786
+ startLine?: number | undefined;
2787
+ endLine?: number | undefined;
2788
+ }>, {
2789
+ id: string;
2790
+ model: string;
2791
+ store: "git" | "url" | "postgresql" | "treedx";
2792
+ path?: string | undefined;
2793
+ repository?: string | undefined;
2794
+ commit?: string | undefined;
2795
+ digest?: string | undefined;
2796
+ anchor?: string | undefined;
2797
+ url?: string | undefined;
2798
+ revision?: number | undefined;
2799
+ startLine?: number | undefined;
2800
+ endLine?: number | undefined;
2801
+ }, {
2802
+ id: string;
2803
+ model: string;
2804
+ store: "git" | "url" | "postgresql" | "treedx";
2805
+ path?: string | undefined;
2806
+ repository?: string | undefined;
2807
+ commit?: string | undefined;
2808
+ digest?: string | undefined;
2809
+ anchor?: string | undefined;
2810
+ url?: string | undefined;
2811
+ revision?: number | undefined;
2812
+ startLine?: number | undefined;
2813
+ endLine?: number | undefined;
2814
+ }>, "many">;
2815
+ sourceRead: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2816
+ sourceWrite: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2817
+ tools: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2818
+ }, "strict", z.ZodTypeAny, {
2819
+ tools: string[];
2820
+ contentRead: {
2821
+ id: string;
2822
+ model: string;
2823
+ store: "git" | "url" | "postgresql" | "treedx";
2824
+ path?: string | undefined;
2825
+ repository?: string | undefined;
2826
+ commit?: string | undefined;
2827
+ digest?: string | undefined;
2828
+ anchor?: string | undefined;
2829
+ url?: string | undefined;
2830
+ revision?: number | undefined;
2831
+ startLine?: number | undefined;
2832
+ endLine?: number | undefined;
2833
+ }[];
2834
+ contentWrite: {
2835
+ id: string;
2836
+ model: string;
2837
+ store: "git" | "url" | "postgresql" | "treedx";
2838
+ path?: string | undefined;
2839
+ repository?: string | undefined;
2840
+ commit?: string | undefined;
2841
+ digest?: string | undefined;
2842
+ anchor?: string | undefined;
2843
+ url?: string | undefined;
2844
+ revision?: number | undefined;
2845
+ startLine?: number | undefined;
2846
+ endLine?: number | undefined;
2847
+ }[];
2848
+ sourceRead: string[];
2849
+ sourceWrite: string[];
2850
+ }, {
2851
+ tools: string[];
2852
+ contentRead: {
2853
+ id: string;
2854
+ model: string;
2855
+ store: "git" | "url" | "postgresql" | "treedx";
2856
+ path?: string | undefined;
2857
+ repository?: string | undefined;
2858
+ commit?: string | undefined;
2859
+ digest?: string | undefined;
2860
+ anchor?: string | undefined;
2861
+ url?: string | undefined;
2862
+ revision?: number | undefined;
2863
+ startLine?: number | undefined;
2864
+ endLine?: number | undefined;
2865
+ }[];
2866
+ contentWrite: {
2867
+ id: string;
2868
+ model: string;
2869
+ store: "git" | "url" | "postgresql" | "treedx";
2870
+ path?: string | undefined;
2871
+ repository?: string | undefined;
2872
+ commit?: string | undefined;
2873
+ digest?: string | undefined;
2874
+ anchor?: string | undefined;
2875
+ url?: string | undefined;
2876
+ revision?: number | undefined;
2877
+ startLine?: number | undefined;
2878
+ endLine?: number | undefined;
2879
+ }[];
2880
+ sourceRead: string[];
2881
+ sourceWrite: string[];
2882
+ }>;
2883
+ provider: z.ZodObject<{
2884
+ providerId: z.ZodString;
2885
+ offerId: z.ZodString;
2886
+ executionProviderId: z.ZodString;
2887
+ modelConfigurationId: z.ZodString;
2888
+ executionCapabilityId: z.ZodString;
2889
+ offerRevision: z.ZodNumber;
2890
+ runtimeBuild: z.ZodString;
2891
+ }, "strict", z.ZodTypeAny, {
2892
+ providerId: string;
2893
+ executionProviderId: string;
2894
+ offerId: string;
2895
+ modelConfigurationId: string;
2896
+ executionCapabilityId: string;
2897
+ offerRevision: number;
2898
+ runtimeBuild: string;
2899
+ }, {
2900
+ providerId: string;
2901
+ executionProviderId: string;
2902
+ offerId: string;
2903
+ modelConfigurationId: string;
2904
+ executionCapabilityId: string;
2905
+ offerRevision: number;
2906
+ runtimeBuild: string;
2907
+ }>;
2908
+ contextRefs: z.ZodArray<z.ZodEffects<z.ZodObject<{
2909
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
2910
+ model: z.ZodString;
2911
+ id: z.ZodString;
2912
+ revision: z.ZodOptional<z.ZodNumber>;
2913
+ digest: z.ZodOptional<z.ZodString>;
2914
+ repository: z.ZodOptional<z.ZodString>;
2915
+ commit: z.ZodOptional<z.ZodString>;
2916
+ path: z.ZodOptional<z.ZodString>;
2917
+ anchor: z.ZodOptional<z.ZodString>;
2918
+ startLine: z.ZodOptional<z.ZodNumber>;
2919
+ endLine: z.ZodOptional<z.ZodNumber>;
2920
+ url: z.ZodOptional<z.ZodString>;
2921
+ }, "strict", z.ZodTypeAny, {
2922
+ id: string;
2923
+ model: string;
2924
+ store: "git" | "url" | "postgresql" | "treedx";
2925
+ path?: string | undefined;
2926
+ repository?: string | undefined;
2927
+ commit?: string | undefined;
2928
+ digest?: string | undefined;
2929
+ anchor?: string | undefined;
2930
+ url?: string | undefined;
2931
+ revision?: number | undefined;
2932
+ startLine?: number | undefined;
2933
+ endLine?: number | undefined;
2934
+ }, {
2935
+ id: string;
2936
+ model: string;
2937
+ store: "git" | "url" | "postgresql" | "treedx";
2938
+ path?: string | undefined;
2939
+ repository?: string | undefined;
2940
+ commit?: string | undefined;
2941
+ digest?: string | undefined;
2942
+ anchor?: string | undefined;
2943
+ url?: string | undefined;
2944
+ revision?: number | undefined;
2945
+ startLine?: number | undefined;
2946
+ endLine?: number | undefined;
2947
+ }>, {
2948
+ id: string;
2949
+ model: string;
2950
+ store: "git" | "url" | "postgresql" | "treedx";
2951
+ path?: string | undefined;
2952
+ repository?: string | undefined;
2953
+ commit?: string | undefined;
2954
+ digest?: string | undefined;
2955
+ anchor?: string | undefined;
2956
+ url?: string | undefined;
2957
+ revision?: number | undefined;
2958
+ startLine?: number | undefined;
2959
+ endLine?: number | undefined;
2960
+ }, {
2961
+ id: string;
2962
+ model: string;
2963
+ store: "git" | "url" | "postgresql" | "treedx";
2964
+ path?: string | undefined;
2965
+ repository?: string | undefined;
2966
+ commit?: string | undefined;
2967
+ digest?: string | undefined;
2968
+ anchor?: string | undefined;
2969
+ url?: string | undefined;
2970
+ revision?: number | undefined;
2971
+ startLine?: number | undefined;
2972
+ endLine?: number | undefined;
2973
+ }>, "many">;
2974
+ predecessorResultIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2975
+ acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2976
+ workspace: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
2977
+ mode: z.ZodLiteral<"read-only">;
2978
+ }, "strict", z.ZodTypeAny, {
2979
+ mode: "read-only";
2980
+ }, {
2981
+ mode: "read-only";
2982
+ }>, z.ZodObject<{
2983
+ mode: z.ZodLiteral<"treedx">;
2984
+ workspaceId: z.ZodString;
2985
+ repository: z.ZodString;
2986
+ baseCommit: z.ZodString;
2987
+ writablePaths: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
2988
+ }, "strict", z.ZodTypeAny, {
2989
+ repository: string;
2990
+ mode: "treedx";
2991
+ workspaceId: string;
2992
+ baseCommit: string;
2993
+ writablePaths: string[];
2994
+ }, {
2995
+ repository: string;
2996
+ mode: "treedx";
2997
+ workspaceId: string;
2998
+ baseCommit: string;
2999
+ writablePaths: string[];
3000
+ }>, z.ZodObject<{
3001
+ mode: z.ZodLiteral<"git">;
3002
+ repository: z.ZodString;
3003
+ baseCommit: z.ZodString;
3004
+ branch: z.ZodString;
3005
+ writablePaths: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
3006
+ }, "strict", z.ZodTypeAny, {
3007
+ repository: string;
3008
+ branch: string;
3009
+ mode: "git";
3010
+ baseCommit: string;
3011
+ writablePaths: string[];
3012
+ }, {
3013
+ repository: string;
3014
+ branch: string;
3015
+ mode: "git";
3016
+ baseCommit: string;
3017
+ writablePaths: string[];
3018
+ }>]>;
3019
+ estimate: z.ZodEffects<z.ZodObject<{
3020
+ minimumSeconds: z.ZodNumber;
3021
+ expectedSeconds: z.ZodNumber;
3022
+ maximumSeconds: z.ZodNumber;
3023
+ rationale: z.ZodOptional<z.ZodString>;
3024
+ }, "strict", z.ZodTypeAny, {
3025
+ minimumSeconds: number;
3026
+ expectedSeconds: number;
3027
+ maximumSeconds: number;
3028
+ rationale?: string | undefined;
3029
+ }, {
3030
+ minimumSeconds: number;
3031
+ expectedSeconds: number;
3032
+ maximumSeconds: number;
3033
+ rationale?: string | undefined;
3034
+ }>, {
3035
+ minimumSeconds: number;
3036
+ expectedSeconds: number;
3037
+ maximumSeconds: number;
3038
+ rationale?: string | undefined;
3039
+ }, {
3040
+ minimumSeconds: number;
3041
+ expectedSeconds: number;
3042
+ maximumSeconds: number;
3043
+ rationale?: string | undefined;
3044
+ }>;
3045
+ limits: z.ZodObject<{
3046
+ maximumSeconds: z.ZodNumber;
3047
+ maximumContextBytes: z.ZodNumber;
3048
+ maximumContextTokens: z.ZodOptional<z.ZodNumber>;
3049
+ maximumContextItems: z.ZodNumber;
3050
+ }, "strict", z.ZodTypeAny, {
3051
+ maximumSeconds: number;
3052
+ maximumContextBytes: number;
3053
+ maximumContextItems: number;
3054
+ maximumContextTokens?: number | undefined;
3055
+ }, {
3056
+ maximumSeconds: number;
3057
+ maximumContextBytes: number;
3058
+ maximumContextItems: number;
3059
+ maximumContextTokens?: number | undefined;
3060
+ }>;
3061
+ deadline: z.ZodString;
3062
+ leaseId: z.ZodString;
3063
+ reservationId: z.ZodString;
3064
+ attempt: z.ZodNumber;
3065
+ status: z.ZodEnum<["created", "leased", "running", "completed", "blocked", "failed", "cancelled", "expired"]>;
3066
+ createdAt: z.ZodString;
3067
+ startedAt: z.ZodOptional<z.ZodString>;
3068
+ finishedAt: z.ZodOptional<z.ZodString>;
3069
+ }, "strict", z.ZodTypeAny, {
3070
+ status: "blocked" | "expired" | "failed" | "running" | "completed" | "cancelled" | "created" | "leased";
3071
+ provider: {
3072
+ providerId: string;
3073
+ executionProviderId: string;
3074
+ offerId: string;
3075
+ modelConfigurationId: string;
3076
+ executionCapabilityId: string;
3077
+ offerRevision: number;
3078
+ runtimeBuild: string;
3079
+ };
3080
+ id: string;
3081
+ schemaVersion: "treeseed.assignment-attempt/v1";
3082
+ projectId: string;
3083
+ teamId: string;
3084
+ createdAt: string;
3085
+ idempotencyKey: string;
3086
+ requiredCapabilities: string[];
3087
+ nodeId: string;
3088
+ grant: {
3089
+ tools: string[];
3090
+ contentRead: {
3091
+ id: string;
3092
+ model: string;
3093
+ store: "git" | "url" | "postgresql" | "treedx";
3094
+ path?: string | undefined;
3095
+ repository?: string | undefined;
3096
+ commit?: string | undefined;
3097
+ digest?: string | undefined;
3098
+ anchor?: string | undefined;
3099
+ url?: string | undefined;
3100
+ revision?: number | undefined;
3101
+ startLine?: number | undefined;
3102
+ endLine?: number | undefined;
3103
+ }[];
3104
+ contentWrite: {
3105
+ id: string;
3106
+ model: string;
3107
+ store: "git" | "url" | "postgresql" | "treedx";
3108
+ path?: string | undefined;
3109
+ repository?: string | undefined;
3110
+ commit?: string | undefined;
3111
+ digest?: string | undefined;
3112
+ anchor?: string | undefined;
3113
+ url?: string | undefined;
3114
+ revision?: number | undefined;
3115
+ startLine?: number | undefined;
3116
+ endLine?: number | undefined;
3117
+ }[];
3118
+ sourceRead: string[];
3119
+ sourceWrite: string[];
3120
+ };
3121
+ workspace: {
3122
+ mode: "read-only";
3123
+ } | {
3124
+ repository: string;
3125
+ mode: "treedx";
3126
+ workspaceId: string;
3127
+ baseCommit: string;
3128
+ writablePaths: string[];
3129
+ } | {
3130
+ repository: string;
3131
+ branch: string;
3132
+ mode: "git";
3133
+ baseCommit: string;
3134
+ writablePaths: string[];
3135
+ };
3136
+ limits: {
3137
+ maximumSeconds: number;
3138
+ maximumContextBytes: number;
3139
+ maximumContextItems: number;
3140
+ maximumContextTokens?: number | undefined;
3141
+ };
3142
+ estimate: {
3143
+ minimumSeconds: number;
3144
+ expectedSeconds: number;
3145
+ maximumSeconds: number;
3146
+ rationale?: string | undefined;
3147
+ };
3148
+ workdayId: string;
3149
+ nodeRevision: number;
3150
+ graphRevision: number;
3151
+ sourceRef: {
3152
+ id: string;
3153
+ model: string;
3154
+ store: "git" | "url" | "postgresql" | "treedx";
3155
+ path?: string | undefined;
3156
+ repository?: string | undefined;
3157
+ commit?: string | undefined;
3158
+ digest?: string | undefined;
3159
+ anchor?: string | undefined;
3160
+ url?: string | undefined;
3161
+ revision?: number | undefined;
3162
+ startLine?: number | undefined;
3163
+ endLine?: number | undefined;
3164
+ };
3165
+ authorityRefs: {
3166
+ id: string;
3167
+ model: string;
3168
+ store: "git" | "url" | "postgresql" | "treedx";
3169
+ path?: string | undefined;
3170
+ repository?: string | undefined;
3171
+ commit?: string | undefined;
3172
+ digest?: string | undefined;
3173
+ anchor?: string | undefined;
3174
+ url?: string | undefined;
3175
+ revision?: number | undefined;
3176
+ startLine?: number | undefined;
3177
+ endLine?: number | undefined;
3178
+ }[];
3179
+ effectiveProfile: {
3180
+ prompt: {
3181
+ system: string;
3182
+ instructions?: string[] | undefined;
3183
+ };
3184
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
3185
+ handler: string;
3186
+ profileRef: {
3187
+ id: string;
3188
+ model: string;
3189
+ store: "git" | "url" | "postgresql" | "treedx";
3190
+ path?: string | undefined;
3191
+ repository?: string | undefined;
3192
+ commit?: string | undefined;
3193
+ digest?: string | undefined;
3194
+ anchor?: string | undefined;
3195
+ url?: string | undefined;
3196
+ revision?: number | undefined;
3197
+ startLine?: number | undefined;
3198
+ endLine?: number | undefined;
3199
+ };
3200
+ handlerOrigin: "agent-package" | "project-runtime";
3201
+ permissionCeiling: {
3202
+ content: {
3203
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
3204
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
3205
+ };
3206
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
3207
+ };
3208
+ parameters?: Record<string, unknown> | undefined;
3209
+ additionalContext?: string[] | undefined;
3210
+ };
3211
+ contextRefs: {
3212
+ id: string;
3213
+ model: string;
3214
+ store: "git" | "url" | "postgresql" | "treedx";
3215
+ path?: string | undefined;
3216
+ repository?: string | undefined;
3217
+ commit?: string | undefined;
3218
+ digest?: string | undefined;
3219
+ anchor?: string | undefined;
3220
+ url?: string | undefined;
3221
+ revision?: number | undefined;
3222
+ startLine?: number | undefined;
3223
+ endLine?: number | undefined;
3224
+ }[];
3225
+ predecessorResultIds: string[];
3226
+ deadline: string;
3227
+ leaseId: string;
3228
+ reservationId: string;
3229
+ attempt: number;
3230
+ startedAt?: string | undefined;
3231
+ finishedAt?: string | undefined;
3232
+ workItemId?: string | undefined;
3233
+ acceptanceCriteria?: string[] | undefined;
3234
+ }, {
3235
+ status: "blocked" | "expired" | "failed" | "running" | "completed" | "cancelled" | "created" | "leased";
3236
+ provider: {
3237
+ providerId: string;
3238
+ executionProviderId: string;
3239
+ offerId: string;
3240
+ modelConfigurationId: string;
3241
+ executionCapabilityId: string;
3242
+ offerRevision: number;
3243
+ runtimeBuild: string;
3244
+ };
3245
+ id: string;
3246
+ schemaVersion: "treeseed.assignment-attempt/v1";
3247
+ projectId: string;
3248
+ teamId: string;
3249
+ createdAt: string;
3250
+ idempotencyKey: string;
3251
+ requiredCapabilities: string[];
3252
+ nodeId: string;
3253
+ grant: {
3254
+ tools: string[];
3255
+ contentRead: {
3256
+ id: string;
3257
+ model: string;
3258
+ store: "git" | "url" | "postgresql" | "treedx";
3259
+ path?: string | undefined;
3260
+ repository?: string | undefined;
3261
+ commit?: string | undefined;
3262
+ digest?: string | undefined;
3263
+ anchor?: string | undefined;
3264
+ url?: string | undefined;
3265
+ revision?: number | undefined;
3266
+ startLine?: number | undefined;
3267
+ endLine?: number | undefined;
3268
+ }[];
3269
+ contentWrite: {
3270
+ id: string;
3271
+ model: string;
3272
+ store: "git" | "url" | "postgresql" | "treedx";
3273
+ path?: string | undefined;
3274
+ repository?: string | undefined;
3275
+ commit?: string | undefined;
3276
+ digest?: string | undefined;
3277
+ anchor?: string | undefined;
3278
+ url?: string | undefined;
3279
+ revision?: number | undefined;
3280
+ startLine?: number | undefined;
3281
+ endLine?: number | undefined;
3282
+ }[];
3283
+ sourceRead: string[];
3284
+ sourceWrite: string[];
3285
+ };
3286
+ workspace: {
3287
+ mode: "read-only";
3288
+ } | {
3289
+ repository: string;
3290
+ mode: "treedx";
3291
+ workspaceId: string;
3292
+ baseCommit: string;
3293
+ writablePaths: string[];
3294
+ } | {
3295
+ repository: string;
3296
+ branch: string;
3297
+ mode: "git";
3298
+ baseCommit: string;
3299
+ writablePaths: string[];
3300
+ };
3301
+ limits: {
3302
+ maximumSeconds: number;
3303
+ maximumContextBytes: number;
3304
+ maximumContextItems: number;
3305
+ maximumContextTokens?: number | undefined;
3306
+ };
3307
+ estimate: {
3308
+ minimumSeconds: number;
3309
+ expectedSeconds: number;
3310
+ maximumSeconds: number;
3311
+ rationale?: string | undefined;
3312
+ };
3313
+ workdayId: string;
3314
+ nodeRevision: number;
3315
+ graphRevision: number;
3316
+ sourceRef: {
3317
+ id: string;
3318
+ model: string;
3319
+ store: "git" | "url" | "postgresql" | "treedx";
3320
+ path?: string | undefined;
3321
+ repository?: string | undefined;
3322
+ commit?: string | undefined;
3323
+ digest?: string | undefined;
3324
+ anchor?: string | undefined;
3325
+ url?: string | undefined;
3326
+ revision?: number | undefined;
3327
+ startLine?: number | undefined;
3328
+ endLine?: number | undefined;
3329
+ };
3330
+ authorityRefs: {
3331
+ id: string;
3332
+ model: string;
3333
+ store: "git" | "url" | "postgresql" | "treedx";
3334
+ path?: string | undefined;
3335
+ repository?: string | undefined;
3336
+ commit?: string | undefined;
3337
+ digest?: string | undefined;
3338
+ anchor?: string | undefined;
3339
+ url?: string | undefined;
3340
+ revision?: number | undefined;
3341
+ startLine?: number | undefined;
3342
+ endLine?: number | undefined;
3343
+ }[];
3344
+ effectiveProfile: {
3345
+ prompt: {
3346
+ system: string;
3347
+ instructions?: string[] | undefined;
3348
+ };
3349
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
3350
+ handler: string;
3351
+ profileRef: {
3352
+ id: string;
3353
+ model: string;
3354
+ store: "git" | "url" | "postgresql" | "treedx";
3355
+ path?: string | undefined;
3356
+ repository?: string | undefined;
3357
+ commit?: string | undefined;
3358
+ digest?: string | undefined;
3359
+ anchor?: string | undefined;
3360
+ url?: string | undefined;
3361
+ revision?: number | undefined;
3362
+ startLine?: number | undefined;
3363
+ endLine?: number | undefined;
3364
+ };
3365
+ handlerOrigin: "agent-package" | "project-runtime";
3366
+ permissionCeiling: {
3367
+ content: {
3368
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
3369
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
3370
+ };
3371
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
3372
+ };
3373
+ parameters?: Record<string, unknown> | undefined;
3374
+ additionalContext?: string[] | undefined;
3375
+ };
3376
+ contextRefs: {
3377
+ id: string;
3378
+ model: string;
3379
+ store: "git" | "url" | "postgresql" | "treedx";
3380
+ path?: string | undefined;
3381
+ repository?: string | undefined;
3382
+ commit?: string | undefined;
3383
+ digest?: string | undefined;
3384
+ anchor?: string | undefined;
3385
+ url?: string | undefined;
3386
+ revision?: number | undefined;
3387
+ startLine?: number | undefined;
3388
+ endLine?: number | undefined;
3389
+ }[];
3390
+ predecessorResultIds: string[];
3391
+ deadline: string;
3392
+ leaseId: string;
3393
+ reservationId: string;
3394
+ attempt: number;
3395
+ startedAt?: string | undefined;
3396
+ finishedAt?: string | undefined;
3397
+ workItemId?: string | undefined;
3398
+ acceptanceCriteria?: string[] | undefined;
3399
+ }>;
3400
+ context: z.ZodArray<z.ZodObject<{
3401
+ ref: z.ZodEffects<z.ZodObject<{
3402
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
3403
+ model: z.ZodString;
3404
+ id: z.ZodString;
3405
+ revision: z.ZodOptional<z.ZodNumber>;
3406
+ digest: z.ZodOptional<z.ZodString>;
3407
+ repository: z.ZodOptional<z.ZodString>;
3408
+ commit: z.ZodOptional<z.ZodString>;
3409
+ path: z.ZodOptional<z.ZodString>;
3410
+ anchor: z.ZodOptional<z.ZodString>;
3411
+ startLine: z.ZodOptional<z.ZodNumber>;
3412
+ endLine: z.ZodOptional<z.ZodNumber>;
3413
+ url: z.ZodOptional<z.ZodString>;
3414
+ }, "strict", z.ZodTypeAny, {
3415
+ id: string;
3416
+ model: string;
3417
+ store: "git" | "url" | "postgresql" | "treedx";
3418
+ path?: string | undefined;
3419
+ repository?: string | undefined;
3420
+ commit?: string | undefined;
3421
+ digest?: string | undefined;
3422
+ anchor?: string | undefined;
3423
+ url?: string | undefined;
3424
+ revision?: number | undefined;
3425
+ startLine?: number | undefined;
3426
+ endLine?: number | undefined;
3427
+ }, {
3428
+ id: string;
3429
+ model: string;
3430
+ store: "git" | "url" | "postgresql" | "treedx";
3431
+ path?: string | undefined;
3432
+ repository?: string | undefined;
3433
+ commit?: string | undefined;
3434
+ digest?: string | undefined;
3435
+ anchor?: string | undefined;
3436
+ url?: string | undefined;
3437
+ revision?: number | undefined;
3438
+ startLine?: number | undefined;
3439
+ endLine?: number | undefined;
3440
+ }>, {
3441
+ id: string;
3442
+ model: string;
3443
+ store: "git" | "url" | "postgresql" | "treedx";
3444
+ path?: string | undefined;
3445
+ repository?: string | undefined;
3446
+ commit?: string | undefined;
3447
+ digest?: string | undefined;
3448
+ anchor?: string | undefined;
3449
+ url?: string | undefined;
3450
+ revision?: number | undefined;
3451
+ startLine?: number | undefined;
3452
+ endLine?: number | undefined;
3453
+ }, {
3454
+ id: string;
3455
+ model: string;
3456
+ store: "git" | "url" | "postgresql" | "treedx";
3457
+ path?: string | undefined;
3458
+ repository?: string | undefined;
3459
+ commit?: string | undefined;
3460
+ digest?: string | undefined;
3461
+ anchor?: string | undefined;
3462
+ url?: string | undefined;
3463
+ revision?: number | undefined;
3464
+ startLine?: number | undefined;
3465
+ endLine?: number | undefined;
3466
+ }>;
3467
+ mediaType: z.ZodString;
3468
+ digest: z.ZodString;
3469
+ value: z.ZodAny;
3470
+ }, "strict", z.ZodTypeAny, {
3471
+ digest: string;
3472
+ mediaType: string;
3473
+ ref: {
3474
+ id: string;
3475
+ model: string;
3476
+ store: "git" | "url" | "postgresql" | "treedx";
3477
+ path?: string | undefined;
3478
+ repository?: string | undefined;
3479
+ commit?: string | undefined;
3480
+ digest?: string | undefined;
3481
+ anchor?: string | undefined;
3482
+ url?: string | undefined;
3483
+ revision?: number | undefined;
3484
+ startLine?: number | undefined;
3485
+ endLine?: number | undefined;
3486
+ };
3487
+ value?: any;
3488
+ }, {
3489
+ digest: string;
3490
+ mediaType: string;
3491
+ ref: {
3492
+ id: string;
3493
+ model: string;
3494
+ store: "git" | "url" | "postgresql" | "treedx";
3495
+ path?: string | undefined;
3496
+ repository?: string | undefined;
3497
+ commit?: string | undefined;
3498
+ digest?: string | undefined;
3499
+ anchor?: string | undefined;
3500
+ url?: string | undefined;
3501
+ revision?: number | undefined;
3502
+ startLine?: number | undefined;
3503
+ endLine?: number | undefined;
3504
+ };
3505
+ value?: any;
3506
+ }>, "many">;
3507
+ predecessorResults: z.ZodArray<z.ZodObject<{
3508
+ schemaVersion: z.ZodLiteral<"treeseed.assignment-result/v1">;
3509
+ id: z.ZodString;
3510
+ assignmentId: z.ZodString;
3511
+ status: z.ZodEnum<["completed", "blocked", "failed"]>;
3512
+ summary: z.ZodString;
3513
+ references: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3514
+ kind: z.ZodLiteral<"git">;
3515
+ repository: z.ZodString;
3516
+ commit: z.ZodString;
3517
+ branch: z.ZodOptional<z.ZodString>;
3518
+ path: z.ZodOptional<z.ZodString>;
3519
+ }, "strict", z.ZodTypeAny, {
3520
+ kind: "git";
3521
+ repository: string;
3522
+ commit: string;
3523
+ path?: string | undefined;
3524
+ branch?: string | undefined;
3525
+ }, {
3526
+ kind: "git";
3527
+ repository: string;
3528
+ commit: string;
3529
+ path?: string | undefined;
3530
+ branch?: string | undefined;
3531
+ }>, z.ZodObject<{
3532
+ kind: z.ZodLiteral<"treedx">;
3533
+ projectId: z.ZodString;
3534
+ repository: z.ZodString;
3535
+ commit: z.ZodString;
3536
+ path: z.ZodString;
3537
+ workspaceId: z.ZodOptional<z.ZodString>;
3538
+ }, "strict", z.ZodTypeAny, {
3539
+ path: string;
3540
+ kind: "treedx";
3541
+ repository: string;
3542
+ commit: string;
3543
+ projectId: string;
3544
+ workspaceId?: string | undefined;
3545
+ }, {
3546
+ path: string;
3547
+ kind: "treedx";
3548
+ repository: string;
3549
+ commit: string;
3550
+ projectId: string;
3551
+ workspaceId?: string | undefined;
3552
+ }>, z.ZodObject<{
3553
+ kind: z.ZodLiteral<"url">;
3554
+ url: z.ZodString;
3555
+ digest: z.ZodOptional<z.ZodString>;
3556
+ }, "strict", z.ZodTypeAny, {
3557
+ kind: "url";
3558
+ url: string;
3559
+ digest?: string | undefined;
3560
+ }, {
3561
+ kind: "url";
3562
+ url: string;
3563
+ digest?: string | undefined;
3564
+ }>]>, "many">;
3565
+ verification: z.ZodArray<z.ZodObject<{
3566
+ command: z.ZodString;
3567
+ status: z.ZodEnum<["passed", "failed", "skipped"]>;
3568
+ exitCode: z.ZodNumber;
3569
+ outputDigest: z.ZodString;
3570
+ durationSeconds: z.ZodOptional<z.ZodNumber>;
3571
+ }, "strict", z.ZodTypeAny, {
3572
+ status: "passed" | "failed" | "skipped";
3573
+ command: string;
3574
+ exitCode: number;
3575
+ outputDigest: string;
3576
+ durationSeconds?: number | undefined;
3577
+ }, {
3578
+ status: "passed" | "failed" | "skipped";
3579
+ command: string;
3580
+ exitCode: number;
3581
+ outputDigest: string;
3582
+ durationSeconds?: number | undefined;
3583
+ }>, "many">;
3584
+ usage: z.ZodObject<{
3585
+ elapsedSeconds: z.ZodNumber;
3586
+ modelInputTokens: z.ZodOptional<z.ZodNumber>;
3587
+ modelOutputTokens: z.ZodOptional<z.ZodNumber>;
3588
+ native: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3589
+ }, "strict", z.ZodTypeAny, {
3590
+ elapsedSeconds: number;
3591
+ native?: Record<string, number> | undefined;
3592
+ modelInputTokens?: number | undefined;
3593
+ modelOutputTokens?: number | undefined;
3594
+ }, {
3595
+ elapsedSeconds: number;
3596
+ native?: Record<string, number> | undefined;
3597
+ modelInputTokens?: number | undefined;
3598
+ modelOutputTokens?: number | undefined;
3599
+ }>;
3600
+ diagnostics: z.ZodArray<z.ZodObject<{
3601
+ code: z.ZodString;
3602
+ severity: z.ZodEnum<["info", "warning", "error"]>;
3603
+ message: z.ZodString;
3604
+ ref: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3605
+ store: z.ZodEnum<["treedx", "postgresql", "git", "url"]>;
3606
+ model: z.ZodString;
3607
+ id: z.ZodString;
3608
+ revision: z.ZodOptional<z.ZodNumber>;
3609
+ digest: z.ZodOptional<z.ZodString>;
3610
+ repository: z.ZodOptional<z.ZodString>;
3611
+ commit: z.ZodOptional<z.ZodString>;
3612
+ path: z.ZodOptional<z.ZodString>;
3613
+ anchor: z.ZodOptional<z.ZodString>;
3614
+ startLine: z.ZodOptional<z.ZodNumber>;
3615
+ endLine: z.ZodOptional<z.ZodNumber>;
3616
+ url: z.ZodOptional<z.ZodString>;
3617
+ }, "strict", z.ZodTypeAny, {
3618
+ id: string;
3619
+ model: string;
3620
+ store: "git" | "url" | "postgresql" | "treedx";
3621
+ path?: string | undefined;
3622
+ repository?: string | undefined;
3623
+ commit?: string | undefined;
3624
+ digest?: string | undefined;
3625
+ anchor?: string | undefined;
3626
+ url?: string | undefined;
3627
+ revision?: number | undefined;
3628
+ startLine?: number | undefined;
3629
+ endLine?: number | undefined;
3630
+ }, {
3631
+ id: string;
3632
+ model: string;
3633
+ store: "git" | "url" | "postgresql" | "treedx";
3634
+ path?: string | undefined;
3635
+ repository?: string | undefined;
3636
+ commit?: string | undefined;
3637
+ digest?: string | undefined;
3638
+ anchor?: string | undefined;
3639
+ url?: string | undefined;
3640
+ revision?: number | undefined;
3641
+ startLine?: number | undefined;
3642
+ endLine?: number | undefined;
3643
+ }>, {
3644
+ id: string;
3645
+ model: string;
3646
+ store: "git" | "url" | "postgresql" | "treedx";
3647
+ path?: string | undefined;
3648
+ repository?: string | undefined;
3649
+ commit?: string | undefined;
3650
+ digest?: string | undefined;
3651
+ anchor?: string | undefined;
3652
+ url?: string | undefined;
3653
+ revision?: number | undefined;
3654
+ startLine?: number | undefined;
3655
+ endLine?: number | undefined;
3656
+ }, {
3657
+ id: string;
3658
+ model: string;
3659
+ store: "git" | "url" | "postgresql" | "treedx";
3660
+ path?: string | undefined;
3661
+ repository?: string | undefined;
3662
+ commit?: string | undefined;
3663
+ digest?: string | undefined;
3664
+ anchor?: string | undefined;
3665
+ url?: string | undefined;
3666
+ revision?: number | undefined;
3667
+ startLine?: number | undefined;
3668
+ endLine?: number | undefined;
3669
+ }>>;
3670
+ }, "strict", z.ZodTypeAny, {
3671
+ code: string;
3672
+ message: string;
3673
+ severity: "error" | "warning" | "info";
3674
+ ref?: {
3675
+ id: string;
3676
+ model: string;
3677
+ store: "git" | "url" | "postgresql" | "treedx";
3678
+ path?: string | undefined;
3679
+ repository?: string | undefined;
3680
+ commit?: string | undefined;
3681
+ digest?: string | undefined;
3682
+ anchor?: string | undefined;
3683
+ url?: string | undefined;
3684
+ revision?: number | undefined;
3685
+ startLine?: number | undefined;
3686
+ endLine?: number | undefined;
3687
+ } | undefined;
3688
+ }, {
3689
+ code: string;
3690
+ message: string;
3691
+ severity: "error" | "warning" | "info";
3692
+ ref?: {
3693
+ id: string;
3694
+ model: string;
3695
+ store: "git" | "url" | "postgresql" | "treedx";
3696
+ path?: string | undefined;
3697
+ repository?: string | undefined;
3698
+ commit?: string | undefined;
3699
+ digest?: string | undefined;
3700
+ anchor?: string | undefined;
3701
+ url?: string | undefined;
3702
+ revision?: number | undefined;
3703
+ startLine?: number | undefined;
3704
+ endLine?: number | undefined;
3705
+ } | undefined;
3706
+ }>, "many">;
3707
+ timingAwareness: z.ZodOptional<z.ZodObject<{
3708
+ schemaVersion: z.ZodLiteral<"treeseed.assignment-timing-awareness/v1">;
3709
+ requiredChecks: z.ZodLiteral<2>;
3710
+ completedChecks: z.ZodNumber;
3711
+ firstTool: z.ZodLiteral<"treedx:treeseed_time_status">;
3712
+ firstToolSucceeded: z.ZodLiteral<true>;
3713
+ lastTool: z.ZodLiteral<"treedx:treeseed_time_status">;
3714
+ lastToolSucceeded: z.ZodLiteral<true>;
3715
+ firstToolCompliant: z.ZodLiteral<true>;
3716
+ finalToolCompliant: z.ZodLiteral<true>;
3717
+ }, "strict", z.ZodTypeAny, {
3718
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
3719
+ requiredChecks: 2;
3720
+ completedChecks: number;
3721
+ firstTool: "treedx:treeseed_time_status";
3722
+ firstToolSucceeded: true;
3723
+ lastTool: "treedx:treeseed_time_status";
3724
+ lastToolSucceeded: true;
3725
+ firstToolCompliant: true;
3726
+ finalToolCompliant: true;
3727
+ }, {
3728
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
3729
+ requiredChecks: 2;
3730
+ completedChecks: number;
3731
+ firstTool: "treedx:treeseed_time_status";
3732
+ firstToolSucceeded: true;
3733
+ lastTool: "treedx:treeseed_time_status";
3734
+ lastToolSucceeded: true;
3735
+ firstToolCompliant: true;
3736
+ finalToolCompliant: true;
3737
+ }>>;
3738
+ completedAt: z.ZodString;
3739
+ }, "strict", z.ZodTypeAny, {
3740
+ status: "blocked" | "failed" | "completed";
3741
+ id: string;
3742
+ schemaVersion: "treeseed.assignment-result/v1";
3743
+ assignmentId: string;
3744
+ completedAt: string;
3745
+ verification: {
3746
+ status: "passed" | "failed" | "skipped";
3747
+ command: string;
3748
+ exitCode: number;
3749
+ outputDigest: string;
3750
+ durationSeconds?: number | undefined;
3751
+ }[];
3752
+ summary: string;
3753
+ usage: {
3754
+ elapsedSeconds: number;
3755
+ native?: Record<string, number> | undefined;
3756
+ modelInputTokens?: number | undefined;
3757
+ modelOutputTokens?: number | undefined;
3758
+ };
3759
+ diagnostics: {
3760
+ code: string;
3761
+ message: string;
3762
+ severity: "error" | "warning" | "info";
3763
+ ref?: {
3764
+ id: string;
3765
+ model: string;
3766
+ store: "git" | "url" | "postgresql" | "treedx";
3767
+ path?: string | undefined;
3768
+ repository?: string | undefined;
3769
+ commit?: string | undefined;
3770
+ digest?: string | undefined;
3771
+ anchor?: string | undefined;
3772
+ url?: string | undefined;
3773
+ revision?: number | undefined;
3774
+ startLine?: number | undefined;
3775
+ endLine?: number | undefined;
3776
+ } | undefined;
3777
+ }[];
3778
+ references: ({
3779
+ kind: "git";
3780
+ repository: string;
3781
+ commit: string;
3782
+ path?: string | undefined;
3783
+ branch?: string | undefined;
3784
+ } | {
3785
+ path: string;
3786
+ kind: "treedx";
3787
+ repository: string;
3788
+ commit: string;
3789
+ projectId: string;
3790
+ workspaceId?: string | undefined;
3791
+ } | {
3792
+ kind: "url";
3793
+ url: string;
3794
+ digest?: string | undefined;
3795
+ })[];
3796
+ timingAwareness?: {
3797
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
3798
+ requiredChecks: 2;
3799
+ completedChecks: number;
3800
+ firstTool: "treedx:treeseed_time_status";
3801
+ firstToolSucceeded: true;
3802
+ lastTool: "treedx:treeseed_time_status";
3803
+ lastToolSucceeded: true;
3804
+ firstToolCompliant: true;
3805
+ finalToolCompliant: true;
3806
+ } | undefined;
3807
+ }, {
3808
+ status: "blocked" | "failed" | "completed";
3809
+ id: string;
3810
+ schemaVersion: "treeseed.assignment-result/v1";
3811
+ assignmentId: string;
3812
+ completedAt: string;
3813
+ verification: {
3814
+ status: "passed" | "failed" | "skipped";
3815
+ command: string;
3816
+ exitCode: number;
3817
+ outputDigest: string;
3818
+ durationSeconds?: number | undefined;
3819
+ }[];
3820
+ summary: string;
3821
+ usage: {
3822
+ elapsedSeconds: number;
3823
+ native?: Record<string, number> | undefined;
3824
+ modelInputTokens?: number | undefined;
3825
+ modelOutputTokens?: number | undefined;
3826
+ };
3827
+ diagnostics: {
3828
+ code: string;
3829
+ message: string;
3830
+ severity: "error" | "warning" | "info";
3831
+ ref?: {
3832
+ id: string;
3833
+ model: string;
3834
+ store: "git" | "url" | "postgresql" | "treedx";
3835
+ path?: string | undefined;
3836
+ repository?: string | undefined;
3837
+ commit?: string | undefined;
3838
+ digest?: string | undefined;
3839
+ anchor?: string | undefined;
3840
+ url?: string | undefined;
3841
+ revision?: number | undefined;
3842
+ startLine?: number | undefined;
3843
+ endLine?: number | undefined;
3844
+ } | undefined;
3845
+ }[];
3846
+ references: ({
3847
+ kind: "git";
3848
+ repository: string;
3849
+ commit: string;
3850
+ path?: string | undefined;
3851
+ branch?: string | undefined;
3852
+ } | {
3853
+ path: string;
3854
+ kind: "treedx";
3855
+ repository: string;
3856
+ commit: string;
3857
+ projectId: string;
3858
+ workspaceId?: string | undefined;
3859
+ } | {
3860
+ kind: "url";
3861
+ url: string;
3862
+ digest?: string | undefined;
3863
+ })[];
3864
+ timingAwareness?: {
3865
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
3866
+ requiredChecks: 2;
3867
+ completedChecks: number;
3868
+ firstTool: "treedx:treeseed_time_status";
3869
+ firstToolSucceeded: true;
3870
+ lastTool: "treedx:treeseed_time_status";
3871
+ lastToolSucceeded: true;
3872
+ firstToolCompliant: true;
3873
+ finalToolCompliant: true;
3874
+ } | undefined;
3875
+ }>, "many">;
3876
+ }, "strict", z.ZodTypeAny, {
3877
+ context: {
3878
+ digest: string;
3879
+ mediaType: string;
3880
+ ref: {
3881
+ id: string;
3882
+ model: string;
3883
+ store: "git" | "url" | "postgresql" | "treedx";
3884
+ path?: string | undefined;
3885
+ repository?: string | undefined;
3886
+ commit?: string | undefined;
3887
+ digest?: string | undefined;
3888
+ anchor?: string | undefined;
3889
+ url?: string | undefined;
3890
+ revision?: number | undefined;
3891
+ startLine?: number | undefined;
3892
+ endLine?: number | undefined;
3893
+ };
3894
+ value?: any;
3895
+ }[];
3896
+ assignment: {
3897
+ status: "blocked" | "expired" | "failed" | "running" | "completed" | "cancelled" | "created" | "leased";
3898
+ provider: {
3899
+ providerId: string;
3900
+ executionProviderId: string;
3901
+ offerId: string;
3902
+ modelConfigurationId: string;
3903
+ executionCapabilityId: string;
3904
+ offerRevision: number;
3905
+ runtimeBuild: string;
3906
+ };
3907
+ id: string;
3908
+ schemaVersion: "treeseed.assignment-attempt/v1";
3909
+ projectId: string;
3910
+ teamId: string;
3911
+ createdAt: string;
3912
+ idempotencyKey: string;
3913
+ requiredCapabilities: string[];
3914
+ nodeId: string;
3915
+ grant: {
3916
+ tools: string[];
3917
+ contentRead: {
3918
+ id: string;
3919
+ model: string;
3920
+ store: "git" | "url" | "postgresql" | "treedx";
3921
+ path?: string | undefined;
3922
+ repository?: string | undefined;
3923
+ commit?: string | undefined;
3924
+ digest?: string | undefined;
3925
+ anchor?: string | undefined;
3926
+ url?: string | undefined;
3927
+ revision?: number | undefined;
3928
+ startLine?: number | undefined;
3929
+ endLine?: number | undefined;
3930
+ }[];
3931
+ contentWrite: {
3932
+ id: string;
3933
+ model: string;
3934
+ store: "git" | "url" | "postgresql" | "treedx";
3935
+ path?: string | undefined;
3936
+ repository?: string | undefined;
3937
+ commit?: string | undefined;
3938
+ digest?: string | undefined;
3939
+ anchor?: string | undefined;
3940
+ url?: string | undefined;
3941
+ revision?: number | undefined;
3942
+ startLine?: number | undefined;
3943
+ endLine?: number | undefined;
3944
+ }[];
3945
+ sourceRead: string[];
3946
+ sourceWrite: string[];
3947
+ };
3948
+ workspace: {
3949
+ mode: "read-only";
3950
+ } | {
3951
+ repository: string;
3952
+ mode: "treedx";
3953
+ workspaceId: string;
3954
+ baseCommit: string;
3955
+ writablePaths: string[];
3956
+ } | {
3957
+ repository: string;
3958
+ branch: string;
3959
+ mode: "git";
3960
+ baseCommit: string;
3961
+ writablePaths: string[];
3962
+ };
3963
+ limits: {
3964
+ maximumSeconds: number;
3965
+ maximumContextBytes: number;
3966
+ maximumContextItems: number;
3967
+ maximumContextTokens?: number | undefined;
3968
+ };
3969
+ estimate: {
3970
+ minimumSeconds: number;
3971
+ expectedSeconds: number;
3972
+ maximumSeconds: number;
3973
+ rationale?: string | undefined;
3974
+ };
3975
+ workdayId: string;
3976
+ nodeRevision: number;
3977
+ graphRevision: number;
3978
+ sourceRef: {
3979
+ id: string;
3980
+ model: string;
3981
+ store: "git" | "url" | "postgresql" | "treedx";
3982
+ path?: string | undefined;
3983
+ repository?: string | undefined;
3984
+ commit?: string | undefined;
3985
+ digest?: string | undefined;
3986
+ anchor?: string | undefined;
3987
+ url?: string | undefined;
3988
+ revision?: number | undefined;
3989
+ startLine?: number | undefined;
3990
+ endLine?: number | undefined;
3991
+ };
3992
+ authorityRefs: {
3993
+ id: string;
3994
+ model: string;
3995
+ store: "git" | "url" | "postgresql" | "treedx";
3996
+ path?: string | undefined;
3997
+ repository?: string | undefined;
3998
+ commit?: string | undefined;
3999
+ digest?: string | undefined;
4000
+ anchor?: string | undefined;
4001
+ url?: string | undefined;
4002
+ revision?: number | undefined;
4003
+ startLine?: number | undefined;
4004
+ endLine?: number | undefined;
4005
+ }[];
4006
+ effectiveProfile: {
4007
+ prompt: {
4008
+ system: string;
4009
+ instructions?: string[] | undefined;
4010
+ };
4011
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
4012
+ handler: string;
4013
+ profileRef: {
4014
+ id: string;
4015
+ model: string;
4016
+ store: "git" | "url" | "postgresql" | "treedx";
4017
+ path?: string | undefined;
4018
+ repository?: string | undefined;
4019
+ commit?: string | undefined;
4020
+ digest?: string | undefined;
4021
+ anchor?: string | undefined;
4022
+ url?: string | undefined;
4023
+ revision?: number | undefined;
4024
+ startLine?: number | undefined;
4025
+ endLine?: number | undefined;
4026
+ };
4027
+ handlerOrigin: "agent-package" | "project-runtime";
4028
+ permissionCeiling: {
4029
+ content: {
4030
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
4031
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
4032
+ };
4033
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
4034
+ };
4035
+ parameters?: Record<string, unknown> | undefined;
4036
+ additionalContext?: string[] | undefined;
4037
+ };
4038
+ contextRefs: {
4039
+ id: string;
4040
+ model: string;
4041
+ store: "git" | "url" | "postgresql" | "treedx";
4042
+ path?: string | undefined;
4043
+ repository?: string | undefined;
4044
+ commit?: string | undefined;
4045
+ digest?: string | undefined;
4046
+ anchor?: string | undefined;
4047
+ url?: string | undefined;
4048
+ revision?: number | undefined;
4049
+ startLine?: number | undefined;
4050
+ endLine?: number | undefined;
4051
+ }[];
4052
+ predecessorResultIds: string[];
4053
+ deadline: string;
4054
+ leaseId: string;
4055
+ reservationId: string;
4056
+ attempt: number;
4057
+ startedAt?: string | undefined;
4058
+ finishedAt?: string | undefined;
4059
+ workItemId?: string | undefined;
4060
+ acceptanceCriteria?: string[] | undefined;
4061
+ };
4062
+ predecessorResults: {
4063
+ status: "blocked" | "failed" | "completed";
4064
+ id: string;
4065
+ schemaVersion: "treeseed.assignment-result/v1";
4066
+ assignmentId: string;
4067
+ completedAt: string;
4068
+ verification: {
4069
+ status: "passed" | "failed" | "skipped";
4070
+ command: string;
4071
+ exitCode: number;
4072
+ outputDigest: string;
4073
+ durationSeconds?: number | undefined;
4074
+ }[];
4075
+ summary: string;
4076
+ usage: {
4077
+ elapsedSeconds: number;
4078
+ native?: Record<string, number> | undefined;
4079
+ modelInputTokens?: number | undefined;
4080
+ modelOutputTokens?: number | undefined;
4081
+ };
4082
+ diagnostics: {
4083
+ code: string;
4084
+ message: string;
4085
+ severity: "error" | "warning" | "info";
4086
+ ref?: {
4087
+ id: string;
4088
+ model: string;
4089
+ store: "git" | "url" | "postgresql" | "treedx";
4090
+ path?: string | undefined;
4091
+ repository?: string | undefined;
4092
+ commit?: string | undefined;
4093
+ digest?: string | undefined;
4094
+ anchor?: string | undefined;
4095
+ url?: string | undefined;
4096
+ revision?: number | undefined;
4097
+ startLine?: number | undefined;
4098
+ endLine?: number | undefined;
4099
+ } | undefined;
4100
+ }[];
4101
+ references: ({
4102
+ kind: "git";
4103
+ repository: string;
4104
+ commit: string;
4105
+ path?: string | undefined;
4106
+ branch?: string | undefined;
4107
+ } | {
4108
+ path: string;
4109
+ kind: "treedx";
4110
+ repository: string;
4111
+ commit: string;
4112
+ projectId: string;
4113
+ workspaceId?: string | undefined;
4114
+ } | {
4115
+ kind: "url";
4116
+ url: string;
4117
+ digest?: string | undefined;
4118
+ })[];
4119
+ timingAwareness?: {
4120
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
4121
+ requiredChecks: 2;
4122
+ completedChecks: number;
4123
+ firstTool: "treedx:treeseed_time_status";
4124
+ firstToolSucceeded: true;
4125
+ lastTool: "treedx:treeseed_time_status";
4126
+ lastToolSucceeded: true;
4127
+ firstToolCompliant: true;
4128
+ finalToolCompliant: true;
4129
+ } | undefined;
4130
+ }[];
4131
+ }, {
4132
+ context: {
4133
+ digest: string;
4134
+ mediaType: string;
4135
+ ref: {
4136
+ id: string;
4137
+ model: string;
4138
+ store: "git" | "url" | "postgresql" | "treedx";
4139
+ path?: string | undefined;
4140
+ repository?: string | undefined;
4141
+ commit?: string | undefined;
4142
+ digest?: string | undefined;
4143
+ anchor?: string | undefined;
4144
+ url?: string | undefined;
4145
+ revision?: number | undefined;
4146
+ startLine?: number | undefined;
4147
+ endLine?: number | undefined;
4148
+ };
4149
+ value?: any;
4150
+ }[];
4151
+ assignment: {
4152
+ status: "blocked" | "expired" | "failed" | "running" | "completed" | "cancelled" | "created" | "leased";
4153
+ provider: {
4154
+ providerId: string;
4155
+ executionProviderId: string;
4156
+ offerId: string;
4157
+ modelConfigurationId: string;
4158
+ executionCapabilityId: string;
4159
+ offerRevision: number;
4160
+ runtimeBuild: string;
4161
+ };
4162
+ id: string;
4163
+ schemaVersion: "treeseed.assignment-attempt/v1";
4164
+ projectId: string;
4165
+ teamId: string;
4166
+ createdAt: string;
4167
+ idempotencyKey: string;
4168
+ requiredCapabilities: string[];
4169
+ nodeId: string;
4170
+ grant: {
4171
+ tools: string[];
4172
+ contentRead: {
4173
+ id: string;
4174
+ model: string;
4175
+ store: "git" | "url" | "postgresql" | "treedx";
4176
+ path?: string | undefined;
4177
+ repository?: string | undefined;
4178
+ commit?: string | undefined;
4179
+ digest?: string | undefined;
4180
+ anchor?: string | undefined;
4181
+ url?: string | undefined;
4182
+ revision?: number | undefined;
4183
+ startLine?: number | undefined;
4184
+ endLine?: number | undefined;
4185
+ }[];
4186
+ contentWrite: {
4187
+ id: string;
4188
+ model: string;
4189
+ store: "git" | "url" | "postgresql" | "treedx";
4190
+ path?: string | undefined;
4191
+ repository?: string | undefined;
4192
+ commit?: string | undefined;
4193
+ digest?: string | undefined;
4194
+ anchor?: string | undefined;
4195
+ url?: string | undefined;
4196
+ revision?: number | undefined;
4197
+ startLine?: number | undefined;
4198
+ endLine?: number | undefined;
4199
+ }[];
4200
+ sourceRead: string[];
4201
+ sourceWrite: string[];
4202
+ };
4203
+ workspace: {
4204
+ mode: "read-only";
4205
+ } | {
4206
+ repository: string;
4207
+ mode: "treedx";
4208
+ workspaceId: string;
4209
+ baseCommit: string;
4210
+ writablePaths: string[];
4211
+ } | {
4212
+ repository: string;
4213
+ branch: string;
4214
+ mode: "git";
4215
+ baseCommit: string;
4216
+ writablePaths: string[];
4217
+ };
4218
+ limits: {
4219
+ maximumSeconds: number;
4220
+ maximumContextBytes: number;
4221
+ maximumContextItems: number;
4222
+ maximumContextTokens?: number | undefined;
4223
+ };
4224
+ estimate: {
4225
+ minimumSeconds: number;
4226
+ expectedSeconds: number;
4227
+ maximumSeconds: number;
4228
+ rationale?: string | undefined;
4229
+ };
4230
+ workdayId: string;
4231
+ nodeRevision: number;
4232
+ graphRevision: number;
4233
+ sourceRef: {
4234
+ id: string;
4235
+ model: string;
4236
+ store: "git" | "url" | "postgresql" | "treedx";
4237
+ path?: string | undefined;
4238
+ repository?: string | undefined;
4239
+ commit?: string | undefined;
4240
+ digest?: string | undefined;
4241
+ anchor?: string | undefined;
4242
+ url?: string | undefined;
4243
+ revision?: number | undefined;
4244
+ startLine?: number | undefined;
4245
+ endLine?: number | undefined;
4246
+ };
4247
+ authorityRefs: {
4248
+ id: string;
4249
+ model: string;
4250
+ store: "git" | "url" | "postgresql" | "treedx";
4251
+ path?: string | undefined;
4252
+ repository?: string | undefined;
4253
+ commit?: string | undefined;
4254
+ digest?: string | undefined;
4255
+ anchor?: string | undefined;
4256
+ url?: string | undefined;
4257
+ revision?: number | undefined;
4258
+ startLine?: number | undefined;
4259
+ endLine?: number | undefined;
4260
+ }[];
4261
+ effectiveProfile: {
4262
+ prompt: {
4263
+ system: string;
4264
+ instructions?: string[] | undefined;
4265
+ };
4266
+ activity: "planning" | "acting" | "estimating" | "reviewing" | "reporting" | "chat";
4267
+ handler: string;
4268
+ profileRef: {
4269
+ id: string;
4270
+ model: string;
4271
+ store: "git" | "url" | "postgresql" | "treedx";
4272
+ path?: string | undefined;
4273
+ repository?: string | undefined;
4274
+ commit?: string | undefined;
4275
+ digest?: string | undefined;
4276
+ anchor?: string | undefined;
4277
+ url?: string | undefined;
4278
+ revision?: number | undefined;
4279
+ startLine?: number | undefined;
4280
+ endLine?: number | undefined;
4281
+ };
4282
+ handlerOrigin: "agent-package" | "project-runtime";
4283
+ permissionCeiling: {
4284
+ content: {
4285
+ read: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
4286
+ write: ("agent" | "knowledge" | "proposal" | "decision" | "objective" | "question" | "discussion" | "note" | "book" | "discussion-message")[];
4287
+ };
4288
+ tools: ("release" | "verification" | "discussion" | "source.read" | "source.write")[];
4289
+ };
4290
+ parameters?: Record<string, unknown> | undefined;
4291
+ additionalContext?: string[] | undefined;
4292
+ };
4293
+ contextRefs: {
4294
+ id: string;
4295
+ model: string;
4296
+ store: "git" | "url" | "postgresql" | "treedx";
4297
+ path?: string | undefined;
4298
+ repository?: string | undefined;
4299
+ commit?: string | undefined;
4300
+ digest?: string | undefined;
4301
+ anchor?: string | undefined;
4302
+ url?: string | undefined;
4303
+ revision?: number | undefined;
4304
+ startLine?: number | undefined;
4305
+ endLine?: number | undefined;
4306
+ }[];
4307
+ predecessorResultIds: string[];
4308
+ deadline: string;
4309
+ leaseId: string;
4310
+ reservationId: string;
4311
+ attempt: number;
4312
+ startedAt?: string | undefined;
4313
+ finishedAt?: string | undefined;
4314
+ workItemId?: string | undefined;
4315
+ acceptanceCriteria?: string[] | undefined;
4316
+ };
4317
+ predecessorResults: {
4318
+ status: "blocked" | "failed" | "completed";
4319
+ id: string;
4320
+ schemaVersion: "treeseed.assignment-result/v1";
4321
+ assignmentId: string;
4322
+ completedAt: string;
4323
+ verification: {
4324
+ status: "passed" | "failed" | "skipped";
4325
+ command: string;
4326
+ exitCode: number;
4327
+ outputDigest: string;
4328
+ durationSeconds?: number | undefined;
4329
+ }[];
4330
+ summary: string;
4331
+ usage: {
4332
+ elapsedSeconds: number;
4333
+ native?: Record<string, number> | undefined;
4334
+ modelInputTokens?: number | undefined;
4335
+ modelOutputTokens?: number | undefined;
4336
+ };
4337
+ diagnostics: {
4338
+ code: string;
4339
+ message: string;
4340
+ severity: "error" | "warning" | "info";
4341
+ ref?: {
4342
+ id: string;
4343
+ model: string;
4344
+ store: "git" | "url" | "postgresql" | "treedx";
4345
+ path?: string | undefined;
4346
+ repository?: string | undefined;
4347
+ commit?: string | undefined;
4348
+ digest?: string | undefined;
4349
+ anchor?: string | undefined;
4350
+ url?: string | undefined;
4351
+ revision?: number | undefined;
4352
+ startLine?: number | undefined;
4353
+ endLine?: number | undefined;
4354
+ } | undefined;
4355
+ }[];
4356
+ references: ({
4357
+ kind: "git";
4358
+ repository: string;
4359
+ commit: string;
4360
+ path?: string | undefined;
4361
+ branch?: string | undefined;
4362
+ } | {
4363
+ path: string;
4364
+ kind: "treedx";
4365
+ repository: string;
4366
+ commit: string;
4367
+ projectId: string;
4368
+ workspaceId?: string | undefined;
4369
+ } | {
4370
+ kind: "url";
4371
+ url: string;
4372
+ digest?: string | undefined;
4373
+ })[];
4374
+ timingAwareness?: {
4375
+ schemaVersion: "treeseed.assignment-timing-awareness/v1";
4376
+ requiredChecks: 2;
4377
+ completedChecks: number;
4378
+ firstTool: "treedx:treeseed_time_status";
4379
+ firstToolSucceeded: true;
4380
+ lastTool: "treedx:treeseed_time_status";
4381
+ lastToolSucceeded: true;
4382
+ firstToolCompliant: true;
4383
+ finalToolCompliant: true;
4384
+ } | undefined;
4385
+ }[];
4386
+ }>;
4387
+ export type ExactEntityReference = z.infer<typeof exactEntityReferenceSchema>;
4388
+ export type AssignmentReference = z.infer<typeof assignmentReferenceSchema>;
4389
+ export type ExactGrant = z.infer<typeof exactGrantSchema>;
4390
+ export type AssignmentWorkspace = z.infer<typeof assignmentWorkspaceSchema>;
4391
+ export type EffectiveActivityProfile = z.infer<typeof effectiveActivityProfileSchema>;
4392
+ export type AssignmentAttempt = z.infer<typeof assignmentAttemptSchema>;
4393
+ export type AssignmentTimingAwarenessReceipt = z.infer<typeof assignmentTimingAwarenessReceiptSchema>;
4394
+ export type AssignmentResult = z.infer<typeof assignmentResultSchema>;
4395
+ export type AssignmentContext = z.infer<typeof assignmentContextSchema>;