@treeseed/sdk 0.13.0-rc.6 → 0.13.0-rc.60

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 (2679) hide show
  1. package/README.md +46 -360
  2. package/dist/.treeseed-build-complete.json +1 -0
  3. package/dist/accounts/account-contracts.d.ts +7 -1
  4. package/dist/agent-capacity/artifacts.d.ts +17 -1
  5. package/dist/agent-capacity/authority/agent-authority-presets.d.ts +1 -1
  6. package/dist/agent-capacity/authority/agent-authority-presets.js +2 -1
  7. package/dist/agent-capacity/contracts/capacity/communication/communication-records.d.ts +1 -1
  8. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +0 -2
  9. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +0 -1
  10. package/dist/agent-capacity/contracts/configuration/configuration.js +6 -6
  11. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -1
  12. package/dist/agent-capacity/contracts/support/decision-work.d.ts +2 -3
  13. package/dist/agent-capacity/validation/activity-profile.js +25 -12
  14. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1497 -1575
  15. package/dist/agent-capacity/validation/agent-definition-schema.js +9 -29
  16. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +47 -47
  17. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  18. package/dist/agent-capacity/validation/configuration.js +1 -2
  19. package/dist/ai-appliance/contracts.d.ts +2 -2
  20. package/dist/ai-appliance/contracts.js +2 -2
  21. package/dist/ai-appliance/validation.js +1 -1
  22. package/dist/capacity/agents/agent-capacity.d.ts +0 -14
  23. package/dist/capacity/agents/agent-capacity.js +0 -20
  24. package/dist/capacity-provider/capability-ontology.d.ts +1206 -0
  25. package/dist/capacity-provider/capability-ontology.js +199 -0
  26. package/dist/capacity-provider/client.d.ts +41 -71
  27. package/dist/capacity-provider/client.js +72 -155
  28. package/dist/capacity-provider/contracts/governance.d.ts +109 -41
  29. package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
  30. package/dist/capacity-provider/core-capability-catalog.js +49 -0
  31. package/dist/capacity-provider/environment-catalog.d.ts +877 -0
  32. package/dist/capacity-provider/environment-catalog.js +116 -0
  33. package/dist/capacity-provider/index.d.ts +4 -5
  34. package/dist/capacity-provider/index.js +4 -5
  35. package/dist/capacity-provider/sandbox-contracts.d.ts +548 -0
  36. package/dist/capacity-provider/sandbox-contracts.js +86 -0
  37. package/dist/capacity-provider/sandbox.d.ts +1 -0
  38. package/dist/capacity-provider/sandbox.js +1 -0
  39. package/dist/capacity-provider/validation.d.ts +2 -2
  40. package/dist/capacity-provider/validation.js +93 -57
  41. package/dist/configuration/secrets-capability.d.ts +0 -1
  42. package/dist/configuration/secrets-capability.js +0 -1
  43. package/dist/content/contracts.d.ts +12 -0
  44. package/dist/content/validation/agent-operational-content-schemas.d.ts +248 -248
  45. package/dist/content/validation/auxiliary-content-schemas.d.ts +218 -218
  46. package/dist/content/validation/auxiliary-content-schemas.js +2 -2
  47. package/dist/content/validation/content-model-schemas.d.ts +3656 -3799
  48. package/dist/content/validation/index.d.ts +1 -0
  49. package/dist/content/validation/index.js +1 -0
  50. package/dist/content/validation/portable-content-data.d.ts +403 -416
  51. package/dist/deployment/ai-mode.d.ts +454 -0
  52. package/dist/deployment/ai-mode.js +67 -0
  53. package/dist/deployment/canonical.d.ts +2 -0
  54. package/dist/deployment/canonical.js +17 -0
  55. package/dist/deployment/catalog.d.ts +16 -0
  56. package/dist/deployment/catalog.js +48 -0
  57. package/dist/deployment/index.d.ts +5 -0
  58. package/dist/deployment/index.js +5 -0
  59. package/dist/deployment/schemas.d.ts +6825 -0
  60. package/dist/deployment/schemas.js +382 -0
  61. package/dist/deployment/topology.d.ts +9 -0
  62. package/dist/deployment/topology.js +35 -0
  63. package/dist/development/index.d.ts +1 -0
  64. package/dist/development/index.js +1 -0
  65. package/dist/development/schemas.d.ts +3409 -0
  66. package/dist/development/schemas.js +199 -0
  67. package/dist/entrypoints/clients/control-plane-client.d.ts +59 -2
  68. package/dist/entrypoints/clients/control-plane-client.js +97 -7
  69. package/dist/entrypoints/models/sdk-types.d.ts +1 -7
  70. package/dist/entrypoints/models/sdk-types.js +1 -7
  71. package/dist/guarantees/evidence-trust.d.ts +32 -0
  72. package/dist/guarantees/evidence-trust.js +47 -0
  73. package/dist/guarantees/index.d.ts +130 -17
  74. package/dist/guarantees/index.js +44 -17
  75. package/dist/knowledge/index.d.ts +0 -8
  76. package/dist/knowledge/index.js +0 -8
  77. package/dist/operator-contracts/canonical-command-tree.js +402 -5
  78. package/dist/operator-contracts/catalog/admin-account-team-operations.d.ts +36 -0
  79. package/dist/operator-contracts/catalog/admin-account-team-operations.js +52 -0
  80. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +163 -0
  81. package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
  82. package/dist/operator-contracts/catalog/communication-operations.d.ts +437 -0
  83. package/dist/operator-contracts/catalog/communication-operations.js +92 -0
  84. package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
  85. package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
  86. package/dist/operator-contracts/catalog/inbox-operations.d.ts +261 -0
  87. package/dist/operator-contracts/catalog/inbox-operations.js +36 -0
  88. package/dist/operator-contracts/catalog/treeai-operations.d.ts +14 -0
  89. package/dist/operator-contracts/catalog/treeai-operations.js +62 -0
  90. package/dist/operator-contracts/command-tree.d.ts +28 -0
  91. package/dist/operator-contracts/command-tree.js +49 -0
  92. package/dist/operator-contracts/communication/addressing.d.ts +8 -0
  93. package/dist/operator-contracts/communication/addressing.js +57 -0
  94. package/dist/operator-contracts/communication/contracts.d.ts +1818 -0
  95. package/dist/operator-contracts/communication/contracts.js +188 -0
  96. package/dist/operator-contracts/control-plane-operation.d.ts +29 -0
  97. package/dist/operator-contracts/control-plane-operation.js +9 -0
  98. package/dist/operator-contracts/control-plane-operations.d.ts +1929 -0
  99. package/dist/operator-contracts/control-plane-operations.js +521 -0
  100. package/dist/operator-contracts/inbox/contracts.d.ts +1099 -0
  101. package/dist/operator-contracts/inbox/contracts.js +134 -0
  102. package/dist/operator-contracts/index.d.ts +6 -0
  103. package/dist/operator-contracts/index.js +6 -0
  104. package/dist/operator-contracts/mcp.d.ts +5 -0
  105. package/dist/operator-contracts/mcp.js +61 -0
  106. package/dist/operator-contracts/oauth.d.ts +53 -0
  107. package/dist/operator-contracts/oauth.js +7 -0
  108. package/dist/operator-contracts/operation-builder.d.ts +17 -0
  109. package/dist/operator-contracts/operation-builder.js +61 -0
  110. package/dist/operator-contracts/seed/seed-bundle.d.ts +138 -0
  111. package/dist/operator-contracts/seed/seed-bundle.js +68 -0
  112. package/dist/sdk-types/configuration/sdk-dispatch-credential-source.d.ts +1 -1
  113. package/dist/sdk-types/control-plane/resource-requests.d.ts +124 -0
  114. package/dist/sdk-types/support/platform-contracts.d.ts +3 -7
  115. package/dist/sdk-types/support/platform-contracts.js +2 -22
  116. package/dist/security/encrypted-envelope.d.ts +177 -0
  117. package/dist/security/encrypted-envelope.js +34 -0
  118. package/dist/security/envelope-codec.d.ts +38 -0
  119. package/dist/security/envelope-codec.js +96 -0
  120. package/dist/security/index.d.ts +2 -0
  121. package/dist/security/index.js +2 -0
  122. package/dist/site-contracts/catalog.d.ts +16 -0
  123. package/dist/site-contracts/catalog.js +19 -0
  124. package/dist/site-contracts/cloudflare.d.ts +48 -0
  125. package/dist/site-contracts/platform.d.ts +94 -0
  126. package/dist/site-contracts/plugin.d.ts +63 -0
  127. package/dist/site-contracts/plugin.js +26 -0
  128. package/dist/treeai/catalog.d.ts +1 -0
  129. package/dist/treeai/catalog.js +1 -0
  130. package/dist/treeai/client.d.ts +913 -0
  131. package/dist/treeai/client.js +44 -0
  132. package/dist/treeai/contract.d.ts +42 -0
  133. package/dist/treeai/contract.js +51 -0
  134. package/dist/treeai/generated/upstream.d.ts +890 -0
  135. package/dist/treeai/generated/upstream.js +4 -0
  136. package/dist/treeai/index.d.ts +4 -0
  137. package/dist/treeai/index.js +4 -0
  138. package/dist/treedx/client.d.ts +597 -0
  139. package/dist/treedx/client.js +39 -0
  140. package/dist/treedx/contract.d.ts +32 -0
  141. package/dist/treedx/contract.js +63 -0
  142. package/dist/treedx/index.d.ts +2 -16
  143. package/dist/treedx/index.js +2 -56
  144. package/dist/treedx/types.d.ts +8 -7
  145. package/dist/treedx/types.js +0 -7
  146. package/dist/types/agents/agent-activity-profile.d.ts +18 -36
  147. package/dist/types/agents/agent-trigger-kinds.d.ts +5 -6
  148. package/dist/types/agents/agent-trigger-kinds.js +1 -13
  149. package/package.json +52 -354
  150. package/dist/agent-capacity/authoring/agent-definition-authoring.d.ts +0 -57
  151. package/dist/agent-capacity/authoring/agent-definition-authoring.js +0 -73
  152. package/dist/agent-capacity/authoring/agent-deployment.d.ts +0 -93
  153. package/dist/agent-capacity/authoring/agent-deployment.js +0 -65
  154. package/dist/agent-capacity/authoring/chat-activity-profile.d.ts +0 -2
  155. package/dist/agent-capacity/authoring/chat-activity-profile.js +0 -91
  156. package/dist/agent-capacity/authoring/group-definition-authoring.d.ts +0 -33
  157. package/dist/agent-capacity/authoring/group-definition-authoring.js +0 -93
  158. package/dist/agent-capacity/authoring/index.d.ts +0 -4
  159. package/dist/agent-capacity/authoring/index.js +0 -4
  160. package/dist/agent-capacity/authority/assignment-authority-probe.d.ts +0 -109
  161. package/dist/agent-capacity/authority/assignment-authority-probe.js +0 -49
  162. package/dist/agent-capacity/contracts/index.d.ts +0 -19
  163. package/dist/agent-capacity/contracts/index.js +0 -19
  164. package/dist/agent-capacity/contracts/support/operator-surface.d.ts +0 -25
  165. package/dist/agent-capacity/contracts/support/operator-surface.js +0 -187
  166. package/dist/agent-capacity/cooperative-planning.d.ts +0 -28
  167. package/dist/agent-capacity/cooperative-planning.js +0 -48
  168. package/dist/agent-capacity/index.d.ts +0 -15
  169. package/dist/agent-capacity/index.js +0 -15
  170. package/dist/agent-capacity/planning-graph.d.ts +0 -77
  171. package/dist/agent-capacity/planning-graph.js +0 -155
  172. package/dist/agent-capacity/policy/capacity/accounting/settlement.d.ts +0 -8
  173. package/dist/agent-capacity/policy/capacity/accounting/settlement.js +0 -50
  174. package/dist/agent-capacity/policy/capacity/assignments/assignment-capability.d.ts +0 -20
  175. package/dist/agent-capacity/policy/capacity/assignments/assignment-capability.js +0 -235
  176. package/dist/agent-capacity/policy/capacity/providers/supply-selection.d.ts +0 -10
  177. package/dist/agent-capacity/policy/capacity/providers/supply-selection.js +0 -31
  178. package/dist/agent-capacity/policy/index.d.ts +0 -12
  179. package/dist/agent-capacity/policy/index.js +0 -12
  180. package/dist/agent-capacity/policy/operations/research-workflow.d.ts +0 -13
  181. package/dist/agent-capacity/policy/operations/research-workflow.js +0 -164
  182. package/dist/agent-capacity/policy/runtime/runtime-diagnostics.d.ts +0 -19
  183. package/dist/agent-capacity/policy/runtime/runtime-diagnostics.js +0 -263
  184. package/dist/agent-capacity/policy/support/decision-work.d.ts +0 -23
  185. package/dist/agent-capacity/policy/support/decision-work.js +0 -482
  186. package/dist/agent-capacity/policy/support/execution-capability.d.ts +0 -60
  187. package/dist/agent-capacity/policy/support/execution-capability.js +0 -368
  188. package/dist/agent-capacity/policy/support/failure-classification.d.ts +0 -6
  189. package/dist/agent-capacity/policy/support/failure-classification.js +0 -32
  190. package/dist/agent-capacity/policy/support/kernel-mode.d.ts +0 -20
  191. package/dist/agent-capacity/policy/support/kernel-mode.js +0 -280
  192. package/dist/agent-capacity/policy/support/mode-primitives.d.ts +0 -8
  193. package/dist/agent-capacity/policy/support/mode-primitives.js +0 -14
  194. package/dist/agent-capacity/policy/support/planning.d.ts +0 -39
  195. package/dist/agent-capacity/policy/support/planning.js +0 -161
  196. package/dist/agent-capacity/policy/support/primitives.d.ts +0 -23
  197. package/dist/agent-capacity/policy/support/primitives.js +0 -186
  198. package/dist/agent-capacity/policy/support/revision-cycle.d.ts +0 -4
  199. package/dist/agent-capacity/policy/support/revision-cycle.js +0 -144
  200. package/dist/agent-capacity/validation/compatibility/agent-definition-compatibility.d.ts +0 -10
  201. package/dist/agent-capacity/validation/compatibility/agent-definition-compatibility.js +0 -100
  202. package/dist/agent-tools/agent-tool-definitions.d.ts +0 -2
  203. package/dist/agent-tools/agent-tool-definitions.js +0 -465
  204. package/dist/agent-tools/agent-tool-execution-target.d.ts +0 -74
  205. package/dist/agent-tools/agent-tool-execution-target.js +0 -76
  206. package/dist/agent-tools/agent-tool-index.d.ts +0 -8
  207. package/dist/agent-tools/agent-tool-index.js +0 -33
  208. package/dist/agent-tools/communication-tool-definitions.d.ts +0 -2
  209. package/dist/agent-tools/communication-tool-definitions.js +0 -85
  210. package/dist/agents/agent-tools.d.ts +0 -3
  211. package/dist/agents/agent-tools.js +0 -3
  212. package/dist/agents/cli-tools.d.ts +0 -3
  213. package/dist/agents/cli-tools.js +0 -46
  214. package/dist/agents/copilot.d.ts +0 -24
  215. package/dist/agents/copilot.js +0 -91
  216. package/dist/ai-appliance/index.d.ts +0 -3
  217. package/dist/ai-appliance/index.js +0 -3
  218. package/dist/ai-appliance/reconciliation.d.ts +0 -18
  219. package/dist/ai-appliance/reconciliation.js +0 -47
  220. package/dist/api/auth/d1-database.d.ts +0 -3
  221. package/dist/api/auth/d1-database.js +0 -20
  222. package/dist/api/auth/d1-provider.d.ts +0 -54
  223. package/dist/api/auth/d1-provider.js +0 -95
  224. package/dist/api/auth/d1-store/accounts/identity/can-adopt-username-match.d.ts +0 -3
  225. package/dist/api/auth/d1-store/accounts/identity/can-adopt-username-match.js +0 -13
  226. package/dist/api/auth/d1-store/accounts/identity/ensure-auth-schema.d.ts +0 -2
  227. package/dist/api/auth/d1-store/accounts/identity/ensure-auth-schema.js +0 -14
  228. package/dist/api/auth/d1-store/accounts/identity/load-user-by-username.d.ts +0 -2
  229. package/dist/api/auth/d1-store/accounts/identity/load-user-by-username.js +0 -6
  230. package/dist/api/auth/d1-store/accounts/identity/load-user-by-verified-email.d.ts +0 -2
  231. package/dist/api/auth/d1-store/accounts/identity/load-user-by-verified-email.js +0 -6
  232. package/dist/api/auth/d1-store/accounts/sessions/authenticate-service.d.ts +0 -6
  233. package/dist/api/auth/d1-store/accounts/sessions/authenticate-service.js +0 -34
  234. package/dist/api/auth/d1-store/accounts/sessions/issue-user-session.d.ts +0 -7
  235. package/dist/api/auth/d1-store/accounts/sessions/issue-user-session.js +0 -69
  236. package/dist/api/auth/d1-store/accounts/tokens/authenticate-bearer-token.d.ts +0 -6
  237. package/dist/api/auth/d1-store/accounts/tokens/authenticate-bearer-token.js +0 -42
  238. package/dist/api/auth/d1-store/accounts/tokens/create-personal-access-token.d.ts +0 -12
  239. package/dist/api/auth/d1-store/accounts/tokens/create-personal-access-token.js +0 -36
  240. package/dist/api/auth/d1-store/accounts/tokens/list-personal-access-tokens.d.ts +0 -2
  241. package/dist/api/auth/d1-store/accounts/tokens/list-personal-access-tokens.js +0 -10
  242. package/dist/api/auth/d1-store/accounts/tokens/refresh-access-token.d.ts +0 -3
  243. package/dist/api/auth/d1-store/accounts/tokens/refresh-access-token.js +0 -46
  244. package/dist/api/auth/d1-store/accounts/tokens/revoke-personal-access-token.d.ts +0 -2
  245. package/dist/api/auth/d1-store/accounts/tokens/revoke-personal-access-token.js +0 -15
  246. package/dist/api/auth/d1-store/capacity/providers/load-identity-by-provider.d.ts +0 -2
  247. package/dist/api/auth/d1-store/capacity/providers/load-identity-by-provider.js +0 -6
  248. package/dist/api/auth/d1-store/commerce/catalog/seed-catalog.d.ts +0 -2
  249. package/dist/api/auth/d1-store/commerce/catalog/seed-catalog.js +0 -27
  250. package/dist/api/auth/d1-store/configuration/create-service-credential.d.ts +0 -7
  251. package/dist/api/auth/d1-store/configuration/create-service-credential.js +0 -10
  252. package/dist/api/auth/d1-store/configuration/rotate-service-credential.d.ts +0 -2
  253. package/dist/api/auth/d1-store/configuration/rotate-service-credential.js +0 -17
  254. package/dist/api/auth/d1-store/configuration/upsert-service-credential.d.ts +0 -8
  255. package/dist/api/auth/d1-store/configuration/upsert-service-credential.js +0 -20
  256. package/dist/api/auth/d1-store/methods.d.ts +0 -40
  257. package/dist/api/auth/d1-store/methods.js +0 -82
  258. package/dist/api/auth/d1-store/runtime/approve-device-flow.d.ts +0 -5
  259. package/dist/api/auth/d1-store/runtime/approve-device-flow.js +0 -27
  260. package/dist/api/auth/d1-store/runtime/poll-device-flow.d.ts +0 -3
  261. package/dist/api/auth/d1-store/runtime/poll-device-flow.js +0 -71
  262. package/dist/api/auth/d1-store/runtime/start-device-flow.d.ts +0 -3
  263. package/dist/api/auth/d1-store/runtime/start-device-flow.js +0 -34
  264. package/dist/api/auth/d1-store/seeds/seed-configured-services.d.ts +0 -2
  265. package/dist/api/auth/d1-store/seeds/seed-configured-services.js +0 -14
  266. package/dist/api/auth/d1-store/support/audit/write-audit-event.d.ts +0 -9
  267. package/dist/api/auth/d1-store/support/audit/write-audit-event.js +0 -18
  268. package/dist/api/auth/d1-store/support/lifecycle/ensure-initialized.d.ts +0 -2
  269. package/dist/api/auth/d1-store/support/lifecycle/ensure-initialized.js +0 -9
  270. package/dist/api/auth/d1-store/support/principals/create-user.d.ts +0 -7
  271. package/dist/api/auth/d1-store/support/principals/create-user.js +0 -30
  272. package/dist/api/auth/d1-store/support/principals/exchange-trusted-user-assertion.d.ts +0 -10
  273. package/dist/api/auth/d1-store/support/principals/exchange-trusted-user-assertion.js +0 -50
  274. package/dist/api/auth/d1-store/support/principals/load-user.d.ts +0 -2
  275. package/dist/api/auth/d1-store/support/principals/load-user.js +0 -6
  276. package/dist/api/auth/d1-store/support/principals/permissions-for-user.d.ts +0 -2
  277. package/dist/api/auth/d1-store/support/principals/permissions-for-user.js +0 -11
  278. package/dist/api/auth/d1-store/support/principals/principal-for-user.d.ts +0 -2
  279. package/dist/api/auth/d1-store/support/principals/principal-for-user.js +0 -27
  280. package/dist/api/auth/d1-store/support/principals/scopes-for-principal.d.ts +0 -2
  281. package/dist/api/auth/d1-store/support/principals/scopes-for-principal.js +0 -13
  282. package/dist/api/auth/d1-store/support/principals/sync-user.d.ts +0 -7
  283. package/dist/api/auth/d1-store/support/principals/sync-user.js +0 -96
  284. package/dist/api/auth/d1-store/support/principals/user-metadata.d.ts +0 -9
  285. package/dist/api/auth/d1-store/support/principals/user-metadata.js +0 -13
  286. package/dist/api/auth/d1-store/support/queries/execute-statement.d.ts +0 -2
  287. package/dist/api/auth/d1-store/support/queries/execute-statement.js +0 -6
  288. package/dist/api/auth/d1-store/support/queries/query-all.d.ts +0 -2
  289. package/dist/api/auth/d1-store/support/queries/query-all.js +0 -7
  290. package/dist/api/auth/d1-store/support/queries/query-first.d.ts +0 -2
  291. package/dist/api/auth/d1-store/support/queries/query-first.js +0 -6
  292. package/dist/api/auth/d1-store/teams/assign-role.d.ts +0 -2
  293. package/dist/api/auth/d1-store/teams/assign-role.js +0 -12
  294. package/dist/api/auth/d1-store/teams/bootstrap-roles-for-user.d.ts +0 -3
  295. package/dist/api/auth/d1-store/teams/bootstrap-roles-for-user.js +0 -22
  296. package/dist/api/auth/d1-store/teams/permissions-for-roles.d.ts +0 -2
  297. package/dist/api/auth/d1-store/teams/permissions-for-roles.js +0 -15
  298. package/dist/api/auth/d1-store/teams/reconcile-bootstrap-admins.d.ts +0 -2
  299. package/dist/api/auth/d1-store/teams/reconcile-bootstrap-admins.js +0 -34
  300. package/dist/api/auth/d1-store/teams/replace-roles.d.ts +0 -2
  301. package/dist/api/auth/d1-store/teams/replace-roles.js +0 -9
  302. package/dist/api/auth/d1-store/teams/roles-for-user.d.ts +0 -2
  303. package/dist/api/auth/d1-store/teams/roles-for-user.js +0 -10
  304. package/dist/api/auth/d1-store/teams/set-user-roles.d.ts +0 -2
  305. package/dist/api/auth/d1-store/teams/set-user-roles.js +0 -25
  306. package/dist/api/auth/d1-store.d.ts +0 -133
  307. package/dist/api/auth/d1-store.js +0 -225
  308. package/dist/api/auth/memory-provider.d.ts +0 -82
  309. package/dist/api/auth/memory-provider.js +0 -297
  310. package/dist/api/auth/rbac.d.ts +0 -27
  311. package/dist/api/auth/rbac.js +0 -171
  312. package/dist/api/auth/tokens.d.ts +0 -18
  313. package/dist/api/auth/tokens.js +0 -56
  314. package/dist/api/auth/trusted-assertion.d.ts +0 -10
  315. package/dist/api/auth/trusted-assertion.js +0 -19
  316. package/dist/api/capacity/providers/providers.d.ts +0 -2
  317. package/dist/api/capacity/providers/providers.js +0 -69
  318. package/dist/api/configuration/config.d.ts +0 -4
  319. package/dist/api/configuration/config.js +0 -149
  320. package/dist/api/hosting/railway.d.ts +0 -53
  321. package/dist/api/hosting/railway.js +0 -71
  322. package/dist/api/index.d.ts +0 -13
  323. package/dist/api/index.js +0 -33
  324. package/dist/api/operations/operations-routes.d.ts +0 -11
  325. package/dist/api/operations/operations-routes.js +0 -39
  326. package/dist/api/operations/operations.d.ts +0 -3
  327. package/dist/api/operations/operations.js +0 -26
  328. package/dist/api/support/app.d.ts +0 -8
  329. package/dist/api/support/app.js +0 -410
  330. package/dist/api/support/http.d.ts +0 -28
  331. package/dist/api/support/http.js +0 -51
  332. package/dist/api/support/sdk-dispatch.d.ts +0 -6
  333. package/dist/api/support/sdk-dispatch.js +0 -14
  334. package/dist/api/support/sdk-routes.d.ts +0 -11
  335. package/dist/api/support/sdk-routes.js +0 -29
  336. package/dist/api/support/templates.d.ts +0 -3
  337. package/dist/api/support/templates.js +0 -31
  338. package/dist/api/types.d.ts +0 -242
  339. package/dist/capacity/accounting/native-capacity.d.ts +0 -12
  340. package/dist/capacity/accounting/native-capacity.js +0 -120
  341. package/dist/capacity-provider/config/environment.d.ts +0 -6
  342. package/dist/capacity-provider/config/environment.js +0 -36
  343. package/dist/capacity-provider/config/index.d.ts +0 -2
  344. package/dist/capacity-provider/config/index.js +0 -2
  345. package/dist/capacity-provider/config/manifest.d.ts +0 -6
  346. package/dist/capacity-provider/config/manifest.js +0 -16
  347. package/dist/capacity-provider/protocol.d.ts +0 -33
  348. package/dist/capacity-provider/protocol.js +0 -38
  349. package/dist/capacity-provider/runtime-status.d.ts +0 -13
  350. package/dist/capacity-provider/runtime-status.js +0 -40
  351. package/dist/capacity-provider/security/http.d.ts +0 -6
  352. package/dist/capacity-provider/security/http.js +0 -15
  353. package/dist/capacity-provider/security/identity.d.ts +0 -20
  354. package/dist/capacity-provider/security/identity.js +0 -65
  355. package/dist/capacity-provider/security/index.d.ts +0 -2
  356. package/dist/capacity-provider/security/index.js +0 -2
  357. package/dist/capacity-provider/timing/assignment-duration.d.ts +0 -9
  358. package/dist/capacity-provider/timing/assignment-duration.js +0 -92
  359. package/dist/capacity-provider/timing/index.d.ts +0 -1
  360. package/dist/capacity-provider/timing/index.js +0 -1
  361. package/dist/commerce/catalog/template-catalog.d.ts +0 -13
  362. package/dist/commerce/catalog/template-catalog.js +0 -149
  363. package/dist/configuration/service-credentials.d.ts +0 -68
  364. package/dist/configuration/service-credentials.js +0 -121
  365. package/dist/content/content-store.d.ts +0 -25
  366. package/dist/content/content-store.js +0 -269
  367. package/dist/content/frontmatter.d.ts +0 -6
  368. package/dist/content/frontmatter.js +0 -33
  369. package/dist/content-sync/index.d.ts +0 -1
  370. package/dist/content-sync/index.js +0 -1
  371. package/dist/content-sync/reconcile.d.ts +0 -28
  372. package/dist/content-sync/reconcile.js +0 -125
  373. package/dist/d1-store/content/try-claim-content-lease.d.ts +0 -2
  374. package/dist/d1-store/content/try-claim-content-lease.js +0 -21
  375. package/dist/d1-store/methods.d.ts +0 -32
  376. package/dist/d1-store/methods.js +0 -66
  377. package/dist/d1-store/packages/get-release.d.ts +0 -2
  378. package/dist/d1-store/packages/get-release.js +0 -6
  379. package/dist/d1-store/packages/get-share-package.d.ts +0 -2
  380. package/dist/d1-store/packages/get-share-package.js +0 -6
  381. package/dist/d1-store/packages/list-releases.d.ts +0 -2
  382. package/dist/d1-store/packages/list-releases.js +0 -6
  383. package/dist/d1-store/packages/list-share-packages.d.ts +0 -2
  384. package/dist/d1-store/packages/list-share-packages.js +0 -6
  385. package/dist/d1-store/packages/release-all-leases.d.ts +0 -2
  386. package/dist/d1-store/packages/release-all-leases.js +0 -8
  387. package/dist/d1-store/packages/release-lease.d.ts +0 -3
  388. package/dist/d1-store/packages/release-lease.js +0 -6
  389. package/dist/d1-store/packages/upsert-release.d.ts +0 -5
  390. package/dist/d1-store/packages/upsert-release.js +0 -6
  391. package/dist/d1-store/packages/upsert-share-package.d.ts +0 -3
  392. package/dist/d1-store/packages/upsert-share-package.js +0 -6
  393. package/dist/d1-store/support/approvals/create-approval-request.d.ts +0 -3
  394. package/dist/d1-store/support/approvals/create-approval-request.js +0 -12
  395. package/dist/d1-store/support/approvals/decide-approval-request.d.ts +0 -3
  396. package/dist/d1-store/support/approvals/decide-approval-request.js +0 -12
  397. package/dist/d1-store/support/approvals/list-approval-requests.d.ts +0 -3
  398. package/dist/d1-store/support/approvals/list-approval-requests.js +0 -7
  399. package/dist/d1-store/support/cursors/get-cursor.d.ts +0 -3
  400. package/dist/d1-store/support/cursors/get-cursor.js +0 -6
  401. package/dist/d1-store/support/cursors/upsert-cursor.d.ts +0 -3
  402. package/dist/d1-store/support/cursors/upsert-cursor.js +0 -6
  403. package/dist/d1-store/support/execution/inspect-leases.d.ts +0 -2
  404. package/dist/d1-store/support/execution/inspect-leases.js +0 -6
  405. package/dist/d1-store/support/execution/inspect-runs.d.ts +0 -2
  406. package/dist/d1-store/support/execution/inspect-runs.js +0 -6
  407. package/dist/d1-store/support/messages/ack-message.d.ts +0 -3
  408. package/dist/d1-store/support/messages/ack-message.js +0 -15
  409. package/dist/d1-store/support/messages/claim-message.d.ts +0 -3
  410. package/dist/d1-store/support/messages/claim-message.js +0 -22
  411. package/dist/d1-store/support/messages/create-message.d.ts +0 -3
  412. package/dist/d1-store/support/messages/create-message.js +0 -26
  413. package/dist/d1-store/support/queries/follow.d.ts +0 -6
  414. package/dist/d1-store/support/queries/follow.js +0 -21
  415. package/dist/d1-store/support/queries/pick.d.ts +0 -3
  416. package/dist/d1-store/support/queries/pick.js +0 -57
  417. package/dist/d1-store/support/queries/search.d.ts +0 -3
  418. package/dist/d1-store/support/queries/search.js +0 -13
  419. package/dist/d1-store/support/records/create-record.d.ts +0 -3
  420. package/dist/d1-store/support/records/create-record.js +0 -70
  421. package/dist/d1-store/support/records/get-record.d.ts +0 -3
  422. package/dist/d1-store/support/records/get-record.js +0 -31
  423. package/dist/d1-store/support/records/record-run.d.ts +0 -3
  424. package/dist/d1-store/support/records/record-run.js +0 -8
  425. package/dist/d1-store/support/records/rows-for-model.d.ts +0 -2
  426. package/dist/d1-store/support/records/rows-for-model.js +0 -36
  427. package/dist/d1-store/support/update.d.ts +0 -3
  428. package/dist/d1-store/support/update.js +0 -67
  429. package/dist/d1-store/support/workstreams/append-workstream-event.d.ts +0 -3
  430. package/dist/d1-store/support/workstreams/append-workstream-event.js +0 -6
  431. package/dist/d1-store/support/workstreams/get-workstream.d.ts +0 -2
  432. package/dist/d1-store/support/workstreams/get-workstream.js +0 -6
  433. package/dist/d1-store/support/workstreams/list-workstreams.d.ts +0 -2
  434. package/dist/d1-store/support/workstreams/list-workstreams.js +0 -6
  435. package/dist/d1-store/support/workstreams/upsert-workstream.d.ts +0 -3
  436. package/dist/d1-store/support/workstreams/upsert-workstream.js +0 -6
  437. package/dist/d1-store/teams/upsert-team-inbox-item.d.ts +0 -3
  438. package/dist/d1-store/teams/upsert-team-inbox-item.js +0 -12
  439. package/dist/db/d1.d.ts +0 -246
  440. package/dist/db/d1.js +0 -8
  441. package/dist/db/index.d.ts +0 -3
  442. package/dist/db/index.js +0 -3
  443. package/dist/db/market-schema/accounts/agent-lab-view-state.d.ts +0 -228
  444. package/dist/db/market-schema/accounts/agent-lab-view-state.js +0 -22
  445. package/dist/db/market-schema/accounts/better-auth-account.d.ts +0 -2491
  446. package/dist/db/market-schema/accounts/better-auth-account.js +0 -248
  447. package/dist/db/market-schema/accounts/notification-events.d.ts +0 -2911
  448. package/dist/db/market-schema/accounts/notification-events.js +0 -252
  449. package/dist/db/market-schema/accounts/team-services.d.ts +0 -1780
  450. package/dist/db/market-schema/accounts/team-services.js +0 -150
  451. package/dist/db/market-schema/agents/agent-context-query-checks.d.ts +0 -296
  452. package/dist/db/market-schema/agents/agent-context-query-checks.js +0 -33
  453. package/dist/db/market-schema/agents/agent-mode-runs.d.ts +0 -3137
  454. package/dist/db/market-schema/agents/agent-mode-runs.js +0 -311
  455. package/dist/db/market-schema/agents/communication-control.d.ts +0 -820
  456. package/dist/db/market-schema/agents/communication-control.js +0 -86
  457. package/dist/db/market-schema/capacity/accounting/capacity-ledger-entries.d.ts +0 -3187
  458. package/dist/db/market-schema/capacity/accounting/capacity-ledger-entries.js +0 -300
  459. package/dist/db/market-schema/capacity/providers/capacity-provider-team-credentials.d.ts +0 -2637
  460. package/dist/db/market-schema/capacity/providers/capacity-provider-team-credentials.js +0 -271
  461. package/dist/db/market-schema/capacity/workdays/capacity-workday-events.d.ts +0 -3882
  462. package/dist/db/market-schema/capacity/workdays/capacity-workday-events.js +0 -373
  463. package/dist/db/market-schema/commerce/capacity/commerce-capacity-listings.d.ts +0 -1681
  464. package/dist/db/market-schema/commerce/capacity/commerce-capacity-listings.js +0 -150
  465. package/dist/db/market-schema/commerce/catalog/catalog-items.d.ts +0 -3076
  466. package/dist/db/market-schema/commerce/catalog/catalog-items.js +0 -263
  467. package/dist/db/market-schema/commerce/catalog/commerce-product-versions.d.ts +0 -2943
  468. package/dist/db/market-schema/commerce/catalog/commerce-product-versions.js +0 -253
  469. package/dist/db/market-schema/commerce/payments/commerce-subscriptions.d.ts +0 -3072
  470. package/dist/db/market-schema/commerce/payments/commerce-subscriptions.js +0 -263
  471. package/dist/db/market-schema/governance/commons/commons-participants.d.ts +0 -3117
  472. package/dist/db/market-schema/governance/commons/commons-participants.js +0 -260
  473. package/dist/db/market-schema/governance/policy/governance-electorate-snapshots.d.ts +0 -2498
  474. package/dist/db/market-schema/governance/policy/governance-electorate-snapshots.js +0 -212
  475. package/dist/db/market-schema/projects/integrations/provider-operations.d.ts +0 -2586
  476. package/dist/db/market-schema/projects/integrations/provider-operations.js +0 -196
  477. package/dist/db/market-schema/projects/knowledge/knowledge-collaboration.d.ts +0 -1426
  478. package/dist/db/market-schema/projects/knowledge/knowledge-collaboration.js +0 -111
  479. package/dist/db/market-schema/projects/knowledge/project-knowledge-governance.d.ts +0 -1269
  480. package/dist/db/market-schema/projects/knowledge/project-knowledge-governance.js +0 -95
  481. package/dist/db/market-schema/projects/knowledge/tree-dx-project-libraries.d.ts +0 -1937
  482. package/dist/db/market-schema/projects/knowledge/tree-dx-project-libraries.js +0 -160
  483. package/dist/db/market-schema/support/feedback.d.ts +0 -1055
  484. package/dist/db/market-schema/support/feedback.js +0 -86
  485. package/dist/db/market-schema/support/market-schema.d.ts +0 -45339
  486. package/dist/db/market-schema/support/market-schema.js +0 -216
  487. package/dist/db/market-schema/support/subscribers.d.ts +0 -3027
  488. package/dist/db/market-schema/support/subscribers.js +0 -267
  489. package/dist/db/market-schema.d.ts +0 -22
  490. package/dist/db/market-schema.js +0 -22
  491. package/dist/db/node-sqlite.d.ts +0 -297
  492. package/dist/db/node-sqlite.js +0 -133
  493. package/dist/db/schema.d.ts +0 -483
  494. package/dist/db/schema.js +0 -29
  495. package/dist/entrypoints/clients/market-client.d.ts +0 -184
  496. package/dist/entrypoints/clients/market-client.js +0 -369
  497. package/dist/entrypoints/clients/remote.d.ts +0 -206
  498. package/dist/entrypoints/clients/remote.js +0 -192
  499. package/dist/entrypoints/dispatch/dispatch.d.ts +0 -4
  500. package/dist/entrypoints/dispatch/dispatch.js +0 -174
  501. package/dist/entrypoints/models/plugin-default.d.ts +0 -28
  502. package/dist/entrypoints/models/plugin-default.js +0 -39
  503. package/dist/entrypoints/models/sdk-dispatch.d.ts +0 -12
  504. package/dist/entrypoints/models/sdk-dispatch.js +0 -126
  505. package/dist/entrypoints/models/sdk-filters.d.ts +0 -4
  506. package/dist/entrypoints/models/sdk-filters.js +0 -74
  507. package/dist/entrypoints/models/sdk.d.ts +0 -138
  508. package/dist/entrypoints/models/sdk.js +0 -379
  509. package/dist/entrypoints/runtime/managed-dependencies.d.ts +0 -6
  510. package/dist/entrypoints/runtime/managed-dependencies.js +0 -6
  511. package/dist/entrypoints/runtime/timing.d.ts +0 -20
  512. package/dist/entrypoints/runtime/timing.js +0 -73
  513. package/dist/entrypoints/runtime/verification.d.ts +0 -3
  514. package/dist/entrypoints/runtime/verification.js +0 -3
  515. package/dist/gateway/admin-passthrough.d.ts +0 -17
  516. package/dist/gateway/admin-passthrough.js +0 -131
  517. package/dist/gateway/admin-route-inventory.d.ts +0 -5
  518. package/dist/gateway/admin-route-inventory.js +0 -27
  519. package/dist/gateway/header-policy.d.ts +0 -3
  520. package/dist/gateway/header-policy.js +0 -38
  521. package/dist/gateway/health.d.ts +0 -9
  522. package/dist/gateway/health.js +0 -26
  523. package/dist/gateway/index.d.ts +0 -7
  524. package/dist/gateway/index.js +0 -8
  525. package/dist/gateway/node-websocket-proxy.d.ts +0 -13
  526. package/dist/gateway/node-websocket-proxy.js +0 -109
  527. package/dist/governance/groups/membership.d.ts +0 -21
  528. package/dist/governance/groups/membership.js +0 -63
  529. package/dist/governance/groups/signal-scope.d.ts +0 -7
  530. package/dist/governance/groups/signal-scope.js +0 -49
  531. package/dist/governance/policy/decision-dependencies.d.ts +0 -21
  532. package/dist/governance/policy/decision-dependencies.js +0 -21
  533. package/dist/governance/policy/governance.d.ts +0 -133
  534. package/dist/governance/policy/governance.js +0 -285
  535. package/dist/governance/policy/proposal-readiness.d.ts +0 -65
  536. package/dist/governance/policy/proposal-readiness.js +0 -68
  537. package/dist/graph/build/build-graph-from-documents.d.ts +0 -9
  538. package/dist/graph/build/build-graph-from-documents.js +0 -401
  539. package/dist/graph/build/md-node.d.ts +0 -46
  540. package/dist/graph/build/md-node.js +0 -210
  541. package/dist/graph/build/parse-graph-document.d.ts +0 -30
  542. package/dist/graph/build/parse-graph-document.js +0 -206
  543. package/dist/graph/build/read-snapshot-file.d.ts +0 -16
  544. package/dist/graph/build/read-snapshot-file.js +0 -177
  545. package/dist/graph/build.d.ts +0 -4
  546. package/dist/graph/build.js +0 -4
  547. package/dist/graph/context-query-readiness.d.ts +0 -49
  548. package/dist/graph/context-query-readiness.js +0 -12
  549. package/dist/graph/context-query-test.d.ts +0 -181
  550. package/dist/graph/context-query-test.js +0 -205
  551. package/dist/graph/dsl.d.ts +0 -20
  552. package/dist/graph/dsl.js +0 -253
  553. package/dist/graph/query/graph-query-engine.d.ts +0 -47
  554. package/dist/graph/query/graph-query-engine.js +0 -363
  555. package/dist/graph/query/relation-to-edge-type.d.ts +0 -12
  556. package/dist/graph/query/relation-to-edge-type.js +0 -91
  557. package/dist/graph/query/stateful-ids.d.ts +0 -2
  558. package/dist/graph/query/stateful-ids.js +0 -12
  559. package/dist/graph/query.d.ts +0 -3
  560. package/dist/graph/query.js +0 -3
  561. package/dist/graph/ranking/create-default-graph-ranking-provider.d.ts +0 -2
  562. package/dist/graph/ranking/create-default-graph-ranking-provider.js +0 -319
  563. package/dist/graph/ranking/default-graph-ranking-provider.d.ts +0 -1
  564. package/dist/graph/ranking/default-graph-ranking-provider.js +0 -5
  565. package/dist/graph/ranking/ranking-field.d.ts +0 -37
  566. package/dist/graph/ranking/ranking-field.js +0 -184
  567. package/dist/graph/ranking.d.ts +0 -3
  568. package/dist/graph/ranking.js +0 -3
  569. package/dist/graph/schema.d.ts +0 -142
  570. package/dist/graph/schema.js +0 -139
  571. package/dist/guarantees/contracts/agent-guarantee-contracts.d.ts +0 -123
  572. package/dist/guarantees/contracts/agent-guarantee-contracts.js +0 -8
  573. package/dist/guarantees/contracts/agent-guarantee-status.d.ts +0 -40
  574. package/dist/guarantees/contracts/agent-guarantee-status.js +0 -119
  575. package/dist/guarantees/contracts/create-agent-guarantee-proof-template.d.ts +0 -94
  576. package/dist/guarantees/contracts/create-agent-guarantee-proof-template.js +0 -21
  577. package/dist/guarantees/contracts/parse-agent-guarantee-contract.d.ts +0 -19
  578. package/dist/guarantees/contracts/parse-agent-guarantee-contract.js +0 -131
  579. package/dist/guarantees/contracts/parse-agent-guarantee-proof.d.ts +0 -10
  580. package/dist/guarantees/contracts/parse-agent-guarantee-proof.js +0 -133
  581. package/dist/guarantees/features/guarantee-source-closure.d.ts +0 -9
  582. package/dist/guarantees/features/guarantee-source-closure.js +0 -50
  583. package/dist/guarantees/features/ui-feature-contract.d.ts +0 -35
  584. package/dist/guarantees/features/ui-feature-contract.js +0 -133
  585. package/dist/guarantees/features/ui-scene-runtime-trust.d.ts +0 -16
  586. package/dist/guarantees/features/ui-scene-runtime-trust.js +0 -33
  587. package/dist/guarantees/index/build-guarantee-dependency-graph.d.ts +0 -21
  588. package/dist/guarantees/index/build-guarantee-dependency-graph.js +0 -248
  589. package/dist/guarantees/index/export-guarantees-csv.d.ts +0 -110
  590. package/dist/guarantees/index/export-guarantees-csv.js +0 -235
  591. package/dist/guarantees/index/guarantee-journey-audit-item.d.ts +0 -225
  592. package/dist/guarantees/index/guarantee-journey-audit-item.js +0 -81
  593. package/dist/guarantees/index/guarantee-schema-version.d.ts +0 -216
  594. package/dist/guarantees/index/guarantee-schema-version.js +0 -10
  595. package/dist/guarantees/index/parse-verifier-registry.d.ts +0 -64
  596. package/dist/guarantees/index/parse-verifier-registry.js +0 -177
  597. package/dist/guarantees/index/plan-guarantees.d.ts +0 -23
  598. package/dist/guarantees/index/plan-guarantees.js +0 -268
  599. package/dist/guarantees/index/run-guarantees.d.ts +0 -48
  600. package/dist/guarantees/index/run-guarantees.js +0 -327
  601. package/dist/guarantees/index/run-verifier-command.d.ts +0 -41
  602. package/dist/guarantees/index/run-verifier-command.js +0 -290
  603. package/dist/guarantees/index/scene-report-evidence-paths.d.ts +0 -77
  604. package/dist/guarantees/index/scene-report-evidence-paths.js +0 -387
  605. package/dist/guarantees/index/walk-files.d.ts +0 -18
  606. package/dist/guarantees/index/walk-files.js +0 -247
  607. package/dist/hosting/apps.d.ts +0 -12
  608. package/dist/hosting/apps.js +0 -107
  609. package/dist/hosting/builtins/all-environments.d.ts +0 -25
  610. package/dist/hosting/builtins/all-environments.js +0 -194
  611. package/dist/hosting/builtins/create-cloudflare-host-adapter.d.ts +0 -4
  612. package/dist/hosting/builtins/create-cloudflare-host-adapter.js +0 -219
  613. package/dist/hosting/builtins/create-default-service-type-adapters.d.ts +0 -24
  614. package/dist/hosting/builtins/create-default-service-type-adapters.js +0 -159
  615. package/dist/hosting/builtins/probe-cloudflare-pages-public-url.d.ts +0 -15
  616. package/dist/hosting/builtins/probe-cloudflare-pages-public-url.js +0 -166
  617. package/dist/hosting/builtins.d.ts +0 -4
  618. package/dist/hosting/builtins.js +0 -4
  619. package/dist/hosting/contracts.d.ts +0 -190
  620. package/dist/hosting/graph/assert-capability-binding.d.ts +0 -37
  621. package/dist/hosting/graph/assert-capability-binding.js +0 -257
  622. package/dist/hosting/graph/build-profile-from-deploy-config.d.ts +0 -2
  623. package/dist/hosting/graph/build-profile-from-deploy-config.js +0 -253
  624. package/dist/hosting/graph/canonical-hosting-node.d.ts +0 -112
  625. package/dist/hosting/graph/canonical-hosting-node.js +0 -155
  626. package/dist/hosting/graph/railway-service-name-max-length.d.ts +0 -40
  627. package/dist/hosting/graph/railway-service-name-max-length.js +0 -190
  628. package/dist/hosting/graph/railway-source-policy.d.ts +0 -27
  629. package/dist/hosting/graph/railway-source-policy.js +0 -170
  630. package/dist/hosting/graph.d.ts +0 -5
  631. package/dist/hosting/graph.js +0 -5
  632. package/dist/hosting/index.d.ts +0 -4
  633. package/dist/hosting/index.js +0 -4
  634. package/dist/index/agent-and-content.d.ts +0 -17
  635. package/dist/index/agent-and-content.js +0 -87
  636. package/dist/index/capacity-and-governance.d.ts +0 -14
  637. package/dist/index/capacity-and-governance.js +0 -45
  638. package/dist/index/database-and-remote.d.ts +0 -10
  639. package/dist/index/database-and-remote.js +0 -53
  640. package/dist/index/graph-and-search.d.ts +0 -5
  641. package/dist/index/graph-and-search.js +0 -21
  642. package/dist/index/operations-and-workflows.d.ts +0 -23
  643. package/dist/index/operations-and-workflows.js +0 -183
  644. package/dist/index/platform-and-hosting.d.ts +0 -8
  645. package/dist/index/platform-and-hosting.js +0 -125
  646. package/dist/index/public-contracts.d.ts +0 -7
  647. package/dist/index/public-contracts.js +0 -15
  648. package/dist/index/publishing-and-runtime.d.ts +0 -12
  649. package/dist/index/publishing-and-runtime.js +0 -81
  650. package/dist/index/templates-and-catalog.d.ts +0 -1
  651. package/dist/index/templates-and-catalog.js +0 -5
  652. package/dist/index.d.ts +0 -10
  653. package/dist/index.js +0 -10
  654. package/dist/knowledge/authoring.d.ts +0 -3
  655. package/dist/knowledge/authoring.js +0 -61
  656. package/dist/knowledge/catalog.d.ts +0 -38
  657. package/dist/knowledge/catalog.js +0 -254
  658. package/dist/knowledge/collaboration.d.ts +0 -89
  659. package/dist/knowledge/collaboration.js +0 -6
  660. package/dist/knowledge/editorial-context.d.ts +0 -22
  661. package/dist/knowledge/editorial-context.js +0 -60
  662. package/dist/knowledge/editorial-review.d.ts +0 -33
  663. package/dist/knowledge/editorial-review.js +0 -30
  664. package/dist/knowledge/markdown.d.ts +0 -3
  665. package/dist/knowledge/markdown.js +0 -130
  666. package/dist/knowledge/publication.d.ts +0 -39
  667. package/dist/knowledge/publication.js +0 -39
  668. package/dist/knowledge/routes.d.ts +0 -3
  669. package/dist/knowledge/routes.js +0 -15
  670. package/dist/knowledge-packs/index.d.ts +0 -2
  671. package/dist/knowledge-packs/index.js +0 -2
  672. package/dist/knowledge-packs/snapshot.d.ts +0 -43
  673. package/dist/knowledge-packs/snapshot.js +0 -89
  674. package/dist/knowledge-packs/zip.d.ts +0 -7
  675. package/dist/knowledge-packs/zip.js +0 -101
  676. package/dist/local-dev/managed-dev-process-spec.d.ts +0 -8
  677. package/dist/local-dev/managed-dev-process-spec.js +0 -207
  678. package/dist/local-dev/managed-dev.d.ts +0 -88
  679. package/dist/local-dev/managed-dev.js +0 -300
  680. package/dist/local-dev/source-closure.d.ts +0 -14
  681. package/dist/local-dev/source-closure.js +0 -154
  682. package/dist/managed-dependencies/collect-native-dependency-repairs.d.ts +0 -28
  683. package/dist/managed-dependencies/collect-native-dependency-repairs.js +0 -246
  684. package/dist/managed-dependencies/dependency-runtime.d.ts +0 -132
  685. package/dist/managed-dependencies/dependency-runtime.js +0 -178
  686. package/dist/managed-dependencies/install-cloudflared.d.ts +0 -2
  687. package/dist/managed-dependencies/install-cloudflared.js +0 -48
  688. package/dist/managed-dependencies/install-gh-act.d.ts +0 -6
  689. package/dist/managed-dependencies/install-gh-act.js +0 -215
  690. package/dist/managed-dependencies/install-gh.d.ts +0 -7
  691. package/dist/managed-dependencies/install-gh.js +0 -274
  692. package/dist/managed-dependencies/redact-sensitive-output.d.ts +0 -38
  693. package/dist/managed-dependencies/redact-sensitive-output.js +0 -207
  694. package/dist/managed-dependencies/run-npm-tool-rebuilds.d.ts +0 -18
  695. package/dist/managed-dependencies/run-npm-tool-rebuilds.js +0 -220
  696. package/dist/market-client/accounts/contracts/account-deletion-blockers.d.ts +0 -2
  697. package/dist/market-client/accounts/contracts/account-deletion-blockers.js +0 -6
  698. package/dist/market-client/accounts/contracts/account-identity.d.ts +0 -2
  699. package/dist/market-client/accounts/contracts/account-identity.js +0 -6
  700. package/dist/market-client/accounts/contracts/local-auth-paths.d.ts +0 -2
  701. package/dist/market-client/accounts/contracts/local-auth-paths.js +0 -6
  702. package/dist/market-client/accounts/contracts/logout.d.ts +0 -2
  703. package/dist/market-client/accounts/contracts/logout.js +0 -9
  704. package/dist/market-client/accounts/contracts/poll-device-login.d.ts +0 -3
  705. package/dist/market-client/accounts/contracts/poll-device-login.js +0 -9
  706. package/dist/market-client/accounts/contracts/web-appearance.d.ts +0 -2
  707. package/dist/market-client/accounts/contracts/web-appearance.js +0 -6
  708. package/dist/market-client/accounts/contracts/web-emails.d.ts +0 -2
  709. package/dist/market-client/accounts/contracts/web-emails.js +0 -6
  710. package/dist/market-client/accounts/contracts/web-notification-preferences.d.ts +0 -2
  711. package/dist/market-client/accounts/contracts/web-notification-preferences.js +0 -6
  712. package/dist/market-client/accounts/contracts/web-notifications.d.ts +0 -2
  713. package/dist/market-client/accounts/contracts/web-notifications.js +0 -6
  714. package/dist/market-client/accounts/contracts/web-sessions.d.ts +0 -2
  715. package/dist/market-client/accounts/contracts/web-sessions.js +0 -6
  716. package/dist/market-client/accounts/creation/add-web-email.d.ts +0 -4
  717. package/dist/market-client/accounts/creation/add-web-email.js +0 -10
  718. package/dist/market-client/accounts/creation/request-web-password-reset.d.ts +0 -4
  719. package/dist/market-client/accounts/creation/request-web-password-reset.js +0 -9
  720. package/dist/market-client/accounts/creation/start-device-login.d.ts +0 -3
  721. package/dist/market-client/accounts/creation/start-device-login.js +0 -9
  722. package/dist/market-client/accounts/lifecycle/complete-web-password-reset.d.ts +0 -5
  723. package/dist/market-client/accounts/lifecycle/complete-web-password-reset.js +0 -9
  724. package/dist/market-client/accounts/lifecycle/confirm-web-email.d.ts +0 -4
  725. package/dist/market-client/accounts/lifecycle/confirm-web-email.js +0 -9
  726. package/dist/market-client/accounts/lifecycle/verify-web-email.d.ts +0 -2
  727. package/dist/market-client/accounts/lifecycle/verify-web-email.js +0 -6
  728. package/dist/market-client/accounts/preferences/account-preferences.d.ts +0 -4
  729. package/dist/market-client/accounts/preferences/account-preferences.js +0 -14
  730. package/dist/market-client/accounts/queries/check-web-email.d.ts +0 -2
  731. package/dist/market-client/accounts/queries/check-web-email.js +0 -6
  732. package/dist/market-client/accounts/queries/check-web-username.d.ts +0 -2
  733. package/dist/market-client/accounts/queries/check-web-username.js +0 -6
  734. package/dist/market-client/accounts/retirement/delete-account.d.ts +0 -6
  735. package/dist/market-client/accounts/retirement/delete-account.js +0 -10
  736. package/dist/market-client/accounts/retirement/delete-web-email.d.ts +0 -2
  737. package/dist/market-client/accounts/retirement/delete-web-email.js +0 -6
  738. package/dist/market-client/accounts/retirement/revoke-web-session.d.ts +0 -2
  739. package/dist/market-client/accounts/retirement/revoke-web-session.js +0 -6
  740. package/dist/market-client/accounts/updates/mark-web-notification-read.d.ts +0 -2
  741. package/dist/market-client/accounts/updates/mark-web-notification-read.js +0 -6
  742. package/dist/market-client/accounts/updates/refresh-token.d.ts +0 -3
  743. package/dist/market-client/accounts/updates/refresh-token.js +0 -9
  744. package/dist/market-client/accounts/updates/set-primary-web-email.d.ts +0 -2
  745. package/dist/market-client/accounts/updates/set-primary-web-email.js +0 -6
  746. package/dist/market-client/accounts/updates/update-web-appearance.d.ts +0 -10
  747. package/dist/market-client/accounts/updates/update-web-appearance.js +0 -10
  748. package/dist/market-client/accounts/updates/update-web-notification-preferences.d.ts +0 -3
  749. package/dist/market-client/accounts/updates/update-web-notification-preferences.js +0 -6
  750. package/dist/market-client/accounts/updates/update-web-password.d.ts +0 -6
  751. package/dist/market-client/accounts/updates/update-web-password.js +0 -10
  752. package/dist/market-client/agent-lab-interface.d.ts +0 -12
  753. package/dist/market-client/agents/creation/create-structured-agent-estimate.d.ts +0 -2
  754. package/dist/market-client/agents/creation/create-structured-agent-estimate.js +0 -6
  755. package/dist/market-client/agents/lifecycle/accept-structured-agent-estimate.d.ts +0 -2
  756. package/dist/market-client/agents/lifecycle/accept-structured-agent-estimate.js +0 -6
  757. package/dist/market-client/capacity/accounting/contracts/capacity-ledger.d.ts +0 -7
  758. package/dist/market-client/capacity/accounting/contracts/capacity-ledger.js +0 -6
  759. package/dist/market-client/capacity/accounting/contracts/capacity-reservation-explanation.d.ts +0 -2
  760. package/dist/market-client/capacity/accounting/contracts/capacity-reservation-explanation.js +0 -6
  761. package/dist/market-client/capacity/accounting/contracts/capacity-reservations.d.ts +0 -7
  762. package/dist/market-client/capacity/accounting/contracts/capacity-reservations.js +0 -6
  763. package/dist/market-client/capacity/accounting/contracts/capacity-usage.d.ts +0 -7
  764. package/dist/market-client/capacity/accounting/contracts/capacity-usage.js +0 -6
  765. package/dist/market-client/capacity/accounting/lifecycle/decide-capacity-overrun.d.ts +0 -4
  766. package/dist/market-client/capacity/accounting/lifecycle/decide-capacity-overrun.js +0 -6
  767. package/dist/market-client/capacity/admission/contracts/team-capacity-registration-key.d.ts +0 -2
  768. package/dist/market-client/capacity/admission/contracts/team-capacity-registration-key.js +0 -6
  769. package/dist/market-client/capacity/admission/lifecycle/enable-team-capacity-registration-key.d.ts +0 -2
  770. package/dist/market-client/capacity/admission/lifecycle/enable-team-capacity-registration-key.js +0 -6
  771. package/dist/market-client/capacity/admission/lifecycle/reveal-team-capacity-registration-key.d.ts +0 -2
  772. package/dist/market-client/capacity/admission/lifecycle/reveal-team-capacity-registration-key.js +0 -6
  773. package/dist/market-client/capacity/admission/retirement/disable-team-capacity-registration-key.d.ts +0 -2
  774. package/dist/market-client/capacity/admission/retirement/disable-team-capacity-registration-key.js +0 -6
  775. package/dist/market-client/capacity/admission/updates/rotate-team-capacity-registration-key.d.ts +0 -2
  776. package/dist/market-client/capacity/admission/updates/rotate-team-capacity-registration-key.js +0 -6
  777. package/dist/market-client/capacity/admission/updates/update-team-capacity-registration-key-status.d.ts +0 -2
  778. package/dist/market-client/capacity/admission/updates/update-team-capacity-registration-key-status.js +0 -6
  779. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-set.d.ts +0 -2
  780. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-set.js +0 -6
  781. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-sets.d.ts +0 -5
  782. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-sets.js +0 -11
  783. package/dist/market-client/capacity/allocations/contracts/capacity-grant.d.ts +0 -2
  784. package/dist/market-client/capacity/allocations/contracts/capacity-grant.js +0 -6
  785. package/dist/market-client/capacity/allocations/contracts/capacity-grants.d.ts +0 -5
  786. package/dist/market-client/capacity/allocations/contracts/capacity-grants.js +0 -11
  787. package/dist/market-client/capacity/allocations/creation/create-capacity-allocation-set.d.ts +0 -2
  788. package/dist/market-client/capacity/allocations/creation/create-capacity-allocation-set.js +0 -6
  789. package/dist/market-client/capacity/allocations/creation/create-capacity-grant.d.ts +0 -2
  790. package/dist/market-client/capacity/allocations/creation/create-capacity-grant.js +0 -6
  791. package/dist/market-client/capacity/allocations/creation/plan-capacity-allocation-set.d.ts +0 -2
  792. package/dist/market-client/capacity/allocations/creation/plan-capacity-allocation-set.js +0 -6
  793. package/dist/market-client/capacity/allocations/creation/plan-capacity-grant.d.ts +0 -2
  794. package/dist/market-client/capacity/allocations/creation/plan-capacity-grant.js +0 -6
  795. package/dist/market-client/capacity/allocations/lifecycle/activate-capacity-allocation-set.d.ts +0 -2
  796. package/dist/market-client/capacity/allocations/lifecycle/activate-capacity-allocation-set.js +0 -6
  797. package/dist/market-client/capacity/allocations/queries/explain-capacity-allocation-set.d.ts +0 -2
  798. package/dist/market-client/capacity/allocations/queries/explain-capacity-allocation-set.js +0 -6
  799. package/dist/market-client/capacity/allocations/retirement/archive-capacity-allocation-set.d.ts +0 -2
  800. package/dist/market-client/capacity/allocations/retirement/archive-capacity-allocation-set.js +0 -6
  801. package/dist/market-client/capacity/allocations/updates/supersede-capacity-allocation-set.d.ts +0 -2
  802. package/dist/market-client/capacity/allocations/updates/supersede-capacity-allocation-set.js +0 -6
  803. package/dist/market-client/capacity/allocations/updates/transition-capacity-grant.d.ts +0 -2
  804. package/dist/market-client/capacity/allocations/updates/transition-capacity-grant.js +0 -6
  805. package/dist/market-client/capacity/assignments/contracts/assignment-authority-probe.d.ts +0 -2
  806. package/dist/market-client/capacity/assignments/contracts/assignment-authority-probe.js +0 -6
  807. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignment.d.ts +0 -2
  808. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignment.js +0 -6
  809. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignments.d.ts +0 -12
  810. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignments.js +0 -26
  811. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graph.d.ts +0 -2
  812. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graph.js +0 -6
  813. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graphs.d.ts +0 -4
  814. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graphs.js +0 -7
  815. package/dist/market-client/capacity/assignments/contracts/provider-assignment-explanation.d.ts +0 -2
  816. package/dist/market-client/capacity/assignments/contracts/provider-assignment-explanation.js +0 -6
  817. package/dist/market-client/capacity/assignments/lifecycle/admit-capacity-assignment.d.ts +0 -2
  818. package/dist/market-client/capacity/assignments/lifecycle/admit-capacity-assignment.js +0 -6
  819. package/dist/market-client/capacity/assignments/lifecycle/integrate-assignment-content.d.ts +0 -10
  820. package/dist/market-client/capacity/assignments/lifecycle/integrate-assignment-content.js +0 -9
  821. package/dist/market-client/capacity/assignments/lifecycle/requeue-capacity-assignment.d.ts +0 -5
  822. package/dist/market-client/capacity/assignments/lifecycle/requeue-capacity-assignment.js +0 -6
  823. package/dist/market-client/capacity/assignments/retirement/abandon-assignment-content.d.ts +0 -9
  824. package/dist/market-client/capacity/assignments/retirement/abandon-assignment-content.js +0 -9
  825. package/dist/market-client/capacity/assignments/retirement/cancel-capacity-assignment.d.ts +0 -5
  826. package/dist/market-client/capacity/assignments/retirement/cancel-capacity-assignment.js +0 -6
  827. package/dist/market-client/capacity/capacity-core/contracts/capacity-audit-events.d.ts +0 -11
  828. package/dist/market-client/capacity/capacity-core/contracts/capacity-audit-events.js +0 -11
  829. package/dist/market-client/capacity/observability/contracts/agent-lab.d.ts +0 -27
  830. package/dist/market-client/capacity/observability/contracts/agent-lab.js +0 -37
  831. package/dist/market-client/capacity/observability/contracts/capacity-evidence-page.d.ts +0 -7
  832. package/dist/market-client/capacity/observability/contracts/capacity-evidence-page.js +0 -13
  833. package/dist/market-client/capacity/observability/contracts/project-capacity-diagnostics.d.ts +0 -2
  834. package/dist/market-client/capacity/observability/contracts/project-capacity-diagnostics.js +0 -7
  835. package/dist/market-client/capacity/observability/contracts/project-capacity-runtime-diagnostics.d.ts +0 -2
  836. package/dist/market-client/capacity/observability/contracts/project-capacity-runtime-diagnostics.js +0 -7
  837. package/dist/market-client/capacity/planning/contracts/capacity-plan.d.ts +0 -2
  838. package/dist/market-client/capacity/planning/contracts/capacity-plan.js +0 -6
  839. package/dist/market-client/capacity/planning/contracts/decision-capacity-plans.d.ts +0 -4
  840. package/dist/market-client/capacity/planning/contracts/decision-capacity-plans.js +0 -7
  841. package/dist/market-client/capacity/planning/creation/create-decision-capacity-plan.d.ts +0 -2
  842. package/dist/market-client/capacity/planning/creation/create-decision-capacity-plan.js +0 -6
  843. package/dist/market-client/capacity/planning/creation/request-capacity-plan-revision.d.ts +0 -2
  844. package/dist/market-client/capacity/planning/creation/request-capacity-plan-revision.js +0 -6
  845. package/dist/market-client/capacity/planning/lifecycle/accept-capacity-plan.d.ts +0 -2
  846. package/dist/market-client/capacity/planning/lifecycle/accept-capacity-plan.js +0 -6
  847. package/dist/market-client/capacity/planning/lifecycle/schedule-capacity-plan.d.ts +0 -2
  848. package/dist/market-client/capacity/planning/lifecycle/schedule-capacity-plan.js +0 -6
  849. package/dist/market-client/capacity/planning/updates/supersede-capacity-plan.d.ts +0 -2
  850. package/dist/market-client/capacity/planning/updates/supersede-capacity-plan.js +0 -6
  851. package/dist/market-client/capacity/providers/contracts/auth-providers.d.ts +0 -2
  852. package/dist/market-client/capacity/providers/contracts/auth-providers.js +0 -6
  853. package/dist/market-client/capacity/providers/contracts/capacity-provider-credentials.d.ts +0 -6
  854. package/dist/market-client/capacity/providers/contracts/capacity-provider-credentials.js +0 -13
  855. package/dist/market-client/capacity/providers/contracts/capacity-provider-membership.d.ts +0 -2
  856. package/dist/market-client/capacity/providers/contracts/capacity-provider-membership.js +0 -6
  857. package/dist/market-client/capacity/providers/contracts/capacity-provider-memberships.d.ts +0 -7
  858. package/dist/market-client/capacity/providers/contracts/capacity-provider-memberships.js +0 -15
  859. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-request.d.ts +0 -2
  860. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-request.js +0 -6
  861. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-requests.d.ts +0 -6
  862. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-requests.js +0 -13
  863. package/dist/market-client/capacity/providers/contracts/provider-availability-sessions.d.ts +0 -7
  864. package/dist/market-client/capacity/providers/contracts/provider-availability-sessions.js +0 -16
  865. package/dist/market-client/capacity/providers/lifecycle/authorize-capacity-provider-credential-rotation.d.ts +0 -2
  866. package/dist/market-client/capacity/providers/lifecycle/authorize-capacity-provider-credential-rotation.js +0 -6
  867. package/dist/market-client/capacity/providers/lifecycle/resume-capacity-provider-membership.d.ts +0 -2
  868. package/dist/market-client/capacity/providers/lifecycle/resume-capacity-provider-membership.js +0 -6
  869. package/dist/market-client/capacity/providers/lifecycle/review-capacity-provider-registration.d.ts +0 -5
  870. package/dist/market-client/capacity/providers/lifecycle/review-capacity-provider-registration.js +0 -6
  871. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-credential.d.ts +0 -2
  872. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-credential.js +0 -6
  873. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-membership.d.ts +0 -2
  874. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-membership.js +0 -6
  875. package/dist/market-client/capacity/providers/retirement/suspend-capacity-provider-membership.d.ts +0 -2
  876. package/dist/market-client/capacity/providers/retirement/suspend-capacity-provider-membership.js +0 -6
  877. package/dist/market-client/capacity/providers/updates/update-capacity-provider-membership-status.d.ts +0 -2
  878. package/dist/market-client/capacity/providers/updates/update-capacity-provider-membership-status.js +0 -6
  879. package/dist/market-client/capacity/workdays/contracts/workday-events.d.ts +0 -5
  880. package/dist/market-client/capacity/workdays/contracts/workday-events.js +0 -11
  881. package/dist/market-client/capacity/workdays/contracts/workday-run.d.ts +0 -2
  882. package/dist/market-client/capacity/workdays/contracts/workday-run.js +0 -6
  883. package/dist/market-client/capacity/workdays/contracts/workday-runs.d.ts +0 -7
  884. package/dist/market-client/capacity/workdays/contracts/workday-runs.js +0 -16
  885. package/dist/market-client/capacity/workdays/contracts/workday-summary.d.ts +0 -6
  886. package/dist/market-client/capacity/workdays/contracts/workday-summary.js +0 -14
  887. package/dist/market-client/capacity/workdays/contracts/workday.d.ts +0 -2
  888. package/dist/market-client/capacity/workdays/contracts/workday.js +0 -6
  889. package/dist/market-client/capacity/workdays/creation/create-workday-event.d.ts +0 -2
  890. package/dist/market-client/capacity/workdays/creation/create-workday-event.js +0 -6
  891. package/dist/market-client/capacity/workdays/creation/create-workday-run.d.ts +0 -2
  892. package/dist/market-client/capacity/workdays/creation/create-workday-run.js +0 -6
  893. package/dist/market-client/capacity/workdays/creation/create-workday.d.ts +0 -2
  894. package/dist/market-client/capacity/workdays/creation/create-workday.js +0 -6
  895. package/dist/market-client/capacity/workdays/creation/preflight-workday-run.d.ts +0 -2
  896. package/dist/market-client/capacity/workdays/creation/preflight-workday-run.js +0 -6
  897. package/dist/market-client/capacity/workdays/creation/start-workday.d.ts +0 -2
  898. package/dist/market-client/capacity/workdays/creation/start-workday.js +0 -6
  899. package/dist/market-client/capacity/workdays/lifecycle/close-workday-admission.d.ts +0 -29
  900. package/dist/market-client/capacity/workdays/lifecycle/close-workday-admission.js +0 -9
  901. package/dist/market-client/capacity/workdays/lifecycle/complete-workday.d.ts +0 -2
  902. package/dist/market-client/capacity/workdays/lifecycle/complete-workday.js +0 -6
  903. package/dist/market-client/capacity/workdays/lifecycle/pause-workday.d.ts +0 -2
  904. package/dist/market-client/capacity/workdays/lifecycle/pause-workday.js +0 -6
  905. package/dist/market-client/capacity/workdays/lifecycle/resume-workday.d.ts +0 -2
  906. package/dist/market-client/capacity/workdays/lifecycle/resume-workday.js +0 -6
  907. package/dist/market-client/capacity/workdays/lifecycle/tick-workday-run.d.ts +0 -5
  908. package/dist/market-client/capacity/workdays/lifecycle/tick-workday-run.js +0 -6
  909. package/dist/market-client/capacity/workdays/retirement/cancel-workday.d.ts +0 -2
  910. package/dist/market-client/capacity/workdays/retirement/cancel-workday.js +0 -6
  911. package/dist/market-client/capacity/workdays/updates/update-workday-run.d.ts +0 -2
  912. package/dist/market-client/capacity/workdays/updates/update-workday-run.js +0 -6
  913. package/dist/market-client/commerce/catalog/contracts/catalog.d.ts +0 -2
  914. package/dist/market-client/commerce/catalog/contracts/catalog.js +0 -7
  915. package/dist/market-client/discussions/contracts/discussions.d.ts +0 -27
  916. package/dist/market-client/discussions/contracts/discussions.js +0 -21
  917. package/dist/market-client/interface.d.ts +0 -192
  918. package/dist/market-client/interface.js +0 -0
  919. package/dist/market-client/internal-capacity-allocation.d.ts +0 -4
  920. package/dist/market-client/internal-capacity-allocation.js +0 -17
  921. package/dist/market-client/methods.d.ts +0 -2
  922. package/dist/market-client/methods.js +0 -396
  923. package/dist/market-client/operations/contracts/research-workflow.d.ts +0 -2
  924. package/dist/market-client/operations/contracts/research-workflow.js +0 -6
  925. package/dist/market-client/operations/creation/create-research-workflow.d.ts +0 -2
  926. package/dist/market-client/operations/creation/create-research-workflow.js +0 -6
  927. package/dist/market-client/project-agent-interface.d.ts +0 -15
  928. package/dist/market-client/project-agent-interface.js +0 -0
  929. package/dist/market-client/projects/access/contracts/project-access.d.ts +0 -2
  930. package/dist/market-client/projects/access/contracts/project-access.js +0 -6
  931. package/dist/market-client/projects/agents/contracts/agent-deployments.d.ts +0 -34
  932. package/dist/market-client/projects/agents/contracts/agent-deployments.js +0 -22
  933. package/dist/market-client/projects/agents/contracts/project-agent-authoring-draft.d.ts +0 -10
  934. package/dist/market-client/projects/agents/contracts/project-agent-authoring-draft.js +0 -13
  935. package/dist/market-client/projects/agents/contracts/project-agent-class.d.ts +0 -2
  936. package/dist/market-client/projects/agents/contracts/project-agent-class.js +0 -6
  937. package/dist/market-client/projects/agents/contracts/project-agent-classes.d.ts +0 -5
  938. package/dist/market-client/projects/agents/contracts/project-agent-classes.js +0 -11
  939. package/dist/market-client/projects/agents/contracts/project-agent-fallback-outputs.d.ts +0 -8
  940. package/dist/market-client/projects/agents/contracts/project-agent-fallback-outputs.js +0 -17
  941. package/dist/market-client/projects/agents/contracts/project-agent-mode-runs.d.ts +0 -8
  942. package/dist/market-client/projects/agents/contracts/project-agent-mode-runs.js +0 -18
  943. package/dist/market-client/projects/agents/contracts/project-context-query-checks.d.ts +0 -2
  944. package/dist/market-client/projects/agents/contracts/project-context-query-checks.js +0 -6
  945. package/dist/market-client/projects/agents/creation/author-project-agent.d.ts +0 -10
  946. package/dist/market-client/projects/agents/creation/author-project-agent.js +0 -10
  947. package/dist/market-client/projects/agents/creation/author-project-definitions.d.ts +0 -12
  948. package/dist/market-client/projects/agents/creation/author-project-definitions.js +0 -10
  949. package/dist/market-client/projects/agents/creation/check-project-context-query.d.ts +0 -7
  950. package/dist/market-client/projects/agents/creation/check-project-context-query.js +0 -11
  951. package/dist/market-client/projects/agents/creation/create-project-agent-class.d.ts +0 -2
  952. package/dist/market-client/projects/agents/creation/create-project-agent-class.js +0 -6
  953. package/dist/market-client/projects/agents/creation/launch-project-agent-simulation.d.ts +0 -8
  954. package/dist/market-client/projects/agents/creation/launch-project-agent-simulation.js +0 -10
  955. package/dist/market-client/projects/agents/updates/update-project-agent-class.d.ts +0 -2
  956. package/dist/market-client/projects/agents/updates/update-project-agent-class.js +0 -6
  957. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-library.d.ts +0 -2
  958. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-library.js +0 -6
  959. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-proxy-audit.d.ts +0 -7
  960. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-proxy-audit.js +0 -15
  961. package/dist/market-client/projects/knowledge/creation/upsert-project-tree-dx-library.d.ts +0 -3
  962. package/dist/market-client/projects/knowledge/creation/upsert-project-tree-dx-library.js +0 -6
  963. package/dist/market-client/projects/projects-core/contracts/dispatch-project-workflow-operation.d.ts +0 -2
  964. package/dist/market-client/projects/projects-core/contracts/dispatch-project-workflow-operation.js +0 -6
  965. package/dist/market-client/projects/projects-core/contracts/project-deletion-blockers.d.ts +0 -2
  966. package/dist/market-client/projects/projects-core/contracts/project-deletion-blockers.js +0 -6
  967. package/dist/market-client/projects/projects-core/contracts/project-workflow-operations.d.ts +0 -10
  968. package/dist/market-client/projects/projects-core/contracts/project-workflow-operations.js +0 -50
  969. package/dist/market-client/projects/projects-core/contracts/projects.d.ts +0 -2
  970. package/dist/market-client/projects/projects-core/contracts/projects.js +0 -7
  971. package/dist/market-client/projects/projects-core/creation/create-project.d.ts +0 -8
  972. package/dist/market-client/projects/projects-core/creation/create-project.js +0 -6
  973. package/dist/market-client/projects/projects-core/retirement/delete-project.d.ts +0 -2
  974. package/dist/market-client/projects/projects-core/retirement/delete-project.js +0 -6
  975. package/dist/market-client/projects/projects-core/updates/set-project-inventory-status.d.ts +0 -3
  976. package/dist/market-client/projects/projects-core/updates/set-project-inventory-status.js +0 -10
  977. package/dist/market-client/projects/repositories/contracts/project-repository-topology.d.ts +0 -2
  978. package/dist/market-client/projects/repositories/contracts/project-repository-topology.js +0 -6
  979. package/dist/market-client/projects/repositories/updates/update-project-repository-topology.d.ts +0 -3
  980. package/dist/market-client/projects/repositories/updates/update-project-repository-topology.js +0 -6
  981. package/dist/market-client/seeds/creation/apply-seed.d.ts +0 -2
  982. package/dist/market-client/seeds/creation/apply-seed.js +0 -6
  983. package/dist/market-client/seeds/creation/export-seed.d.ts +0 -2
  984. package/dist/market-client/seeds/creation/export-seed.js +0 -6
  985. package/dist/market-client/seeds/creation/plan-seed.d.ts +0 -2
  986. package/dist/market-client/seeds/creation/plan-seed.js +0 -6
  987. package/dist/market-client/seeds/interface.d.ts +0 -10
  988. package/dist/market-client/seeds/interface.js +0 -0
  989. package/dist/market-client/seeds/queries/list-seed-runs.d.ts +0 -2
  990. package/dist/market-client/seeds/queries/list-seed-runs.js +0 -7
  991. package/dist/market-client/seeds/queries/resolve-seed-resources.d.ts +0 -9
  992. package/dist/market-client/seeds/queries/resolve-seed-resources.js +0 -10
  993. package/dist/market-client/support/creation/create-decision-execution-input.d.ts +0 -2
  994. package/dist/market-client/support/creation/create-decision-execution-input.js +0 -6
  995. package/dist/market-client/support/creation/create-personal-theme.d.ts +0 -3
  996. package/dist/market-client/support/creation/create-personal-theme.js +0 -6
  997. package/dist/market-client/support/creation/create-planning-input-request.d.ts +0 -2
  998. package/dist/market-client/support/creation/create-planning-input-request.js +0 -6
  999. package/dist/market-client/support/creation/request-decision-execution-input-revision.d.ts +0 -2
  1000. package/dist/market-client/support/creation/request-decision-execution-input-revision.js +0 -6
  1001. package/dist/market-client/support/creation/request-first.d.ts +0 -7
  1002. package/dist/market-client/support/creation/request-first.js +0 -19
  1003. package/dist/market-client/support/delivery/artifact-download.d.ts +0 -2
  1004. package/dist/market-client/support/delivery/artifact-download.js +0 -6
  1005. package/dist/market-client/support/delivery/deliverable-manifest.d.ts +0 -4
  1006. package/dist/market-client/support/delivery/deliverable-manifest.js +0 -14
  1007. package/dist/market-client/support/identity/markets.d.ts +0 -2
  1008. package/dist/market-client/support/identity/markets.js +0 -6
  1009. package/dist/market-client/support/identity/me.d.ts +0 -2
  1010. package/dist/market-client/support/identity/me.js +0 -6
  1011. package/dist/market-client/support/identity/personal-themes.d.ts +0 -2
  1012. package/dist/market-client/support/identity/personal-themes.js +0 -6
  1013. package/dist/market-client/support/identity/web-sign-in.d.ts +0 -7
  1014. package/dist/market-client/support/identity/web-sign-in.js +0 -9
  1015. package/dist/market-client/support/identity/web-sign-up.d.ts +0 -9
  1016. package/dist/market-client/support/identity/web-sign-up.js +0 -9
  1017. package/dist/market-client/support/lifecycle/accept-decision-execution-input.d.ts +0 -2
  1018. package/dist/market-client/support/lifecycle/accept-decision-execution-input.js +0 -6
  1019. package/dist/market-client/support/planning/decision-execution-inputs.d.ts +0 -4
  1020. package/dist/market-client/support/planning/decision-execution-inputs.js +0 -7
  1021. package/dist/market-client/support/planning/decision-planning-status.d.ts +0 -2
  1022. package/dist/market-client/support/planning/decision-planning-status.js +0 -6
  1023. package/dist/market-client/support/planning/decision-structured-estimates.d.ts +0 -2
  1024. package/dist/market-client/support/planning/decision-structured-estimates.js +0 -7
  1025. package/dist/market-client/support/planning/execution-runs.d.ts +0 -12
  1026. package/dist/market-client/support/planning/execution-runs.js +0 -11
  1027. package/dist/market-client/support/preferences/request.d.ts +0 -7
  1028. package/dist/market-client/support/preferences/request.js +0 -36
  1029. package/dist/market-client/support/queries/current-market.d.ts +0 -2
  1030. package/dist/market-client/support/queries/current-market.js +0 -6
  1031. package/dist/market-client/support/retirement/delete-personal-theme.d.ts +0 -2
  1032. package/dist/market-client/support/retirement/delete-personal-theme.js +0 -6
  1033. package/dist/market-client/support/updates/update-personal-theme.d.ts +0 -3
  1034. package/dist/market-client/support/updates/update-personal-theme.js +0 -6
  1035. package/dist/market-client/support/updates/update-web-profile.d.ts +0 -5
  1036. package/dist/market-client/support/updates/update-web-profile.js +0 -10
  1037. package/dist/market-client/teams/contracts/team-deletion-blockers.d.ts +0 -2
  1038. package/dist/market-client/teams/contracts/team-deletion-blockers.js +0 -6
  1039. package/dist/market-client/teams/contracts/team-members.d.ts +0 -2
  1040. package/dist/market-client/teams/contracts/team-members.js +0 -6
  1041. package/dist/market-client/teams/contracts/team-permissions.d.ts +0 -2
  1042. package/dist/market-client/teams/contracts/team-permissions.js +0 -6
  1043. package/dist/market-client/teams/contracts/teams.d.ts +0 -2
  1044. package/dist/market-client/teams/contracts/teams.js +0 -6
  1045. package/dist/market-client/teams/creation/create-team.d.ts +0 -6
  1046. package/dist/market-client/teams/creation/create-team.js +0 -10
  1047. package/dist/market-client/teams/lifecycle/team-lifecycle.d.ts +0 -22
  1048. package/dist/market-client/teams/lifecycle/team-lifecycle.js +0 -30
  1049. package/dist/market-client/treedx/graph/contracts/tree-dx-build-context.d.ts +0 -2
  1050. package/dist/market-client/treedx/graph/contracts/tree-dx-build-context.js +0 -6
  1051. package/dist/market-client/treedx/repositories/contracts/team-tree-dx.d.ts +0 -2
  1052. package/dist/market-client/treedx/repositories/contracts/team-tree-dx.js +0 -6
  1053. package/dist/market-client/treedx/repositories/contracts/tree-dx-mirrors.d.ts +0 -2
  1054. package/dist/market-client/treedx/repositories/contracts/tree-dx-mirrors.js +0 -6
  1055. package/dist/market-client/treedx/repositories/contracts/tree-dx-read-repository-files.d.ts +0 -2
  1056. package/dist/market-client/treedx/repositories/contracts/tree-dx-read-repository-files.js +0 -6
  1057. package/dist/market-client/treedx/repositories/contracts/tree-dx-shares.d.ts +0 -2
  1058. package/dist/market-client/treedx/repositories/contracts/tree-dx-shares.js +0 -6
  1059. package/dist/market-client/treedx/repositories/creation/create-tree-dx-mirror.d.ts +0 -3
  1060. package/dist/market-client/treedx/repositories/creation/create-tree-dx-mirror.js +0 -6
  1061. package/dist/market-client/treedx/repositories/creation/create-tree-dx-share.d.ts +0 -3
  1062. package/dist/market-client/treedx/repositories/creation/create-tree-dx-share.js +0 -6
  1063. package/dist/market-client/treedx/repositories/creation/create-tree-dx-workspace.d.ts +0 -2
  1064. package/dist/market-client/treedx/repositories/creation/create-tree-dx-workspace.js +0 -6
  1065. package/dist/market-client/treedx/repositories/creation/provision-team-tree-dx.d.ts +0 -2
  1066. package/dist/market-client/treedx/repositories/creation/provision-team-tree-dx.js +0 -6
  1067. package/dist/market-client/treedx/repositories/updates/sync-tree-dx-mirror.d.ts +0 -2
  1068. package/dist/market-client/treedx/repositories/updates/sync-tree-dx-mirror.js +0 -6
  1069. package/dist/market-client/treedx/repositories/updates/update-team-tree-dx.d.ts +0 -3
  1070. package/dist/market-client/treedx/repositories/updates/update-team-tree-dx.js +0 -6
  1071. package/dist/operations/agents/agent-checkpoint-integration.d.ts +0 -53
  1072. package/dist/operations/agents/agent-checkpoint-integration.js +0 -235
  1073. package/dist/operations/agents/agent-tools.d.ts +0 -121
  1074. package/dist/operations/agents/agent-tools.js +0 -184
  1075. package/dist/operations/agents/agent-worktree-checkpoint.d.ts +0 -24
  1076. package/dist/operations/agents/agent-worktree-checkpoint.js +0 -83
  1077. package/dist/operations/agents/agent-worktree-prepare.d.ts +0 -24
  1078. package/dist/operations/agents/agent-worktree-prepare.js +0 -28
  1079. package/dist/operations/agents/execution-authority-receipt.d.ts +0 -43
  1080. package/dist/operations/agents/execution-authority-receipt.js +0 -69
  1081. package/dist/operations/content-operations.d.ts +0 -106
  1082. package/dist/operations/content-operations.js +0 -334
  1083. package/dist/operations/operations-registry.d.ts +0 -5
  1084. package/dist/operations/operations-registry.js +0 -83
  1085. package/dist/operations/operations-types.d.ts +0 -75
  1086. package/dist/operations/operations-types.js +0 -17
  1087. package/dist/operations/operations.d.ts +0 -17
  1088. package/dist/operations/operations.js +0 -108
  1089. package/dist/operations/packages/agent-worktree-release.d.ts +0 -27
  1090. package/dist/operations/packages/agent-worktree-release.js +0 -25
  1091. package/dist/operations/platform-operation-store.d.ts +0 -2
  1092. package/dist/operations/platform-operation-store.js +0 -2
  1093. package/dist/operations/platform-operations.d.ts +0 -3
  1094. package/dist/operations/platform-operations.js +0 -3
  1095. package/dist/operations/providers/default/auth-who-am-ioperation.d.ts +0 -60
  1096. package/dist/operations/providers/default/auth-who-am-ioperation.js +0 -283
  1097. package/dist/operations/providers/default/preflight-operation.d.ts +0 -81
  1098. package/dist/operations/providers/default/preflight-operation.js +0 -127
  1099. package/dist/operations/providers/default/run-git.d.ts +0 -63
  1100. package/dist/operations/providers/default/run-git.js +0 -216
  1101. package/dist/operations/providers/default/utility-operations.d.ts +0 -45
  1102. package/dist/operations/providers/default/utility-operations.js +0 -139
  1103. package/dist/operations/providers/default.d.ts +0 -4
  1104. package/dist/operations/providers/default.js +0 -4
  1105. package/dist/operations/runtime/runtime.d.ts +0 -9
  1106. package/dist/operations/runtime/runtime.js +0 -63
  1107. package/dist/operations/services/agents/runtime-tools.d.ts +0 -35
  1108. package/dist/operations/services/agents/runtime-tools.js +0 -212
  1109. package/dist/operations/services/build/build-warning-policy.d.ts +0 -34
  1110. package/dist/operations/services/build/build-warning-policy.js +0 -91
  1111. package/dist/operations/services/capacity/accounting/release-proof-ledger.d.ts +0 -13
  1112. package/dist/operations/services/capacity/accounting/release-proof-ledger.js +0 -81
  1113. package/dist/operations/services/capacity/providers/commit-message-provider.d.ts +0 -3
  1114. package/dist/operations/services/capacity/providers/commit-message-provider.js +0 -3
  1115. package/dist/operations/services/commit-message-provider/context-lines.d.ts +0 -9
  1116. package/dist/operations/services/commit-message-provider/context-lines.js +0 -168
  1117. package/dist/operations/services/commit-message-provider/default-commit-ai-model.d.ts +0 -87
  1118. package/dist/operations/services/commit-message-provider/default-commit-ai-model.js +0 -149
  1119. package/dist/operations/services/commit-message-provider/fallback-summary.d.ts +0 -34
  1120. package/dist/operations/services/commit-message-provider/fallback-summary.js +0 -227
  1121. package/dist/operations/services/config-runtime/accounts/ensure-secret-session-for-config.d.ts +0 -80
  1122. package/dist/operations/services/config-runtime/accounts/ensure-secret-session-for-config.js +0 -171
  1123. package/dist/operations/services/config-runtime/agents/ensure-act-verification-tooling.d.ts +0 -56
  1124. package/dist/operations/services/config-runtime/agents/ensure-act-verification-tooling.js +0 -234
  1125. package/dist/operations/services/config-runtime/commerce/catalog/resolve-template-catalog-endpoint.d.ts +0 -15
  1126. package/dist/operations/services/config-runtime/commerce/catalog/resolve-template-catalog-endpoint.js +0 -241
  1127. package/dist/operations/services/config-runtime/configuration/configuration-generation.d.ts +0 -25
  1128. package/dist/operations/services/config-runtime/configuration/configuration-generation.js +0 -71
  1129. package/dist/operations/services/config-runtime/configuration/create-default-machine-config.d.ts +0 -104
  1130. package/dist/operations/services/config-runtime/configuration/create-default-machine-config.js +0 -273
  1131. package/dist/operations/services/config-runtime/configuration/create-git-hub-config-sync-units.d.ts +0 -55
  1132. package/dist/operations/services/config-runtime/configuration/create-git-hub-config-sync-units.js +0 -247
  1133. package/dist/operations/services/config-runtime/configuration/finalize-config.d.ts +0 -53
  1134. package/dist/operations/services/config-runtime/configuration/finalize-config.js +0 -271
  1135. package/dist/operations/services/config-runtime/configuration/inspect-key-agent-status.d.ts +0 -5
  1136. package/dist/operations/services/config-runtime/configuration/inspect-key-agent-status.js +0 -215
  1137. package/dist/operations/services/config-runtime/configuration/list-relevant-config-entries.d.ts +0 -47
  1138. package/dist/operations/services/config-runtime/configuration/list-relevant-config-entries.js +0 -228
  1139. package/dist/operations/services/config-runtime/configuration/machine-config-relative-path.d.ts +0 -93
  1140. package/dist/operations/services/config-runtime/configuration/machine-config-relative-path.js +0 -214
  1141. package/dist/operations/services/config-runtime/configuration/resolve-launch-environment.d.ts +0 -100
  1142. package/dist/operations/services/config-runtime/configuration/resolve-launch-environment.js +0 -229
  1143. package/dist/operations/services/config-runtime/hosting/check-railway-connection.d.ts +0 -35
  1144. package/dist/operations/services/config-runtime/hosting/check-railway-connection.js +0 -214
  1145. package/dist/operations/services/config-runtime/hosting/load-tenant-deploy-config.d.ts +0 -71
  1146. package/dist/operations/services/config-runtime/hosting/load-tenant-deploy-config.js +0 -253
  1147. package/dist/operations/services/config-runtime/hosting/sync-cloudflare-environment.d.ts +0 -64
  1148. package/dist/operations/services/config-runtime/hosting/sync-cloudflare-environment.js +0 -184
  1149. package/dist/operations/services/config-runtime/support/collect-print-env-report.d.ts +0 -53
  1150. package/dist/operations/services/config-runtime/support/collect-print-env-report.js +0 -58
  1151. package/dist/operations/services/config-runtime/support/resolve-entry-value-from-buckets.d.ts +0 -29
  1152. package/dist/operations/services/config-runtime/support/resolve-entry-value-from-buckets.js +0 -237
  1153. package/dist/operations/services/config-runtime/support/rotate-machine-key-passphrase.d.ts +0 -55
  1154. package/dist/operations/services/config-runtime/support/rotate-machine-key-passphrase.js +0 -258
  1155. package/dist/operations/services/config-runtime/support/summarize-persistent-readiness.d.ts +0 -117
  1156. package/dist/operations/services/config-runtime/support/summarize-persistent-readiness.js +0 -231
  1157. package/dist/operations/services/configuration/config-runtime.d.ts +0 -18
  1158. package/dist/operations/services/configuration/config-runtime.js +0 -18
  1159. package/dist/operations/services/configuration/github-credentials.d.ts +0 -13
  1160. package/dist/operations/services/configuration/github-credentials.js +0 -71
  1161. package/dist/operations/services/configuration/key-agent.d.ts +0 -4
  1162. package/dist/operations/services/configuration/key-agent.js +0 -4
  1163. package/dist/operations/services/deploy/accounts/local-runtime-auth-env-keys.d.ts +0 -159
  1164. package/dist/operations/services/deploy/accounts/local-runtime-auth-env-keys.js +0 -240
  1165. package/dist/operations/services/deploy/configuration/destroy-environment-resources.d.ts +0 -229
  1166. package/dist/operations/services/deploy/configuration/destroy-environment-resources.js +0 -219
  1167. package/dist/operations/services/deploy/hosting/assert-cloudflare-cache-purge-succeeded.d.ts +0 -105
  1168. package/dist/operations/services/deploy/hosting/assert-cloudflare-cache-purge-succeeded.js +0 -215
  1169. package/dist/operations/services/deploy/hosting/build-managed-cloudflare-cache-rules.d.ts +0 -163
  1170. package/dist/operations/services/deploy/hosting/build-managed-cloudflare-cache-rules.js +0 -247
  1171. package/dist/operations/services/deploy/hosting/cloudflare-api-request.d.ts +0 -7
  1172. package/dist/operations/services/deploy/hosting/cloudflare-api-request.js +0 -180
  1173. package/dist/operations/services/deploy/hosting/cloudflare-destroy-verification.d.ts +0 -48
  1174. package/dist/operations/services/deploy/hosting/cloudflare-destroy-verification.js +0 -120
  1175. package/dist/operations/services/deploy/hosting/collect-missing-deploy-inputs.d.ts +0 -67
  1176. package/dist/operations/services/deploy/hosting/collect-missing-deploy-inputs.js +0 -227
  1177. package/dist/operations/services/deploy/hosting/configured-surface-hosts.d.ts +0 -100
  1178. package/dist/operations/services/deploy/hosting/configured-surface-hosts.js +0 -224
  1179. package/dist/operations/services/deploy/hosting/delete-cloudflare-api-resource.d.ts +0 -65
  1180. package/dist/operations/services/deploy/hosting/delete-cloudflare-api-resource.js +0 -258
  1181. package/dist/operations/services/deploy/hosting/load-deploy-state.d.ts +0 -17
  1182. package/dist/operations/services/deploy/hosting/load-deploy-state.js +0 -278
  1183. package/dist/operations/services/deploy/hosting/provision-cloudflare-resources.d.ts +0 -47
  1184. package/dist/operations/services/deploy/hosting/provision-cloudflare-resources.js +0 -207
  1185. package/dist/operations/services/deploy/hosting/verify-provisioned-cloudflare-resources.d.ts +0 -25
  1186. package/dist/operations/services/deploy/hosting/verify-provisioned-cloudflare-resources.js +0 -260
  1187. package/dist/operations/services/deploy/projects/projects-core/ensure-pages-project-compatibility.d.ts +0 -59
  1188. package/dist/operations/services/deploy/projects/projects-core/ensure-pages-project-compatibility.js +0 -142
  1189. package/dist/operations/services/deploy/support/default-compatibility-date.d.ts +0 -43
  1190. package/dist/operations/services/deploy/support/default-compatibility-date.js +0 -236
  1191. package/dist/operations/services/deploy/support/delete-cache-rules.d.ts +0 -52
  1192. package/dist/operations/services/deploy/support/delete-cache-rules.js +0 -267
  1193. package/dist/operations/services/deploy/support/docker-list.d.ts +0 -55
  1194. package/dist/operations/services/deploy/support/docker-list.js +0 -251
  1195. package/dist/operations/services/deploy/support/pages-domain-name.d.ts +0 -52
  1196. package/dist/operations/services/deploy/support/pages-domain-name.js +0 -246
  1197. package/dist/operations/services/deploy/support/print-destroy-summary.d.ts +0 -1
  1198. package/dist/operations/services/deploy/support/print-destroy-summary.js +0 -40
  1199. package/dist/operations/services/deploy/support/run-wrangler.d.ts +0 -36
  1200. package/dist/operations/services/deploy/support/run-wrangler.js +0 -245
  1201. package/dist/operations/services/git-runner/active-git-process-hints.d.ts +0 -16
  1202. package/dist/operations/services/git-runner/active-git-process-hints.js +0 -225
  1203. package/dist/operations/services/git-runner/git-runner-mode.d.ts +0 -78
  1204. package/dist/operations/services/git-runner/git-runner-mode.js +0 -198
  1205. package/dist/operations/services/git-runner/recover-git-locks.d.ts +0 -14
  1206. package/dist/operations/services/git-runner/recover-git-locks.js +0 -124
  1207. package/dist/operations/services/git-workflow/checkout-task-branch-from-staging.d.ts +0 -57
  1208. package/dist/operations/services/git-workflow/checkout-task-branch-from-staging.js +0 -223
  1209. package/dist/operations/services/git-workflow/inspect-detached-head-repair.d.ts +0 -112
  1210. package/dist/operations/services/git-workflow/inspect-detached-head-repair.js +0 -265
  1211. package/dist/operations/services/git-workflow/inspect-merged-remote-task-branches.d.ts +0 -85
  1212. package/dist/operations/services/git-workflow/inspect-merged-remote-task-branches.js +0 -237
  1213. package/dist/operations/services/git-workflow/reconcile-submodule-checkouts.d.ts +0 -5
  1214. package/dist/operations/services/git-workflow/reconcile-submodule-checkouts.js +0 -34
  1215. package/dist/operations/services/git-workflow/staging-branch.d.ts +0 -32
  1216. package/dist/operations/services/git-workflow/staging-branch.js +0 -203
  1217. package/dist/operations/services/github-actions-verification/create-git-hub-actions-gate-progress-reporter.d.ts +0 -15
  1218. package/dist/operations/services/github-actions-verification/create-git-hub-actions-gate-progress-reporter.js +0 -66
  1219. package/dist/operations/services/github-actions-verification/git-hub-actions-workflow-state.d.ts +0 -134
  1220. package/dist/operations/services/github-actions-verification/git-hub-actions-workflow-state.js +0 -104
  1221. package/dist/operations/services/github-actions-verification/inspect-target.d.ts +0 -37
  1222. package/dist/operations/services/github-actions-verification/inspect-target.js +0 -237
  1223. package/dist/operations/services/github-actions-verification/resolve-remote-branch-head.d.ts +0 -16
  1224. package/dist/operations/services/github-actions-verification/resolve-remote-branch-head.js +0 -228
  1225. package/dist/operations/services/github-api/create-git-hub-api-client.d.ts +0 -73
  1226. package/dist/operations/services/github-api/create-git-hub-api-client.js +0 -264
  1227. package/dist/operations/services/github-api/get-latest-git-hub-workflow-run.d.ts +0 -52
  1228. package/dist/operations/services/github-api/get-latest-git-hub-workflow-run.js +0 -214
  1229. package/dist/operations/services/github-api/paginate-git-hub-environment-names.d.ts +0 -45
  1230. package/dist/operations/services/github-api/paginate-git-hub-environment-names.js +0 -176
  1231. package/dist/operations/services/github-api/require.d.ts +0 -139
  1232. package/dist/operations/services/github-api/require.js +0 -123
  1233. package/dist/operations/services/github-api/upsert-git-hub-repository-variable-with-gh-cli.d.ts +0 -32
  1234. package/dist/operations/services/github-api/upsert-git-hub-repository-variable-with-gh-cli.js +0 -243
  1235. package/dist/operations/services/github-automation/ensure-git-hub-bootstrap-repository.d.ts +0 -21
  1236. package/dist/operations/services/github-automation/ensure-git-hub-bootstrap-repository.js +0 -59
  1237. package/dist/operations/services/github-automation/github-repository-remote.d.ts +0 -3
  1238. package/dist/operations/services/github-automation/github-repository-remote.js +0 -36
  1239. package/dist/operations/services/github-automation/non-empty-values.d.ts +0 -51
  1240. package/dist/operations/services/github-automation/non-empty-values.js +0 -111
  1241. package/dist/operations/services/guarantees/release-proof-planner.d.ts +0 -48
  1242. package/dist/operations/services/guarantees/release-proof-planner.js +0 -195
  1243. package/dist/operations/services/guarantees/release-proof-runner.d.ts +0 -16
  1244. package/dist/operations/services/guarantees/release-proof-runner.js +0 -169
  1245. package/dist/operations/services/guarantees/release-proof.d.ts +0 -81
  1246. package/dist/operations/services/guarantees/release-proof.js +0 -79
  1247. package/dist/operations/services/hosted-service-checks/collect-hosted-service-checks.d.ts +0 -2
  1248. package/dist/operations/services/hosted-service-checks/collect-hosted-service-checks.js +0 -387
  1249. package/dist/operations/services/hosted-service-checks/hosted-service-check-status.d.ts +0 -110
  1250. package/dist/operations/services/hosted-service-checks/hosted-service-check-status.js +0 -155
  1251. package/dist/operations/services/hosting/audit/hosted-service-checks.d.ts +0 -2
  1252. package/dist/operations/services/hosting/audit/hosted-service-checks.js +0 -2
  1253. package/dist/operations/services/hosting/audit/hosting-audit.d.ts +0 -4
  1254. package/dist/operations/services/hosting/audit/hosting-audit.js +0 -4
  1255. package/dist/operations/services/hosting/audit/live-hosted-service-checks.d.ts +0 -4
  1256. package/dist/operations/services/hosting/audit/live-hosted-service-checks.js +0 -4
  1257. package/dist/operations/services/hosting/audit/managed-host-security.d.ts +0 -13
  1258. package/dist/operations/services/hosting/audit/managed-host-security.js +0 -55
  1259. package/dist/operations/services/hosting/deployment/deploy.d.ts +0 -19
  1260. package/dist/operations/services/hosting/deployment/deploy.js +0 -19
  1261. package/dist/operations/services/hosting/deployment/deployment-readiness.d.ts +0 -30
  1262. package/dist/operations/services/hosting/deployment/deployment-readiness.js +0 -217
  1263. package/dist/operations/services/hosting/deployment/save-deploy-preflight.d.ts +0 -32
  1264. package/dist/operations/services/hosting/deployment/save-deploy-preflight.js +0 -82
  1265. package/dist/operations/services/hosting/railway/railway-api.d.ts +0 -10
  1266. package/dist/operations/services/hosting/railway/railway-api.js +0 -10
  1267. package/dist/operations/services/hosting/railway/railway-cli.d.ts +0 -47
  1268. package/dist/operations/services/hosting/railway/railway-cli.js +0 -142
  1269. package/dist/operations/services/hosting/railway/railway-deploy.d.ts +0 -10
  1270. package/dist/operations/services/hosting/railway/railway-deploy.js +0 -10
  1271. package/dist/operations/services/hosting/railway/railway-source-policy.d.ts +0 -25
  1272. package/dist/operations/services/hosting/railway/railway-source-policy.js +0 -111
  1273. package/dist/operations/services/hosting-audit/check-smtp-reachability.d.ts +0 -14
  1274. package/dist/operations/services/hosting-audit/check-smtp-reachability.js +0 -271
  1275. package/dist/operations/services/hosting-audit/format-hosting-audit-report.d.ts +0 -2
  1276. package/dist/operations/services/hosting-audit/format-hosting-audit-report.js +0 -26
  1277. package/dist/operations/services/hosting-audit/hosting-audit-environment.d.ts +0 -98
  1278. package/dist/operations/services/hosting-audit/hosting-audit-environment.js +0 -177
  1279. package/dist/operations/services/hosting-audit/required-key-check.d.ts +0 -23
  1280. package/dist/operations/services/hosting-audit/required-key-check.js +0 -199
  1281. package/dist/operations/services/key-agent/migrate-legacy-project-machine-key-to-wrapped.d.ts +0 -2
  1282. package/dist/operations/services/key-agent/migrate-legacy-project-machine-key-to-wrapped.js +0 -27
  1283. package/dist/operations/services/key-agent/read-legacy-project-machine-key.d.ts +0 -18
  1284. package/dist/operations/services/key-agent/read-legacy-project-machine-key.js +0 -250
  1285. package/dist/operations/services/key-agent/read-wrapped-machine-key-file.d.ts +0 -43
  1286. package/dist/operations/services/key-agent/read-wrapped-machine-key-file.js +0 -260
  1287. package/dist/operations/services/key-agent/treseed-machine-key-passphrase-env.d.ts +0 -117
  1288. package/dist/operations/services/key-agent/treseed-machine-key-passphrase-env.js +0 -149
  1289. package/dist/operations/services/live-hosted-service-checks/collect-http-observations.d.ts +0 -12
  1290. package/dist/operations/services/live-hosted-service-checks/collect-http-observations.js +0 -138
  1291. package/dist/operations/services/live-hosted-service-checks/collect-railway-observations.d.ts +0 -11
  1292. package/dist/operations/services/live-hosted-service-checks/collect-railway-observations.js +0 -271
  1293. package/dist/operations/services/live-hosted-service-checks/default-retry-attempts.d.ts +0 -109
  1294. package/dist/operations/services/live-hosted-service-checks/default-retry-attempts.js +0 -184
  1295. package/dist/operations/services/live-hosted-service-checks/verify-railway-postgres-topology.d.ts +0 -13
  1296. package/dist/operations/services/live-hosted-service-checks/verify-railway-postgres-topology.js +0 -71
  1297. package/dist/operations/services/operations/bootstrap-runner.d.ts +0 -39
  1298. package/dist/operations/services/operations/bootstrap-runner.js +0 -191
  1299. package/dist/operations/services/operations/git-runner.d.ts +0 -3
  1300. package/dist/operations/services/operations/git-runner.js +0 -3
  1301. package/dist/operations/services/operations/git-workflow.d.ts +0 -5
  1302. package/dist/operations/services/operations/git-workflow.js +0 -5
  1303. package/dist/operations/services/operations/operations-runner-smoke.d.ts +0 -31
  1304. package/dist/operations/services/operations/operations-runner-smoke.js +0 -212
  1305. package/dist/operations/services/operations/workflow-timing.d.ts +0 -25
  1306. package/dist/operations/services/operations/workflow-timing.js +0 -79
  1307. package/dist/operations/services/package-adapters/beam-package-adapter.d.ts +0 -5
  1308. package/dist/operations/services/package-adapters/beam-package-adapter.js +0 -130
  1309. package/dist/operations/services/package-adapters/deployment-source-mode-for-branch.d.ts +0 -19
  1310. package/dist/operations/services/package-adapters/deployment-source-mode-for-branch.js +0 -154
  1311. package/dist/operations/services/package-adapters/package-kind.d.ts +0 -169
  1312. package/dist/operations/services/package-adapters/package-kind.js +0 -110
  1313. package/dist/operations/services/package-adapters/plan-package-development-image.d.ts +0 -52
  1314. package/dist/operations/services/package-adapters/plan-package-development-image.js +0 -238
  1315. package/dist/operations/services/package-adapters/render-package-workflow.d.ts +0 -13
  1316. package/dist/operations/services/package-adapters/render-package-workflow.js +0 -251
  1317. package/dist/operations/services/package-adapters/validate-package-manifests.d.ts +0 -7
  1318. package/dist/operations/services/package-adapters/validate-package-manifests.js +0 -112
  1319. package/dist/operations/services/package-bootstrap/contracts.d.ts +0 -30
  1320. package/dist/operations/services/package-bootstrap/contracts.js +0 -0
  1321. package/dist/operations/services/package-bootstrap/index.d.ts +0 -2
  1322. package/dist/operations/services/package-bootstrap/index.js +0 -2
  1323. package/dist/operations/services/package-bootstrap/initialize-package.d.ts +0 -2
  1324. package/dist/operations/services/package-bootstrap/initialize-package.js +0 -122
  1325. package/dist/operations/services/package-bootstrap/template.d.ts +0 -2
  1326. package/dist/operations/services/package-bootstrap/template.js +0 -390
  1327. package/dist/operations/services/packages/package-artifacts.d.ts +0 -37
  1328. package/dist/operations/services/packages/package-artifacts.js +0 -99
  1329. package/dist/operations/services/packages/package-reference-policy.d.ts +0 -67
  1330. package/dist/operations/services/packages/package-reference-policy.js +0 -366
  1331. package/dist/operations/services/packages/release-history.d.ts +0 -59
  1332. package/dist/operations/services/packages/release-history.js +0 -158
  1333. package/dist/operations/services/persistence/d1-migration.d.ts +0 -6
  1334. package/dist/operations/services/persistence/d1-migration.js +0 -120
  1335. package/dist/operations/services/railway-api/collect-railway-volumes.d.ts +0 -30
  1336. package/dist/operations/services/railway-api/collect-railway-volumes.js +0 -196
  1337. package/dist/operations/services/railway-api/default-railway-api-url.d.ts +0 -122
  1338. package/dist/operations/services/railway-api/default-railway-api-url.js +0 -139
  1339. package/dist/operations/services/railway-api/ensure-railway-custom-domain.d.ts +0 -74
  1340. package/dist/operations/services/railway-api/ensure-railway-custom-domain.js +0 -119
  1341. package/dist/operations/services/railway-api/ensure-railway-service-instance-configuration.d.ts +0 -91
  1342. package/dist/operations/services/railway-api/ensure-railway-service-instance-configuration.js +0 -164
  1343. package/dist/operations/services/railway-api/ensure-railway-service.d.ts +0 -59
  1344. package/dist/operations/services/railway-api/ensure-railway-service.js +0 -217
  1345. package/dist/operations/services/railway-api/inspect-railway-postgres-service.d.ts +0 -73
  1346. package/dist/operations/services/railway-api/inspect-railway-postgres-service.js +0 -209
  1347. package/dist/operations/services/railway-api/list-railway-projects.d.ts +0 -41
  1348. package/dist/operations/services/railway-api/list-railway-projects.js +0 -213
  1349. package/dist/operations/services/railway-api/list-railway-service-domains.d.ts +0 -72
  1350. package/dist/operations/services/railway-api/list-railway-service-domains.js +0 -212
  1351. package/dist/operations/services/railway-api/normalize-workspace.d.ts +0 -17
  1352. package/dist/operations/services/railway-api/normalize-workspace.js +0 -241
  1353. package/dist/operations/services/railway-api/upsert-railway-variables.d.ts +0 -39
  1354. package/dist/operations/services/railway-api/upsert-railway-variables.js +0 -214
  1355. package/dist/operations/services/railway-deploy/configured-public-tree-dx-railway-services.d.ts +0 -81
  1356. package/dist/operations/services/railway-deploy/configured-public-tree-dx-railway-services.js +0 -179
  1357. package/dist/operations/services/railway-deploy/configured-railway-services-for-config.d.ts +0 -1
  1358. package/dist/operations/services/railway-deploy/configured-railway-services-for-config.js +0 -140
  1359. package/dist/operations/services/railway-deploy/configured-railway-services.d.ts +0 -42
  1360. package/dist/operations/services/railway-deploy/configured-railway-services.js +0 -205
  1361. package/dist/operations/services/railway-deploy/deploy-railway-service.d.ts +0 -45
  1362. package/dist/operations/services/railway-deploy/deploy-railway-service.js +0 -122
  1363. package/dist/operations/services/railway-deploy/ensure-railway-scheduled-jobs.d.ts +0 -19
  1364. package/dist/operations/services/railway-deploy/ensure-railway-scheduled-jobs.js +0 -172
  1365. package/dist/operations/services/railway-deploy/normalize-scope.d.ts +0 -34
  1366. package/dist/operations/services/railway-deploy/normalize-scope.js +0 -230
  1367. package/dist/operations/services/railway-deploy/railway-status-deployment-terminal-failure.d.ts +0 -21
  1368. package/dist/operations/services/railway-deploy/railway-status-deployment-terminal-failure.js +0 -182
  1369. package/dist/operations/services/railway-deploy/sync-railway-service-runtime-configuration-after-deploy.d.ts +0 -66
  1370. package/dist/operations/services/railway-deploy/sync-railway-service-runtime-configuration-after-deploy.js +0 -216
  1371. package/dist/operations/services/railway-deploy/verify-railway-managed-resources.d.ts +0 -20
  1372. package/dist/operations/services/railway-deploy/verify-railway-managed-resources.js +0 -245
  1373. package/dist/operations/services/railway-deploy/wait-for-railway-managed-deployments-settled.d.ts +0 -52
  1374. package/dist/operations/services/railway-deploy/wait-for-railway-managed-deployments-settled.js +0 -205
  1375. package/dist/operations/services/reconciliation/package-adapters.d.ts +0 -6
  1376. package/dist/operations/services/reconciliation/package-adapters.js +0 -6
  1377. package/dist/operations/services/repositories/git-remote-policy.d.ts +0 -9
  1378. package/dist/operations/services/repositories/git-remote-policy.js +0 -63
  1379. package/dist/operations/services/repositories/github-actions-verification.d.ts +0 -4
  1380. package/dist/operations/services/repositories/github-actions-verification.js +0 -4
  1381. package/dist/operations/services/repositories/github-api.d.ts +0 -5
  1382. package/dist/operations/services/repositories/github-api.js +0 -5
  1383. package/dist/operations/services/repositories/github-automation.d.ts +0 -3
  1384. package/dist/operations/services/repositories/github-automation.js +0 -3
  1385. package/dist/operations/services/repositories/platform-initializer.d.ts +0 -49
  1386. package/dist/operations/services/repositories/platform-initializer.js +0 -161
  1387. package/dist/operations/services/repositories/platform-workset.d.ts +0 -103
  1388. package/dist/operations/services/repositories/platform-workset.js +0 -204
  1389. package/dist/operations/services/repositories/repository-save-orchestrator.d.ts +0 -13
  1390. package/dist/operations/services/repositories/repository-save-orchestrator.js +0 -13
  1391. package/dist/operations/services/repository-save-orchestrator/packages/finalize-clean-package-version.d.ts +0 -4
  1392. package/dist/operations/services/repository-save-orchestrator/packages/finalize-clean-package-version.js +0 -156
  1393. package/dist/operations/services/repository-save-orchestrator/repositories/discover-repository-save-nodes.d.ts +0 -43
  1394. package/dist/operations/services/repository-save-orchestrator/repositories/discover-repository-save-nodes.js +0 -312
  1395. package/dist/operations/services/repository-save-orchestrator/repositories/plan-repository-save.d.ts +0 -11
  1396. package/dist/operations/services/repository-save-orchestrator/repositories/plan-repository-save.js +0 -173
  1397. package/dist/operations/services/repository-save-orchestrator/repositories/repository-alias-state.d.ts +0 -4
  1398. package/dist/operations/services/repository-save-orchestrator/repositories/repository-alias-state.js +0 -99
  1399. package/dist/operations/services/repository-save-orchestrator/repositories/run-repository-save-orchestrator.d.ts +0 -8
  1400. package/dist/operations/services/repository-save-orchestrator/repositories/run-repository-save-orchestrator.js +0 -173
  1401. package/dist/operations/services/repository-save-orchestrator/repositories/save-one-repository.d.ts +0 -2
  1402. package/dist/operations/services/repository-save-orchestrator/repositories/save-one-repository.js +0 -227
  1403. package/dist/operations/services/repository-save-orchestrator/runtime/with-short-process-temp-env.d.ts +0 -39
  1404. package/dist/operations/services/repository-save-orchestrator/runtime/with-short-process-temp-env.js +0 -258
  1405. package/dist/operations/services/repository-save-orchestrator/support/change-classification.d.ts +0 -9
  1406. package/dist/operations/services/repository-save-orchestrator/support/change-classification.js +0 -47
  1407. package/dist/operations/services/repository-save-orchestrator/support/classify-repo-kind.d.ts +0 -33
  1408. package/dist/operations/services/repository-save-orchestrator/support/classify-repo-kind.js +0 -236
  1409. package/dist/operations/services/repository-save-orchestrator/support/has-staged-changes.d.ts +0 -11
  1410. package/dist/operations/services/repository-save-orchestrator/support/has-staged-changes.js +0 -175
  1411. package/dist/operations/services/repository-save-orchestrator/support/lockfile-manifest-consistency.d.ts +0 -8
  1412. package/dist/operations/services/repository-save-orchestrator/support/lockfile-manifest-consistency.js +0 -46
  1413. package/dist/operations/services/repository-save-orchestrator/support/repo-kind.d.ts +0 -215
  1414. package/dist/operations/services/repository-save-orchestrator/support/repo-kind.js +0 -54
  1415. package/dist/operations/services/repository-save-orchestrator/support/run-script.d.ts +0 -38
  1416. package/dist/operations/services/repository-save-orchestrator/support/run-script.js +0 -327
  1417. package/dist/operations/services/repository-save-orchestrator/support/standalone-lockfile.d.ts +0 -9
  1418. package/dist/operations/services/repository-save-orchestrator/support/standalone-lockfile.js +0 -102
  1419. package/dist/operations/services/repository-save-orchestrator/support/tag-state.d.ts +0 -22
  1420. package/dist/operations/services/repository-save-orchestrator/support/tag-state.js +0 -212
  1421. package/dist/operations/services/repository-save-orchestrator/treedx/repositories/sync-root-workspace-lockfile-metadata.d.ts +0 -15
  1422. package/dist/operations/services/repository-save-orchestrator/treedx/repositories/sync-root-workspace-lockfile-metadata.js +0 -259
  1423. package/dist/operations/services/runtime/export-runtime.d.ts +0 -18
  1424. package/dist/operations/services/runtime/export-runtime.js +0 -140
  1425. package/dist/operations/services/runtime/local-cleanup.d.ts +0 -47
  1426. package/dist/operations/services/runtime/local-cleanup.js +0 -206
  1427. package/dist/operations/services/runtime/local-dev.d.ts +0 -8
  1428. package/dist/operations/services/runtime/local-dev.js +0 -96
  1429. package/dist/operations/services/runtime/npm-git-clone-recovery.d.ts +0 -12
  1430. package/dist/operations/services/runtime/npm-git-clone-recovery.js +0 -25
  1431. package/dist/operations/services/runtime/runtime-paths.d.ts +0 -19
  1432. package/dist/operations/services/runtime/runtime-paths.js +0 -54
  1433. package/dist/operations/services/runtime/watch-dev.d.ts +0 -21
  1434. package/dist/operations/services/runtime/watch-dev.js +0 -282
  1435. package/dist/operations/services/support/managed-repositories.d.ts +0 -38
  1436. package/dist/operations/services/support/managed-repositories.js +0 -188
  1437. package/dist/operations/services/support/market-packaging.d.ts +0 -43
  1438. package/dist/operations/services/support/market-packaging.js +0 -169
  1439. package/dist/operations/services/support/template-registry.d.ts +0 -3
  1440. package/dist/operations/services/support/template-registry.js +0 -3
  1441. package/dist/operations/services/support/verification-cache.d.ts +0 -25
  1442. package/dist/operations/services/support/verification-cache.js +0 -71
  1443. package/dist/operations/services/template-registry/sync-managed-package-json.d.ts +0 -32
  1444. package/dist/operations/services/template-registry/sync-managed-package-json.js +0 -234
  1445. package/dist/operations/services/template-registry/template-categories.d.ts +0 -115
  1446. package/dist/operations/services/template-registry/template-categories.js +0 -161
  1447. package/dist/operations/services/template-registry/validate-template-placeholders.d.ts +0 -39
  1448. package/dist/operations/services/template-registry/validate-template-placeholders.js +0 -267
  1449. package/dist/operations/services/treedx/workspaces/workspace-dependency-mode.d.ts +0 -3
  1450. package/dist/operations/services/treedx/workspaces/workspace-dependency-mode.js +0 -3
  1451. package/dist/operations/services/treedx/workspaces/workspace-preflight.d.ts +0 -40
  1452. package/dist/operations/services/treedx/workspaces/workspace-preflight.js +0 -172
  1453. package/dist/operations/services/treedx/workspaces/workspace-save-script.d.ts +0 -26
  1454. package/dist/operations/services/treedx/workspaces/workspace-save-script.js +0 -50
  1455. package/dist/operations/services/treedx/workspaces/workspace-save.d.ts +0 -2
  1456. package/dist/operations/services/treedx/workspaces/workspace-save.js +0 -2
  1457. package/dist/operations/services/treedx/workspaces/workspace-tools.d.ts +0 -17
  1458. package/dist/operations/services/treedx/workspaces/workspace-tools.js +0 -320
  1459. package/dist/operations/services/workspace-dependency-mode/collect-deployment-lockfile-workspace-issues.d.ts +0 -7
  1460. package/dist/operations/services/workspace-dependency-mode/collect-deployment-lockfile-workspace-issues.js +0 -93
  1461. package/dist/operations/services/workspace-dependency-mode/collect-package-lock-consistency-issues.d.ts +0 -49
  1462. package/dist/operations/services/workspace-dependency-mode/collect-package-lock-consistency-issues.js +0 -236
  1463. package/dist/operations/services/workspace-dependency-mode/dependency-resolution-mode.d.ts +0 -53
  1464. package/dist/operations/services/workspace-dependency-mode/dependency-resolution-mode.js +0 -191
  1465. package/dist/operations/services/workspace-save/apply-workspace-version-changes.d.ts +0 -51
  1466. package/dist/operations/services/workspace-save/apply-workspace-version-changes.js +0 -229
  1467. package/dist/operations/services/workspace-save/run-git.d.ts +0 -51
  1468. package/dist/operations/services/workspace-save/run-git.js +0 -243
  1469. package/dist/operations/workflow-state.d.ts +0 -5
  1470. package/dist/operations/workflow-state.js +0 -5
  1471. package/dist/operations/workflow-support.d.ts +0 -30
  1472. package/dist/operations/workflow-support.js +0 -412
  1473. package/dist/operations/workflow.d.ts +0 -329
  1474. package/dist/operations/workflow.js +0 -140
  1475. package/dist/packages/sdk-version.d.ts +0 -2
  1476. package/dist/packages/sdk-version.js +0 -42
  1477. package/dist/persistence/d1-http.d.ts +0 -38
  1478. package/dist/persistence/d1-http.js +0 -95
  1479. package/dist/persistence/d1-store.d.ts +0 -183
  1480. package/dist/persistence/d1-store.js +0 -415
  1481. package/dist/platform/configuration/config.d.ts +0 -27
  1482. package/dist/platform/configuration/config.js +0 -78
  1483. package/dist/platform/configuration/environment.d.ts +0 -5
  1484. package/dist/platform/configuration/environment.js +0 -5
  1485. package/dist/platform/configuration/site-config-schema.d.ts +0 -1
  1486. package/dist/platform/configuration/site-config-schema.js +0 -4
  1487. package/dist/platform/configuration/tenant-config.d.ts +0 -8
  1488. package/dist/platform/configuration/tenant-config.js +0 -212
  1489. package/dist/platform/content/content-runtime-source.d.ts +0 -54
  1490. package/dist/platform/content/content-runtime-source.js +0 -169
  1491. package/dist/platform/content/local-content-materialization.d.ts +0 -9
  1492. package/dist/platform/content/local-content-materialization.js +0 -212
  1493. package/dist/platform/deploy-config/deploy-config-field-aliases.d.ts +0 -33
  1494. package/dist/platform/deploy-config/deploy-config-field-aliases.js +0 -215
  1495. package/dist/platform/deploy-config/normalize-planes-from-legacy-hosting.d.ts +0 -32
  1496. package/dist/platform/deploy-config/normalize-planes-from-legacy-hosting.js +0 -236
  1497. package/dist/platform/deploy-config/parse-deploy-config.d.ts +0 -19
  1498. package/dist/platform/deploy-config/parse-deploy-config.js +0 -177
  1499. package/dist/platform/deploy-config/parse-platform-connections.d.ts +0 -12
  1500. package/dist/platform/deploy-config/parse-platform-connections.js +0 -71
  1501. package/dist/platform/deploy-config/parse-public-tree-dx-federation-config.d.ts +0 -91
  1502. package/dist/platform/deploy-config/parse-public-tree-dx-federation-config.js +0 -217
  1503. package/dist/platform/desired-state/compile-desired-resource-graph.d.ts +0 -13
  1504. package/dist/platform/desired-state/compile-desired-resource-graph.js +0 -130
  1505. package/dist/platform/desired-state/desired-environment.d.ts +0 -79
  1506. package/dist/platform/desired-state/desired-environment.js +0 -162
  1507. package/dist/platform/desired-state/docker-source-closure.d.ts +0 -1
  1508. package/dist/platform/desired-state/docker-source-closure.js +0 -33
  1509. package/dist/platform/desired-state/local-development-resources.d.ts +0 -4
  1510. package/dist/platform/desired-state/local-development-resources.js +0 -260
  1511. package/dist/platform/desired-state/local-provider-resources.d.ts +0 -12
  1512. package/dist/platform/desired-state/local-provider-resources.js +0 -129
  1513. package/dist/platform/desired-state/local-tunnel-identity.d.ts +0 -8
  1514. package/dist/platform/desired-state/local-tunnel-identity.js +0 -35
  1515. package/dist/platform/desired-state/package-resources.d.ts +0 -4
  1516. package/dist/platform/desired-state/package-resources.js +0 -282
  1517. package/dist/platform/desired-state/release-gate-resources.d.ts +0 -6
  1518. package/dist/platform/desired-state/release-gate-resources.js +0 -243
  1519. package/dist/platform/desired-state/safe-tree-dx-repository-name.d.ts +0 -26
  1520. package/dist/platform/desired-state/safe-tree-dx-repository-name.js +0 -184
  1521. package/dist/platform/env.yaml +0 -1128
  1522. package/dist/platform/environment/api-surface-enabled.d.ts +0 -32
  1523. package/dist/platform/environment/api-surface-enabled.js +0 -202
  1524. package/dist/platform/environment/environment-scopes.d.ts +0 -143
  1525. package/dist/platform/environment/environment-scopes.js +0 -109
  1526. package/dist/platform/environment/is-entry-required.d.ts +0 -24
  1527. package/dist/platform/environment/is-entry-required.js +0 -122
  1528. package/dist/platform/environment/package-repository-credential-overlay.d.ts +0 -27
  1529. package/dist/platform/environment/package-repository-credential-overlay.js +0 -230
  1530. package/dist/platform/environment/resolve-content-bucket-binding.d.ts +0 -30
  1531. package/dist/platform/environment/resolve-content-bucket-binding.js +0 -200
  1532. package/dist/platform/hosting/deploy-config.d.ts +0 -4
  1533. package/dist/platform/hosting/deploy-config.js +0 -4
  1534. package/dist/platform/hosting/deploy-runtime.d.ts +0 -22
  1535. package/dist/platform/hosting/deploy-runtime.js +0 -93
  1536. package/dist/platform/packages/published-content-pipeline.d.ts +0 -3
  1537. package/dist/platform/packages/published-content-pipeline.js +0 -3
  1538. package/dist/platform/packages/published-content.d.ts +0 -11
  1539. package/dist/platform/packages/published-content.js +0 -11
  1540. package/dist/platform/plugins/constants.d.ts +0 -26
  1541. package/dist/platform/plugins/constants.js +0 -33
  1542. package/dist/platform/plugins/runtime.d.ts +0 -81
  1543. package/dist/platform/plugins/runtime.js +0 -288
  1544. package/dist/platform/published-content/hmac-sha256-base64-url.d.ts +0 -23
  1545. package/dist/platform/published-content/hmac-sha256-base64-url.js +0 -228
  1546. package/dist/platform/published-content/publication-contracts.d.ts +0 -60
  1547. package/dist/platform/published-content/publication-contracts.js +0 -27
  1548. package/dist/platform/published-content/published-content-manifest-schema-version.d.ts +0 -191
  1549. package/dist/platform/published-content/published-content-manifest-schema-version.js +0 -53
  1550. package/dist/platform/published-content/r2-api-token-publication-client.d.ts +0 -25
  1551. package/dist/platform/published-content/r2-api-token-publication-client.js +0 -54
  1552. package/dist/platform/published-content/r2-publication-acceptance.d.ts +0 -13
  1553. package/dist/platform/published-content/r2-publication-acceptance.js +0 -30
  1554. package/dist/platform/published-content/r2-publication-client.d.ts +0 -7
  1555. package/dist/platform/published-content/r2-publication-client.js +0 -8
  1556. package/dist/platform/published-content/r2-s3-publication-client.d.ts +0 -26
  1557. package/dist/platform/published-content/r2-s3-publication-client.js +0 -112
  1558. package/dist/platform/published-content/reconcile-content-publication.d.ts +0 -19
  1559. package/dist/platform/published-content/reconcile-content-publication.js +0 -144
  1560. package/dist/platform/published-content/runtime/build-runtime-publication.d.ts +0 -29
  1561. package/dist/platform/published-content/runtime/build-runtime-publication.js +0 -170
  1562. package/dist/platform/published-content/team-scoped-r2-overlay-content-runtime-provider.d.ts +0 -37
  1563. package/dist/platform/published-content/team-scoped-r2-overlay-content-runtime-provider.js +0 -229
  1564. package/dist/platform/published-content/validation/model-content.d.ts +0 -21
  1565. package/dist/platform/published-content/validation/model-content.js +0 -85
  1566. package/dist/platform/published-content/verify-editorial-preview-token.d.ts +0 -13
  1567. package/dist/platform/published-content/verify-editorial-preview-token.js +0 -137
  1568. package/dist/platform/published-content-pipeline/default-artifact-builder.d.ts +0 -29
  1569. package/dist/platform/published-content-pipeline/default-artifact-builder.js +0 -247
  1570. package/dist/platform/published-content-pipeline/list-markdown-files.d.ts +0 -32
  1571. package/dist/platform/published-content-pipeline/list-markdown-files.js +0 -181
  1572. package/dist/platform/published-content-pipeline/resolve-commerce-offer-mode.d.ts +0 -118
  1573. package/dist/platform/published-content-pipeline/resolve-commerce-offer-mode.js +0 -143
  1574. package/dist/platform/reconciliation/desired-state.d.ts +0 -6
  1575. package/dist/platform/reconciliation/desired-state.js +0 -6
  1576. package/dist/platform/support/contracts.d.ts +0 -381
  1577. package/dist/platform/support/contracts.js +0 -0
  1578. package/dist/platform/support/plugin.d.ts +0 -130
  1579. package/dist/platform/support/plugin.js +0 -28
  1580. package/dist/platform/support/plugins.d.ts +0 -6
  1581. package/dist/platform/support/plugins.js +0 -42
  1582. package/dist/platform/tenant/runtime-config.d.ts +0 -154
  1583. package/dist/platform/tenant/runtime-config.js +0 -73
  1584. package/dist/platform/treedx/repositories/local-treedx-seed.d.ts +0 -19
  1585. package/dist/platform/treedx/repositories/local-treedx-seed.js +0 -55
  1586. package/dist/platform/treedx/runtime-environment.d.ts +0 -20
  1587. package/dist/platform/treedx/runtime-environment.js +0 -37
  1588. package/dist/platform/utils/site-config-schema/is-record.d.ts +0 -52
  1589. package/dist/platform/utils/site-config-schema/is-record.js +0 -232
  1590. package/dist/platform/utils/site-config-schema/parse-access-policies.d.ts +0 -274
  1591. package/dist/platform/utils/site-config-schema/parse-access-policies.js +0 -247
  1592. package/dist/platform/utils/site-config-schema.d.ts +0 -2
  1593. package/dist/platform/utils/site-config-schema.js +0 -2
  1594. package/dist/platform-operation-store/database-provider.d.ts +0 -44
  1595. package/dist/platform-operation-store/database-provider.js +0 -205
  1596. package/dist/platform-operation-store/platform-operation-store.d.ts +0 -56
  1597. package/dist/platform-operation-store/platform-operation-store.js +0 -224
  1598. package/dist/platform-operations/nested-record.d.ts +0 -21
  1599. package/dist/platform-operations/nested-record.js +0 -262
  1600. package/dist/platform-operations/platform-operation-endpoints.d.ts +0 -208
  1601. package/dist/platform-operations/platform-operation-endpoints.js +0 -71
  1602. package/dist/platform-operations/platform-runner-client.d.ts +0 -52
  1603. package/dist/platform-operations/platform-runner-client.js +0 -143
  1604. package/dist/reconcile/builtin-adapters/build/local-compose-build-policy.d.ts +0 -44
  1605. package/dist/reconcile/builtin-adapters/build/local-compose-build-policy.js +0 -232
  1606. package/dist/reconcile/builtin-adapters/capacity/providers/build-capacity-provider-adapter.d.ts +0 -74
  1607. package/dist/reconcile/builtin-adapters/capacity/providers/build-capacity-provider-adapter.js +0 -396
  1608. package/dist/reconcile/builtin-adapters/capacity/providers/capacity-provider-variables-for-service.d.ts +0 -22
  1609. package/dist/reconcile/builtin-adapters/capacity/providers/capacity-provider-variables-for-service.js +0 -207
  1610. package/dist/reconcile/builtin-adapters/hosting/build-cloudflare-diff.d.ts +0 -22
  1611. package/dist/reconcile/builtin-adapters/hosting/build-cloudflare-diff.js +0 -219
  1612. package/dist/reconcile/builtin-adapters/hosting/cloudflare-tunnel/build-cloudflare-tunnel-adapter.d.ts +0 -7
  1613. package/dist/reconcile/builtin-adapters/hosting/cloudflare-tunnel/build-cloudflare-tunnel-adapter.js +0 -177
  1614. package/dist/reconcile/builtin-adapters/hosting/first-railway-domain-string.d.ts +0 -71
  1615. package/dist/reconcile/builtin-adapters/hosting/first-railway-domain-string.js +0 -212
  1616. package/dist/reconcile/builtin-adapters/hosting/observe-cloudflare-unit.d.ts +0 -2
  1617. package/dist/reconcile/builtin-adapters/hosting/observe-cloudflare-unit.js +0 -97
  1618. package/dist/reconcile/builtin-adapters/hosting/observe-railway-unit.d.ts +0 -32
  1619. package/dist/reconcile/builtin-adapters/hosting/observe-railway-unit.js +0 -228
  1620. package/dist/reconcile/builtin-adapters/hosting/railway-verification-may-settle.d.ts +0 -41
  1621. package/dist/reconcile/builtin-adapters/hosting/railway-verification-may-settle.js +0 -213
  1622. package/dist/reconcile/builtin-adapters/hosting/resolve-railway-topology-for-scope.d.ts +0 -43
  1623. package/dist/reconcile/builtin-adapters/hosting/resolve-railway-topology-for-scope.js +0 -227
  1624. package/dist/reconcile/builtin-adapters/hosting/sync-railway-environment-for-scope.d.ts +0 -31
  1625. package/dist/reconcile/builtin-adapters/hosting/sync-railway-environment-for-scope.js +0 -380
  1626. package/dist/reconcile/builtin-adapters/hosting/to-deploy-target.d.ts +0 -23
  1627. package/dist/reconcile/builtin-adapters/hosting/to-deploy-target.js +0 -250
  1628. package/dist/reconcile/builtin-adapters/hosting/verify-cloudflare-unit-once.d.ts +0 -3
  1629. package/dist/reconcile/builtin-adapters/hosting/verify-cloudflare-unit-once.js +0 -255
  1630. package/dist/reconcile/builtin-adapters/hosting/verify-railway-unit.d.ts +0 -2
  1631. package/dist/reconcile/builtin-adapters/hosting/verify-railway-unit.js +0 -283
  1632. package/dist/reconcile/builtin-adapters/projects/knowledge/reconcile-remote-tree-dx-content.d.ts +0 -23
  1633. package/dist/reconcile/builtin-adapters/projects/knowledge/reconcile-remote-tree-dx-content.js +0 -139
  1634. package/dist/reconcile/builtin-adapters/projects/knowledge/verify-local-tree-dx-project-content.d.ts +0 -18
  1635. package/dist/reconcile/builtin-adapters/projects/knowledge/verify-local-tree-dx-project-content.js +0 -386
  1636. package/dist/reconcile/builtin-adapters/projects/projects-core/configured-railway-project-sync-groups.d.ts +0 -19
  1637. package/dist/reconcile/builtin-adapters/projects/projects-core/configured-railway-project-sync-groups.js +0 -171
  1638. package/dist/reconcile/builtin-adapters/projects/projects-core/reconcile-stale-operations-runner-resources-for-project.d.ts +0 -15
  1639. package/dist/reconcile/builtin-adapters/projects/projects-core/reconcile-stale-operations-runner-resources-for-project.js +0 -63
  1640. package/dist/reconcile/builtin-adapters/reconciliation/build-git-hub-workflow-dispatch-adapter.d.ts +0 -5
  1641. package/dist/reconcile/builtin-adapters/reconciliation/build-git-hub-workflow-dispatch-adapter.js +0 -270
  1642. package/dist/reconcile/builtin-adapters/reconciliation/build-local-content-materialization-adapter.d.ts +0 -7
  1643. package/dist/reconcile/builtin-adapters/reconciliation/build-local-content-materialization-adapter.js +0 -245
  1644. package/dist/reconcile/builtin-adapters/reconciliation/build-local-docker-compose-adapter.d.ts +0 -7
  1645. package/dist/reconcile/builtin-adapters/reconciliation/build-local-docker-compose-adapter.js +0 -368
  1646. package/dist/reconcile/builtin-adapters/reconciliation/build-railway-adapter.d.ts +0 -12
  1647. package/dist/reconcile/builtin-adapters/reconciliation/build-railway-adapter.js +0 -218
  1648. package/dist/reconcile/builtin-adapters/reconciliation/build-release-gate-adapter.d.ts +0 -3
  1649. package/dist/reconcile/builtin-adapters/reconciliation/build-release-gate-adapter.js +0 -190
  1650. package/dist/reconcile/builtin-adapters/reconciliation/build-workflow-meta-adapter.d.ts +0 -30
  1651. package/dist/reconcile/builtin-adapters/reconciliation/build-workflow-meta-adapter.js +0 -237
  1652. package/dist/reconcile/builtin-adapters/reconciliation/managed-repository-storage.d.ts +0 -22
  1653. package/dist/reconcile/builtin-adapters/reconciliation/managed-repository-storage.js +0 -81
  1654. package/dist/reconcile/builtin-adapters/reconciliation/reconcile-cloudflare-target.d.ts +0 -55
  1655. package/dist/reconcile/builtin-adapters/reconciliation/reconcile-cloudflare-target.js +0 -267
  1656. package/dist/reconcile/builtin-adapters/repositories/build-github-branch-adapter.d.ts +0 -3
  1657. package/dist/reconcile/builtin-adapters/repositories/build-github-branch-adapter.js +0 -94
  1658. package/dist/reconcile/builtin-adapters/repositories/build-github-branch-rules-adapter.d.ts +0 -2
  1659. package/dist/reconcile/builtin-adapters/repositories/build-github-branch-rules-adapter.js +0 -54
  1660. package/dist/reconcile/builtin-adapters/repositories/build-github-repository-adapter.d.ts +0 -2
  1661. package/dist/reconcile/builtin-adapters/repositories/build-github-repository-adapter.js +0 -107
  1662. package/dist/reconcile/builtin-adapters/repositories/build-github-workflow-observation-adapter.d.ts +0 -2
  1663. package/dist/reconcile/builtin-adapters/repositories/build-github-workflow-observation-adapter.js +0 -63
  1664. package/dist/reconcile/builtin-adapters/support/normalize-turnstile-domains.d.ts +0 -64
  1665. package/dist/reconcile/builtin-adapters/support/normalize-turnstile-domains.js +0 -222
  1666. package/dist/reconcile/builtin-adapters/support/summarize-verification.d.ts +0 -9
  1667. package/dist/reconcile/builtin-adapters/support/summarize-verification.js +0 -101
  1668. package/dist/reconcile/builtin-adapters/support/verify-custom-domain-unit.d.ts +0 -5
  1669. package/dist/reconcile/builtin-adapters/support/verify-custom-domain-unit.js +0 -261
  1670. package/dist/reconcile/builtin-adapters/treedx/graph/build-graph-only-adapter.d.ts +0 -13
  1671. package/dist/reconcile/builtin-adapters/treedx/graph/build-graph-only-adapter.js +0 -198
  1672. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-cleanup.d.ts +0 -55
  1673. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-cleanup.js +0 -103
  1674. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-competition.d.ts +0 -29
  1675. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-competition.js +0 -179
  1676. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-context.d.ts +0 -132
  1677. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-context.js +0 -388
  1678. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-executor.d.ts +0 -50
  1679. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-executor.js +0 -0
  1680. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-governance.d.ts +0 -65
  1681. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-governance.js +0 -206
  1682. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-guards.d.ts +0 -19
  1683. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-guards.js +0 -36
  1684. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-proof.d.ts +0 -14
  1685. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-proof.js +0 -514
  1686. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-scope.d.ts +0 -14
  1687. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-scope.js +0 -122
  1688. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-terminal.d.ts +0 -17
  1689. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-terminal.js +0 -101
  1690. package/dist/reconcile/capacity/providers/live-acceptance-provider-config.d.ts +0 -1
  1691. package/dist/reconcile/capacity/providers/live-acceptance-provider-config.js +0 -20
  1692. package/dist/reconcile/engine/destroy-target-units.d.ts +0 -71
  1693. package/dist/reconcile/engine/destroy-target-units.js +0 -175
  1694. package/dist/reconcile/engine/now-iso.d.ts +0 -36
  1695. package/dist/reconcile/engine/now-iso.js +0 -206
  1696. package/dist/reconcile/engine/reconcile-target.d.ts +0 -24
  1697. package/dist/reconcile/engine/reconcile-target.js +0 -292
  1698. package/dist/reconcile/engine/refresh-units.d.ts +0 -34
  1699. package/dist/reconcile/engine/refresh-units.js +0 -93
  1700. package/dist/reconcile/hosting/live-acceptance-cloudflare-client.d.ts +0 -29
  1701. package/dist/reconcile/hosting/live-acceptance-cloudflare-client.js +0 -119
  1702. package/dist/reconcile/hosting/live-acceptance-cloudflare.d.ts +0 -14
  1703. package/dist/reconcile/hosting/live-acceptance-cloudflare.js +0 -316
  1704. package/dist/reconcile/hosting/live-acceptance-railway.d.ts +0 -14
  1705. package/dist/reconcile/hosting/live-acceptance-railway.js +0 -420
  1706. package/dist/reconcile/index.d.ts +0 -11
  1707. package/dist/reconcile/index.js +0 -11
  1708. package/dist/reconcile/providers/docker-private.d.ts +0 -78
  1709. package/dist/reconcile/providers/docker-private.js +0 -146
  1710. package/dist/reconcile/providers/github-private.d.ts +0 -206
  1711. package/dist/reconcile/providers/github-private.js +0 -267
  1712. package/dist/reconcile/providers/local-disk-capacity.d.ts +0 -22
  1713. package/dist/reconcile/providers/local-disk-capacity.js +0 -50
  1714. package/dist/reconcile/providers/local-private.d.ts +0 -28
  1715. package/dist/reconcile/providers/local-private.js +0 -75
  1716. package/dist/reconcile/providers/railway-iac/apply-railway-iac-project-with-plan.d.ts +0 -4
  1717. package/dist/reconcile/providers/railway-iac/apply-railway-iac-project-with-plan.js +0 -90
  1718. package/dist/reconcile/providers/railway-iac/railway-iac-service.d.ts +0 -158
  1719. package/dist/reconcile/providers/railway-iac/railway-iac-service.js +0 -99
  1720. package/dist/reconcile/providers/railway-iac/resolve-railway-iac-volume-bindings.d.ts +0 -17
  1721. package/dist/reconcile/providers/railway-iac/resolve-railway-iac-volume-bindings.js +0 -240
  1722. package/dist/reconcile/providers/railway-iac/run-railway-iac-with-rate-limit-retry.d.ts +0 -39
  1723. package/dist/reconcile/providers/railway-iac/run-railway-iac-with-rate-limit-retry.js +0 -174
  1724. package/dist/reconcile/providers/railway-iac/validate-railway-iac-change-set.d.ts +0 -30
  1725. package/dist/reconcile/providers/railway-iac/validate-railway-iac-change-set.js +0 -174
  1726. package/dist/reconcile/providers/railway-iac.d.ts +0 -5
  1727. package/dist/reconcile/providers/railway-iac.js +0 -5
  1728. package/dist/reconcile/providers/release-private.d.ts +0 -89
  1729. package/dist/reconcile/providers/release-private.js +0 -140
  1730. package/dist/reconcile/reconciliation/builtin-adapters.d.ts +0 -28
  1731. package/dist/reconcile/reconciliation/builtin-adapters.js +0 -28
  1732. package/dist/reconcile/reconciliation/desired-state.d.ts +0 -10
  1733. package/dist/reconcile/reconciliation/desired-state.js +0 -322
  1734. package/dist/reconcile/repositories/live-acceptance-github-client.d.ts +0 -6
  1735. package/dist/reconcile/repositories/live-acceptance-github-client.js +0 -42
  1736. package/dist/reconcile/repositories/live-acceptance-github.d.ts +0 -12
  1737. package/dist/reconcile/repositories/live-acceptance-github.js +0 -301
  1738. package/dist/reconcile/runtime/live-acceptance-local.d.ts +0 -16
  1739. package/dist/reconcile/runtime/live-acceptance-local.js +0 -260
  1740. package/dist/reconcile/runtime/live-acceptance-runtime.d.ts +0 -67
  1741. package/dist/reconcile/runtime/live-acceptance-runtime.js +0 -324
  1742. package/dist/reconcile/runtime/live-acceptance-starter-runtime.d.ts +0 -123
  1743. package/dist/reconcile/runtime/live-acceptance-starter-runtime.js +0 -439
  1744. package/dist/reconcile/runtime/local-compose-state.d.ts +0 -45
  1745. package/dist/reconcile/runtime/local-compose-state.js +0 -162
  1746. package/dist/reconcile/seeds/local-seed-bootstrap-adapter.d.ts +0 -3
  1747. package/dist/reconcile/seeds/local-seed-bootstrap-adapter.js +0 -213
  1748. package/dist/reconcile/support/acceptance/live-acceptance-starter-concurrency.d.ts +0 -19
  1749. package/dist/reconcile/support/acceptance/live-acceptance-starter-concurrency.js +0 -128
  1750. package/dist/reconcile/support/acceptance/live-acceptance-starter-engineering.d.ts +0 -18
  1751. package/dist/reconcile/support/acceptance/live-acceptance-starter-engineering.js +0 -264
  1752. package/dist/reconcile/support/acceptance/live-acceptance-starter-planning.d.ts +0 -44
  1753. package/dist/reconcile/support/acceptance/live-acceptance-starter-planning.js +0 -154
  1754. package/dist/reconcile/support/acceptance/live-acceptance-starters.d.ts +0 -51
  1755. package/dist/reconcile/support/acceptance/live-acceptance-starters.js +0 -12
  1756. package/dist/reconcile/support/acceptance/live-acceptance-values.d.ts +0 -2
  1757. package/dist/reconcile/support/acceptance/live-acceptance-values.js +0 -10
  1758. package/dist/reconcile/support/acceptance/live-acceptance-worktree-cleanup.d.ts +0 -7
  1759. package/dist/reconcile/support/acceptance/live-acceptance-worktree-cleanup.js +0 -38
  1760. package/dist/reconcile/support/acceptance/live-acceptance.d.ts +0 -102
  1761. package/dist/reconcile/support/acceptance/live-acceptance.js +0 -322
  1762. package/dist/reconcile/support/bootstrap-systems.d.ts +0 -32
  1763. package/dist/reconcile/support/bootstrap-systems.js +0 -175
  1764. package/dist/reconcile/support/contracts/contracts.d.ts +0 -172
  1765. package/dist/reconcile/support/contracts/contracts.js +0 -0
  1766. package/dist/reconcile/support/contracts/errors.d.ts +0 -5
  1767. package/dist/reconcile/support/contracts/errors.js +0 -13
  1768. package/dist/reconcile/support/engine/engine.d.ts +0 -4
  1769. package/dist/reconcile/support/engine/engine.js +0 -4
  1770. package/dist/reconcile/support/engine/units.d.ts +0 -6
  1771. package/dist/reconcile/support/engine/units.js +0 -72
  1772. package/dist/reconcile/support/state/platform.d.ts +0 -104
  1773. package/dist/reconcile/support/state/platform.js +0 -100
  1774. package/dist/reconcile/support/state/registry.d.ts +0 -7
  1775. package/dist/reconcile/support/state/registry.js +0 -81
  1776. package/dist/reconcile/support/state/state.d.ts +0 -7
  1777. package/dist/reconcile/support/state/state.js +0 -270
  1778. package/dist/repositories/git-runtime.d.ts +0 -16
  1779. package/dist/repositories/git-runtime.js +0 -69
  1780. package/dist/repositories/repository-custody.d.ts +0 -57
  1781. package/dist/repositories/repository-custody.js +0 -39
  1782. package/dist/repositories/repository-identity.d.ts +0 -12
  1783. package/dist/repositories/repository-identity.js +0 -71
  1784. package/dist/scenes/accounts/auth.d.ts +0 -2
  1785. package/dist/scenes/accounts/auth.js +0 -28
  1786. package/dist/scenes/agent-lab/activity-collector.d.ts +0 -114
  1787. package/dist/scenes/agent-lab/activity-collector.js +0 -394
  1788. package/dist/scenes/agent-lab/production-lifecycle.d.ts +0 -18
  1789. package/dist/scenes/agent-lab/production-lifecycle.js +0 -573
  1790. package/dist/scenes/agent-lab/profile-input-seed.d.ts +0 -23
  1791. package/dist/scenes/agent-lab/profile-input-seed.js +0 -41
  1792. package/dist/scenes/agent-lab/report-adapters.d.ts +0 -3
  1793. package/dist/scenes/agent-lab/report-adapters.js +0 -33
  1794. package/dist/scenes/agent-lab/report-model.d.ts +0 -122
  1795. package/dist/scenes/agent-lab/report-model.js +0 -194
  1796. package/dist/scenes/agent-lab/report-writer.d.ts +0 -14
  1797. package/dist/scenes/agent-lab/report-writer.js +0 -143
  1798. package/dist/scenes/agent-lab/run-agent-lab-scene.d.ts +0 -6
  1799. package/dist/scenes/agent-lab/run-agent-lab-scene.js +0 -122
  1800. package/dist/scenes/agent-lab/runtime/diagnostics.d.ts +0 -7
  1801. package/dist/scenes/agent-lab/runtime/diagnostics.js +0 -42
  1802. package/dist/scenes/agent-lab/runtime/metadata.d.ts +0 -7
  1803. package/dist/scenes/agent-lab/runtime/metadata.js +0 -19
  1804. package/dist/scenes/agent-lab/runtime/team-scope.d.ts +0 -29
  1805. package/dist/scenes/agent-lab/runtime/team-scope.js +0 -54
  1806. package/dist/scenes/agent-lab/semantic-artifact-assertions.d.ts +0 -29
  1807. package/dist/scenes/agent-lab/semantic-artifact-assertions.js +0 -66
  1808. package/dist/scenes/agent-lab/terminal-verification.d.ts +0 -17
  1809. package/dist/scenes/agent-lab/terminal-verification.js +0 -31
  1810. package/dist/scenes/agent-lab/viewer/runtime.d.ts +0 -1
  1811. package/dist/scenes/agent-lab/viewer/runtime.js +0 -576
  1812. package/dist/scenes/agent-lab/viewer/styles.d.ts +0 -1
  1813. package/dist/scenes/agent-lab/viewer/styles.js +0 -28
  1814. package/dist/scenes/agent-lab/workday-snapshot.d.ts +0 -116
  1815. package/dist/scenes/agent-lab/workday-snapshot.js +0 -153
  1816. package/dist/scenes/build/evidence-bundle.d.ts +0 -5
  1817. package/dist/scenes/build/evidence-bundle.js +0 -59
  1818. package/dist/scenes/builtin-plugins/assertion-timeout.d.ts +0 -2
  1819. package/dist/scenes/builtin-plugins/assertion-timeout.js +0 -6
  1820. package/dist/scenes/builtin-plugins/browser-history-action.d.ts +0 -2
  1821. package/dist/scenes/builtin-plugins/browser-history-action.js +0 -17
  1822. package/dist/scenes/builtin-plugins/create-built-in-scene-plugins.d.ts +0 -2
  1823. package/dist/scenes/builtin-plugins/create-built-in-scene-plugins.js +0 -495
  1824. package/dist/scenes/builtin-plugins/duration.d.ts +0 -25
  1825. package/dist/scenes/builtin-plugins/duration.js +0 -148
  1826. package/dist/scenes/builtin-plugins/focus-assertion.d.ts +0 -6
  1827. package/dist/scenes/builtin-plugins/focus-assertion.js +0 -29
  1828. package/dist/scenes/builtin-plugins/keyboard-action.d.ts +0 -2
  1829. package/dist/scenes/builtin-plugins/keyboard-action.js +0 -15
  1830. package/dist/scenes/builtin-plugins/request-values.d.ts +0 -4
  1831. package/dist/scenes/builtin-plugins/request-values.js +0 -19
  1832. package/dist/scenes/builtin-plugins/responsive-actions.d.ts +0 -2
  1833. package/dist/scenes/builtin-plugins/responsive-actions.js +0 -33
  1834. package/dist/scenes/capacity/providers/diagram-providers.d.ts +0 -2
  1835. package/dist/scenes/capacity/providers/diagram-providers.js +0 -181
  1836. package/dist/scenes/configuration/environment.d.ts +0 -3
  1837. package/dist/scenes/configuration/environment.js +0 -70
  1838. package/dist/scenes/index.d.ts +0 -54
  1839. package/dist/scenes/index.js +0 -356
  1840. package/dist/scenes/operations/operations.d.ts +0 -3
  1841. package/dist/scenes/operations/operations.js +0 -146
  1842. package/dist/scenes/operations/runner.d.ts +0 -2
  1843. package/dist/scenes/operations/runner.js +0 -2
  1844. package/dist/scenes/packages/publish-destinations.d.ts +0 -12
  1845. package/dist/scenes/packages/publish-destinations.js +0 -99
  1846. package/dist/scenes/packages/publish-plan-report.d.ts +0 -10
  1847. package/dist/scenes/packages/publish-plan-report.js +0 -70
  1848. package/dist/scenes/packages/publish-plan.d.ts +0 -15
  1849. package/dist/scenes/packages/publish-plan.js +0 -248
  1850. package/dist/scenes/packages/publish-redaction.d.ts +0 -16
  1851. package/dist/scenes/packages/publish-redaction.js +0 -152
  1852. package/dist/scenes/packages/publish-release-record.d.ts +0 -13
  1853. package/dist/scenes/packages/publish-release-record.js +0 -34
  1854. package/dist/scenes/packages/publish-report.d.ts +0 -10
  1855. package/dist/scenes/packages/publish-report.js +0 -67
  1856. package/dist/scenes/packages/publish.d.ts +0 -16
  1857. package/dist/scenes/packages/publish.js +0 -298
  1858. package/dist/scenes/reconciliation/playwright-adapter.d.ts +0 -2
  1859. package/dist/scenes/reconciliation/playwright-adapter.js +0 -67
  1860. package/dist/scenes/reconciliation/remotion-adapter.d.ts +0 -3
  1861. package/dist/scenes/reconciliation/remotion-adapter.js +0 -94
  1862. package/dist/scenes/runner/now.d.ts +0 -72
  1863. package/dist/scenes/runner/now.js +0 -270
  1864. package/dist/scenes/runner/run-scene.d.ts +0 -2
  1865. package/dist/scenes/runner/run-scene.js +0 -495
  1866. package/dist/scenes/runner/trace-evidence.d.ts +0 -7
  1867. package/dist/scenes/runner/trace-evidence.js +0 -38
  1868. package/dist/scenes/runtime/device-matrix.d.ts +0 -2
  1869. package/dist/scenes/runtime/device-matrix.js +0 -100
  1870. package/dist/scenes/runtime/devices.d.ts +0 -11
  1871. package/dist/scenes/runtime/devices.js +0 -36
  1872. package/dist/scenes/runtime/phase0-runtime-capabilities.d.ts +0 -16
  1873. package/dist/scenes/runtime/phase0-runtime-capabilities.js +0 -209
  1874. package/dist/scenes/schema/filesystem-safe-scene-id.d.ts +0 -55
  1875. package/dist/scenes/schema/filesystem-safe-scene-id.js +0 -233
  1876. package/dist/scenes/schema/parse-action.d.ts +0 -18
  1877. package/dist/scenes/schema/parse-action.js +0 -288
  1878. package/dist/scenes/schema/parse-agent-lab.d.ts +0 -2
  1879. package/dist/scenes/schema/parse-agent-lab.js +0 -87
  1880. package/dist/scenes/schema/parse-diagrams.d.ts +0 -7
  1881. package/dist/scenes/schema/parse-diagrams.js +0 -225
  1882. package/dist/scenes/schema/parse-visual-audit.d.ts +0 -6
  1883. package/dist/scenes/schema/parse-visual-audit.js +0 -142
  1884. package/dist/scenes/schema/parse-workflow.d.ts +0 -10
  1885. package/dist/scenes/schema/parse-workflow.js +0 -266
  1886. package/dist/scenes/seeds/seed.d.ts +0 -2
  1887. package/dist/scenes/seeds/seed.js +0 -86
  1888. package/dist/scenes/support/evidence/artifacts.d.ts +0 -19
  1889. package/dist/scenes/support/evidence/artifacts.js +0 -139
  1890. package/dist/scenes/support/evidence/checkpoints.d.ts +0 -14
  1891. package/dist/scenes/support/evidence/checkpoints.js +0 -33
  1892. package/dist/scenes/support/evidence/evidence-report.d.ts +0 -10
  1893. package/dist/scenes/support/evidence/evidence-report.js +0 -73
  1894. package/dist/scenes/support/evidence/evidence.d.ts +0 -16
  1895. package/dist/scenes/support/evidence/evidence.js +0 -281
  1896. package/dist/scenes/support/evidence/segments.d.ts +0 -15
  1897. package/dist/scenes/support/evidence/segments.js +0 -79
  1898. package/dist/scenes/support/evidence/timeline.d.ts +0 -11
  1899. package/dist/scenes/support/evidence/timeline.js +0 -26
  1900. package/dist/scenes/support/execution/base-url.d.ts +0 -12
  1901. package/dist/scenes/support/execution/base-url.js +0 -123
  1902. package/dist/scenes/support/execution/loader.d.ts +0 -3
  1903. package/dist/scenes/support/execution/loader.js +0 -38
  1904. package/dist/scenes/support/execution/phase0.d.ts +0 -9
  1905. package/dist/scenes/support/execution/phase0.js +0 -103
  1906. package/dist/scenes/support/execution/planner.d.ts +0 -12
  1907. package/dist/scenes/support/execution/planner.js +0 -166
  1908. package/dist/scenes/support/execution/resume.d.ts +0 -2
  1909. package/dist/scenes/support/execution/resume.js +0 -82
  1910. package/dist/scenes/support/execution/timeouts.d.ts +0 -7
  1911. package/dist/scenes/support/execution/timeouts.js +0 -26
  1912. package/dist/scenes/support/plugins/builtin-plugins.d.ts +0 -2
  1913. package/dist/scenes/support/plugins/builtin-plugins.js +0 -2
  1914. package/dist/scenes/support/plugins/phase0-capabilities.d.ts +0 -3
  1915. package/dist/scenes/support/plugins/phase0-capabilities.js +0 -8
  1916. package/dist/scenes/support/plugins/phase0-publication-audit-capabilities.d.ts +0 -16
  1917. package/dist/scenes/support/plugins/phase0-publication-audit-capabilities.js +0 -131
  1918. package/dist/scenes/support/plugins/plugins.d.ts +0 -5
  1919. package/dist/scenes/support/plugins/plugins.js +0 -115
  1920. package/dist/scenes/support/plugins/registry.d.ts +0 -12
  1921. package/dist/scenes/support/plugins/registry.js +0 -65
  1922. package/dist/scenes/support/rendering/diagram-validation.d.ts +0 -22
  1923. package/dist/scenes/support/rendering/diagram-validation.js +0 -74
  1924. package/dist/scenes/support/rendering/phase0-media-evidence-capabilities.d.ts +0 -16
  1925. package/dist/scenes/support/rendering/phase0-media-evidence-capabilities.js +0 -209
  1926. package/dist/scenes/support/rendering/remotion-composition-registry.d.ts +0 -2
  1927. package/dist/scenes/support/rendering/remotion-composition-registry.js +0 -12
  1928. package/dist/scenes/support/rendering/remotion-compositions.d.ts +0 -15
  1929. package/dist/scenes/support/rendering/remotion-compositions.js +0 -464
  1930. package/dist/scenes/support/rendering/remotion-diagrams.d.ts +0 -9
  1931. package/dist/scenes/support/rendering/remotion-diagrams.js +0 -188
  1932. package/dist/scenes/support/rendering/remotion-input.d.ts +0 -13
  1933. package/dist/scenes/support/rendering/remotion-input.js +0 -291
  1934. package/dist/scenes/support/rendering/remotion-visuals.d.ts +0 -29
  1935. package/dist/scenes/support/rendering/remotion-visuals.js +0 -198
  1936. package/dist/scenes/support/rendering/render-media-assets.d.ts +0 -9
  1937. package/dist/scenes/support/rendering/render-media-assets.js +0 -117
  1938. package/dist/scenes/support/rendering/render-report.d.ts +0 -10
  1939. package/dist/scenes/support/rendering/render-report.js +0 -27
  1940. package/dist/scenes/support/rendering/render.d.ts +0 -2
  1941. package/dist/scenes/support/rendering/render.js +0 -218
  1942. package/dist/scenes/support/reporting/diagnostics.d.ts +0 -5
  1943. package/dist/scenes/support/reporting/diagnostics.js +0 -22
  1944. package/dist/scenes/support/reporting/inspect.d.ts +0 -9
  1945. package/dist/scenes/support/reporting/inspect.js +0 -64
  1946. package/dist/scenes/support/reporting/logs.d.ts +0 -2
  1947. package/dist/scenes/support/reporting/logs.js +0 -47
  1948. package/dist/scenes/support/reporting/progress.d.ts +0 -17
  1949. package/dist/scenes/support/reporting/progress.js +0 -24
  1950. package/dist/scenes/support/reporting/reporter.d.ts +0 -3
  1951. package/dist/scenes/support/reporting/reporter.js +0 -101
  1952. package/dist/scenes/support/training/training-captions.d.ts +0 -14
  1953. package/dist/scenes/support/training/training-captions.js +0 -98
  1954. package/dist/scenes/support/training/training-report.d.ts +0 -10
  1955. package/dist/scenes/support/training/training-report.js +0 -78
  1956. package/dist/scenes/support/training/training-transcript.d.ts +0 -24
  1957. package/dist/scenes/support/training/training-transcript.js +0 -206
  1958. package/dist/scenes/support/training/training.d.ts +0 -10
  1959. package/dist/scenes/support/training/training.js +0 -134
  1960. package/dist/scenes/support/validation/schema.d.ts +0 -5
  1961. package/dist/scenes/support/validation/schema.js +0 -5
  1962. package/dist/scenes/support/validation/selectors.d.ts +0 -3
  1963. package/dist/scenes/support/validation/selectors.js +0 -21
  1964. package/dist/scenes/support/visual-audit/visual-audit-contact-sheets.d.ts +0 -6
  1965. package/dist/scenes/support/visual-audit/visual-audit-contact-sheets.js +0 -119
  1966. package/dist/scenes/support/visual-audit/visual-audit-report.d.ts +0 -11
  1967. package/dist/scenes/support/visual-audit/visual-audit-report.js +0 -85
  1968. package/dist/scenes/support/visual-audit/visual-audit-review.d.ts +0 -4
  1969. package/dist/scenes/support/visual-audit/visual-audit-review.js +0 -4
  1970. package/dist/scenes/support/visual-audit/visual-audit-routes.d.ts +0 -13
  1971. package/dist/scenes/support/visual-audit/visual-audit-routes.js +0 -317
  1972. package/dist/scenes/support/visual-audit/visual-audit.d.ts +0 -3
  1973. package/dist/scenes/support/visual-audit/visual-audit.js +0 -3
  1974. package/dist/scenes/testing/visual-audit-fixtures.d.ts +0 -25
  1975. package/dist/scenes/testing/visual-audit-fixtures.js +0 -299
  1976. package/dist/scenes/testing/visual-audit-tree-dx.d.ts +0 -17
  1977. package/dist/scenes/testing/visual-audit-tree-dx.js +0 -67
  1978. package/dist/scenes/types/scene-agent-lab.d.ts +0 -190
  1979. package/dist/scenes/types/scene-agent-lab.js +0 -4
  1980. package/dist/scenes/types/scene-checkpoint.d.ts +0 -212
  1981. package/dist/scenes/types/scene-checkpoint.js +0 -0
  1982. package/dist/scenes/types/scene-diagram.d.ts +0 -191
  1983. package/dist/scenes/types/scene-diagram.js +0 -0
  1984. package/dist/scenes/types/scene-evidence-artifact-kind.d.ts +0 -209
  1985. package/dist/scenes/types/scene-evidence-artifact-kind.js +0 -0
  1986. package/dist/scenes/types/scene-publish-plan-paths.d.ts +0 -249
  1987. package/dist/scenes/types/scene-publish-plan-paths.js +0 -0
  1988. package/dist/scenes/types/scene-render-input.d.ts +0 -240
  1989. package/dist/scenes/types/scene-render-input.js +0 -0
  1990. package/dist/scenes/types/scene-schema-version.d.ts +0 -257
  1991. package/dist/scenes/types/scene-schema-version.js +0 -8
  1992. package/dist/scenes/types/scene-timeline-writer.d.ts +0 -186
  1993. package/dist/scenes/types/scene-timeline-writer.js +0 -0
  1994. package/dist/scenes/types/scene-validation-report.d.ts +0 -206
  1995. package/dist/scenes/types/scene-validation-report.js +0 -0
  1996. package/dist/scenes/types/scene-visual-audit-finding.d.ts +0 -235
  1997. package/dist/scenes/types/scene-visual-audit-finding.js +0 -0
  1998. package/dist/scenes/types.d.ts +0 -10
  1999. package/dist/scenes/types.js +0 -10
  2000. package/dist/scenes/visual-audit/capture-route.d.ts +0 -33
  2001. package/dist/scenes/visual-audit/capture-route.js +0 -221
  2002. package/dist/scenes/visual-audit/run-scene-visual-audit.d.ts +0 -3
  2003. package/dist/scenes/visual-audit/run-scene-visual-audit.js +0 -244
  2004. package/dist/scenes/visual-audit/split-diagnostics.d.ts +0 -1718
  2005. package/dist/scenes/visual-audit/split-diagnostics.js +0 -177
  2006. package/dist/scenes/visual-audit-review/enrich-client-errors.d.ts +0 -59
  2007. package/dist/scenes/visual-audit-review/enrich-client-errors.js +0 -256
  2008. package/dist/scenes/visual-audit-review/format-owner-brief.d.ts +0 -12
  2009. package/dist/scenes/visual-audit-review/format-owner-brief.js +0 -140
  2010. package/dist/scenes/visual-audit-review/incident-title.d.ts +0 -49
  2011. package/dist/scenes/visual-audit-review/incident-title.js +0 -266
  2012. package/dist/scenes/visual-audit-review/severities.d.ts +0 -53
  2013. package/dist/scenes/visual-audit-review/severities.js +0 -221
  2014. package/dist/scripts/agents/fixture-tools.js +0 -29
  2015. package/dist/scripts/build/build-dist.js +0 -306
  2016. package/dist/scripts/build/build-tenant-worker.js +0 -36
  2017. package/dist/scripts/build/check-build-warnings.js +0 -51
  2018. package/dist/scripts/build/tenant-build.js +0 -44
  2019. package/dist/scripts/capacity/capacity-core/generate-capacity-operator-parity.js +0 -13
  2020. package/dist/scripts/configuration/config.js +0 -131
  2021. package/dist/scripts/configuration/key-agent.js +0 -165
  2022. package/dist/scripts/content/patch-starlight-content-path.js +0 -173
  2023. package/dist/scripts/content/publish-content.js +0 -71
  2024. package/dist/scripts/guarantees/migrate-journey-csv-to-guarantees.js +0 -140
  2025. package/dist/scripts/hosting/deployment-readiness.js +0 -20
  2026. package/dist/scripts/hosting/tenant-deploy.js +0 -220
  2027. package/dist/scripts/hosting/test-cloudflare-local.js +0 -209
  2028. package/dist/scripts/maintenance/cleanup-markdown.js +0 -377
  2029. package/dist/scripts/maintenance/install-managed-dependencies.js +0 -12
  2030. package/dist/scripts/maintenance/prepare.js +0 -10
  2031. package/dist/scripts/maintenance/repair-extracted-class-interfaces.js +0 -36
  2032. package/dist/scripts/operations/consolidate-workflow-lifecycle-tests.js +0 -87
  2033. package/dist/scripts/operations/operations-runner-smoke.js +0 -16
  2034. package/dist/scripts/operations/tenant-workflow-action.js +0 -131
  2035. package/dist/scripts/packages/assert-release-tag-version.js +0 -21
  2036. package/dist/scripts/packages/package-tools.js +0 -85
  2037. package/dist/scripts/packages/publish-package.js +0 -93
  2038. package/dist/scripts/packages/published-package-readback.js +0 -61
  2039. package/dist/scripts/packages/release-verify.js +0 -106
  2040. package/dist/scripts/packages/release-version.js +0 -16
  2041. package/dist/scripts/packages/verify-published-package.js +0 -15
  2042. package/dist/scripts/persistence/tenant-d1-migrate-local.js +0 -15
  2043. package/dist/scripts/runtime/local-dev.js +0 -129
  2044. package/dist/scripts/runtime/tenant-dev.js +0 -159
  2045. package/dist/scripts/standards/acquire-accepted-baseline.js +0 -104
  2046. package/dist/scripts/standards/build-contract-bundle.js +0 -52
  2047. package/dist/scripts/standards/compare-compatibility.js +0 -49
  2048. package/dist/scripts/standards/contract-models.js +0 -43
  2049. package/dist/scripts/standards/create-release-evidence.js +0 -61
  2050. package/dist/scripts/standards/package-acceptance.js +0 -43
  2051. package/dist/scripts/standards/resolve-composition.js +0 -20
  2052. package/dist/scripts/standards/verify-api-consumer.js +0 -80
  2053. package/dist/scripts/templates/scaffold-site.js +0 -66
  2054. package/dist/scripts/templates/sync-template.js +0 -20
  2055. package/dist/scripts/templates/template-command.js +0 -31
  2056. package/dist/scripts/templates/validate-templates.js +0 -6
  2057. package/dist/scripts/tenant/tenant-astro-command.js +0 -3
  2058. package/dist/scripts/tenant/tenant-destroy.js +0 -112
  2059. package/dist/scripts/tenant/tenant-lint.js +0 -4
  2060. package/dist/scripts/testing/cli-test-fixtures.js +0 -44
  2061. package/dist/scripts/testing/run-fixture-astro-command.js +0 -18
  2062. package/dist/scripts/testing/tenant-test.js +0 -4
  2063. package/dist/scripts/testing/test-live-acceptance-cleanup-service.js +0 -57
  2064. package/dist/scripts/testing/test-scaffold.js +0 -299
  2065. package/dist/scripts/testing/test-smoke.js +0 -137
  2066. package/dist/scripts/treedx/repositories/generate-treedx-openapi-types.js +0 -186
  2067. package/dist/scripts/treedx/workspaces/workspace-command-e2e.js +0 -4
  2068. package/dist/scripts/treedx/workspaces/workspace-lint.js +0 -15
  2069. package/dist/scripts/treedx/workspaces/workspace-preflight.js +0 -22
  2070. package/dist/scripts/treedx/workspaces/workspace-publish-changed-packages.js +0 -16
  2071. package/dist/scripts/treedx/workspaces/workspace-release-test.js +0 -104
  2072. package/dist/scripts/treedx/workspaces/workspace-release-verify.js +0 -81
  2073. package/dist/scripts/treedx/workspaces/workspace-save.js +0 -64
  2074. package/dist/scripts/treedx/workspaces/workspace-start-warning.js +0 -3
  2075. package/dist/scripts/treedx/workspaces/workspace-test-unit.js +0 -4
  2076. package/dist/scripts/treedx/workspaces/workspace-test.js +0 -17
  2077. package/dist/scripts/verification/check-file-architecture.js +0 -114
  2078. package/dist/scripts/verification/check-file-lengths.js +0 -46
  2079. package/dist/scripts/verification/tenant-check.js +0 -6
  2080. package/dist/scripts/verification/verify-driver.js +0 -39
  2081. package/dist/scripts/workspace-command-e2e/root.js +0 -217
  2082. package/dist/scripts/workspace-command-e2e/run-dev-session.js +0 -238
  2083. package/dist/scripts/workspace-command-e2e/run-local-suite.js +0 -259
  2084. package/dist/scripts/workspace-command-e2e/run-workspace-command-e2e.js +0 -24
  2085. package/dist/sdk/accounts/resolve-dispatch-token.d.ts +0 -3
  2086. package/dist/sdk/accounts/resolve-dispatch-token.js +0 -12
  2087. package/dist/sdk/agents/list-agent-specs.d.ts +0 -5
  2088. package/dist/sdk/agents/list-agent-specs.js +0 -8
  2089. package/dist/sdk/agents/list-raw-agent-specs.d.ts +0 -4
  2090. package/dist/sdk/agents/list-raw-agent-specs.js +0 -12
  2091. package/dist/sdk/agents/scope-for-agent.d.ts +0 -3
  2092. package/dist/sdk/agents/scope-for-agent.js +0 -7
  2093. package/dist/sdk/build/build-context-pack.d.ts +0 -3
  2094. package/dist/sdk/build/build-context-pack.js +0 -6
  2095. package/dist/sdk/interface.d.ts +0 -57
  2096. package/dist/sdk/interface.js +0 -0
  2097. package/dist/sdk/methods.d.ts +0 -2
  2098. package/dist/sdk/methods.js +0 -109
  2099. package/dist/sdk/packages/get-release.d.ts +0 -3
  2100. package/dist/sdk/packages/get-release.js +0 -7
  2101. package/dist/sdk/packages/get-share-package.d.ts +0 -3
  2102. package/dist/sdk/packages/get-share-package.js +0 -7
  2103. package/dist/sdk/packages/list-releases.d.ts +0 -3
  2104. package/dist/sdk/packages/list-releases.js +0 -7
  2105. package/dist/sdk/packages/list-share-packages.d.ts +0 -3
  2106. package/dist/sdk/packages/list-share-packages.js +0 -7
  2107. package/dist/sdk/packages/release-all-leases.d.ts +0 -4
  2108. package/dist/sdk/packages/release-all-leases.js +0 -7
  2109. package/dist/sdk/packages/release-lease.d.ts +0 -3
  2110. package/dist/sdk/packages/release-lease.js +0 -7
  2111. package/dist/sdk/packages/upsert-release.d.ts +0 -5
  2112. package/dist/sdk/packages/upsert-release.js +0 -7
  2113. package/dist/sdk/packages/upsert-share-package.d.ts +0 -3
  2114. package/dist/sdk/packages/upsert-share-package.js +0 -7
  2115. package/dist/sdk/runtime/execute-dispatch-locally.d.ts +0 -3
  2116. package/dist/sdk/runtime/execute-dispatch-locally.js +0 -47
  2117. package/dist/sdk/seeds/resolve-seeds.d.ts +0 -3
  2118. package/dist/sdk/seeds/resolve-seeds.js +0 -6
  2119. package/dist/sdk/support/approvals/create-approval-request.d.ts +0 -3
  2120. package/dist/sdk/support/approvals/create-approval-request.js +0 -7
  2121. package/dist/sdk/support/approvals/decide-approval-request.d.ts +0 -3
  2122. package/dist/sdk/support/approvals/decide-approval-request.js +0 -7
  2123. package/dist/sdk/support/approvals/list-approval-requests.d.ts +0 -3
  2124. package/dist/sdk/support/approvals/list-approval-requests.js +0 -7
  2125. package/dist/sdk/support/create.d.ts +0 -3
  2126. package/dist/sdk/support/create.js +0 -9
  2127. package/dist/sdk/support/cursors/get-cursor.d.ts +0 -3
  2128. package/dist/sdk/support/cursors/get-cursor.js +0 -7
  2129. package/dist/sdk/support/cursors/upsert-cursor.d.ts +0 -3
  2130. package/dist/sdk/support/cursors/upsert-cursor.js +0 -7
  2131. package/dist/sdk/support/execution/record-run.d.ts +0 -3
  2132. package/dist/sdk/support/execution/record-run.js +0 -7
  2133. package/dist/sdk/support/get.d.ts +0 -3
  2134. package/dist/sdk/support/get.js +0 -9
  2135. package/dist/sdk/support/graph/explain-reference-chain.d.ts +0 -2
  2136. package/dist/sdk/support/graph/explain-reference-chain.js +0 -6
  2137. package/dist/sdk/support/graph/follow-references.d.ts +0 -3
  2138. package/dist/sdk/support/graph/follow-references.js +0 -6
  2139. package/dist/sdk/support/graph/follow.d.ts +0 -9
  2140. package/dist/sdk/support/graph/follow.js +0 -11
  2141. package/dist/sdk/support/graph/get-backlinks.d.ts +0 -7
  2142. package/dist/sdk/support/graph/get-backlinks.js +0 -6
  2143. package/dist/sdk/support/graph/get-neighbors.d.ts +0 -7
  2144. package/dist/sdk/support/graph/get-neighbors.js +0 -6
  2145. package/dist/sdk/support/graph/get-related.d.ts +0 -3
  2146. package/dist/sdk/support/graph/get-related.js +0 -6
  2147. package/dist/sdk/support/graph/resolve-reference.d.ts +0 -6
  2148. package/dist/sdk/support/graph/resolve-reference.js +0 -6
  2149. package/dist/sdk/support/messages/ack-message.d.ts +0 -6
  2150. package/dist/sdk/support/messages/ack-message.js +0 -7
  2151. package/dist/sdk/support/messages/claim-message.d.ts +0 -3
  2152. package/dist/sdk/support/messages/claim-message.js +0 -9
  2153. package/dist/sdk/support/messages/create-message.d.ts +0 -3
  2154. package/dist/sdk/support/messages/create-message.js +0 -7
  2155. package/dist/sdk/support/messages/dispatch.d.ts +0 -3
  2156. package/dist/sdk/support/messages/dispatch.js +0 -42
  2157. package/dist/sdk/support/messages/envelope.d.ts +0 -3
  2158. package/dist/sdk/support/messages/envelope.js +0 -13
  2159. package/dist/sdk/support/pick.d.ts +0 -3
  2160. package/dist/sdk/support/pick.js +0 -11
  2161. package/dist/sdk/support/read.d.ts +0 -9
  2162. package/dist/sdk/support/read.js +0 -9
  2163. package/dist/sdk/support/search/search-entities.d.ts +0 -3
  2164. package/dist/sdk/support/search/search-entities.js +0 -6
  2165. package/dist/sdk/support/search/search-files.d.ts +0 -3
  2166. package/dist/sdk/support/search/search-files.js +0 -6
  2167. package/dist/sdk/support/search/search-sections.d.ts +0 -3
  2168. package/dist/sdk/support/search/search-sections.js +0 -6
  2169. package/dist/sdk/support/search/search.d.ts +0 -3
  2170. package/dist/sdk/support/search/search.js +0 -11
  2171. package/dist/sdk/support/update.d.ts +0 -3
  2172. package/dist/sdk/support/update.js +0 -9
  2173. package/dist/sdk/support/workstreams/append-workstream-event.d.ts +0 -3
  2174. package/dist/sdk/support/workstreams/append-workstream-event.js +0 -7
  2175. package/dist/sdk/support/workstreams/get-workstream.d.ts +0 -3
  2176. package/dist/sdk/support/workstreams/get-workstream.js +0 -7
  2177. package/dist/sdk/support/workstreams/list-workstreams.d.ts +0 -3
  2178. package/dist/sdk/support/workstreams/list-workstreams.js +0 -7
  2179. package/dist/sdk/support/workstreams/upsert-workstream.d.ts +0 -3
  2180. package/dist/sdk/support/workstreams/upsert-workstream.js +0 -7
  2181. package/dist/sdk/teams/upsert-team-inbox-item.d.ts +0 -3
  2182. package/dist/sdk/teams/upsert-team-inbox-item.js +0 -7
  2183. package/dist/sdk/treedx/graph/get-graph-node.d.ts +0 -2
  2184. package/dist/sdk/treedx/graph/get-graph-node.js +0 -6
  2185. package/dist/sdk/treedx/graph/get-subgraph.d.ts +0 -3
  2186. package/dist/sdk/treedx/graph/get-subgraph.js +0 -6
  2187. package/dist/sdk/treedx/graph/parse-graph-dsl.d.ts +0 -3
  2188. package/dist/sdk/treedx/graph/parse-graph-dsl.js +0 -6
  2189. package/dist/sdk/treedx/graph/query-graph.d.ts +0 -3
  2190. package/dist/sdk/treedx/graph/query-graph.js +0 -6
  2191. package/dist/sdk/treedx/graph/refresh-graph.d.ts +0 -3
  2192. package/dist/sdk/treedx/graph/refresh-graph.js +0 -6
  2193. package/dist/sdk-types/commerce/capacity/commerce-capacity-listing-input.d.ts +0 -250
  2194. package/dist/sdk-types/commerce/capacity/commerce-capacity-listing-input.js +0 -0
  2195. package/dist/sdk-types/commerce/catalog/upsert-catalog-item-request.d.ts +0 -124
  2196. package/dist/sdk-types/commerce/catalog/upsert-catalog-item-request.js +0 -0
  2197. package/dist/sdk-types/commerce/governance/commerce-governance-states.d.ts +0 -42
  2198. package/dist/sdk-types/commerce/governance/commerce-governance-states.js +0 -198
  2199. package/dist/sdk-types/commerce/payments/commerce-entitlement.d.ts +0 -244
  2200. package/dist/sdk-types/commerce/payments/commerce-entitlement.js +0 -0
  2201. package/dist/sdk-types/commerce/payments/commerce-subscription-statuses.d.ts +0 -77
  2202. package/dist/sdk-types/commerce/payments/commerce-subscription-statuses.js +0 -166
  2203. package/dist/sdk-types/commerce/services/commerce-service-contract.d.ts +0 -247
  2204. package/dist/sdk-types/commerce/services/commerce-service-contract.js +0 -0
  2205. package/dist/sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.d.ts +0 -233
  2206. package/dist/sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.js +0 -0
  2207. package/dist/secrets-capability/service-vault-crypto.d.ts +0 -20
  2208. package/dist/secrets-capability/service-vault-crypto.js +0 -278
  2209. package/dist/seeds/errors.d.ts +0 -5
  2210. package/dist/seeds/errors.js +0 -22
  2211. package/dist/seeds/index.d.ts +0 -63
  2212. package/dist/seeds/index.js +0 -116
  2213. package/dist/seeds/licensing/portfolio-license.d.ts +0 -60
  2214. package/dist/seeds/licensing/portfolio-license.js +0 -130
  2215. package/dist/seeds/loader.d.ts +0 -8
  2216. package/dist/seeds/loader.js +0 -32
  2217. package/dist/seeds/normalize.d.ts +0 -13
  2218. package/dist/seeds/normalize.js +0 -156
  2219. package/dist/seeds/planner.d.ts +0 -10
  2220. package/dist/seeds/planner.js +0 -144
  2221. package/dist/seeds/reconciliation/repository-units.d.ts +0 -3
  2222. package/dist/seeds/reconciliation/repository-units.js +0 -175
  2223. package/dist/seeds/repositories/content-cutover.d.ts +0 -43
  2224. package/dist/seeds/repositories/content-cutover.js +0 -141
  2225. package/dist/seeds/repositories/organization-reference-migration.d.ts +0 -45
  2226. package/dist/seeds/repositories/organization-reference-migration.js +0 -136
  2227. package/dist/seeds/repositories/repository-history.d.ts +0 -135
  2228. package/dist/seeds/repositories/repository-history.js +0 -343
  2229. package/dist/seeds/repositories/source-repository-history.d.ts +0 -85
  2230. package/dist/seeds/repositories/source-repository-history.js +0 -123
  2231. package/dist/seeds/repositories/support-repository-workflow.d.ts +0 -73
  2232. package/dist/seeds/repositories/support-repository-workflow.js +0 -127
  2233. package/dist/seeds/runtime/local-capacity.d.ts +0 -65
  2234. package/dist/seeds/runtime/local-capacity.js +0 -402
  2235. package/dist/seeds/schema/array-bucket.d.ts +0 -7
  2236. package/dist/seeds/schema/array-bucket.js +0 -261
  2237. package/dist/seeds/schema/parse-project.d.ts +0 -15
  2238. package/dist/seeds/schema/parse-project.js +0 -253
  2239. package/dist/seeds/schema/resource-buckets.d.ts +0 -35
  2240. package/dist/seeds/schema/resource-buckets.js +0 -312
  2241. package/dist/seeds/schema.d.ts +0 -3
  2242. package/dist/seeds/schema.js +0 -3
  2243. package/dist/seeds/types.d.ts +0 -240
  2244. package/dist/seeds/types.js +0 -12
  2245. package/dist/seeds/workspaces/admin-descriptor-migration.d.ts +0 -37
  2246. package/dist/seeds/workspaces/admin-descriptor-migration.js +0 -99
  2247. package/dist/seeds/workspaces/gateway-contract-migration.d.ts +0 -31
  2248. package/dist/seeds/workspaces/gateway-contract-migration.js +0 -176
  2249. package/dist/seeds/workspaces/managed-workspace-overlay.d.ts +0 -10
  2250. package/dist/seeds/workspaces/managed-workspace-overlay.js +0 -28
  2251. package/dist/seeds/workspaces/market-api-package-lock.d.ts +0 -2
  2252. package/dist/seeds/workspaces/market-api-package-lock.js +0 -38
  2253. package/dist/seeds/workspaces/market-api-workspace.d.ts +0 -60
  2254. package/dist/seeds/workspaces/market-api-workspace.js +0 -528
  2255. package/dist/seeds/workspaces/platform-workspace-history.d.ts +0 -124
  2256. package/dist/seeds/workspaces/platform-workspace-history.js +0 -312
  2257. package/dist/stores/cursor-store.d.ts +0 -10
  2258. package/dist/stores/cursor-store.js +0 -164
  2259. package/dist/stores/envelopes.d.ts +0 -116
  2260. package/dist/stores/envelopes.js +0 -219
  2261. package/dist/stores/helpers.d.ts +0 -12
  2262. package/dist/stores/helpers.js +0 -42
  2263. package/dist/stores/lease-store.d.ts +0 -18
  2264. package/dist/stores/lease-store.js +0 -189
  2265. package/dist/stores/message-store.d.ts +0 -12
  2266. package/dist/stores/message-store.js +0 -273
  2267. package/dist/stores/operational-store.d.ts +0 -11
  2268. package/dist/stores/operational-store.js +0 -214
  2269. package/dist/stores/project-workflow-store/json-record.d.ts +0 -29
  2270. package/dist/stores/project-workflow-store/json-record.js +0 -223
  2271. package/dist/stores/project-workflow-store/sqlite-project-workflow-store.d.ts +0 -37
  2272. package/dist/stores/project-workflow-store/sqlite-project-workflow-store.js +0 -271
  2273. package/dist/stores/project-workflow-store.d.ts +0 -2
  2274. package/dist/stores/project-workflow-store.js +0 -2
  2275. package/dist/stores/run-store.d.ts +0 -9
  2276. package/dist/stores/run-store.js +0 -75
  2277. package/dist/stores/subscription-store.d.ts +0 -8
  2278. package/dist/stores/subscription-store.js +0 -73
  2279. package/dist/testing/fixture-support.d.ts +0 -24
  2280. package/dist/testing/fixture-support.js +0 -385
  2281. package/dist/treedx/accounts/auth.d.ts +0 -17
  2282. package/dist/treedx/accounts/auth.js +0 -48
  2283. package/dist/treedx/accounts/repository-name.d.ts +0 -2
  2284. package/dist/treedx/accounts/repository-name.js +0 -10
  2285. package/dist/treedx/changesets/unified-diff.d.ts +0 -7
  2286. package/dist/treedx/changesets/unified-diff.js +0 -56
  2287. package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +0 -3
  2288. package/dist/treedx/client/accounts/contracts/auth-mode.js +0 -6
  2289. package/dist/treedx/client/build/creation/build-context.d.ts +0 -3
  2290. package/dist/treedx/client/build/creation/build-context.js +0 -7
  2291. package/dist/treedx/client/build/creation/build-snapshot.d.ts +0 -3
  2292. package/dist/treedx/client/build/creation/build-snapshot.js +0 -8
  2293. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +0 -3
  2294. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +0 -7
  2295. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +0 -6
  2296. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +0 -10
  2297. package/dist/treedx/client/methods.d.ts +0 -102
  2298. package/dist/treedx/client/methods.js +0 -209
  2299. package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +0 -3
  2300. package/dist/treedx/client/persistence/contracts/restore-storage.js +0 -6
  2301. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +0 -3
  2302. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +0 -6
  2303. package/dist/treedx/client/repositories/creation/register-repository.d.ts +0 -3
  2304. package/dist/treedx/client/repositories/creation/register-repository.js +0 -7
  2305. package/dist/treedx/client/repositories/queries/get-repository.d.ts +0 -3
  2306. package/dist/treedx/client/repositories/queries/get-repository.js +0 -7
  2307. package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +0 -3
  2308. package/dist/treedx/client/repositories/queries/list-repository-paths.js +0 -7
  2309. package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +0 -3
  2310. package/dist/treedx/client/repositories/queries/list-repository-refs.js +0 -12
  2311. package/dist/treedx/client/repositories/queries/query-repository.d.ts +0 -3
  2312. package/dist/treedx/client/repositories/queries/query-repository.js +0 -7
  2313. package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +0 -3
  2314. package/dist/treedx/client/repositories/queries/read-repository-file.js +0 -6
  2315. package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +0 -3
  2316. package/dist/treedx/client/repositories/queries/read-repository-files.js +0 -7
  2317. package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +0 -3
  2318. package/dist/treedx/client/repositories/queries/search-repository-files.js +0 -7
  2319. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +0 -3
  2320. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +0 -9
  2321. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +0 -3
  2322. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +0 -6
  2323. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +0 -3
  2324. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +0 -7
  2325. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +0 -5
  2326. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +0 -7
  2327. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +0 -3
  2328. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +0 -6
  2329. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +0 -3
  2330. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +0 -7
  2331. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +0 -2
  2332. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +0 -19
  2333. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +0 -3
  2334. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +0 -7
  2335. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +0 -3
  2336. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +0 -6
  2337. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +0 -3
  2338. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +0 -7
  2339. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +0 -3
  2340. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +0 -6
  2341. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +0 -3
  2342. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +0 -7
  2343. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +0 -6
  2344. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +0 -23
  2345. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +0 -3
  2346. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +0 -8
  2347. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +0 -3
  2348. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +0 -7
  2349. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +0 -3
  2350. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +0 -8
  2351. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +0 -3
  2352. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +0 -8
  2353. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +0 -2
  2354. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +0 -15
  2355. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +0 -2
  2356. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +0 -38
  2357. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +0 -2
  2358. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +0 -15
  2359. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +0 -2
  2360. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +0 -15
  2361. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +0 -2
  2362. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +0 -14
  2363. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +0 -2
  2364. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +0 -14
  2365. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +0 -6
  2366. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +0 -41
  2367. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +0 -2
  2368. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +0 -14
  2369. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +0 -3
  2370. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +0 -7
  2371. package/dist/treedx/client/support/creation/apply-changeset.d.ts +0 -3
  2372. package/dist/treedx/client/support/creation/apply-changeset.js +0 -10
  2373. package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +0 -3
  2374. package/dist/treedx/client/support/creation/apply-storage-migration.js +0 -7
  2375. package/dist/treedx/client/support/creation/create-migration.d.ts +0 -6
  2376. package/dist/treedx/client/support/creation/create-migration.js +0 -7
  2377. package/dist/treedx/client/support/creation/export-artifact.d.ts +0 -3
  2378. package/dist/treedx/client/support/creation/export-artifact.js +0 -8
  2379. package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +0 -3
  2380. package/dist/treedx/client/support/creation/plan-storage-migration.js +0 -7
  2381. package/dist/treedx/client/support/creation/request-binary.d.ts +0 -6
  2382. package/dist/treedx/client/support/creation/request-binary.js +0 -42
  2383. package/dist/treedx/client/support/creation/write-file.d.ts +0 -3
  2384. package/dist/treedx/client/support/creation/write-file.js +0 -10
  2385. package/dist/treedx/client/support/creation/write-files.d.ts +0 -3
  2386. package/dist/treedx/client/support/creation/write-files.js +0 -12
  2387. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +0 -3
  2388. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +0 -7
  2389. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +0 -3
  2390. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +0 -7
  2391. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +0 -3
  2392. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +0 -9
  2393. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +0 -4
  2394. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +0 -6
  2395. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +0 -3
  2396. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +0 -7
  2397. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +0 -3
  2398. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +0 -7
  2399. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +0 -3
  2400. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +0 -7
  2401. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +0 -3
  2402. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +0 -7
  2403. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +0 -3
  2404. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +0 -10
  2405. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +0 -3
  2406. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +0 -9
  2407. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +0 -3
  2408. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +0 -7
  2409. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +0 -6
  2410. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +0 -7
  2411. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +0 -6
  2412. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +0 -7
  2413. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +0 -6
  2414. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +0 -6
  2415. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +0 -15
  2416. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +0 -6
  2417. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +0 -3
  2418. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +0 -7
  2419. package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +0 -3
  2420. package/dist/treedx/client/support/retirement/cleanup-artifacts.js +0 -7
  2421. package/dist/treedx/client/support/retirement/delete-artifact.d.ts +0 -3
  2422. package/dist/treedx/client/support/retirement/delete-artifact.js +0 -7
  2423. package/dist/treedx/client/support/retirement/delete-file.d.ts +0 -3
  2424. package/dist/treedx/client/support/retirement/delete-file.js +0 -10
  2425. package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +0 -3
  2426. package/dist/treedx/client/support/retirement/rollback-storage-migration.js +0 -7
  2427. package/dist/treedx/client/support/updates/patch-file.d.ts +0 -3
  2428. package/dist/treedx/client/support/updates/patch-file.js +0 -10
  2429. package/dist/treedx/client/support/updates/refresh-search-index.d.ts +0 -3
  2430. package/dist/treedx/client/support/updates/refresh-search-index.js +0 -8
  2431. package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +0 -3
  2432. package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +0 -6
  2433. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +0 -3
  2434. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +0 -8
  2435. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +0 -3
  2436. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +0 -27
  2437. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +0 -3
  2438. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +0 -41
  2439. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +0 -3
  2440. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +0 -27
  2441. package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +0 -3
  2442. package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +0 -6
  2443. package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +0 -3
  2444. package/dist/treedx/client/treedx/blobs/creation/write-blob.js +0 -8
  2445. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +0 -3
  2446. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +0 -8
  2447. package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +0 -3
  2448. package/dist/treedx/client/treedx/blobs/queries/read-blob.js +0 -10
  2449. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +0 -3
  2450. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +0 -7
  2451. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +0 -3
  2452. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +0 -8
  2453. package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +0 -3
  2454. package/dist/treedx/client/treedx/federation/contracts/federated-query.js +0 -7
  2455. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +0 -3
  2456. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +0 -6
  2457. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +0 -3
  2458. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +0 -7
  2459. package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +0 -3
  2460. package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +0 -7
  2461. package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +0 -3
  2462. package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +0 -7
  2463. package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +0 -3
  2464. package/dist/treedx/client/treedx/graph/contracts/federated-context.js +0 -7
  2465. package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +0 -3
  2466. package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +0 -7
  2467. package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +0 -3
  2468. package/dist/treedx/client/treedx/graph/contracts/graph-search.js +0 -8
  2469. package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +0 -3
  2470. package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +0 -10
  2471. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +0 -3
  2472. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +0 -7
  2473. package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +0 -3
  2474. package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +0 -7
  2475. package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +0 -3
  2476. package/dist/treedx/client/treedx/graph/queries/query-graph.js +0 -7
  2477. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +0 -3
  2478. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +0 -6
  2479. package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +0 -3
  2480. package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +0 -6
  2481. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +0 -3
  2482. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +0 -6
  2483. package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +0 -3
  2484. package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +0 -7
  2485. package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +0 -3
  2486. package/dist/treedx/client/treedx/search/contracts/federated-search.js +0 -7
  2487. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +0 -3
  2488. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +0 -7
  2489. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +0 -3
  2490. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +0 -12
  2491. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +0 -2
  2492. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +0 -6
  2493. package/dist/treedx/federation/federated-client.d.ts +0 -27
  2494. package/dist/treedx/federation/federated-client.js +0 -158
  2495. package/dist/treedx/generated/openapi-types.d.ts +0 -3662
  2496. package/dist/treedx/generated/openapi-types.js +0 -0
  2497. package/dist/treedx/graph/graph-adapter.d.ts +0 -33
  2498. package/dist/treedx/graph/graph-adapter.js +0 -156
  2499. package/dist/treedx/graph/graph.d.ts +0 -52
  2500. package/dist/treedx/graph/graph.js +0 -133
  2501. package/dist/treedx/reconciliation/adapters.d.ts +0 -6
  2502. package/dist/treedx/reconciliation/adapters.js +0 -36
  2503. package/dist/treedx/reconciliation/query-adapter.d.ts +0 -19
  2504. package/dist/treedx/reconciliation/query-adapter.js +0 -62
  2505. package/dist/treedx/reconciliation/repository-adapter.d.ts +0 -54
  2506. package/dist/treedx/reconciliation/repository-adapter.js +0 -374
  2507. package/dist/treedx/repositories/treedx-backends.d.ts +0 -4
  2508. package/dist/treedx/repositories/treedx-backends.js +0 -4
  2509. package/dist/treedx/support/client.d.ts +0 -251
  2510. package/dist/treedx/support/client.js +0 -252
  2511. package/dist/treedx/support/errors.d.ts +0 -13
  2512. package/dist/treedx/support/errors.js +0 -17
  2513. package/dist/treedx/support/market-integration.d.ts +0 -27
  2514. package/dist/treedx/support/market-integration.js +0 -162
  2515. package/dist/treedx/support/ports.d.ts +0 -166
  2516. package/dist/treedx/support/ports.js +0 -231
  2517. package/dist/treedx/support/registry-client.d.ts +0 -11
  2518. package/dist/treedx/support/registry-client.js +0 -19
  2519. package/dist/treedx/support/sdk-integration.d.ts +0 -27
  2520. package/dist/treedx/support/sdk-integration.js +0 -63
  2521. package/dist/treedx/types/tree-dx-actor.d.ts +0 -209
  2522. package/dist/treedx/types/tree-dx-actor.js +0 -8
  2523. package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +0 -13
  2524. package/dist/treedx/types/tree-dx-artifact-list-response.js +0 -0
  2525. package/dist/treedx/types/tree-dx-changeset.d.ts +0 -51
  2526. package/dist/treedx/types/tree-dx-changeset.js +0 -6
  2527. package/dist/treedx/types/tree-dx-context-request.d.ts +0 -245
  2528. package/dist/treedx/types/tree-dx-context-request.js +0 -0
  2529. package/dist/treedx/types/tree-dx-exec-result.d.ts +0 -249
  2530. package/dist/treedx/types/tree-dx-exec-result.js +0 -0
  2531. package/dist/treedx/types/tree-dx-list-tree-request.d.ts +0 -222
  2532. package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
  2533. package/dist/treedx/types/tree-dx-push-request.d.ts +0 -229
  2534. package/dist/treedx/types/tree-dx-push-request.js +0 -0
  2535. package/dist/treedx/workspaces/workspace-adapter.d.ts +0 -28
  2536. package/dist/treedx/workspaces/workspace-adapter.js +0 -68
  2537. package/dist/treedx-backends/normalize-path-rule.d.ts +0 -57
  2538. package/dist/treedx-backends/normalize-path-rule.js +0 -148
  2539. package/dist/treedx-backends/tree-dx-content-backend.d.ts +0 -86
  2540. package/dist/treedx-backends/tree-dx-content-backend.js +0 -303
  2541. package/dist/treedx-backends/tree-dx-graph-backend.d.ts +0 -43
  2542. package/dist/treedx-backends/tree-dx-graph-backend.js +0 -99
  2543. package/dist/treedx-backends/tree-dx-repository-hint.d.ts +0 -97
  2544. package/dist/treedx-backends/tree-dx-repository-hint.js +0 -159
  2545. package/dist/treeseed/services/compose.yml +0 -6
  2546. package/dist/treeseed/template-catalog/catalog.fixture.json +0 -215
  2547. package/dist/types/cloudflare.d.ts +0 -54
  2548. package/dist/verification/create-workspace-act-workflow.d.ts +0 -16
  2549. package/dist/verification/create-workspace-act-workflow.js +0 -223
  2550. package/dist/verification/run-verify-driver.d.ts +0 -7
  2551. package/dist/verification/run-verify-driver.js +0 -71
  2552. package/dist/verification/verify-driver.d.ts +0 -60
  2553. package/dist/verification/verify-driver.js +0 -168
  2554. package/dist/workflow/operations/commerce/catalog/back-merge-production-into-staging.d.ts +0 -90
  2555. package/dist/workflow/operations/commerce/catalog/back-merge-production-into-staging.js +0 -241
  2556. package/dist/workflow/operations/commerce/catalog/run-release-production-guarantees.d.ts +0 -79
  2557. package/dist/workflow/operations/commerce/catalog/run-release-production-guarantees.js +0 -235
  2558. package/dist/workflow/operations/configuration/workflow-config.d.ts +0 -192
  2559. package/dist/workflow/operations/configuration/workflow-config.js +0 -345
  2560. package/dist/workflow/operations/coordination/integration-change-set.d.ts +0 -95
  2561. package/dist/workflow/operations/coordination/integration-change-set.js +0 -335
  2562. package/dist/workflow/operations/coordination/staging-candidate-workflow-gates.d.ts +0 -46
  2563. package/dist/workflow/operations/coordination/staging-candidate-workflow-gates.js +0 -287
  2564. package/dist/workflow/operations/coordination/workflow-ci.d.ts +0 -23
  2565. package/dist/workflow/operations/coordination/workflow-ci.js +0 -69
  2566. package/dist/workflow/operations/coordination/workflow-destroy.d.ts +0 -180
  2567. package/dist/workflow/operations/coordination/workflow-destroy.js +0 -162
  2568. package/dist/workflow/operations/guarantees/workflow-proof.d.ts +0 -87
  2569. package/dist/workflow/operations/guarantees/workflow-proof.js +0 -285
  2570. package/dist/workflow/operations/packages/collect-published-release-artifact-checks.d.ts +0 -71
  2571. package/dist/workflow/operations/packages/collect-published-release-artifact-checks.js +0 -238
  2572. package/dist/workflow/operations/packages/collect-release-plan-blockers.d.ts +0 -39
  2573. package/dist/workflow/operations/packages/collect-release-plan-blockers.js +0 -280
  2574. package/dist/workflow/operations/packages/normalize-release-candidate-mode.d.ts +0 -43
  2575. package/dist/workflow/operations/packages/normalize-release-candidate-mode.js +0 -222
  2576. package/dist/workflow/operations/packages/plan-root-package-version.d.ts +0 -57
  2577. package/dist/workflow/operations/packages/plan-root-package-version.js +0 -245
  2578. package/dist/workflow/operations/packages/prepare-fresh-release-run.d.ts +0 -31
  2579. package/dist/workflow/operations/packages/prepare-fresh-release-run.js +0 -264
  2580. package/dist/workflow/operations/packages/release-admin-message.d.ts +0 -62
  2581. package/dist/workflow/operations/packages/release-admin-message.js +0 -215
  2582. package/dist/workflow/operations/reconciliation/reconcile-save-hosted-environment.d.ts +0 -72
  2583. package/dist/workflow/operations/reconciliation/reconcile-save-hosted-environment.js +0 -260
  2584. package/dist/workflow/operations/reconciliation/run-release-gate-reconcile-facade.d.ts +0 -43
  2585. package/dist/workflow/operations/reconciliation/run-release-gate-reconcile-facade.js +0 -127
  2586. package/dist/workflow/operations/recovery/fail-workflow-run.d.ts +0 -62
  2587. package/dist/workflow/operations/recovery/fail-workflow-run.js +0 -266
  2588. package/dist/workflow/operations/recovery/recover-save-integration.d.ts +0 -16
  2589. package/dist/workflow/operations/recovery/recover-save-integration.js +0 -51
  2590. package/dist/workflow/operations/recovery/workflow-resume.d.ts +0 -119
  2591. package/dist/workflow/operations/recovery/workflow-resume.js +0 -240
  2592. package/dist/workflow/operations/recovery/workflow-write.d.ts +0 -57
  2593. package/dist/workflow/operations/recovery/workflow-write.js +0 -227
  2594. package/dist/workflow/operations/recovery/workspace-artifact-state.d.ts +0 -18
  2595. package/dist/workflow/operations/recovery/workspace-artifact-state.js +0 -59
  2596. package/dist/workflow/operations/release/workflow-release.d.ts +0 -372
  2597. package/dist/workflow/operations/release/workflow-release.js +0 -497
  2598. package/dist/workflow/operations/repositories/gates-for-saved-repository-reports.d.ts +0 -49
  2599. package/dist/workflow/operations/repositories/gates-for-saved-repository-reports.js +0 -226
  2600. package/dist/workflow/operations/support/cleanup-stage-source-branches.d.ts +0 -20
  2601. package/dist/workflow/operations/support/cleanup-stage-source-branches.js +0 -52
  2602. package/dist/workflow/operations/support/create-repo-report.d.ts +0 -64
  2603. package/dist/workflow/operations/support/create-repo-report.js +0 -224
  2604. package/dist/workflow/operations/support/resolve-generated-dependency-conflict.d.ts +0 -7
  2605. package/dist/workflow/operations/support/resolve-generated-dependency-conflict.js +0 -89
  2606. package/dist/workflow/operations/support/sync-current-branch-to-origin.d.ts +0 -222
  2607. package/dist/workflow/operations/support/sync-current-branch-to-origin.js +0 -258
  2608. package/dist/workflow/operations/support/update-ahead-behind.d.ts +0 -69
  2609. package/dist/workflow/operations/support/update-ahead-behind.js +0 -220
  2610. package/dist/workflow/operations/support/workflow-helpers.d.ts +0 -22
  2611. package/dist/workflow/operations/support/workflow-helpers.js +0 -114
  2612. package/dist/workflow/operations/workspace-lifecycle/workflow-close.d.ts +0 -275
  2613. package/dist/workflow/operations/workspace-lifecycle/workflow-close.js +0 -230
  2614. package/dist/workflow/operations/workspace-lifecycle/workflow-save.d.ts +0 -135
  2615. package/dist/workflow/operations/workspace-lifecycle/workflow-save.js +0 -522
  2616. package/dist/workflow/operations/workspace-lifecycle/workflow-stage.d.ts +0 -45
  2617. package/dist/workflow/operations/workspace-lifecycle/workflow-stage.js +0 -330
  2618. package/dist/workflow/operations/workspace-lifecycle/workflow-switch.d.ts +0 -35
  2619. package/dist/workflow/operations/workspace-lifecycle/workflow-switch.js +0 -295
  2620. package/dist/workflow/operations/workspace-lifecycle/workflow-update.d.ts +0 -152
  2621. package/dist/workflow/operations/workspace-lifecycle/workflow-update.js +0 -286
  2622. package/dist/workflow/operations.d.ts +0 -31
  2623. package/dist/workflow/operations.js +0 -31
  2624. package/dist/workflow/policy.d.ts +0 -15
  2625. package/dist/workflow/policy.js +0 -73
  2626. package/dist/workflow/runs/ensure-workflow-exclude-rule.d.ts +0 -85
  2627. package/dist/workflow/runs/ensure-workflow-exclude-rule.js +0 -292
  2628. package/dist/workflow/runs/get-cached-successful-workflow-gate.d.ts +0 -24
  2629. package/dist/workflow/runs/get-cached-successful-workflow-gate.js +0 -158
  2630. package/dist/workflow/runs/update-workflow-run-journal.d.ts +0 -28
  2631. package/dist/workflow/runs/update-workflow-run-journal.js +0 -230
  2632. package/dist/workflow/runs/workflow-run-command.d.ts +0 -113
  2633. package/dist/workflow/runs/workflow-run-command.js +0 -140
  2634. package/dist/workflow/runs.d.ts +0 -4
  2635. package/dist/workflow/runs.js +0 -4
  2636. package/dist/workflow/session.d.ts +0 -37
  2637. package/dist/workflow/session.js +0 -189
  2638. package/dist/workflow/worktrees.d.ts +0 -77
  2639. package/dist/workflow/worktrees.js +0 -338
  2640. package/dist/workflow-state/branch-role.d.ts +0 -239
  2641. package/dist/workflow-state/branch-role.js +0 -45
  2642. package/dist/workflow-state/readiness-for-environment.d.ts +0 -61
  2643. package/dist/workflow-state/readiness-for-environment.js +0 -217
  2644. package/dist/workflow-state/recommend-next-steps.d.ts +0 -2
  2645. package/dist/workflow-state/recommend-next-steps.js +0 -99
  2646. package/dist/workflow-state/resolve-workflow-state.d.ts +0 -2
  2647. package/dist/workflow-state/resolve-workflow-state.js +0 -426
  2648. package/dist/workflow-state/safe-release-history.d.ts +0 -23
  2649. package/dist/workflow-state/safe-release-history.js +0 -78
  2650. package/drizzle/d1/0000_treeseed_d1.sql +0 -19
  2651. package/drizzle/market/0000_market_control_plane.sql +0 -4064
  2652. package/drizzle/market/0001_feedback_management.sql +0 -110
  2653. package/drizzle/market/0001_knowledge_collaboration.sql +0 -37
  2654. package/drizzle/market/0002_knowledge_pack_workflow.sql +0 -79
  2655. package/drizzle/market/0003_knowledge_review_snapshot.sql +0 -2
  2656. package/drizzle/market/0004_remote_provider_publication.sql +0 -193
  2657. package/drizzle/market/0005_remote_delivery_operation_scope.sql +0 -9
  2658. package/drizzle/market/0006_workflow_run_provenance.sql +0 -17
  2659. package/drizzle/market/0007_transient_workflow_configuration.sql +0 -6
  2660. package/drizzle/market/0008_guide_editorial_review.sql +0 -27
  2661. package/drizzle/market/0009_capacity_workday_schedules.sql +0 -30
  2662. package/drizzle/market/0010_agent_lab_realtime_preferences.sql +0 -2
  2663. package/drizzle/market/0011_seed_team_membership_claims.sql +0 -20
  2664. package/drizzle/market/0012_signal_time_planning.sql +0 -82
  2665. package/drizzle/market/0013_planning_participant_nodes.sql +0 -8
  2666. package/drizzle/market/0014_legacy_capacity_accounting_nullable.sql +0 -8
  2667. package/drizzle/market/0015_remove_platform_repository_claims.sql +0 -1
  2668. package/drizzle/market/0016_session_events.sql +0 -13
  2669. package/drizzle/market/0017_agent_lab_view_state.sql +0 -18
  2670. package/drizzle/market/0018_agent_context_query_checks.sql +0 -27
  2671. package/drizzle/market/0019_context_query_check_evidence_only.sql +0 -1
  2672. package/drizzle/market/0020_capacity_integrated_communication.sql +0 -181
  2673. package/drizzle/market/0021_project_contribution_authorizations.sql +0 -48
  2674. package/drizzle/market/0022_remove_project_contribution_authorizations.sql +0 -2
  2675. package/scripts/verification/verify-driver.ts +0 -42
  2676. /package/dist/{hosting → content}/contracts.js +0 -0
  2677. /package/dist/{api/types.js → sdk-types/control-plane/resource-requests.js} +0 -0
  2678. /package/dist/{types → site-contracts}/cloudflare.js +0 -0
  2679. /package/dist/{market-client/agent-lab-interface.js → site-contracts/platform.js} +0 -0
@@ -1,4064 +0,0 @@
1
- CREATE TABLE "better_auth_account" (
2
- "id" text PRIMARY KEY NOT NULL,
3
- "accountId" text NOT NULL,
4
- "providerId" text NOT NULL,
5
- "userId" text NOT NULL,
6
- "accessToken" text,
7
- "refreshToken" text,
8
- "idToken" text,
9
- "accessTokenExpiresAt" bigint,
10
- "refreshTokenExpiresAt" bigint,
11
- "scope" text,
12
- "password" text,
13
- "createdAt" bigint NOT NULL,
14
- "updatedAt" bigint NOT NULL
15
- );
16
-
17
- CREATE TABLE "better_auth_verification" (
18
- "id" text PRIMARY KEY NOT NULL,
19
- "identifier" text NOT NULL,
20
- "value" text NOT NULL,
21
- "expiresAt" bigint NOT NULL,
22
- "createdAt" bigint NOT NULL,
23
- "updatedAt" bigint NOT NULL
24
- );
25
-
26
- CREATE TABLE "capacity_execution_providers" (
27
- "id" text NOT NULL,
28
- "capacity_provider_id" text NOT NULL,
29
- "display_name" text NOT NULL,
30
- "adapter" text NOT NULL,
31
- "status" text DEFAULT 'active' NOT NULL,
32
- "capabilities_json" text DEFAULT '[]' NOT NULL,
33
- "native_unit" text NOT NULL,
34
- "quota_visibility" text DEFAULT 'opaque' NOT NULL,
35
- "max_concurrent_runners" integer NOT NULL,
36
- "native_limits_json" text DEFAULT '[]' NOT NULL,
37
- "latest_observation_json" text,
38
- "metadata_json" text DEFAULT '{}' NOT NULL,
39
- "created_at" text NOT NULL,
40
- "updated_at" text NOT NULL,
41
- CONSTRAINT "capacity_execution_providers_capacity_provider_id_id_pk" PRIMARY KEY("capacity_provider_id","id"),
42
- CONSTRAINT "chk_capacity_execution_providers_status" CHECK ("capacity_execution_providers"."status" IN ('active', 'degraded', 'unavailable', 'revoked')),
43
- CONSTRAINT "chk_capacity_execution_providers_concurrency" CHECK ("capacity_execution_providers"."max_concurrent_runners" >= 1)
44
- );
45
-
46
- CREATE TABLE "capacity_provider_credential_issuance_authorizations" (
47
- "id" text PRIMARY KEY NOT NULL,
48
- "membership_id" text NOT NULL,
49
- "team_id" text NOT NULL,
50
- "capacity_provider_id" text NOT NULL,
51
- "generation" integer NOT NULL,
52
- "idempotency_key" text NOT NULL,
53
- "status" text DEFAULT 'pending' NOT NULL,
54
- "issued_credential_id" text,
55
- "created_by_type" text NOT NULL,
56
- "created_by_id" text NOT NULL,
57
- "created_at" text NOT NULL,
58
- "updated_at" text NOT NULL,
59
- CONSTRAINT "chk_capacity_provider_credential_authorizations_generation" CHECK ("capacity_provider_credential_issuance_authorizations"."generation" >= 1),
60
- CONSTRAINT "chk_capacity_provider_credential_authorizations_status" CHECK ("capacity_provider_credential_issuance_authorizations"."status" IN ('pending', 'issued', 'cancelled'))
61
- );
62
-
63
- CREATE TABLE "capacity_provider_identity_rotations" (
64
- "id" text PRIMARY KEY NOT NULL,
65
- "capacity_provider_id" text NOT NULL,
66
- "from_identity_version" integer NOT NULL,
67
- "to_identity_version" integer NOT NULL,
68
- "old_fingerprint" text NOT NULL,
69
- "new_fingerprint" text NOT NULL,
70
- "idempotency_key" text NOT NULL,
71
- "request_digest" text NOT NULL,
72
- "created_at" text NOT NULL,
73
- CONSTRAINT "chk_capacity_provider_identity_rotations_versions" CHECK ("capacity_provider_identity_rotations"."from_identity_version" >= 1 AND "capacity_provider_identity_rotations"."to_identity_version" = "capacity_provider_identity_rotations"."from_identity_version" + 1)
74
- );
75
-
76
- CREATE TABLE "capacity_provider_lanes" (
77
- "id" text NOT NULL,
78
- "capacity_provider_id" text NOT NULL,
79
- "execution_provider_id" text NOT NULL,
80
- "display_name" text NOT NULL,
81
- "purpose" text DEFAULT 'operation' NOT NULL,
82
- "status" text DEFAULT 'active' NOT NULL,
83
- "capabilities_json" text DEFAULT '[]' NOT NULL,
84
- "max_concurrent_runners" integer NOT NULL,
85
- "native_limits_json" text DEFAULT '[]' NOT NULL,
86
- "metadata_json" text DEFAULT '{}' NOT NULL,
87
- "created_at" text NOT NULL,
88
- "updated_at" text NOT NULL,
89
- CONSTRAINT "capacity_provider_lanes_capacity_provider_id_id_pk" PRIMARY KEY("capacity_provider_id","id"),
90
- CONSTRAINT "chk_capacity_provider_lanes_status" CHECK ("capacity_provider_lanes"."status" IN ('active', 'paused', 'degraded', 'revoked')),
91
- CONSTRAINT "chk_capacity_provider_lanes_purpose" CHECK ("capacity_provider_lanes"."purpose" IN ('communication', 'operation')),
92
- CONSTRAINT "chk_capacity_provider_lanes_concurrency" CHECK ("capacity_provider_lanes"."max_concurrent_runners" >= 1)
93
- );
94
-
95
- CREATE TABLE "capacity_provider_registration_requests" (
96
- "id" text PRIMARY KEY NOT NULL,
97
- "team_id" text NOT NULL,
98
- "capacity_provider_id" text NOT NULL,
99
- "provider_fingerprint" text NOT NULL,
100
- "registration_key_generation" integer NOT NULL,
101
- "status" text DEFAULT 'pending' NOT NULL,
102
- "capability_summary_json" text DEFAULT '[]' NOT NULL,
103
- "supply_offer_json" text DEFAULT '{}' NOT NULL,
104
- "proof_jti" text NOT NULL,
105
- "idempotency_key" text NOT NULL,
106
- "request_digest" text NOT NULL,
107
- "expires_at" text NOT NULL,
108
- "reviewed_at" text,
109
- "reviewed_by_id" text,
110
- "rejection_reason" text,
111
- "membership_id" text,
112
- "transition_action" text,
113
- "transition_idempotency_key" text,
114
- "transition_request_digest" text,
115
- "metadata_json" text DEFAULT '{}' NOT NULL,
116
- "created_at" text NOT NULL,
117
- "updated_at" text NOT NULL,
118
- CONSTRAINT "chk_capacity_provider_registration_requests_generation" CHECK ("capacity_provider_registration_requests"."registration_key_generation" >= 1),
119
- CONSTRAINT "chk_capacity_provider_registration_requests_status" CHECK ("capacity_provider_registration_requests"."status" IN ('pending', 'approved', 'rejected', 'cancelled', 'expired'))
120
- );
121
-
122
- CREATE TABLE "capacity_provider_team_memberships" (
123
- "id" text PRIMARY KEY NOT NULL,
124
- "team_id" text NOT NULL,
125
- "capacity_provider_id" text NOT NULL,
126
- "status" text DEFAULT 'approved' NOT NULL,
127
- "team_alias" text,
128
- "approved_at" text NOT NULL,
129
- "approved_by_id" text NOT NULL,
130
- "suspended_at" text,
131
- "revoked_at" text,
132
- "revoked_by_id" text,
133
- "status_idempotency_key" text,
134
- "status_request_digest" text,
135
- "metadata_json" text DEFAULT '{}' NOT NULL,
136
- "created_at" text NOT NULL,
137
- "updated_at" text NOT NULL,
138
- CONSTRAINT "chk_capacity_provider_team_memberships_status" CHECK ("capacity_provider_team_memberships"."status" IN ('approved', 'suspended', 'revoked'))
139
- );
140
-
141
- CREATE TABLE "capacity_providers" (
142
- "id" text PRIMARY KEY NOT NULL,
143
- "fingerprint" text NOT NULL,
144
- "public_jwk_json" text NOT NULL,
145
- "display_name" text NOT NULL,
146
- "identity_version" integer DEFAULT 1 NOT NULL,
147
- "status" text DEFAULT 'active' NOT NULL,
148
- "metadata_json" text DEFAULT '{}' NOT NULL,
149
- "created_at" text NOT NULL,
150
- "updated_at" text NOT NULL,
151
- "rotated_at" text,
152
- "revoked_at" text,
153
- CONSTRAINT "chk_capacity_providers_identity_version" CHECK ("capacity_providers"."identity_version" >= 1),
154
- CONSTRAINT "chk_capacity_providers_status" CHECK ("capacity_providers"."status" IN ('active', 'rotating', 'revoked'))
155
- );
156
-
157
- CREATE TABLE "team_capacity_registration_keys" (
158
- "id" text PRIMARY KEY NOT NULL,
159
- "team_id" text NOT NULL,
160
- "generation" integer NOT NULL,
161
- "key_prefix" text NOT NULL,
162
- "key_hash" text NOT NULL,
163
- "encrypted_reveal_value" text NOT NULL,
164
- "rotation_idempotency_key" text,
165
- "status_idempotency_key" text,
166
- "status_request_digest" text,
167
- "status" text DEFAULT 'active' NOT NULL,
168
- "created_by_id" text,
169
- "created_at" text NOT NULL,
170
- "updated_at" text NOT NULL,
171
- "rotated_at" text,
172
- "last_revealed_at" text,
173
- CONSTRAINT "chk_team_capacity_registration_keys_generation" CHECK ("team_capacity_registration_keys"."generation" >= 1),
174
- CONSTRAINT "chk_team_capacity_registration_keys_status" CHECK ("team_capacity_registration_keys"."status" IN ('active', 'disabled'))
175
- );
176
-
177
- CREATE TABLE "team_invites" (
178
- "id" text PRIMARY KEY NOT NULL,
179
- "team_id" text NOT NULL,
180
- "email" text NOT NULL,
181
- "role_key" text NOT NULL,
182
- "token_prefix" text NOT NULL,
183
- "token_hash" text NOT NULL,
184
- "status" text DEFAULT 'pending' NOT NULL,
185
- "invited_by_user_id" text,
186
- "accepted_by_user_id" text,
187
- "accepted_at" text,
188
- "expires_at" text NOT NULL,
189
- "created_at" text NOT NULL,
190
- "updated_at" text NOT NULL
191
- );
192
-
193
- CREATE TABLE "agent_lab_view_state" (
194
- "id" text PRIMARY KEY NOT NULL,
195
- "user_id" text NOT NULL,
196
- "team_id" text NOT NULL,
197
- "namespace" text NOT NULL,
198
- "entity_kind" text NOT NULL,
199
- "entity_id" text NOT NULL,
200
- "pinned" integer DEFAULT 0 NOT NULL,
201
- "hidden" integer DEFAULT 0 NOT NULL,
202
- "resolved" integer DEFAULT 0 NOT NULL,
203
- "layout_json" text DEFAULT '{}' NOT NULL,
204
- "version" integer DEFAULT 1 NOT NULL,
205
- "created_at" text NOT NULL,
206
- "updated_at" text NOT NULL
207
- );
208
-
209
- CREATE TABLE "cursor_state" (
210
- "agent_slug" text,
211
- "cursor_key" text,
212
- "status" text NOT NULL,
213
- "schema_version" integer DEFAULT 1 NOT NULL,
214
- "updated_at" text NOT NULL,
215
- "payload_json" text NOT NULL,
216
- "meta_json" text NOT NULL,
217
- CONSTRAINT "cursor_state_agent_slug_cursor_key_pk" PRIMARY KEY("agent_slug","cursor_key")
218
- );
219
-
220
- CREATE TABLE "lease_state" (
221
- "model" text,
222
- "item_key" text,
223
- "status" text NOT NULL,
224
- "schema_version" integer DEFAULT 1 NOT NULL,
225
- "claimed_by" text,
226
- "claimed_at" text,
227
- "lease_expires_at" text,
228
- "created_at" text NOT NULL,
229
- "updated_at" text NOT NULL,
230
- "payload_json" text NOT NULL,
231
- "meta_json" text NOT NULL,
232
- CONSTRAINT "lease_state_model_item_key_pk" PRIMARY KEY("model","item_key")
233
- );
234
-
235
- CREATE TABLE "credit_conversion_profiles" (
236
- "id" text PRIMARY KEY NOT NULL,
237
- "task_signature" text NOT NULL,
238
- "execution_profile_id" text DEFAULT 'standard-code-model' NOT NULL,
239
- "execution_provider_kind" text NOT NULL,
240
- "native_unit" text NOT NULL,
241
- "sample_count" integer DEFAULT 0 NOT NULL,
242
- "completed_sample_count" integer DEFAULT 0 NOT NULL,
243
- "interrupted_sample_count" integer DEFAULT 0 NOT NULL,
244
- "native_units_per_credit_p50" real,
245
- "native_units_per_credit_p90" real,
246
- "credits_per_native_unit_p50" real,
247
- "credits_per_native_unit_p90" real,
248
- "actual_credits_p50" real,
249
- "actual_credits_p90" real,
250
- "confidence" text DEFAULT 'low' NOT NULL,
251
- "formula_version" text NOT NULL,
252
- "metadata_json" text DEFAULT '{}' NOT NULL,
253
- "created_at" text NOT NULL,
254
- "updated_at" text NOT NULL,
255
- CONSTRAINT "chk_credit_conversion_profiles_sample_counts" CHECK ("credit_conversion_profiles"."sample_count" >= 0 AND "credit_conversion_profiles"."completed_sample_count" >= 0 AND "credit_conversion_profiles"."interrupted_sample_count" >= 0 AND "credit_conversion_profiles"."completed_sample_count" + "credit_conversion_profiles"."interrupted_sample_count" <= "credit_conversion_profiles"."sample_count"),
256
- CONSTRAINT "chk_credit_conversion_profiles_native_p50" CHECK ("credit_conversion_profiles"."native_units_per_credit_p50" IS NULL OR "credit_conversion_profiles"."native_units_per_credit_p50" >= 0),
257
- CONSTRAINT "chk_credit_conversion_profiles_native_p90" CHECK ("credit_conversion_profiles"."native_units_per_credit_p90" IS NULL OR "credit_conversion_profiles"."native_units_per_credit_p90" >= 0),
258
- CONSTRAINT "chk_credit_conversion_profiles_credit_p50" CHECK ("credit_conversion_profiles"."credits_per_native_unit_p50" IS NULL OR "credit_conversion_profiles"."credits_per_native_unit_p50" >= 0),
259
- CONSTRAINT "chk_credit_conversion_profiles_credit_p90" CHECK ("credit_conversion_profiles"."credits_per_native_unit_p90" IS NULL OR "credit_conversion_profiles"."credits_per_native_unit_p90" >= 0),
260
- CONSTRAINT "chk_credit_conversion_profiles_actual_p50" CHECK ("credit_conversion_profiles"."actual_credits_p50" IS NULL OR "credit_conversion_profiles"."actual_credits_p50" >= 0),
261
- CONSTRAINT "chk_credit_conversion_profiles_actual_p90" CHECK ("credit_conversion_profiles"."actual_credits_p90" IS NULL OR "credit_conversion_profiles"."actual_credits_p90" >= 0),
262
- CONSTRAINT "chk_credit_conversion_profiles_confidence" CHECK ("credit_conversion_profiles"."confidence" IN ('low', 'medium', 'high'))
263
- );
264
-
265
- CREATE TABLE "market_auth_credentials" (
266
- "user_id" text PRIMARY KEY NOT NULL,
267
- "email" text NOT NULL,
268
- "username" text,
269
- "password_hash" text NOT NULL,
270
- "status" text DEFAULT 'active' NOT NULL,
271
- "created_at" text NOT NULL,
272
- "updated_at" text NOT NULL,
273
- CONSTRAINT "market_auth_credentials_email_unique" UNIQUE("email"),
274
- CONSTRAINT "market_auth_credentials_username_unique" UNIQUE("username")
275
- );
276
-
277
- CREATE TABLE "market_auth_password_resets" (
278
- "id" text PRIMARY KEY NOT NULL,
279
- "user_id" text NOT NULL,
280
- "token_hash" text NOT NULL,
281
- "expires_at" text NOT NULL,
282
- "used_at" text,
283
- "created_at" text NOT NULL,
284
- CONSTRAINT "market_auth_password_resets_token_hash_unique" UNIQUE("token_hash")
285
- );
286
-
287
- CREATE TABLE "market_operation_runners" (
288
- "id" text PRIMARY KEY NOT NULL,
289
- "runner_key" text NOT NULL,
290
- "name" text NOT NULL,
291
- "environment" text NOT NULL,
292
- "status" text DEFAULT 'online' NOT NULL,
293
- "version" text,
294
- "capabilities_json" text DEFAULT '[]' NOT NULL,
295
- "active_job_count" integer DEFAULT 0 NOT NULL,
296
- "max_concurrent_jobs" integer DEFAULT 1 NOT NULL,
297
- "heartbeat_at" text,
298
- "metadata_json" text DEFAULT '{}' NOT NULL,
299
- "created_at" text NOT NULL,
300
- "updated_at" text NOT NULL,
301
- CONSTRAINT "market_operation_runners_runner_key_unique" UNIQUE("runner_key")
302
- );
303
-
304
- CREATE TABLE "message_queue" (
305
- "id" serial PRIMARY KEY NOT NULL,
306
- "message_type" text NOT NULL,
307
- "status" text NOT NULL,
308
- "schema_version" integer DEFAULT 1 NOT NULL,
309
- "related_model" text,
310
- "related_id" text,
311
- "priority" integer DEFAULT 0 NOT NULL,
312
- "available_at" text NOT NULL,
313
- "claimed_by" text,
314
- "claimed_at" text,
315
- "lease_expires_at" text,
316
- "attempts" integer DEFAULT 0 NOT NULL,
317
- "max_attempts" integer DEFAULT 3 NOT NULL,
318
- "created_at" text NOT NULL,
319
- "updated_at" text NOT NULL,
320
- "payload_json" text NOT NULL,
321
- "meta_json" text NOT NULL
322
- );
323
-
324
- CREATE TABLE "notification_email_deliveries" (
325
- "id" text PRIMARY KEY NOT NULL,
326
- "user_id" text NOT NULL,
327
- "event_id" text,
328
- "digest_key" text NOT NULL,
329
- "cadence" text NOT NULL,
330
- "status" text DEFAULT 'pending' NOT NULL,
331
- "due_at" text NOT NULL,
332
- "attempts" integer DEFAULT 0 NOT NULL,
333
- "sent_at" text,
334
- "last_error" text,
335
- "created_at" text NOT NULL,
336
- "updated_at" text NOT NULL,
337
- CONSTRAINT "notification_email_deliveries_digest_key_unique" UNIQUE("digest_key")
338
- );
339
-
340
- CREATE TABLE "notification_events" (
341
- "id" text PRIMARY KEY NOT NULL,
342
- "event_type" text NOT NULL,
343
- "content_type" text NOT NULL,
344
- "project_id" text NOT NULL,
345
- "actor_id" text,
346
- "resource_id" text NOT NULL,
347
- "title" text NOT NULL,
348
- "summary" text,
349
- "target_url" text NOT NULL,
350
- "created_at" text NOT NULL
351
- );
352
-
353
- CREATE TABLE "platform_operation_events" (
354
- "id" text PRIMARY KEY NOT NULL,
355
- "operation_id" text NOT NULL,
356
- "seq" integer NOT NULL,
357
- "kind" text NOT NULL,
358
- "data_json" text DEFAULT '{}' NOT NULL,
359
- "created_at" text NOT NULL
360
- );
361
-
362
- CREATE TABLE "platform_operations" (
363
- "id" text PRIMARY KEY NOT NULL,
364
- "namespace" text NOT NULL,
365
- "operation" text NOT NULL,
366
- "status" text NOT NULL,
367
- "target" text NOT NULL,
368
- "idempotency_key" text,
369
- "input_json" text DEFAULT '{}' NOT NULL,
370
- "output_json" text,
371
- "error_json" text,
372
- "requested_by_type" text NOT NULL,
373
- "requested_by_id" text,
374
- "assigned_runner_id" text,
375
- "lease_expires_at" text,
376
- "created_at" text NOT NULL,
377
- "updated_at" text NOT NULL,
378
- "started_at" text,
379
- "finished_at" text,
380
- "cancelled_at" text
381
- );
382
-
383
- CREATE TABLE "runtime_records" (
384
- "id" serial PRIMARY KEY NOT NULL,
385
- "record_type" text NOT NULL,
386
- "record_key" text NOT NULL,
387
- "lookup_key" text,
388
- "secondary_key" text,
389
- "status" text NOT NULL,
390
- "schema_version" integer DEFAULT 1 NOT NULL,
391
- "created_at" text NOT NULL,
392
- "updated_at" text NOT NULL,
393
- "payload_json" text NOT NULL,
394
- "meta_json" text NOT NULL
395
- );
396
-
397
- CREATE TABLE "seed_runs" (
398
- "id" text PRIMARY KEY NOT NULL,
399
- "seed_name" text NOT NULL,
400
- "seed_version" integer NOT NULL,
401
- "environments_json" text NOT NULL,
402
- "mode" text NOT NULL,
403
- "state" text NOT NULL,
404
- "actor_type" text,
405
- "actor_id" text,
406
- "manifest_hash" text NOT NULL,
407
- "plan_json" text NOT NULL,
408
- "result_json" text,
409
- "error_json" text,
410
- "created_at" text NOT NULL,
411
- "updated_at" text NOT NULL,
412
- "completed_at" text
413
- );
414
-
415
- CREATE TABLE "session_events" (
416
- "sequence" bigserial PRIMARY KEY NOT NULL,
417
- "event_type" text NOT NULL,
418
- "team_id" text NOT NULL,
419
- "project_id" text,
420
- "resource_id" text NOT NULL,
421
- "payload_json" text DEFAULT '{}' NOT NULL,
422
- "created_at" text NOT NULL,
423
- "expires_at" text NOT NULL
424
- );
425
-
426
- CREATE TABLE "user_notifications" (
427
- "id" text PRIMARY KEY NOT NULL,
428
- "user_id" text NOT NULL,
429
- "event_id" text NOT NULL,
430
- "read_at" text,
431
- "created_at" text NOT NULL
432
- );
433
-
434
- CREATE TABLE "credential_envelopes" (
435
- "id" text PRIMARY KEY NOT NULL,
436
- "team_id" text NOT NULL,
437
- "connection_id" text NOT NULL,
438
- "credential_profile_id" text NOT NULL,
439
- "field_key" text NOT NULL,
440
- "envelope_json" text NOT NULL,
441
- "fingerprint" text NOT NULL,
442
- "key_version" integer NOT NULL,
443
- "status" text DEFAULT 'active' NOT NULL,
444
- "created_at" text NOT NULL,
445
- "updated_at" text NOT NULL
446
- );
447
-
448
- CREATE TABLE "external_vault_bindings" (
449
- "id" text PRIMARY KEY NOT NULL,
450
- "team_id" text NOT NULL,
451
- "connection_id" text NOT NULL,
452
- "provider" text NOT NULL,
453
- "reference_json" text NOT NULL,
454
- "auth_mode" text NOT NULL,
455
- "status" text DEFAULT 'active' NOT NULL,
456
- "last_validated_at" text,
457
- "created_at" text NOT NULL,
458
- "updated_at" text NOT NULL
459
- );
460
-
461
- CREATE TABLE "secret_operation_leases" (
462
- "id" text PRIMARY KEY NOT NULL,
463
- "team_id" text NOT NULL,
464
- "connection_id" text NOT NULL,
465
- "capability_type" text NOT NULL,
466
- "purpose" text NOT NULL,
467
- "resource_scope_json" text DEFAULT '{}' NOT NULL,
468
- "credential_profile_id" text NOT NULL,
469
- "actor_user_id" text NOT NULL,
470
- "required_fields_json" text NOT NULL,
471
- "public_key" text NOT NULL,
472
- "sealed_payload" text,
473
- "status" text DEFAULT 'pending' NOT NULL,
474
- "operation_correlation_id" text NOT NULL,
475
- "idempotency_key" text NOT NULL,
476
- "expires_at" text NOT NULL,
477
- "consumed_at" text,
478
- "cancelled_at" text,
479
- "created_at" text NOT NULL,
480
- "updated_at" text NOT NULL
481
- );
482
-
483
- CREATE TABLE "team_service_capability_bindings" (
484
- "id" text PRIMARY KEY NOT NULL,
485
- "team_id" text NOT NULL,
486
- "connection_id" text NOT NULL,
487
- "capability_type" text NOT NULL,
488
- "status" text DEFAULT 'configured' NOT NULL,
489
- "credential_profile_id" text,
490
- "configuration_json" text DEFAULT '{}' NOT NULL,
491
- "created_at" text NOT NULL,
492
- "updated_at" text NOT NULL
493
- );
494
-
495
- CREATE TABLE "team_service_connections" (
496
- "id" text PRIMARY KEY NOT NULL,
497
- "team_id" text NOT NULL,
498
- "provider_id" text NOT NULL,
499
- "display_name" text NOT NULL,
500
- "status" text DEFAULT 'draft' NOT NULL,
501
- "non_secret_config_json" text DEFAULT '{}' NOT NULL,
502
- "version" integer DEFAULT 1 NOT NULL,
503
- "created_by_user_id" text,
504
- "updated_by_user_id" text,
505
- "last_validated_at" text,
506
- "created_at" text NOT NULL,
507
- "updated_at" text NOT NULL
508
- );
509
-
510
- CREATE TABLE "team_service_credential_profiles" (
511
- "id" text PRIMARY KEY NOT NULL,
512
- "team_id" text NOT NULL,
513
- "connection_id" text NOT NULL,
514
- "definition_id" text NOT NULL,
515
- "custody_mode" text NOT NULL,
516
- "status" text DEFAULT 'configured' NOT NULL,
517
- "envelope_version" text,
518
- "fingerprint" text,
519
- "last_rotated_at" text,
520
- "last_validated_at" text,
521
- "created_at" text NOT NULL,
522
- "updated_at" text NOT NULL
523
- );
524
-
525
- CREATE TABLE "team_vault_grants" (
526
- "id" text PRIMARY KEY NOT NULL,
527
- "team_id" text NOT NULL,
528
- "user_id" text NOT NULL,
529
- "user_vault_key_id" text NOT NULL,
530
- "key_version" integer NOT NULL,
531
- "wrapped_team_vault_key" text NOT NULL,
532
- "status" text DEFAULT 'active' NOT NULL,
533
- "granted_by_user_id" text NOT NULL,
534
- "revoked_by_user_id" text,
535
- "revoked_at" text,
536
- "created_at" text NOT NULL,
537
- "updated_at" text NOT NULL
538
- );
539
-
540
- CREATE TABLE "team_vaults" (
541
- "team_id" text PRIMARY KEY NOT NULL,
542
- "status" text DEFAULT 'active' NOT NULL,
543
- "encryption_version" text NOT NULL,
544
- "active_key_version" integer DEFAULT 1 NOT NULL,
545
- "recovery_mode" text DEFAULT 'administrator-regrant' NOT NULL,
546
- "created_by_user_id" text NOT NULL,
547
- "created_at" text NOT NULL,
548
- "updated_at" text NOT NULL
549
- );
550
-
551
- CREATE TABLE "user_vault_keys" (
552
- "id" text PRIMARY KEY NOT NULL,
553
- "user_id" text NOT NULL,
554
- "public_key" text NOT NULL,
555
- "encrypted_private_key_envelope_json" text NOT NULL,
556
- "status" text DEFAULT 'active' NOT NULL,
557
- "version" integer DEFAULT 1 NOT NULL,
558
- "created_at" text NOT NULL,
559
- "updated_at" text NOT NULL
560
- );
561
-
562
- CREATE TABLE "agent_fallback_outputs" (
563
- "id" text PRIMARY KEY NOT NULL,
564
- "team_id" text NOT NULL,
565
- "project_id" text NOT NULL,
566
- "assignment_id" text,
567
- "mode" text NOT NULL,
568
- "code" text NOT NULL,
569
- "status" text DEFAULT 'draft' NOT NULL,
570
- "output_json" text DEFAULT '{}' NOT NULL,
571
- "provenance_json" text DEFAULT '{}' NOT NULL,
572
- "quota_json" text DEFAULT '{}' NOT NULL,
573
- "metadata_json" text DEFAULT '{}' NOT NULL,
574
- "created_at" text NOT NULL
575
- );
576
-
577
- CREATE TABLE "agent_invocation_requests" (
578
- "id" text PRIMARY KEY NOT NULL,
579
- "team_id" text NOT NULL,
580
- "project_id" text NOT NULL,
581
- "decision_id" text,
582
- "project_agent_class_id" text,
583
- "agent_id" text,
584
- "agent_revision" text,
585
- "mode" text DEFAULT 'planning' NOT NULL,
586
- "execution_kind" text DEFAULT 'workday' NOT NULL,
587
- "trigger_kind" text DEFAULT 'manual' NOT NULL,
588
- "status" text DEFAULT 'queued' NOT NULL,
589
- "scope_hash" text NOT NULL,
590
- "prompt" text,
591
- "content_refs_json" text DEFAULT '[]' NOT NULL,
592
- "parent_workday_id" text,
593
- "parent_assignment_id" text,
594
- "handoff_root_id" text,
595
- "handoff_parent_id" text,
596
- "handoff_depth" integer DEFAULT 0 NOT NULL,
597
- "recipients_json" text DEFAULT '[]' NOT NULL,
598
- "blocking_state_json" text DEFAULT '{}' NOT NULL,
599
- "subject_digest" text,
600
- "priority_class" text DEFAULT 'operational' NOT NULL,
601
- "available_at" text NOT NULL,
602
- "idempotency_key" text NOT NULL,
603
- "request_digest" text NOT NULL,
604
- "admitted_demand_id" text,
605
- "execution_id" text,
606
- "assignment_id" text,
607
- "final_message_ref" text,
608
- "response_json" text DEFAULT '{}' NOT NULL,
609
- "metadata_json" text DEFAULT '{}' NOT NULL,
610
- "requested_at" text NOT NULL,
611
- "updated_at" text DEFAULT CURRENT_TIMESTAMP NOT NULL,
612
- "completed_at" text,
613
- "stale_at" text,
614
- CONSTRAINT "chk_agent_invocations_mode" CHECK ("agent_invocation_requests"."mode" IN ('planning','acting')),
615
- CONSTRAINT "chk_agent_invocations_execution_kind" CHECK ("agent_invocation_requests"."execution_kind" IN ('workday','conversation','simulation','recovery')),
616
- CONSTRAINT "chk_agent_invocations_trigger_kind" CHECK ("agent_invocation_requests"."trigger_kind" IN ('scheduled','manual','discussion','agent-handoff')),
617
- CONSTRAINT "chk_agent_invocations_priority" CHECK ("agent_invocation_requests"."priority_class" IN ('human-interactive','workday-blocking-agent','agent-asynchronous','operational')),
618
- CONSTRAINT "chk_agent_invocations_status" CHECK ("agent_invocation_requests"."status" IN ('queued','blocked','coalesced','admitted','running','suspended','completed','failed','cancelled','expired','stale')),
619
- CONSTRAINT "chk_agent_invocations_handoff_depth" CHECK ("agent_invocation_requests"."handoff_depth" >= 0)
620
- );
621
-
622
- CREATE TABLE "agent_mode_runs" (
623
- "id" text PRIMARY KEY NOT NULL,
624
- "team_id" text NOT NULL,
625
- "project_id" text NOT NULL,
626
- "provider_assignment_id" text NOT NULL,
627
- "capacity_provider_id" text NOT NULL,
628
- "execution_provider_id" text,
629
- "project_agent_class_id" text NOT NULL,
630
- "agent_id" text,
631
- "handler_id" text,
632
- "mode" text NOT NULL,
633
- "status" text DEFAULT 'queued' NOT NULL,
634
- "selected_input_json" text DEFAULT '{}' NOT NULL,
635
- "capacity_envelope_json" text DEFAULT '{}' NOT NULL,
636
- "outputs_json" text DEFAULT '{}' NOT NULL,
637
- "trace_refs_json" text DEFAULT '{}' NOT NULL,
638
- "usage_actual_json" text DEFAULT '{}' NOT NULL,
639
- "validation_json" text DEFAULT '{}' NOT NULL,
640
- "fallback_reason" text,
641
- "started_at" text,
642
- "completed_at" text,
643
- "failed_at" text,
644
- "metadata_json" text DEFAULT '{}' NOT NULL,
645
- "created_at" text NOT NULL,
646
- "updated_at" text NOT NULL,
647
- CONSTRAINT "chk_agent_mode_runs_mode" CHECK ("agent_mode_runs"."mode" IN ('planning', 'acting')),
648
- CONSTRAINT "chk_agent_mode_runs_status" CHECK ("agent_mode_runs"."status" IN ('queued', 'running', 'succeeded', 'failed', 'cancelled'))
649
- );
650
-
651
- CREATE TABLE "capacity_workday_runs" (
652
- "id" text PRIMARY KEY NOT NULL,
653
- "team_id" text NOT NULL,
654
- "capacity_provider_id" text,
655
- "scenario_id" text DEFAULT 'portfolio-local' NOT NULL,
656
- "status" text DEFAULT 'queued' NOT NULL,
657
- "environment" text DEFAULT 'local' NOT NULL,
658
- "execution_kind" text DEFAULT 'workday' NOT NULL,
659
- "trigger_kind" text DEFAULT 'scheduled' NOT NULL,
660
- "hidden" integer DEFAULT 0 NOT NULL,
661
- "requested_by_id" text,
662
- "parameters_json" text DEFAULT '{}' NOT NULL,
663
- "summary_json" text DEFAULT '{}' NOT NULL,
664
- "metrics_json" text DEFAULT '{}' NOT NULL,
665
- "expected_json" text DEFAULT '{}' NOT NULL,
666
- "actual_json" text DEFAULT '{}' NOT NULL,
667
- "report_refs_json" text DEFAULT '{}' NOT NULL,
668
- "error_json" text DEFAULT '{}' NOT NULL,
669
- "started_at" text,
670
- "completed_at" text,
671
- "next_event_index" integer DEFAULT 0 NOT NULL,
672
- "created_at" text NOT NULL,
673
- "updated_at" text NOT NULL,
674
- CONSTRAINT "chk_capacity_workday_runs_status" CHECK ("capacity_workday_runs"."status" IN ('queued','running','completed','cancelled','failed','degraded')),
675
- CONSTRAINT "chk_capacity_workday_runs_execution_kind" CHECK ("capacity_workday_runs"."execution_kind" IN ('workday','conversation','simulation','recovery')),
676
- CONSTRAINT "chk_capacity_workday_runs_trigger_kind" CHECK ("capacity_workday_runs"."trigger_kind" IN ('scheduled','manual','discussion','agent-handoff')),
677
- CONSTRAINT "chk_capacity_workday_runs_hidden" CHECK ("capacity_workday_runs"."hidden" IN (0,1)),
678
- CONSTRAINT "chk_capacity_workday_runs_next_event" CHECK ("capacity_workday_runs"."next_event_index" >= 0)
679
- );
680
-
681
- CREATE TABLE "decision_assignment_graphs" (
682
- "id" text PRIMARY KEY NOT NULL,
683
- "team_id" text NOT NULL,
684
- "project_id" text NOT NULL,
685
- "decision_id" text NOT NULL,
686
- "version" integer NOT NULL,
687
- "status" text NOT NULL,
688
- "active" integer DEFAULT 0 NOT NULL,
689
- "graph_json" text NOT NULL,
690
- "metadata_json" text DEFAULT '{}' NOT NULL,
691
- "compiled_at" text,
692
- "created_at" text NOT NULL,
693
- "updated_at" text NOT NULL,
694
- CONSTRAINT "chk_decision_assignment_graphs_version" CHECK ("decision_assignment_graphs"."version" >= 1),
695
- CONSTRAINT "chk_decision_assignment_graphs_status" CHECK ("decision_assignment_graphs"."status" IN ('draft','compiled','ready','executing','completed','blocked')),
696
- CONSTRAINT "chk_decision_assignment_graphs_active" CHECK ("decision_assignment_graphs"."active" IN (0,1))
697
- );
698
-
699
- CREATE TABLE "decision_execution_inputs" (
700
- "id" text PRIMARY KEY NOT NULL,
701
- "team_id" text NOT NULL,
702
- "project_id" text NOT NULL,
703
- "decision_id" text NOT NULL,
704
- "work_graph_node_id" text,
705
- "project_agent_class_id" text NOT NULL,
706
- "mode" text DEFAULT 'acting' NOT NULL,
707
- "status" text DEFAULT 'proposed' NOT NULL,
708
- "scope_hash" text NOT NULL,
709
- "input_json" text DEFAULT '{}' NOT NULL,
710
- "metadata_json" text DEFAULT '{}' NOT NULL,
711
- "accepted_at" text,
712
- "revision_requested_at" text,
713
- "stale_at" text,
714
- "created_at" text NOT NULL,
715
- "updated_at" text NOT NULL,
716
- CONSTRAINT "chk_decision_execution_inputs_mode" CHECK ("decision_execution_inputs"."mode" IN ('planning','acting')),
717
- CONSTRAINT "chk_decision_execution_inputs_status" CHECK ("decision_execution_inputs"."status" IN ('proposed','accepted','revision_requested','rejected','stale'))
718
- );
719
-
720
- CREATE TABLE "decision_planning_statuses" (
721
- "id" text PRIMARY KEY NOT NULL,
722
- "team_id" text NOT NULL,
723
- "project_id" text NOT NULL,
724
- "decision_id" text NOT NULL,
725
- "human_approval_state" text,
726
- "execution_readiness" text DEFAULT 'draft' NOT NULL,
727
- "planning_inputs_status" text DEFAULT 'requested' NOT NULL,
728
- "scope_hash" text NOT NULL,
729
- "stale_reason" text,
730
- "ready_at" text,
731
- "stale_at" text,
732
- "metadata_json" text DEFAULT '{}' NOT NULL,
733
- "created_at" text NOT NULL,
734
- "updated_at" text NOT NULL,
735
- CONSTRAINT "chk_decision_planning_statuses_readiness" CHECK ("decision_planning_statuses"."execution_readiness" IN ('draft','blocked','ready','stale','waived')),
736
- CONSTRAINT "chk_decision_planning_statuses_inputs" CHECK ("decision_planning_statuses"."planning_inputs_status" IN ('requested','complete','waived','rejected','stale'))
737
- );
738
-
739
- CREATE TABLE "deliverable_contracts" (
740
- "id" text PRIMARY KEY NOT NULL,
741
- "team_id" text NOT NULL,
742
- "project_id" text NOT NULL,
743
- "decision_id" text NOT NULL,
744
- "deliverable_type" text NOT NULL,
745
- "status" text NOT NULL,
746
- "contract_json" text NOT NULL,
747
- "metadata_json" text DEFAULT '{}' NOT NULL,
748
- "created_at" text NOT NULL,
749
- "updated_at" text NOT NULL,
750
- CONSTRAINT "chk_deliverable_contracts_status" CHECK ("deliverable_contracts"."status" IN ('required','draft','submitted','approved','rejected'))
751
- );
752
-
753
- CREATE TABLE "deliverable_manifests" (
754
- "id" text PRIMARY KEY NOT NULL,
755
- "deliverable_contract_id" text NOT NULL,
756
- "project_id" text NOT NULL,
757
- "decision_id" text NOT NULL,
758
- "ready_for_review" integer DEFAULT 0 NOT NULL,
759
- "manifest_json" text NOT NULL,
760
- "metadata_json" text DEFAULT '{}' NOT NULL,
761
- "submitted_at" text,
762
- "created_at" text NOT NULL,
763
- CONSTRAINT "chk_deliverable_manifests_ready" CHECK ("deliverable_manifests"."ready_for_review" IN (0,1))
764
- );
765
-
766
- CREATE TABLE "research_workflows" (
767
- "id" text PRIMARY KEY NOT NULL,
768
- "team_id" text NOT NULL,
769
- "project_id" text NOT NULL,
770
- "objective_ref" text NOT NULL,
771
- "question_ref" text NOT NULL,
772
- "status" text NOT NULL,
773
- "state_version" integer NOT NULL,
774
- "workflow_json" text NOT NULL,
775
- "idempotency_key" text NOT NULL,
776
- "created_at" text NOT NULL,
777
- "updated_at" text NOT NULL,
778
- CONSTRAINT "chk_research_workflows_status" CHECK ("research_workflows"."status" IN ('ready','running','completed','blocked','failed')),
779
- CONSTRAINT "chk_research_workflows_state_version" CHECK ("research_workflows"."state_version" >= 1)
780
- );
781
-
782
- CREATE TABLE "structured_agent_estimates" (
783
- "id" text PRIMARY KEY NOT NULL,
784
- "team_id" text NOT NULL,
785
- "project_id" text NOT NULL,
786
- "decision_id" text,
787
- "proposal_id" text,
788
- "work_unit_id" text,
789
- "agent_class" text NOT NULL,
790
- "agent_id" text,
791
- "status" text DEFAULT 'submitted' NOT NULL,
792
- "estimate_json" text NOT NULL,
793
- "metadata_json" text DEFAULT '{}' NOT NULL,
794
- "created_at" text NOT NULL,
795
- "accepted_at" text,
796
- "rejected_at" text,
797
- CONSTRAINT "chk_structured_agent_estimates_status" CHECK ("structured_agent_estimates"."status" IN ('submitted','accepted','rejected','superseded'))
798
- );
799
-
800
- CREATE TABLE "agent_context_query_checks" (
801
- "id" text PRIMARY KEY NOT NULL,
802
- "idempotency_key" text NOT NULL,
803
- "team_id" text NOT NULL,
804
- "project_id" text NOT NULL,
805
- "test_id" text NOT NULL,
806
- "test_ref" text NOT NULL,
807
- "definition_kind" text NOT NULL,
808
- "definition_id" text NOT NULL,
809
- "definition_revision" integer NOT NULL,
810
- "definition_commit" text NOT NULL,
811
- "status" text NOT NULL,
812
- "checked_at" text NOT NULL,
813
- "expires_at" text NOT NULL,
814
- "latency_ms" integer NOT NULL,
815
- "stats_json" text NOT NULL,
816
- "assertions_json" text NOT NULL,
817
- "result_digest" text NOT NULL,
818
- CONSTRAINT "chk_agent_context_query_checks_kind" CHECK ("agent_context_query_checks"."definition_kind" IN ('query','query-set')),
819
- CONSTRAINT "chk_agent_context_query_checks_status" CHECK ("agent_context_query_checks"."status" IN ('passing','failing','stale'))
820
- );
821
-
822
- CREATE TABLE "agent_client_actions" (
823
- "id" text PRIMARY KEY NOT NULL,
824
- "session_id" text,
825
- "assignment_id" text NOT NULL,
826
- "user_id" text NOT NULL,
827
- "team_id" text NOT NULL,
828
- "project_id" text NOT NULL,
829
- "kind" text NOT NULL,
830
- "payload_json" text DEFAULT '{}' NOT NULL,
831
- "status" text DEFAULT 'pending' NOT NULL,
832
- "idempotency_key" text NOT NULL,
833
- "request_digest" text NOT NULL,
834
- "expires_at" text NOT NULL,
835
- "completed_at" text,
836
- "result_json" text DEFAULT '{}' NOT NULL,
837
- "created_at" text NOT NULL,
838
- "updated_at" text NOT NULL,
839
- CONSTRAINT "chk_agent_client_actions_kind" CHECK ("agent_client_actions"."kind" IN ('navigate','reveal-resource','set-view-filter','populate-draft','present-confirmation')),
840
- CONSTRAINT "chk_agent_client_actions_status" CHECK ("agent_client_actions"."status" IN ('pending','completed','rejected','expired','failed','unavailable'))
841
- );
842
-
843
- CREATE TABLE "agent_client_sessions" (
844
- "id" text PRIMARY KEY NOT NULL,
845
- "user_id" text NOT NULL,
846
- "team_id" text NOT NULL,
847
- "project_id" text NOT NULL,
848
- "route" text NOT NULL,
849
- "capabilities_json" text DEFAULT '[]' NOT NULL,
850
- "status" text DEFAULT 'active' NOT NULL,
851
- "heartbeat_at" text NOT NULL,
852
- "expires_at" text NOT NULL,
853
- "created_at" text NOT NULL,
854
- "updated_at" text NOT NULL,
855
- CONSTRAINT "chk_agent_client_sessions_status" CHECK ("agent_client_sessions"."status" IN ('active','closed','expired'))
856
- );
857
-
858
- CREATE TABLE "agent_operation_handoffs" (
859
- "id" text PRIMARY KEY NOT NULL,
860
- "assignment_id" text NOT NULL,
861
- "invocation_id" text,
862
- "discussion_id" text NOT NULL,
863
- "team_id" text NOT NULL,
864
- "project_id" text NOT NULL,
865
- "status" text DEFAULT 'awaiting-approval' NOT NULL,
866
- "target" text NOT NULL,
867
- "expected_effect" text NOT NULL,
868
- "inputs_json" text DEFAULT '{}' NOT NULL,
869
- "source_message_refs_json" text DEFAULT '[]' NOT NULL,
870
- "required_authority_json" text DEFAULT '[]' NOT NULL,
871
- "proposal_id" text,
872
- "decision_id" text,
873
- "approval_request_id" text,
874
- "resulting_assignment_id" text,
875
- "idempotency_key" text NOT NULL,
876
- "request_digest" text NOT NULL,
877
- "created_at" text NOT NULL,
878
- "updated_at" text NOT NULL,
879
- CONSTRAINT "chk_agent_operation_handoffs_status" CHECK ("agent_operation_handoffs"."status" IN ('awaiting-approval','approved','scheduled','running','completed','failed','cancelled'))
880
- );
881
-
882
- CREATE TABLE "capacity_allocation_sets" (
883
- "id" text PRIMARY KEY NOT NULL,
884
- "team_id" text NOT NULL,
885
- "version" integer NOT NULL,
886
- "status" text DEFAULT 'draft' NOT NULL,
887
- "effective_from" text NOT NULL,
888
- "effective_until" text,
889
- "reserve_policy_json" text DEFAULT '{}' NOT NULL,
890
- "slices_json" text DEFAULT '[]' NOT NULL,
891
- "borrowing_rules_json" text DEFAULT '[]' NOT NULL,
892
- "metadata_json" text DEFAULT '{}' NOT NULL,
893
- "created_by_id" text,
894
- "activated_at" text,
895
- "superseded_by_id" text,
896
- "created_at" text NOT NULL,
897
- "updated_at" text NOT NULL,
898
- CONSTRAINT "chk_capacity_allocation_sets_version" CHECK ("capacity_allocation_sets"."version" >= 1),
899
- CONSTRAINT "chk_capacity_allocation_sets_status" CHECK ("capacity_allocation_sets"."status" IN ('draft', 'validated', 'active', 'superseded', 'archived')),
900
- CONSTRAINT "chk_capacity_allocation_sets_effective_interval" CHECK ("capacity_allocation_sets"."effective_until" IS NULL OR "capacity_allocation_sets"."effective_until" > "capacity_allocation_sets"."effective_from")
901
- );
902
-
903
- CREATE TABLE "capacity_ledger_entries" (
904
- "id" text PRIMARY KEY NOT NULL,
905
- "settlement_key" text NOT NULL,
906
- "membership_id" text NOT NULL,
907
- "capacity_provider_id" text NOT NULL,
908
- "execution_provider_id" text,
909
- "lane_id" text,
910
- "lane_purpose" text,
911
- "communication_overflow" integer DEFAULT 0 NOT NULL,
912
- "execution_kind" text DEFAULT 'workday' NOT NULL,
913
- "trigger_kind" text DEFAULT 'scheduled' NOT NULL,
914
- "invocation_id" text,
915
- "operation_handoff_id" text,
916
- "reservation_id" text,
917
- "assignment_id" text,
918
- "mode_run_id" text,
919
- "mode" text,
920
- "team_id" text NOT NULL,
921
- "project_id" text,
922
- "work_day_id" text,
923
- "task_id" text,
924
- "phase" text NOT NULL,
925
- "active_seconds" integer NOT NULL,
926
- "elapsed_seconds" integer NOT NULL,
927
- "provider_units" real,
928
- "usd" real,
929
- "source" text NOT NULL,
930
- "metadata_json" text DEFAULT '{}' NOT NULL,
931
- "created_at" text NOT NULL,
932
- CONSTRAINT "chk_capacity_ledger_time" CHECK ("capacity_ledger_entries"."active_seconds" >= 0 AND "capacity_ledger_entries"."elapsed_seconds" >= 0),
933
- CONSTRAINT "chk_capacity_ledger_lane_purpose" CHECK ("capacity_ledger_entries"."lane_purpose" IS NULL OR "capacity_ledger_entries"."lane_purpose" IN ('communication','operation')),
934
- CONSTRAINT "chk_capacity_ledger_overflow" CHECK ("capacity_ledger_entries"."communication_overflow" IN (0,1)),
935
- CONSTRAINT "chk_capacity_ledger_execution_kind" CHECK ("capacity_ledger_entries"."execution_kind" IN ('workday','conversation','simulation','recovery')),
936
- CONSTRAINT "chk_capacity_ledger_trigger_kind" CHECK ("capacity_ledger_entries"."trigger_kind" IN ('scheduled','manual','discussion','agent-handoff'))
937
- );
938
-
939
- CREATE TABLE "capacity_provider_assignments" (
940
- "id" text PRIMARY KEY NOT NULL,
941
- "membership_id" text NOT NULL,
942
- "team_id" text NOT NULL,
943
- "project_id" text NOT NULL,
944
- "capacity_provider_id" text NOT NULL,
945
- "provider_session_id" text,
946
- "execution_provider_id" text,
947
- "lane_id" text,
948
- "lane_purpose" text,
949
- "communication_overflow" integer DEFAULT 0 NOT NULL,
950
- "execution_kind" text DEFAULT 'workday' NOT NULL,
951
- "trigger_kind" text DEFAULT 'scheduled' NOT NULL,
952
- "invocation_id" text,
953
- "parent_workday_id" text,
954
- "parent_assignment_id" text,
955
- "handoff_root_id" text,
956
- "handoff_parent_id" text,
957
- "handoff_depth" integer DEFAULT 0 NOT NULL,
958
- "source_message_refs_json" text DEFAULT '[]' NOT NULL,
959
- "operation_handoff_id" text,
960
- "allocation_set_id" text,
961
- "project_agent_class_id" text NOT NULL,
962
- "reservation_id" text,
963
- "work_day_id" text,
964
- "task_id" text,
965
- "mode" text NOT NULL,
966
- "status" text DEFAULT 'pending' NOT NULL,
967
- "lease_state" text DEFAULT 'unleased' NOT NULL,
968
- "lease_expires_at" text,
969
- "lease_token" text,
970
- "state_version" integer DEFAULT 1 NOT NULL,
971
- "lease_renewed_at" text,
972
- "runner_id" text,
973
- "agent_id" text,
974
- "handler_id" text,
975
- "capacity_envelope_json" text DEFAULT '{}' NOT NULL,
976
- "decision_input_json" text DEFAULT '{}' NOT NULL,
977
- "workspace_context_json" text DEFAULT '{}' NOT NULL,
978
- "allowed_outputs_json" text DEFAULT '{}' NOT NULL,
979
- "explanation_json" text DEFAULT '{}' NOT NULL,
980
- "attempt_count" integer DEFAULT 0 NOT NULL,
981
- "assigned_at" text,
982
- "claimed_at" text,
983
- "completed_at" text,
984
- "returned_at" text,
985
- "failed_at" text,
986
- "lifecycle_reason" text,
987
- "lifecycle_code" text,
988
- "lifecycle_output_json" text DEFAULT '{}' NOT NULL,
989
- "synthesized_from" text,
990
- "synthesis_key" text,
991
- "decision_id" text,
992
- "proposal_id" text,
993
- "fallback_output_id" text,
994
- "treedx_proxy_handle_json" text DEFAULT '{}' NOT NULL,
995
- "metadata_json" text DEFAULT '{}' NOT NULL,
996
- "created_at" text NOT NULL,
997
- "updated_at" text NOT NULL,
998
- CONSTRAINT "chk_capacity_provider_assignments_state_version" CHECK ("capacity_provider_assignments"."state_version" >= 1),
999
- CONSTRAINT "chk_capacity_provider_assignments_mode" CHECK ("capacity_provider_assignments"."mode" IN ('planning', 'acting')),
1000
- CONSTRAINT "chk_capacity_provider_assignments_lane_purpose" CHECK ("capacity_provider_assignments"."lane_purpose" IS NULL OR "capacity_provider_assignments"."lane_purpose" IN ('communication','operation')),
1001
- CONSTRAINT "chk_capacity_provider_assignments_overflow" CHECK ("capacity_provider_assignments"."communication_overflow" IN (0,1)),
1002
- CONSTRAINT "chk_capacity_provider_assignments_handoff_depth" CHECK ("capacity_provider_assignments"."handoff_depth" >= 0),
1003
- CONSTRAINT "chk_capacity_provider_assignments_execution_kind" CHECK ("capacity_provider_assignments"."execution_kind" IN ('workday','conversation','simulation','recovery')),
1004
- CONSTRAINT "chk_capacity_provider_assignments_trigger_kind" CHECK ("capacity_provider_assignments"."trigger_kind" IN ('scheduled','manual','discussion','agent-handoff')),
1005
- CONSTRAINT "chk_capacity_provider_assignments_status" CHECK ("capacity_provider_assignments"."status" IN ('pending', 'leased', 'running', 'completed', 'failed', 'returned', 'expired', 'cancelled')),
1006
- CONSTRAINT "chk_capacity_provider_assignments_lease_state" CHECK ("capacity_provider_assignments"."lease_state" IN ('unleased', 'leased', 'released', 'expired'))
1007
- );
1008
-
1009
- CREATE TABLE "capacity_usage_actuals" (
1010
- "id" text PRIMARY KEY NOT NULL,
1011
- "idempotency_key" text NOT NULL,
1012
- "task_id" text,
1013
- "work_day_id" text,
1014
- "project_id" text NOT NULL,
1015
- "task_signature" text NOT NULL,
1016
- "assignment_id" text,
1017
- "assignment_attempt" integer NOT NULL,
1018
- "usage_dimension" text NOT NULL,
1019
- "accounting_mode" text NOT NULL,
1020
- "mode_run_id" text,
1021
- "mode" text,
1022
- "capacity_provider_id" text,
1023
- "execution_provider_id" text,
1024
- "lane_id" text,
1025
- "lane_purpose" text,
1026
- "communication_overflow" integer DEFAULT 0 NOT NULL,
1027
- "execution_kind" text DEFAULT 'workday' NOT NULL,
1028
- "trigger_kind" text DEFAULT 'scheduled' NOT NULL,
1029
- "invocation_id" text,
1030
- "parent_workday_id" text,
1031
- "parent_assignment_id" text,
1032
- "handoff_root_id" text,
1033
- "handoff_parent_id" text,
1034
- "handoff_depth" integer DEFAULT 0 NOT NULL,
1035
- "source_message_refs_json" text DEFAULT '[]' NOT NULL,
1036
- "operation_handoff_id" text,
1037
- "business_model" text NOT NULL,
1038
- "model_name" text,
1039
- "input_tokens" integer,
1040
- "output_tokens" integer,
1041
- "cached_input_tokens" integer,
1042
- "reasoning_tokens" integer,
1043
- "quota_minutes" real,
1044
- "wall_minutes" real,
1045
- "files_opened" integer,
1046
- "files_changed" integer,
1047
- "diff_lines_added" integer,
1048
- "diff_lines_removed" integer,
1049
- "test_runs" integer,
1050
- "retry_count" integer,
1051
- "active_seconds" integer NOT NULL,
1052
- "elapsed_seconds" integer NOT NULL,
1053
- "actual_usd" real,
1054
- "native_usage_json" text DEFAULT '{}' NOT NULL,
1055
- "metadata_json" text DEFAULT '{}' NOT NULL,
1056
- "created_at" text NOT NULL,
1057
- "execution_profile_id" text DEFAULT 'standard-code-model' NOT NULL,
1058
- CONSTRAINT "chk_capacity_usage_actuals_time" CHECK ("capacity_usage_actuals"."active_seconds" >= 0 AND "capacity_usage_actuals"."elapsed_seconds" >= 0),
1059
- CONSTRAINT "chk_capacity_usage_actuals_assignment_attempt" CHECK ("capacity_usage_actuals"."assignment_attempt" >= 0),
1060
- CONSTRAINT "chk_capacity_usage_actuals_accounting_mode" CHECK ("capacity_usage_actuals"."accounting_mode" IN ('informational', 'incremental', 'aggregate'))
1061
- );
1062
-
1063
- CREATE TABLE "project_agent_classes" (
1064
- "id" text PRIMARY KEY NOT NULL,
1065
- "team_id" text NOT NULL,
1066
- "project_id" text NOT NULL,
1067
- "slug" text NOT NULL,
1068
- "name" text NOT NULL,
1069
- "status" text DEFAULT 'active' NOT NULL,
1070
- "allowed_modes_json" text DEFAULT '[]' NOT NULL,
1071
- "required_capabilities_json" text DEFAULT '[]' NOT NULL,
1072
- "kernel_profile_json" text DEFAULT '{}' NOT NULL,
1073
- "kernel_policy_json" text DEFAULT '{}' NOT NULL,
1074
- "handler_refs_json" text DEFAULT '{}' NOT NULL,
1075
- "output_contracts_json" text DEFAULT '{}' NOT NULL,
1076
- "metadata_json" text DEFAULT '{}' NOT NULL,
1077
- "created_at" text NOT NULL,
1078
- "updated_at" text NOT NULL,
1079
- CONSTRAINT "chk_project_agent_classes_status" CHECK ("project_agent_classes"."status" IN ('active', 'paused', 'archived'))
1080
- );
1081
-
1082
- CREATE TABLE "capacity_provider_availability_sessions" (
1083
- "id" text PRIMARY KEY NOT NULL,
1084
- "membership_id" text NOT NULL,
1085
- "team_id" text NOT NULL,
1086
- "capacity_provider_id" text NOT NULL,
1087
- "environment" text,
1088
- "status" text DEFAULT 'open' NOT NULL,
1089
- "sequence" integer DEFAULT 1 NOT NULL,
1090
- "opened_at" text NOT NULL,
1091
- "refreshed_at" text NOT NULL,
1092
- "expires_at" text NOT NULL,
1093
- "available_from" text NOT NULL,
1094
- "available_until" text,
1095
- "execution_providers_json" text DEFAULT '[]' NOT NULL,
1096
- "capabilities_json" text DEFAULT '[]' NOT NULL,
1097
- "native_limits_json" text DEFAULT '{}' NOT NULL,
1098
- "runner_pressure_json" text DEFAULT '{}' NOT NULL,
1099
- "constraints_json" text DEFAULT '{}' NOT NULL,
1100
- "metadata_json" text DEFAULT '{}' NOT NULL,
1101
- "created_at" text NOT NULL,
1102
- "updated_at" text NOT NULL,
1103
- "closed_at" text,
1104
- CONSTRAINT "chk_capacity_provider_availability_sessions_sequence" CHECK ("capacity_provider_availability_sessions"."sequence" >= 1),
1105
- CONSTRAINT "chk_capacity_provider_availability_sessions_status" CHECK ("capacity_provider_availability_sessions"."status" IN ('open', 'draining', 'closed', 'expired'))
1106
- );
1107
-
1108
- CREATE TABLE "capacity_admission_counters" (
1109
- "id" text PRIMARY KEY NOT NULL,
1110
- "team_id" text NOT NULL,
1111
- "scope" text NOT NULL,
1112
- "scope_id" text NOT NULL,
1113
- "period_key" text NOT NULL,
1114
- "hard_limit" real NOT NULL,
1115
- "committed_amount" real DEFAULT 0 NOT NULL,
1116
- "state_version" integer DEFAULT 1 NOT NULL,
1117
- "created_at" text NOT NULL,
1118
- "updated_at" text NOT NULL,
1119
- CONSTRAINT "chk_capacity_admission_counter_hard_limit" CHECK ("capacity_admission_counters"."hard_limit" >= 0),
1120
- CONSTRAINT "chk_capacity_admission_counter_committed_amount" CHECK ("capacity_admission_counters"."committed_amount" >= 0 AND "capacity_admission_counters"."committed_amount" <= "capacity_admission_counters"."hard_limit")
1121
- );
1122
-
1123
- CREATE TABLE "capacity_audit_events" (
1124
- "id" text PRIMARY KEY NOT NULL,
1125
- "team_id" text,
1126
- "capacity_provider_id" text,
1127
- "membership_id" text,
1128
- "actor_type" text NOT NULL,
1129
- "actor_id" text,
1130
- "action" text NOT NULL,
1131
- "resource_type" text NOT NULL,
1132
- "resource_id" text,
1133
- "request_id" text,
1134
- "idempotency_key" text,
1135
- "before_fingerprint" text,
1136
- "after_fingerprint" text,
1137
- "metadata_json" text DEFAULT '{}' NOT NULL,
1138
- "created_at" text NOT NULL
1139
- );
1140
-
1141
- CREATE TABLE "capacity_grants" (
1142
- "id" text PRIMARY KEY NOT NULL,
1143
- "membership_id" text NOT NULL,
1144
- "capacity_provider_id" text NOT NULL,
1145
- "team_id" text NOT NULL,
1146
- "project_id" text NOT NULL,
1147
- "environment" text NOT NULL,
1148
- "status" text DEFAULT 'planned' NOT NULL,
1149
- "execution_provider_ids_json" text DEFAULT '[]' NOT NULL,
1150
- "lane_ids_json" text DEFAULT '[]' NOT NULL,
1151
- "capabilities_json" text DEFAULT '[]' NOT NULL,
1152
- "allowed_modes_json" text DEFAULT '[]' NOT NULL,
1153
- "daily_agent_seconds_limit" integer,
1154
- "monthly_agent_seconds_limit" integer,
1155
- "max_concurrent_assignments" integer,
1156
- "unmetered" integer DEFAULT 0 NOT NULL,
1157
- "expires_at" text,
1158
- "metadata_json" text DEFAULT '{}' NOT NULL,
1159
- "created_at" text NOT NULL,
1160
- "updated_at" text NOT NULL,
1161
- CONSTRAINT "chk_capacity_grants_status" CHECK ("capacity_grants"."status" IN ('planned', 'active', 'paused', 'revoked', 'expired')),
1162
- CONSTRAINT "chk_capacity_grants_unmetered" CHECK ("capacity_grants"."unmetered" IN (0, 1)),
1163
- CONSTRAINT "chk_capacity_grants_daily_time_limit" CHECK ("capacity_grants"."daily_agent_seconds_limit" IS NULL OR "capacity_grants"."daily_agent_seconds_limit" >= 0),
1164
- CONSTRAINT "chk_capacity_grants_monthly_time_limit" CHECK ("capacity_grants"."monthly_agent_seconds_limit" IS NULL OR "capacity_grants"."monthly_agent_seconds_limit" >= 0),
1165
- CONSTRAINT "chk_capacity_grants_concurrency" CHECK ("capacity_grants"."max_concurrent_assignments" IS NULL OR "capacity_grants"."max_concurrent_assignments" >= 0)
1166
- );
1167
-
1168
- CREATE TABLE "capacity_operation_receipts" (
1169
- "id" text PRIMARY KEY NOT NULL,
1170
- "team_id" text NOT NULL,
1171
- "operation" text NOT NULL,
1172
- "idempotency_key" text NOT NULL,
1173
- "request_digest" text NOT NULL,
1174
- "resource_type" text NOT NULL,
1175
- "resource_id" text,
1176
- "response_json" text NOT NULL,
1177
- "created_at" text NOT NULL,
1178
- "updated_at" text NOT NULL
1179
- );
1180
-
1181
- CREATE TABLE "capacity_provider_access_tokens" (
1182
- "id" text PRIMARY KEY NOT NULL,
1183
- "membership_id" text NOT NULL,
1184
- "credential_id" text NOT NULL,
1185
- "idempotency_key" text NOT NULL,
1186
- "token_prefix" text NOT NULL,
1187
- "token_hash" text NOT NULL,
1188
- "scopes_json" text DEFAULT '[]' NOT NULL,
1189
- "status" text DEFAULT 'active' NOT NULL,
1190
- "issued_at" text NOT NULL,
1191
- "expires_at" text NOT NULL,
1192
- "last_used_at" text,
1193
- "expired_at" text,
1194
- "revoked_at" text,
1195
- "updated_at" text NOT NULL,
1196
- CONSTRAINT "chk_capacity_provider_access_tokens_status" CHECK ("capacity_provider_access_tokens"."status" IN ('active', 'revoked', 'expired'))
1197
- );
1198
-
1199
- CREATE TABLE "capacity_provider_proof_nonces" (
1200
- "provider_fingerprint" text NOT NULL,
1201
- "jti" text NOT NULL,
1202
- "expires_at" text NOT NULL,
1203
- "created_at" text NOT NULL,
1204
- CONSTRAINT "capacity_provider_proof_nonces_provider_fingerprint_jti_pk" PRIMARY KEY("provider_fingerprint","jti")
1205
- );
1206
-
1207
- CREATE TABLE "capacity_provider_registration_rate_limits" (
1208
- "dimension" text NOT NULL,
1209
- "bucket_key" text NOT NULL,
1210
- "count" integer DEFAULT 0 NOT NULL,
1211
- "window_started_at" text NOT NULL,
1212
- "expires_at" text NOT NULL,
1213
- "updated_at" text NOT NULL,
1214
- CONSTRAINT "capacity_provider_registration_rate_limits_dimension_bucket_key_pk" PRIMARY KEY("dimension","bucket_key"),
1215
- CONSTRAINT "chk_capacity_provider_registration_rate_limits_count" CHECK ("capacity_provider_registration_rate_limits"."count" >= 0)
1216
- );
1217
-
1218
- CREATE TABLE "capacity_provider_team_credentials" (
1219
- "id" text PRIMARY KEY NOT NULL,
1220
- "membership_id" text NOT NULL,
1221
- "team_id" text NOT NULL,
1222
- "capacity_provider_id" text NOT NULL,
1223
- "key_prefix" text NOT NULL,
1224
- "key_hash" text NOT NULL,
1225
- "issuance_authorization_id" text NOT NULL,
1226
- "issuance_generation" integer NOT NULL,
1227
- "issue_idempotency_key" text NOT NULL,
1228
- "scopes_json" text DEFAULT '[]' NOT NULL,
1229
- "status" text DEFAULT 'active' NOT NULL,
1230
- "last_used_at" text,
1231
- "rotated_from_credential_id" text,
1232
- "expires_at" text,
1233
- "revealed_at" text,
1234
- "revoked_at" text,
1235
- "revoke_idempotency_key" text,
1236
- "revoke_request_digest" text,
1237
- "created_at" text NOT NULL,
1238
- "updated_at" text NOT NULL,
1239
- CONSTRAINT "chk_capacity_provider_team_credentials_status" CHECK ("capacity_provider_team_credentials"."status" IN ('active', 'rotating', 'revoked'))
1240
- );
1241
-
1242
- CREATE TABLE "capacity_reservation_counter_claims" (
1243
- "reservation_id" text NOT NULL,
1244
- "counter_id" text NOT NULL,
1245
- "admission_token" text NOT NULL,
1246
- "reserved_amount" real NOT NULL,
1247
- "released_amount" real DEFAULT 0 NOT NULL,
1248
- "release_policy" text NOT NULL,
1249
- "created_at" text NOT NULL,
1250
- "updated_at" text NOT NULL,
1251
- CONSTRAINT "chk_capacity_reservation_claim_reserved" CHECK ("capacity_reservation_counter_claims"."reserved_amount" >= 0),
1252
- CONSTRAINT "chk_capacity_reservation_claim_released" CHECK ("capacity_reservation_counter_claims"."released_amount" >= 0 AND "capacity_reservation_counter_claims"."released_amount" <= "capacity_reservation_counter_claims"."reserved_amount")
1253
- );
1254
-
1255
- CREATE TABLE "capacity_reservations" (
1256
- "id" text PRIMARY KEY NOT NULL,
1257
- "idempotency_key" text NOT NULL,
1258
- "admission_token" text NOT NULL,
1259
- "membership_id" text NOT NULL,
1260
- "grant_id" text NOT NULL,
1261
- "capacity_provider_id" text NOT NULL,
1262
- "execution_provider_id" text,
1263
- "lane_id" text,
1264
- "lane_purpose" text,
1265
- "communication_overflow" integer DEFAULT 0 NOT NULL,
1266
- "execution_kind" text DEFAULT 'workday' NOT NULL,
1267
- "trigger_kind" text DEFAULT 'scheduled' NOT NULL,
1268
- "invocation_id" text,
1269
- "operation_handoff_id" text,
1270
- "allocation_set_id" text NOT NULL,
1271
- "allocation_version" integer NOT NULL,
1272
- "allocation_slice_ids_json" text DEFAULT '[]' NOT NULL,
1273
- "policy_snapshot_json" text DEFAULT '{}' NOT NULL,
1274
- "project_agent_class_id" text NOT NULL,
1275
- "assignment_id" text,
1276
- "mode" text NOT NULL,
1277
- "team_id" text NOT NULL,
1278
- "project_id" text NOT NULL,
1279
- "work_day_id" text,
1280
- "task_id" text,
1281
- "state" text DEFAULT 'reserved' NOT NULL,
1282
- "usage_report_token" text,
1283
- "settlement_token" text,
1284
- "requested_seconds" integer NOT NULL,
1285
- "reserved_seconds" integer NOT NULL,
1286
- "active_seconds" integer DEFAULT 0 NOT NULL,
1287
- "elapsed_seconds" integer DEFAULT 0 NOT NULL,
1288
- "released_seconds" integer DEFAULT 0 NOT NULL,
1289
- "overrun_seconds" integer DEFAULT 0 NOT NULL,
1290
- "native_unit" text,
1291
- "reserved_native_amount" real,
1292
- "consumed_native_amount" real,
1293
- "reserved_provider_units" real,
1294
- "consumed_provider_units" real,
1295
- "reserved_usd" real,
1296
- "consumed_usd" real,
1297
- "expires_at" text,
1298
- "metadata_json" text DEFAULT '{}' NOT NULL,
1299
- "created_at" text NOT NULL,
1300
- "updated_at" text NOT NULL,
1301
- CONSTRAINT "chk_capacity_reservations_allocation_version" CHECK ("capacity_reservations"."allocation_version" >= 1),
1302
- CONSTRAINT "chk_capacity_reservations_mode" CHECK ("capacity_reservations"."mode" IN ('planning', 'acting')),
1303
- CONSTRAINT "chk_capacity_reservations_lane_purpose" CHECK ("capacity_reservations"."lane_purpose" IS NULL OR "capacity_reservations"."lane_purpose" IN ('communication','operation')),
1304
- CONSTRAINT "chk_capacity_reservations_overflow" CHECK ("capacity_reservations"."communication_overflow" IN (0,1)),
1305
- CONSTRAINT "chk_capacity_reservations_execution_kind" CHECK ("capacity_reservations"."execution_kind" IN ('workday','conversation','simulation','recovery')),
1306
- CONSTRAINT "chk_capacity_reservations_trigger_kind" CHECK ("capacity_reservations"."trigger_kind" IN ('scheduled','manual','discussion','agent-handoff')),
1307
- CONSTRAINT "chk_capacity_reservations_state" CHECK ("capacity_reservations"."state" IN ('reserved', 'consuming', 'consumed', 'released', 'expired', 'failed', 'overran_pending_approval', 'continuation_required')),
1308
- CONSTRAINT "chk_capacity_reservations_time" CHECK ("capacity_reservations"."requested_seconds" > 0 AND "capacity_reservations"."reserved_seconds" > 0 AND "capacity_reservations"."active_seconds" >= 0 AND "capacity_reservations"."elapsed_seconds" >= 0 AND "capacity_reservations"."released_seconds" >= 0 AND "capacity_reservations"."overrun_seconds" >= 0)
1309
- );
1310
-
1311
- CREATE TABLE "agent_capacity_plans" (
1312
- "id" text PRIMARY KEY NOT NULL,
1313
- "team_id" text NOT NULL,
1314
- "project_id" text NOT NULL,
1315
- "decision_id" text NOT NULL,
1316
- "status" text DEFAULT 'draft' NOT NULL,
1317
- "scope_hash" text NOT NULL,
1318
- "allocation_set_id" text,
1319
- "work_day_id" text,
1320
- "expected_seconds" integer DEFAULT 0 NOT NULL,
1321
- "high_seconds" integer DEFAULT 0 NOT NULL,
1322
- "work_units_json" text DEFAULT '[]' NOT NULL,
1323
- "capability_needs_json" text DEFAULT '[]' NOT NULL,
1324
- "environment_needs_json" text DEFAULT '[]' NOT NULL,
1325
- "reserves_json" text DEFAULT '{}' NOT NULL,
1326
- "blockers_json" text DEFAULT '[]' NOT NULL,
1327
- "priority_rationale" text,
1328
- "review_json" text DEFAULT '{}' NOT NULL,
1329
- "metadata_json" text DEFAULT '{}' NOT NULL,
1330
- "accepted_at" text,
1331
- "scheduled_at" text,
1332
- "superseded_at" text,
1333
- "created_at" text NOT NULL,
1334
- "updated_at" text NOT NULL,
1335
- CONSTRAINT "chk_agent_capacity_plans_status" CHECK ("agent_capacity_plans"."status" IN ('draft','accepted','revision_requested','deferred','scheduled','active','completed','superseded')),
1336
- CONSTRAINT "chk_agent_capacity_plans_time" CHECK ("agent_capacity_plans"."expected_seconds" >= 0 AND "agent_capacity_plans"."high_seconds" >= "agent_capacity_plans"."expected_seconds")
1337
- );
1338
-
1339
- CREATE TABLE "agent_signals" (
1340
- "id" text PRIMARY KEY NOT NULL,
1341
- "contract_id" text NOT NULL,
1342
- "subject_kind" text NOT NULL,
1343
- "subject_id" text NOT NULL,
1344
- "team_id" text NOT NULL,
1345
- "project_id" text NOT NULL,
1346
- "workday_run_id" text,
1347
- "assignment_id" text,
1348
- "agent_id" text,
1349
- "activity_type" text,
1350
- "capacity_provider_id" text,
1351
- "causation_id" text NOT NULL,
1352
- "correlation_id" text NOT NULL,
1353
- "origin" text NOT NULL,
1354
- "commit_sha" text,
1355
- "immutable_ref" text,
1356
- "digest" text,
1357
- "changed_paths_json" text DEFAULT '[]' NOT NULL,
1358
- "change_summary" text,
1359
- "evidence_ref" text,
1360
- "payload_json" text DEFAULT '{}' NOT NULL,
1361
- "metadata_json" text DEFAULT '{}' NOT NULL,
1362
- "created_at" text NOT NULL,
1363
- CONSTRAINT "chk_agent_signals_origin" CHECK ("agent_signals"."origin" IN ('treedx-change','deterministic-handler','agent-tool'))
1364
- );
1365
-
1366
- CREATE TABLE "capacity_workday_demands" (
1367
- "id" text PRIMARY KEY NOT NULL,
1368
- "team_id" text NOT NULL,
1369
- "project_id" text NOT NULL,
1370
- "workday_run_id" text NOT NULL,
1371
- "workday_id" text NOT NULL,
1372
- "source_type" text NOT NULL,
1373
- "source_id" text NOT NULL,
1374
- "mode" text NOT NULL,
1375
- "project_agent_class_id" text NOT NULL,
1376
- "agent_id" text,
1377
- "handler_id" text NOT NULL,
1378
- "activity_type" text NOT NULL,
1379
- "decision_id" text,
1380
- "capacity_plan_id" text,
1381
- "status" text DEFAULT 'pending' NOT NULL,
1382
- "priority" integer DEFAULT 0 NOT NULL,
1383
- "requested_seconds" integer NOT NULL,
1384
- "idempotency_key" text NOT NULL,
1385
- "claim_token" text,
1386
- "assignment_id" text,
1387
- "payload_json" text DEFAULT '{}' NOT NULL,
1388
- "metadata_json" text DEFAULT '{}' NOT NULL,
1389
- "available_at" text NOT NULL,
1390
- "claimed_at" text,
1391
- "admitted_at" text,
1392
- "completed_at" text,
1393
- "created_at" text NOT NULL,
1394
- "updated_at" text NOT NULL,
1395
- CONSTRAINT "chk_capacity_workday_demands_mode" CHECK ("capacity_workday_demands"."mode" IN ('planning','acting')),
1396
- CONSTRAINT "chk_capacity_workday_demands_status" CHECK ("capacity_workday_demands"."status" IN ('pending','claimed','admitted','completed','blocked','cancelled','superseded')),
1397
- CONSTRAINT "chk_capacity_workday_demands_source" CHECK ("capacity_workday_demands"."source_type" IN ('objective','question','proposal','decision-review','knowledge-gap','release-readiness','idle-intent','planning-input','capacity-plan','assignment-completion','assignment-blockage','workday-summary','handoff','research-workflow')),
1398
- CONSTRAINT "chk_capacity_workday_demands_time" CHECK ("capacity_workday_demands"."requested_seconds" > 0)
1399
- );
1400
-
1401
- CREATE TABLE "capacity_workday_events" (
1402
- "id" text PRIMARY KEY NOT NULL,
1403
- "run_id" text NOT NULL,
1404
- "team_id" text NOT NULL,
1405
- "project_id" text,
1406
- "workday_id" text,
1407
- "assignment_id" text,
1408
- "mode_run_id" text,
1409
- "event_index" integer NOT NULL,
1410
- "event_type" text NOT NULL,
1411
- "status" text DEFAULT 'recorded' NOT NULL,
1412
- "title" text,
1413
- "message" text,
1414
- "parameters_json" text DEFAULT '{}' NOT NULL,
1415
- "context_json" text DEFAULT '{}' NOT NULL,
1416
- "refs_json" text DEFAULT '{}' NOT NULL,
1417
- "metadata_json" text DEFAULT '{}' NOT NULL,
1418
- "created_at" text NOT NULL,
1419
- CONSTRAINT "chk_capacity_workday_events_index" CHECK ("capacity_workday_events"."event_index" >= 0),
1420
- CONSTRAINT "chk_capacity_workday_events_status" CHECK ("capacity_workday_events"."status" IN ('recorded','active','completed','warning','error','failed'))
1421
- );
1422
-
1423
- CREATE TABLE "capacity_workday_participation_cycles" (
1424
- "id" text PRIMARY KEY NOT NULL,
1425
- "team_id" text NOT NULL,
1426
- "project_id" text NOT NULL,
1427
- "workday_run_id" text NOT NULL,
1428
- "cycle_number" integer NOT NULL,
1429
- "status" text DEFAULT 'open' NOT NULL,
1430
- "opened_at" text NOT NULL,
1431
- "covered_at" text,
1432
- "closed_at" text,
1433
- "created_at" text NOT NULL,
1434
- "updated_at" text NOT NULL,
1435
- CONSTRAINT "chk_capacity_workday_participation_cycles_number" CHECK ("capacity_workday_participation_cycles"."cycle_number" >= 1),
1436
- CONSTRAINT "chk_capacity_workday_participation_cycles_status" CHECK ("capacity_workday_participation_cycles"."status" IN ('open','covered','closed'))
1437
- );
1438
-
1439
- CREATE TABLE "capacity_workday_participation_entries" (
1440
- "id" text PRIMARY KEY NOT NULL,
1441
- "cycle_id" text NOT NULL,
1442
- "team_id" text NOT NULL,
1443
- "project_id" text NOT NULL,
1444
- "workday_run_id" text NOT NULL,
1445
- "agent_id" text NOT NULL,
1446
- "project_agent_class_id" text NOT NULL,
1447
- "status" text DEFAULT 'pending' NOT NULL,
1448
- "reason_code" text,
1449
- "demand_id" text,
1450
- "assignment_id" text,
1451
- "covered_at" text,
1452
- "metadata_json" text DEFAULT '{}' NOT NULL,
1453
- "created_at" text NOT NULL,
1454
- "updated_at" text NOT NULL,
1455
- CONSTRAINT "chk_capacity_workday_participation_entries_status" CHECK ("capacity_workday_participation_entries"."status" IN ('pending','assigned','completed','excluded','blocked'))
1456
- );
1457
-
1458
- CREATE TABLE "capacity_workday_schedules" (
1459
- "id" text PRIMARY KEY NOT NULL,
1460
- "team_id" text NOT NULL,
1461
- "capacity_provider_id" text NOT NULL,
1462
- "status" text DEFAULT 'active' NOT NULL,
1463
- "purpose" text NOT NULL,
1464
- "project_ids_json" text DEFAULT '[]' NOT NULL,
1465
- "agent_selection_json" text DEFAULT '{}' NOT NULL,
1466
- "cadence_seconds" integer NOT NULL,
1467
- "duration_seconds" integer NOT NULL,
1468
- "max_active_assignments" integer NOT NULL,
1469
- "available_seconds" integer NOT NULL,
1470
- "time_policy_json" text DEFAULT '{}' NOT NULL,
1471
- "planning_only" integer DEFAULT 1 NOT NULL,
1472
- "publication_policy_json" text DEFAULT '{}' NOT NULL,
1473
- "last_run_id" text,
1474
- "next_run_at" text NOT NULL,
1475
- "state_version" integer DEFAULT 1 NOT NULL,
1476
- "created_at" text NOT NULL,
1477
- "updated_at" text NOT NULL,
1478
- CONSTRAINT "chk_capacity_workday_schedules_status" CHECK ("capacity_workday_schedules"."status" IN ('active','paused','completed','failed')),
1479
- CONSTRAINT "chk_capacity_workday_schedules_cadence" CHECK ("capacity_workday_schedules"."cadence_seconds" >= 60),
1480
- CONSTRAINT "chk_capacity_workday_schedules_duration" CHECK ("capacity_workday_schedules"."duration_seconds" >= 60),
1481
- CONSTRAINT "chk_capacity_workday_schedules_concurrency" CHECK ("capacity_workday_schedules"."max_active_assignments" >= 1),
1482
- CONSTRAINT "chk_capacity_workday_schedules_time" CHECK ("capacity_workday_schedules"."available_seconds" > 0),
1483
- CONSTRAINT "chk_capacity_workday_schedules_planning" CHECK ("capacity_workday_schedules"."planning_only" IN (0,1)),
1484
- CONSTRAINT "chk_capacity_workday_schedules_version" CHECK ("capacity_workday_schedules"."state_version" >= 1)
1485
- );
1486
-
1487
- CREATE TABLE "treedx_project_proxy_audit" (
1488
- "id" text PRIMARY KEY NOT NULL,
1489
- "team_id" text NOT NULL,
1490
- "project_id" text NOT NULL,
1491
- "assignment_id" text,
1492
- "actor_type" text NOT NULL,
1493
- "actor_id" text,
1494
- "method" text NOT NULL,
1495
- "path" text NOT NULL,
1496
- "handle_json" text DEFAULT '{}' NOT NULL,
1497
- "result_status" text DEFAULT 'observed' NOT NULL,
1498
- "reason_code" text,
1499
- "reason" text,
1500
- "metadata_json" text DEFAULT '{}' NOT NULL,
1501
- "created_at" text NOT NULL
1502
- );
1503
-
1504
- CREATE TABLE "treedx_proxy_handles" (
1505
- "id" text PRIMARY KEY NOT NULL,
1506
- "team_id" text NOT NULL,
1507
- "project_id" text NOT NULL,
1508
- "assignment_id" text,
1509
- "repository_id" text,
1510
- "workspace_id" text,
1511
- "status" text DEFAULT 'issued' NOT NULL,
1512
- "scopes_json" text DEFAULT '[]' NOT NULL,
1513
- "allowed_operations_json" text DEFAULT '[]' NOT NULL,
1514
- "allowed_paths_json" text DEFAULT '[]' NOT NULL,
1515
- "allowed_read_paths_json" text DEFAULT '[]' NOT NULL,
1516
- "allowed_write_paths_json" text DEFAULT '[]' NOT NULL,
1517
- "token_hash" text,
1518
- "expires_at" text,
1519
- "issued_at" text NOT NULL,
1520
- "revoked_at" text,
1521
- "metadata_json" text DEFAULT '{}' NOT NULL,
1522
- "created_at" text NOT NULL,
1523
- "updated_at" text NOT NULL
1524
- );
1525
-
1526
- CREATE TABLE "workday_capacity_envelopes" (
1527
- "id" text PRIMARY KEY NOT NULL,
1528
- "team_id" text NOT NULL,
1529
- "project_id" text NOT NULL,
1530
- "workday_run_id" text,
1531
- "allocation_set_id" text,
1532
- "status" text DEFAULT 'draft' NOT NULL,
1533
- "started_at" text,
1534
- "paused_at" text,
1535
- "completed_at" text,
1536
- "envelope_json" text DEFAULT '{}' NOT NULL,
1537
- "metadata_json" text DEFAULT '{}' NOT NULL,
1538
- "created_at" text NOT NULL,
1539
- "updated_at" text NOT NULL,
1540
- CONSTRAINT "chk_workday_capacity_envelopes_status" CHECK ("workday_capacity_envelopes"."status" IN ('draft','queued','active','paused','completed','cancelled','failed','degraded'))
1541
- );
1542
-
1543
- CREATE TABLE "workday_planning_participants" (
1544
- "id" text PRIMARY KEY NOT NULL,
1545
- "session_id" text NOT NULL,
1546
- "agent_id" text NOT NULL,
1547
- "node_id" text NOT NULL,
1548
- "project_agent_class_id" text NOT NULL,
1549
- "status" text DEFAULT 'scheduled' NOT NULL,
1550
- "requested_by_signal_id" text,
1551
- "rationale" text,
1552
- "metadata_json" text DEFAULT '{}' NOT NULL,
1553
- "created_at" text NOT NULL,
1554
- "updated_at" text NOT NULL
1555
- );
1556
-
1557
- CREATE TABLE "workday_planning_sessions" (
1558
- "id" text PRIMARY KEY NOT NULL,
1559
- "team_id" text NOT NULL,
1560
- "workday_run_id" text NOT NULL,
1561
- "graph_revision" text NOT NULL,
1562
- "status" text DEFAULT 'scheduled' NOT NULL,
1563
- "agenda_json" text DEFAULT '{}' NOT NULL,
1564
- "objectives_json" text DEFAULT '[]' NOT NULL,
1565
- "proposal_ids_json" text DEFAULT '[]' NOT NULL,
1566
- "rounds" integer NOT NULL,
1567
- "current_round" integer DEFAULT 0 NOT NULL,
1568
- "allocated_seconds" integer NOT NULL,
1569
- "reserved_seconds" integer DEFAULT 0 NOT NULL,
1570
- "started_at" text,
1571
- "deadline" text NOT NULL,
1572
- "completed_at" text,
1573
- "metadata_json" text DEFAULT '{}' NOT NULL,
1574
- "created_at" text NOT NULL,
1575
- "updated_at" text NOT NULL,
1576
- CONSTRAINT "chk_workday_planning_sessions_status" CHECK ("workday_planning_sessions"."status" IN ('scheduled','running','completed','failed','cancelled'))
1577
- );
1578
-
1579
- CREATE TABLE "workday_planning_waves" (
1580
- "id" text PRIMARY KEY NOT NULL,
1581
- "session_id" text NOT NULL,
1582
- "round" integer NOT NULL,
1583
- "wave" integer NOT NULL,
1584
- "status" text DEFAULT 'scheduled' NOT NULL,
1585
- "snapshot_ref" text NOT NULL,
1586
- "snapshot_json" text DEFAULT '{}' NOT NULL,
1587
- "assignment_ids_json" text DEFAULT '[]' NOT NULL,
1588
- "started_at" text,
1589
- "completed_at" text,
1590
- "created_at" text NOT NULL,
1591
- "updated_at" text NOT NULL
1592
- );
1593
-
1594
- CREATE TABLE "better_auth_session" (
1595
- "id" text PRIMARY KEY NOT NULL,
1596
- "expiresAt" bigint NOT NULL,
1597
- "token" text NOT NULL,
1598
- "createdAt" bigint NOT NULL,
1599
- "updatedAt" bigint NOT NULL,
1600
- "ipAddress" text,
1601
- "userAgent" text,
1602
- "userId" text NOT NULL,
1603
- CONSTRAINT "better_auth_session_token_unique" UNIQUE("token")
1604
- );
1605
-
1606
- CREATE TABLE "better_auth_user" (
1607
- "id" text PRIMARY KEY NOT NULL,
1608
- "name" text NOT NULL,
1609
- "email" text NOT NULL,
1610
- "emailVerified" integer DEFAULT 0 NOT NULL,
1611
- "image" text,
1612
- "createdAt" bigint NOT NULL,
1613
- "updatedAt" bigint NOT NULL,
1614
- "username" text,
1615
- "firstName" text,
1616
- "lastName" text,
1617
- CONSTRAINT "better_auth_user_email_unique" UNIQUE("email")
1618
- );
1619
-
1620
- CREATE TABLE "commerce_capacity_listing_inquiries" (
1621
- "id" text PRIMARY KEY NOT NULL,
1622
- "listing_id" text NOT NULL,
1623
- "product_id" text NOT NULL,
1624
- "vendor_id" text NOT NULL,
1625
- "seller_team_id" text NOT NULL,
1626
- "buyer_team_id" text,
1627
- "buyer_user_id" text,
1628
- "status" text DEFAULT 'requested' NOT NULL,
1629
- "requested_service_type" text,
1630
- "requested_scope" text NOT NULL,
1631
- "data_access_requested_json" text DEFAULT '{}' NOT NULL,
1632
- "secret_access_requested_json" text DEFAULT '{}' NOT NULL,
1633
- "related_project_id" text,
1634
- "related_workday_id" text,
1635
- "governance_evidence_json" text DEFAULT '{}' NOT NULL,
1636
- "metadata_json" text DEFAULT '{}' NOT NULL,
1637
- "created_at" text NOT NULL,
1638
- "updated_at" text NOT NULL
1639
- );
1640
-
1641
- CREATE TABLE "commerce_capacity_listings" (
1642
- "id" text PRIMARY KEY NOT NULL,
1643
- "product_id" text NOT NULL,
1644
- "vendor_id" text NOT NULL,
1645
- "seller_team_id" text NOT NULL,
1646
- "capacity_provider_id" text,
1647
- "execution_provider_id" text,
1648
- "status" text DEFAULT 'draft' NOT NULL,
1649
- "access_level" text DEFAULT 'public_summary' NOT NULL,
1650
- "runtime_isolation_level" text DEFAULT 'none' NOT NULL,
1651
- "human_involvement_level" text DEFAULT 'none' NOT NULL,
1652
- "ai_involvement_level" text DEFAULT 'none' NOT NULL,
1653
- "data_access_level" text DEFAULT 'none' NOT NULL,
1654
- "secret_access_level" text DEFAULT 'none' NOT NULL,
1655
- "supported_service_types_json" text DEFAULT '[]' NOT NULL,
1656
- "supported_regions_json" text DEFAULT '[]' NOT NULL,
1657
- "runtime_requirements_json" text DEFAULT '{}' NOT NULL,
1658
- "data_handling_summary" text,
1659
- "buyer_visible_risk_summary" text,
1660
- "governance_requirements_json" text DEFAULT '{}' NOT NULL,
1661
- "support_policy" text,
1662
- "availability_summary" text,
1663
- "ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
1664
- "metadata_json" text DEFAULT '{}' NOT NULL,
1665
- "created_at" text NOT NULL,
1666
- "updated_at" text NOT NULL
1667
- );
1668
-
1669
- CREATE TABLE "commerce_webhook_events" (
1670
- "id" text PRIMARY KEY NOT NULL,
1671
- "provider" text DEFAULT 'stripe' NOT NULL,
1672
- "environment" text DEFAULT 'test' NOT NULL,
1673
- "event_id" text NOT NULL,
1674
- "event_type" text NOT NULL,
1675
- "connected_account_id" text,
1676
- "status" text DEFAULT 'received' NOT NULL,
1677
- "object_type" text,
1678
- "object_id" text,
1679
- "related_order_id" text,
1680
- "related_subscription_id" text,
1681
- "payload_hash" text NOT NULL,
1682
- "processing_error" text,
1683
- "received_at" text NOT NULL,
1684
- "processed_at" text,
1685
- "created_at" text NOT NULL,
1686
- "updated_at" text NOT NULL
1687
- );
1688
-
1689
- CREATE TABLE "project_summary_snapshots" (
1690
- "project_id" text PRIMARY KEY NOT NULL,
1691
- "team_id" text NOT NULL,
1692
- "summary_json" text NOT NULL,
1693
- "generated_at" text NOT NULL,
1694
- "created_at" text NOT NULL,
1695
- "updated_at" text NOT NULL
1696
- );
1697
-
1698
- CREATE TABLE "team_inbox_items" (
1699
- "id" text PRIMARY KEY NOT NULL,
1700
- "team_id" text NOT NULL,
1701
- "project_id" text,
1702
- "kind" text NOT NULL,
1703
- "state" text NOT NULL,
1704
- "title" text NOT NULL,
1705
- "summary" text,
1706
- "href" text,
1707
- "item_key" text,
1708
- "metadata_json" text DEFAULT '{}' NOT NULL,
1709
- "created_at" text NOT NULL,
1710
- "updated_at" text NOT NULL
1711
- );
1712
-
1713
- CREATE TABLE "catalog_artifact_versions" (
1714
- "id" text PRIMARY KEY NOT NULL,
1715
- "item_id" text NOT NULL,
1716
- "team_id" text NOT NULL,
1717
- "kind" text NOT NULL,
1718
- "version" text NOT NULL,
1719
- "content_key" text NOT NULL,
1720
- "manifest_key" text,
1721
- "metadata_json" text,
1722
- "published_at" text NOT NULL,
1723
- "created_at" text NOT NULL,
1724
- "updated_at" text NOT NULL
1725
- );
1726
-
1727
- CREATE TABLE "catalog_item_collaborators" (
1728
- "id" text PRIMARY KEY NOT NULL,
1729
- "item_id" text NOT NULL,
1730
- "subject_type" text NOT NULL,
1731
- "subject_id" text NOT NULL,
1732
- "role" text NOT NULL,
1733
- "metadata_json" text,
1734
- "created_at" text NOT NULL,
1735
- "updated_at" text NOT NULL
1736
- );
1737
-
1738
- CREATE TABLE "catalog_items" (
1739
- "id" text PRIMARY KEY NOT NULL,
1740
- "team_id" text NOT NULL,
1741
- "kind" text NOT NULL,
1742
- "slug" text NOT NULL,
1743
- "title" text NOT NULL,
1744
- "summary" text,
1745
- "visibility" text NOT NULL,
1746
- "listing_enabled" integer DEFAULT 0 NOT NULL,
1747
- "offer_mode" text NOT NULL,
1748
- "manifest_key" text,
1749
- "artifact_key" text,
1750
- "search_text" text,
1751
- "metadata_json" text,
1752
- "created_at" text NOT NULL,
1753
- "updated_at" text NOT NULL
1754
- );
1755
-
1756
- CREATE TABLE "commerce_contributions" (
1757
- "id" text PRIMARY KEY NOT NULL,
1758
- "product_id" text NOT NULL,
1759
- "product_version_id" text,
1760
- "contributor_type" text NOT NULL,
1761
- "contributor_id" text,
1762
- "display_name" text,
1763
- "role" text NOT NULL,
1764
- "summary" text,
1765
- "attribution_visibility" text DEFAULT 'public' NOT NULL,
1766
- "agreement_ref" text,
1767
- "benefit_weight" real,
1768
- "effective_at" text NOT NULL,
1769
- "metadata_json" text DEFAULT '{}' NOT NULL,
1770
- "created_at" text NOT NULL,
1771
- "updated_at" text NOT NULL
1772
- );
1773
-
1774
- CREATE TABLE "commerce_governance_policies" (
1775
- "id" text PRIMARY KEY NOT NULL,
1776
- "product_id" text,
1777
- "team_id" text,
1778
- "policy_kind" text NOT NULL,
1779
- "title" text NOT NULL,
1780
- "approval_rules_json" text DEFAULT '{}' NOT NULL,
1781
- "quorum_rules_json" text DEFAULT '{}' NOT NULL,
1782
- "buyer_visible_summary" text,
1783
- "status" text DEFAULT 'draft' NOT NULL,
1784
- "created_at" text NOT NULL,
1785
- "updated_at" text NOT NULL
1786
- );
1787
-
1788
- CREATE TABLE "commerce_ownership_records" (
1789
- "id" text PRIMARY KEY NOT NULL,
1790
- "product_id" text NOT NULL,
1791
- "model" text NOT NULL,
1792
- "canonical_owner_type" text NOT NULL,
1793
- "canonical_owner_id" text,
1794
- "seller_team_id" text NOT NULL,
1795
- "steward_team_id" text,
1796
- "governance_policy_id" text,
1797
- "public_summary" text,
1798
- "buyer_visible" integer DEFAULT 1 NOT NULL,
1799
- "effective_at" text NOT NULL,
1800
- "superseded_at" text,
1801
- "metadata_json" text DEFAULT '{}' NOT NULL,
1802
- "created_at" text NOT NULL,
1803
- "updated_at" text NOT NULL
1804
- );
1805
-
1806
- CREATE TABLE "commerce_ownership_transfers" (
1807
- "id" text PRIMARY KEY NOT NULL,
1808
- "product_id" text NOT NULL,
1809
- "from_ownership_record_id" text NOT NULL,
1810
- "to_ownership_record_id" text NOT NULL,
1811
- "status" text DEFAULT 'draft' NOT NULL,
1812
- "reason" text NOT NULL,
1813
- "approval_evidence_json" text DEFAULT '{}' NOT NULL,
1814
- "buyer_visible_impact" text,
1815
- "effective_at" text NOT NULL,
1816
- "requested_by_type" text DEFAULT 'user' NOT NULL,
1817
- "requested_by_id" text DEFAULT 'system' NOT NULL,
1818
- "approved_by_type" text,
1819
- "approved_by_id" text,
1820
- "approved_at" text,
1821
- "rejected_at" text,
1822
- "superseded_at" text,
1823
- "metadata_json" text DEFAULT '{}' NOT NULL,
1824
- "created_at" text NOT NULL
1825
- );
1826
-
1827
- CREATE TABLE "commerce_products" (
1828
- "id" text PRIMARY KEY NOT NULL,
1829
- "vendor_id" text NOT NULL,
1830
- "seller_team_id" text NOT NULL,
1831
- "kind" text NOT NULL,
1832
- "slug" text NOT NULL,
1833
- "title" text NOT NULL,
1834
- "summary" text,
1835
- "description" text,
1836
- "status" text DEFAULT 'draft' NOT NULL,
1837
- "visibility" text DEFAULT 'private' NOT NULL,
1838
- "catalog_item_id" text,
1839
- "current_version_id" text,
1840
- "ownership_model" text DEFAULT 'team_owned' NOT NULL,
1841
- "ownership_record_id" text,
1842
- "support_policy" text,
1843
- "license" text,
1844
- "metadata_json" text DEFAULT '{}' NOT NULL,
1845
- "created_at" text NOT NULL,
1846
- "updated_at" text NOT NULL
1847
- );
1848
-
1849
- CREATE TABLE "commerce_stewardship_assignments" (
1850
- "id" text PRIMARY KEY NOT NULL,
1851
- "ownership_record_id" text NOT NULL,
1852
- "product_id" text NOT NULL,
1853
- "role" text NOT NULL,
1854
- "assignee_type" text NOT NULL,
1855
- "assignee_id" text,
1856
- "display_name" text,
1857
- "responsibilities_json" text DEFAULT '[]' NOT NULL,
1858
- "visible_to_buyers" integer DEFAULT 1 NOT NULL,
1859
- "starts_at" text NOT NULL,
1860
- "ends_at" text,
1861
- "metadata_json" text DEFAULT '{}' NOT NULL,
1862
- "created_at" text NOT NULL,
1863
- "updated_at" text NOT NULL
1864
- );
1865
-
1866
- CREATE TABLE "commerce_succession_events" (
1867
- "id" text PRIMARY KEY NOT NULL,
1868
- "product_id" text NOT NULL,
1869
- "ownership_record_id" text,
1870
- "stewardship_assignment_id" text,
1871
- "successor_type" text NOT NULL,
1872
- "successor_id" text NOT NULL,
1873
- "event_type" text NOT NULL,
1874
- "status" text DEFAULT 'submitted' NOT NULL,
1875
- "reason" text,
1876
- "evidence_json" text DEFAULT '{}' NOT NULL,
1877
- "effective_at" text,
1878
- "created_by_type" text NOT NULL,
1879
- "created_by_id" text NOT NULL,
1880
- "metadata_json" text DEFAULT '{}' NOT NULL,
1881
- "created_at" text NOT NULL
1882
- );
1883
-
1884
- CREATE TABLE "commerce_vendor_stripe_accounts" (
1885
- "id" text PRIMARY KEY NOT NULL,
1886
- "vendor_id" text NOT NULL,
1887
- "team_id" text NOT NULL,
1888
- "environment" text DEFAULT 'test' NOT NULL,
1889
- "stripe_account_id" text NOT NULL,
1890
- "account_status" text DEFAULT 'pending' NOT NULL,
1891
- "onboarding_status" text DEFAULT 'not_started' NOT NULL,
1892
- "charges_enabled" integer DEFAULT 0 NOT NULL,
1893
- "payouts_enabled" integer DEFAULT 0 NOT NULL,
1894
- "details_submitted" integer DEFAULT 0 NOT NULL,
1895
- "requirements_currently_due_json" text DEFAULT '[]' NOT NULL,
1896
- "requirements_eventually_due_json" text DEFAULT '[]' NOT NULL,
1897
- "requirements_past_due_json" text DEFAULT '[]' NOT NULL,
1898
- "requirements_disabled_reason" text,
1899
- "capabilities_json" text DEFAULT '{}' NOT NULL,
1900
- "onboarding_started_at" text,
1901
- "onboarding_completed_at" text,
1902
- "last_synced_at" text,
1903
- "metadata_json" text DEFAULT '{}' NOT NULL,
1904
- "created_at" text NOT NULL,
1905
- "updated_at" text NOT NULL
1906
- );
1907
-
1908
- CREATE TABLE "commerce_vendors" (
1909
- "id" text PRIMARY KEY NOT NULL,
1910
- "team_id" text NOT NULL,
1911
- "display_name" text NOT NULL,
1912
- "slug" text NOT NULL,
1913
- "status" text DEFAULT 'submitted' NOT NULL,
1914
- "trust_level" text DEFAULT 'public_publisher' NOT NULL,
1915
- "professional_entitlement_id" text,
1916
- "stripe_account_id" text,
1917
- "sales_enabled" integer DEFAULT 0 NOT NULL,
1918
- "service_sales_enabled" integer DEFAULT 0 NOT NULL,
1919
- "capacity_listings_enabled" integer DEFAULT 0 NOT NULL,
1920
- "metadata_json" text DEFAULT '{}' NOT NULL,
1921
- "created_at" text NOT NULL,
1922
- "updated_at" text NOT NULL
1923
- );
1924
-
1925
- CREATE TABLE "commerce_cart_items" (
1926
- "id" text PRIMARY KEY NOT NULL,
1927
- "cart_id" text NOT NULL,
1928
- "vendor_id" text NOT NULL,
1929
- "seller_team_id" text NOT NULL,
1930
- "product_id" text NOT NULL,
1931
- "product_version_id" text,
1932
- "offer_id" text NOT NULL,
1933
- "price_id" text,
1934
- "quantity" integer DEFAULT 1 NOT NULL,
1935
- "unit_amount" integer DEFAULT 0 NOT NULL,
1936
- "currency" text NOT NULL,
1937
- "mode" text NOT NULL,
1938
- "status" text DEFAULT 'active' NOT NULL,
1939
- "metadata_json" text DEFAULT '{}' NOT NULL,
1940
- "created_at" text NOT NULL,
1941
- "updated_at" text NOT NULL
1942
- );
1943
-
1944
- CREATE TABLE "commerce_carts" (
1945
- "id" text PRIMARY KEY NOT NULL,
1946
- "buyer_team_id" text,
1947
- "buyer_user_id" text,
1948
- "status" text DEFAULT 'active' NOT NULL,
1949
- "currency" text,
1950
- "metadata_json" text DEFAULT '{}' NOT NULL,
1951
- "created_at" text NOT NULL,
1952
- "updated_at" text NOT NULL
1953
- );
1954
-
1955
- CREATE TABLE "commerce_checkouts" (
1956
- "id" text PRIMARY KEY NOT NULL,
1957
- "cart_id" text NOT NULL,
1958
- "buyer_team_id" text,
1959
- "buyer_user_id" text,
1960
- "status" text DEFAULT 'draft' NOT NULL,
1961
- "checkout_mode" text DEFAULT 'stripe_elements_grouped_vendor' NOT NULL,
1962
- "group_count" integer DEFAULT 0 NOT NULL,
1963
- "completed_group_count" integer DEFAULT 0 NOT NULL,
1964
- "metadata_json" text DEFAULT '{}' NOT NULL,
1965
- "created_at" text NOT NULL,
1966
- "updated_at" text NOT NULL
1967
- );
1968
-
1969
- CREATE TABLE "commerce_governance_events" (
1970
- "id" text PRIMARY KEY NOT NULL,
1971
- "actor_type" text NOT NULL,
1972
- "actor_id" text,
1973
- "action" text NOT NULL,
1974
- "object_type" text NOT NULL,
1975
- "object_id" text NOT NULL,
1976
- "prior_state" text,
1977
- "next_state" text,
1978
- "reason" text,
1979
- "evidence_json" text DEFAULT '{}' NOT NULL,
1980
- "related_order_id" text,
1981
- "related_offer_id" text,
1982
- "related_product_id" text,
1983
- "related_team_id" text,
1984
- "created_at" text NOT NULL
1985
- );
1986
-
1987
- CREATE TABLE "commerce_offers" (
1988
- "id" text PRIMARY KEY NOT NULL,
1989
- "product_id" text NOT NULL,
1990
- "product_version_id" text,
1991
- "vendor_id" text NOT NULL,
1992
- "seller_team_id" text NOT NULL,
1993
- "mode" text NOT NULL,
1994
- "status" text DEFAULT 'draft' NOT NULL,
1995
- "title" text NOT NULL,
1996
- "terms_summary" text,
1997
- "access_scope_json" text DEFAULT '{}' NOT NULL,
1998
- "support_scope_json" text DEFAULT '{}' NOT NULL,
1999
- "fulfillment_mode" text DEFAULT 'automatic' NOT NULL,
2000
- "active_price_id" text,
2001
- "stripe_product_id" text,
2002
- "stripe_product_status" text DEFAULT 'not_synced' NOT NULL,
2003
- "stripe_product_synced_at" text,
2004
- "stripe_product_sync_error" text,
2005
- "stripe_product_metadata_json" text DEFAULT '{}' NOT NULL,
2006
- "starts_at" text,
2007
- "ends_at" text,
2008
- "metadata_json" text DEFAULT '{}' NOT NULL,
2009
- "created_at" text NOT NULL,
2010
- "updated_at" text NOT NULL
2011
- );
2012
-
2013
- CREATE TABLE "commerce_order_items" (
2014
- "id" text PRIMARY KEY NOT NULL,
2015
- "order_id" text NOT NULL,
2016
- "vendor_id" text NOT NULL,
2017
- "seller_team_id" text NOT NULL,
2018
- "product_id" text NOT NULL,
2019
- "product_version_id" text,
2020
- "offer_id" text NOT NULL,
2021
- "price_id" text,
2022
- "mode" text NOT NULL,
2023
- "quantity" integer DEFAULT 1 NOT NULL,
2024
- "unit_amount" integer DEFAULT 0 NOT NULL,
2025
- "total_amount" integer DEFAULT 0 NOT NULL,
2026
- "refunded_amount" integer DEFAULT 0 NOT NULL,
2027
- "refund_status" text DEFAULT 'none' NOT NULL,
2028
- "currency" text NOT NULL,
2029
- "status" text DEFAULT 'pending' NOT NULL,
2030
- "entitlement_id" text,
2031
- "ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
2032
- "access_scope_json" text DEFAULT '{}' NOT NULL,
2033
- "support_scope_json" text DEFAULT '{}' NOT NULL,
2034
- "metadata_json" text DEFAULT '{}' NOT NULL,
2035
- "created_at" text NOT NULL,
2036
- "updated_at" text NOT NULL
2037
- );
2038
-
2039
- CREATE TABLE "commerce_orders" (
2040
- "id" text PRIMARY KEY NOT NULL,
2041
- "checkout_id" text,
2042
- "cart_id" text,
2043
- "buyer_team_id" text,
2044
- "buyer_user_id" text,
2045
- "vendor_id" text,
2046
- "seller_team_id" text,
2047
- "status" text DEFAULT 'draft' NOT NULL,
2048
- "currency" text NOT NULL,
2049
- "subtotal_amount" integer DEFAULT 0 NOT NULL,
2050
- "total_amount" integer DEFAULT 0 NOT NULL,
2051
- "refunded_amount" integer DEFAULT 0 NOT NULL,
2052
- "refund_status" text DEFAULT 'none' NOT NULL,
2053
- "stripe_checkout_session_id" text,
2054
- "stripe_payment_intent_id" text,
2055
- "stripe_subscription_id" text,
2056
- "stripe_customer_id" text,
2057
- "stripe_connected_account_id" text,
2058
- "ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
2059
- "metadata_json" text DEFAULT '{}' NOT NULL,
2060
- "created_at" text NOT NULL,
2061
- "updated_at" text NOT NULL
2062
- );
2063
-
2064
- CREATE TABLE "commerce_payment_groups" (
2065
- "id" text PRIMARY KEY NOT NULL,
2066
- "checkout_id" text NOT NULL,
2067
- "order_id" text NOT NULL,
2068
- "vendor_id" text NOT NULL,
2069
- "seller_team_id" text NOT NULL,
2070
- "connected_account_id" text,
2071
- "group_kind" text NOT NULL,
2072
- "billing_interval" text,
2073
- "status" text DEFAULT 'pending' NOT NULL,
2074
- "currency" text NOT NULL,
2075
- "subtotal_amount" integer DEFAULT 0 NOT NULL,
2076
- "total_amount" integer DEFAULT 0 NOT NULL,
2077
- "stripe_payment_intent_id" text,
2078
- "stripe_subscription_id" text,
2079
- "stripe_customer_id" text,
2080
- "client_secret_last4" text,
2081
- "metadata_json" text DEFAULT '{}' NOT NULL,
2082
- "created_at" text NOT NULL,
2083
- "updated_at" text NOT NULL
2084
- );
2085
-
2086
- CREATE TABLE "commerce_prices" (
2087
- "id" text PRIMARY KEY NOT NULL,
2088
- "offer_id" text NOT NULL,
2089
- "amount" integer NOT NULL,
2090
- "currency" text NOT NULL,
2091
- "billing_interval" text NOT NULL,
2092
- "status" text DEFAULT 'draft' NOT NULL,
2093
- "stripe_product_id" text,
2094
- "stripe_price_id" text,
2095
- "stripe_lookup_key" text,
2096
- "stripe_sync_status" text DEFAULT 'not_synced' NOT NULL,
2097
- "stripe_synced_at" text,
2098
- "stripe_sync_error" text,
2099
- "stripe_metadata_json" text DEFAULT '{}' NOT NULL,
2100
- "price_version" integer DEFAULT 1 NOT NULL,
2101
- "tax_behavior" text DEFAULT 'unspecified' NOT NULL,
2102
- "metadata_json" text DEFAULT '{}' NOT NULL,
2103
- "created_at" text NOT NULL,
2104
- "updated_at" text NOT NULL
2105
- );
2106
-
2107
- CREATE TABLE "commerce_product_versions" (
2108
- "id" text PRIMARY KEY NOT NULL,
2109
- "product_id" text NOT NULL,
2110
- "version" text NOT NULL,
2111
- "status" text DEFAULT 'draft' NOT NULL,
2112
- "catalog_artifact_version_id" text,
2113
- "manifest_key" text,
2114
- "artifact_key" text,
2115
- "integrity" text,
2116
- "release_notes" text,
2117
- "compatibility_json" text DEFAULT '{}' NOT NULL,
2118
- "metadata_json" text DEFAULT '{}' NOT NULL,
2119
- "published_at" text,
2120
- "created_at" text NOT NULL,
2121
- "updated_at" text NOT NULL
2122
- );
2123
-
2124
- CREATE TABLE "commerce_buyer_stripe_customers" (
2125
- "id" text PRIMARY KEY NOT NULL,
2126
- "buyer_team_id" text,
2127
- "buyer_user_id" text,
2128
- "vendor_id" text NOT NULL,
2129
- "connected_account_id" text NOT NULL,
2130
- "environment" text DEFAULT 'test' NOT NULL,
2131
- "stripe_customer_id" text NOT NULL,
2132
- "metadata_json" text DEFAULT '{}' NOT NULL,
2133
- "created_at" text NOT NULL,
2134
- "updated_at" text NOT NULL
2135
- );
2136
-
2137
- CREATE TABLE "commerce_entitlements" (
2138
- "id" text PRIMARY KEY NOT NULL,
2139
- "buyer_team_id" text,
2140
- "buyer_user_id" text,
2141
- "seller_team_id" text NOT NULL,
2142
- "product_id" text NOT NULL,
2143
- "product_version_id" text,
2144
- "offer_id" text NOT NULL,
2145
- "order_id" text,
2146
- "order_item_id" text,
2147
- "subscription_id" text,
2148
- "status" text DEFAULT 'pending' NOT NULL,
2149
- "access_scope_json" text DEFAULT '{}' NOT NULL,
2150
- "starts_at" text,
2151
- "ends_at" text,
2152
- "renewal_state" text DEFAULT 'none' NOT NULL,
2153
- "fulfillment_artifact_refs_json" text DEFAULT '[]' NOT NULL,
2154
- "project_id" text,
2155
- "catalog_item_id" text,
2156
- "ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
2157
- "metadata_json" text DEFAULT '{}' NOT NULL,
2158
- "created_at" text NOT NULL,
2159
- "updated_at" text NOT NULL
2160
- );
2161
-
2162
- CREATE TABLE "commerce_fulfillment_events" (
2163
- "id" text PRIMARY KEY NOT NULL,
2164
- "order_id" text NOT NULL,
2165
- "order_item_id" text,
2166
- "entitlement_id" text,
2167
- "vendor_id" text NOT NULL,
2168
- "seller_team_id" text NOT NULL,
2169
- "product_id" text NOT NULL,
2170
- "product_version_id" text,
2171
- "catalog_item_id" text,
2172
- "catalog_artifact_version_id" text,
2173
- "event_type" text NOT NULL,
2174
- "status" text DEFAULT 'pending' NOT NULL,
2175
- "artifact_refs_json" text DEFAULT '[]' NOT NULL,
2176
- "delivery_refs_json" text DEFAULT '[]' NOT NULL,
2177
- "message" text,
2178
- "actor_type" text NOT NULL,
2179
- "actor_id" text NOT NULL,
2180
- "metadata_json" text DEFAULT '{}' NOT NULL,
2181
- "created_at" text NOT NULL
2182
- );
2183
-
2184
- CREATE TABLE "commerce_refunds" (
2185
- "id" text PRIMARY KEY NOT NULL,
2186
- "order_id" text NOT NULL,
2187
- "order_item_id" text,
2188
- "payment_group_id" text,
2189
- "vendor_id" text NOT NULL,
2190
- "seller_team_id" text NOT NULL,
2191
- "buyer_team_id" text,
2192
- "buyer_user_id" text,
2193
- "amount" integer NOT NULL,
2194
- "currency" text NOT NULL,
2195
- "status" text DEFAULT 'processing' NOT NULL,
2196
- "reason" text,
2197
- "stripe_refund_id" text,
2198
- "stripe_payment_intent_id" text,
2199
- "stripe_connected_account_id" text,
2200
- "idempotency_key" text NOT NULL,
2201
- "requested_by_type" text NOT NULL,
2202
- "requested_by_id" text NOT NULL,
2203
- "failure_reason" text,
2204
- "metadata_json" text DEFAULT '{}' NOT NULL,
2205
- "created_at" text NOT NULL,
2206
- "updated_at" text NOT NULL
2207
- );
2208
-
2209
- CREATE TABLE "commerce_service_contracts" (
2210
- "id" text PRIMARY KEY NOT NULL,
2211
- "request_id" text NOT NULL,
2212
- "quote_id" text NOT NULL,
2213
- "vendor_id" text NOT NULL,
2214
- "seller_team_id" text NOT NULL,
2215
- "buyer_team_id" text,
2216
- "buyer_user_id" text,
2217
- "product_id" text NOT NULL,
2218
- "offer_id" text NOT NULL,
2219
- "status" text DEFAULT 'pending_checkout' NOT NULL,
2220
- "amount" integer NOT NULL,
2221
- "currency" text NOT NULL,
2222
- "order_id" text,
2223
- "order_item_id" text,
2224
- "payment_group_id" text,
2225
- "entitlement_id" text,
2226
- "related_project_id" text,
2227
- "related_workday_id" text,
2228
- "ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
2229
- "access_approval_snapshot_json" text DEFAULT '{}' NOT NULL,
2230
- "fulfillment_summary" text,
2231
- "metadata_json" text DEFAULT '{}' NOT NULL,
2232
- "created_at" text NOT NULL,
2233
- "updated_at" text NOT NULL
2234
- );
2235
-
2236
- CREATE TABLE "commerce_service_events" (
2237
- "id" text PRIMARY KEY NOT NULL,
2238
- "request_id" text NOT NULL,
2239
- "quote_id" text,
2240
- "contract_id" text,
2241
- "event_type" text NOT NULL,
2242
- "actor_type" text NOT NULL,
2243
- "actor_id" text,
2244
- "prior_state" text,
2245
- "next_state" text,
2246
- "message" text,
2247
- "evidence_json" text DEFAULT '{}' NOT NULL,
2248
- "created_at" text NOT NULL
2249
- );
2250
-
2251
- CREATE TABLE "commerce_service_quotes" (
2252
- "id" text PRIMARY KEY NOT NULL,
2253
- "request_id" text NOT NULL,
2254
- "vendor_id" text NOT NULL,
2255
- "seller_team_id" text NOT NULL,
2256
- "buyer_team_id" text,
2257
- "buyer_user_id" text,
2258
- "quote_version" integer DEFAULT 1 NOT NULL,
2259
- "status" text DEFAULT 'draft' NOT NULL,
2260
- "title" text NOT NULL,
2261
- "scope_summary" text NOT NULL,
2262
- "deliverables_json" text DEFAULT '[]' NOT NULL,
2263
- "assumptions_json" text DEFAULT '[]' NOT NULL,
2264
- "access_requirements_json" text DEFAULT '{}' NOT NULL,
2265
- "governance_requirements_json" text DEFAULT '{}' NOT NULL,
2266
- "amount" integer NOT NULL,
2267
- "currency" text NOT NULL,
2268
- "expires_at" text,
2269
- "buyer_approved_at" text,
2270
- "vendor_approved_at" text,
2271
- "accepted_at" text,
2272
- "rejected_at" text,
2273
- "metadata_json" text DEFAULT '{}' NOT NULL,
2274
- "created_at" text NOT NULL,
2275
- "updated_at" text NOT NULL
2276
- );
2277
-
2278
- CREATE TABLE "commerce_service_requests" (
2279
- "id" text PRIMARY KEY NOT NULL,
2280
- "buyer_team_id" text,
2281
- "buyer_user_id" text,
2282
- "vendor_id" text NOT NULL,
2283
- "seller_team_id" text NOT NULL,
2284
- "product_id" text NOT NULL,
2285
- "offer_id" text NOT NULL,
2286
- "status" text DEFAULT 'requested' NOT NULL,
2287
- "requested_scope" text NOT NULL,
2288
- "approved_scope" text,
2289
- "access_needs_json" text DEFAULT '{}' NOT NULL,
2290
- "buyer_visible_summary" text,
2291
- "vendor_private_notes" text,
2292
- "active_quote_id" text,
2293
- "approved_quote_id" text,
2294
- "contract_id" text,
2295
- "related_project_id" text,
2296
- "related_workday_id" text,
2297
- "order_id" text,
2298
- "entitlement_id" text,
2299
- "ownership_snapshot_json" text DEFAULT '{}' NOT NULL,
2300
- "metadata_json" text DEFAULT '{}' NOT NULL,
2301
- "created_at" text NOT NULL,
2302
- "updated_at" text NOT NULL
2303
- );
2304
-
2305
- CREATE TABLE "commerce_subscriptions" (
2306
- "id" text PRIMARY KEY NOT NULL,
2307
- "order_id" text NOT NULL,
2308
- "vendor_id" text NOT NULL,
2309
- "seller_team_id" text NOT NULL,
2310
- "buyer_team_id" text,
2311
- "buyer_user_id" text,
2312
- "offer_id" text NOT NULL,
2313
- "price_id" text NOT NULL,
2314
- "status" text NOT NULL,
2315
- "renewal_state" text DEFAULT 'active' NOT NULL,
2316
- "stripe_subscription_id" text NOT NULL,
2317
- "stripe_customer_id" text,
2318
- "stripe_connected_account_id" text NOT NULL,
2319
- "current_period_start" text,
2320
- "current_period_end" text,
2321
- "cancel_at_period_end" integer DEFAULT 0 NOT NULL,
2322
- "canceled_at" text,
2323
- "metadata_json" text DEFAULT '{}' NOT NULL,
2324
- "created_at" text NOT NULL,
2325
- "updated_at" text NOT NULL
2326
- );
2327
-
2328
- CREATE TABLE "commons_decisions" (
2329
- "id" text PRIMARY KEY NOT NULL,
2330
- "proposal_id" text NOT NULL,
2331
- "status" text DEFAULT 'proposed' NOT NULL,
2332
- "decision_record_id" text,
2333
- "decision_record_slug" text,
2334
- "title" text NOT NULL,
2335
- "summary" text NOT NULL,
2336
- "steward_reason" text,
2337
- "capacity_budget" text,
2338
- "scheduled_for" text,
2339
- "implemented_at" text,
2340
- "metadata_json" text DEFAULT '{}' NOT NULL,
2341
- "created_at" text NOT NULL,
2342
- "updated_at" text NOT NULL
2343
- );
2344
-
2345
- CREATE TABLE "commons_delegations" (
2346
- "id" text PRIMARY KEY NOT NULL,
2347
- "from_participant_id" text NOT NULL,
2348
- "to_participant_id" text NOT NULL,
2349
- "scope" text DEFAULT 'treeseed_commons' NOT NULL,
2350
- "status" text DEFAULT 'active' NOT NULL,
2351
- "weight_limit" real,
2352
- "reason" text,
2353
- "created_at" text NOT NULL,
2354
- "revoked_at" text
2355
- );
2356
-
2357
- CREATE TABLE "commons_governance_events" (
2358
- "id" text PRIMARY KEY NOT NULL,
2359
- "event_type" text NOT NULL,
2360
- "actor_type" text DEFAULT 'system' NOT NULL,
2361
- "actor_id" text,
2362
- "participant_id" text,
2363
- "proposal_id" text,
2364
- "question_id" text,
2365
- "decision_id" text,
2366
- "prior_state" text,
2367
- "next_state" text,
2368
- "message" text,
2369
- "evidence_json" text DEFAULT '{}' NOT NULL,
2370
- "created_at" text NOT NULL
2371
- );
2372
-
2373
- CREATE TABLE "commons_participants" (
2374
- "id" text PRIMARY KEY NOT NULL,
2375
- "user_id" text NOT NULL,
2376
- "team_id" text NOT NULL,
2377
- "status" text DEFAULT 'active' NOT NULL,
2378
- "display_name" text,
2379
- "verified_email" integer DEFAULT 0 NOT NULL,
2380
- "base_weight" real DEFAULT 1 NOT NULL,
2381
- "trust_weight" real DEFAULT 0 NOT NULL,
2382
- "contribution_weight" real DEFAULT 0 NOT NULL,
2383
- "stakeholder_weight" real DEFAULT 0 NOT NULL,
2384
- "delegated_weight" real DEFAULT 0 NOT NULL,
2385
- "total_weight" real DEFAULT 1 NOT NULL,
2386
- "metadata_json" text DEFAULT '{}' NOT NULL,
2387
- "created_at" text NOT NULL,
2388
- "updated_at" text NOT NULL
2389
- );
2390
-
2391
- CREATE TABLE "commons_proposal_backings" (
2392
- "id" text PRIMARY KEY NOT NULL,
2393
- "proposal_id" text NOT NULL,
2394
- "participant_id" text NOT NULL,
2395
- "user_id" text NOT NULL,
2396
- "weight_snapshot_id" text NOT NULL,
2397
- "weight" real NOT NULL,
2398
- "reason" text,
2399
- "created_at" text NOT NULL
2400
- );
2401
-
2402
- CREATE TABLE "commons_proposal_votes" (
2403
- "id" text PRIMARY KEY NOT NULL,
2404
- "proposal_id" text NOT NULL,
2405
- "participant_id" text NOT NULL,
2406
- "user_id" text NOT NULL,
2407
- "vote" text NOT NULL,
2408
- "weight_snapshot_id" text NOT NULL,
2409
- "weight" real NOT NULL,
2410
- "reason" text,
2411
- "created_at" text NOT NULL,
2412
- "updated_at" text NOT NULL
2413
- );
2414
-
2415
- CREATE TABLE "commons_proposals" (
2416
- "id" text PRIMARY KEY NOT NULL,
2417
- "participant_id" text NOT NULL,
2418
- "user_id" text NOT NULL,
2419
- "team_id" text NOT NULL,
2420
- "status" text DEFAULT 'draft' NOT NULL,
2421
- "title" text NOT NULL,
2422
- "summary" text NOT NULL,
2423
- "body" text NOT NULL,
2424
- "scope" text DEFAULT 'treeseed_commons' NOT NULL,
2425
- "decision_type" text DEFAULT 'advisory' NOT NULL,
2426
- "content_proposal_slug" text,
2427
- "content_decision_slug" text,
2428
- "backing_count" integer DEFAULT 0 NOT NULL,
2429
- "vote_support_weight" real DEFAULT 0 NOT NULL,
2430
- "vote_object_weight" real DEFAULT 0 NOT NULL,
2431
- "vote_abstain_weight" real DEFAULT 0 NOT NULL,
2432
- "qualified_at" text,
2433
- "voting_starts_at" text,
2434
- "voting_ends_at" text,
2435
- "steward_decision_at" text,
2436
- "steward_decision_by" text,
2437
- "metadata_json" text DEFAULT '{}' NOT NULL,
2438
- "created_at" text NOT NULL,
2439
- "updated_at" text NOT NULL
2440
- );
2441
-
2442
- CREATE TABLE "commons_questions" (
2443
- "id" text PRIMARY KEY NOT NULL,
2444
- "participant_id" text NOT NULL,
2445
- "user_id" text NOT NULL,
2446
- "team_id" text NOT NULL,
2447
- "status" text DEFAULT 'open' NOT NULL,
2448
- "title" text NOT NULL,
2449
- "body" text NOT NULL,
2450
- "answer" text,
2451
- "converted_proposal_id" text,
2452
- "metadata_json" text DEFAULT '{}' NOT NULL,
2453
- "created_at" text NOT NULL,
2454
- "updated_at" text NOT NULL
2455
- );
2456
-
2457
- CREATE TABLE "commons_weight_snapshots" (
2458
- "id" text PRIMARY KEY NOT NULL,
2459
- "participant_id" text NOT NULL,
2460
- "policy_version" text NOT NULL,
2461
- "base_weight" real DEFAULT 1 NOT NULL,
2462
- "verified_email_weight" real DEFAULT 0 NOT NULL,
2463
- "account_age_weight" real DEFAULT 0 NOT NULL,
2464
- "contribution_weight" real DEFAULT 0 NOT NULL,
2465
- "stakeholder_weight" real DEFAULT 0 NOT NULL,
2466
- "trust_role_weight" real DEFAULT 0 NOT NULL,
2467
- "delegated_weight" real DEFAULT 0 NOT NULL,
2468
- "total_weight" real DEFAULT 1 NOT NULL,
2469
- "evidence_json" text DEFAULT '{}' NOT NULL,
2470
- "created_at" text NOT NULL
2471
- );
2472
-
2473
- CREATE TABLE "governance_proposal_versions" (
2474
- "id" text PRIMARY KEY NOT NULL,
2475
- "proposal_id" text NOT NULL,
2476
- "version" integer NOT NULL,
2477
- "title" text NOT NULL,
2478
- "summary" text NOT NULL,
2479
- "body" text NOT NULL,
2480
- "content_hash" text NOT NULL,
2481
- "change_reason" text,
2482
- "created_by_type" text DEFAULT 'user' NOT NULL,
2483
- "created_by_id" text,
2484
- "created_at" text NOT NULL
2485
- );
2486
-
2487
- CREATE TABLE "governance_proposals" (
2488
- "id" text PRIMARY KEY NOT NULL,
2489
- "team_id" text NOT NULL,
2490
- "project_id" text,
2491
- "scope" text DEFAULT 'project' NOT NULL,
2492
- "status" text DEFAULT 'draft' NOT NULL,
2493
- "title" text NOT NULL,
2494
- "summary" text NOT NULL,
2495
- "body" text NOT NULL,
2496
- "proposal_type" text DEFAULT 'implementation' NOT NULL,
2497
- "proposal_types_json" text DEFAULT '[]' NOT NULL,
2498
- "content_proposal_slug" text,
2499
- "content_decision_slug" text,
2500
- "active_version" integer DEFAULT 1 NOT NULL,
2501
- "active_content_hash" text NOT NULL,
2502
- "governance_provider_id" text NOT NULL,
2503
- "governance_provider_version" text DEFAULT '1' NOT NULL,
2504
- "governance_policy_id" text,
2505
- "decision_id" text,
2506
- "voting_starts_at" text,
2507
- "voting_ends_at" text,
2508
- "closed_at" text,
2509
- "closed_reason" text,
2510
- "created_by_type" text DEFAULT 'user' NOT NULL,
2511
- "created_by_id" text,
2512
- "metadata_json" text DEFAULT '{}' NOT NULL,
2513
- "created_at" text NOT NULL,
2514
- "updated_at" text NOT NULL
2515
- );
2516
-
2517
- CREATE TABLE "project_governance_policies" (
2518
- "id" text PRIMARY KEY NOT NULL,
2519
- "team_id" text NOT NULL,
2520
- "project_id" text NOT NULL,
2521
- "provider_id" text NOT NULL,
2522
- "provider_version" text DEFAULT '1' NOT NULL,
2523
- "config_json" text DEFAULT '{}' NOT NULL,
2524
- "active" integer DEFAULT 1 NOT NULL,
2525
- "created_by" text,
2526
- "created_at" text NOT NULL,
2527
- "updated_at" text NOT NULL,
2528
- "superseded_at" text
2529
- );
2530
-
2531
- CREATE TABLE "team_governance_policies" (
2532
- "id" text PRIMARY KEY NOT NULL,
2533
- "team_id" text NOT NULL,
2534
- "scope" text DEFAULT 'team' NOT NULL,
2535
- "provider_id" text NOT NULL,
2536
- "provider_version" text DEFAULT '1' NOT NULL,
2537
- "config_json" text DEFAULT '{}' NOT NULL,
2538
- "active" integer DEFAULT 1 NOT NULL,
2539
- "created_by" text,
2540
- "created_at" text NOT NULL,
2541
- "updated_at" text NOT NULL,
2542
- "superseded_at" text
2543
- );
2544
-
2545
- CREATE TABLE "entitlements" (
2546
- "id" text PRIMARY KEY NOT NULL,
2547
- "team_id" text,
2548
- "project_id" text,
2549
- "tier" text NOT NULL,
2550
- "status" text NOT NULL,
2551
- "metadata_json" text,
2552
- "created_at" text NOT NULL,
2553
- "updated_at" text NOT NULL
2554
- );
2555
-
2556
- CREATE TABLE "governance_decisions" (
2557
- "id" text PRIMARY KEY NOT NULL,
2558
- "team_id" text NOT NULL,
2559
- "project_id" text,
2560
- "proposal_id" text NOT NULL,
2561
- "proposal_version" integer NOT NULL,
2562
- "proposal_content_hash" text NOT NULL,
2563
- "status" text DEFAULT 'creating' NOT NULL,
2564
- "title" text NOT NULL,
2565
- "summary" text NOT NULL,
2566
- "content_decision_slug" text,
2567
- "governance_provider_id" text NOT NULL,
2568
- "governance_rule_json" text DEFAULT '{}' NOT NULL,
2569
- "electorate_snapshot_id" text,
2570
- "vote_result_json" text DEFAULT '{}' NOT NULL,
2571
- "voter_reasons_json" text DEFAULT '[]' NOT NULL,
2572
- "proposal_snapshot_json" text DEFAULT '{}' NOT NULL,
2573
- "decision_record_json" text DEFAULT '{}' NOT NULL,
2574
- "created_by_type" text DEFAULT 'system' NOT NULL,
2575
- "created_by_id" text,
2576
- "created_at" text NOT NULL,
2577
- "updated_at" text NOT NULL,
2578
- "superseded_at" text
2579
- );
2580
-
2581
- CREATE TABLE "governance_delegations" (
2582
- "id" text PRIMARY KEY NOT NULL,
2583
- "team_id" text NOT NULL,
2584
- "scope" text DEFAULT 'team' NOT NULL,
2585
- "from_user_id" text NOT NULL,
2586
- "to_user_id" text NOT NULL,
2587
- "chambers_json" text DEFAULT '[]' NOT NULL,
2588
- "status" text DEFAULT 'active' NOT NULL,
2589
- "reason" text,
2590
- "created_at" text NOT NULL,
2591
- "revoked_at" text,
2592
- "expires_at" text,
2593
- "metadata_json" text DEFAULT '{}' NOT NULL
2594
- );
2595
-
2596
- CREATE TABLE "governance_electorate_snapshots" (
2597
- "id" text PRIMARY KEY NOT NULL,
2598
- "proposal_id" text NOT NULL,
2599
- "proposal_version" integer NOT NULL,
2600
- "provider_id" text NOT NULL,
2601
- "provider_version" text DEFAULT '1' NOT NULL,
2602
- "rule_snapshot_json" text DEFAULT '{}' NOT NULL,
2603
- "chambers_json" text DEFAULT '[]' NOT NULL,
2604
- "eligible_voters_json" text DEFAULT '[]' NOT NULL,
2605
- "delegations_json" text DEFAULT '[]' NOT NULL,
2606
- "eligible_weight_total" real DEFAULT 0 NOT NULL,
2607
- "active_weight_total" real DEFAULT 0 NOT NULL,
2608
- "created_at" text NOT NULL
2609
- );
2610
-
2611
- CREATE TABLE "governance_events" (
2612
- "id" text PRIMARY KEY NOT NULL,
2613
- "event_type" text NOT NULL,
2614
- "actor_type" text DEFAULT 'system' NOT NULL,
2615
- "actor_id" text,
2616
- "team_id" text NOT NULL,
2617
- "project_id" text,
2618
- "proposal_id" text,
2619
- "decision_id" text,
2620
- "proposal_version" integer,
2621
- "prior_state" text,
2622
- "next_state" text,
2623
- "message" text,
2624
- "evidence_json" text DEFAULT '{}' NOT NULL,
2625
- "created_at" text NOT NULL
2626
- );
2627
-
2628
- CREATE TABLE "governance_proposal_votes" (
2629
- "id" text PRIMARY KEY NOT NULL,
2630
- "proposal_id" text NOT NULL,
2631
- "proposal_version" integer NOT NULL,
2632
- "user_id" text NOT NULL,
2633
- "vote" text NOT NULL,
2634
- "reason" text,
2635
- "chamber_votes_json" text DEFAULT '{}' NOT NULL,
2636
- "effective_weights_json" text DEFAULT '{}' NOT NULL,
2637
- "delegated_from_json" text DEFAULT '[]' NOT NULL,
2638
- "created_at" text NOT NULL,
2639
- "updated_at" text NOT NULL
2640
- );
2641
-
2642
- CREATE TABLE "governance_vote_events" (
2643
- "id" text PRIMARY KEY NOT NULL,
2644
- "proposal_id" text NOT NULL,
2645
- "proposal_version" integer NOT NULL,
2646
- "user_id" text NOT NULL,
2647
- "prior_vote" text,
2648
- "next_vote" text NOT NULL,
2649
- "reason" text,
2650
- "effective_weights_json" text DEFAULT '{}' NOT NULL,
2651
- "created_at" text NOT NULL
2652
- );
2653
-
2654
- CREATE TABLE "projects" (
2655
- "id" text PRIMARY KEY NOT NULL,
2656
- "team_id" text NOT NULL,
2657
- "slug" text NOT NULL,
2658
- "name" text NOT NULL,
2659
- "description" text,
2660
- "metadata_json" text,
2661
- "created_at" text NOT NULL,
2662
- "updated_at" text NOT NULL
2663
- );
2664
-
2665
- CREATE TABLE "remote_job_events" (
2666
- "id" text PRIMARY KEY NOT NULL,
2667
- "job_id" text NOT NULL,
2668
- "seq" integer NOT NULL,
2669
- "kind" text NOT NULL,
2670
- "data_json" text,
2671
- "created_at" text NOT NULL
2672
- );
2673
-
2674
- CREATE TABLE "remote_jobs" (
2675
- "id" text PRIMARY KEY NOT NULL,
2676
- "project_id" text NOT NULL,
2677
- "namespace" text NOT NULL,
2678
- "operation" text NOT NULL,
2679
- "status" text NOT NULL,
2680
- "preferred_mode" text NOT NULL,
2681
- "selected_target" text NOT NULL,
2682
- "capability_json" text NOT NULL,
2683
- "input_json" text NOT NULL,
2684
- "output_json" text,
2685
- "error_json" text,
2686
- "requested_by_type" text NOT NULL,
2687
- "requested_by_id" text,
2688
- "assigned_runner_id" text,
2689
- "idempotency_key" text,
2690
- "created_at" text NOT NULL,
2691
- "updated_at" text NOT NULL,
2692
- "started_at" text,
2693
- "finished_at" text,
2694
- "cancelled_at" text
2695
- );
2696
-
2697
- CREATE TABLE "team_api_keys" (
2698
- "id" text PRIMARY KEY NOT NULL,
2699
- "team_id" text NOT NULL,
2700
- "name" text NOT NULL,
2701
- "key_prefix" text NOT NULL,
2702
- "key_hash" text NOT NULL,
2703
- "permissions_json" text NOT NULL,
2704
- "expires_at" text,
2705
- "last_used_at" text,
2706
- "revoked_at" text,
2707
- "created_at" text NOT NULL,
2708
- "updated_at" text NOT NULL
2709
- );
2710
-
2711
- CREATE TABLE "team_storage_locators" (
2712
- "id" text PRIMARY KEY NOT NULL,
2713
- "team_id" text NOT NULL,
2714
- "bucket_name" text NOT NULL,
2715
- "manifest_key_template" text NOT NULL,
2716
- "preview_root_template" text NOT NULL,
2717
- "public_base_url" text,
2718
- "metadata_json" text,
2719
- "created_at" text NOT NULL,
2720
- "updated_at" text NOT NULL,
2721
- CONSTRAINT "team_storage_locators_team_id_unique" UNIQUE("team_id")
2722
- );
2723
-
2724
- CREATE TABLE "auth_provider_states" (
2725
- "id" text PRIMARY KEY NOT NULL,
2726
- "provider" text NOT NULL,
2727
- "state_hash" text NOT NULL,
2728
- "code_verifier" text,
2729
- "nonce" text,
2730
- "callback_url" text NOT NULL,
2731
- "return_to" text NOT NULL,
2732
- "link_user_id" text,
2733
- "purpose" text DEFAULT 'sign-in' NOT NULL,
2734
- "action" text,
2735
- "expires_at" text NOT NULL,
2736
- "used_at" text,
2737
- "created_at" text NOT NULL,
2738
- CONSTRAINT "auth_provider_states_state_hash_unique" UNIQUE("state_hash")
2739
- );
2740
-
2741
- CREATE TABLE "auth_reauthentication_grants" (
2742
- "id" text PRIMARY KEY NOT NULL,
2743
- "user_id" text NOT NULL,
2744
- "session_id" text NOT NULL,
2745
- "action" text NOT NULL,
2746
- "expires_at" text NOT NULL,
2747
- "consumed_at" text,
2748
- "created_at" text NOT NULL
2749
- );
2750
-
2751
- CREATE TABLE "treedx_deployments" (
2752
- "id" text PRIMARY KEY NOT NULL,
2753
- "team_id" text NOT NULL,
2754
- "instance_id" text,
2755
- "provider" text NOT NULL,
2756
- "status" text DEFAULT 'queued' NOT NULL,
2757
- "image_ref" text,
2758
- "volume_mount_path" text,
2759
- "service_refs_json" text DEFAULT '{}' NOT NULL,
2760
- "result_json" text DEFAULT '{}' NOT NULL,
2761
- "error_json" text,
2762
- "created_at" text NOT NULL,
2763
- "updated_at" text NOT NULL,
2764
- "completed_at" text
2765
- );
2766
-
2767
- CREATE TABLE "treedx_mirrors" (
2768
- "id" text PRIMARY KEY NOT NULL,
2769
- "team_id" text NOT NULL,
2770
- "instance_id" text NOT NULL,
2771
- "name" text NOT NULL,
2772
- "direction" text DEFAULT 'bidirectional' NOT NULL,
2773
- "target_kind" text NOT NULL,
2774
- "target_url" text,
2775
- "status" text DEFAULT 'pending' NOT NULL,
2776
- "instructions" text,
2777
- "last_sync_at" text,
2778
- "last_sync_status" text,
2779
- "last_sync_metadata_json" text DEFAULT '{}' NOT NULL,
2780
- "metadata_json" text DEFAULT '{}' NOT NULL,
2781
- "created_at" text NOT NULL,
2782
- "updated_at" text NOT NULL
2783
- );
2784
-
2785
- CREATE TABLE "treedx_project_libraries" (
2786
- "id" text PRIMARY KEY NOT NULL,
2787
- "team_id" text NOT NULL,
2788
- "project_id" text NOT NULL,
2789
- "instance_id" text NOT NULL,
2790
- "library_id" text NOT NULL,
2791
- "repository_id" text,
2792
- "content_path" text DEFAULT 'src/content' NOT NULL,
2793
- "content_repository_url" text,
2794
- "content_repository_default_branch" text,
2795
- "content_repository_ref" text,
2796
- "r2_bucket_name" text,
2797
- "r2_manifest_key" text,
2798
- "topology_json" text DEFAULT '{}' NOT NULL,
2799
- "metadata_json" text DEFAULT '{}' NOT NULL,
2800
- "created_at" text NOT NULL,
2801
- "updated_at" text NOT NULL
2802
- );
2803
-
2804
- CREATE TABLE "treedx_shares" (
2805
- "id" text PRIMARY KEY NOT NULL,
2806
- "team_id" text NOT NULL,
2807
- "instance_id" text,
2808
- "project_id" text,
2809
- "library_id" text,
2810
- "scope" text NOT NULL,
2811
- "target_team_id" text,
2812
- "trust_grant_json" text DEFAULT '{}' NOT NULL,
2813
- "public_read" integer DEFAULT 0 NOT NULL,
2814
- "status" text DEFAULT 'active' NOT NULL,
2815
- "expires_at" text,
2816
- "metadata_json" text DEFAULT '{}' NOT NULL,
2817
- "created_at" text NOT NULL,
2818
- "updated_at" text NOT NULL,
2819
- "revoked_at" text
2820
- );
2821
-
2822
- CREATE TABLE "user_notification_global_content_types" (
2823
- "user_id" text NOT NULL,
2824
- "content_type" text NOT NULL,
2825
- CONSTRAINT "user_notification_global_content_types_user_id_content_type_pk" PRIMARY KEY("user_id","content_type")
2826
- );
2827
-
2828
- CREATE TABLE "user_notification_preferences" (
2829
- "user_id" text PRIMARY KEY NOT NULL,
2830
- "email_cadence" text DEFAULT 'daily' NOT NULL,
2831
- "created_at" text NOT NULL,
2832
- "updated_at" text NOT NULL
2833
- );
2834
-
2835
- CREATE TABLE "user_notification_project_content_types" (
2836
- "user_id" text NOT NULL,
2837
- "project_id" text NOT NULL,
2838
- "content_type" text NOT NULL,
2839
- CONSTRAINT "user_notification_project_content_types_user_id_project_id_content_type_pk" PRIMARY KEY("user_id","project_id","content_type")
2840
- );
2841
-
2842
- CREATE TABLE "user_notification_project_overrides" (
2843
- "user_id" text NOT NULL,
2844
- "project_id" text NOT NULL,
2845
- "created_at" text NOT NULL,
2846
- "updated_at" text NOT NULL,
2847
- CONSTRAINT "user_notification_project_overrides_user_id_project_id_pk" PRIMARY KEY("user_id","project_id")
2848
- );
2849
-
2850
- CREATE TABLE "user_personal_themes" (
2851
- "id" text PRIMARY KEY NOT NULL,
2852
- "user_id" text NOT NULL,
2853
- "name" text NOT NULL,
2854
- "normalized_name" text NOT NULL,
2855
- "base_scheme" text NOT NULL,
2856
- "palette_json" text NOT NULL,
2857
- "compiler_version" integer DEFAULT 1 NOT NULL,
2858
- "created_at" text NOT NULL,
2859
- "updated_at" text NOT NULL
2860
- );
2861
-
2862
- CREATE TABLE "user_preferences" (
2863
- "user_id" text PRIMARY KEY NOT NULL,
2864
- "color_scheme" text DEFAULT 'fern' NOT NULL,
2865
- "theme_mode" text DEFAULT 'system' NOT NULL,
2866
- "time_zone" text DEFAULT 'UTC' NOT NULL,
2867
- "real_time_updates" integer DEFAULT 1 NOT NULL,
2868
- "real_time_polling_interval_seconds" integer DEFAULT 5 NOT NULL,
2869
- "created_at" text NOT NULL,
2870
- "updated_at" text NOT NULL
2871
- );
2872
-
2873
- CREATE TABLE "approval_requests" (
2874
- "id" text PRIMARY KEY NOT NULL,
2875
- "team_id" text NOT NULL,
2876
- "project_id" text NOT NULL,
2877
- "work_day_id" text,
2878
- "task_id" text,
2879
- "kind" text NOT NULL,
2880
- "state" text DEFAULT 'pending' NOT NULL,
2881
- "severity" text DEFAULT 'medium' NOT NULL,
2882
- "requested_by_type" text DEFAULT 'worker' NOT NULL,
2883
- "requested_by_id" text,
2884
- "title" text NOT NULL,
2885
- "summary" text NOT NULL,
2886
- "options_json" text DEFAULT '[]' NOT NULL,
2887
- "recommendation_json" text DEFAULT '{}' NOT NULL,
2888
- "policy_snapshot_json" text DEFAULT '{}' NOT NULL,
2889
- "expires_at" text,
2890
- "decided_by_type" text,
2891
- "decided_by_id" text,
2892
- "decided_at" text,
2893
- "decision_json" text,
2894
- "metadata_json" text DEFAULT '{}' NOT NULL,
2895
- "created_at" text NOT NULL,
2896
- "updated_at" text NOT NULL
2897
- );
2898
-
2899
- CREATE TABLE "hub_content_sources" (
2900
- "id" text PRIMARY KEY NOT NULL,
2901
- "hub_id" text NOT NULL,
2902
- "team_id" text NOT NULL,
2903
- "content_repository_id" text,
2904
- "production_source" text NOT NULL,
2905
- "overlay_policy" text NOT NULL,
2906
- "r2_bucket_name" text,
2907
- "r2_manifest_key" text,
2908
- "r2_public_base_url" text,
2909
- "latest_publish_id" text,
2910
- "latest_content_version" text,
2911
- "metadata_json" text DEFAULT '{}' NOT NULL,
2912
- "created_at" text NOT NULL,
2913
- "updated_at" text NOT NULL,
2914
- CONSTRAINT "hub_content_sources_hub_id_unique" UNIQUE("hub_id")
2915
- );
2916
-
2917
- CREATE TABLE "hub_repositories" (
2918
- "id" text PRIMARY KEY NOT NULL,
2919
- "hub_id" text NOT NULL,
2920
- "team_id" text NOT NULL,
2921
- "role" text NOT NULL,
2922
- "provider" text NOT NULL,
2923
- "owner" text NOT NULL,
2924
- "name" text NOT NULL,
2925
- "url" text,
2926
- "default_branch" text,
2927
- "current_branch" text,
2928
- "status" text DEFAULT 'queued' NOT NULL,
2929
- "access_policy_json" text DEFAULT '{}' NOT NULL,
2930
- "release_policy_json" text DEFAULT '{}' NOT NULL,
2931
- "publish_policy_json" text DEFAULT '{}' NOT NULL,
2932
- "submodule_path" text,
2933
- "metadata_json" text DEFAULT '{}' NOT NULL,
2934
- "created_at" text NOT NULL,
2935
- "updated_at" text NOT NULL
2936
- );
2937
-
2938
- CREATE TABLE "treedx_instances" (
2939
- "id" text PRIMARY KEY NOT NULL,
2940
- "team_id" text NOT NULL,
2941
- "kind" text NOT NULL,
2942
- "provider" text NOT NULL,
2943
- "name" text NOT NULL,
2944
- "base_url" text,
2945
- "registry_url" text,
2946
- "public_read" integer DEFAULT 0 NOT NULL,
2947
- "primary" integer DEFAULT 1 NOT NULL,
2948
- "status" text DEFAULT 'pending' NOT NULL,
2949
- "image_ref" text,
2950
- "railway_project_id" text,
2951
- "railway_service_id" text,
2952
- "railway_environment_id" text,
2953
- "volume_mount_path" text,
2954
- "metadata_json" text DEFAULT '{}' NOT NULL,
2955
- "created_at" text NOT NULL,
2956
- "updated_at" text NOT NULL
2957
- );
2958
-
2959
- CREATE TABLE "book_collections" (
2960
- "id" text PRIMARY KEY NOT NULL,
2961
- "team_id" text NOT NULL,
2962
- "name" text NOT NULL,
2963
- "summary" text,
2964
- "book_ids_json" text DEFAULT '[]' NOT NULL,
2965
- "created_by_user_id" text NOT NULL,
2966
- "version" integer DEFAULT 1 NOT NULL,
2967
- "created_at" text NOT NULL,
2968
- "updated_at" text NOT NULL
2969
- );
2970
-
2971
- CREATE TABLE "knowledge_authoring_workspaces" (
2972
- "id" text PRIMARY KEY NOT NULL,
2973
- "team_id" text NOT NULL,
2974
- "project_id" text NOT NULL,
2975
- "repository_id" text NOT NULL,
2976
- "treedx_workspace_id" text NOT NULL,
2977
- "actor_user_id" text NOT NULL,
2978
- "base_ref" text NOT NULL,
2979
- "base_commit_sha" text NOT NULL,
2980
- "branch_name" text NOT NULL,
2981
- "allowed_paths_json" text DEFAULT '[]' NOT NULL,
2982
- "status" text DEFAULT 'draft' NOT NULL,
2983
- "version" integer DEFAULT 1 NOT NULL,
2984
- "created_at" text NOT NULL,
2985
- "updated_at" text NOT NULL
2986
- );
2987
-
2988
- CREATE TABLE "knowledge_pack_builds" (
2989
- "id" text PRIMARY KEY NOT NULL,
2990
- "team_id" text NOT NULL,
2991
- "collection_id" text,
2992
- "requested_by_user_id" text NOT NULL,
2993
- "book_ids_json" text DEFAULT '[]' NOT NULL,
2994
- "source_closure" text,
2995
- "publication_revision" text NOT NULL,
2996
- "status" text DEFAULT 'queued' NOT NULL,
2997
- "artifact_json" text DEFAULT '{}' NOT NULL,
2998
- "error" text,
2999
- "version" integer DEFAULT 1 NOT NULL,
3000
- "created_at" text NOT NULL,
3001
- "updated_at" text NOT NULL,
3002
- "completed_at" text
3003
- );
3004
-
3005
- CREATE TABLE "knowledge_publications" (
3006
- "id" text PRIMARY KEY NOT NULL,
3007
- "workspace_id" text NOT NULL,
3008
- "review_id" text NOT NULL,
3009
- "project_id" text NOT NULL,
3010
- "commit_sha" text NOT NULL,
3011
- "published_ref" text NOT NULL,
3012
- "published_revision" text,
3013
- "status" text DEFAULT 'queued' NOT NULL,
3014
- "created_at" text NOT NULL,
3015
- "completed_at" text
3016
- );
3017
-
3018
- CREATE TABLE "knowledge_review_comments" (
3019
- "id" text PRIMARY KEY NOT NULL,
3020
- "review_id" text NOT NULL,
3021
- "author_user_id" text NOT NULL,
3022
- "path" text NOT NULL,
3023
- "line_start" integer,
3024
- "line_end" integer,
3025
- "body" text NOT NULL,
3026
- "status" text DEFAULT 'open' NOT NULL,
3027
- "resolved_by_user_id" text,
3028
- "version" integer DEFAULT 1 NOT NULL,
3029
- "created_at" text NOT NULL,
3030
- "updated_at" text NOT NULL
3031
- );
3032
-
3033
- CREATE TABLE "knowledge_reviews" (
3034
- "id" text PRIMARY KEY NOT NULL,
3035
- "workspace_id" text NOT NULL,
3036
- "status" text DEFAULT 'open' NOT NULL,
3037
- "submitted_by_user_id" text NOT NULL,
3038
- "decided_by_user_id" text,
3039
- "notes" text,
3040
- "commit_sha" text,
3041
- "changed_paths_json" text DEFAULT '[]' NOT NULL,
3042
- "context_digest" text,
3043
- "requires_editorial_review" integer DEFAULT 0 NOT NULL,
3044
- "requires_graph_review" integer DEFAULT 0 NOT NULL,
3045
- "editorial_gate_satisfied" integer DEFAULT 0 NOT NULL,
3046
- "technical_review_json" text,
3047
- "audience_review_json" text,
3048
- "graph_review_json" text,
3049
- "required_reviewer_ids_json" text DEFAULT '{}' NOT NULL,
3050
- "created_at" text NOT NULL,
3051
- "updated_at" text NOT NULL
3052
- );
3053
-
3054
- CREATE TABLE "knowledge_workspace_presence" (
3055
- "id" text PRIMARY KEY NOT NULL,
3056
- "workspace_id" text NOT NULL,
3057
- "user_id" text NOT NULL,
3058
- "last_seen_at" text NOT NULL
3059
- );
3060
-
3061
- CREATE TABLE "project_remote_repository_bindings" (
3062
- "id" text PRIMARY KEY NOT NULL,
3063
- "project_id" text NOT NULL,
3064
- "team_id" text NOT NULL,
3065
- "service_connection_id" text NOT NULL,
3066
- "capability_binding_id" text NOT NULL,
3067
- "provider_id" text NOT NULL,
3068
- "provider_repository_id" text NOT NULL,
3069
- "owner" text NOT NULL,
3070
- "name" text NOT NULL,
3071
- "clone_url" text NOT NULL,
3072
- "default_ref" text NOT NULL,
3073
- "publication_ref" text NOT NULL,
3074
- "authority_id" text NOT NULL,
3075
- "expected_head" text,
3076
- "observed_head" text,
3077
- "grant_status" text DEFAULT 'missing' NOT NULL,
3078
- "drift" text DEFAULT 'unknown' NOT NULL,
3079
- "version" integer DEFAULT 1 NOT NULL,
3080
- "created_at" text NOT NULL,
3081
- "updated_at" text NOT NULL,
3082
- CONSTRAINT "project_remote_repository_bindings_project_id_unique" UNIQUE("project_id")
3083
- );
3084
-
3085
- CREATE TABLE "project_workflow_operations" (
3086
- "id" text PRIMARY KEY NOT NULL,
3087
- "project_id" text NOT NULL,
3088
- "team_id" text NOT NULL,
3089
- "workflow_binding_id" text NOT NULL,
3090
- "repository_binding_id" text NOT NULL,
3091
- "workflow_id" text NOT NULL,
3092
- "ref_policy_json" text DEFAULT '[]' NOT NULL,
3093
- "allowed_inputs_json" text DEFAULT '{}' NOT NULL,
3094
- "required_secrets_json" text DEFAULT '[]' NOT NULL,
3095
- "required_variables_json" text DEFAULT '[]' NOT NULL,
3096
- "actor_policy_json" text DEFAULT '[]' NOT NULL,
3097
- "mode_policy_json" text DEFAULT '[]' NOT NULL,
3098
- "version" integer DEFAULT 1 NOT NULL,
3099
- "created_at" text NOT NULL,
3100
- "updated_at" text NOT NULL
3101
- );
3102
-
3103
- CREATE TABLE "provider_connector_authorizations" (
3104
- "id" text PRIMARY KEY NOT NULL,
3105
- "provider_id" text NOT NULL,
3106
- "connector_kind" text NOT NULL,
3107
- "team_id" text NOT NULL,
3108
- "connection_id" text NOT NULL,
3109
- "actor_user_id" text NOT NULL,
3110
- "state_hash" text NOT NULL,
3111
- "phase" text NOT NULL,
3112
- "installation_id" text,
3113
- "account_id" text,
3114
- "account_login" text,
3115
- "expires_at" text NOT NULL,
3116
- "consumed_at" text,
3117
- "created_at" text NOT NULL,
3118
- "updated_at" text NOT NULL,
3119
- CONSTRAINT "provider_connector_authorizations_state_hash_unique" UNIQUE("state_hash")
3120
- );
3121
-
3122
- CREATE TABLE "provider_credential_authorities" (
3123
- "id" text PRIMARY KEY NOT NULL,
3124
- "team_id" text NOT NULL,
3125
- "connection_id" text NOT NULL,
3126
- "credential_profile_id" text NOT NULL,
3127
- "scheme" text NOT NULL,
3128
- "reference" text NOT NULL,
3129
- "capabilities_json" text DEFAULT '[]' NOT NULL,
3130
- "status" text DEFAULT 'reauthorization-required' NOT NULL,
3131
- "version" integer DEFAULT 1 NOT NULL,
3132
- "created_at" text NOT NULL,
3133
- "updated_at" text NOT NULL
3134
- );
3135
-
3136
- CREATE TABLE "provider_webhook_deliveries" (
3137
- "id" text PRIMARY KEY NOT NULL,
3138
- "provider_id" text NOT NULL,
3139
- "delivery_id" text NOT NULL,
3140
- "event_type" text NOT NULL,
3141
- "status" text NOT NULL,
3142
- "body_digest" text NOT NULL,
3143
- "correlation_id" text,
3144
- "received_at" text NOT NULL,
3145
- "processed_at" text
3146
- );
3147
-
3148
- CREATE TABLE "remote_credential_deliveries" (
3149
- "id" text PRIMARY KEY NOT NULL,
3150
- "grant_id" text NOT NULL,
3151
- "operation_id" text NOT NULL,
3152
- "node_id" text NOT NULL,
3153
- "operation_kind" text NOT NULL,
3154
- "allowed_host" text NOT NULL,
3155
- "refspec_digest" text NOT NULL,
3156
- "delivery_mode" text NOT NULL,
3157
- "ciphertext" text,
3158
- "algorithm" text,
3159
- "status" text DEFAULT 'ready' NOT NULL,
3160
- "expires_at" text NOT NULL,
3161
- "consumed_at" text,
3162
- "created_at" text NOT NULL,
3163
- "updated_at" text NOT NULL,
3164
- CONSTRAINT "remote_credential_deliveries_grant_id_unique" UNIQUE("grant_id")
3165
- );
3166
-
3167
- CREATE TABLE "remote_git_operation_grants" (
3168
- "id" text PRIMARY KEY NOT NULL,
3169
- "operation_id" text NOT NULL,
3170
- "actor_id" text NOT NULL,
3171
- "team_id" text NOT NULL,
3172
- "project_id" text NOT NULL,
3173
- "repository_binding_id" text NOT NULL,
3174
- "treedx_node_id" text NOT NULL,
3175
- "source_ref" text NOT NULL,
3176
- "destination_ref" text NOT NULL,
3177
- "reviewed_commit" text NOT NULL,
3178
- "expected_remote_head" text NOT NULL,
3179
- "credential_authority_id" text NOT NULL,
3180
- "status" text DEFAULT 'pending' NOT NULL,
3181
- "expires_at" text NOT NULL,
3182
- "idempotency_key" text NOT NULL,
3183
- "created_at" text NOT NULL,
3184
- "updated_at" text NOT NULL,
3185
- CONSTRAINT "remote_git_operation_grants_idempotency_key_unique" UNIQUE("idempotency_key")
3186
- );
3187
-
3188
- CREATE TABLE "workflow_configuration_deliveries" (
3189
- "id" text PRIMARY KEY NOT NULL,
3190
- "operation_id" text NOT NULL,
3191
- "record_id" text NOT NULL,
3192
- "action" text NOT NULL,
3193
- "payload_digest" text,
3194
- "key_id" text,
3195
- "status" text NOT NULL,
3196
- "expires_at" text NOT NULL,
3197
- "consumed_at" text,
3198
- "created_at" text NOT NULL,
3199
- "updated_at" text NOT NULL,
3200
- CONSTRAINT "workflow_configuration_deliveries_operation_id_unique" UNIQUE("operation_id")
3201
- );
3202
-
3203
- CREATE TABLE "workflow_configuration_records" (
3204
- "id" text PRIMARY KEY NOT NULL,
3205
- "project_id" text NOT NULL,
3206
- "team_id" text NOT NULL,
3207
- "workflow_binding_id" text NOT NULL,
3208
- "repository_binding_id" text NOT NULL,
3209
- "kind" text NOT NULL,
3210
- "scope" text NOT NULL,
3211
- "environment" text,
3212
- "name" text NOT NULL,
3213
- "status" text NOT NULL,
3214
- "value_digest" text,
3215
- "provider_updated_at" text,
3216
- "last_observed_at" text,
3217
- "updated_by_user_id" text,
3218
- "created_at" text NOT NULL,
3219
- "updated_at" text NOT NULL
3220
- );
3221
-
3222
- CREATE TABLE "workflow_operation_runs" (
3223
- "id" text PRIMARY KEY NOT NULL,
3224
- "operation_id" text NOT NULL,
3225
- "project_id" text NOT NULL,
3226
- "team_id" text NOT NULL,
3227
- "actor_type" text NOT NULL,
3228
- "actor_id" text NOT NULL,
3229
- "mode" text NOT NULL,
3230
- "assignment_id" text,
3231
- "handle_id" text,
3232
- "provider_id" text NOT NULL,
3233
- "provider_run_id" text,
3234
- "provider_run_url" text,
3235
- "source_sha" text NOT NULL,
3236
- "ref" text NOT NULL,
3237
- "correlation_id" text NOT NULL,
3238
- "status" text DEFAULT 'authorizing' NOT NULL,
3239
- "artifacts_json" text DEFAULT '[]' NOT NULL,
3240
- "created_at" text NOT NULL,
3241
- "updated_at" text NOT NULL,
3242
- CONSTRAINT "workflow_operation_runs_correlation_id_unique" UNIQUE("correlation_id")
3243
- );
3244
-
3245
- CREATE TABLE "agent_messages" (
3246
- "id" serial PRIMARY KEY NOT NULL,
3247
- "type" text NOT NULL,
3248
- "payload_json" text NOT NULL,
3249
- "created_at" text NOT NULL
3250
- );
3251
-
3252
- CREATE TABLE "agent_runs" (
3253
- "run_id" text PRIMARY KEY NOT NULL,
3254
- "agent_slug" text NOT NULL,
3255
- "status" text NOT NULL,
3256
- "created_at" text NOT NULL
3257
- );
3258
-
3259
- CREATE TABLE "api_tokens" (
3260
- "id" text PRIMARY KEY NOT NULL,
3261
- "user_id" text NOT NULL,
3262
- "kind" text NOT NULL,
3263
- "name" text NOT NULL,
3264
- "token_prefix" text NOT NULL,
3265
- "token_hash" text NOT NULL,
3266
- "scopes_json" text NOT NULL,
3267
- "expires_at" text,
3268
- "last_used_at" text,
3269
- "revoked_at" text,
3270
- "metadata_json" text,
3271
- "created_at" text NOT NULL,
3272
- "updated_at" text NOT NULL
3273
- );
3274
-
3275
- CREATE TABLE "audit_events" (
3276
- "id" text PRIMARY KEY NOT NULL,
3277
- "actor_type" text NOT NULL,
3278
- "actor_id" text,
3279
- "event_type" text NOT NULL,
3280
- "target_type" text,
3281
- "target_id" text,
3282
- "data_json" text,
3283
- "created_at" text NOT NULL
3284
- );
3285
-
3286
- CREATE TABLE "auth_sessions" (
3287
- "id" text PRIMARY KEY NOT NULL,
3288
- "user_id" text NOT NULL,
3289
- "session_type" text NOT NULL,
3290
- "refresh_token_hash" text NOT NULL,
3291
- "scopes_json" text NOT NULL,
3292
- "expires_at" text NOT NULL,
3293
- "revoked_at" text,
3294
- "data_json" text,
3295
- "created_at" text NOT NULL,
3296
- "updated_at" text NOT NULL
3297
- );
3298
-
3299
- CREATE TABLE "contact_submissions" (
3300
- "id" serial PRIMARY KEY NOT NULL,
3301
- "email" text NOT NULL,
3302
- "message" text NOT NULL,
3303
- "created_at" text NOT NULL
3304
- );
3305
-
3306
- CREATE TABLE "device_codes" (
3307
- "id" text PRIMARY KEY NOT NULL,
3308
- "device_code" text NOT NULL,
3309
- "user_code" text NOT NULL,
3310
- "requested_scopes_json" text NOT NULL,
3311
- "expires_at" text NOT NULL,
3312
- "interval_seconds" integer NOT NULL,
3313
- "status" text NOT NULL,
3314
- "user_id" text,
3315
- "created_at" text NOT NULL,
3316
- "updated_at" text NOT NULL,
3317
- CONSTRAINT "device_codes_device_code_unique" UNIQUE("device_code"),
3318
- CONSTRAINT "device_codes_user_code_unique" UNIQUE("user_code")
3319
- );
3320
-
3321
- CREATE TABLE "permissions" (
3322
- "id" text PRIMARY KEY NOT NULL,
3323
- "key" text NOT NULL,
3324
- "resource" text NOT NULL,
3325
- "action" text NOT NULL,
3326
- "scope" text NOT NULL,
3327
- "description" text,
3328
- "created_at" text NOT NULL,
3329
- CONSTRAINT "permissions_key_unique" UNIQUE("key")
3330
- );
3331
-
3332
- CREATE TABLE "role_permissions" (
3333
- "role_id" text,
3334
- "permission_id" text,
3335
- "created_at" text NOT NULL,
3336
- CONSTRAINT "role_permissions_role_id_permission_id_pk" PRIMARY KEY("role_id","permission_id")
3337
- );
3338
-
3339
- CREATE TABLE "roles" (
3340
- "id" text PRIMARY KEY NOT NULL,
3341
- "key" text NOT NULL,
3342
- "description" text,
3343
- "created_at" text NOT NULL,
3344
- CONSTRAINT "roles_key_unique" UNIQUE("key")
3345
- );
3346
-
3347
- CREATE TABLE "runtime_envelopes" (
3348
- "id" serial PRIMARY KEY NOT NULL,
3349
- "record_type" text NOT NULL,
3350
- "payload_json" text NOT NULL,
3351
- "created_at" text NOT NULL
3352
- );
3353
-
3354
- CREATE TABLE "seed_team_membership_claims" (
3355
- "id" text PRIMARY KEY NOT NULL,
3356
- "seed_name" text NOT NULL,
3357
- "resource_key" text NOT NULL,
3358
- "team_id" text NOT NULL,
3359
- "normalized_email" text NOT NULL,
3360
- "roles_json" text DEFAULT '[]' NOT NULL,
3361
- "status" text DEFAULT 'pending' NOT NULL,
3362
- "user_id" text,
3363
- "membership_id" text,
3364
- "binding_ids_json" text DEFAULT '[]' NOT NULL,
3365
- "bound_at" text,
3366
- "created_at" text NOT NULL,
3367
- "updated_at" text NOT NULL
3368
- );
3369
-
3370
- CREATE TABLE "service_credentials" (
3371
- "id" text PRIMARY KEY NOT NULL,
3372
- "service_id" text NOT NULL,
3373
- "name" text NOT NULL,
3374
- "secret_hash" text NOT NULL,
3375
- "roles_json" text NOT NULL,
3376
- "permissions_json" text NOT NULL,
3377
- "revoked_at" text,
3378
- "created_at" text NOT NULL,
3379
- "updated_at" text NOT NULL,
3380
- "last_used_at" text,
3381
- CONSTRAINT "service_credentials_service_id_unique" UNIQUE("service_id")
3382
- );
3383
-
3384
- CREATE TABLE "subscribers" (
3385
- "email" text PRIMARY KEY NOT NULL,
3386
- "created_at" text NOT NULL
3387
- );
3388
-
3389
- CREATE TABLE "team_memberships" (
3390
- "id" text PRIMARY KEY NOT NULL,
3391
- "team_id" text NOT NULL,
3392
- "user_id" text NOT NULL,
3393
- "status" text DEFAULT 'active' NOT NULL,
3394
- "created_at" text NOT NULL,
3395
- "updated_at" text NOT NULL
3396
- );
3397
-
3398
- CREATE TABLE "team_role_bindings" (
3399
- "id" text PRIMARY KEY NOT NULL,
3400
- "team_membership_id" text NOT NULL,
3401
- "role_id" text NOT NULL,
3402
- "created_at" text NOT NULL
3403
- );
3404
-
3405
- CREATE TABLE "teams" (
3406
- "id" text PRIMARY KEY NOT NULL,
3407
- "slug" text NOT NULL,
3408
- "name" text NOT NULL,
3409
- "metadata_json" text,
3410
- "created_at" text NOT NULL,
3411
- "updated_at" text NOT NULL,
3412
- "display_name" text,
3413
- "logo_url" text,
3414
- "profile_summary" text,
3415
- "status" text DEFAULT 'active' NOT NULL,
3416
- "archived_at" text,
3417
- "archived_by_user_id" text,
3418
- "restore_deadline_at" text,
3419
- "lifecycle_version" integer DEFAULT 1 NOT NULL,
3420
- CONSTRAINT "teams_slug_unique" UNIQUE("slug")
3421
- );
3422
-
3423
- CREATE TABLE "user_email_addresses" (
3424
- "id" text PRIMARY KEY NOT NULL,
3425
- "user_id" text NOT NULL,
3426
- "email" text NOT NULL,
3427
- "normalized_email" text NOT NULL,
3428
- "status" text DEFAULT 'pending' NOT NULL,
3429
- "is_primary" integer DEFAULT 0 NOT NULL,
3430
- "verification_requested_at" text,
3431
- "verified_at" text,
3432
- "created_at" text NOT NULL,
3433
- "updated_at" text NOT NULL,
3434
- CONSTRAINT "user_email_addresses_normalized_email_unique" UNIQUE("normalized_email")
3435
- );
3436
-
3437
- CREATE TABLE "user_identities" (
3438
- "id" text PRIMARY KEY NOT NULL,
3439
- "user_id" text NOT NULL,
3440
- "provider" text NOT NULL,
3441
- "provider_subject" text NOT NULL,
3442
- "email" text,
3443
- "email_verified" integer DEFAULT 0 NOT NULL,
3444
- "profile_json" text,
3445
- "created_at" text NOT NULL,
3446
- "updated_at" text NOT NULL
3447
- );
3448
-
3449
- CREATE TABLE "user_role_bindings" (
3450
- "id" text PRIMARY KEY NOT NULL,
3451
- "user_id" text NOT NULL,
3452
- "role_id" text NOT NULL,
3453
- "created_at" text NOT NULL
3454
- );
3455
-
3456
- CREATE TABLE "users" (
3457
- "id" text PRIMARY KEY NOT NULL,
3458
- "email" text,
3459
- "display_name" text,
3460
- "status" text DEFAULT 'active' NOT NULL,
3461
- "metadata_json" text,
3462
- "created_at" text NOT NULL,
3463
- "updated_at" text NOT NULL,
3464
- "username" text
3465
- );
3466
-
3467
- CREATE TABLE "web_sessions" (
3468
- "id" text PRIMARY KEY NOT NULL,
3469
- "user_id" text NOT NULL,
3470
- "identity_id" text,
3471
- "better_auth_session_id" text,
3472
- "provider" text NOT NULL,
3473
- "provider_subject" text NOT NULL,
3474
- "email" text,
3475
- "display_name" text,
3476
- "principal_json" text NOT NULL,
3477
- "csrf_token" text NOT NULL,
3478
- "ip_address" text,
3479
- "user_agent" text,
3480
- "authenticated_at" text NOT NULL,
3481
- "last_seen_at" text,
3482
- "expires_at" text NOT NULL,
3483
- "revoked_at" text,
3484
- "created_at" text NOT NULL,
3485
- "updated_at" text NOT NULL
3486
- );
3487
-
3488
- ALTER TABLE "capacity_execution_providers" ADD CONSTRAINT "fk_capacity_execution_providers_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE cascade ON UPDATE no action;
3489
- ALTER TABLE "capacity_provider_credential_issuance_authorizations" ADD CONSTRAINT "fk_capacity_provider_credential_authorizations_membership" FOREIGN KEY ("membership_id") REFERENCES "public"."capacity_provider_team_memberships"("id") ON DELETE cascade ON UPDATE no action;
3490
- ALTER TABLE "capacity_provider_credential_issuance_authorizations" ADD CONSTRAINT "fk_capacity_provider_credential_authorizations_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3491
- ALTER TABLE "capacity_provider_credential_issuance_authorizations" ADD CONSTRAINT "fk_capacity_provider_credential_authorizations_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3492
- ALTER TABLE "capacity_provider_identity_rotations" ADD CONSTRAINT "fk_capacity_provider_identity_rotations_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE cascade ON UPDATE no action;
3493
- ALTER TABLE "capacity_provider_lanes" ADD CONSTRAINT "fk_capacity_provider_lanes_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE cascade ON UPDATE no action;
3494
- ALTER TABLE "capacity_provider_lanes" ADD CONSTRAINT "fk_capacity_provider_lanes_execution_provider" FOREIGN KEY ("capacity_provider_id","execution_provider_id") REFERENCES "public"."capacity_execution_providers"("capacity_provider_id","id") ON DELETE cascade ON UPDATE no action;
3495
- ALTER TABLE "capacity_provider_registration_requests" ADD CONSTRAINT "fk_capacity_provider_registration_requests_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3496
- ALTER TABLE "capacity_provider_registration_requests" ADD CONSTRAINT "fk_capacity_provider_registration_requests_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3497
- ALTER TABLE "capacity_provider_team_memberships" ADD CONSTRAINT "fk_capacity_provider_team_memberships_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3498
- ALTER TABLE "capacity_provider_team_memberships" ADD CONSTRAINT "fk_capacity_provider_team_memberships_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3499
- ALTER TABLE "team_capacity_registration_keys" ADD CONSTRAINT "fk_team_capacity_registration_keys_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3500
- ALTER TABLE "agent_fallback_outputs" ADD CONSTRAINT "fk_agent_fallback_outputs_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3501
- ALTER TABLE "agent_fallback_outputs" ADD CONSTRAINT "fk_agent_fallback_outputs_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3502
- ALTER TABLE "agent_fallback_outputs" ADD CONSTRAINT "fk_agent_fallback_outputs_assignment" FOREIGN KEY ("assignment_id") REFERENCES "public"."capacity_provider_assignments"("id") ON DELETE restrict ON UPDATE no action;
3503
- ALTER TABLE "agent_invocation_requests" ADD CONSTRAINT "fk_agent_invocations_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3504
- ALTER TABLE "agent_invocation_requests" ADD CONSTRAINT "fk_agent_invocations_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3505
- ALTER TABLE "agent_invocation_requests" ADD CONSTRAINT "fk_agent_invocations_agent_class" FOREIGN KEY ("project_agent_class_id") REFERENCES "public"."project_agent_classes"("id") ON DELETE restrict ON UPDATE no action;
3506
- ALTER TABLE "agent_mode_runs" ADD CONSTRAINT "fk_agent_mode_runs_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3507
- ALTER TABLE "agent_mode_runs" ADD CONSTRAINT "fk_agent_mode_runs_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3508
- ALTER TABLE "agent_mode_runs" ADD CONSTRAINT "fk_agent_mode_runs_assignment" FOREIGN KEY ("provider_assignment_id") REFERENCES "public"."capacity_provider_assignments"("id") ON DELETE restrict ON UPDATE no action;
3509
- ALTER TABLE "agent_mode_runs" ADD CONSTRAINT "fk_agent_mode_runs_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3510
- ALTER TABLE "agent_mode_runs" ADD CONSTRAINT "fk_agent_mode_runs_execution_provider" FOREIGN KEY ("capacity_provider_id","execution_provider_id") REFERENCES "public"."capacity_execution_providers"("capacity_provider_id","id") ON DELETE restrict ON UPDATE no action;
3511
- ALTER TABLE "agent_mode_runs" ADD CONSTRAINT "fk_agent_mode_runs_agent_class" FOREIGN KEY ("project_agent_class_id") REFERENCES "public"."project_agent_classes"("id") ON DELETE restrict ON UPDATE no action;
3512
- ALTER TABLE "capacity_workday_runs" ADD CONSTRAINT "fk_capacity_workday_runs_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3513
- ALTER TABLE "decision_assignment_graphs" ADD CONSTRAINT "fk_decision_assignment_graphs_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3514
- ALTER TABLE "decision_assignment_graphs" ADD CONSTRAINT "fk_decision_assignment_graphs_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3515
- ALTER TABLE "decision_execution_inputs" ADD CONSTRAINT "fk_decision_execution_inputs_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3516
- ALTER TABLE "decision_execution_inputs" ADD CONSTRAINT "fk_decision_execution_inputs_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3517
- ALTER TABLE "decision_execution_inputs" ADD CONSTRAINT "fk_decision_execution_inputs_agent_class" FOREIGN KEY ("project_agent_class_id") REFERENCES "public"."project_agent_classes"("id") ON DELETE restrict ON UPDATE no action;
3518
- ALTER TABLE "decision_planning_statuses" ADD CONSTRAINT "fk_decision_planning_statuses_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3519
- ALTER TABLE "decision_planning_statuses" ADD CONSTRAINT "fk_decision_planning_statuses_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3520
- ALTER TABLE "deliverable_contracts" ADD CONSTRAINT "fk_deliverable_contracts_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3521
- ALTER TABLE "deliverable_contracts" ADD CONSTRAINT "fk_deliverable_contracts_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3522
- ALTER TABLE "deliverable_manifests" ADD CONSTRAINT "fk_deliverable_manifests_contract" FOREIGN KEY ("deliverable_contract_id") REFERENCES "public"."deliverable_contracts"("id") ON DELETE cascade ON UPDATE no action;
3523
- ALTER TABLE "deliverable_manifests" ADD CONSTRAINT "fk_deliverable_manifests_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3524
- ALTER TABLE "research_workflows" ADD CONSTRAINT "fk_research_workflows_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3525
- ALTER TABLE "research_workflows" ADD CONSTRAINT "fk_research_workflows_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE no action ON UPDATE no action;
3526
- ALTER TABLE "structured_agent_estimates" ADD CONSTRAINT "fk_structured_agent_estimates_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3527
- ALTER TABLE "structured_agent_estimates" ADD CONSTRAINT "fk_structured_agent_estimates_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3528
- ALTER TABLE "agent_context_query_checks" ADD CONSTRAINT "fk_agent_context_query_checks_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3529
- ALTER TABLE "agent_context_query_checks" ADD CONSTRAINT "fk_agent_context_query_checks_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3530
- ALTER TABLE "agent_client_actions" ADD CONSTRAINT "fk_agent_client_actions_session" FOREIGN KEY ("session_id") REFERENCES "public"."agent_client_sessions"("id") ON DELETE set null ON UPDATE no action;
3531
- ALTER TABLE "agent_client_actions" ADD CONSTRAINT "fk_agent_client_actions_assignment" FOREIGN KEY ("assignment_id") REFERENCES "public"."capacity_provider_assignments"("id") ON DELETE restrict ON UPDATE no action;
3532
- ALTER TABLE "agent_client_actions" ADD CONSTRAINT "fk_agent_client_actions_user" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;
3533
- ALTER TABLE "agent_client_actions" ADD CONSTRAINT "fk_agent_client_actions_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3534
- ALTER TABLE "agent_client_actions" ADD CONSTRAINT "fk_agent_client_actions_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3535
- ALTER TABLE "agent_client_sessions" ADD CONSTRAINT "fk_agent_client_sessions_user" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;
3536
- ALTER TABLE "agent_client_sessions" ADD CONSTRAINT "fk_agent_client_sessions_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3537
- ALTER TABLE "agent_client_sessions" ADD CONSTRAINT "fk_agent_client_sessions_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3538
- ALTER TABLE "agent_operation_handoffs" ADD CONSTRAINT "fk_agent_operation_handoffs_assignment" FOREIGN KEY ("assignment_id") REFERENCES "public"."capacity_provider_assignments"("id") ON DELETE restrict ON UPDATE no action;
3539
- ALTER TABLE "agent_operation_handoffs" ADD CONSTRAINT "fk_agent_operation_handoffs_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3540
- ALTER TABLE "agent_operation_handoffs" ADD CONSTRAINT "fk_agent_operation_handoffs_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3541
- ALTER TABLE "capacity_allocation_sets" ADD CONSTRAINT "fk_capacity_allocation_sets_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3542
- ALTER TABLE "capacity_allocation_sets" ADD CONSTRAINT "fk_capacity_allocation_sets_superseded_by" FOREIGN KEY ("superseded_by_id") REFERENCES "public"."capacity_allocation_sets"("id") ON DELETE restrict ON UPDATE no action;
3543
- ALTER TABLE "capacity_ledger_entries" ADD CONSTRAINT "fk_capacity_ledger_membership" FOREIGN KEY ("membership_id") REFERENCES "public"."capacity_provider_team_memberships"("id") ON DELETE restrict ON UPDATE no action;
3544
- ALTER TABLE "capacity_ledger_entries" ADD CONSTRAINT "fk_capacity_ledger_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3545
- ALTER TABLE "capacity_ledger_entries" ADD CONSTRAINT "fk_capacity_ledger_execution_provider" FOREIGN KEY ("capacity_provider_id","execution_provider_id") REFERENCES "public"."capacity_execution_providers"("capacity_provider_id","id") ON DELETE restrict ON UPDATE no action;
3546
- ALTER TABLE "capacity_ledger_entries" ADD CONSTRAINT "fk_capacity_ledger_lane" FOREIGN KEY ("capacity_provider_id","lane_id") REFERENCES "public"."capacity_provider_lanes"("capacity_provider_id","id") ON DELETE restrict ON UPDATE no action;
3547
- ALTER TABLE "capacity_ledger_entries" ADD CONSTRAINT "fk_capacity_ledger_reservation" FOREIGN KEY ("reservation_id") REFERENCES "public"."capacity_reservations"("id") ON DELETE restrict ON UPDATE no action;
3548
- ALTER TABLE "capacity_ledger_entries" ADD CONSTRAINT "fk_capacity_ledger_assignment" FOREIGN KEY ("assignment_id") REFERENCES "public"."capacity_provider_assignments"("id") ON DELETE restrict ON UPDATE no action;
3549
- ALTER TABLE "capacity_ledger_entries" ADD CONSTRAINT "fk_capacity_ledger_mode_run" FOREIGN KEY ("mode_run_id") REFERENCES "public"."agent_mode_runs"("id") ON DELETE restrict ON UPDATE no action;
3550
- ALTER TABLE "capacity_ledger_entries" ADD CONSTRAINT "fk_capacity_ledger_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3551
- ALTER TABLE "capacity_ledger_entries" ADD CONSTRAINT "fk_capacity_ledger_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3552
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_membership" FOREIGN KEY ("membership_id") REFERENCES "public"."capacity_provider_team_memberships"("id") ON DELETE restrict ON UPDATE no action;
3553
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3554
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3555
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3556
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_session" FOREIGN KEY ("provider_session_id") REFERENCES "public"."capacity_provider_availability_sessions"("id") ON DELETE set null ON UPDATE no action;
3557
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_execution_provider" FOREIGN KEY ("capacity_provider_id","execution_provider_id") REFERENCES "public"."capacity_execution_providers"("capacity_provider_id","id") ON DELETE restrict ON UPDATE no action;
3558
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_lane" FOREIGN KEY ("capacity_provider_id","lane_id") REFERENCES "public"."capacity_provider_lanes"("capacity_provider_id","id") ON DELETE restrict ON UPDATE no action;
3559
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_allocation" FOREIGN KEY ("allocation_set_id") REFERENCES "public"."capacity_allocation_sets"("id") ON DELETE restrict ON UPDATE no action;
3560
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_agent_class" FOREIGN KEY ("project_agent_class_id") REFERENCES "public"."project_agent_classes"("id") ON DELETE restrict ON UPDATE no action;
3561
- ALTER TABLE "capacity_provider_assignments" ADD CONSTRAINT "fk_capacity_provider_assignments_reservation" FOREIGN KEY ("reservation_id") REFERENCES "public"."capacity_reservations"("id") ON DELETE restrict ON UPDATE no action;
3562
- ALTER TABLE "capacity_usage_actuals" ADD CONSTRAINT "fk_capacity_usage_actuals_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3563
- ALTER TABLE "capacity_usage_actuals" ADD CONSTRAINT "fk_capacity_usage_actuals_assignment" FOREIGN KEY ("assignment_id") REFERENCES "public"."capacity_provider_assignments"("id") ON DELETE cascade ON UPDATE no action;
3564
- ALTER TABLE "capacity_usage_actuals" ADD CONSTRAINT "fk_capacity_usage_actuals_mode_run" FOREIGN KEY ("mode_run_id") REFERENCES "public"."agent_mode_runs"("id") ON DELETE cascade ON UPDATE no action;
3565
- ALTER TABLE "capacity_usage_actuals" ADD CONSTRAINT "fk_capacity_usage_actuals_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3566
- ALTER TABLE "capacity_usage_actuals" ADD CONSTRAINT "fk_capacity_usage_actuals_execution_provider" FOREIGN KEY ("capacity_provider_id","execution_provider_id") REFERENCES "public"."capacity_execution_providers"("capacity_provider_id","id") ON DELETE restrict ON UPDATE no action;
3567
- ALTER TABLE "capacity_usage_actuals" ADD CONSTRAINT "fk_capacity_usage_actuals_lane" FOREIGN KEY ("capacity_provider_id","lane_id") REFERENCES "public"."capacity_provider_lanes"("capacity_provider_id","id") ON DELETE restrict ON UPDATE no action;
3568
- ALTER TABLE "project_agent_classes" ADD CONSTRAINT "fk_project_agent_classes_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3569
- ALTER TABLE "project_agent_classes" ADD CONSTRAINT "fk_project_agent_classes_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3570
- ALTER TABLE "capacity_provider_availability_sessions" ADD CONSTRAINT "fk_capacity_provider_availability_sessions_membership" FOREIGN KEY ("membership_id") REFERENCES "public"."capacity_provider_team_memberships"("id") ON DELETE cascade ON UPDATE no action;
3571
- ALTER TABLE "capacity_provider_availability_sessions" ADD CONSTRAINT "fk_capacity_provider_availability_sessions_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3572
- ALTER TABLE "capacity_provider_availability_sessions" ADD CONSTRAINT "fk_capacity_provider_availability_sessions_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3573
- ALTER TABLE "capacity_grants" ADD CONSTRAINT "fk_capacity_grants_membership" FOREIGN KEY ("membership_id") REFERENCES "public"."capacity_provider_team_memberships"("id") ON DELETE cascade ON UPDATE no action;
3574
- ALTER TABLE "capacity_grants" ADD CONSTRAINT "fk_capacity_grants_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3575
- ALTER TABLE "capacity_grants" ADD CONSTRAINT "fk_capacity_grants_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3576
- ALTER TABLE "capacity_grants" ADD CONSTRAINT "fk_capacity_grants_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3577
- ALTER TABLE "capacity_operation_receipts" ADD CONSTRAINT "fk_capacity_operation_receipts_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3578
- ALTER TABLE "capacity_provider_access_tokens" ADD CONSTRAINT "fk_capacity_provider_access_tokens_membership" FOREIGN KEY ("membership_id") REFERENCES "public"."capacity_provider_team_memberships"("id") ON DELETE cascade ON UPDATE no action;
3579
- ALTER TABLE "capacity_provider_access_tokens" ADD CONSTRAINT "fk_capacity_provider_access_tokens_credential" FOREIGN KEY ("credential_id") REFERENCES "public"."capacity_provider_team_credentials"("id") ON DELETE cascade ON UPDATE no action;
3580
- ALTER TABLE "capacity_provider_team_credentials" ADD CONSTRAINT "fk_capacity_provider_team_credentials_membership" FOREIGN KEY ("membership_id") REFERENCES "public"."capacity_provider_team_memberships"("id") ON DELETE cascade ON UPDATE no action;
3581
- ALTER TABLE "capacity_provider_team_credentials" ADD CONSTRAINT "fk_capacity_provider_team_credentials_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3582
- ALTER TABLE "capacity_provider_team_credentials" ADD CONSTRAINT "fk_capacity_provider_team_credentials_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3583
- ALTER TABLE "capacity_provider_team_credentials" ADD CONSTRAINT "fk_capacity_provider_team_credentials_authorization" FOREIGN KEY ("issuance_authorization_id") REFERENCES "public"."capacity_provider_credential_issuance_authorizations"("id") ON DELETE restrict ON UPDATE no action;
3584
- ALTER TABLE "capacity_provider_team_credentials" ADD CONSTRAINT "fk_capacity_provider_team_credentials_rotated_from" FOREIGN KEY ("rotated_from_credential_id") REFERENCES "public"."capacity_provider_team_credentials"("id") ON DELETE set null ON UPDATE no action;
3585
- ALTER TABLE "capacity_reservations" ADD CONSTRAINT "fk_capacity_reservations_membership" FOREIGN KEY ("membership_id") REFERENCES "public"."capacity_provider_team_memberships"("id") ON DELETE restrict ON UPDATE no action;
3586
- ALTER TABLE "capacity_reservations" ADD CONSTRAINT "fk_capacity_reservations_grant" FOREIGN KEY ("grant_id") REFERENCES "public"."capacity_grants"("id") ON DELETE restrict ON UPDATE no action;
3587
- ALTER TABLE "capacity_reservations" ADD CONSTRAINT "fk_capacity_reservations_provider" FOREIGN KEY ("capacity_provider_id") REFERENCES "public"."capacity_providers"("id") ON DELETE restrict ON UPDATE no action;
3588
- ALTER TABLE "capacity_reservations" ADD CONSTRAINT "fk_capacity_reservations_execution_provider" FOREIGN KEY ("capacity_provider_id","execution_provider_id") REFERENCES "public"."capacity_execution_providers"("capacity_provider_id","id") ON DELETE restrict ON UPDATE no action;
3589
- ALTER TABLE "capacity_reservations" ADD CONSTRAINT "fk_capacity_reservations_lane" FOREIGN KEY ("capacity_provider_id","lane_id") REFERENCES "public"."capacity_provider_lanes"("capacity_provider_id","id") ON DELETE restrict ON UPDATE no action;
3590
- ALTER TABLE "capacity_reservations" ADD CONSTRAINT "fk_capacity_reservations_allocation" FOREIGN KEY ("allocation_set_id") REFERENCES "public"."capacity_allocation_sets"("id") ON DELETE restrict ON UPDATE no action;
3591
- ALTER TABLE "capacity_reservations" ADD CONSTRAINT "fk_capacity_reservations_agent_class" FOREIGN KEY ("project_agent_class_id") REFERENCES "public"."project_agent_classes"("id") ON DELETE restrict ON UPDATE no action;
3592
- ALTER TABLE "capacity_reservations" ADD CONSTRAINT "fk_capacity_reservations_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3593
- ALTER TABLE "capacity_reservations" ADD CONSTRAINT "fk_capacity_reservations_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3594
- ALTER TABLE "agent_capacity_plans" ADD CONSTRAINT "fk_agent_capacity_plans_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3595
- ALTER TABLE "agent_capacity_plans" ADD CONSTRAINT "fk_agent_capacity_plans_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3596
- ALTER TABLE "agent_capacity_plans" ADD CONSTRAINT "fk_agent_capacity_plans_allocation" FOREIGN KEY ("allocation_set_id") REFERENCES "public"."capacity_allocation_sets"("id") ON DELETE restrict ON UPDATE no action;
3597
- ALTER TABLE "agent_capacity_plans" ADD CONSTRAINT "fk_agent_capacity_plans_workday" FOREIGN KEY ("work_day_id") REFERENCES "public"."workday_capacity_envelopes"("id") ON DELETE restrict ON UPDATE no action;
3598
- ALTER TABLE "agent_signals" ADD CONSTRAINT "fk_agent_signals_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3599
- ALTER TABLE "agent_signals" ADD CONSTRAINT "fk_agent_signals_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;
3600
- ALTER TABLE "agent_signals" ADD CONSTRAINT "fk_agent_signals_assignment" FOREIGN KEY ("assignment_id") REFERENCES "public"."capacity_provider_assignments"("id") ON DELETE restrict ON UPDATE no action;
3601
- ALTER TABLE "capacity_workday_demands" ADD CONSTRAINT "fk_capacity_workday_demands_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3602
- ALTER TABLE "capacity_workday_demands" ADD CONSTRAINT "fk_capacity_workday_demands_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3603
- ALTER TABLE "capacity_workday_demands" ADD CONSTRAINT "fk_capacity_workday_demands_run" FOREIGN KEY ("workday_run_id") REFERENCES "public"."capacity_workday_runs"("id") ON DELETE restrict ON UPDATE no action;
3604
- ALTER TABLE "capacity_workday_demands" ADD CONSTRAINT "fk_capacity_workday_demands_workday" FOREIGN KEY ("workday_id") REFERENCES "public"."workday_capacity_envelopes"("id") ON DELETE restrict ON UPDATE no action;
3605
- ALTER TABLE "capacity_workday_demands" ADD CONSTRAINT "fk_capacity_workday_demands_agent_class" FOREIGN KEY ("project_agent_class_id") REFERENCES "public"."project_agent_classes"("id") ON DELETE restrict ON UPDATE no action;
3606
- ALTER TABLE "capacity_workday_demands" ADD CONSTRAINT "fk_capacity_workday_demands_assignment" FOREIGN KEY ("assignment_id") REFERENCES "public"."capacity_provider_assignments"("id") ON DELETE restrict ON UPDATE no action;
3607
- ALTER TABLE "capacity_workday_demands" ADD CONSTRAINT "fk_capacity_workday_demands_capacity_plan" FOREIGN KEY ("capacity_plan_id") REFERENCES "public"."agent_capacity_plans"("id") ON DELETE restrict ON UPDATE no action;
3608
- ALTER TABLE "capacity_workday_events" ADD CONSTRAINT "fk_capacity_workday_events_run" FOREIGN KEY ("run_id") REFERENCES "public"."capacity_workday_runs"("id") ON DELETE restrict ON UPDATE no action;
3609
- ALTER TABLE "capacity_workday_events" ADD CONSTRAINT "fk_capacity_workday_events_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3610
- ALTER TABLE "capacity_workday_events" ADD CONSTRAINT "fk_capacity_workday_events_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3611
- ALTER TABLE "capacity_workday_participation_cycles" ADD CONSTRAINT "fk_capacity_workday_participation_cycles_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3612
- ALTER TABLE "capacity_workday_participation_cycles" ADD CONSTRAINT "fk_capacity_workday_participation_cycles_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3613
- ALTER TABLE "capacity_workday_participation_cycles" ADD CONSTRAINT "fk_capacity_workday_participation_cycles_run" FOREIGN KEY ("workday_run_id") REFERENCES "public"."capacity_workday_runs"("id") ON DELETE restrict ON UPDATE no action;
3614
- ALTER TABLE "capacity_workday_participation_entries" ADD CONSTRAINT "fk_capacity_workday_participation_entries_cycle" FOREIGN KEY ("cycle_id") REFERENCES "public"."capacity_workday_participation_cycles"("id") ON DELETE restrict ON UPDATE no action;
3615
- ALTER TABLE "capacity_workday_participation_entries" ADD CONSTRAINT "fk_capacity_workday_participation_entries_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3616
- ALTER TABLE "capacity_workday_participation_entries" ADD CONSTRAINT "fk_capacity_workday_participation_entries_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3617
- ALTER TABLE "capacity_workday_participation_entries" ADD CONSTRAINT "fk_capacity_workday_participation_entries_run" FOREIGN KEY ("workday_run_id") REFERENCES "public"."capacity_workday_runs"("id") ON DELETE restrict ON UPDATE no action;
3618
- ALTER TABLE "capacity_workday_participation_entries" ADD CONSTRAINT "fk_capacity_workday_participation_entries_agent_class" FOREIGN KEY ("project_agent_class_id") REFERENCES "public"."project_agent_classes"("id") ON DELETE restrict ON UPDATE no action;
3619
- ALTER TABLE "capacity_workday_participation_entries" ADD CONSTRAINT "fk_capacity_workday_participation_entries_demand" FOREIGN KEY ("demand_id") REFERENCES "public"."capacity_workday_demands"("id") ON DELETE restrict ON UPDATE no action;
3620
- ALTER TABLE "capacity_workday_participation_entries" ADD CONSTRAINT "fk_capacity_workday_participation_entries_assignment" FOREIGN KEY ("assignment_id") REFERENCES "public"."capacity_provider_assignments"("id") ON DELETE restrict ON UPDATE no action;
3621
- ALTER TABLE "capacity_workday_schedules" ADD CONSTRAINT "fk_capacity_workday_schedules_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3622
- ALTER TABLE "workday_capacity_envelopes" ADD CONSTRAINT "workday_capacity_envelopes_workday_run_id_capacity_workday_runs_id_fk" FOREIGN KEY ("workday_run_id") REFERENCES "public"."capacity_workday_runs"("id") ON DELETE restrict ON UPDATE no action;
3623
- ALTER TABLE "workday_capacity_envelopes" ADD CONSTRAINT "fk_workday_capacity_envelopes_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3624
- ALTER TABLE "workday_capacity_envelopes" ADD CONSTRAINT "fk_workday_capacity_envelopes_project" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE restrict ON UPDATE no action;
3625
- ALTER TABLE "workday_capacity_envelopes" ADD CONSTRAINT "fk_workday_capacity_envelopes_allocation" FOREIGN KEY ("allocation_set_id") REFERENCES "public"."capacity_allocation_sets"("id") ON DELETE restrict ON UPDATE no action;
3626
- ALTER TABLE "workday_planning_participants" ADD CONSTRAINT "fk_workday_planning_participants_session" FOREIGN KEY ("session_id") REFERENCES "public"."workday_planning_sessions"("id") ON DELETE cascade ON UPDATE no action;
3627
- ALTER TABLE "workday_planning_participants" ADD CONSTRAINT "fk_workday_planning_participants_signal" FOREIGN KEY ("requested_by_signal_id") REFERENCES "public"."agent_signals"("id") ON DELETE restrict ON UPDATE no action;
3628
- ALTER TABLE "workday_planning_sessions" ADD CONSTRAINT "fk_workday_planning_sessions_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3629
- ALTER TABLE "workday_planning_sessions" ADD CONSTRAINT "fk_workday_planning_sessions_run" FOREIGN KEY ("workday_run_id") REFERENCES "public"."capacity_workday_runs"("id") ON DELETE restrict ON UPDATE no action;
3630
- ALTER TABLE "workday_planning_waves" ADD CONSTRAINT "fk_workday_planning_waves_session" FOREIGN KEY ("session_id") REFERENCES "public"."workday_planning_sessions"("id") ON DELETE cascade ON UPDATE no action;
3631
- ALTER TABLE "seed_team_membership_claims" ADD CONSTRAINT "fk_seed_team_membership_claim_team" FOREIGN KEY ("team_id") REFERENCES "public"."teams"("id") ON DELETE cascade ON UPDATE no action;
3632
- ALTER TABLE "seed_team_membership_claims" ADD CONSTRAINT "fk_seed_team_membership_claim_membership" FOREIGN KEY ("membership_id") REFERENCES "public"."team_memberships"("id") ON DELETE set null ON UPDATE no action;
3633
- CREATE INDEX "idx_better_auth_account_userId" ON "better_auth_account" USING btree ("userId");
3634
- CREATE UNIQUE INDEX "idx_better_auth_account_provider_account" ON "better_auth_account" USING btree ("providerId","accountId");
3635
- CREATE INDEX "idx_better_auth_verification_identifier" ON "better_auth_verification" USING btree ("identifier");
3636
- CREATE UNIQUE INDEX "idx_capacity_execution_providers_provider_adapter" ON "capacity_execution_providers" USING btree ("capacity_provider_id","adapter","id");
3637
- CREATE INDEX "idx_capacity_execution_providers_provider_status" ON "capacity_execution_providers" USING btree ("capacity_provider_id","status","updated_at");
3638
- CREATE UNIQUE INDEX "idx_capacity_provider_credential_authorizations_generation" ON "capacity_provider_credential_issuance_authorizations" USING btree ("membership_id","generation");
3639
- CREATE UNIQUE INDEX "idx_capacity_provider_credential_authorizations_idempotency" ON "capacity_provider_credential_issuance_authorizations" USING btree ("membership_id","idempotency_key");
3640
- CREATE INDEX "idx_capacity_provider_credential_authorizations_pending" ON "capacity_provider_credential_issuance_authorizations" USING btree ("membership_id","status","created_at");
3641
- CREATE UNIQUE INDEX "idx_capacity_provider_identity_rotations_idempotency" ON "capacity_provider_identity_rotations" USING btree ("capacity_provider_id","idempotency_key");
3642
- CREATE UNIQUE INDEX "idx_capacity_provider_identity_rotations_version" ON "capacity_provider_identity_rotations" USING btree ("capacity_provider_id","to_identity_version");
3643
- CREATE UNIQUE INDEX "idx_capacity_provider_lanes_provider_execution_name" ON "capacity_provider_lanes" USING btree ("capacity_provider_id","execution_provider_id","display_name");
3644
- CREATE INDEX "idx_capacity_provider_lanes_provider_status" ON "capacity_provider_lanes" USING btree ("capacity_provider_id","status","updated_at");
3645
- CREATE UNIQUE INDEX "idx_capacity_provider_registration_request_pending" ON "capacity_provider_registration_requests" USING btree ("team_id","capacity_provider_id","registration_key_generation");
3646
- CREATE UNIQUE INDEX "idx_capacity_provider_registration_request_proof" ON "capacity_provider_registration_requests" USING btree ("provider_fingerprint","proof_jti");
3647
- CREATE UNIQUE INDEX "idx_capacity_provider_registration_request_idempotency" ON "capacity_provider_registration_requests" USING btree ("team_id","idempotency_key");
3648
- CREATE INDEX "idx_capacity_provider_registration_requests_team" ON "capacity_provider_registration_requests" USING btree ("team_id","status","created_at");
3649
- CREATE INDEX "idx_capacity_provider_registration_requests_provider" ON "capacity_provider_registration_requests" USING btree ("capacity_provider_id","status","created_at");
3650
- CREATE UNIQUE INDEX "idx_capacity_provider_team_memberships_unique" ON "capacity_provider_team_memberships" USING btree ("team_id","capacity_provider_id");
3651
- CREATE INDEX "idx_capacity_provider_team_memberships_team" ON "capacity_provider_team_memberships" USING btree ("team_id","status","updated_at");
3652
- CREATE INDEX "idx_capacity_provider_team_memberships_provider" ON "capacity_provider_team_memberships" USING btree ("capacity_provider_id","status","updated_at");
3653
- CREATE UNIQUE INDEX "idx_capacity_providers_fingerprint" ON "capacity_providers" USING btree ("fingerprint");
3654
- CREATE INDEX "idx_capacity_providers_status" ON "capacity_providers" USING btree ("status","updated_at");
3655
- CREATE UNIQUE INDEX "idx_team_capacity_registration_keys_generation" ON "team_capacity_registration_keys" USING btree ("team_id","generation");
3656
- CREATE UNIQUE INDEX "idx_team_capacity_registration_keys_prefix" ON "team_capacity_registration_keys" USING btree ("key_prefix");
3657
- CREATE UNIQUE INDEX "idx_team_capacity_registration_keys_rotation" ON "team_capacity_registration_keys" USING btree ("team_id","rotation_idempotency_key");
3658
- CREATE INDEX "idx_team_capacity_registration_keys_current" ON "team_capacity_registration_keys" USING btree ("team_id","status","generation");
3659
- CREATE INDEX "idx_team_invites_team_status" ON "team_invites" USING btree ("team_id","status","created_at");
3660
- CREATE INDEX "idx_team_invites_token_prefix" ON "team_invites" USING btree ("token_prefix");
3661
- CREATE UNIQUE INDEX "idx_agent_lab_view_state_owner_entity" ON "agent_lab_view_state" USING btree ("user_id","team_id","namespace","entity_kind","entity_id");
3662
- CREATE INDEX "idx_agent_lab_view_state_owner_namespace" ON "agent_lab_view_state" USING btree ("user_id","team_id","namespace","updated_at");
3663
- CREATE INDEX "idx_cursor_state_updated" ON "cursor_state" USING btree ("updated_at");
3664
- CREATE INDEX "idx_lease_state_status_expires" ON "lease_state" USING btree ("status","lease_expires_at");
3665
- CREATE INDEX "idx_lease_state_claimed_by" ON "lease_state" USING btree ("claimed_by","updated_at");
3666
- CREATE UNIQUE INDEX "idx_credit_conversion_profiles_profile_key" ON "credit_conversion_profiles" USING btree ("task_signature","execution_profile_id","execution_provider_kind","native_unit");
3667
- CREATE INDEX "idx_credit_conversion_profiles_kind_unit" ON "credit_conversion_profiles" USING btree ("execution_provider_kind","native_unit","updated_at");
3668
- CREATE INDEX "idx_message_queue_claimable" ON "message_queue" USING btree ("status","available_at","priority");
3669
- CREATE INDEX "idx_message_queue_related" ON "message_queue" USING btree ("related_model","related_id","created_at");
3670
- CREATE INDEX "idx_notification_email_deliveries_due" ON "notification_email_deliveries" USING btree ("status","due_at");
3671
- CREATE INDEX "idx_notification_events_project" ON "notification_events" USING btree ("project_id","created_at");
3672
- CREATE UNIQUE INDEX "idx_platform_operation_events_seq" ON "platform_operation_events" USING btree ("operation_id","seq");
3673
- CREATE UNIQUE INDEX "idx_platform_operations_idempotency" ON "platform_operations" USING btree ("namespace","operation","idempotency_key");
3674
- CREATE INDEX "idx_platform_operations_runnable" ON "platform_operations" USING btree ("status","created_at");
3675
- CREATE INDEX "idx_runtime_records_type_lookup_updated" ON "runtime_records" USING btree ("record_type","lookup_key","updated_at");
3676
- CREATE INDEX "idx_runtime_records_type_status_updated" ON "runtime_records" USING btree ("record_type","status","updated_at");
3677
- CREATE INDEX "idx_seed_runs_seed_created" ON "seed_runs" USING btree ("seed_name","created_at");
3678
- CREATE INDEX "idx_seed_runs_state_created" ON "seed_runs" USING btree ("state","created_at");
3679
- CREATE INDEX "idx_session_events_team_sequence" ON "session_events" USING btree ("team_id","sequence");
3680
- CREATE INDEX "idx_session_events_expiry" ON "session_events" USING btree ("expires_at");
3681
- CREATE UNIQUE INDEX "idx_user_notifications_event" ON "user_notifications" USING btree ("user_id","event_id");
3682
- CREATE INDEX "idx_user_notifications_user" ON "user_notifications" USING btree ("user_id","read_at","created_at");
3683
- CREATE INDEX "idx_credential_envelopes_connection_status" ON "credential_envelopes" USING btree ("connection_id","status");
3684
- CREATE UNIQUE INDEX "idx_credential_envelopes_profile_field" ON "credential_envelopes" USING btree ("credential_profile_id","field_key","key_version");
3685
- CREATE INDEX "idx_external_vault_bindings_team_status" ON "external_vault_bindings" USING btree ("team_id","status");
3686
- CREATE INDEX "idx_secret_operation_leases_team_status" ON "secret_operation_leases" USING btree ("team_id","status","expires_at");
3687
- CREATE UNIQUE INDEX "idx_secret_operation_leases_idempotency" ON "secret_operation_leases" USING btree ("team_id","idempotency_key");
3688
- CREATE INDEX "idx_team_service_capabilities_team_type" ON "team_service_capability_bindings" USING btree ("team_id","capability_type","status");
3689
- CREATE UNIQUE INDEX "idx_team_service_capabilities_connection_type" ON "team_service_capability_bindings" USING btree ("connection_id","capability_type");
3690
- CREATE INDEX "idx_team_service_connections_team_status" ON "team_service_connections" USING btree ("team_id","status","updated_at");
3691
- CREATE UNIQUE INDEX "idx_team_service_connections_team_provider_name" ON "team_service_connections" USING btree ("team_id","provider_id","display_name");
3692
- CREATE INDEX "idx_team_service_credentials_connection" ON "team_service_credential_profiles" USING btree ("connection_id","status");
3693
- CREATE UNIQUE INDEX "idx_team_service_credentials_connection_definition" ON "team_service_credential_profiles" USING btree ("connection_id","definition_id");
3694
- CREATE INDEX "idx_team_vault_grants_team_status" ON "team_vault_grants" USING btree ("team_id","status");
3695
- CREATE UNIQUE INDEX "idx_team_vault_grants_team_user_key" ON "team_vault_grants" USING btree ("team_id","user_id","key_version");
3696
- CREATE INDEX "idx_user_vault_keys_user_status" ON "user_vault_keys" USING btree ("user_id","status");
3697
- CREATE UNIQUE INDEX "idx_user_vault_keys_user_version" ON "user_vault_keys" USING btree ("user_id","version");
3698
- CREATE INDEX "idx_agent_fallback_outputs_project_created" ON "agent_fallback_outputs" USING btree ("project_id","created_at");
3699
- CREATE INDEX "idx_agent_fallback_outputs_project_mode_status" ON "agent_fallback_outputs" USING btree ("project_id","mode","status","created_at");
3700
- CREATE INDEX "idx_agent_fallback_outputs_assignment" ON "agent_fallback_outputs" USING btree ("assignment_id","created_at");
3701
- CREATE UNIQUE INDEX "idx_agent_invocations_idempotency" ON "agent_invocation_requests" USING btree ("team_id","idempotency_key");
3702
- CREATE INDEX "idx_agent_invocations_decision" ON "agent_invocation_requests" USING btree ("decision_id","status","requested_at");
3703
- CREATE INDEX "idx_agent_invocations_admission" ON "agent_invocation_requests" USING btree ("team_id","status","priority_class","available_at");
3704
- CREATE INDEX "idx_agent_invocations_discussion_agent" ON "agent_invocation_requests" USING btree ("project_id","agent_id","subject_digest","status");
3705
- CREATE INDEX "idx_agent_mode_runs_assignment" ON "agent_mode_runs" USING btree ("provider_assignment_id","status");
3706
- CREATE INDEX "idx_agent_mode_runs_project_mode" ON "agent_mode_runs" USING btree ("project_id","mode","created_at");
3707
- CREATE INDEX "idx_agent_mode_runs_provider" ON "agent_mode_runs" USING btree ("capacity_provider_id","created_at");
3708
- CREATE INDEX "idx_capacity_workday_runs_team_status" ON "capacity_workday_runs" USING btree ("team_id","status","updated_at");
3709
- CREATE INDEX "idx_capacity_workday_runs_provider" ON "capacity_workday_runs" USING btree ("capacity_provider_id","updated_at");
3710
- CREATE UNIQUE INDEX "idx_decision_assignment_graphs_version" ON "decision_assignment_graphs" USING btree ("decision_id","version");
3711
- CREATE UNIQUE INDEX "idx_decision_assignment_graphs_one_active" ON "decision_assignment_graphs" USING btree ("decision_id") WHERE "decision_assignment_graphs"."active" = 1;
3712
- CREATE INDEX "idx_decision_assignment_graphs_decision" ON "decision_assignment_graphs" USING btree ("decision_id","active","version");
3713
- CREATE INDEX "idx_decision_execution_inputs_decision" ON "decision_execution_inputs" USING btree ("decision_id","status","created_at");
3714
- CREATE INDEX "idx_decision_execution_inputs_graph_node" ON "decision_execution_inputs" USING btree ("decision_id","work_graph_node_id","status");
3715
- CREATE UNIQUE INDEX "idx_decision_execution_inputs_graph_scope" ON "decision_execution_inputs" USING btree ("decision_id","work_graph_node_id","scope_hash") WHERE "decision_execution_inputs"."work_graph_node_id" IS NOT NULL;
3716
- CREATE INDEX "idx_decision_execution_inputs_project" ON "decision_execution_inputs" USING btree ("project_id","status","mode","created_at");
3717
- CREATE UNIQUE INDEX "idx_decision_planning_statuses_decision" ON "decision_planning_statuses" USING btree ("decision_id");
3718
- CREATE INDEX "idx_decision_planning_statuses_project" ON "decision_planning_statuses" USING btree ("project_id","execution_readiness","updated_at");
3719
- CREATE INDEX "idx_deliverable_contracts_decision" ON "deliverable_contracts" USING btree ("decision_id","status","deliverable_type");
3720
- CREATE INDEX "idx_deliverable_manifests_contract" ON "deliverable_manifests" USING btree ("deliverable_contract_id","submitted_at");
3721
- CREATE UNIQUE INDEX "idx_research_workflows_idempotency" ON "research_workflows" USING btree ("project_id","idempotency_key");
3722
- CREATE INDEX "idx_research_workflows_question" ON "research_workflows" USING btree ("project_id","question_ref","status","updated_at");
3723
- CREATE INDEX "idx_structured_agent_estimates_decision" ON "structured_agent_estimates" USING btree ("decision_id","status","created_at");
3724
- CREATE UNIQUE INDEX "idx_agent_context_query_checks_idempotency" ON "agent_context_query_checks" USING btree ("team_id","idempotency_key");
3725
- CREATE INDEX "idx_agent_context_query_checks_latest" ON "agent_context_query_checks" USING btree ("project_id","definition_kind","definition_id","definition_revision","checked_at");
3726
- CREATE UNIQUE INDEX "idx_agent_client_actions_idempotency" ON "agent_client_actions" USING btree ("assignment_id","idempotency_key");
3727
- CREATE INDEX "idx_agent_client_actions_session_status" ON "agent_client_actions" USING btree ("session_id","status","created_at");
3728
- CREATE INDEX "idx_agent_client_sessions_scope" ON "agent_client_sessions" USING btree ("user_id","team_id","project_id","status","expires_at");
3729
- CREATE UNIQUE INDEX "idx_agent_operation_handoffs_idempotency" ON "agent_operation_handoffs" USING btree ("assignment_id","idempotency_key");
3730
- CREATE INDEX "idx_agent_operation_handoffs_discussion" ON "agent_operation_handoffs" USING btree ("project_id","discussion_id","status","created_at");
3731
- CREATE UNIQUE INDEX "idx_capacity_allocation_sets_team_version" ON "capacity_allocation_sets" USING btree ("team_id","version");
3732
- CREATE INDEX "idx_capacity_allocation_sets_team_status" ON "capacity_allocation_sets" USING btree ("team_id","status","effective_from");
3733
- CREATE INDEX "idx_capacity_allocation_sets_team_created" ON "capacity_allocation_sets" USING btree ("team_id","created_at");
3734
- CREATE UNIQUE INDEX "idx_capacity_ledger_settlement_key" ON "capacity_ledger_entries" USING btree ("settlement_key");
3735
- CREATE UNIQUE INDEX "idx_capacity_ledger_reservation_phase" ON "capacity_ledger_entries" USING btree ("reservation_id","phase");
3736
- CREATE INDEX "idx_capacity_ledger_assignment" ON "capacity_ledger_entries" USING btree ("assignment_id","created_at");
3737
- CREATE INDEX "idx_capacity_ledger_project_workday_created" ON "capacity_ledger_entries" USING btree ("project_id","work_day_id","created_at");
3738
- CREATE INDEX "idx_capacity_provider_assignments_membership_status" ON "capacity_provider_assignments" USING btree ("membership_id","status","lease_expires_at");
3739
- CREATE INDEX "idx_capacity_provider_assignments_provider_status" ON "capacity_provider_assignments" USING btree ("capacity_provider_id","status","lease_expires_at");
3740
- CREATE INDEX "idx_capacity_provider_assignments_lane_status" ON "capacity_provider_assignments" USING btree ("lane_id","status","lease_expires_at");
3741
- CREATE INDEX "idx_capacity_provider_assignments_project_mode" ON "capacity_provider_assignments" USING btree ("project_id","mode","status");
3742
- CREATE INDEX "idx_capacity_provider_assignments_lease" ON "capacity_provider_assignments" USING btree ("capacity_provider_id","lease_state","lease_expires_at");
3743
- CREATE INDEX "idx_capacity_provider_assignments_runner" ON "capacity_provider_assignments" USING btree ("runner_id","lease_state");
3744
- CREATE UNIQUE INDEX "idx_capacity_provider_assignments_synthesis_key" ON "capacity_provider_assignments" USING btree ("team_id","synthesis_key");
3745
- CREATE INDEX "idx_capacity_provider_assignments_decision" ON "capacity_provider_assignments" USING btree ("decision_id","status");
3746
- CREATE INDEX "idx_capacity_provider_assignments_team_created" ON "capacity_provider_assignments" USING btree ("team_id","created_at");
3747
- CREATE UNIQUE INDEX "idx_capacity_usage_actuals_idempotency" ON "capacity_usage_actuals" USING btree ("idempotency_key");
3748
- CREATE UNIQUE INDEX "idx_capacity_usage_actuals_attempt_dimension" ON "capacity_usage_actuals" USING btree ("assignment_id","assignment_attempt","usage_dimension");
3749
- CREATE INDEX "idx_capacity_usage_actuals_project_signature" ON "capacity_usage_actuals" USING btree ("project_id","task_signature","created_at");
3750
- CREATE INDEX "idx_capacity_usage_actuals_project_signature_profile" ON "capacity_usage_actuals" USING btree ("project_id","task_signature","execution_profile_id","created_at");
3751
- CREATE INDEX "idx_capacity_usage_actuals_execution_provider" ON "capacity_usage_actuals" USING btree ("execution_provider_id","created_at");
3752
- CREATE INDEX "idx_capacity_usage_actuals_lane" ON "capacity_usage_actuals" USING btree ("lane_id","created_at");
3753
- CREATE UNIQUE INDEX "idx_project_agent_classes_project_slug" ON "project_agent_classes" USING btree ("project_id","slug");
3754
- CREATE INDEX "idx_project_agent_classes_team_project" ON "project_agent_classes" USING btree ("team_id","project_id","status");
3755
- CREATE INDEX "idx_capacity_provider_availability_sessions_membership_status" ON "capacity_provider_availability_sessions" USING btree ("membership_id","status","expires_at");
3756
- CREATE INDEX "idx_capacity_provider_availability_sessions_provider_status" ON "capacity_provider_availability_sessions" USING btree ("capacity_provider_id","status","refreshed_at");
3757
- CREATE INDEX "idx_capacity_provider_availability_sessions_team_status" ON "capacity_provider_availability_sessions" USING btree ("team_id","status","refreshed_at");
3758
- CREATE UNIQUE INDEX "idx_capacity_admission_counters_scope" ON "capacity_admission_counters" USING btree ("team_id","scope","scope_id","period_key");
3759
- CREATE INDEX "idx_capacity_admission_counters_team" ON "capacity_admission_counters" USING btree ("team_id","updated_at");
3760
- CREATE INDEX "idx_capacity_audit_events_team_created" ON "capacity_audit_events" USING btree ("team_id","created_at");
3761
- CREATE INDEX "idx_capacity_audit_events_provider_created" ON "capacity_audit_events" USING btree ("capacity_provider_id","created_at");
3762
- CREATE INDEX "idx_capacity_audit_events_membership_created" ON "capacity_audit_events" USING btree ("membership_id","created_at");
3763
- CREATE INDEX "idx_capacity_audit_events_resource" ON "capacity_audit_events" USING btree ("resource_type","resource_id","created_at");
3764
- CREATE UNIQUE INDEX "idx_capacity_audit_events_idempotency" ON "capacity_audit_events" USING btree ("team_id","action","resource_type","resource_id","idempotency_key");
3765
- CREATE INDEX "idx_capacity_grants_team_project" ON "capacity_grants" USING btree ("team_id","project_id","status");
3766
- CREATE INDEX "idx_capacity_grants_membership" ON "capacity_grants" USING btree ("membership_id","status","expires_at");
3767
- CREATE INDEX "idx_capacity_grants_provider" ON "capacity_grants" USING btree ("capacity_provider_id","status");
3768
- CREATE UNIQUE INDEX "idx_capacity_operation_receipts_idempotency" ON "capacity_operation_receipts" USING btree ("team_id","operation","idempotency_key");
3769
- CREATE INDEX "idx_capacity_operation_receipts_resource" ON "capacity_operation_receipts" USING btree ("team_id","resource_type","resource_id","created_at");
3770
- CREATE UNIQUE INDEX "idx_capacity_provider_access_tokens_prefix" ON "capacity_provider_access_tokens" USING btree ("token_prefix");
3771
- CREATE UNIQUE INDEX "idx_capacity_provider_access_tokens_issue" ON "capacity_provider_access_tokens" USING btree ("membership_id","idempotency_key");
3772
- CREATE INDEX "idx_capacity_provider_access_tokens_membership" ON "capacity_provider_access_tokens" USING btree ("membership_id","status","expires_at");
3773
- CREATE INDEX "idx_capacity_provider_proof_nonces_expiry" ON "capacity_provider_proof_nonces" USING btree ("expires_at");
3774
- CREATE INDEX "idx_capacity_provider_registration_rate_limits_expiry" ON "capacity_provider_registration_rate_limits" USING btree ("expires_at");
3775
- CREATE UNIQUE INDEX "idx_capacity_provider_team_credentials_prefix" ON "capacity_provider_team_credentials" USING btree ("key_prefix");
3776
- CREATE UNIQUE INDEX "idx_capacity_provider_team_credentials_issue" ON "capacity_provider_team_credentials" USING btree ("membership_id","issue_idempotency_key");
3777
- CREATE UNIQUE INDEX "idx_capacity_provider_team_credentials_generation" ON "capacity_provider_team_credentials" USING btree ("membership_id","issuance_generation");
3778
- CREATE INDEX "idx_capacity_provider_team_credentials_membership" ON "capacity_provider_team_credentials" USING btree ("membership_id","status","created_at");
3779
- CREATE UNIQUE INDEX "idx_capacity_reservation_counter_claim" ON "capacity_reservation_counter_claims" USING btree ("reservation_id","counter_id");
3780
- CREATE INDEX "idx_capacity_reservation_counter_counter" ON "capacity_reservation_counter_claims" USING btree ("counter_id","created_at");
3781
- CREATE UNIQUE INDEX "idx_capacity_reservations_idempotency" ON "capacity_reservations" USING btree ("team_id","idempotency_key");
3782
- CREATE INDEX "idx_capacity_reservations_project_workday_state" ON "capacity_reservations" USING btree ("project_id","work_day_id","state","created_at");
3783
- CREATE INDEX "idx_capacity_reservations_membership_state" ON "capacity_reservations" USING btree ("membership_id","state","created_at");
3784
- CREATE INDEX "idx_capacity_reservations_provider_state" ON "capacity_reservations" USING btree ("capacity_provider_id","state","created_at");
3785
- CREATE INDEX "idx_capacity_reservations_execution_provider_state" ON "capacity_reservations" USING btree ("execution_provider_id","state","created_at");
3786
- CREATE INDEX "idx_capacity_reservations_lane_state" ON "capacity_reservations" USING btree ("lane_id","state","created_at");
3787
- CREATE INDEX "idx_agent_capacity_plans_decision" ON "agent_capacity_plans" USING btree ("decision_id","status","created_at");
3788
- CREATE INDEX "idx_agent_capacity_plans_project" ON "agent_capacity_plans" USING btree ("project_id","status","created_at");
3789
- CREATE INDEX "idx_agent_capacity_plans_workday" ON "agent_capacity_plans" USING btree ("work_day_id","status","created_at");
3790
- CREATE UNIQUE INDEX "idx_agent_signals_causation" ON "agent_signals" USING btree ("assignment_id","contract_id","subject_id","causation_id");
3791
- CREATE INDEX "idx_agent_signals_workday" ON "agent_signals" USING btree ("workday_run_id","contract_id","created_at");
3792
- CREATE INDEX "idx_agent_signals_subject" ON "agent_signals" USING btree ("team_id","project_id","subject_kind","subject_id","created_at");
3793
- CREATE INDEX "idx_agent_signals_commit" ON "agent_signals" USING btree ("project_id","commit_sha");
3794
- CREATE UNIQUE INDEX "idx_capacity_workday_demands_idempotency" ON "capacity_workday_demands" USING btree ("team_id","idempotency_key");
3795
- CREATE UNIQUE INDEX "idx_capacity_workday_demands_assignment" ON "capacity_workday_demands" USING btree ("assignment_id");
3796
- CREATE UNIQUE INDEX "idx_capacity_workday_demands_claim" ON "capacity_workday_demands" USING btree ("claim_token");
3797
- CREATE INDEX "idx_capacity_workday_demands_ready" ON "capacity_workday_demands" USING btree ("team_id","status","available_at","priority");
3798
- CREATE INDEX "idx_capacity_workday_demands_run" ON "capacity_workday_demands" USING btree ("workday_run_id","project_id","status","created_at");
3799
- CREATE UNIQUE INDEX "idx_capacity_workday_events_run_index" ON "capacity_workday_events" USING btree ("run_id","event_index");
3800
- CREATE INDEX "idx_capacity_workday_events_project" ON "capacity_workday_events" USING btree ("project_id","created_at");
3801
- CREATE UNIQUE INDEX "idx_capacity_workday_participation_cycles_number" ON "capacity_workday_participation_cycles" USING btree ("workday_run_id","project_id","cycle_number");
3802
- CREATE INDEX "idx_capacity_workday_participation_cycles_status" ON "capacity_workday_participation_cycles" USING btree ("workday_run_id","status","project_id");
3803
- CREATE UNIQUE INDEX "idx_capacity_workday_participation_entries_agent" ON "capacity_workday_participation_entries" USING btree ("cycle_id","agent_id");
3804
- CREATE UNIQUE INDEX "idx_capacity_workday_participation_entries_demand" ON "capacity_workday_participation_entries" USING btree ("demand_id");
3805
- CREATE INDEX "idx_capacity_workday_participation_entries_status" ON "capacity_workday_participation_entries" USING btree ("workday_run_id","project_id","status","agent_id");
3806
- CREATE INDEX "idx_capacity_workday_schedules_due" ON "capacity_workday_schedules" USING btree ("status","next_run_at");
3807
- CREATE INDEX "idx_capacity_workday_schedules_team" ON "capacity_workday_schedules" USING btree ("team_id","updated_at");
3808
- CREATE INDEX "idx_treedx_project_proxy_audit_project" ON "treedx_project_proxy_audit" USING btree ("project_id","created_at");
3809
- CREATE INDEX "idx_treedx_project_proxy_audit_assignment" ON "treedx_project_proxy_audit" USING btree ("assignment_id","created_at");
3810
- CREATE INDEX "idx_treedx_project_proxy_audit_result" ON "treedx_project_proxy_audit" USING btree ("project_id","result_status","created_at");
3811
- CREATE INDEX "idx_treedx_proxy_handles_assignment" ON "treedx_proxy_handles" USING btree ("assignment_id","status","expires_at");
3812
- CREATE INDEX "idx_treedx_proxy_handles_project" ON "treedx_proxy_handles" USING btree ("project_id","status","updated_at");
3813
- CREATE INDEX "idx_workday_capacity_envelopes_run_status" ON "workday_capacity_envelopes" USING btree ("workday_run_id","status","id");
3814
- CREATE INDEX "idx_workday_capacity_envelopes_project_status" ON "workday_capacity_envelopes" USING btree ("project_id","status","created_at");
3815
- CREATE INDEX "idx_workday_capacity_envelopes_team_status" ON "workday_capacity_envelopes" USING btree ("team_id","status","created_at");
3816
- CREATE UNIQUE INDEX "idx_workday_planning_participants_node" ON "workday_planning_participants" USING btree ("session_id","node_id");
3817
- CREATE INDEX "idx_workday_planning_participants_agent" ON "workday_planning_participants" USING btree ("session_id","agent_id");
3818
- CREATE UNIQUE INDEX "idx_workday_planning_sessions_run" ON "workday_planning_sessions" USING btree ("workday_run_id");
3819
- CREATE UNIQUE INDEX "idx_workday_planning_waves_order" ON "workday_planning_waves" USING btree ("session_id","round","wave");
3820
- CREATE INDEX "idx_better_auth_session_token" ON "better_auth_session" USING btree ("token");
3821
- CREATE INDEX "idx_better_auth_session_userId" ON "better_auth_session" USING btree ("userId");
3822
- CREATE UNIQUE INDEX "idx_better_auth_user_username" ON "better_auth_user" USING btree ("username");
3823
- CREATE INDEX "idx_commerce_capacity_inquiries_listing_status" ON "commerce_capacity_listing_inquiries" USING btree ("listing_id","status","updated_at");
3824
- CREATE INDEX "idx_commerce_capacity_inquiries_buyer_team" ON "commerce_capacity_listing_inquiries" USING btree ("buyer_team_id","status","updated_at");
3825
- CREATE INDEX "idx_commerce_capacity_inquiries_buyer_user" ON "commerce_capacity_listing_inquiries" USING btree ("buyer_user_id","status","updated_at");
3826
- CREATE INDEX "idx_commerce_capacity_inquiries_vendor_status" ON "commerce_capacity_listing_inquiries" USING btree ("vendor_id","status","updated_at");
3827
- CREATE INDEX "idx_commerce_capacity_inquiries_seller_status" ON "commerce_capacity_listing_inquiries" USING btree ("seller_team_id","status","updated_at");
3828
- CREATE INDEX "idx_commerce_capacity_inquiries_project" ON "commerce_capacity_listing_inquiries" USING btree ("related_project_id","status");
3829
- CREATE INDEX "idx_commerce_capacity_inquiries_workday" ON "commerce_capacity_listing_inquiries" USING btree ("related_workday_id","status");
3830
- CREATE UNIQUE INDEX "idx_commerce_capacity_listings_product" ON "commerce_capacity_listings" USING btree ("product_id");
3831
- CREATE INDEX "idx_commerce_capacity_listings_vendor_status" ON "commerce_capacity_listings" USING btree ("vendor_id","status","updated_at");
3832
- CREATE INDEX "idx_commerce_capacity_listings_seller_status" ON "commerce_capacity_listings" USING btree ("seller_team_id","status","updated_at");
3833
- CREATE INDEX "idx_commerce_capacity_listings_provider_status" ON "commerce_capacity_listings" USING btree ("capacity_provider_id","status");
3834
- CREATE INDEX "idx_commerce_capacity_listings_execution_provider_status" ON "commerce_capacity_listings" USING btree ("execution_provider_id","status");
3835
- CREATE INDEX "idx_commerce_capacity_listings_access_status" ON "commerce_capacity_listings" USING btree ("access_level","status","updated_at");
3836
- CREATE UNIQUE INDEX "idx_commerce_webhook_events_provider_event" ON "commerce_webhook_events" USING btree ("provider","environment","event_id");
3837
- CREATE INDEX "idx_commerce_webhook_events_status_received" ON "commerce_webhook_events" USING btree ("status","received_at");
3838
- CREATE INDEX "idx_commerce_webhook_events_connected_type" ON "commerce_webhook_events" USING btree ("connected_account_id","event_type","received_at");
3839
- CREATE INDEX "idx_commerce_webhook_events_order" ON "commerce_webhook_events" USING btree ("related_order_id");
3840
- CREATE INDEX "idx_commerce_webhook_events_subscription" ON "commerce_webhook_events" USING btree ("related_subscription_id");
3841
- CREATE INDEX "idx_project_summary_snapshots_team_generated" ON "project_summary_snapshots" USING btree ("team_id","generated_at");
3842
- CREATE INDEX "idx_team_inbox_items_team_created" ON "team_inbox_items" USING btree ("team_id","created_at");
3843
- CREATE UNIQUE INDEX "idx_catalog_artifact_versions_item_version" ON "catalog_artifact_versions" USING btree ("item_id","version");
3844
- CREATE INDEX "idx_catalog_artifact_versions_team_kind" ON "catalog_artifact_versions" USING btree ("team_id","kind","published_at");
3845
- CREATE UNIQUE INDEX "idx_catalog_item_collaborators_subject_role" ON "catalog_item_collaborators" USING btree ("item_id","subject_type","subject_id","role");
3846
- CREATE UNIQUE INDEX "idx_catalog_items_team_kind_slug" ON "catalog_items" USING btree ("team_id","kind","slug");
3847
- CREATE INDEX "idx_catalog_items_team_kind" ON "catalog_items" USING btree ("team_id","kind","updated_at");
3848
- CREATE INDEX "idx_catalog_items_visibility_listing" ON "catalog_items" USING btree ("visibility","listing_enabled","updated_at");
3849
- CREATE INDEX "idx_commerce_contributions_product_effective" ON "commerce_contributions" USING btree ("product_id","effective_at");
3850
- CREATE INDEX "idx_commerce_contributions_version_effective" ON "commerce_contributions" USING btree ("product_version_id","effective_at");
3851
- CREATE INDEX "idx_commerce_contributions_contributor" ON "commerce_contributions" USING btree ("contributor_type","contributor_id");
3852
- CREATE INDEX "idx_commerce_governance_policies_product" ON "commerce_governance_policies" USING btree ("product_id","status");
3853
- CREATE INDEX "idx_commerce_governance_policies_team" ON "commerce_governance_policies" USING btree ("team_id","policy_kind","status");
3854
- CREATE INDEX "idx_commerce_ownership_product_effective" ON "commerce_ownership_records" USING btree ("product_id","effective_at");
3855
- CREATE INDEX "idx_commerce_ownership_seller_effective" ON "commerce_ownership_records" USING btree ("seller_team_id","effective_at");
3856
- CREATE INDEX "idx_commerce_ownership_model_effective" ON "commerce_ownership_records" USING btree ("model","effective_at");
3857
- CREATE INDEX "idx_commerce_ownership_transfers_product" ON "commerce_ownership_transfers" USING btree ("product_id","effective_at");
3858
- CREATE INDEX "idx_commerce_ownership_transfers_product_status" ON "commerce_ownership_transfers" USING btree ("product_id","status","effective_at");
3859
- CREATE INDEX "idx_commerce_ownership_transfers_from_status" ON "commerce_ownership_transfers" USING btree ("from_ownership_record_id","status");
3860
- CREATE INDEX "idx_commerce_ownership_transfers_to_status" ON "commerce_ownership_transfers" USING btree ("to_ownership_record_id","status");
3861
- CREATE UNIQUE INDEX "idx_commerce_products_team_kind_slug" ON "commerce_products" USING btree ("seller_team_id","kind","slug");
3862
- CREATE INDEX "idx_commerce_products_vendor_status" ON "commerce_products" USING btree ("vendor_id","status","updated_at");
3863
- CREATE INDEX "idx_commerce_products_catalog_item" ON "commerce_products" USING btree ("catalog_item_id");
3864
- CREATE INDEX "idx_commerce_products_ownership_model" ON "commerce_products" USING btree ("ownership_model","updated_at");
3865
- CREATE INDEX "idx_commerce_stewards_product_role" ON "commerce_stewardship_assignments" USING btree ("product_id","role");
3866
- CREATE INDEX "idx_commerce_stewards_ownership_role" ON "commerce_stewardship_assignments" USING btree ("ownership_record_id","role");
3867
- CREATE INDEX "idx_commerce_stewards_assignee" ON "commerce_stewardship_assignments" USING btree ("assignee_type","assignee_id");
3868
- CREATE INDEX "idx_commerce_succession_events_product" ON "commerce_succession_events" USING btree ("product_id","event_type","created_at");
3869
- CREATE INDEX "idx_commerce_succession_events_ownership" ON "commerce_succession_events" USING btree ("ownership_record_id","event_type");
3870
- CREATE INDEX "idx_commerce_succession_events_successor" ON "commerce_succession_events" USING btree ("successor_type","successor_id");
3871
- CREATE UNIQUE INDEX "idx_commerce_vendor_stripe_accounts_vendor_env" ON "commerce_vendor_stripe_accounts" USING btree ("vendor_id","environment");
3872
- CREATE UNIQUE INDEX "idx_commerce_vendor_stripe_accounts_stripe_env" ON "commerce_vendor_stripe_accounts" USING btree ("stripe_account_id","environment");
3873
- CREATE INDEX "idx_commerce_vendor_stripe_accounts_team_env" ON "commerce_vendor_stripe_accounts" USING btree ("team_id","environment");
3874
- CREATE INDEX "idx_commerce_vendor_stripe_accounts_status" ON "commerce_vendor_stripe_accounts" USING btree ("account_status","updated_at");
3875
- CREATE UNIQUE INDEX "idx_commerce_vendors_team_id" ON "commerce_vendors" USING btree ("team_id");
3876
- CREATE UNIQUE INDEX "idx_commerce_vendors_slug" ON "commerce_vendors" USING btree ("slug");
3877
- CREATE INDEX "idx_commerce_vendors_status" ON "commerce_vendors" USING btree ("status","updated_at");
3878
- CREATE INDEX "idx_commerce_vendors_trust_level" ON "commerce_vendors" USING btree ("trust_level","updated_at");
3879
- CREATE INDEX "idx_commerce_cart_items_cart_status" ON "commerce_cart_items" USING btree ("cart_id","status");
3880
- CREATE INDEX "idx_commerce_cart_items_vendor_status" ON "commerce_cart_items" USING btree ("vendor_id","status","updated_at");
3881
- CREATE INDEX "idx_commerce_cart_items_offer" ON "commerce_cart_items" USING btree ("offer_id");
3882
- CREATE INDEX "idx_commerce_cart_items_price" ON "commerce_cart_items" USING btree ("price_id");
3883
- CREATE INDEX "idx_commerce_carts_buyer_team_status" ON "commerce_carts" USING btree ("buyer_team_id","status","updated_at");
3884
- CREATE INDEX "idx_commerce_carts_buyer_user_status" ON "commerce_carts" USING btree ("buyer_user_id","status","updated_at");
3885
- CREATE INDEX "idx_commerce_checkouts_cart" ON "commerce_checkouts" USING btree ("cart_id");
3886
- CREATE INDEX "idx_commerce_checkouts_buyer_team_status" ON "commerce_checkouts" USING btree ("buyer_team_id","status","updated_at");
3887
- CREATE INDEX "idx_commerce_checkouts_buyer_user_status" ON "commerce_checkouts" USING btree ("buyer_user_id","status","updated_at");
3888
- CREATE INDEX "idx_commerce_governance_events_object" ON "commerce_governance_events" USING btree ("object_type","object_id","created_at");
3889
- CREATE INDEX "idx_commerce_governance_events_product" ON "commerce_governance_events" USING btree ("related_product_id","created_at");
3890
- CREATE INDEX "idx_commerce_governance_events_offer" ON "commerce_governance_events" USING btree ("related_offer_id","created_at");
3891
- CREATE INDEX "idx_commerce_governance_events_team" ON "commerce_governance_events" USING btree ("related_team_id","created_at");
3892
- CREATE INDEX "idx_commerce_offers_product_status" ON "commerce_offers" USING btree ("product_id","status","updated_at");
3893
- CREATE INDEX "idx_commerce_offers_vendor_status" ON "commerce_offers" USING btree ("vendor_id","status","updated_at");
3894
- CREATE INDEX "idx_commerce_offers_seller_status" ON "commerce_offers" USING btree ("seller_team_id","status","updated_at");
3895
- CREATE INDEX "idx_commerce_offers_active_price" ON "commerce_offers" USING btree ("active_price_id");
3896
- CREATE INDEX "idx_commerce_offers_stripe_product" ON "commerce_offers" USING btree ("stripe_product_id");
3897
- CREATE INDEX "idx_commerce_offers_stripe_status" ON "commerce_offers" USING btree ("stripe_product_status","updated_at");
3898
- CREATE INDEX "idx_commerce_order_items_order" ON "commerce_order_items" USING btree ("order_id");
3899
- CREATE INDEX "idx_commerce_order_items_product_status" ON "commerce_order_items" USING btree ("product_id","status");
3900
- CREATE INDEX "idx_commerce_order_items_offer_status" ON "commerce_order_items" USING btree ("offer_id","status");
3901
- CREATE INDEX "idx_commerce_order_items_entitlement" ON "commerce_order_items" USING btree ("entitlement_id");
3902
- CREATE INDEX "idx_commerce_orders_checkout" ON "commerce_orders" USING btree ("checkout_id");
3903
- CREATE INDEX "idx_commerce_orders_buyer_team_status" ON "commerce_orders" USING btree ("buyer_team_id","status","updated_at");
3904
- CREATE INDEX "idx_commerce_orders_buyer_user_status" ON "commerce_orders" USING btree ("buyer_user_id","status","updated_at");
3905
- CREATE INDEX "idx_commerce_orders_vendor_status" ON "commerce_orders" USING btree ("vendor_id","status","updated_at");
3906
- CREATE INDEX "idx_commerce_orders_stripe_payment_intent" ON "commerce_orders" USING btree ("stripe_payment_intent_id");
3907
- CREATE INDEX "idx_commerce_orders_stripe_subscription" ON "commerce_orders" USING btree ("stripe_subscription_id");
3908
- CREATE INDEX "idx_commerce_payment_groups_checkout" ON "commerce_payment_groups" USING btree ("checkout_id");
3909
- CREATE INDEX "idx_commerce_payment_groups_order" ON "commerce_payment_groups" USING btree ("order_id");
3910
- CREATE INDEX "idx_commerce_payment_groups_vendor_status" ON "commerce_payment_groups" USING btree ("vendor_id","status","updated_at");
3911
- CREATE INDEX "idx_commerce_payment_groups_payment_intent" ON "commerce_payment_groups" USING btree ("stripe_payment_intent_id");
3912
- CREATE INDEX "idx_commerce_payment_groups_subscription" ON "commerce_payment_groups" USING btree ("stripe_subscription_id");
3913
- CREATE UNIQUE INDEX "idx_commerce_prices_offer_version" ON "commerce_prices" USING btree ("offer_id","price_version");
3914
- CREATE INDEX "idx_commerce_prices_offer_status" ON "commerce_prices" USING btree ("offer_id","status");
3915
- CREATE INDEX "idx_commerce_prices_stripe_price" ON "commerce_prices" USING btree ("stripe_price_id");
3916
- CREATE INDEX "idx_commerce_prices_stripe_sync_status" ON "commerce_prices" USING btree ("stripe_sync_status","updated_at");
3917
- CREATE UNIQUE INDEX "idx_commerce_product_versions_product_version" ON "commerce_product_versions" USING btree ("product_id","version");
3918
- CREATE INDEX "idx_commerce_product_versions_product_status" ON "commerce_product_versions" USING btree ("product_id","status","created_at");
3919
- CREATE INDEX "idx_commerce_product_versions_catalog_artifact" ON "commerce_product_versions" USING btree ("catalog_artifact_version_id");
3920
- CREATE UNIQUE INDEX "idx_commerce_buyer_stripe_customers_team" ON "commerce_buyer_stripe_customers" USING btree ("vendor_id","environment","buyer_team_id");
3921
- CREATE UNIQUE INDEX "idx_commerce_buyer_stripe_customers_user" ON "commerce_buyer_stripe_customers" USING btree ("vendor_id","environment","buyer_user_id");
3922
- CREATE UNIQUE INDEX "idx_commerce_buyer_stripe_customers_stripe" ON "commerce_buyer_stripe_customers" USING btree ("connected_account_id","stripe_customer_id");
3923
- CREATE INDEX "idx_commerce_entitlements_buyer_team_status" ON "commerce_entitlements" USING btree ("buyer_team_id","status","updated_at");
3924
- CREATE INDEX "idx_commerce_entitlements_buyer_user_status" ON "commerce_entitlements" USING btree ("buyer_user_id","status","updated_at");
3925
- CREATE INDEX "idx_commerce_entitlements_product_status" ON "commerce_entitlements" USING btree ("product_id","status");
3926
- CREATE INDEX "idx_commerce_entitlements_offer_status" ON "commerce_entitlements" USING btree ("offer_id","status");
3927
- CREATE INDEX "idx_commerce_entitlements_order" ON "commerce_entitlements" USING btree ("order_id");
3928
- CREATE INDEX "idx_commerce_entitlements_subscription" ON "commerce_entitlements" USING btree ("subscription_id");
3929
- CREATE INDEX "idx_commerce_entitlements_catalog_item" ON "commerce_entitlements" USING btree ("catalog_item_id");
3930
- CREATE INDEX "idx_commerce_fulfillment_events_order" ON "commerce_fulfillment_events" USING btree ("order_id","created_at");
3931
- CREATE INDEX "idx_commerce_fulfillment_events_entitlement" ON "commerce_fulfillment_events" USING btree ("entitlement_id","created_at");
3932
- CREATE INDEX "idx_commerce_fulfillment_events_vendor_status" ON "commerce_fulfillment_events" USING btree ("vendor_id","status","created_at");
3933
- CREATE INDEX "idx_commerce_fulfillment_events_product" ON "commerce_fulfillment_events" USING btree ("product_id","created_at");
3934
- CREATE UNIQUE INDEX "idx_commerce_refunds_stripe" ON "commerce_refunds" USING btree ("stripe_refund_id","stripe_connected_account_id");
3935
- CREATE UNIQUE INDEX "idx_commerce_refunds_idempotency" ON "commerce_refunds" USING btree ("idempotency_key");
3936
- CREATE INDEX "idx_commerce_refunds_order" ON "commerce_refunds" USING btree ("order_id","created_at");
3937
- CREATE INDEX "idx_commerce_refunds_vendor_status" ON "commerce_refunds" USING btree ("vendor_id","status","updated_at");
3938
- CREATE INDEX "idx_commerce_refunds_seller_status" ON "commerce_refunds" USING btree ("seller_team_id","status","updated_at");
3939
- CREATE UNIQUE INDEX "idx_commerce_service_contracts_request_quote" ON "commerce_service_contracts" USING btree ("request_id","quote_id");
3940
- CREATE INDEX "idx_commerce_service_contracts_vendor" ON "commerce_service_contracts" USING btree ("vendor_id","status","updated_at");
3941
- CREATE INDEX "idx_commerce_service_contracts_seller" ON "commerce_service_contracts" USING btree ("seller_team_id","status","updated_at");
3942
- CREATE INDEX "idx_commerce_service_contracts_buyer_team" ON "commerce_service_contracts" USING btree ("buyer_team_id","status","updated_at");
3943
- CREATE INDEX "idx_commerce_service_contracts_buyer_user" ON "commerce_service_contracts" USING btree ("buyer_user_id","status","updated_at");
3944
- CREATE INDEX "idx_commerce_service_contracts_order" ON "commerce_service_contracts" USING btree ("order_id");
3945
- CREATE INDEX "idx_commerce_service_contracts_entitlement" ON "commerce_service_contracts" USING btree ("entitlement_id");
3946
- CREATE INDEX "idx_commerce_service_contracts_project" ON "commerce_service_contracts" USING btree ("related_project_id");
3947
- CREATE INDEX "idx_commerce_service_contracts_workday" ON "commerce_service_contracts" USING btree ("related_workday_id");
3948
- CREATE INDEX "idx_commerce_service_events_request" ON "commerce_service_events" USING btree ("request_id","created_at");
3949
- CREATE INDEX "idx_commerce_service_events_quote" ON "commerce_service_events" USING btree ("quote_id","created_at");
3950
- CREATE INDEX "idx_commerce_service_events_contract" ON "commerce_service_events" USING btree ("contract_id","created_at");
3951
- CREATE INDEX "idx_commerce_service_events_type" ON "commerce_service_events" USING btree ("event_type","created_at");
3952
- CREATE UNIQUE INDEX "idx_commerce_service_quotes_request_version" ON "commerce_service_quotes" USING btree ("request_id","quote_version");
3953
- CREATE INDEX "idx_commerce_service_quotes_request" ON "commerce_service_quotes" USING btree ("request_id","status","updated_at");
3954
- CREATE INDEX "idx_commerce_service_quotes_vendor" ON "commerce_service_quotes" USING btree ("vendor_id","status","updated_at");
3955
- CREATE INDEX "idx_commerce_service_quotes_seller" ON "commerce_service_quotes" USING btree ("seller_team_id","status","updated_at");
3956
- CREATE INDEX "idx_commerce_service_requests_buyer_team" ON "commerce_service_requests" USING btree ("buyer_team_id","status","updated_at");
3957
- CREATE INDEX "idx_commerce_service_requests_buyer_user" ON "commerce_service_requests" USING btree ("buyer_user_id","status","updated_at");
3958
- CREATE INDEX "idx_commerce_service_requests_vendor" ON "commerce_service_requests" USING btree ("vendor_id","status","updated_at");
3959
- CREATE INDEX "idx_commerce_service_requests_seller" ON "commerce_service_requests" USING btree ("seller_team_id","status","updated_at");
3960
- CREATE INDEX "idx_commerce_service_requests_offer" ON "commerce_service_requests" USING btree ("offer_id","status");
3961
- CREATE INDEX "idx_commerce_service_requests_project" ON "commerce_service_requests" USING btree ("related_project_id","status");
3962
- CREATE INDEX "idx_commerce_service_requests_workday" ON "commerce_service_requests" USING btree ("related_workday_id","status");
3963
- CREATE UNIQUE INDEX "idx_commerce_subscriptions_stripe" ON "commerce_subscriptions" USING btree ("stripe_subscription_id","stripe_connected_account_id");
3964
- CREATE INDEX "idx_commerce_subscriptions_buyer_team_status" ON "commerce_subscriptions" USING btree ("buyer_team_id","status","updated_at");
3965
- CREATE INDEX "idx_commerce_subscriptions_vendor_status" ON "commerce_subscriptions" USING btree ("vendor_id","status","updated_at");
3966
- CREATE INDEX "idx_commerce_subscriptions_offer_status" ON "commerce_subscriptions" USING btree ("offer_id","status");
3967
- CREATE UNIQUE INDEX "idx_commons_decisions_proposal" ON "commons_decisions" USING btree ("proposal_id");
3968
- CREATE INDEX "idx_commons_decisions_status" ON "commons_decisions" USING btree ("status","updated_at");
3969
- CREATE UNIQUE INDEX "idx_commons_delegations_active" ON "commons_delegations" USING btree ("from_participant_id","to_participant_id","scope","status");
3970
- CREATE INDEX "idx_commons_delegations_to" ON "commons_delegations" USING btree ("to_participant_id","status");
3971
- CREATE INDEX "idx_commons_governance_events_proposal" ON "commons_governance_events" USING btree ("proposal_id","created_at");
3972
- CREATE INDEX "idx_commons_governance_events_participant" ON "commons_governance_events" USING btree ("participant_id","created_at");
3973
- CREATE INDEX "idx_commons_governance_events_type" ON "commons_governance_events" USING btree ("event_type","created_at");
3974
- CREATE UNIQUE INDEX "idx_commons_participants_user" ON "commons_participants" USING btree ("user_id");
3975
- CREATE INDEX "idx_commons_participants_team_status" ON "commons_participants" USING btree ("team_id","status","updated_at");
3976
- CREATE UNIQUE INDEX "idx_commons_proposal_backings_once" ON "commons_proposal_backings" USING btree ("proposal_id","participant_id");
3977
- CREATE INDEX "idx_commons_proposal_backings_proposal" ON "commons_proposal_backings" USING btree ("proposal_id","created_at");
3978
- CREATE UNIQUE INDEX "idx_commons_proposal_votes_once" ON "commons_proposal_votes" USING btree ("proposal_id","participant_id");
3979
- CREATE INDEX "idx_commons_proposal_votes_proposal" ON "commons_proposal_votes" USING btree ("proposal_id","vote","updated_at");
3980
- CREATE INDEX "idx_commons_proposals_status" ON "commons_proposals" USING btree ("status","updated_at");
3981
- CREATE INDEX "idx_commons_proposals_participant" ON "commons_proposals" USING btree ("participant_id","status","updated_at");
3982
- CREATE INDEX "idx_commons_proposals_scope" ON "commons_proposals" USING btree ("scope","status","updated_at");
3983
- CREATE INDEX "idx_commons_questions_status" ON "commons_questions" USING btree ("status","updated_at");
3984
- CREATE INDEX "idx_commons_questions_participant" ON "commons_questions" USING btree ("participant_id","status","updated_at");
3985
- CREATE INDEX "idx_commons_weight_snapshots_participant" ON "commons_weight_snapshots" USING btree ("participant_id","created_at");
3986
- CREATE UNIQUE INDEX "idx_governance_proposal_versions_unique" ON "governance_proposal_versions" USING btree ("proposal_id","version");
3987
- CREATE INDEX "idx_governance_proposal_versions_proposal" ON "governance_proposal_versions" USING btree ("proposal_id","created_at");
3988
- CREATE INDEX "idx_governance_proposals_team_status" ON "governance_proposals" USING btree ("team_id","status","updated_at");
3989
- CREATE INDEX "idx_governance_proposals_project_status" ON "governance_proposals" USING btree ("project_id","status","updated_at");
3990
- CREATE INDEX "idx_governance_proposals_scope_status" ON "governance_proposals" USING btree ("scope","status","updated_at");
3991
- CREATE INDEX "idx_governance_proposals_content_slug" ON "governance_proposals" USING btree ("content_proposal_slug");
3992
- CREATE INDEX "idx_project_governance_policies_project" ON "project_governance_policies" USING btree ("project_id","active");
3993
- CREATE INDEX "idx_team_governance_policies_team_scope" ON "team_governance_policies" USING btree ("team_id","scope","active");
3994
- CREATE UNIQUE INDEX "idx_entitlements_project" ON "entitlements" USING btree ("project_id");
3995
- CREATE UNIQUE INDEX "idx_governance_decisions_proposal" ON "governance_decisions" USING btree ("proposal_id");
3996
- CREATE INDEX "idx_governance_decisions_project_status" ON "governance_decisions" USING btree ("project_id","status","updated_at");
3997
- CREATE INDEX "idx_governance_delegations_team_status" ON "governance_delegations" USING btree ("team_id","status");
3998
- CREATE INDEX "idx_governance_delegations_from" ON "governance_delegations" USING btree ("from_user_id","status");
3999
- CREATE INDEX "idx_governance_delegations_to" ON "governance_delegations" USING btree ("to_user_id","status");
4000
- CREATE INDEX "idx_governance_electorate_snapshots_proposal" ON "governance_electorate_snapshots" USING btree ("proposal_id","proposal_version");
4001
- CREATE INDEX "idx_governance_events_proposal" ON "governance_events" USING btree ("proposal_id","created_at");
4002
- CREATE INDEX "idx_governance_events_decision" ON "governance_events" USING btree ("decision_id","created_at");
4003
- CREATE INDEX "idx_governance_events_team" ON "governance_events" USING btree ("team_id","created_at");
4004
- CREATE INDEX "idx_governance_events_project" ON "governance_events" USING btree ("project_id","created_at");
4005
- CREATE UNIQUE INDEX "idx_governance_proposal_votes_once" ON "governance_proposal_votes" USING btree ("proposal_id","proposal_version","user_id");
4006
- CREATE INDEX "idx_governance_proposal_votes_proposal" ON "governance_proposal_votes" USING btree ("proposal_id","proposal_version","vote");
4007
- CREATE INDEX "idx_governance_vote_events_proposal" ON "governance_vote_events" USING btree ("proposal_id","proposal_version","created_at");
4008
- CREATE UNIQUE INDEX "idx_projects_team_slug" ON "projects" USING btree ("team_id","slug");
4009
- CREATE INDEX "idx_projects_team_id" ON "projects" USING btree ("team_id");
4010
- CREATE UNIQUE INDEX "idx_remote_job_events_job_seq" ON "remote_job_events" USING btree ("job_id","seq");
4011
- CREATE INDEX "idx_remote_jobs_project_status" ON "remote_jobs" USING btree ("project_id","status","created_at");
4012
- CREATE INDEX "idx_remote_jobs_project_idempotency" ON "remote_jobs" USING btree ("project_id","idempotency_key");
4013
- CREATE INDEX "idx_team_api_keys_prefix" ON "team_api_keys" USING btree ("key_prefix");
4014
- CREATE INDEX "idx_auth_provider_states_expiry" ON "auth_provider_states" USING btree ("expires_at","used_at");
4015
- CREATE INDEX "idx_auth_reauthentication_grants_session" ON "auth_reauthentication_grants" USING btree ("user_id","session_id","action","expires_at");
4016
- CREATE INDEX "idx_treedx_deployments_team_instance" ON "treedx_deployments" USING btree ("team_id","instance_id","created_at");
4017
- CREATE INDEX "idx_treedx_mirrors_team_instance" ON "treedx_mirrors" USING btree ("team_id","instance_id");
4018
- CREATE UNIQUE INDEX "idx_treedx_project_libraries_project" ON "treedx_project_libraries" USING btree ("project_id");
4019
- CREATE INDEX "idx_treedx_project_libraries_instance" ON "treedx_project_libraries" USING btree ("instance_id");
4020
- CREATE INDEX "idx_treedx_shares_team_scope" ON "treedx_shares" USING btree ("team_id","scope","status");
4021
- CREATE UNIQUE INDEX "idx_user_personal_themes_name" ON "user_personal_themes" USING btree ("user_id","normalized_name");
4022
- CREATE INDEX "idx_user_personal_themes_user" ON "user_personal_themes" USING btree ("user_id","updated_at");
4023
- CREATE INDEX "idx_approval_requests_team_state" ON "approval_requests" USING btree ("team_id","state","created_at");
4024
- CREATE INDEX "idx_approval_requests_project_workday" ON "approval_requests" USING btree ("project_id","work_day_id","state","created_at");
4025
- CREATE UNIQUE INDEX "idx_hub_repositories_hub_role" ON "hub_repositories" USING btree ("hub_id","role");
4026
- CREATE INDEX "idx_treedx_instances_team_status" ON "treedx_instances" USING btree ("team_id","status");
4027
- CREATE UNIQUE INDEX "idx_book_collections_team_name" ON "book_collections" USING btree ("team_id","name");
4028
- CREATE UNIQUE INDEX "idx_knowledge_workspaces_treedx" ON "knowledge_authoring_workspaces" USING btree ("treedx_workspace_id");
4029
- CREATE INDEX "idx_knowledge_workspaces_project_actor" ON "knowledge_authoring_workspaces" USING btree ("project_id","actor_user_id","status");
4030
- CREATE INDEX "idx_knowledge_pack_builds_team_status" ON "knowledge_pack_builds" USING btree ("team_id","status");
4031
- CREATE INDEX "idx_knowledge_publications_project_status" ON "knowledge_publications" USING btree ("project_id","status");
4032
- CREATE UNIQUE INDEX "idx_knowledge_publications_review" ON "knowledge_publications" USING btree ("review_id");
4033
- CREATE INDEX "idx_knowledge_review_comments_review_status" ON "knowledge_review_comments" USING btree ("review_id","status");
4034
- CREATE INDEX "idx_knowledge_reviews_workspace_status" ON "knowledge_reviews" USING btree ("workspace_id","status");
4035
- CREATE UNIQUE INDEX "idx_knowledge_workspace_presence_actor" ON "knowledge_workspace_presence" USING btree ("workspace_id","user_id");
4036
- CREATE INDEX "idx_remote_repository_team_provider" ON "project_remote_repository_bindings" USING btree ("team_id","provider_id");
4037
- CREATE UNIQUE INDEX "idx_remote_repository_provider_id" ON "project_remote_repository_bindings" USING btree ("provider_id","provider_repository_id");
4038
- CREATE INDEX "idx_workflow_operations_project" ON "project_workflow_operations" USING btree ("project_id","workflow_id");
4039
- CREATE INDEX "idx_provider_connector_authorizations" ON "provider_connector_authorizations" USING btree ("provider_id","connector_kind","expires_at");
4040
- CREATE INDEX "idx_provider_authorities_team_status" ON "provider_credential_authorities" USING btree ("team_id","status");
4041
- CREATE UNIQUE INDEX "idx_provider_authorities_connection_profile" ON "provider_credential_authorities" USING btree ("connection_id","credential_profile_id");
4042
- CREATE UNIQUE INDEX "idx_provider_webhook_delivery" ON "provider_webhook_deliveries" USING btree ("provider_id","delivery_id");
4043
- CREATE INDEX "idx_remote_deliveries_node_status" ON "remote_credential_deliveries" USING btree ("node_id","status","expires_at");
4044
- CREATE INDEX "idx_remote_git_grants_status" ON "remote_git_operation_grants" USING btree ("status","expires_at");
4045
- CREATE INDEX "idx_workflow_configuration_delivery_status" ON "workflow_configuration_deliveries" USING btree ("status","expires_at");
4046
- CREATE UNIQUE INDEX "idx_workflow_configuration_target" ON "workflow_configuration_records" USING btree ("repository_binding_id","workflow_binding_id","kind","scope","environment","name");
4047
- CREATE INDEX "idx_workflow_configuration_project" ON "workflow_configuration_records" USING btree ("project_id","kind","status");
4048
- CREATE INDEX "idx_workflow_runs_operation_status" ON "workflow_operation_runs" USING btree ("operation_id","status","updated_at");
4049
- CREATE INDEX "idx_workflow_runs_assignment" ON "workflow_operation_runs" USING btree ("assignment_id","status","updated_at");
4050
- CREATE UNIQUE INDEX "idx_workflow_runs_provider_id" ON "workflow_operation_runs" USING btree ("provider_id","provider_run_id");
4051
- CREATE INDEX "idx_api_tokens_user_id" ON "api_tokens" USING btree ("user_id");
4052
- CREATE INDEX "idx_api_tokens_prefix" ON "api_tokens" USING btree ("token_prefix");
4053
- CREATE INDEX "idx_audit_events_target" ON "audit_events" USING btree ("target_type","target_id");
4054
- CREATE INDEX "idx_auth_sessions_user_id" ON "auth_sessions" USING btree ("user_id");
4055
- CREATE UNIQUE INDEX "idx_seed_team_membership_claim_resource" ON "seed_team_membership_claims" USING btree ("seed_name","resource_key");
4056
- CREATE INDEX "idx_seed_team_membership_claim_email" ON "seed_team_membership_claims" USING btree ("normalized_email","status");
4057
- CREATE UNIQUE INDEX "idx_team_memberships_team_user" ON "team_memberships" USING btree ("team_id","user_id");
4058
- CREATE UNIQUE INDEX "idx_teams_name" ON "teams" USING btree ("name");
4059
- CREATE INDEX "idx_user_email_addresses_user" ON "user_email_addresses" USING btree ("user_id","status","is_primary");
4060
- CREATE UNIQUE INDEX "idx_user_email_addresses_normalized" ON "user_email_addresses" USING btree ("normalized_email");
4061
- CREATE UNIQUE INDEX "idx_user_identities_provider_subject" ON "user_identities" USING btree ("provider","provider_subject");
4062
- CREATE UNIQUE INDEX "idx_user_role_bindings_user_role" ON "user_role_bindings" USING btree ("user_id","role_id");
4063
- CREATE UNIQUE INDEX "idx_users_username" ON "users" USING btree ("username");
4064
- CREATE INDEX "idx_web_sessions_user_id" ON "web_sessions" USING btree ("user_id");