@treeseed/sdk 0.13.0-rc.5 → 0.13.0-rc.50

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 (2650) hide show
  1. package/README.md +44 -362
  2. package/dist/accounts/account-contracts.d.ts +7 -1
  3. package/dist/agent-capacity/artifacts.d.ts +17 -1
  4. package/dist/agent-capacity/authority/agent-authority-presets.d.ts +1 -1
  5. package/dist/agent-capacity/contracts/capacity/communication/communication-records.d.ts +1 -1
  6. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +0 -1
  7. package/dist/agent-capacity/contracts/configuration/configuration.js +6 -6
  8. package/dist/agent-capacity/contracts/support/decision-work.d.ts +2 -2
  9. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1081 -1081
  10. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +35 -35
  11. package/dist/ai-appliance/contracts.d.ts +2 -2
  12. package/dist/ai-appliance/contracts.js +2 -2
  13. package/dist/ai-appliance/validation.js +1 -1
  14. package/dist/capacity/agents/agent-capacity.d.ts +0 -14
  15. package/dist/capacity/agents/agent-capacity.js +0 -20
  16. package/dist/capacity-provider/client.d.ts +27 -72
  17. package/dist/capacity-provider/client.js +66 -155
  18. package/dist/capacity-provider/contracts/governance.d.ts +64 -40
  19. package/dist/capacity-provider/index.d.ts +0 -5
  20. package/dist/capacity-provider/index.js +0 -5
  21. package/dist/capacity-provider/validation.d.ts +2 -2
  22. package/dist/capacity-provider/validation.js +65 -55
  23. package/dist/configuration/secrets-capability.d.ts +0 -1
  24. package/dist/configuration/secrets-capability.js +0 -1
  25. package/dist/content/contracts.d.ts +12 -0
  26. package/dist/content/validation/agent-operational-content-schemas.d.ts +254 -254
  27. package/dist/content/validation/auxiliary-content-schemas.d.ts +208 -208
  28. package/dist/content/validation/auxiliary-content-schemas.js +2 -2
  29. package/dist/content/validation/content-model-schemas.d.ts +2881 -2881
  30. package/dist/content/validation/index.d.ts +1 -0
  31. package/dist/content/validation/index.js +1 -0
  32. package/dist/content/validation/portable-content-data.d.ts +333 -333
  33. package/dist/deployment/canonical.d.ts +2 -0
  34. package/dist/deployment/canonical.js +17 -0
  35. package/dist/deployment/catalog.d.ts +16 -0
  36. package/dist/deployment/catalog.js +48 -0
  37. package/dist/deployment/index.d.ts +4 -0
  38. package/dist/deployment/index.js +4 -0
  39. package/dist/deployment/schemas.d.ts +5634 -0
  40. package/dist/deployment/schemas.js +306 -0
  41. package/dist/deployment/topology.d.ts +9 -0
  42. package/dist/deployment/topology.js +35 -0
  43. package/dist/development/index.d.ts +1 -0
  44. package/dist/development/index.js +1 -0
  45. package/dist/development/schemas.d.ts +3409 -0
  46. package/dist/development/schemas.js +199 -0
  47. package/dist/entrypoints/clients/control-plane-client.d.ts +119 -0
  48. package/dist/entrypoints/clients/control-plane-client.js +186 -0
  49. package/dist/entrypoints/models/sdk-types.d.ts +1 -7
  50. package/dist/entrypoints/models/sdk-types.js +1 -7
  51. package/dist/guarantees/evidence-trust.d.ts +32 -0
  52. package/dist/guarantees/evidence-trust.js +47 -0
  53. package/dist/guarantees/index.d.ts +130 -17
  54. package/dist/guarantees/index.js +44 -17
  55. package/dist/knowledge/index.d.ts +0 -8
  56. package/dist/knowledge/index.js +0 -8
  57. package/dist/operator-contracts/canonical-command-tree.js +300 -5
  58. package/dist/operator-contracts/catalog/admin-account-team-operations.d.ts +36 -0
  59. package/dist/operator-contracts/catalog/admin-account-team-operations.js +52 -0
  60. package/dist/operator-contracts/catalog/communication-operations.d.ts +170 -0
  61. package/dist/operator-contracts/catalog/communication-operations.js +38 -0
  62. package/dist/operator-contracts/catalog/treeai-operations.d.ts +14 -0
  63. package/dist/operator-contracts/catalog/treeai-operations.js +62 -0
  64. package/dist/operator-contracts/command-tree.d.ts +28 -0
  65. package/dist/operator-contracts/command-tree.js +49 -0
  66. package/dist/operator-contracts/communication/addressing.d.ts +8 -0
  67. package/dist/operator-contracts/communication/addressing.js +57 -0
  68. package/dist/operator-contracts/communication/contracts.d.ts +628 -0
  69. package/dist/operator-contracts/communication/contracts.js +96 -0
  70. package/dist/operator-contracts/control-plane-operation.d.ts +89 -0
  71. package/dist/operator-contracts/control-plane-operation.js +84 -0
  72. package/dist/operator-contracts/control-plane-operations.d.ts +1236 -0
  73. package/dist/operator-contracts/control-plane-operations.js +521 -0
  74. package/dist/operator-contracts/index.d.ts +7 -0
  75. package/dist/operator-contracts/index.js +7 -0
  76. package/dist/operator-contracts/mcp.d.ts +83 -0
  77. package/dist/operator-contracts/mcp.js +84 -0
  78. package/dist/operator-contracts/oauth.d.ts +91 -0
  79. package/dist/operator-contracts/oauth.js +7 -0
  80. package/dist/operator-contracts/operation-builder.d.ts +17 -0
  81. package/dist/operator-contracts/operation-builder.js +61 -0
  82. package/dist/operator-contracts/seed/seed-bundle.d.ts +138 -0
  83. package/dist/operator-contracts/seed/seed-bundle.js +68 -0
  84. package/dist/sdk-types/configuration/sdk-dispatch-credential-source.d.ts +1 -1
  85. package/dist/sdk-types/control-plane/resource-requests.d.ts +124 -0
  86. package/dist/sdk-types/support/platform-contracts.d.ts +3 -7
  87. package/dist/sdk-types/support/platform-contracts.js +2 -22
  88. package/dist/site-contracts/catalog.d.ts +16 -0
  89. package/dist/site-contracts/catalog.js +19 -0
  90. package/dist/site-contracts/cloudflare.d.ts +48 -0
  91. package/dist/site-contracts/platform.d.ts +94 -0
  92. package/dist/site-contracts/plugin.d.ts +63 -0
  93. package/dist/site-contracts/plugin.js +26 -0
  94. package/dist/standards/mcp/compare.d.ts +2 -0
  95. package/dist/standards/mcp/compare.js +38 -0
  96. package/dist/standards/mcp/contracts.d.ts +34 -0
  97. package/dist/standards/mcp/index.d.ts +3 -0
  98. package/dist/standards/mcp/index.js +3 -0
  99. package/dist/standards/mcp/normalize.d.ts +4 -0
  100. package/dist/standards/mcp/normalize.js +30 -0
  101. package/dist/treeai/catalog.d.ts +1 -0
  102. package/dist/treeai/catalog.js +1 -0
  103. package/dist/treeai/client.d.ts +913 -0
  104. package/dist/treeai/client.js +44 -0
  105. package/dist/treeai/contract.d.ts +42 -0
  106. package/dist/treeai/contract.js +51 -0
  107. package/dist/treeai/generated/upstream.d.ts +890 -0
  108. package/dist/treeai/generated/upstream.js +4 -0
  109. package/dist/treeai/index.d.ts +4 -0
  110. package/dist/treeai/index.js +4 -0
  111. package/dist/treedx/client.d.ts +597 -0
  112. package/dist/treedx/client.js +39 -0
  113. package/dist/treedx/contract.d.ts +32 -0
  114. package/dist/treedx/contract.js +63 -0
  115. package/dist/treedx/index.d.ts +2 -16
  116. package/dist/treedx/index.js +2 -56
  117. package/dist/treedx/types.d.ts +8 -7
  118. package/dist/treedx/types.js +0 -7
  119. package/dist/types/agents/agent-trigger-kinds.d.ts +2 -2
  120. package/package.json +51 -353
  121. package/dist/agent-capacity/authoring/agent-definition-authoring.d.ts +0 -57
  122. package/dist/agent-capacity/authoring/agent-definition-authoring.js +0 -73
  123. package/dist/agent-capacity/authoring/agent-deployment.d.ts +0 -93
  124. package/dist/agent-capacity/authoring/agent-deployment.js +0 -65
  125. package/dist/agent-capacity/authoring/chat-activity-profile.d.ts +0 -2
  126. package/dist/agent-capacity/authoring/chat-activity-profile.js +0 -91
  127. package/dist/agent-capacity/authoring/group-definition-authoring.d.ts +0 -33
  128. package/dist/agent-capacity/authoring/group-definition-authoring.js +0 -93
  129. package/dist/agent-capacity/authoring/index.d.ts +0 -4
  130. package/dist/agent-capacity/authoring/index.js +0 -4
  131. package/dist/agent-capacity/authority/assignment-authority-probe.d.ts +0 -109
  132. package/dist/agent-capacity/authority/assignment-authority-probe.js +0 -49
  133. package/dist/agent-capacity/contracts/index.d.ts +0 -19
  134. package/dist/agent-capacity/contracts/index.js +0 -19
  135. package/dist/agent-capacity/contracts/support/operator-surface.d.ts +0 -25
  136. package/dist/agent-capacity/contracts/support/operator-surface.js +0 -187
  137. package/dist/agent-capacity/cooperative-planning.d.ts +0 -28
  138. package/dist/agent-capacity/cooperative-planning.js +0 -48
  139. package/dist/agent-capacity/index.d.ts +0 -15
  140. package/dist/agent-capacity/index.js +0 -15
  141. package/dist/agent-capacity/planning-graph.d.ts +0 -77
  142. package/dist/agent-capacity/planning-graph.js +0 -155
  143. package/dist/agent-capacity/policy/capacity/accounting/settlement.d.ts +0 -8
  144. package/dist/agent-capacity/policy/capacity/accounting/settlement.js +0 -50
  145. package/dist/agent-capacity/policy/capacity/assignments/assignment-capability.d.ts +0 -20
  146. package/dist/agent-capacity/policy/capacity/assignments/assignment-capability.js +0 -235
  147. package/dist/agent-capacity/policy/capacity/providers/supply-selection.d.ts +0 -10
  148. package/dist/agent-capacity/policy/capacity/providers/supply-selection.js +0 -31
  149. package/dist/agent-capacity/policy/index.d.ts +0 -12
  150. package/dist/agent-capacity/policy/index.js +0 -12
  151. package/dist/agent-capacity/policy/operations/research-workflow.d.ts +0 -13
  152. package/dist/agent-capacity/policy/operations/research-workflow.js +0 -164
  153. package/dist/agent-capacity/policy/runtime/runtime-diagnostics.d.ts +0 -19
  154. package/dist/agent-capacity/policy/runtime/runtime-diagnostics.js +0 -263
  155. package/dist/agent-capacity/policy/support/decision-work.d.ts +0 -23
  156. package/dist/agent-capacity/policy/support/decision-work.js +0 -482
  157. package/dist/agent-capacity/policy/support/execution-capability.d.ts +0 -60
  158. package/dist/agent-capacity/policy/support/execution-capability.js +0 -368
  159. package/dist/agent-capacity/policy/support/failure-classification.d.ts +0 -6
  160. package/dist/agent-capacity/policy/support/failure-classification.js +0 -32
  161. package/dist/agent-capacity/policy/support/kernel-mode.d.ts +0 -20
  162. package/dist/agent-capacity/policy/support/kernel-mode.js +0 -280
  163. package/dist/agent-capacity/policy/support/mode-primitives.d.ts +0 -8
  164. package/dist/agent-capacity/policy/support/mode-primitives.js +0 -14
  165. package/dist/agent-capacity/policy/support/planning.d.ts +0 -39
  166. package/dist/agent-capacity/policy/support/planning.js +0 -161
  167. package/dist/agent-capacity/policy/support/primitives.d.ts +0 -23
  168. package/dist/agent-capacity/policy/support/primitives.js +0 -186
  169. package/dist/agent-capacity/policy/support/revision-cycle.d.ts +0 -4
  170. package/dist/agent-capacity/policy/support/revision-cycle.js +0 -144
  171. package/dist/agent-capacity/validation/compatibility/agent-definition-compatibility.d.ts +0 -10
  172. package/dist/agent-capacity/validation/compatibility/agent-definition-compatibility.js +0 -100
  173. package/dist/agent-tools/agent-tool-definitions.d.ts +0 -2
  174. package/dist/agent-tools/agent-tool-definitions.js +0 -465
  175. package/dist/agent-tools/agent-tool-execution-target.d.ts +0 -74
  176. package/dist/agent-tools/agent-tool-execution-target.js +0 -76
  177. package/dist/agent-tools/agent-tool-index.d.ts +0 -8
  178. package/dist/agent-tools/agent-tool-index.js +0 -33
  179. package/dist/agent-tools/communication-tool-definitions.d.ts +0 -2
  180. package/dist/agent-tools/communication-tool-definitions.js +0 -85
  181. package/dist/agents/agent-tools.d.ts +0 -3
  182. package/dist/agents/agent-tools.js +0 -3
  183. package/dist/agents/cli-tools.d.ts +0 -3
  184. package/dist/agents/cli-tools.js +0 -46
  185. package/dist/agents/copilot.d.ts +0 -24
  186. package/dist/agents/copilot.js +0 -91
  187. package/dist/ai-appliance/index.d.ts +0 -3
  188. package/dist/ai-appliance/index.js +0 -3
  189. package/dist/ai-appliance/reconciliation.d.ts +0 -18
  190. package/dist/ai-appliance/reconciliation.js +0 -47
  191. package/dist/api/auth/d1-database.d.ts +0 -3
  192. package/dist/api/auth/d1-database.js +0 -20
  193. package/dist/api/auth/d1-provider.d.ts +0 -54
  194. package/dist/api/auth/d1-provider.js +0 -95
  195. package/dist/api/auth/d1-store/accounts/identity/can-adopt-username-match.d.ts +0 -3
  196. package/dist/api/auth/d1-store/accounts/identity/can-adopt-username-match.js +0 -13
  197. package/dist/api/auth/d1-store/accounts/identity/ensure-auth-schema.d.ts +0 -2
  198. package/dist/api/auth/d1-store/accounts/identity/ensure-auth-schema.js +0 -14
  199. package/dist/api/auth/d1-store/accounts/identity/load-user-by-username.d.ts +0 -2
  200. package/dist/api/auth/d1-store/accounts/identity/load-user-by-username.js +0 -6
  201. package/dist/api/auth/d1-store/accounts/identity/load-user-by-verified-email.d.ts +0 -2
  202. package/dist/api/auth/d1-store/accounts/identity/load-user-by-verified-email.js +0 -6
  203. package/dist/api/auth/d1-store/accounts/sessions/authenticate-service.d.ts +0 -6
  204. package/dist/api/auth/d1-store/accounts/sessions/authenticate-service.js +0 -34
  205. package/dist/api/auth/d1-store/accounts/sessions/issue-user-session.d.ts +0 -7
  206. package/dist/api/auth/d1-store/accounts/sessions/issue-user-session.js +0 -69
  207. package/dist/api/auth/d1-store/accounts/tokens/authenticate-bearer-token.d.ts +0 -6
  208. package/dist/api/auth/d1-store/accounts/tokens/authenticate-bearer-token.js +0 -42
  209. package/dist/api/auth/d1-store/accounts/tokens/create-personal-access-token.d.ts +0 -12
  210. package/dist/api/auth/d1-store/accounts/tokens/create-personal-access-token.js +0 -36
  211. package/dist/api/auth/d1-store/accounts/tokens/list-personal-access-tokens.d.ts +0 -2
  212. package/dist/api/auth/d1-store/accounts/tokens/list-personal-access-tokens.js +0 -10
  213. package/dist/api/auth/d1-store/accounts/tokens/refresh-access-token.d.ts +0 -3
  214. package/dist/api/auth/d1-store/accounts/tokens/refresh-access-token.js +0 -46
  215. package/dist/api/auth/d1-store/accounts/tokens/revoke-personal-access-token.d.ts +0 -2
  216. package/dist/api/auth/d1-store/accounts/tokens/revoke-personal-access-token.js +0 -15
  217. package/dist/api/auth/d1-store/capacity/providers/load-identity-by-provider.d.ts +0 -2
  218. package/dist/api/auth/d1-store/capacity/providers/load-identity-by-provider.js +0 -6
  219. package/dist/api/auth/d1-store/commerce/catalog/seed-catalog.d.ts +0 -2
  220. package/dist/api/auth/d1-store/commerce/catalog/seed-catalog.js +0 -27
  221. package/dist/api/auth/d1-store/configuration/create-service-credential.d.ts +0 -7
  222. package/dist/api/auth/d1-store/configuration/create-service-credential.js +0 -10
  223. package/dist/api/auth/d1-store/configuration/rotate-service-credential.d.ts +0 -2
  224. package/dist/api/auth/d1-store/configuration/rotate-service-credential.js +0 -17
  225. package/dist/api/auth/d1-store/configuration/upsert-service-credential.d.ts +0 -8
  226. package/dist/api/auth/d1-store/configuration/upsert-service-credential.js +0 -20
  227. package/dist/api/auth/d1-store/methods.d.ts +0 -40
  228. package/dist/api/auth/d1-store/methods.js +0 -82
  229. package/dist/api/auth/d1-store/runtime/approve-device-flow.d.ts +0 -5
  230. package/dist/api/auth/d1-store/runtime/approve-device-flow.js +0 -27
  231. package/dist/api/auth/d1-store/runtime/poll-device-flow.d.ts +0 -3
  232. package/dist/api/auth/d1-store/runtime/poll-device-flow.js +0 -71
  233. package/dist/api/auth/d1-store/runtime/start-device-flow.d.ts +0 -3
  234. package/dist/api/auth/d1-store/runtime/start-device-flow.js +0 -34
  235. package/dist/api/auth/d1-store/seeds/seed-configured-services.d.ts +0 -2
  236. package/dist/api/auth/d1-store/seeds/seed-configured-services.js +0 -14
  237. package/dist/api/auth/d1-store/support/audit/write-audit-event.d.ts +0 -9
  238. package/dist/api/auth/d1-store/support/audit/write-audit-event.js +0 -18
  239. package/dist/api/auth/d1-store/support/lifecycle/ensure-initialized.d.ts +0 -2
  240. package/dist/api/auth/d1-store/support/lifecycle/ensure-initialized.js +0 -9
  241. package/dist/api/auth/d1-store/support/principals/create-user.d.ts +0 -7
  242. package/dist/api/auth/d1-store/support/principals/create-user.js +0 -30
  243. package/dist/api/auth/d1-store/support/principals/exchange-trusted-user-assertion.d.ts +0 -10
  244. package/dist/api/auth/d1-store/support/principals/exchange-trusted-user-assertion.js +0 -50
  245. package/dist/api/auth/d1-store/support/principals/load-user.d.ts +0 -2
  246. package/dist/api/auth/d1-store/support/principals/load-user.js +0 -6
  247. package/dist/api/auth/d1-store/support/principals/permissions-for-user.d.ts +0 -2
  248. package/dist/api/auth/d1-store/support/principals/permissions-for-user.js +0 -11
  249. package/dist/api/auth/d1-store/support/principals/principal-for-user.d.ts +0 -2
  250. package/dist/api/auth/d1-store/support/principals/principal-for-user.js +0 -27
  251. package/dist/api/auth/d1-store/support/principals/scopes-for-principal.d.ts +0 -2
  252. package/dist/api/auth/d1-store/support/principals/scopes-for-principal.js +0 -13
  253. package/dist/api/auth/d1-store/support/principals/sync-user.d.ts +0 -7
  254. package/dist/api/auth/d1-store/support/principals/sync-user.js +0 -96
  255. package/dist/api/auth/d1-store/support/principals/user-metadata.d.ts +0 -9
  256. package/dist/api/auth/d1-store/support/principals/user-metadata.js +0 -13
  257. package/dist/api/auth/d1-store/support/queries/execute-statement.d.ts +0 -2
  258. package/dist/api/auth/d1-store/support/queries/execute-statement.js +0 -6
  259. package/dist/api/auth/d1-store/support/queries/query-all.d.ts +0 -2
  260. package/dist/api/auth/d1-store/support/queries/query-all.js +0 -7
  261. package/dist/api/auth/d1-store/support/queries/query-first.d.ts +0 -2
  262. package/dist/api/auth/d1-store/support/queries/query-first.js +0 -6
  263. package/dist/api/auth/d1-store/teams/assign-role.d.ts +0 -2
  264. package/dist/api/auth/d1-store/teams/assign-role.js +0 -12
  265. package/dist/api/auth/d1-store/teams/bootstrap-roles-for-user.d.ts +0 -3
  266. package/dist/api/auth/d1-store/teams/bootstrap-roles-for-user.js +0 -22
  267. package/dist/api/auth/d1-store/teams/permissions-for-roles.d.ts +0 -2
  268. package/dist/api/auth/d1-store/teams/permissions-for-roles.js +0 -15
  269. package/dist/api/auth/d1-store/teams/reconcile-bootstrap-admins.d.ts +0 -2
  270. package/dist/api/auth/d1-store/teams/reconcile-bootstrap-admins.js +0 -34
  271. package/dist/api/auth/d1-store/teams/replace-roles.d.ts +0 -2
  272. package/dist/api/auth/d1-store/teams/replace-roles.js +0 -9
  273. package/dist/api/auth/d1-store/teams/roles-for-user.d.ts +0 -2
  274. package/dist/api/auth/d1-store/teams/roles-for-user.js +0 -10
  275. package/dist/api/auth/d1-store/teams/set-user-roles.d.ts +0 -2
  276. package/dist/api/auth/d1-store/teams/set-user-roles.js +0 -25
  277. package/dist/api/auth/d1-store.d.ts +0 -133
  278. package/dist/api/auth/d1-store.js +0 -225
  279. package/dist/api/auth/memory-provider.d.ts +0 -82
  280. package/dist/api/auth/memory-provider.js +0 -297
  281. package/dist/api/auth/rbac.d.ts +0 -27
  282. package/dist/api/auth/rbac.js +0 -171
  283. package/dist/api/auth/tokens.d.ts +0 -18
  284. package/dist/api/auth/tokens.js +0 -56
  285. package/dist/api/auth/trusted-assertion.d.ts +0 -10
  286. package/dist/api/auth/trusted-assertion.js +0 -19
  287. package/dist/api/capacity/providers/providers.d.ts +0 -2
  288. package/dist/api/capacity/providers/providers.js +0 -69
  289. package/dist/api/configuration/config.d.ts +0 -4
  290. package/dist/api/configuration/config.js +0 -149
  291. package/dist/api/hosting/railway.d.ts +0 -53
  292. package/dist/api/hosting/railway.js +0 -71
  293. package/dist/api/index.d.ts +0 -13
  294. package/dist/api/index.js +0 -33
  295. package/dist/api/operations/operations-routes.d.ts +0 -11
  296. package/dist/api/operations/operations-routes.js +0 -39
  297. package/dist/api/operations/operations.d.ts +0 -3
  298. package/dist/api/operations/operations.js +0 -26
  299. package/dist/api/support/app.d.ts +0 -8
  300. package/dist/api/support/app.js +0 -410
  301. package/dist/api/support/http.d.ts +0 -28
  302. package/dist/api/support/http.js +0 -51
  303. package/dist/api/support/sdk-dispatch.d.ts +0 -6
  304. package/dist/api/support/sdk-dispatch.js +0 -14
  305. package/dist/api/support/sdk-routes.d.ts +0 -11
  306. package/dist/api/support/sdk-routes.js +0 -29
  307. package/dist/api/support/templates.d.ts +0 -3
  308. package/dist/api/support/templates.js +0 -31
  309. package/dist/api/types.d.ts +0 -242
  310. package/dist/capacity/accounting/native-capacity.d.ts +0 -12
  311. package/dist/capacity/accounting/native-capacity.js +0 -120
  312. package/dist/capacity-provider/config/environment.d.ts +0 -6
  313. package/dist/capacity-provider/config/environment.js +0 -36
  314. package/dist/capacity-provider/config/index.d.ts +0 -2
  315. package/dist/capacity-provider/config/index.js +0 -2
  316. package/dist/capacity-provider/config/manifest.d.ts +0 -6
  317. package/dist/capacity-provider/config/manifest.js +0 -16
  318. package/dist/capacity-provider/protocol.d.ts +0 -33
  319. package/dist/capacity-provider/protocol.js +0 -38
  320. package/dist/capacity-provider/runtime-status.d.ts +0 -13
  321. package/dist/capacity-provider/runtime-status.js +0 -40
  322. package/dist/capacity-provider/security/http.d.ts +0 -6
  323. package/dist/capacity-provider/security/http.js +0 -15
  324. package/dist/capacity-provider/security/identity.d.ts +0 -20
  325. package/dist/capacity-provider/security/identity.js +0 -65
  326. package/dist/capacity-provider/security/index.d.ts +0 -2
  327. package/dist/capacity-provider/security/index.js +0 -2
  328. package/dist/capacity-provider/timing/assignment-duration.d.ts +0 -9
  329. package/dist/capacity-provider/timing/assignment-duration.js +0 -92
  330. package/dist/capacity-provider/timing/index.d.ts +0 -1
  331. package/dist/capacity-provider/timing/index.js +0 -1
  332. package/dist/commerce/catalog/template-catalog.d.ts +0 -13
  333. package/dist/commerce/catalog/template-catalog.js +0 -149
  334. package/dist/configuration/service-credentials.d.ts +0 -68
  335. package/dist/configuration/service-credentials.js +0 -121
  336. package/dist/content/content-store.d.ts +0 -25
  337. package/dist/content/content-store.js +0 -269
  338. package/dist/content/frontmatter.d.ts +0 -6
  339. package/dist/content/frontmatter.js +0 -33
  340. package/dist/content-sync/index.d.ts +0 -1
  341. package/dist/content-sync/index.js +0 -1
  342. package/dist/content-sync/reconcile.d.ts +0 -28
  343. package/dist/content-sync/reconcile.js +0 -125
  344. package/dist/d1-store/content/try-claim-content-lease.d.ts +0 -2
  345. package/dist/d1-store/content/try-claim-content-lease.js +0 -21
  346. package/dist/d1-store/methods.d.ts +0 -32
  347. package/dist/d1-store/methods.js +0 -66
  348. package/dist/d1-store/packages/get-release.d.ts +0 -2
  349. package/dist/d1-store/packages/get-release.js +0 -6
  350. package/dist/d1-store/packages/get-share-package.d.ts +0 -2
  351. package/dist/d1-store/packages/get-share-package.js +0 -6
  352. package/dist/d1-store/packages/list-releases.d.ts +0 -2
  353. package/dist/d1-store/packages/list-releases.js +0 -6
  354. package/dist/d1-store/packages/list-share-packages.d.ts +0 -2
  355. package/dist/d1-store/packages/list-share-packages.js +0 -6
  356. package/dist/d1-store/packages/release-all-leases.d.ts +0 -2
  357. package/dist/d1-store/packages/release-all-leases.js +0 -8
  358. package/dist/d1-store/packages/release-lease.d.ts +0 -3
  359. package/dist/d1-store/packages/release-lease.js +0 -6
  360. package/dist/d1-store/packages/upsert-release.d.ts +0 -5
  361. package/dist/d1-store/packages/upsert-release.js +0 -6
  362. package/dist/d1-store/packages/upsert-share-package.d.ts +0 -3
  363. package/dist/d1-store/packages/upsert-share-package.js +0 -6
  364. package/dist/d1-store/support/approvals/create-approval-request.d.ts +0 -3
  365. package/dist/d1-store/support/approvals/create-approval-request.js +0 -12
  366. package/dist/d1-store/support/approvals/decide-approval-request.d.ts +0 -3
  367. package/dist/d1-store/support/approvals/decide-approval-request.js +0 -12
  368. package/dist/d1-store/support/approvals/list-approval-requests.d.ts +0 -3
  369. package/dist/d1-store/support/approvals/list-approval-requests.js +0 -7
  370. package/dist/d1-store/support/cursors/get-cursor.d.ts +0 -3
  371. package/dist/d1-store/support/cursors/get-cursor.js +0 -6
  372. package/dist/d1-store/support/cursors/upsert-cursor.d.ts +0 -3
  373. package/dist/d1-store/support/cursors/upsert-cursor.js +0 -6
  374. package/dist/d1-store/support/execution/inspect-leases.d.ts +0 -2
  375. package/dist/d1-store/support/execution/inspect-leases.js +0 -6
  376. package/dist/d1-store/support/execution/inspect-runs.d.ts +0 -2
  377. package/dist/d1-store/support/execution/inspect-runs.js +0 -6
  378. package/dist/d1-store/support/messages/ack-message.d.ts +0 -3
  379. package/dist/d1-store/support/messages/ack-message.js +0 -15
  380. package/dist/d1-store/support/messages/claim-message.d.ts +0 -3
  381. package/dist/d1-store/support/messages/claim-message.js +0 -22
  382. package/dist/d1-store/support/messages/create-message.d.ts +0 -3
  383. package/dist/d1-store/support/messages/create-message.js +0 -26
  384. package/dist/d1-store/support/queries/follow.d.ts +0 -6
  385. package/dist/d1-store/support/queries/follow.js +0 -21
  386. package/dist/d1-store/support/queries/pick.d.ts +0 -3
  387. package/dist/d1-store/support/queries/pick.js +0 -57
  388. package/dist/d1-store/support/queries/search.d.ts +0 -3
  389. package/dist/d1-store/support/queries/search.js +0 -13
  390. package/dist/d1-store/support/records/create-record.d.ts +0 -3
  391. package/dist/d1-store/support/records/create-record.js +0 -70
  392. package/dist/d1-store/support/records/get-record.d.ts +0 -3
  393. package/dist/d1-store/support/records/get-record.js +0 -31
  394. package/dist/d1-store/support/records/record-run.d.ts +0 -3
  395. package/dist/d1-store/support/records/record-run.js +0 -8
  396. package/dist/d1-store/support/records/rows-for-model.d.ts +0 -2
  397. package/dist/d1-store/support/records/rows-for-model.js +0 -36
  398. package/dist/d1-store/support/update.d.ts +0 -3
  399. package/dist/d1-store/support/update.js +0 -67
  400. package/dist/d1-store/support/workstreams/append-workstream-event.d.ts +0 -3
  401. package/dist/d1-store/support/workstreams/append-workstream-event.js +0 -6
  402. package/dist/d1-store/support/workstreams/get-workstream.d.ts +0 -2
  403. package/dist/d1-store/support/workstreams/get-workstream.js +0 -6
  404. package/dist/d1-store/support/workstreams/list-workstreams.d.ts +0 -2
  405. package/dist/d1-store/support/workstreams/list-workstreams.js +0 -6
  406. package/dist/d1-store/support/workstreams/upsert-workstream.d.ts +0 -3
  407. package/dist/d1-store/support/workstreams/upsert-workstream.js +0 -6
  408. package/dist/d1-store/teams/upsert-team-inbox-item.d.ts +0 -3
  409. package/dist/d1-store/teams/upsert-team-inbox-item.js +0 -12
  410. package/dist/db/d1.d.ts +0 -246
  411. package/dist/db/d1.js +0 -8
  412. package/dist/db/index.d.ts +0 -3
  413. package/dist/db/index.js +0 -3
  414. package/dist/db/market-schema/accounts/agent-lab-view-state.d.ts +0 -228
  415. package/dist/db/market-schema/accounts/agent-lab-view-state.js +0 -22
  416. package/dist/db/market-schema/accounts/better-auth-account.d.ts +0 -2491
  417. package/dist/db/market-schema/accounts/better-auth-account.js +0 -248
  418. package/dist/db/market-schema/accounts/notification-events.d.ts +0 -2911
  419. package/dist/db/market-schema/accounts/notification-events.js +0 -252
  420. package/dist/db/market-schema/accounts/team-services.d.ts +0 -1780
  421. package/dist/db/market-schema/accounts/team-services.js +0 -150
  422. package/dist/db/market-schema/agents/agent-context-query-checks.d.ts +0 -296
  423. package/dist/db/market-schema/agents/agent-context-query-checks.js +0 -33
  424. package/dist/db/market-schema/agents/agent-mode-runs.d.ts +0 -3137
  425. package/dist/db/market-schema/agents/agent-mode-runs.js +0 -311
  426. package/dist/db/market-schema/agents/communication-control.d.ts +0 -820
  427. package/dist/db/market-schema/agents/communication-control.js +0 -86
  428. package/dist/db/market-schema/capacity/accounting/capacity-ledger-entries.d.ts +0 -3187
  429. package/dist/db/market-schema/capacity/accounting/capacity-ledger-entries.js +0 -300
  430. package/dist/db/market-schema/capacity/providers/capacity-provider-team-credentials.d.ts +0 -2637
  431. package/dist/db/market-schema/capacity/providers/capacity-provider-team-credentials.js +0 -271
  432. package/dist/db/market-schema/capacity/workdays/capacity-workday-events.d.ts +0 -3882
  433. package/dist/db/market-schema/capacity/workdays/capacity-workday-events.js +0 -373
  434. package/dist/db/market-schema/commerce/capacity/commerce-capacity-listings.d.ts +0 -1681
  435. package/dist/db/market-schema/commerce/capacity/commerce-capacity-listings.js +0 -150
  436. package/dist/db/market-schema/commerce/catalog/catalog-items.d.ts +0 -3076
  437. package/dist/db/market-schema/commerce/catalog/catalog-items.js +0 -263
  438. package/dist/db/market-schema/commerce/catalog/commerce-product-versions.d.ts +0 -2943
  439. package/dist/db/market-schema/commerce/catalog/commerce-product-versions.js +0 -253
  440. package/dist/db/market-schema/commerce/payments/commerce-subscriptions.d.ts +0 -3072
  441. package/dist/db/market-schema/commerce/payments/commerce-subscriptions.js +0 -263
  442. package/dist/db/market-schema/governance/commons/commons-participants.d.ts +0 -3117
  443. package/dist/db/market-schema/governance/commons/commons-participants.js +0 -260
  444. package/dist/db/market-schema/governance/policy/governance-electorate-snapshots.d.ts +0 -2498
  445. package/dist/db/market-schema/governance/policy/governance-electorate-snapshots.js +0 -212
  446. package/dist/db/market-schema/projects/integrations/provider-operations.d.ts +0 -2586
  447. package/dist/db/market-schema/projects/integrations/provider-operations.js +0 -196
  448. package/dist/db/market-schema/projects/knowledge/knowledge-collaboration.d.ts +0 -1426
  449. package/dist/db/market-schema/projects/knowledge/knowledge-collaboration.js +0 -111
  450. package/dist/db/market-schema/projects/knowledge/project-knowledge-governance.d.ts +0 -1269
  451. package/dist/db/market-schema/projects/knowledge/project-knowledge-governance.js +0 -95
  452. package/dist/db/market-schema/projects/knowledge/tree-dx-project-libraries.d.ts +0 -1937
  453. package/dist/db/market-schema/projects/knowledge/tree-dx-project-libraries.js +0 -160
  454. package/dist/db/market-schema/support/feedback.d.ts +0 -1055
  455. package/dist/db/market-schema/support/feedback.js +0 -86
  456. package/dist/db/market-schema/support/market-schema.d.ts +0 -45339
  457. package/dist/db/market-schema/support/market-schema.js +0 -216
  458. package/dist/db/market-schema/support/subscribers.d.ts +0 -3027
  459. package/dist/db/market-schema/support/subscribers.js +0 -267
  460. package/dist/db/market-schema.d.ts +0 -22
  461. package/dist/db/market-schema.js +0 -22
  462. package/dist/db/node-sqlite.d.ts +0 -297
  463. package/dist/db/node-sqlite.js +0 -133
  464. package/dist/db/schema.d.ts +0 -483
  465. package/dist/db/schema.js +0 -29
  466. package/dist/entrypoints/clients/market-client.d.ts +0 -184
  467. package/dist/entrypoints/clients/market-client.js +0 -369
  468. package/dist/entrypoints/clients/remote.d.ts +0 -206
  469. package/dist/entrypoints/clients/remote.js +0 -192
  470. package/dist/entrypoints/dispatch/dispatch.d.ts +0 -4
  471. package/dist/entrypoints/dispatch/dispatch.js +0 -174
  472. package/dist/entrypoints/models/plugin-default.d.ts +0 -28
  473. package/dist/entrypoints/models/plugin-default.js +0 -39
  474. package/dist/entrypoints/models/sdk-dispatch.d.ts +0 -12
  475. package/dist/entrypoints/models/sdk-dispatch.js +0 -126
  476. package/dist/entrypoints/models/sdk-filters.d.ts +0 -4
  477. package/dist/entrypoints/models/sdk-filters.js +0 -74
  478. package/dist/entrypoints/models/sdk.d.ts +0 -138
  479. package/dist/entrypoints/models/sdk.js +0 -379
  480. package/dist/entrypoints/runtime/managed-dependencies.d.ts +0 -6
  481. package/dist/entrypoints/runtime/managed-dependencies.js +0 -6
  482. package/dist/entrypoints/runtime/timing.d.ts +0 -20
  483. package/dist/entrypoints/runtime/timing.js +0 -73
  484. package/dist/entrypoints/runtime/verification.d.ts +0 -3
  485. package/dist/entrypoints/runtime/verification.js +0 -3
  486. package/dist/gateway/admin-passthrough.d.ts +0 -17
  487. package/dist/gateway/admin-passthrough.js +0 -131
  488. package/dist/gateway/admin-route-inventory.d.ts +0 -5
  489. package/dist/gateway/admin-route-inventory.js +0 -27
  490. package/dist/gateway/header-policy.d.ts +0 -3
  491. package/dist/gateway/header-policy.js +0 -38
  492. package/dist/gateway/health.d.ts +0 -9
  493. package/dist/gateway/health.js +0 -26
  494. package/dist/gateway/index.d.ts +0 -7
  495. package/dist/gateway/index.js +0 -8
  496. package/dist/gateway/node-websocket-proxy.d.ts +0 -13
  497. package/dist/gateway/node-websocket-proxy.js +0 -109
  498. package/dist/governance/groups/membership.d.ts +0 -21
  499. package/dist/governance/groups/membership.js +0 -63
  500. package/dist/governance/groups/signal-scope.d.ts +0 -7
  501. package/dist/governance/groups/signal-scope.js +0 -49
  502. package/dist/governance/policy/decision-dependencies.d.ts +0 -21
  503. package/dist/governance/policy/decision-dependencies.js +0 -21
  504. package/dist/governance/policy/governance.d.ts +0 -133
  505. package/dist/governance/policy/governance.js +0 -285
  506. package/dist/governance/policy/proposal-readiness.d.ts +0 -65
  507. package/dist/governance/policy/proposal-readiness.js +0 -68
  508. package/dist/graph/build/build-graph-from-documents.d.ts +0 -9
  509. package/dist/graph/build/build-graph-from-documents.js +0 -401
  510. package/dist/graph/build/md-node.d.ts +0 -46
  511. package/dist/graph/build/md-node.js +0 -210
  512. package/dist/graph/build/parse-graph-document.d.ts +0 -30
  513. package/dist/graph/build/parse-graph-document.js +0 -206
  514. package/dist/graph/build/read-snapshot-file.d.ts +0 -16
  515. package/dist/graph/build/read-snapshot-file.js +0 -177
  516. package/dist/graph/build.d.ts +0 -4
  517. package/dist/graph/build.js +0 -4
  518. package/dist/graph/context-query-readiness.d.ts +0 -49
  519. package/dist/graph/context-query-readiness.js +0 -12
  520. package/dist/graph/context-query-test.d.ts +0 -181
  521. package/dist/graph/context-query-test.js +0 -205
  522. package/dist/graph/dsl.d.ts +0 -20
  523. package/dist/graph/dsl.js +0 -253
  524. package/dist/graph/query/graph-query-engine.d.ts +0 -47
  525. package/dist/graph/query/graph-query-engine.js +0 -363
  526. package/dist/graph/query/relation-to-edge-type.d.ts +0 -12
  527. package/dist/graph/query/relation-to-edge-type.js +0 -91
  528. package/dist/graph/query/stateful-ids.d.ts +0 -2
  529. package/dist/graph/query/stateful-ids.js +0 -12
  530. package/dist/graph/query.d.ts +0 -3
  531. package/dist/graph/query.js +0 -3
  532. package/dist/graph/ranking/create-default-graph-ranking-provider.d.ts +0 -2
  533. package/dist/graph/ranking/create-default-graph-ranking-provider.js +0 -319
  534. package/dist/graph/ranking/default-graph-ranking-provider.d.ts +0 -1
  535. package/dist/graph/ranking/default-graph-ranking-provider.js +0 -5
  536. package/dist/graph/ranking/ranking-field.d.ts +0 -37
  537. package/dist/graph/ranking/ranking-field.js +0 -184
  538. package/dist/graph/ranking.d.ts +0 -3
  539. package/dist/graph/ranking.js +0 -3
  540. package/dist/graph/schema.d.ts +0 -142
  541. package/dist/graph/schema.js +0 -139
  542. package/dist/guarantees/contracts/agent-guarantee-contracts.d.ts +0 -123
  543. package/dist/guarantees/contracts/agent-guarantee-contracts.js +0 -8
  544. package/dist/guarantees/contracts/agent-guarantee-status.d.ts +0 -40
  545. package/dist/guarantees/contracts/agent-guarantee-status.js +0 -119
  546. package/dist/guarantees/contracts/create-agent-guarantee-proof-template.d.ts +0 -94
  547. package/dist/guarantees/contracts/create-agent-guarantee-proof-template.js +0 -21
  548. package/dist/guarantees/contracts/parse-agent-guarantee-contract.d.ts +0 -19
  549. package/dist/guarantees/contracts/parse-agent-guarantee-contract.js +0 -131
  550. package/dist/guarantees/contracts/parse-agent-guarantee-proof.d.ts +0 -10
  551. package/dist/guarantees/contracts/parse-agent-guarantee-proof.js +0 -133
  552. package/dist/guarantees/features/guarantee-source-closure.d.ts +0 -9
  553. package/dist/guarantees/features/guarantee-source-closure.js +0 -50
  554. package/dist/guarantees/features/ui-feature-contract.d.ts +0 -35
  555. package/dist/guarantees/features/ui-feature-contract.js +0 -133
  556. package/dist/guarantees/features/ui-scene-runtime-trust.d.ts +0 -16
  557. package/dist/guarantees/features/ui-scene-runtime-trust.js +0 -33
  558. package/dist/guarantees/index/build-guarantee-dependency-graph.d.ts +0 -21
  559. package/dist/guarantees/index/build-guarantee-dependency-graph.js +0 -248
  560. package/dist/guarantees/index/export-guarantees-csv.d.ts +0 -110
  561. package/dist/guarantees/index/export-guarantees-csv.js +0 -235
  562. package/dist/guarantees/index/guarantee-journey-audit-item.d.ts +0 -225
  563. package/dist/guarantees/index/guarantee-journey-audit-item.js +0 -81
  564. package/dist/guarantees/index/guarantee-schema-version.d.ts +0 -216
  565. package/dist/guarantees/index/guarantee-schema-version.js +0 -10
  566. package/dist/guarantees/index/parse-verifier-registry.d.ts +0 -64
  567. package/dist/guarantees/index/parse-verifier-registry.js +0 -177
  568. package/dist/guarantees/index/plan-guarantees.d.ts +0 -23
  569. package/dist/guarantees/index/plan-guarantees.js +0 -268
  570. package/dist/guarantees/index/run-guarantees.d.ts +0 -48
  571. package/dist/guarantees/index/run-guarantees.js +0 -327
  572. package/dist/guarantees/index/run-verifier-command.d.ts +0 -41
  573. package/dist/guarantees/index/run-verifier-command.js +0 -290
  574. package/dist/guarantees/index/scene-report-evidence-paths.d.ts +0 -77
  575. package/dist/guarantees/index/scene-report-evidence-paths.js +0 -387
  576. package/dist/guarantees/index/walk-files.d.ts +0 -18
  577. package/dist/guarantees/index/walk-files.js +0 -247
  578. package/dist/hosting/apps.d.ts +0 -12
  579. package/dist/hosting/apps.js +0 -107
  580. package/dist/hosting/builtins/all-environments.d.ts +0 -25
  581. package/dist/hosting/builtins/all-environments.js +0 -194
  582. package/dist/hosting/builtins/create-cloudflare-host-adapter.d.ts +0 -4
  583. package/dist/hosting/builtins/create-cloudflare-host-adapter.js +0 -219
  584. package/dist/hosting/builtins/create-default-service-type-adapters.d.ts +0 -24
  585. package/dist/hosting/builtins/create-default-service-type-adapters.js +0 -159
  586. package/dist/hosting/builtins/probe-cloudflare-pages-public-url.d.ts +0 -15
  587. package/dist/hosting/builtins/probe-cloudflare-pages-public-url.js +0 -166
  588. package/dist/hosting/builtins.d.ts +0 -4
  589. package/dist/hosting/builtins.js +0 -4
  590. package/dist/hosting/contracts.d.ts +0 -190
  591. package/dist/hosting/graph/assert-capability-binding.d.ts +0 -37
  592. package/dist/hosting/graph/assert-capability-binding.js +0 -257
  593. package/dist/hosting/graph/build-profile-from-deploy-config.d.ts +0 -2
  594. package/dist/hosting/graph/build-profile-from-deploy-config.js +0 -253
  595. package/dist/hosting/graph/canonical-hosting-node.d.ts +0 -112
  596. package/dist/hosting/graph/canonical-hosting-node.js +0 -155
  597. package/dist/hosting/graph/railway-service-name-max-length.d.ts +0 -40
  598. package/dist/hosting/graph/railway-service-name-max-length.js +0 -190
  599. package/dist/hosting/graph/railway-source-policy.d.ts +0 -27
  600. package/dist/hosting/graph/railway-source-policy.js +0 -170
  601. package/dist/hosting/graph.d.ts +0 -5
  602. package/dist/hosting/graph.js +0 -5
  603. package/dist/hosting/index.d.ts +0 -4
  604. package/dist/hosting/index.js +0 -4
  605. package/dist/index/agent-and-content.d.ts +0 -17
  606. package/dist/index/agent-and-content.js +0 -87
  607. package/dist/index/capacity-and-governance.d.ts +0 -14
  608. package/dist/index/capacity-and-governance.js +0 -45
  609. package/dist/index/database-and-remote.d.ts +0 -10
  610. package/dist/index/database-and-remote.js +0 -53
  611. package/dist/index/graph-and-search.d.ts +0 -5
  612. package/dist/index/graph-and-search.js +0 -21
  613. package/dist/index/operations-and-workflows.d.ts +0 -23
  614. package/dist/index/operations-and-workflows.js +0 -183
  615. package/dist/index/platform-and-hosting.d.ts +0 -8
  616. package/dist/index/platform-and-hosting.js +0 -125
  617. package/dist/index/public-contracts.d.ts +0 -7
  618. package/dist/index/public-contracts.js +0 -15
  619. package/dist/index/publishing-and-runtime.d.ts +0 -12
  620. package/dist/index/publishing-and-runtime.js +0 -81
  621. package/dist/index/templates-and-catalog.d.ts +0 -1
  622. package/dist/index/templates-and-catalog.js +0 -5
  623. package/dist/index.d.ts +0 -10
  624. package/dist/index.js +0 -10
  625. package/dist/knowledge/authoring.d.ts +0 -3
  626. package/dist/knowledge/authoring.js +0 -61
  627. package/dist/knowledge/catalog.d.ts +0 -38
  628. package/dist/knowledge/catalog.js +0 -254
  629. package/dist/knowledge/collaboration.d.ts +0 -89
  630. package/dist/knowledge/collaboration.js +0 -6
  631. package/dist/knowledge/editorial-context.d.ts +0 -22
  632. package/dist/knowledge/editorial-context.js +0 -60
  633. package/dist/knowledge/editorial-review.d.ts +0 -33
  634. package/dist/knowledge/editorial-review.js +0 -30
  635. package/dist/knowledge/markdown.d.ts +0 -3
  636. package/dist/knowledge/markdown.js +0 -130
  637. package/dist/knowledge/publication.d.ts +0 -39
  638. package/dist/knowledge/publication.js +0 -39
  639. package/dist/knowledge/routes.d.ts +0 -3
  640. package/dist/knowledge/routes.js +0 -15
  641. package/dist/knowledge-packs/index.d.ts +0 -2
  642. package/dist/knowledge-packs/index.js +0 -2
  643. package/dist/knowledge-packs/snapshot.d.ts +0 -43
  644. package/dist/knowledge-packs/snapshot.js +0 -89
  645. package/dist/knowledge-packs/zip.d.ts +0 -7
  646. package/dist/knowledge-packs/zip.js +0 -101
  647. package/dist/local-dev/managed-dev-process-spec.d.ts +0 -8
  648. package/dist/local-dev/managed-dev-process-spec.js +0 -207
  649. package/dist/local-dev/managed-dev.d.ts +0 -88
  650. package/dist/local-dev/managed-dev.js +0 -300
  651. package/dist/local-dev/source-closure.d.ts +0 -14
  652. package/dist/local-dev/source-closure.js +0 -154
  653. package/dist/managed-dependencies/collect-native-dependency-repairs.d.ts +0 -28
  654. package/dist/managed-dependencies/collect-native-dependency-repairs.js +0 -246
  655. package/dist/managed-dependencies/dependency-runtime.d.ts +0 -132
  656. package/dist/managed-dependencies/dependency-runtime.js +0 -178
  657. package/dist/managed-dependencies/install-cloudflared.d.ts +0 -2
  658. package/dist/managed-dependencies/install-cloudflared.js +0 -48
  659. package/dist/managed-dependencies/install-gh-act.d.ts +0 -6
  660. package/dist/managed-dependencies/install-gh-act.js +0 -215
  661. package/dist/managed-dependencies/install-gh.d.ts +0 -7
  662. package/dist/managed-dependencies/install-gh.js +0 -274
  663. package/dist/managed-dependencies/redact-sensitive-output.d.ts +0 -38
  664. package/dist/managed-dependencies/redact-sensitive-output.js +0 -207
  665. package/dist/managed-dependencies/run-npm-tool-rebuilds.d.ts +0 -18
  666. package/dist/managed-dependencies/run-npm-tool-rebuilds.js +0 -220
  667. package/dist/market-client/accounts/contracts/account-deletion-blockers.d.ts +0 -2
  668. package/dist/market-client/accounts/contracts/account-deletion-blockers.js +0 -6
  669. package/dist/market-client/accounts/contracts/account-identity.d.ts +0 -2
  670. package/dist/market-client/accounts/contracts/account-identity.js +0 -6
  671. package/dist/market-client/accounts/contracts/local-auth-paths.d.ts +0 -2
  672. package/dist/market-client/accounts/contracts/local-auth-paths.js +0 -6
  673. package/dist/market-client/accounts/contracts/logout.d.ts +0 -2
  674. package/dist/market-client/accounts/contracts/logout.js +0 -9
  675. package/dist/market-client/accounts/contracts/poll-device-login.d.ts +0 -3
  676. package/dist/market-client/accounts/contracts/poll-device-login.js +0 -9
  677. package/dist/market-client/accounts/contracts/web-appearance.d.ts +0 -2
  678. package/dist/market-client/accounts/contracts/web-appearance.js +0 -6
  679. package/dist/market-client/accounts/contracts/web-emails.d.ts +0 -2
  680. package/dist/market-client/accounts/contracts/web-emails.js +0 -6
  681. package/dist/market-client/accounts/contracts/web-notification-preferences.d.ts +0 -2
  682. package/dist/market-client/accounts/contracts/web-notification-preferences.js +0 -6
  683. package/dist/market-client/accounts/contracts/web-notifications.d.ts +0 -2
  684. package/dist/market-client/accounts/contracts/web-notifications.js +0 -6
  685. package/dist/market-client/accounts/contracts/web-sessions.d.ts +0 -2
  686. package/dist/market-client/accounts/contracts/web-sessions.js +0 -6
  687. package/dist/market-client/accounts/creation/add-web-email.d.ts +0 -4
  688. package/dist/market-client/accounts/creation/add-web-email.js +0 -10
  689. package/dist/market-client/accounts/creation/request-web-password-reset.d.ts +0 -4
  690. package/dist/market-client/accounts/creation/request-web-password-reset.js +0 -9
  691. package/dist/market-client/accounts/creation/start-device-login.d.ts +0 -3
  692. package/dist/market-client/accounts/creation/start-device-login.js +0 -9
  693. package/dist/market-client/accounts/lifecycle/complete-web-password-reset.d.ts +0 -5
  694. package/dist/market-client/accounts/lifecycle/complete-web-password-reset.js +0 -9
  695. package/dist/market-client/accounts/lifecycle/confirm-web-email.d.ts +0 -4
  696. package/dist/market-client/accounts/lifecycle/confirm-web-email.js +0 -9
  697. package/dist/market-client/accounts/lifecycle/verify-web-email.d.ts +0 -2
  698. package/dist/market-client/accounts/lifecycle/verify-web-email.js +0 -6
  699. package/dist/market-client/accounts/preferences/account-preferences.d.ts +0 -4
  700. package/dist/market-client/accounts/preferences/account-preferences.js +0 -14
  701. package/dist/market-client/accounts/queries/check-web-email.d.ts +0 -2
  702. package/dist/market-client/accounts/queries/check-web-email.js +0 -6
  703. package/dist/market-client/accounts/queries/check-web-username.d.ts +0 -2
  704. package/dist/market-client/accounts/queries/check-web-username.js +0 -6
  705. package/dist/market-client/accounts/retirement/delete-account.d.ts +0 -6
  706. package/dist/market-client/accounts/retirement/delete-account.js +0 -10
  707. package/dist/market-client/accounts/retirement/delete-web-email.d.ts +0 -2
  708. package/dist/market-client/accounts/retirement/delete-web-email.js +0 -6
  709. package/dist/market-client/accounts/retirement/revoke-web-session.d.ts +0 -2
  710. package/dist/market-client/accounts/retirement/revoke-web-session.js +0 -6
  711. package/dist/market-client/accounts/updates/mark-web-notification-read.d.ts +0 -2
  712. package/dist/market-client/accounts/updates/mark-web-notification-read.js +0 -6
  713. package/dist/market-client/accounts/updates/refresh-token.d.ts +0 -3
  714. package/dist/market-client/accounts/updates/refresh-token.js +0 -9
  715. package/dist/market-client/accounts/updates/set-primary-web-email.d.ts +0 -2
  716. package/dist/market-client/accounts/updates/set-primary-web-email.js +0 -6
  717. package/dist/market-client/accounts/updates/update-web-appearance.d.ts +0 -10
  718. package/dist/market-client/accounts/updates/update-web-appearance.js +0 -10
  719. package/dist/market-client/accounts/updates/update-web-notification-preferences.d.ts +0 -3
  720. package/dist/market-client/accounts/updates/update-web-notification-preferences.js +0 -6
  721. package/dist/market-client/accounts/updates/update-web-password.d.ts +0 -6
  722. package/dist/market-client/accounts/updates/update-web-password.js +0 -10
  723. package/dist/market-client/agent-lab-interface.d.ts +0 -12
  724. package/dist/market-client/agents/creation/create-structured-agent-estimate.d.ts +0 -2
  725. package/dist/market-client/agents/creation/create-structured-agent-estimate.js +0 -6
  726. package/dist/market-client/agents/lifecycle/accept-structured-agent-estimate.d.ts +0 -2
  727. package/dist/market-client/agents/lifecycle/accept-structured-agent-estimate.js +0 -6
  728. package/dist/market-client/capacity/accounting/contracts/capacity-ledger.d.ts +0 -7
  729. package/dist/market-client/capacity/accounting/contracts/capacity-ledger.js +0 -6
  730. package/dist/market-client/capacity/accounting/contracts/capacity-reservation-explanation.d.ts +0 -2
  731. package/dist/market-client/capacity/accounting/contracts/capacity-reservation-explanation.js +0 -6
  732. package/dist/market-client/capacity/accounting/contracts/capacity-reservations.d.ts +0 -7
  733. package/dist/market-client/capacity/accounting/contracts/capacity-reservations.js +0 -6
  734. package/dist/market-client/capacity/accounting/contracts/capacity-usage.d.ts +0 -7
  735. package/dist/market-client/capacity/accounting/contracts/capacity-usage.js +0 -6
  736. package/dist/market-client/capacity/accounting/lifecycle/decide-capacity-overrun.d.ts +0 -4
  737. package/dist/market-client/capacity/accounting/lifecycle/decide-capacity-overrun.js +0 -6
  738. package/dist/market-client/capacity/admission/contracts/team-capacity-registration-key.d.ts +0 -2
  739. package/dist/market-client/capacity/admission/contracts/team-capacity-registration-key.js +0 -6
  740. package/dist/market-client/capacity/admission/lifecycle/enable-team-capacity-registration-key.d.ts +0 -2
  741. package/dist/market-client/capacity/admission/lifecycle/enable-team-capacity-registration-key.js +0 -6
  742. package/dist/market-client/capacity/admission/lifecycle/reveal-team-capacity-registration-key.d.ts +0 -2
  743. package/dist/market-client/capacity/admission/lifecycle/reveal-team-capacity-registration-key.js +0 -6
  744. package/dist/market-client/capacity/admission/retirement/disable-team-capacity-registration-key.d.ts +0 -2
  745. package/dist/market-client/capacity/admission/retirement/disable-team-capacity-registration-key.js +0 -6
  746. package/dist/market-client/capacity/admission/updates/rotate-team-capacity-registration-key.d.ts +0 -2
  747. package/dist/market-client/capacity/admission/updates/rotate-team-capacity-registration-key.js +0 -6
  748. package/dist/market-client/capacity/admission/updates/update-team-capacity-registration-key-status.d.ts +0 -2
  749. package/dist/market-client/capacity/admission/updates/update-team-capacity-registration-key-status.js +0 -6
  750. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-set.d.ts +0 -2
  751. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-set.js +0 -6
  752. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-sets.d.ts +0 -5
  753. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-sets.js +0 -11
  754. package/dist/market-client/capacity/allocations/contracts/capacity-grant.d.ts +0 -2
  755. package/dist/market-client/capacity/allocations/contracts/capacity-grant.js +0 -6
  756. package/dist/market-client/capacity/allocations/contracts/capacity-grants.d.ts +0 -5
  757. package/dist/market-client/capacity/allocations/contracts/capacity-grants.js +0 -11
  758. package/dist/market-client/capacity/allocations/creation/create-capacity-allocation-set.d.ts +0 -2
  759. package/dist/market-client/capacity/allocations/creation/create-capacity-allocation-set.js +0 -6
  760. package/dist/market-client/capacity/allocations/creation/create-capacity-grant.d.ts +0 -2
  761. package/dist/market-client/capacity/allocations/creation/create-capacity-grant.js +0 -6
  762. package/dist/market-client/capacity/allocations/creation/plan-capacity-allocation-set.d.ts +0 -2
  763. package/dist/market-client/capacity/allocations/creation/plan-capacity-allocation-set.js +0 -6
  764. package/dist/market-client/capacity/allocations/creation/plan-capacity-grant.d.ts +0 -2
  765. package/dist/market-client/capacity/allocations/creation/plan-capacity-grant.js +0 -6
  766. package/dist/market-client/capacity/allocations/lifecycle/activate-capacity-allocation-set.d.ts +0 -2
  767. package/dist/market-client/capacity/allocations/lifecycle/activate-capacity-allocation-set.js +0 -6
  768. package/dist/market-client/capacity/allocations/queries/explain-capacity-allocation-set.d.ts +0 -2
  769. package/dist/market-client/capacity/allocations/queries/explain-capacity-allocation-set.js +0 -6
  770. package/dist/market-client/capacity/allocations/retirement/archive-capacity-allocation-set.d.ts +0 -2
  771. package/dist/market-client/capacity/allocations/retirement/archive-capacity-allocation-set.js +0 -6
  772. package/dist/market-client/capacity/allocations/updates/supersede-capacity-allocation-set.d.ts +0 -2
  773. package/dist/market-client/capacity/allocations/updates/supersede-capacity-allocation-set.js +0 -6
  774. package/dist/market-client/capacity/allocations/updates/transition-capacity-grant.d.ts +0 -2
  775. package/dist/market-client/capacity/allocations/updates/transition-capacity-grant.js +0 -6
  776. package/dist/market-client/capacity/assignments/contracts/assignment-authority-probe.d.ts +0 -2
  777. package/dist/market-client/capacity/assignments/contracts/assignment-authority-probe.js +0 -6
  778. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignment.d.ts +0 -2
  779. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignment.js +0 -6
  780. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignments.d.ts +0 -12
  781. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignments.js +0 -26
  782. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graph.d.ts +0 -2
  783. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graph.js +0 -6
  784. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graphs.d.ts +0 -4
  785. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graphs.js +0 -7
  786. package/dist/market-client/capacity/assignments/contracts/provider-assignment-explanation.d.ts +0 -2
  787. package/dist/market-client/capacity/assignments/contracts/provider-assignment-explanation.js +0 -6
  788. package/dist/market-client/capacity/assignments/lifecycle/admit-capacity-assignment.d.ts +0 -2
  789. package/dist/market-client/capacity/assignments/lifecycle/admit-capacity-assignment.js +0 -6
  790. package/dist/market-client/capacity/assignments/lifecycle/integrate-assignment-content.d.ts +0 -10
  791. package/dist/market-client/capacity/assignments/lifecycle/integrate-assignment-content.js +0 -9
  792. package/dist/market-client/capacity/assignments/lifecycle/requeue-capacity-assignment.d.ts +0 -5
  793. package/dist/market-client/capacity/assignments/lifecycle/requeue-capacity-assignment.js +0 -6
  794. package/dist/market-client/capacity/assignments/retirement/abandon-assignment-content.d.ts +0 -9
  795. package/dist/market-client/capacity/assignments/retirement/abandon-assignment-content.js +0 -9
  796. package/dist/market-client/capacity/assignments/retirement/cancel-capacity-assignment.d.ts +0 -5
  797. package/dist/market-client/capacity/assignments/retirement/cancel-capacity-assignment.js +0 -6
  798. package/dist/market-client/capacity/capacity-core/contracts/capacity-audit-events.d.ts +0 -11
  799. package/dist/market-client/capacity/capacity-core/contracts/capacity-audit-events.js +0 -11
  800. package/dist/market-client/capacity/observability/contracts/agent-lab.d.ts +0 -27
  801. package/dist/market-client/capacity/observability/contracts/agent-lab.js +0 -37
  802. package/dist/market-client/capacity/observability/contracts/capacity-evidence-page.d.ts +0 -7
  803. package/dist/market-client/capacity/observability/contracts/capacity-evidence-page.js +0 -13
  804. package/dist/market-client/capacity/observability/contracts/project-capacity-diagnostics.d.ts +0 -2
  805. package/dist/market-client/capacity/observability/contracts/project-capacity-diagnostics.js +0 -7
  806. package/dist/market-client/capacity/observability/contracts/project-capacity-runtime-diagnostics.d.ts +0 -2
  807. package/dist/market-client/capacity/observability/contracts/project-capacity-runtime-diagnostics.js +0 -7
  808. package/dist/market-client/capacity/planning/contracts/capacity-plan.d.ts +0 -2
  809. package/dist/market-client/capacity/planning/contracts/capacity-plan.js +0 -6
  810. package/dist/market-client/capacity/planning/contracts/decision-capacity-plans.d.ts +0 -4
  811. package/dist/market-client/capacity/planning/contracts/decision-capacity-plans.js +0 -7
  812. package/dist/market-client/capacity/planning/creation/create-decision-capacity-plan.d.ts +0 -2
  813. package/dist/market-client/capacity/planning/creation/create-decision-capacity-plan.js +0 -6
  814. package/dist/market-client/capacity/planning/creation/request-capacity-plan-revision.d.ts +0 -2
  815. package/dist/market-client/capacity/planning/creation/request-capacity-plan-revision.js +0 -6
  816. package/dist/market-client/capacity/planning/lifecycle/accept-capacity-plan.d.ts +0 -2
  817. package/dist/market-client/capacity/planning/lifecycle/accept-capacity-plan.js +0 -6
  818. package/dist/market-client/capacity/planning/lifecycle/schedule-capacity-plan.d.ts +0 -2
  819. package/dist/market-client/capacity/planning/lifecycle/schedule-capacity-plan.js +0 -6
  820. package/dist/market-client/capacity/planning/updates/supersede-capacity-plan.d.ts +0 -2
  821. package/dist/market-client/capacity/planning/updates/supersede-capacity-plan.js +0 -6
  822. package/dist/market-client/capacity/providers/contracts/auth-providers.d.ts +0 -2
  823. package/dist/market-client/capacity/providers/contracts/auth-providers.js +0 -6
  824. package/dist/market-client/capacity/providers/contracts/capacity-provider-credentials.d.ts +0 -6
  825. package/dist/market-client/capacity/providers/contracts/capacity-provider-credentials.js +0 -13
  826. package/dist/market-client/capacity/providers/contracts/capacity-provider-membership.d.ts +0 -2
  827. package/dist/market-client/capacity/providers/contracts/capacity-provider-membership.js +0 -6
  828. package/dist/market-client/capacity/providers/contracts/capacity-provider-memberships.d.ts +0 -7
  829. package/dist/market-client/capacity/providers/contracts/capacity-provider-memberships.js +0 -15
  830. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-request.d.ts +0 -2
  831. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-request.js +0 -6
  832. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-requests.d.ts +0 -6
  833. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-requests.js +0 -13
  834. package/dist/market-client/capacity/providers/contracts/provider-availability-sessions.d.ts +0 -7
  835. package/dist/market-client/capacity/providers/contracts/provider-availability-sessions.js +0 -16
  836. package/dist/market-client/capacity/providers/lifecycle/authorize-capacity-provider-credential-rotation.d.ts +0 -2
  837. package/dist/market-client/capacity/providers/lifecycle/authorize-capacity-provider-credential-rotation.js +0 -6
  838. package/dist/market-client/capacity/providers/lifecycle/resume-capacity-provider-membership.d.ts +0 -2
  839. package/dist/market-client/capacity/providers/lifecycle/resume-capacity-provider-membership.js +0 -6
  840. package/dist/market-client/capacity/providers/lifecycle/review-capacity-provider-registration.d.ts +0 -5
  841. package/dist/market-client/capacity/providers/lifecycle/review-capacity-provider-registration.js +0 -6
  842. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-credential.d.ts +0 -2
  843. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-credential.js +0 -6
  844. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-membership.d.ts +0 -2
  845. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-membership.js +0 -6
  846. package/dist/market-client/capacity/providers/retirement/suspend-capacity-provider-membership.d.ts +0 -2
  847. package/dist/market-client/capacity/providers/retirement/suspend-capacity-provider-membership.js +0 -6
  848. package/dist/market-client/capacity/providers/updates/update-capacity-provider-membership-status.d.ts +0 -2
  849. package/dist/market-client/capacity/providers/updates/update-capacity-provider-membership-status.js +0 -6
  850. package/dist/market-client/capacity/workdays/contracts/workday-events.d.ts +0 -5
  851. package/dist/market-client/capacity/workdays/contracts/workday-events.js +0 -11
  852. package/dist/market-client/capacity/workdays/contracts/workday-run.d.ts +0 -2
  853. package/dist/market-client/capacity/workdays/contracts/workday-run.js +0 -6
  854. package/dist/market-client/capacity/workdays/contracts/workday-runs.d.ts +0 -7
  855. package/dist/market-client/capacity/workdays/contracts/workday-runs.js +0 -16
  856. package/dist/market-client/capacity/workdays/contracts/workday-summary.d.ts +0 -6
  857. package/dist/market-client/capacity/workdays/contracts/workday-summary.js +0 -14
  858. package/dist/market-client/capacity/workdays/contracts/workday.d.ts +0 -2
  859. package/dist/market-client/capacity/workdays/contracts/workday.js +0 -6
  860. package/dist/market-client/capacity/workdays/creation/create-workday-event.d.ts +0 -2
  861. package/dist/market-client/capacity/workdays/creation/create-workday-event.js +0 -6
  862. package/dist/market-client/capacity/workdays/creation/create-workday-run.d.ts +0 -2
  863. package/dist/market-client/capacity/workdays/creation/create-workday-run.js +0 -6
  864. package/dist/market-client/capacity/workdays/creation/create-workday.d.ts +0 -2
  865. package/dist/market-client/capacity/workdays/creation/create-workday.js +0 -6
  866. package/dist/market-client/capacity/workdays/creation/preflight-workday-run.d.ts +0 -2
  867. package/dist/market-client/capacity/workdays/creation/preflight-workday-run.js +0 -6
  868. package/dist/market-client/capacity/workdays/creation/start-workday.d.ts +0 -2
  869. package/dist/market-client/capacity/workdays/creation/start-workday.js +0 -6
  870. package/dist/market-client/capacity/workdays/lifecycle/close-workday-admission.d.ts +0 -29
  871. package/dist/market-client/capacity/workdays/lifecycle/close-workday-admission.js +0 -9
  872. package/dist/market-client/capacity/workdays/lifecycle/complete-workday.d.ts +0 -2
  873. package/dist/market-client/capacity/workdays/lifecycle/complete-workday.js +0 -6
  874. package/dist/market-client/capacity/workdays/lifecycle/pause-workday.d.ts +0 -2
  875. package/dist/market-client/capacity/workdays/lifecycle/pause-workday.js +0 -6
  876. package/dist/market-client/capacity/workdays/lifecycle/resume-workday.d.ts +0 -2
  877. package/dist/market-client/capacity/workdays/lifecycle/resume-workday.js +0 -6
  878. package/dist/market-client/capacity/workdays/lifecycle/tick-workday-run.d.ts +0 -5
  879. package/dist/market-client/capacity/workdays/lifecycle/tick-workday-run.js +0 -6
  880. package/dist/market-client/capacity/workdays/retirement/cancel-workday.d.ts +0 -2
  881. package/dist/market-client/capacity/workdays/retirement/cancel-workday.js +0 -6
  882. package/dist/market-client/capacity/workdays/updates/update-workday-run.d.ts +0 -2
  883. package/dist/market-client/capacity/workdays/updates/update-workday-run.js +0 -6
  884. package/dist/market-client/commerce/catalog/contracts/catalog.d.ts +0 -2
  885. package/dist/market-client/commerce/catalog/contracts/catalog.js +0 -7
  886. package/dist/market-client/discussions/contracts/discussions.d.ts +0 -27
  887. package/dist/market-client/discussions/contracts/discussions.js +0 -21
  888. package/dist/market-client/interface.d.ts +0 -192
  889. package/dist/market-client/interface.js +0 -0
  890. package/dist/market-client/internal-capacity-allocation.d.ts +0 -4
  891. package/dist/market-client/internal-capacity-allocation.js +0 -17
  892. package/dist/market-client/methods.d.ts +0 -2
  893. package/dist/market-client/methods.js +0 -396
  894. package/dist/market-client/operations/contracts/research-workflow.d.ts +0 -2
  895. package/dist/market-client/operations/contracts/research-workflow.js +0 -6
  896. package/dist/market-client/operations/creation/create-research-workflow.d.ts +0 -2
  897. package/dist/market-client/operations/creation/create-research-workflow.js +0 -6
  898. package/dist/market-client/project-agent-interface.d.ts +0 -15
  899. package/dist/market-client/project-agent-interface.js +0 -0
  900. package/dist/market-client/projects/access/contracts/project-access.d.ts +0 -2
  901. package/dist/market-client/projects/access/contracts/project-access.js +0 -6
  902. package/dist/market-client/projects/agents/contracts/agent-deployments.d.ts +0 -34
  903. package/dist/market-client/projects/agents/contracts/agent-deployments.js +0 -22
  904. package/dist/market-client/projects/agents/contracts/project-agent-authoring-draft.d.ts +0 -10
  905. package/dist/market-client/projects/agents/contracts/project-agent-authoring-draft.js +0 -13
  906. package/dist/market-client/projects/agents/contracts/project-agent-class.d.ts +0 -2
  907. package/dist/market-client/projects/agents/contracts/project-agent-class.js +0 -6
  908. package/dist/market-client/projects/agents/contracts/project-agent-classes.d.ts +0 -5
  909. package/dist/market-client/projects/agents/contracts/project-agent-classes.js +0 -11
  910. package/dist/market-client/projects/agents/contracts/project-agent-fallback-outputs.d.ts +0 -8
  911. package/dist/market-client/projects/agents/contracts/project-agent-fallback-outputs.js +0 -17
  912. package/dist/market-client/projects/agents/contracts/project-agent-mode-runs.d.ts +0 -8
  913. package/dist/market-client/projects/agents/contracts/project-agent-mode-runs.js +0 -18
  914. package/dist/market-client/projects/agents/contracts/project-context-query-checks.d.ts +0 -2
  915. package/dist/market-client/projects/agents/contracts/project-context-query-checks.js +0 -6
  916. package/dist/market-client/projects/agents/creation/author-project-agent.d.ts +0 -10
  917. package/dist/market-client/projects/agents/creation/author-project-agent.js +0 -10
  918. package/dist/market-client/projects/agents/creation/author-project-definitions.d.ts +0 -12
  919. package/dist/market-client/projects/agents/creation/author-project-definitions.js +0 -10
  920. package/dist/market-client/projects/agents/creation/check-project-context-query.d.ts +0 -7
  921. package/dist/market-client/projects/agents/creation/check-project-context-query.js +0 -11
  922. package/dist/market-client/projects/agents/creation/create-project-agent-class.d.ts +0 -2
  923. package/dist/market-client/projects/agents/creation/create-project-agent-class.js +0 -6
  924. package/dist/market-client/projects/agents/creation/launch-project-agent-simulation.d.ts +0 -8
  925. package/dist/market-client/projects/agents/creation/launch-project-agent-simulation.js +0 -10
  926. package/dist/market-client/projects/agents/updates/update-project-agent-class.d.ts +0 -2
  927. package/dist/market-client/projects/agents/updates/update-project-agent-class.js +0 -6
  928. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-library.d.ts +0 -2
  929. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-library.js +0 -6
  930. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-proxy-audit.d.ts +0 -7
  931. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-proxy-audit.js +0 -15
  932. package/dist/market-client/projects/knowledge/creation/upsert-project-tree-dx-library.d.ts +0 -3
  933. package/dist/market-client/projects/knowledge/creation/upsert-project-tree-dx-library.js +0 -6
  934. package/dist/market-client/projects/projects-core/contracts/dispatch-project-workflow-operation.d.ts +0 -2
  935. package/dist/market-client/projects/projects-core/contracts/dispatch-project-workflow-operation.js +0 -6
  936. package/dist/market-client/projects/projects-core/contracts/project-deletion-blockers.d.ts +0 -2
  937. package/dist/market-client/projects/projects-core/contracts/project-deletion-blockers.js +0 -6
  938. package/dist/market-client/projects/projects-core/contracts/project-workflow-operations.d.ts +0 -10
  939. package/dist/market-client/projects/projects-core/contracts/project-workflow-operations.js +0 -50
  940. package/dist/market-client/projects/projects-core/contracts/projects.d.ts +0 -2
  941. package/dist/market-client/projects/projects-core/contracts/projects.js +0 -7
  942. package/dist/market-client/projects/projects-core/creation/create-project.d.ts +0 -8
  943. package/dist/market-client/projects/projects-core/creation/create-project.js +0 -6
  944. package/dist/market-client/projects/projects-core/retirement/delete-project.d.ts +0 -2
  945. package/dist/market-client/projects/projects-core/retirement/delete-project.js +0 -6
  946. package/dist/market-client/projects/projects-core/updates/set-project-inventory-status.d.ts +0 -3
  947. package/dist/market-client/projects/projects-core/updates/set-project-inventory-status.js +0 -10
  948. package/dist/market-client/projects/repositories/contracts/project-repository-topology.d.ts +0 -2
  949. package/dist/market-client/projects/repositories/contracts/project-repository-topology.js +0 -6
  950. package/dist/market-client/projects/repositories/updates/update-project-repository-topology.d.ts +0 -3
  951. package/dist/market-client/projects/repositories/updates/update-project-repository-topology.js +0 -6
  952. package/dist/market-client/seeds/creation/apply-seed.d.ts +0 -2
  953. package/dist/market-client/seeds/creation/apply-seed.js +0 -6
  954. package/dist/market-client/seeds/creation/export-seed.d.ts +0 -2
  955. package/dist/market-client/seeds/creation/export-seed.js +0 -6
  956. package/dist/market-client/seeds/creation/plan-seed.d.ts +0 -2
  957. package/dist/market-client/seeds/creation/plan-seed.js +0 -6
  958. package/dist/market-client/seeds/interface.d.ts +0 -10
  959. package/dist/market-client/seeds/interface.js +0 -0
  960. package/dist/market-client/seeds/queries/list-seed-runs.d.ts +0 -2
  961. package/dist/market-client/seeds/queries/list-seed-runs.js +0 -7
  962. package/dist/market-client/seeds/queries/resolve-seed-resources.d.ts +0 -9
  963. package/dist/market-client/seeds/queries/resolve-seed-resources.js +0 -10
  964. package/dist/market-client/support/creation/create-decision-execution-input.d.ts +0 -2
  965. package/dist/market-client/support/creation/create-decision-execution-input.js +0 -6
  966. package/dist/market-client/support/creation/create-personal-theme.d.ts +0 -3
  967. package/dist/market-client/support/creation/create-personal-theme.js +0 -6
  968. package/dist/market-client/support/creation/create-planning-input-request.d.ts +0 -2
  969. package/dist/market-client/support/creation/create-planning-input-request.js +0 -6
  970. package/dist/market-client/support/creation/request-decision-execution-input-revision.d.ts +0 -2
  971. package/dist/market-client/support/creation/request-decision-execution-input-revision.js +0 -6
  972. package/dist/market-client/support/creation/request-first.d.ts +0 -7
  973. package/dist/market-client/support/creation/request-first.js +0 -19
  974. package/dist/market-client/support/delivery/artifact-download.d.ts +0 -2
  975. package/dist/market-client/support/delivery/artifact-download.js +0 -6
  976. package/dist/market-client/support/delivery/deliverable-manifest.d.ts +0 -4
  977. package/dist/market-client/support/delivery/deliverable-manifest.js +0 -14
  978. package/dist/market-client/support/identity/markets.d.ts +0 -2
  979. package/dist/market-client/support/identity/markets.js +0 -6
  980. package/dist/market-client/support/identity/me.d.ts +0 -2
  981. package/dist/market-client/support/identity/me.js +0 -6
  982. package/dist/market-client/support/identity/personal-themes.d.ts +0 -2
  983. package/dist/market-client/support/identity/personal-themes.js +0 -6
  984. package/dist/market-client/support/identity/web-sign-in.d.ts +0 -7
  985. package/dist/market-client/support/identity/web-sign-in.js +0 -9
  986. package/dist/market-client/support/identity/web-sign-up.d.ts +0 -9
  987. package/dist/market-client/support/identity/web-sign-up.js +0 -9
  988. package/dist/market-client/support/lifecycle/accept-decision-execution-input.d.ts +0 -2
  989. package/dist/market-client/support/lifecycle/accept-decision-execution-input.js +0 -6
  990. package/dist/market-client/support/planning/decision-execution-inputs.d.ts +0 -4
  991. package/dist/market-client/support/planning/decision-execution-inputs.js +0 -7
  992. package/dist/market-client/support/planning/decision-planning-status.d.ts +0 -2
  993. package/dist/market-client/support/planning/decision-planning-status.js +0 -6
  994. package/dist/market-client/support/planning/decision-structured-estimates.d.ts +0 -2
  995. package/dist/market-client/support/planning/decision-structured-estimates.js +0 -7
  996. package/dist/market-client/support/planning/execution-runs.d.ts +0 -12
  997. package/dist/market-client/support/planning/execution-runs.js +0 -11
  998. package/dist/market-client/support/preferences/request.d.ts +0 -7
  999. package/dist/market-client/support/preferences/request.js +0 -36
  1000. package/dist/market-client/support/queries/current-market.d.ts +0 -2
  1001. package/dist/market-client/support/queries/current-market.js +0 -6
  1002. package/dist/market-client/support/retirement/delete-personal-theme.d.ts +0 -2
  1003. package/dist/market-client/support/retirement/delete-personal-theme.js +0 -6
  1004. package/dist/market-client/support/updates/update-personal-theme.d.ts +0 -3
  1005. package/dist/market-client/support/updates/update-personal-theme.js +0 -6
  1006. package/dist/market-client/support/updates/update-web-profile.d.ts +0 -5
  1007. package/dist/market-client/support/updates/update-web-profile.js +0 -10
  1008. package/dist/market-client/teams/contracts/team-deletion-blockers.d.ts +0 -2
  1009. package/dist/market-client/teams/contracts/team-deletion-blockers.js +0 -6
  1010. package/dist/market-client/teams/contracts/team-members.d.ts +0 -2
  1011. package/dist/market-client/teams/contracts/team-members.js +0 -6
  1012. package/dist/market-client/teams/contracts/team-permissions.d.ts +0 -2
  1013. package/dist/market-client/teams/contracts/team-permissions.js +0 -6
  1014. package/dist/market-client/teams/contracts/teams.d.ts +0 -2
  1015. package/dist/market-client/teams/contracts/teams.js +0 -6
  1016. package/dist/market-client/teams/creation/create-team.d.ts +0 -6
  1017. package/dist/market-client/teams/creation/create-team.js +0 -10
  1018. package/dist/market-client/teams/lifecycle/team-lifecycle.d.ts +0 -22
  1019. package/dist/market-client/teams/lifecycle/team-lifecycle.js +0 -30
  1020. package/dist/market-client/treedx/graph/contracts/tree-dx-build-context.d.ts +0 -2
  1021. package/dist/market-client/treedx/graph/contracts/tree-dx-build-context.js +0 -6
  1022. package/dist/market-client/treedx/repositories/contracts/team-tree-dx.d.ts +0 -2
  1023. package/dist/market-client/treedx/repositories/contracts/team-tree-dx.js +0 -6
  1024. package/dist/market-client/treedx/repositories/contracts/tree-dx-mirrors.d.ts +0 -2
  1025. package/dist/market-client/treedx/repositories/contracts/tree-dx-mirrors.js +0 -6
  1026. package/dist/market-client/treedx/repositories/contracts/tree-dx-read-repository-files.d.ts +0 -2
  1027. package/dist/market-client/treedx/repositories/contracts/tree-dx-read-repository-files.js +0 -6
  1028. package/dist/market-client/treedx/repositories/contracts/tree-dx-shares.d.ts +0 -2
  1029. package/dist/market-client/treedx/repositories/contracts/tree-dx-shares.js +0 -6
  1030. package/dist/market-client/treedx/repositories/creation/create-tree-dx-mirror.d.ts +0 -3
  1031. package/dist/market-client/treedx/repositories/creation/create-tree-dx-mirror.js +0 -6
  1032. package/dist/market-client/treedx/repositories/creation/create-tree-dx-share.d.ts +0 -3
  1033. package/dist/market-client/treedx/repositories/creation/create-tree-dx-share.js +0 -6
  1034. package/dist/market-client/treedx/repositories/creation/create-tree-dx-workspace.d.ts +0 -2
  1035. package/dist/market-client/treedx/repositories/creation/create-tree-dx-workspace.js +0 -6
  1036. package/dist/market-client/treedx/repositories/creation/provision-team-tree-dx.d.ts +0 -2
  1037. package/dist/market-client/treedx/repositories/creation/provision-team-tree-dx.js +0 -6
  1038. package/dist/market-client/treedx/repositories/updates/sync-tree-dx-mirror.d.ts +0 -2
  1039. package/dist/market-client/treedx/repositories/updates/sync-tree-dx-mirror.js +0 -6
  1040. package/dist/market-client/treedx/repositories/updates/update-team-tree-dx.d.ts +0 -3
  1041. package/dist/market-client/treedx/repositories/updates/update-team-tree-dx.js +0 -6
  1042. package/dist/operations/agents/agent-checkpoint-integration.d.ts +0 -53
  1043. package/dist/operations/agents/agent-checkpoint-integration.js +0 -235
  1044. package/dist/operations/agents/agent-tools.d.ts +0 -121
  1045. package/dist/operations/agents/agent-tools.js +0 -184
  1046. package/dist/operations/agents/agent-worktree-checkpoint.d.ts +0 -24
  1047. package/dist/operations/agents/agent-worktree-checkpoint.js +0 -83
  1048. package/dist/operations/agents/agent-worktree-prepare.d.ts +0 -24
  1049. package/dist/operations/agents/agent-worktree-prepare.js +0 -28
  1050. package/dist/operations/agents/execution-authority-receipt.d.ts +0 -43
  1051. package/dist/operations/agents/execution-authority-receipt.js +0 -69
  1052. package/dist/operations/content-operations.d.ts +0 -106
  1053. package/dist/operations/content-operations.js +0 -334
  1054. package/dist/operations/operations-registry.d.ts +0 -5
  1055. package/dist/operations/operations-registry.js +0 -83
  1056. package/dist/operations/operations-types.d.ts +0 -75
  1057. package/dist/operations/operations-types.js +0 -17
  1058. package/dist/operations/operations.d.ts +0 -17
  1059. package/dist/operations/operations.js +0 -108
  1060. package/dist/operations/packages/agent-worktree-release.d.ts +0 -27
  1061. package/dist/operations/packages/agent-worktree-release.js +0 -25
  1062. package/dist/operations/platform-operation-store.d.ts +0 -2
  1063. package/dist/operations/platform-operation-store.js +0 -2
  1064. package/dist/operations/platform-operations.d.ts +0 -3
  1065. package/dist/operations/platform-operations.js +0 -3
  1066. package/dist/operations/providers/default/auth-who-am-ioperation.d.ts +0 -60
  1067. package/dist/operations/providers/default/auth-who-am-ioperation.js +0 -283
  1068. package/dist/operations/providers/default/preflight-operation.d.ts +0 -81
  1069. package/dist/operations/providers/default/preflight-operation.js +0 -127
  1070. package/dist/operations/providers/default/run-git.d.ts +0 -63
  1071. package/dist/operations/providers/default/run-git.js +0 -216
  1072. package/dist/operations/providers/default/utility-operations.d.ts +0 -45
  1073. package/dist/operations/providers/default/utility-operations.js +0 -139
  1074. package/dist/operations/providers/default.d.ts +0 -4
  1075. package/dist/operations/providers/default.js +0 -4
  1076. package/dist/operations/runtime/runtime.d.ts +0 -9
  1077. package/dist/operations/runtime/runtime.js +0 -63
  1078. package/dist/operations/services/agents/runtime-tools.d.ts +0 -35
  1079. package/dist/operations/services/agents/runtime-tools.js +0 -212
  1080. package/dist/operations/services/build/build-warning-policy.d.ts +0 -34
  1081. package/dist/operations/services/build/build-warning-policy.js +0 -91
  1082. package/dist/operations/services/capacity/accounting/release-proof-ledger.d.ts +0 -13
  1083. package/dist/operations/services/capacity/accounting/release-proof-ledger.js +0 -81
  1084. package/dist/operations/services/capacity/providers/commit-message-provider.d.ts +0 -3
  1085. package/dist/operations/services/capacity/providers/commit-message-provider.js +0 -3
  1086. package/dist/operations/services/commit-message-provider/context-lines.d.ts +0 -9
  1087. package/dist/operations/services/commit-message-provider/context-lines.js +0 -168
  1088. package/dist/operations/services/commit-message-provider/default-commit-ai-model.d.ts +0 -87
  1089. package/dist/operations/services/commit-message-provider/default-commit-ai-model.js +0 -149
  1090. package/dist/operations/services/commit-message-provider/fallback-summary.d.ts +0 -34
  1091. package/dist/operations/services/commit-message-provider/fallback-summary.js +0 -227
  1092. package/dist/operations/services/config-runtime/accounts/ensure-secret-session-for-config.d.ts +0 -80
  1093. package/dist/operations/services/config-runtime/accounts/ensure-secret-session-for-config.js +0 -171
  1094. package/dist/operations/services/config-runtime/agents/ensure-act-verification-tooling.d.ts +0 -56
  1095. package/dist/operations/services/config-runtime/agents/ensure-act-verification-tooling.js +0 -234
  1096. package/dist/operations/services/config-runtime/commerce/catalog/resolve-template-catalog-endpoint.d.ts +0 -15
  1097. package/dist/operations/services/config-runtime/commerce/catalog/resolve-template-catalog-endpoint.js +0 -241
  1098. package/dist/operations/services/config-runtime/configuration/configuration-generation.d.ts +0 -25
  1099. package/dist/operations/services/config-runtime/configuration/configuration-generation.js +0 -71
  1100. package/dist/operations/services/config-runtime/configuration/create-default-machine-config.d.ts +0 -104
  1101. package/dist/operations/services/config-runtime/configuration/create-default-machine-config.js +0 -273
  1102. package/dist/operations/services/config-runtime/configuration/create-git-hub-config-sync-units.d.ts +0 -55
  1103. package/dist/operations/services/config-runtime/configuration/create-git-hub-config-sync-units.js +0 -247
  1104. package/dist/operations/services/config-runtime/configuration/finalize-config.d.ts +0 -53
  1105. package/dist/operations/services/config-runtime/configuration/finalize-config.js +0 -271
  1106. package/dist/operations/services/config-runtime/configuration/inspect-key-agent-status.d.ts +0 -5
  1107. package/dist/operations/services/config-runtime/configuration/inspect-key-agent-status.js +0 -215
  1108. package/dist/operations/services/config-runtime/configuration/list-relevant-config-entries.d.ts +0 -47
  1109. package/dist/operations/services/config-runtime/configuration/list-relevant-config-entries.js +0 -228
  1110. package/dist/operations/services/config-runtime/configuration/machine-config-relative-path.d.ts +0 -93
  1111. package/dist/operations/services/config-runtime/configuration/machine-config-relative-path.js +0 -214
  1112. package/dist/operations/services/config-runtime/configuration/resolve-launch-environment.d.ts +0 -100
  1113. package/dist/operations/services/config-runtime/configuration/resolve-launch-environment.js +0 -229
  1114. package/dist/operations/services/config-runtime/hosting/check-railway-connection.d.ts +0 -35
  1115. package/dist/operations/services/config-runtime/hosting/check-railway-connection.js +0 -214
  1116. package/dist/operations/services/config-runtime/hosting/load-tenant-deploy-config.d.ts +0 -71
  1117. package/dist/operations/services/config-runtime/hosting/load-tenant-deploy-config.js +0 -253
  1118. package/dist/operations/services/config-runtime/hosting/sync-cloudflare-environment.d.ts +0 -64
  1119. package/dist/operations/services/config-runtime/hosting/sync-cloudflare-environment.js +0 -184
  1120. package/dist/operations/services/config-runtime/support/collect-print-env-report.d.ts +0 -53
  1121. package/dist/operations/services/config-runtime/support/collect-print-env-report.js +0 -58
  1122. package/dist/operations/services/config-runtime/support/resolve-entry-value-from-buckets.d.ts +0 -29
  1123. package/dist/operations/services/config-runtime/support/resolve-entry-value-from-buckets.js +0 -237
  1124. package/dist/operations/services/config-runtime/support/rotate-machine-key-passphrase.d.ts +0 -55
  1125. package/dist/operations/services/config-runtime/support/rotate-machine-key-passphrase.js +0 -258
  1126. package/dist/operations/services/config-runtime/support/summarize-persistent-readiness.d.ts +0 -117
  1127. package/dist/operations/services/config-runtime/support/summarize-persistent-readiness.js +0 -231
  1128. package/dist/operations/services/configuration/config-runtime.d.ts +0 -18
  1129. package/dist/operations/services/configuration/config-runtime.js +0 -18
  1130. package/dist/operations/services/configuration/github-credentials.d.ts +0 -13
  1131. package/dist/operations/services/configuration/github-credentials.js +0 -71
  1132. package/dist/operations/services/configuration/key-agent.d.ts +0 -4
  1133. package/dist/operations/services/configuration/key-agent.js +0 -4
  1134. package/dist/operations/services/deploy/accounts/local-runtime-auth-env-keys.d.ts +0 -159
  1135. package/dist/operations/services/deploy/accounts/local-runtime-auth-env-keys.js +0 -240
  1136. package/dist/operations/services/deploy/configuration/destroy-environment-resources.d.ts +0 -229
  1137. package/dist/operations/services/deploy/configuration/destroy-environment-resources.js +0 -219
  1138. package/dist/operations/services/deploy/hosting/assert-cloudflare-cache-purge-succeeded.d.ts +0 -105
  1139. package/dist/operations/services/deploy/hosting/assert-cloudflare-cache-purge-succeeded.js +0 -215
  1140. package/dist/operations/services/deploy/hosting/build-managed-cloudflare-cache-rules.d.ts +0 -163
  1141. package/dist/operations/services/deploy/hosting/build-managed-cloudflare-cache-rules.js +0 -247
  1142. package/dist/operations/services/deploy/hosting/cloudflare-api-request.d.ts +0 -7
  1143. package/dist/operations/services/deploy/hosting/cloudflare-api-request.js +0 -180
  1144. package/dist/operations/services/deploy/hosting/cloudflare-destroy-verification.d.ts +0 -48
  1145. package/dist/operations/services/deploy/hosting/cloudflare-destroy-verification.js +0 -120
  1146. package/dist/operations/services/deploy/hosting/collect-missing-deploy-inputs.d.ts +0 -67
  1147. package/dist/operations/services/deploy/hosting/collect-missing-deploy-inputs.js +0 -227
  1148. package/dist/operations/services/deploy/hosting/configured-surface-hosts.d.ts +0 -100
  1149. package/dist/operations/services/deploy/hosting/configured-surface-hosts.js +0 -224
  1150. package/dist/operations/services/deploy/hosting/delete-cloudflare-api-resource.d.ts +0 -65
  1151. package/dist/operations/services/deploy/hosting/delete-cloudflare-api-resource.js +0 -258
  1152. package/dist/operations/services/deploy/hosting/load-deploy-state.d.ts +0 -17
  1153. package/dist/operations/services/deploy/hosting/load-deploy-state.js +0 -278
  1154. package/dist/operations/services/deploy/hosting/provision-cloudflare-resources.d.ts +0 -47
  1155. package/dist/operations/services/deploy/hosting/provision-cloudflare-resources.js +0 -207
  1156. package/dist/operations/services/deploy/hosting/verify-provisioned-cloudflare-resources.d.ts +0 -25
  1157. package/dist/operations/services/deploy/hosting/verify-provisioned-cloudflare-resources.js +0 -260
  1158. package/dist/operations/services/deploy/projects/projects-core/ensure-pages-project-compatibility.d.ts +0 -59
  1159. package/dist/operations/services/deploy/projects/projects-core/ensure-pages-project-compatibility.js +0 -142
  1160. package/dist/operations/services/deploy/support/default-compatibility-date.d.ts +0 -43
  1161. package/dist/operations/services/deploy/support/default-compatibility-date.js +0 -236
  1162. package/dist/operations/services/deploy/support/delete-cache-rules.d.ts +0 -52
  1163. package/dist/operations/services/deploy/support/delete-cache-rules.js +0 -267
  1164. package/dist/operations/services/deploy/support/docker-list.d.ts +0 -55
  1165. package/dist/operations/services/deploy/support/docker-list.js +0 -251
  1166. package/dist/operations/services/deploy/support/pages-domain-name.d.ts +0 -52
  1167. package/dist/operations/services/deploy/support/pages-domain-name.js +0 -246
  1168. package/dist/operations/services/deploy/support/print-destroy-summary.d.ts +0 -1
  1169. package/dist/operations/services/deploy/support/print-destroy-summary.js +0 -40
  1170. package/dist/operations/services/deploy/support/run-wrangler.d.ts +0 -36
  1171. package/dist/operations/services/deploy/support/run-wrangler.js +0 -245
  1172. package/dist/operations/services/git-runner/active-git-process-hints.d.ts +0 -16
  1173. package/dist/operations/services/git-runner/active-git-process-hints.js +0 -225
  1174. package/dist/operations/services/git-runner/git-runner-mode.d.ts +0 -78
  1175. package/dist/operations/services/git-runner/git-runner-mode.js +0 -198
  1176. package/dist/operations/services/git-runner/recover-git-locks.d.ts +0 -14
  1177. package/dist/operations/services/git-runner/recover-git-locks.js +0 -124
  1178. package/dist/operations/services/git-workflow/checkout-task-branch-from-staging.d.ts +0 -57
  1179. package/dist/operations/services/git-workflow/checkout-task-branch-from-staging.js +0 -223
  1180. package/dist/operations/services/git-workflow/inspect-detached-head-repair.d.ts +0 -112
  1181. package/dist/operations/services/git-workflow/inspect-detached-head-repair.js +0 -265
  1182. package/dist/operations/services/git-workflow/inspect-merged-remote-task-branches.d.ts +0 -85
  1183. package/dist/operations/services/git-workflow/inspect-merged-remote-task-branches.js +0 -237
  1184. package/dist/operations/services/git-workflow/reconcile-submodule-checkouts.d.ts +0 -5
  1185. package/dist/operations/services/git-workflow/reconcile-submodule-checkouts.js +0 -34
  1186. package/dist/operations/services/git-workflow/staging-branch.d.ts +0 -32
  1187. package/dist/operations/services/git-workflow/staging-branch.js +0 -203
  1188. package/dist/operations/services/github-actions-verification/create-git-hub-actions-gate-progress-reporter.d.ts +0 -15
  1189. package/dist/operations/services/github-actions-verification/create-git-hub-actions-gate-progress-reporter.js +0 -66
  1190. package/dist/operations/services/github-actions-verification/git-hub-actions-workflow-state.d.ts +0 -134
  1191. package/dist/operations/services/github-actions-verification/git-hub-actions-workflow-state.js +0 -104
  1192. package/dist/operations/services/github-actions-verification/inspect-target.d.ts +0 -37
  1193. package/dist/operations/services/github-actions-verification/inspect-target.js +0 -237
  1194. package/dist/operations/services/github-actions-verification/resolve-remote-branch-head.d.ts +0 -16
  1195. package/dist/operations/services/github-actions-verification/resolve-remote-branch-head.js +0 -228
  1196. package/dist/operations/services/github-api/create-git-hub-api-client.d.ts +0 -73
  1197. package/dist/operations/services/github-api/create-git-hub-api-client.js +0 -264
  1198. package/dist/operations/services/github-api/get-latest-git-hub-workflow-run.d.ts +0 -52
  1199. package/dist/operations/services/github-api/get-latest-git-hub-workflow-run.js +0 -214
  1200. package/dist/operations/services/github-api/paginate-git-hub-environment-names.d.ts +0 -45
  1201. package/dist/operations/services/github-api/paginate-git-hub-environment-names.js +0 -176
  1202. package/dist/operations/services/github-api/require.d.ts +0 -139
  1203. package/dist/operations/services/github-api/require.js +0 -123
  1204. package/dist/operations/services/github-api/upsert-git-hub-repository-variable-with-gh-cli.d.ts +0 -32
  1205. package/dist/operations/services/github-api/upsert-git-hub-repository-variable-with-gh-cli.js +0 -243
  1206. package/dist/operations/services/github-automation/ensure-git-hub-bootstrap-repository.d.ts +0 -21
  1207. package/dist/operations/services/github-automation/ensure-git-hub-bootstrap-repository.js +0 -59
  1208. package/dist/operations/services/github-automation/github-repository-remote.d.ts +0 -3
  1209. package/dist/operations/services/github-automation/github-repository-remote.js +0 -36
  1210. package/dist/operations/services/github-automation/non-empty-values.d.ts +0 -51
  1211. package/dist/operations/services/github-automation/non-empty-values.js +0 -111
  1212. package/dist/operations/services/guarantees/release-proof-planner.d.ts +0 -48
  1213. package/dist/operations/services/guarantees/release-proof-planner.js +0 -195
  1214. package/dist/operations/services/guarantees/release-proof-runner.d.ts +0 -16
  1215. package/dist/operations/services/guarantees/release-proof-runner.js +0 -169
  1216. package/dist/operations/services/guarantees/release-proof.d.ts +0 -81
  1217. package/dist/operations/services/guarantees/release-proof.js +0 -79
  1218. package/dist/operations/services/hosted-service-checks/collect-hosted-service-checks.d.ts +0 -2
  1219. package/dist/operations/services/hosted-service-checks/collect-hosted-service-checks.js +0 -387
  1220. package/dist/operations/services/hosted-service-checks/hosted-service-check-status.d.ts +0 -110
  1221. package/dist/operations/services/hosted-service-checks/hosted-service-check-status.js +0 -155
  1222. package/dist/operations/services/hosting/audit/hosted-service-checks.d.ts +0 -2
  1223. package/dist/operations/services/hosting/audit/hosted-service-checks.js +0 -2
  1224. package/dist/operations/services/hosting/audit/hosting-audit.d.ts +0 -4
  1225. package/dist/operations/services/hosting/audit/hosting-audit.js +0 -4
  1226. package/dist/operations/services/hosting/audit/live-hosted-service-checks.d.ts +0 -4
  1227. package/dist/operations/services/hosting/audit/live-hosted-service-checks.js +0 -4
  1228. package/dist/operations/services/hosting/audit/managed-host-security.d.ts +0 -13
  1229. package/dist/operations/services/hosting/audit/managed-host-security.js +0 -55
  1230. package/dist/operations/services/hosting/deployment/deploy.d.ts +0 -19
  1231. package/dist/operations/services/hosting/deployment/deploy.js +0 -19
  1232. package/dist/operations/services/hosting/deployment/deployment-readiness.d.ts +0 -30
  1233. package/dist/operations/services/hosting/deployment/deployment-readiness.js +0 -217
  1234. package/dist/operations/services/hosting/deployment/save-deploy-preflight.d.ts +0 -32
  1235. package/dist/operations/services/hosting/deployment/save-deploy-preflight.js +0 -82
  1236. package/dist/operations/services/hosting/railway/railway-api.d.ts +0 -10
  1237. package/dist/operations/services/hosting/railway/railway-api.js +0 -10
  1238. package/dist/operations/services/hosting/railway/railway-cli.d.ts +0 -47
  1239. package/dist/operations/services/hosting/railway/railway-cli.js +0 -142
  1240. package/dist/operations/services/hosting/railway/railway-deploy.d.ts +0 -10
  1241. package/dist/operations/services/hosting/railway/railway-deploy.js +0 -10
  1242. package/dist/operations/services/hosting/railway/railway-source-policy.d.ts +0 -25
  1243. package/dist/operations/services/hosting/railway/railway-source-policy.js +0 -111
  1244. package/dist/operations/services/hosting-audit/check-smtp-reachability.d.ts +0 -14
  1245. package/dist/operations/services/hosting-audit/check-smtp-reachability.js +0 -271
  1246. package/dist/operations/services/hosting-audit/format-hosting-audit-report.d.ts +0 -2
  1247. package/dist/operations/services/hosting-audit/format-hosting-audit-report.js +0 -26
  1248. package/dist/operations/services/hosting-audit/hosting-audit-environment.d.ts +0 -98
  1249. package/dist/operations/services/hosting-audit/hosting-audit-environment.js +0 -177
  1250. package/dist/operations/services/hosting-audit/required-key-check.d.ts +0 -23
  1251. package/dist/operations/services/hosting-audit/required-key-check.js +0 -199
  1252. package/dist/operations/services/key-agent/migrate-legacy-project-machine-key-to-wrapped.d.ts +0 -2
  1253. package/dist/operations/services/key-agent/migrate-legacy-project-machine-key-to-wrapped.js +0 -27
  1254. package/dist/operations/services/key-agent/read-legacy-project-machine-key.d.ts +0 -18
  1255. package/dist/operations/services/key-agent/read-legacy-project-machine-key.js +0 -250
  1256. package/dist/operations/services/key-agent/read-wrapped-machine-key-file.d.ts +0 -43
  1257. package/dist/operations/services/key-agent/read-wrapped-machine-key-file.js +0 -260
  1258. package/dist/operations/services/key-agent/treseed-machine-key-passphrase-env.d.ts +0 -117
  1259. package/dist/operations/services/key-agent/treseed-machine-key-passphrase-env.js +0 -149
  1260. package/dist/operations/services/live-hosted-service-checks/collect-http-observations.d.ts +0 -12
  1261. package/dist/operations/services/live-hosted-service-checks/collect-http-observations.js +0 -138
  1262. package/dist/operations/services/live-hosted-service-checks/collect-railway-observations.d.ts +0 -11
  1263. package/dist/operations/services/live-hosted-service-checks/collect-railway-observations.js +0 -271
  1264. package/dist/operations/services/live-hosted-service-checks/default-retry-attempts.d.ts +0 -109
  1265. package/dist/operations/services/live-hosted-service-checks/default-retry-attempts.js +0 -184
  1266. package/dist/operations/services/live-hosted-service-checks/verify-railway-postgres-topology.d.ts +0 -13
  1267. package/dist/operations/services/live-hosted-service-checks/verify-railway-postgres-topology.js +0 -71
  1268. package/dist/operations/services/operations/bootstrap-runner.d.ts +0 -39
  1269. package/dist/operations/services/operations/bootstrap-runner.js +0 -191
  1270. package/dist/operations/services/operations/git-runner.d.ts +0 -3
  1271. package/dist/operations/services/operations/git-runner.js +0 -3
  1272. package/dist/operations/services/operations/git-workflow.d.ts +0 -5
  1273. package/dist/operations/services/operations/git-workflow.js +0 -5
  1274. package/dist/operations/services/operations/operations-runner-smoke.d.ts +0 -31
  1275. package/dist/operations/services/operations/operations-runner-smoke.js +0 -212
  1276. package/dist/operations/services/operations/workflow-timing.d.ts +0 -25
  1277. package/dist/operations/services/operations/workflow-timing.js +0 -79
  1278. package/dist/operations/services/package-adapters/beam-package-adapter.d.ts +0 -5
  1279. package/dist/operations/services/package-adapters/beam-package-adapter.js +0 -130
  1280. package/dist/operations/services/package-adapters/deployment-source-mode-for-branch.d.ts +0 -19
  1281. package/dist/operations/services/package-adapters/deployment-source-mode-for-branch.js +0 -154
  1282. package/dist/operations/services/package-adapters/package-kind.d.ts +0 -169
  1283. package/dist/operations/services/package-adapters/package-kind.js +0 -110
  1284. package/dist/operations/services/package-adapters/plan-package-development-image.d.ts +0 -52
  1285. package/dist/operations/services/package-adapters/plan-package-development-image.js +0 -238
  1286. package/dist/operations/services/package-adapters/render-package-workflow.d.ts +0 -13
  1287. package/dist/operations/services/package-adapters/render-package-workflow.js +0 -251
  1288. package/dist/operations/services/package-adapters/validate-package-manifests.d.ts +0 -7
  1289. package/dist/operations/services/package-adapters/validate-package-manifests.js +0 -112
  1290. package/dist/operations/services/package-bootstrap/contracts.d.ts +0 -30
  1291. package/dist/operations/services/package-bootstrap/index.d.ts +0 -2
  1292. package/dist/operations/services/package-bootstrap/index.js +0 -2
  1293. package/dist/operations/services/package-bootstrap/initialize-package.d.ts +0 -2
  1294. package/dist/operations/services/package-bootstrap/initialize-package.js +0 -122
  1295. package/dist/operations/services/package-bootstrap/template.d.ts +0 -2
  1296. package/dist/operations/services/package-bootstrap/template.js +0 -390
  1297. package/dist/operations/services/packages/package-artifacts.d.ts +0 -37
  1298. package/dist/operations/services/packages/package-artifacts.js +0 -99
  1299. package/dist/operations/services/packages/package-reference-policy.d.ts +0 -67
  1300. package/dist/operations/services/packages/package-reference-policy.js +0 -366
  1301. package/dist/operations/services/packages/release-history.d.ts +0 -59
  1302. package/dist/operations/services/packages/release-history.js +0 -158
  1303. package/dist/operations/services/persistence/d1-migration.d.ts +0 -6
  1304. package/dist/operations/services/persistence/d1-migration.js +0 -120
  1305. package/dist/operations/services/railway-api/collect-railway-volumes.d.ts +0 -30
  1306. package/dist/operations/services/railway-api/collect-railway-volumes.js +0 -196
  1307. package/dist/operations/services/railway-api/default-railway-api-url.d.ts +0 -122
  1308. package/dist/operations/services/railway-api/default-railway-api-url.js +0 -139
  1309. package/dist/operations/services/railway-api/ensure-railway-custom-domain.d.ts +0 -74
  1310. package/dist/operations/services/railway-api/ensure-railway-custom-domain.js +0 -119
  1311. package/dist/operations/services/railway-api/ensure-railway-service-instance-configuration.d.ts +0 -91
  1312. package/dist/operations/services/railway-api/ensure-railway-service-instance-configuration.js +0 -164
  1313. package/dist/operations/services/railway-api/ensure-railway-service.d.ts +0 -59
  1314. package/dist/operations/services/railway-api/ensure-railway-service.js +0 -217
  1315. package/dist/operations/services/railway-api/inspect-railway-postgres-service.d.ts +0 -73
  1316. package/dist/operations/services/railway-api/inspect-railway-postgres-service.js +0 -209
  1317. package/dist/operations/services/railway-api/list-railway-projects.d.ts +0 -41
  1318. package/dist/operations/services/railway-api/list-railway-projects.js +0 -213
  1319. package/dist/operations/services/railway-api/list-railway-service-domains.d.ts +0 -72
  1320. package/dist/operations/services/railway-api/list-railway-service-domains.js +0 -212
  1321. package/dist/operations/services/railway-api/normalize-workspace.d.ts +0 -17
  1322. package/dist/operations/services/railway-api/normalize-workspace.js +0 -241
  1323. package/dist/operations/services/railway-api/upsert-railway-variables.d.ts +0 -39
  1324. package/dist/operations/services/railway-api/upsert-railway-variables.js +0 -214
  1325. package/dist/operations/services/railway-deploy/configured-public-tree-dx-railway-services.d.ts +0 -81
  1326. package/dist/operations/services/railway-deploy/configured-public-tree-dx-railway-services.js +0 -179
  1327. package/dist/operations/services/railway-deploy/configured-railway-services-for-config.d.ts +0 -1
  1328. package/dist/operations/services/railway-deploy/configured-railway-services-for-config.js +0 -140
  1329. package/dist/operations/services/railway-deploy/configured-railway-services.d.ts +0 -42
  1330. package/dist/operations/services/railway-deploy/configured-railway-services.js +0 -205
  1331. package/dist/operations/services/railway-deploy/deploy-railway-service.d.ts +0 -45
  1332. package/dist/operations/services/railway-deploy/deploy-railway-service.js +0 -122
  1333. package/dist/operations/services/railway-deploy/ensure-railway-scheduled-jobs.d.ts +0 -19
  1334. package/dist/operations/services/railway-deploy/ensure-railway-scheduled-jobs.js +0 -172
  1335. package/dist/operations/services/railway-deploy/normalize-scope.d.ts +0 -34
  1336. package/dist/operations/services/railway-deploy/normalize-scope.js +0 -230
  1337. package/dist/operations/services/railway-deploy/railway-status-deployment-terminal-failure.d.ts +0 -21
  1338. package/dist/operations/services/railway-deploy/railway-status-deployment-terminal-failure.js +0 -182
  1339. package/dist/operations/services/railway-deploy/sync-railway-service-runtime-configuration-after-deploy.d.ts +0 -66
  1340. package/dist/operations/services/railway-deploy/sync-railway-service-runtime-configuration-after-deploy.js +0 -216
  1341. package/dist/operations/services/railway-deploy/verify-railway-managed-resources.d.ts +0 -20
  1342. package/dist/operations/services/railway-deploy/verify-railway-managed-resources.js +0 -245
  1343. package/dist/operations/services/railway-deploy/wait-for-railway-managed-deployments-settled.d.ts +0 -52
  1344. package/dist/operations/services/railway-deploy/wait-for-railway-managed-deployments-settled.js +0 -205
  1345. package/dist/operations/services/reconciliation/package-adapters.d.ts +0 -6
  1346. package/dist/operations/services/reconciliation/package-adapters.js +0 -6
  1347. package/dist/operations/services/repositories/git-remote-policy.d.ts +0 -9
  1348. package/dist/operations/services/repositories/git-remote-policy.js +0 -63
  1349. package/dist/operations/services/repositories/github-actions-verification.d.ts +0 -4
  1350. package/dist/operations/services/repositories/github-actions-verification.js +0 -4
  1351. package/dist/operations/services/repositories/github-api.d.ts +0 -5
  1352. package/dist/operations/services/repositories/github-api.js +0 -5
  1353. package/dist/operations/services/repositories/github-automation.d.ts +0 -3
  1354. package/dist/operations/services/repositories/github-automation.js +0 -3
  1355. package/dist/operations/services/repositories/platform-initializer.d.ts +0 -49
  1356. package/dist/operations/services/repositories/platform-initializer.js +0 -161
  1357. package/dist/operations/services/repositories/platform-workset.d.ts +0 -103
  1358. package/dist/operations/services/repositories/platform-workset.js +0 -204
  1359. package/dist/operations/services/repositories/repository-save-orchestrator.d.ts +0 -13
  1360. package/dist/operations/services/repositories/repository-save-orchestrator.js +0 -13
  1361. package/dist/operations/services/repository-save-orchestrator/packages/finalize-clean-package-version.d.ts +0 -4
  1362. package/dist/operations/services/repository-save-orchestrator/packages/finalize-clean-package-version.js +0 -156
  1363. package/dist/operations/services/repository-save-orchestrator/repositories/discover-repository-save-nodes.d.ts +0 -43
  1364. package/dist/operations/services/repository-save-orchestrator/repositories/discover-repository-save-nodes.js +0 -312
  1365. package/dist/operations/services/repository-save-orchestrator/repositories/plan-repository-save.d.ts +0 -11
  1366. package/dist/operations/services/repository-save-orchestrator/repositories/plan-repository-save.js +0 -173
  1367. package/dist/operations/services/repository-save-orchestrator/repositories/repository-alias-state.d.ts +0 -4
  1368. package/dist/operations/services/repository-save-orchestrator/repositories/repository-alias-state.js +0 -99
  1369. package/dist/operations/services/repository-save-orchestrator/repositories/run-repository-save-orchestrator.d.ts +0 -8
  1370. package/dist/operations/services/repository-save-orchestrator/repositories/run-repository-save-orchestrator.js +0 -173
  1371. package/dist/operations/services/repository-save-orchestrator/repositories/save-one-repository.d.ts +0 -2
  1372. package/dist/operations/services/repository-save-orchestrator/repositories/save-one-repository.js +0 -227
  1373. package/dist/operations/services/repository-save-orchestrator/runtime/with-short-process-temp-env.d.ts +0 -39
  1374. package/dist/operations/services/repository-save-orchestrator/runtime/with-short-process-temp-env.js +0 -258
  1375. package/dist/operations/services/repository-save-orchestrator/support/change-classification.d.ts +0 -9
  1376. package/dist/operations/services/repository-save-orchestrator/support/change-classification.js +0 -47
  1377. package/dist/operations/services/repository-save-orchestrator/support/classify-repo-kind.d.ts +0 -33
  1378. package/dist/operations/services/repository-save-orchestrator/support/classify-repo-kind.js +0 -236
  1379. package/dist/operations/services/repository-save-orchestrator/support/has-staged-changes.d.ts +0 -11
  1380. package/dist/operations/services/repository-save-orchestrator/support/has-staged-changes.js +0 -175
  1381. package/dist/operations/services/repository-save-orchestrator/support/lockfile-manifest-consistency.d.ts +0 -8
  1382. package/dist/operations/services/repository-save-orchestrator/support/lockfile-manifest-consistency.js +0 -46
  1383. package/dist/operations/services/repository-save-orchestrator/support/repo-kind.d.ts +0 -215
  1384. package/dist/operations/services/repository-save-orchestrator/support/repo-kind.js +0 -54
  1385. package/dist/operations/services/repository-save-orchestrator/support/run-script.d.ts +0 -38
  1386. package/dist/operations/services/repository-save-orchestrator/support/run-script.js +0 -327
  1387. package/dist/operations/services/repository-save-orchestrator/support/standalone-lockfile.d.ts +0 -9
  1388. package/dist/operations/services/repository-save-orchestrator/support/standalone-lockfile.js +0 -102
  1389. package/dist/operations/services/repository-save-orchestrator/support/tag-state.d.ts +0 -22
  1390. package/dist/operations/services/repository-save-orchestrator/support/tag-state.js +0 -212
  1391. package/dist/operations/services/repository-save-orchestrator/treedx/repositories/sync-root-workspace-lockfile-metadata.d.ts +0 -15
  1392. package/dist/operations/services/repository-save-orchestrator/treedx/repositories/sync-root-workspace-lockfile-metadata.js +0 -259
  1393. package/dist/operations/services/runtime/export-runtime.d.ts +0 -18
  1394. package/dist/operations/services/runtime/export-runtime.js +0 -140
  1395. package/dist/operations/services/runtime/local-cleanup.d.ts +0 -47
  1396. package/dist/operations/services/runtime/local-cleanup.js +0 -206
  1397. package/dist/operations/services/runtime/local-dev.d.ts +0 -8
  1398. package/dist/operations/services/runtime/local-dev.js +0 -96
  1399. package/dist/operations/services/runtime/npm-git-clone-recovery.d.ts +0 -12
  1400. package/dist/operations/services/runtime/npm-git-clone-recovery.js +0 -25
  1401. package/dist/operations/services/runtime/runtime-paths.d.ts +0 -19
  1402. package/dist/operations/services/runtime/runtime-paths.js +0 -54
  1403. package/dist/operations/services/runtime/watch-dev.d.ts +0 -21
  1404. package/dist/operations/services/runtime/watch-dev.js +0 -282
  1405. package/dist/operations/services/support/managed-repositories.d.ts +0 -38
  1406. package/dist/operations/services/support/managed-repositories.js +0 -188
  1407. package/dist/operations/services/support/market-packaging.d.ts +0 -43
  1408. package/dist/operations/services/support/market-packaging.js +0 -169
  1409. package/dist/operations/services/support/template-registry.d.ts +0 -3
  1410. package/dist/operations/services/support/template-registry.js +0 -3
  1411. package/dist/operations/services/support/verification-cache.d.ts +0 -25
  1412. package/dist/operations/services/support/verification-cache.js +0 -71
  1413. package/dist/operations/services/template-registry/sync-managed-package-json.d.ts +0 -32
  1414. package/dist/operations/services/template-registry/sync-managed-package-json.js +0 -234
  1415. package/dist/operations/services/template-registry/template-categories.d.ts +0 -115
  1416. package/dist/operations/services/template-registry/template-categories.js +0 -161
  1417. package/dist/operations/services/template-registry/validate-template-placeholders.d.ts +0 -39
  1418. package/dist/operations/services/template-registry/validate-template-placeholders.js +0 -267
  1419. package/dist/operations/services/treedx/workspaces/workspace-dependency-mode.d.ts +0 -3
  1420. package/dist/operations/services/treedx/workspaces/workspace-dependency-mode.js +0 -3
  1421. package/dist/operations/services/treedx/workspaces/workspace-preflight.d.ts +0 -40
  1422. package/dist/operations/services/treedx/workspaces/workspace-preflight.js +0 -172
  1423. package/dist/operations/services/treedx/workspaces/workspace-save-script.d.ts +0 -26
  1424. package/dist/operations/services/treedx/workspaces/workspace-save-script.js +0 -50
  1425. package/dist/operations/services/treedx/workspaces/workspace-save.d.ts +0 -2
  1426. package/dist/operations/services/treedx/workspaces/workspace-save.js +0 -2
  1427. package/dist/operations/services/treedx/workspaces/workspace-tools.d.ts +0 -17
  1428. package/dist/operations/services/treedx/workspaces/workspace-tools.js +0 -320
  1429. package/dist/operations/services/workspace-dependency-mode/collect-deployment-lockfile-workspace-issues.d.ts +0 -7
  1430. package/dist/operations/services/workspace-dependency-mode/collect-deployment-lockfile-workspace-issues.js +0 -93
  1431. package/dist/operations/services/workspace-dependency-mode/collect-package-lock-consistency-issues.d.ts +0 -49
  1432. package/dist/operations/services/workspace-dependency-mode/collect-package-lock-consistency-issues.js +0 -236
  1433. package/dist/operations/services/workspace-dependency-mode/dependency-resolution-mode.d.ts +0 -53
  1434. package/dist/operations/services/workspace-dependency-mode/dependency-resolution-mode.js +0 -191
  1435. package/dist/operations/services/workspace-save/apply-workspace-version-changes.d.ts +0 -51
  1436. package/dist/operations/services/workspace-save/apply-workspace-version-changes.js +0 -229
  1437. package/dist/operations/services/workspace-save/run-git.d.ts +0 -51
  1438. package/dist/operations/services/workspace-save/run-git.js +0 -243
  1439. package/dist/operations/workflow-state.d.ts +0 -5
  1440. package/dist/operations/workflow-state.js +0 -5
  1441. package/dist/operations/workflow-support.d.ts +0 -30
  1442. package/dist/operations/workflow-support.js +0 -412
  1443. package/dist/operations/workflow.d.ts +0 -329
  1444. package/dist/operations/workflow.js +0 -140
  1445. package/dist/packages/sdk-version.d.ts +0 -2
  1446. package/dist/packages/sdk-version.js +0 -42
  1447. package/dist/persistence/d1-http.d.ts +0 -38
  1448. package/dist/persistence/d1-http.js +0 -95
  1449. package/dist/persistence/d1-store.d.ts +0 -183
  1450. package/dist/persistence/d1-store.js +0 -415
  1451. package/dist/platform/configuration/config.d.ts +0 -27
  1452. package/dist/platform/configuration/config.js +0 -78
  1453. package/dist/platform/configuration/environment.d.ts +0 -5
  1454. package/dist/platform/configuration/environment.js +0 -5
  1455. package/dist/platform/configuration/site-config-schema.d.ts +0 -1
  1456. package/dist/platform/configuration/site-config-schema.js +0 -4
  1457. package/dist/platform/configuration/tenant-config.d.ts +0 -8
  1458. package/dist/platform/configuration/tenant-config.js +0 -212
  1459. package/dist/platform/content/content-runtime-source.d.ts +0 -54
  1460. package/dist/platform/content/content-runtime-source.js +0 -169
  1461. package/dist/platform/content/local-content-materialization.d.ts +0 -9
  1462. package/dist/platform/content/local-content-materialization.js +0 -212
  1463. package/dist/platform/deploy-config/deploy-config-field-aliases.d.ts +0 -33
  1464. package/dist/platform/deploy-config/deploy-config-field-aliases.js +0 -215
  1465. package/dist/platform/deploy-config/normalize-planes-from-legacy-hosting.d.ts +0 -32
  1466. package/dist/platform/deploy-config/normalize-planes-from-legacy-hosting.js +0 -236
  1467. package/dist/platform/deploy-config/parse-deploy-config.d.ts +0 -19
  1468. package/dist/platform/deploy-config/parse-deploy-config.js +0 -177
  1469. package/dist/platform/deploy-config/parse-platform-connections.d.ts +0 -12
  1470. package/dist/platform/deploy-config/parse-platform-connections.js +0 -71
  1471. package/dist/platform/deploy-config/parse-public-tree-dx-federation-config.d.ts +0 -91
  1472. package/dist/platform/deploy-config/parse-public-tree-dx-federation-config.js +0 -217
  1473. package/dist/platform/desired-state/compile-desired-resource-graph.d.ts +0 -13
  1474. package/dist/platform/desired-state/compile-desired-resource-graph.js +0 -130
  1475. package/dist/platform/desired-state/desired-environment.d.ts +0 -79
  1476. package/dist/platform/desired-state/desired-environment.js +0 -162
  1477. package/dist/platform/desired-state/docker-source-closure.d.ts +0 -1
  1478. package/dist/platform/desired-state/docker-source-closure.js +0 -33
  1479. package/dist/platform/desired-state/local-development-resources.d.ts +0 -4
  1480. package/dist/platform/desired-state/local-development-resources.js +0 -260
  1481. package/dist/platform/desired-state/local-provider-resources.d.ts +0 -12
  1482. package/dist/platform/desired-state/local-provider-resources.js +0 -129
  1483. package/dist/platform/desired-state/local-tunnel-identity.d.ts +0 -8
  1484. package/dist/platform/desired-state/local-tunnel-identity.js +0 -35
  1485. package/dist/platform/desired-state/package-resources.d.ts +0 -4
  1486. package/dist/platform/desired-state/package-resources.js +0 -282
  1487. package/dist/platform/desired-state/release-gate-resources.d.ts +0 -6
  1488. package/dist/platform/desired-state/release-gate-resources.js +0 -243
  1489. package/dist/platform/desired-state/safe-tree-dx-repository-name.d.ts +0 -26
  1490. package/dist/platform/desired-state/safe-tree-dx-repository-name.js +0 -184
  1491. package/dist/platform/env.yaml +0 -1128
  1492. package/dist/platform/environment/api-surface-enabled.d.ts +0 -32
  1493. package/dist/platform/environment/api-surface-enabled.js +0 -202
  1494. package/dist/platform/environment/environment-scopes.d.ts +0 -143
  1495. package/dist/platform/environment/environment-scopes.js +0 -109
  1496. package/dist/platform/environment/is-entry-required.d.ts +0 -24
  1497. package/dist/platform/environment/is-entry-required.js +0 -122
  1498. package/dist/platform/environment/package-repository-credential-overlay.d.ts +0 -27
  1499. package/dist/platform/environment/package-repository-credential-overlay.js +0 -230
  1500. package/dist/platform/environment/resolve-content-bucket-binding.d.ts +0 -30
  1501. package/dist/platform/environment/resolve-content-bucket-binding.js +0 -200
  1502. package/dist/platform/hosting/deploy-config.d.ts +0 -4
  1503. package/dist/platform/hosting/deploy-config.js +0 -4
  1504. package/dist/platform/hosting/deploy-runtime.d.ts +0 -22
  1505. package/dist/platform/hosting/deploy-runtime.js +0 -93
  1506. package/dist/platform/packages/published-content-pipeline.d.ts +0 -3
  1507. package/dist/platform/packages/published-content-pipeline.js +0 -3
  1508. package/dist/platform/packages/published-content.d.ts +0 -11
  1509. package/dist/platform/packages/published-content.js +0 -11
  1510. package/dist/platform/plugins/constants.d.ts +0 -26
  1511. package/dist/platform/plugins/constants.js +0 -33
  1512. package/dist/platform/plugins/runtime.d.ts +0 -81
  1513. package/dist/platform/plugins/runtime.js +0 -288
  1514. package/dist/platform/published-content/hmac-sha256-base64-url.d.ts +0 -23
  1515. package/dist/platform/published-content/hmac-sha256-base64-url.js +0 -228
  1516. package/dist/platform/published-content/publication-contracts.d.ts +0 -60
  1517. package/dist/platform/published-content/publication-contracts.js +0 -27
  1518. package/dist/platform/published-content/published-content-manifest-schema-version.d.ts +0 -191
  1519. package/dist/platform/published-content/published-content-manifest-schema-version.js +0 -53
  1520. package/dist/platform/published-content/r2-api-token-publication-client.d.ts +0 -25
  1521. package/dist/platform/published-content/r2-api-token-publication-client.js +0 -54
  1522. package/dist/platform/published-content/r2-publication-acceptance.d.ts +0 -13
  1523. package/dist/platform/published-content/r2-publication-acceptance.js +0 -30
  1524. package/dist/platform/published-content/r2-publication-client.d.ts +0 -7
  1525. package/dist/platform/published-content/r2-publication-client.js +0 -8
  1526. package/dist/platform/published-content/r2-s3-publication-client.d.ts +0 -26
  1527. package/dist/platform/published-content/r2-s3-publication-client.js +0 -112
  1528. package/dist/platform/published-content/reconcile-content-publication.d.ts +0 -19
  1529. package/dist/platform/published-content/reconcile-content-publication.js +0 -144
  1530. package/dist/platform/published-content/runtime/build-runtime-publication.d.ts +0 -29
  1531. package/dist/platform/published-content/runtime/build-runtime-publication.js +0 -170
  1532. package/dist/platform/published-content/team-scoped-r2-overlay-content-runtime-provider.d.ts +0 -37
  1533. package/dist/platform/published-content/team-scoped-r2-overlay-content-runtime-provider.js +0 -229
  1534. package/dist/platform/published-content/validation/model-content.d.ts +0 -21
  1535. package/dist/platform/published-content/validation/model-content.js +0 -85
  1536. package/dist/platform/published-content/verify-editorial-preview-token.d.ts +0 -13
  1537. package/dist/platform/published-content/verify-editorial-preview-token.js +0 -137
  1538. package/dist/platform/published-content-pipeline/default-artifact-builder.d.ts +0 -29
  1539. package/dist/platform/published-content-pipeline/default-artifact-builder.js +0 -247
  1540. package/dist/platform/published-content-pipeline/list-markdown-files.d.ts +0 -32
  1541. package/dist/platform/published-content-pipeline/list-markdown-files.js +0 -181
  1542. package/dist/platform/published-content-pipeline/resolve-commerce-offer-mode.d.ts +0 -118
  1543. package/dist/platform/published-content-pipeline/resolve-commerce-offer-mode.js +0 -143
  1544. package/dist/platform/reconciliation/desired-state.d.ts +0 -6
  1545. package/dist/platform/reconciliation/desired-state.js +0 -6
  1546. package/dist/platform/support/contracts.d.ts +0 -381
  1547. package/dist/platform/support/contracts.js +0 -0
  1548. package/dist/platform/support/plugin.d.ts +0 -130
  1549. package/dist/platform/support/plugin.js +0 -28
  1550. package/dist/platform/support/plugins.d.ts +0 -6
  1551. package/dist/platform/support/plugins.js +0 -42
  1552. package/dist/platform/tenant/runtime-config.d.ts +0 -154
  1553. package/dist/platform/tenant/runtime-config.js +0 -73
  1554. package/dist/platform/treedx/repositories/local-treedx-seed.d.ts +0 -19
  1555. package/dist/platform/treedx/repositories/local-treedx-seed.js +0 -55
  1556. package/dist/platform/treedx/runtime-environment.d.ts +0 -20
  1557. package/dist/platform/treedx/runtime-environment.js +0 -37
  1558. package/dist/platform/utils/site-config-schema/is-record.d.ts +0 -52
  1559. package/dist/platform/utils/site-config-schema/is-record.js +0 -232
  1560. package/dist/platform/utils/site-config-schema/parse-access-policies.d.ts +0 -274
  1561. package/dist/platform/utils/site-config-schema/parse-access-policies.js +0 -247
  1562. package/dist/platform/utils/site-config-schema.d.ts +0 -2
  1563. package/dist/platform/utils/site-config-schema.js +0 -2
  1564. package/dist/platform-operation-store/database-provider.d.ts +0 -44
  1565. package/dist/platform-operation-store/database-provider.js +0 -205
  1566. package/dist/platform-operation-store/platform-operation-store.d.ts +0 -56
  1567. package/dist/platform-operation-store/platform-operation-store.js +0 -224
  1568. package/dist/platform-operations/nested-record.d.ts +0 -21
  1569. package/dist/platform-operations/nested-record.js +0 -262
  1570. package/dist/platform-operations/platform-operation-endpoints.d.ts +0 -208
  1571. package/dist/platform-operations/platform-operation-endpoints.js +0 -71
  1572. package/dist/platform-operations/platform-runner-client.d.ts +0 -52
  1573. package/dist/platform-operations/platform-runner-client.js +0 -143
  1574. package/dist/reconcile/builtin-adapters/build/local-compose-build-policy.d.ts +0 -44
  1575. package/dist/reconcile/builtin-adapters/build/local-compose-build-policy.js +0 -232
  1576. package/dist/reconcile/builtin-adapters/capacity/providers/build-capacity-provider-adapter.d.ts +0 -74
  1577. package/dist/reconcile/builtin-adapters/capacity/providers/build-capacity-provider-adapter.js +0 -396
  1578. package/dist/reconcile/builtin-adapters/capacity/providers/capacity-provider-variables-for-service.d.ts +0 -22
  1579. package/dist/reconcile/builtin-adapters/capacity/providers/capacity-provider-variables-for-service.js +0 -207
  1580. package/dist/reconcile/builtin-adapters/hosting/build-cloudflare-diff.d.ts +0 -22
  1581. package/dist/reconcile/builtin-adapters/hosting/build-cloudflare-diff.js +0 -219
  1582. package/dist/reconcile/builtin-adapters/hosting/cloudflare-tunnel/build-cloudflare-tunnel-adapter.d.ts +0 -7
  1583. package/dist/reconcile/builtin-adapters/hosting/cloudflare-tunnel/build-cloudflare-tunnel-adapter.js +0 -177
  1584. package/dist/reconcile/builtin-adapters/hosting/first-railway-domain-string.d.ts +0 -71
  1585. package/dist/reconcile/builtin-adapters/hosting/first-railway-domain-string.js +0 -212
  1586. package/dist/reconcile/builtin-adapters/hosting/observe-cloudflare-unit.d.ts +0 -2
  1587. package/dist/reconcile/builtin-adapters/hosting/observe-cloudflare-unit.js +0 -97
  1588. package/dist/reconcile/builtin-adapters/hosting/observe-railway-unit.d.ts +0 -32
  1589. package/dist/reconcile/builtin-adapters/hosting/observe-railway-unit.js +0 -228
  1590. package/dist/reconcile/builtin-adapters/hosting/railway-verification-may-settle.d.ts +0 -41
  1591. package/dist/reconcile/builtin-adapters/hosting/railway-verification-may-settle.js +0 -213
  1592. package/dist/reconcile/builtin-adapters/hosting/resolve-railway-topology-for-scope.d.ts +0 -43
  1593. package/dist/reconcile/builtin-adapters/hosting/resolve-railway-topology-for-scope.js +0 -227
  1594. package/dist/reconcile/builtin-adapters/hosting/sync-railway-environment-for-scope.d.ts +0 -31
  1595. package/dist/reconcile/builtin-adapters/hosting/sync-railway-environment-for-scope.js +0 -380
  1596. package/dist/reconcile/builtin-adapters/hosting/to-deploy-target.d.ts +0 -23
  1597. package/dist/reconcile/builtin-adapters/hosting/to-deploy-target.js +0 -250
  1598. package/dist/reconcile/builtin-adapters/hosting/verify-cloudflare-unit-once.d.ts +0 -3
  1599. package/dist/reconcile/builtin-adapters/hosting/verify-cloudflare-unit-once.js +0 -255
  1600. package/dist/reconcile/builtin-adapters/hosting/verify-railway-unit.d.ts +0 -2
  1601. package/dist/reconcile/builtin-adapters/hosting/verify-railway-unit.js +0 -283
  1602. package/dist/reconcile/builtin-adapters/projects/knowledge/reconcile-remote-tree-dx-content.d.ts +0 -23
  1603. package/dist/reconcile/builtin-adapters/projects/knowledge/reconcile-remote-tree-dx-content.js +0 -139
  1604. package/dist/reconcile/builtin-adapters/projects/knowledge/verify-local-tree-dx-project-content.d.ts +0 -18
  1605. package/dist/reconcile/builtin-adapters/projects/knowledge/verify-local-tree-dx-project-content.js +0 -386
  1606. package/dist/reconcile/builtin-adapters/projects/projects-core/configured-railway-project-sync-groups.d.ts +0 -19
  1607. package/dist/reconcile/builtin-adapters/projects/projects-core/configured-railway-project-sync-groups.js +0 -171
  1608. package/dist/reconcile/builtin-adapters/projects/projects-core/reconcile-stale-operations-runner-resources-for-project.d.ts +0 -15
  1609. package/dist/reconcile/builtin-adapters/projects/projects-core/reconcile-stale-operations-runner-resources-for-project.js +0 -63
  1610. package/dist/reconcile/builtin-adapters/reconciliation/build-git-hub-workflow-dispatch-adapter.d.ts +0 -5
  1611. package/dist/reconcile/builtin-adapters/reconciliation/build-git-hub-workflow-dispatch-adapter.js +0 -270
  1612. package/dist/reconcile/builtin-adapters/reconciliation/build-local-content-materialization-adapter.d.ts +0 -7
  1613. package/dist/reconcile/builtin-adapters/reconciliation/build-local-content-materialization-adapter.js +0 -245
  1614. package/dist/reconcile/builtin-adapters/reconciliation/build-local-docker-compose-adapter.d.ts +0 -7
  1615. package/dist/reconcile/builtin-adapters/reconciliation/build-local-docker-compose-adapter.js +0 -368
  1616. package/dist/reconcile/builtin-adapters/reconciliation/build-railway-adapter.d.ts +0 -12
  1617. package/dist/reconcile/builtin-adapters/reconciliation/build-railway-adapter.js +0 -218
  1618. package/dist/reconcile/builtin-adapters/reconciliation/build-release-gate-adapter.d.ts +0 -3
  1619. package/dist/reconcile/builtin-adapters/reconciliation/build-release-gate-adapter.js +0 -190
  1620. package/dist/reconcile/builtin-adapters/reconciliation/build-workflow-meta-adapter.d.ts +0 -30
  1621. package/dist/reconcile/builtin-adapters/reconciliation/build-workflow-meta-adapter.js +0 -237
  1622. package/dist/reconcile/builtin-adapters/reconciliation/managed-repository-storage.d.ts +0 -22
  1623. package/dist/reconcile/builtin-adapters/reconciliation/managed-repository-storage.js +0 -81
  1624. package/dist/reconcile/builtin-adapters/reconciliation/reconcile-cloudflare-target.d.ts +0 -55
  1625. package/dist/reconcile/builtin-adapters/reconciliation/reconcile-cloudflare-target.js +0 -267
  1626. package/dist/reconcile/builtin-adapters/repositories/build-github-branch-adapter.d.ts +0 -3
  1627. package/dist/reconcile/builtin-adapters/repositories/build-github-branch-adapter.js +0 -94
  1628. package/dist/reconcile/builtin-adapters/repositories/build-github-branch-rules-adapter.d.ts +0 -2
  1629. package/dist/reconcile/builtin-adapters/repositories/build-github-branch-rules-adapter.js +0 -54
  1630. package/dist/reconcile/builtin-adapters/repositories/build-github-repository-adapter.d.ts +0 -2
  1631. package/dist/reconcile/builtin-adapters/repositories/build-github-repository-adapter.js +0 -107
  1632. package/dist/reconcile/builtin-adapters/repositories/build-github-workflow-observation-adapter.d.ts +0 -2
  1633. package/dist/reconcile/builtin-adapters/repositories/build-github-workflow-observation-adapter.js +0 -63
  1634. package/dist/reconcile/builtin-adapters/support/normalize-turnstile-domains.d.ts +0 -64
  1635. package/dist/reconcile/builtin-adapters/support/normalize-turnstile-domains.js +0 -222
  1636. package/dist/reconcile/builtin-adapters/support/summarize-verification.d.ts +0 -9
  1637. package/dist/reconcile/builtin-adapters/support/summarize-verification.js +0 -101
  1638. package/dist/reconcile/builtin-adapters/support/verify-custom-domain-unit.d.ts +0 -5
  1639. package/dist/reconcile/builtin-adapters/support/verify-custom-domain-unit.js +0 -261
  1640. package/dist/reconcile/builtin-adapters/treedx/graph/build-graph-only-adapter.d.ts +0 -13
  1641. package/dist/reconcile/builtin-adapters/treedx/graph/build-graph-only-adapter.js +0 -198
  1642. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-cleanup.d.ts +0 -55
  1643. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-cleanup.js +0 -103
  1644. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-competition.d.ts +0 -29
  1645. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-competition.js +0 -179
  1646. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-context.d.ts +0 -132
  1647. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-context.js +0 -388
  1648. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-executor.d.ts +0 -50
  1649. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-executor.js +0 -0
  1650. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-governance.d.ts +0 -65
  1651. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-governance.js +0 -206
  1652. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-guards.d.ts +0 -19
  1653. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-guards.js +0 -36
  1654. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-proof.d.ts +0 -14
  1655. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-proof.js +0 -514
  1656. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-scope.d.ts +0 -14
  1657. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-scope.js +0 -122
  1658. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-terminal.d.ts +0 -17
  1659. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-terminal.js +0 -101
  1660. package/dist/reconcile/capacity/providers/live-acceptance-provider-config.d.ts +0 -1
  1661. package/dist/reconcile/capacity/providers/live-acceptance-provider-config.js +0 -20
  1662. package/dist/reconcile/engine/destroy-target-units.d.ts +0 -71
  1663. package/dist/reconcile/engine/destroy-target-units.js +0 -175
  1664. package/dist/reconcile/engine/now-iso.d.ts +0 -36
  1665. package/dist/reconcile/engine/now-iso.js +0 -206
  1666. package/dist/reconcile/engine/reconcile-target.d.ts +0 -24
  1667. package/dist/reconcile/engine/reconcile-target.js +0 -292
  1668. package/dist/reconcile/engine/refresh-units.d.ts +0 -34
  1669. package/dist/reconcile/engine/refresh-units.js +0 -93
  1670. package/dist/reconcile/hosting/live-acceptance-cloudflare-client.d.ts +0 -29
  1671. package/dist/reconcile/hosting/live-acceptance-cloudflare-client.js +0 -119
  1672. package/dist/reconcile/hosting/live-acceptance-cloudflare.d.ts +0 -14
  1673. package/dist/reconcile/hosting/live-acceptance-cloudflare.js +0 -316
  1674. package/dist/reconcile/hosting/live-acceptance-railway.d.ts +0 -14
  1675. package/dist/reconcile/hosting/live-acceptance-railway.js +0 -420
  1676. package/dist/reconcile/index.d.ts +0 -11
  1677. package/dist/reconcile/index.js +0 -11
  1678. package/dist/reconcile/providers/docker-private.d.ts +0 -78
  1679. package/dist/reconcile/providers/docker-private.js +0 -146
  1680. package/dist/reconcile/providers/github-private.d.ts +0 -206
  1681. package/dist/reconcile/providers/github-private.js +0 -267
  1682. package/dist/reconcile/providers/local-disk-capacity.d.ts +0 -22
  1683. package/dist/reconcile/providers/local-disk-capacity.js +0 -50
  1684. package/dist/reconcile/providers/local-private.d.ts +0 -28
  1685. package/dist/reconcile/providers/local-private.js +0 -75
  1686. package/dist/reconcile/providers/railway-iac/apply-railway-iac-project-with-plan.d.ts +0 -4
  1687. package/dist/reconcile/providers/railway-iac/apply-railway-iac-project-with-plan.js +0 -90
  1688. package/dist/reconcile/providers/railway-iac/railway-iac-service.d.ts +0 -158
  1689. package/dist/reconcile/providers/railway-iac/railway-iac-service.js +0 -99
  1690. package/dist/reconcile/providers/railway-iac/resolve-railway-iac-volume-bindings.d.ts +0 -17
  1691. package/dist/reconcile/providers/railway-iac/resolve-railway-iac-volume-bindings.js +0 -240
  1692. package/dist/reconcile/providers/railway-iac/run-railway-iac-with-rate-limit-retry.d.ts +0 -39
  1693. package/dist/reconcile/providers/railway-iac/run-railway-iac-with-rate-limit-retry.js +0 -174
  1694. package/dist/reconcile/providers/railway-iac/validate-railway-iac-change-set.d.ts +0 -30
  1695. package/dist/reconcile/providers/railway-iac/validate-railway-iac-change-set.js +0 -174
  1696. package/dist/reconcile/providers/railway-iac.d.ts +0 -5
  1697. package/dist/reconcile/providers/railway-iac.js +0 -5
  1698. package/dist/reconcile/providers/release-private.d.ts +0 -89
  1699. package/dist/reconcile/providers/release-private.js +0 -140
  1700. package/dist/reconcile/reconciliation/builtin-adapters.d.ts +0 -28
  1701. package/dist/reconcile/reconciliation/builtin-adapters.js +0 -28
  1702. package/dist/reconcile/reconciliation/desired-state.d.ts +0 -10
  1703. package/dist/reconcile/reconciliation/desired-state.js +0 -322
  1704. package/dist/reconcile/repositories/live-acceptance-github-client.d.ts +0 -6
  1705. package/dist/reconcile/repositories/live-acceptance-github-client.js +0 -42
  1706. package/dist/reconcile/repositories/live-acceptance-github.d.ts +0 -12
  1707. package/dist/reconcile/repositories/live-acceptance-github.js +0 -301
  1708. package/dist/reconcile/runtime/live-acceptance-local.d.ts +0 -16
  1709. package/dist/reconcile/runtime/live-acceptance-local.js +0 -260
  1710. package/dist/reconcile/runtime/live-acceptance-runtime.d.ts +0 -67
  1711. package/dist/reconcile/runtime/live-acceptance-runtime.js +0 -324
  1712. package/dist/reconcile/runtime/live-acceptance-starter-runtime.d.ts +0 -123
  1713. package/dist/reconcile/runtime/live-acceptance-starter-runtime.js +0 -439
  1714. package/dist/reconcile/runtime/local-compose-state.d.ts +0 -45
  1715. package/dist/reconcile/runtime/local-compose-state.js +0 -162
  1716. package/dist/reconcile/seeds/local-seed-bootstrap-adapter.d.ts +0 -3
  1717. package/dist/reconcile/seeds/local-seed-bootstrap-adapter.js +0 -213
  1718. package/dist/reconcile/support/acceptance/live-acceptance-starter-concurrency.d.ts +0 -19
  1719. package/dist/reconcile/support/acceptance/live-acceptance-starter-concurrency.js +0 -128
  1720. package/dist/reconcile/support/acceptance/live-acceptance-starter-engineering.d.ts +0 -18
  1721. package/dist/reconcile/support/acceptance/live-acceptance-starter-engineering.js +0 -264
  1722. package/dist/reconcile/support/acceptance/live-acceptance-starter-planning.d.ts +0 -44
  1723. package/dist/reconcile/support/acceptance/live-acceptance-starter-planning.js +0 -154
  1724. package/dist/reconcile/support/acceptance/live-acceptance-starters.d.ts +0 -51
  1725. package/dist/reconcile/support/acceptance/live-acceptance-starters.js +0 -12
  1726. package/dist/reconcile/support/acceptance/live-acceptance-values.d.ts +0 -2
  1727. package/dist/reconcile/support/acceptance/live-acceptance-values.js +0 -10
  1728. package/dist/reconcile/support/acceptance/live-acceptance-worktree-cleanup.d.ts +0 -7
  1729. package/dist/reconcile/support/acceptance/live-acceptance-worktree-cleanup.js +0 -38
  1730. package/dist/reconcile/support/acceptance/live-acceptance.d.ts +0 -102
  1731. package/dist/reconcile/support/acceptance/live-acceptance.js +0 -322
  1732. package/dist/reconcile/support/bootstrap-systems.d.ts +0 -32
  1733. package/dist/reconcile/support/bootstrap-systems.js +0 -175
  1734. package/dist/reconcile/support/contracts/contracts.d.ts +0 -172
  1735. package/dist/reconcile/support/contracts/contracts.js +0 -0
  1736. package/dist/reconcile/support/contracts/errors.d.ts +0 -5
  1737. package/dist/reconcile/support/contracts/errors.js +0 -13
  1738. package/dist/reconcile/support/engine/engine.d.ts +0 -4
  1739. package/dist/reconcile/support/engine/engine.js +0 -4
  1740. package/dist/reconcile/support/engine/units.d.ts +0 -6
  1741. package/dist/reconcile/support/engine/units.js +0 -72
  1742. package/dist/reconcile/support/state/platform.d.ts +0 -104
  1743. package/dist/reconcile/support/state/platform.js +0 -100
  1744. package/dist/reconcile/support/state/registry.d.ts +0 -7
  1745. package/dist/reconcile/support/state/registry.js +0 -81
  1746. package/dist/reconcile/support/state/state.d.ts +0 -7
  1747. package/dist/reconcile/support/state/state.js +0 -270
  1748. package/dist/repositories/git-runtime.d.ts +0 -16
  1749. package/dist/repositories/git-runtime.js +0 -69
  1750. package/dist/repositories/repository-custody.d.ts +0 -57
  1751. package/dist/repositories/repository-custody.js +0 -39
  1752. package/dist/repositories/repository-identity.d.ts +0 -12
  1753. package/dist/repositories/repository-identity.js +0 -71
  1754. package/dist/scenes/accounts/auth.d.ts +0 -2
  1755. package/dist/scenes/accounts/auth.js +0 -28
  1756. package/dist/scenes/agent-lab/activity-collector.d.ts +0 -114
  1757. package/dist/scenes/agent-lab/activity-collector.js +0 -394
  1758. package/dist/scenes/agent-lab/production-lifecycle.d.ts +0 -18
  1759. package/dist/scenes/agent-lab/production-lifecycle.js +0 -573
  1760. package/dist/scenes/agent-lab/profile-input-seed.d.ts +0 -23
  1761. package/dist/scenes/agent-lab/profile-input-seed.js +0 -41
  1762. package/dist/scenes/agent-lab/report-adapters.d.ts +0 -3
  1763. package/dist/scenes/agent-lab/report-adapters.js +0 -33
  1764. package/dist/scenes/agent-lab/report-model.d.ts +0 -122
  1765. package/dist/scenes/agent-lab/report-model.js +0 -194
  1766. package/dist/scenes/agent-lab/report-writer.d.ts +0 -14
  1767. package/dist/scenes/agent-lab/report-writer.js +0 -143
  1768. package/dist/scenes/agent-lab/run-agent-lab-scene.d.ts +0 -6
  1769. package/dist/scenes/agent-lab/run-agent-lab-scene.js +0 -122
  1770. package/dist/scenes/agent-lab/runtime/diagnostics.d.ts +0 -7
  1771. package/dist/scenes/agent-lab/runtime/diagnostics.js +0 -42
  1772. package/dist/scenes/agent-lab/runtime/metadata.d.ts +0 -7
  1773. package/dist/scenes/agent-lab/runtime/metadata.js +0 -19
  1774. package/dist/scenes/agent-lab/runtime/team-scope.d.ts +0 -29
  1775. package/dist/scenes/agent-lab/runtime/team-scope.js +0 -54
  1776. package/dist/scenes/agent-lab/semantic-artifact-assertions.d.ts +0 -29
  1777. package/dist/scenes/agent-lab/semantic-artifact-assertions.js +0 -66
  1778. package/dist/scenes/agent-lab/terminal-verification.d.ts +0 -17
  1779. package/dist/scenes/agent-lab/terminal-verification.js +0 -31
  1780. package/dist/scenes/agent-lab/viewer/runtime.d.ts +0 -1
  1781. package/dist/scenes/agent-lab/viewer/runtime.js +0 -576
  1782. package/dist/scenes/agent-lab/viewer/styles.d.ts +0 -1
  1783. package/dist/scenes/agent-lab/viewer/styles.js +0 -28
  1784. package/dist/scenes/agent-lab/workday-snapshot.d.ts +0 -116
  1785. package/dist/scenes/agent-lab/workday-snapshot.js +0 -153
  1786. package/dist/scenes/build/evidence-bundle.d.ts +0 -5
  1787. package/dist/scenes/build/evidence-bundle.js +0 -59
  1788. package/dist/scenes/builtin-plugins/assertion-timeout.d.ts +0 -2
  1789. package/dist/scenes/builtin-plugins/assertion-timeout.js +0 -6
  1790. package/dist/scenes/builtin-plugins/browser-history-action.d.ts +0 -2
  1791. package/dist/scenes/builtin-plugins/browser-history-action.js +0 -17
  1792. package/dist/scenes/builtin-plugins/create-built-in-scene-plugins.d.ts +0 -2
  1793. package/dist/scenes/builtin-plugins/create-built-in-scene-plugins.js +0 -495
  1794. package/dist/scenes/builtin-plugins/duration.d.ts +0 -25
  1795. package/dist/scenes/builtin-plugins/duration.js +0 -148
  1796. package/dist/scenes/builtin-plugins/focus-assertion.d.ts +0 -6
  1797. package/dist/scenes/builtin-plugins/focus-assertion.js +0 -29
  1798. package/dist/scenes/builtin-plugins/keyboard-action.d.ts +0 -2
  1799. package/dist/scenes/builtin-plugins/keyboard-action.js +0 -15
  1800. package/dist/scenes/builtin-plugins/request-values.d.ts +0 -4
  1801. package/dist/scenes/builtin-plugins/request-values.js +0 -19
  1802. package/dist/scenes/builtin-plugins/responsive-actions.d.ts +0 -2
  1803. package/dist/scenes/builtin-plugins/responsive-actions.js +0 -33
  1804. package/dist/scenes/capacity/providers/diagram-providers.d.ts +0 -2
  1805. package/dist/scenes/capacity/providers/diagram-providers.js +0 -181
  1806. package/dist/scenes/configuration/environment.d.ts +0 -3
  1807. package/dist/scenes/configuration/environment.js +0 -70
  1808. package/dist/scenes/index.d.ts +0 -54
  1809. package/dist/scenes/index.js +0 -356
  1810. package/dist/scenes/operations/operations.d.ts +0 -3
  1811. package/dist/scenes/operations/operations.js +0 -146
  1812. package/dist/scenes/operations/runner.d.ts +0 -2
  1813. package/dist/scenes/operations/runner.js +0 -2
  1814. package/dist/scenes/packages/publish-destinations.d.ts +0 -12
  1815. package/dist/scenes/packages/publish-destinations.js +0 -99
  1816. package/dist/scenes/packages/publish-plan-report.d.ts +0 -10
  1817. package/dist/scenes/packages/publish-plan-report.js +0 -70
  1818. package/dist/scenes/packages/publish-plan.d.ts +0 -15
  1819. package/dist/scenes/packages/publish-plan.js +0 -248
  1820. package/dist/scenes/packages/publish-redaction.d.ts +0 -16
  1821. package/dist/scenes/packages/publish-redaction.js +0 -152
  1822. package/dist/scenes/packages/publish-release-record.d.ts +0 -13
  1823. package/dist/scenes/packages/publish-release-record.js +0 -34
  1824. package/dist/scenes/packages/publish-report.d.ts +0 -10
  1825. package/dist/scenes/packages/publish-report.js +0 -67
  1826. package/dist/scenes/packages/publish.d.ts +0 -16
  1827. package/dist/scenes/packages/publish.js +0 -298
  1828. package/dist/scenes/reconciliation/playwright-adapter.d.ts +0 -2
  1829. package/dist/scenes/reconciliation/playwright-adapter.js +0 -67
  1830. package/dist/scenes/reconciliation/remotion-adapter.d.ts +0 -3
  1831. package/dist/scenes/reconciliation/remotion-adapter.js +0 -94
  1832. package/dist/scenes/runner/now.d.ts +0 -72
  1833. package/dist/scenes/runner/now.js +0 -270
  1834. package/dist/scenes/runner/run-scene.d.ts +0 -2
  1835. package/dist/scenes/runner/run-scene.js +0 -495
  1836. package/dist/scenes/runner/trace-evidence.d.ts +0 -7
  1837. package/dist/scenes/runner/trace-evidence.js +0 -38
  1838. package/dist/scenes/runtime/device-matrix.d.ts +0 -2
  1839. package/dist/scenes/runtime/device-matrix.js +0 -100
  1840. package/dist/scenes/runtime/devices.d.ts +0 -11
  1841. package/dist/scenes/runtime/devices.js +0 -36
  1842. package/dist/scenes/runtime/phase0-runtime-capabilities.d.ts +0 -16
  1843. package/dist/scenes/runtime/phase0-runtime-capabilities.js +0 -209
  1844. package/dist/scenes/schema/filesystem-safe-scene-id.d.ts +0 -55
  1845. package/dist/scenes/schema/filesystem-safe-scene-id.js +0 -233
  1846. package/dist/scenes/schema/parse-action.d.ts +0 -18
  1847. package/dist/scenes/schema/parse-action.js +0 -288
  1848. package/dist/scenes/schema/parse-agent-lab.d.ts +0 -2
  1849. package/dist/scenes/schema/parse-agent-lab.js +0 -87
  1850. package/dist/scenes/schema/parse-diagrams.d.ts +0 -7
  1851. package/dist/scenes/schema/parse-diagrams.js +0 -225
  1852. package/dist/scenes/schema/parse-visual-audit.d.ts +0 -6
  1853. package/dist/scenes/schema/parse-visual-audit.js +0 -142
  1854. package/dist/scenes/schema/parse-workflow.d.ts +0 -10
  1855. package/dist/scenes/schema/parse-workflow.js +0 -266
  1856. package/dist/scenes/seeds/seed.d.ts +0 -2
  1857. package/dist/scenes/seeds/seed.js +0 -86
  1858. package/dist/scenes/support/evidence/artifacts.d.ts +0 -19
  1859. package/dist/scenes/support/evidence/artifacts.js +0 -139
  1860. package/dist/scenes/support/evidence/checkpoints.d.ts +0 -14
  1861. package/dist/scenes/support/evidence/checkpoints.js +0 -33
  1862. package/dist/scenes/support/evidence/evidence-report.d.ts +0 -10
  1863. package/dist/scenes/support/evidence/evidence-report.js +0 -73
  1864. package/dist/scenes/support/evidence/evidence.d.ts +0 -16
  1865. package/dist/scenes/support/evidence/evidence.js +0 -281
  1866. package/dist/scenes/support/evidence/segments.d.ts +0 -15
  1867. package/dist/scenes/support/evidence/segments.js +0 -79
  1868. package/dist/scenes/support/evidence/timeline.d.ts +0 -11
  1869. package/dist/scenes/support/evidence/timeline.js +0 -26
  1870. package/dist/scenes/support/execution/base-url.d.ts +0 -12
  1871. package/dist/scenes/support/execution/base-url.js +0 -123
  1872. package/dist/scenes/support/execution/loader.d.ts +0 -3
  1873. package/dist/scenes/support/execution/loader.js +0 -38
  1874. package/dist/scenes/support/execution/phase0.d.ts +0 -9
  1875. package/dist/scenes/support/execution/phase0.js +0 -103
  1876. package/dist/scenes/support/execution/planner.d.ts +0 -12
  1877. package/dist/scenes/support/execution/planner.js +0 -166
  1878. package/dist/scenes/support/execution/resume.d.ts +0 -2
  1879. package/dist/scenes/support/execution/resume.js +0 -82
  1880. package/dist/scenes/support/execution/timeouts.d.ts +0 -7
  1881. package/dist/scenes/support/execution/timeouts.js +0 -26
  1882. package/dist/scenes/support/plugins/builtin-plugins.d.ts +0 -2
  1883. package/dist/scenes/support/plugins/builtin-plugins.js +0 -2
  1884. package/dist/scenes/support/plugins/phase0-capabilities.d.ts +0 -3
  1885. package/dist/scenes/support/plugins/phase0-capabilities.js +0 -8
  1886. package/dist/scenes/support/plugins/phase0-publication-audit-capabilities.d.ts +0 -16
  1887. package/dist/scenes/support/plugins/phase0-publication-audit-capabilities.js +0 -131
  1888. package/dist/scenes/support/plugins/plugins.d.ts +0 -5
  1889. package/dist/scenes/support/plugins/plugins.js +0 -115
  1890. package/dist/scenes/support/plugins/registry.d.ts +0 -12
  1891. package/dist/scenes/support/plugins/registry.js +0 -65
  1892. package/dist/scenes/support/rendering/diagram-validation.d.ts +0 -22
  1893. package/dist/scenes/support/rendering/diagram-validation.js +0 -74
  1894. package/dist/scenes/support/rendering/phase0-media-evidence-capabilities.d.ts +0 -16
  1895. package/dist/scenes/support/rendering/phase0-media-evidence-capabilities.js +0 -209
  1896. package/dist/scenes/support/rendering/remotion-composition-registry.d.ts +0 -2
  1897. package/dist/scenes/support/rendering/remotion-composition-registry.js +0 -12
  1898. package/dist/scenes/support/rendering/remotion-compositions.d.ts +0 -15
  1899. package/dist/scenes/support/rendering/remotion-compositions.js +0 -464
  1900. package/dist/scenes/support/rendering/remotion-diagrams.d.ts +0 -9
  1901. package/dist/scenes/support/rendering/remotion-diagrams.js +0 -188
  1902. package/dist/scenes/support/rendering/remotion-input.d.ts +0 -13
  1903. package/dist/scenes/support/rendering/remotion-input.js +0 -291
  1904. package/dist/scenes/support/rendering/remotion-visuals.d.ts +0 -29
  1905. package/dist/scenes/support/rendering/remotion-visuals.js +0 -198
  1906. package/dist/scenes/support/rendering/render-media-assets.d.ts +0 -9
  1907. package/dist/scenes/support/rendering/render-media-assets.js +0 -117
  1908. package/dist/scenes/support/rendering/render-report.d.ts +0 -10
  1909. package/dist/scenes/support/rendering/render-report.js +0 -27
  1910. package/dist/scenes/support/rendering/render.d.ts +0 -2
  1911. package/dist/scenes/support/rendering/render.js +0 -218
  1912. package/dist/scenes/support/reporting/diagnostics.d.ts +0 -5
  1913. package/dist/scenes/support/reporting/diagnostics.js +0 -22
  1914. package/dist/scenes/support/reporting/inspect.d.ts +0 -9
  1915. package/dist/scenes/support/reporting/inspect.js +0 -64
  1916. package/dist/scenes/support/reporting/logs.d.ts +0 -2
  1917. package/dist/scenes/support/reporting/logs.js +0 -47
  1918. package/dist/scenes/support/reporting/progress.d.ts +0 -17
  1919. package/dist/scenes/support/reporting/progress.js +0 -24
  1920. package/dist/scenes/support/reporting/reporter.d.ts +0 -3
  1921. package/dist/scenes/support/reporting/reporter.js +0 -101
  1922. package/dist/scenes/support/training/training-captions.d.ts +0 -14
  1923. package/dist/scenes/support/training/training-captions.js +0 -98
  1924. package/dist/scenes/support/training/training-report.d.ts +0 -10
  1925. package/dist/scenes/support/training/training-report.js +0 -78
  1926. package/dist/scenes/support/training/training-transcript.d.ts +0 -24
  1927. package/dist/scenes/support/training/training-transcript.js +0 -206
  1928. package/dist/scenes/support/training/training.d.ts +0 -10
  1929. package/dist/scenes/support/training/training.js +0 -134
  1930. package/dist/scenes/support/validation/schema.d.ts +0 -5
  1931. package/dist/scenes/support/validation/schema.js +0 -5
  1932. package/dist/scenes/support/validation/selectors.d.ts +0 -3
  1933. package/dist/scenes/support/validation/selectors.js +0 -21
  1934. package/dist/scenes/support/visual-audit/visual-audit-contact-sheets.d.ts +0 -6
  1935. package/dist/scenes/support/visual-audit/visual-audit-contact-sheets.js +0 -119
  1936. package/dist/scenes/support/visual-audit/visual-audit-report.d.ts +0 -11
  1937. package/dist/scenes/support/visual-audit/visual-audit-report.js +0 -85
  1938. package/dist/scenes/support/visual-audit/visual-audit-review.d.ts +0 -4
  1939. package/dist/scenes/support/visual-audit/visual-audit-review.js +0 -4
  1940. package/dist/scenes/support/visual-audit/visual-audit-routes.d.ts +0 -13
  1941. package/dist/scenes/support/visual-audit/visual-audit-routes.js +0 -317
  1942. package/dist/scenes/support/visual-audit/visual-audit.d.ts +0 -3
  1943. package/dist/scenes/support/visual-audit/visual-audit.js +0 -3
  1944. package/dist/scenes/testing/visual-audit-fixtures.d.ts +0 -25
  1945. package/dist/scenes/testing/visual-audit-fixtures.js +0 -299
  1946. package/dist/scenes/testing/visual-audit-tree-dx.d.ts +0 -17
  1947. package/dist/scenes/testing/visual-audit-tree-dx.js +0 -67
  1948. package/dist/scenes/types/scene-agent-lab.d.ts +0 -190
  1949. package/dist/scenes/types/scene-agent-lab.js +0 -4
  1950. package/dist/scenes/types/scene-checkpoint.d.ts +0 -212
  1951. package/dist/scenes/types/scene-checkpoint.js +0 -0
  1952. package/dist/scenes/types/scene-diagram.d.ts +0 -191
  1953. package/dist/scenes/types/scene-diagram.js +0 -0
  1954. package/dist/scenes/types/scene-evidence-artifact-kind.d.ts +0 -209
  1955. package/dist/scenes/types/scene-evidence-artifact-kind.js +0 -0
  1956. package/dist/scenes/types/scene-publish-plan-paths.d.ts +0 -249
  1957. package/dist/scenes/types/scene-publish-plan-paths.js +0 -0
  1958. package/dist/scenes/types/scene-render-input.d.ts +0 -240
  1959. package/dist/scenes/types/scene-render-input.js +0 -0
  1960. package/dist/scenes/types/scene-schema-version.d.ts +0 -257
  1961. package/dist/scenes/types/scene-schema-version.js +0 -8
  1962. package/dist/scenes/types/scene-timeline-writer.d.ts +0 -186
  1963. package/dist/scenes/types/scene-timeline-writer.js +0 -0
  1964. package/dist/scenes/types/scene-validation-report.d.ts +0 -206
  1965. package/dist/scenes/types/scene-validation-report.js +0 -0
  1966. package/dist/scenes/types/scene-visual-audit-finding.d.ts +0 -235
  1967. package/dist/scenes/types/scene-visual-audit-finding.js +0 -0
  1968. package/dist/scenes/types.d.ts +0 -10
  1969. package/dist/scenes/types.js +0 -10
  1970. package/dist/scenes/visual-audit/capture-route.d.ts +0 -33
  1971. package/dist/scenes/visual-audit/capture-route.js +0 -221
  1972. package/dist/scenes/visual-audit/run-scene-visual-audit.d.ts +0 -3
  1973. package/dist/scenes/visual-audit/run-scene-visual-audit.js +0 -244
  1974. package/dist/scenes/visual-audit/split-diagnostics.d.ts +0 -1718
  1975. package/dist/scenes/visual-audit/split-diagnostics.js +0 -177
  1976. package/dist/scenes/visual-audit-review/enrich-client-errors.d.ts +0 -59
  1977. package/dist/scenes/visual-audit-review/enrich-client-errors.js +0 -256
  1978. package/dist/scenes/visual-audit-review/format-owner-brief.d.ts +0 -12
  1979. package/dist/scenes/visual-audit-review/format-owner-brief.js +0 -140
  1980. package/dist/scenes/visual-audit-review/incident-title.d.ts +0 -49
  1981. package/dist/scenes/visual-audit-review/incident-title.js +0 -266
  1982. package/dist/scenes/visual-audit-review/severities.d.ts +0 -53
  1983. package/dist/scenes/visual-audit-review/severities.js +0 -221
  1984. package/dist/scripts/agents/fixture-tools.js +0 -29
  1985. package/dist/scripts/build/build-dist.js +0 -306
  1986. package/dist/scripts/build/build-tenant-worker.js +0 -36
  1987. package/dist/scripts/build/check-build-warnings.js +0 -51
  1988. package/dist/scripts/build/tenant-build.js +0 -44
  1989. package/dist/scripts/capacity/capacity-core/generate-capacity-operator-parity.js +0 -13
  1990. package/dist/scripts/configuration/config.js +0 -131
  1991. package/dist/scripts/configuration/key-agent.js +0 -165
  1992. package/dist/scripts/content/patch-starlight-content-path.js +0 -173
  1993. package/dist/scripts/content/publish-content.js +0 -71
  1994. package/dist/scripts/guarantees/migrate-journey-csv-to-guarantees.js +0 -140
  1995. package/dist/scripts/hosting/deployment-readiness.js +0 -20
  1996. package/dist/scripts/hosting/tenant-deploy.js +0 -220
  1997. package/dist/scripts/hosting/test-cloudflare-local.js +0 -209
  1998. package/dist/scripts/maintenance/cleanup-markdown.js +0 -377
  1999. package/dist/scripts/maintenance/install-managed-dependencies.js +0 -12
  2000. package/dist/scripts/maintenance/prepare.js +0 -10
  2001. package/dist/scripts/maintenance/repair-extracted-class-interfaces.js +0 -36
  2002. package/dist/scripts/operations/consolidate-workflow-lifecycle-tests.js +0 -87
  2003. package/dist/scripts/operations/operations-runner-smoke.js +0 -16
  2004. package/dist/scripts/operations/tenant-workflow-action.js +0 -131
  2005. package/dist/scripts/packages/assert-release-tag-version.js +0 -21
  2006. package/dist/scripts/packages/package-tools.js +0 -85
  2007. package/dist/scripts/packages/publish-package.js +0 -93
  2008. package/dist/scripts/packages/published-package-readback.js +0 -61
  2009. package/dist/scripts/packages/release-verify.js +0 -106
  2010. package/dist/scripts/packages/release-version.js +0 -16
  2011. package/dist/scripts/packages/verify-published-package.js +0 -15
  2012. package/dist/scripts/persistence/tenant-d1-migrate-local.js +0 -15
  2013. package/dist/scripts/runtime/local-dev.js +0 -129
  2014. package/dist/scripts/runtime/tenant-dev.js +0 -159
  2015. package/dist/scripts/standards/acquire-accepted-baseline.js +0 -104
  2016. package/dist/scripts/standards/build-contract-bundle.js +0 -52
  2017. package/dist/scripts/standards/compare-compatibility.js +0 -49
  2018. package/dist/scripts/standards/contract-models.js +0 -43
  2019. package/dist/scripts/standards/create-release-evidence.js +0 -61
  2020. package/dist/scripts/standards/package-acceptance.js +0 -43
  2021. package/dist/scripts/standards/resolve-composition.js +0 -20
  2022. package/dist/scripts/standards/verify-api-consumer.js +0 -80
  2023. package/dist/scripts/templates/scaffold-site.js +0 -66
  2024. package/dist/scripts/templates/sync-template.js +0 -20
  2025. package/dist/scripts/templates/template-command.js +0 -31
  2026. package/dist/scripts/templates/validate-templates.js +0 -6
  2027. package/dist/scripts/tenant/tenant-astro-command.js +0 -3
  2028. package/dist/scripts/tenant/tenant-destroy.js +0 -112
  2029. package/dist/scripts/tenant/tenant-lint.js +0 -4
  2030. package/dist/scripts/testing/cli-test-fixtures.js +0 -44
  2031. package/dist/scripts/testing/run-fixture-astro-command.js +0 -18
  2032. package/dist/scripts/testing/tenant-test.js +0 -4
  2033. package/dist/scripts/testing/test-live-acceptance-cleanup-service.js +0 -57
  2034. package/dist/scripts/testing/test-scaffold.js +0 -299
  2035. package/dist/scripts/testing/test-smoke.js +0 -137
  2036. package/dist/scripts/treedx/repositories/generate-treedx-openapi-types.js +0 -186
  2037. package/dist/scripts/treedx/workspaces/workspace-command-e2e.js +0 -4
  2038. package/dist/scripts/treedx/workspaces/workspace-lint.js +0 -15
  2039. package/dist/scripts/treedx/workspaces/workspace-preflight.js +0 -22
  2040. package/dist/scripts/treedx/workspaces/workspace-publish-changed-packages.js +0 -16
  2041. package/dist/scripts/treedx/workspaces/workspace-release-test.js +0 -104
  2042. package/dist/scripts/treedx/workspaces/workspace-release-verify.js +0 -81
  2043. package/dist/scripts/treedx/workspaces/workspace-save.js +0 -64
  2044. package/dist/scripts/treedx/workspaces/workspace-start-warning.js +0 -3
  2045. package/dist/scripts/treedx/workspaces/workspace-test-unit.js +0 -4
  2046. package/dist/scripts/treedx/workspaces/workspace-test.js +0 -17
  2047. package/dist/scripts/verification/check-file-architecture.js +0 -114
  2048. package/dist/scripts/verification/check-file-lengths.js +0 -46
  2049. package/dist/scripts/verification/tenant-check.js +0 -6
  2050. package/dist/scripts/verification/verify-driver.js +0 -39
  2051. package/dist/scripts/workspace-command-e2e/root.js +0 -217
  2052. package/dist/scripts/workspace-command-e2e/run-dev-session.js +0 -238
  2053. package/dist/scripts/workspace-command-e2e/run-local-suite.js +0 -259
  2054. package/dist/scripts/workspace-command-e2e/run-workspace-command-e2e.js +0 -24
  2055. package/dist/sdk/accounts/resolve-dispatch-token.d.ts +0 -3
  2056. package/dist/sdk/accounts/resolve-dispatch-token.js +0 -12
  2057. package/dist/sdk/agents/list-agent-specs.d.ts +0 -5
  2058. package/dist/sdk/agents/list-agent-specs.js +0 -8
  2059. package/dist/sdk/agents/list-raw-agent-specs.d.ts +0 -4
  2060. package/dist/sdk/agents/list-raw-agent-specs.js +0 -12
  2061. package/dist/sdk/agents/scope-for-agent.d.ts +0 -3
  2062. package/dist/sdk/agents/scope-for-agent.js +0 -7
  2063. package/dist/sdk/build/build-context-pack.d.ts +0 -3
  2064. package/dist/sdk/build/build-context-pack.js +0 -6
  2065. package/dist/sdk/interface.d.ts +0 -57
  2066. package/dist/sdk/interface.js +0 -0
  2067. package/dist/sdk/methods.d.ts +0 -2
  2068. package/dist/sdk/methods.js +0 -109
  2069. package/dist/sdk/packages/get-release.d.ts +0 -3
  2070. package/dist/sdk/packages/get-release.js +0 -7
  2071. package/dist/sdk/packages/get-share-package.d.ts +0 -3
  2072. package/dist/sdk/packages/get-share-package.js +0 -7
  2073. package/dist/sdk/packages/list-releases.d.ts +0 -3
  2074. package/dist/sdk/packages/list-releases.js +0 -7
  2075. package/dist/sdk/packages/list-share-packages.d.ts +0 -3
  2076. package/dist/sdk/packages/list-share-packages.js +0 -7
  2077. package/dist/sdk/packages/release-all-leases.d.ts +0 -4
  2078. package/dist/sdk/packages/release-all-leases.js +0 -7
  2079. package/dist/sdk/packages/release-lease.d.ts +0 -3
  2080. package/dist/sdk/packages/release-lease.js +0 -7
  2081. package/dist/sdk/packages/upsert-release.d.ts +0 -5
  2082. package/dist/sdk/packages/upsert-release.js +0 -7
  2083. package/dist/sdk/packages/upsert-share-package.d.ts +0 -3
  2084. package/dist/sdk/packages/upsert-share-package.js +0 -7
  2085. package/dist/sdk/runtime/execute-dispatch-locally.d.ts +0 -3
  2086. package/dist/sdk/runtime/execute-dispatch-locally.js +0 -47
  2087. package/dist/sdk/seeds/resolve-seeds.d.ts +0 -3
  2088. package/dist/sdk/seeds/resolve-seeds.js +0 -6
  2089. package/dist/sdk/support/approvals/create-approval-request.d.ts +0 -3
  2090. package/dist/sdk/support/approvals/create-approval-request.js +0 -7
  2091. package/dist/sdk/support/approvals/decide-approval-request.d.ts +0 -3
  2092. package/dist/sdk/support/approvals/decide-approval-request.js +0 -7
  2093. package/dist/sdk/support/approvals/list-approval-requests.d.ts +0 -3
  2094. package/dist/sdk/support/approvals/list-approval-requests.js +0 -7
  2095. package/dist/sdk/support/create.d.ts +0 -3
  2096. package/dist/sdk/support/create.js +0 -9
  2097. package/dist/sdk/support/cursors/get-cursor.d.ts +0 -3
  2098. package/dist/sdk/support/cursors/get-cursor.js +0 -7
  2099. package/dist/sdk/support/cursors/upsert-cursor.d.ts +0 -3
  2100. package/dist/sdk/support/cursors/upsert-cursor.js +0 -7
  2101. package/dist/sdk/support/execution/record-run.d.ts +0 -3
  2102. package/dist/sdk/support/execution/record-run.js +0 -7
  2103. package/dist/sdk/support/get.d.ts +0 -3
  2104. package/dist/sdk/support/get.js +0 -9
  2105. package/dist/sdk/support/graph/explain-reference-chain.d.ts +0 -2
  2106. package/dist/sdk/support/graph/explain-reference-chain.js +0 -6
  2107. package/dist/sdk/support/graph/follow-references.d.ts +0 -3
  2108. package/dist/sdk/support/graph/follow-references.js +0 -6
  2109. package/dist/sdk/support/graph/follow.d.ts +0 -9
  2110. package/dist/sdk/support/graph/follow.js +0 -11
  2111. package/dist/sdk/support/graph/get-backlinks.d.ts +0 -7
  2112. package/dist/sdk/support/graph/get-backlinks.js +0 -6
  2113. package/dist/sdk/support/graph/get-neighbors.d.ts +0 -7
  2114. package/dist/sdk/support/graph/get-neighbors.js +0 -6
  2115. package/dist/sdk/support/graph/get-related.d.ts +0 -3
  2116. package/dist/sdk/support/graph/get-related.js +0 -6
  2117. package/dist/sdk/support/graph/resolve-reference.d.ts +0 -6
  2118. package/dist/sdk/support/graph/resolve-reference.js +0 -6
  2119. package/dist/sdk/support/messages/ack-message.d.ts +0 -6
  2120. package/dist/sdk/support/messages/ack-message.js +0 -7
  2121. package/dist/sdk/support/messages/claim-message.d.ts +0 -3
  2122. package/dist/sdk/support/messages/claim-message.js +0 -9
  2123. package/dist/sdk/support/messages/create-message.d.ts +0 -3
  2124. package/dist/sdk/support/messages/create-message.js +0 -7
  2125. package/dist/sdk/support/messages/dispatch.d.ts +0 -3
  2126. package/dist/sdk/support/messages/dispatch.js +0 -42
  2127. package/dist/sdk/support/messages/envelope.d.ts +0 -3
  2128. package/dist/sdk/support/messages/envelope.js +0 -13
  2129. package/dist/sdk/support/pick.d.ts +0 -3
  2130. package/dist/sdk/support/pick.js +0 -11
  2131. package/dist/sdk/support/read.d.ts +0 -9
  2132. package/dist/sdk/support/read.js +0 -9
  2133. package/dist/sdk/support/search/search-entities.d.ts +0 -3
  2134. package/dist/sdk/support/search/search-entities.js +0 -6
  2135. package/dist/sdk/support/search/search-files.d.ts +0 -3
  2136. package/dist/sdk/support/search/search-files.js +0 -6
  2137. package/dist/sdk/support/search/search-sections.d.ts +0 -3
  2138. package/dist/sdk/support/search/search-sections.js +0 -6
  2139. package/dist/sdk/support/search/search.d.ts +0 -3
  2140. package/dist/sdk/support/search/search.js +0 -11
  2141. package/dist/sdk/support/update.d.ts +0 -3
  2142. package/dist/sdk/support/update.js +0 -9
  2143. package/dist/sdk/support/workstreams/append-workstream-event.d.ts +0 -3
  2144. package/dist/sdk/support/workstreams/append-workstream-event.js +0 -7
  2145. package/dist/sdk/support/workstreams/get-workstream.d.ts +0 -3
  2146. package/dist/sdk/support/workstreams/get-workstream.js +0 -7
  2147. package/dist/sdk/support/workstreams/list-workstreams.d.ts +0 -3
  2148. package/dist/sdk/support/workstreams/list-workstreams.js +0 -7
  2149. package/dist/sdk/support/workstreams/upsert-workstream.d.ts +0 -3
  2150. package/dist/sdk/support/workstreams/upsert-workstream.js +0 -7
  2151. package/dist/sdk/teams/upsert-team-inbox-item.d.ts +0 -3
  2152. package/dist/sdk/teams/upsert-team-inbox-item.js +0 -7
  2153. package/dist/sdk/treedx/graph/get-graph-node.d.ts +0 -2
  2154. package/dist/sdk/treedx/graph/get-graph-node.js +0 -6
  2155. package/dist/sdk/treedx/graph/get-subgraph.d.ts +0 -3
  2156. package/dist/sdk/treedx/graph/get-subgraph.js +0 -6
  2157. package/dist/sdk/treedx/graph/parse-graph-dsl.d.ts +0 -3
  2158. package/dist/sdk/treedx/graph/parse-graph-dsl.js +0 -6
  2159. package/dist/sdk/treedx/graph/query-graph.d.ts +0 -3
  2160. package/dist/sdk/treedx/graph/query-graph.js +0 -6
  2161. package/dist/sdk/treedx/graph/refresh-graph.d.ts +0 -3
  2162. package/dist/sdk/treedx/graph/refresh-graph.js +0 -6
  2163. package/dist/sdk-types/commerce/capacity/commerce-capacity-listing-input.d.ts +0 -250
  2164. package/dist/sdk-types/commerce/capacity/commerce-capacity-listing-input.js +0 -0
  2165. package/dist/sdk-types/commerce/catalog/upsert-catalog-item-request.d.ts +0 -124
  2166. package/dist/sdk-types/commerce/catalog/upsert-catalog-item-request.js +0 -0
  2167. package/dist/sdk-types/commerce/governance/commerce-governance-states.d.ts +0 -42
  2168. package/dist/sdk-types/commerce/governance/commerce-governance-states.js +0 -198
  2169. package/dist/sdk-types/commerce/payments/commerce-entitlement.d.ts +0 -244
  2170. package/dist/sdk-types/commerce/payments/commerce-entitlement.js +0 -0
  2171. package/dist/sdk-types/commerce/payments/commerce-subscription-statuses.d.ts +0 -77
  2172. package/dist/sdk-types/commerce/payments/commerce-subscription-statuses.js +0 -166
  2173. package/dist/sdk-types/commerce/services/commerce-service-contract.d.ts +0 -247
  2174. package/dist/sdk-types/commerce/services/commerce-service-contract.js +0 -0
  2175. package/dist/sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.d.ts +0 -233
  2176. package/dist/sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.js +0 -0
  2177. package/dist/secrets-capability/service-vault-crypto.d.ts +0 -20
  2178. package/dist/secrets-capability/service-vault-crypto.js +0 -278
  2179. package/dist/seeds/errors.d.ts +0 -5
  2180. package/dist/seeds/errors.js +0 -22
  2181. package/dist/seeds/index.d.ts +0 -63
  2182. package/dist/seeds/index.js +0 -116
  2183. package/dist/seeds/licensing/portfolio-license.d.ts +0 -60
  2184. package/dist/seeds/licensing/portfolio-license.js +0 -130
  2185. package/dist/seeds/loader.d.ts +0 -8
  2186. package/dist/seeds/loader.js +0 -32
  2187. package/dist/seeds/normalize.d.ts +0 -13
  2188. package/dist/seeds/normalize.js +0 -156
  2189. package/dist/seeds/planner.d.ts +0 -10
  2190. package/dist/seeds/planner.js +0 -144
  2191. package/dist/seeds/reconciliation/repository-units.d.ts +0 -3
  2192. package/dist/seeds/reconciliation/repository-units.js +0 -175
  2193. package/dist/seeds/repositories/content-cutover.d.ts +0 -43
  2194. package/dist/seeds/repositories/content-cutover.js +0 -141
  2195. package/dist/seeds/repositories/organization-reference-migration.d.ts +0 -45
  2196. package/dist/seeds/repositories/organization-reference-migration.js +0 -136
  2197. package/dist/seeds/repositories/repository-history.d.ts +0 -135
  2198. package/dist/seeds/repositories/repository-history.js +0 -343
  2199. package/dist/seeds/repositories/source-repository-history.d.ts +0 -85
  2200. package/dist/seeds/repositories/source-repository-history.js +0 -123
  2201. package/dist/seeds/repositories/support-repository-workflow.d.ts +0 -73
  2202. package/dist/seeds/repositories/support-repository-workflow.js +0 -127
  2203. package/dist/seeds/runtime/local-capacity.d.ts +0 -65
  2204. package/dist/seeds/runtime/local-capacity.js +0 -402
  2205. package/dist/seeds/schema/array-bucket.d.ts +0 -7
  2206. package/dist/seeds/schema/array-bucket.js +0 -261
  2207. package/dist/seeds/schema/parse-project.d.ts +0 -15
  2208. package/dist/seeds/schema/parse-project.js +0 -253
  2209. package/dist/seeds/schema/resource-buckets.d.ts +0 -35
  2210. package/dist/seeds/schema/resource-buckets.js +0 -312
  2211. package/dist/seeds/schema.d.ts +0 -3
  2212. package/dist/seeds/schema.js +0 -3
  2213. package/dist/seeds/types.d.ts +0 -240
  2214. package/dist/seeds/types.js +0 -12
  2215. package/dist/seeds/workspaces/admin-descriptor-migration.d.ts +0 -37
  2216. package/dist/seeds/workspaces/admin-descriptor-migration.js +0 -99
  2217. package/dist/seeds/workspaces/gateway-contract-migration.d.ts +0 -31
  2218. package/dist/seeds/workspaces/gateway-contract-migration.js +0 -176
  2219. package/dist/seeds/workspaces/managed-workspace-overlay.d.ts +0 -10
  2220. package/dist/seeds/workspaces/managed-workspace-overlay.js +0 -28
  2221. package/dist/seeds/workspaces/market-api-package-lock.d.ts +0 -2
  2222. package/dist/seeds/workspaces/market-api-package-lock.js +0 -38
  2223. package/dist/seeds/workspaces/market-api-workspace.d.ts +0 -60
  2224. package/dist/seeds/workspaces/market-api-workspace.js +0 -528
  2225. package/dist/seeds/workspaces/platform-workspace-history.d.ts +0 -124
  2226. package/dist/seeds/workspaces/platform-workspace-history.js +0 -312
  2227. package/dist/stores/cursor-store.d.ts +0 -10
  2228. package/dist/stores/cursor-store.js +0 -164
  2229. package/dist/stores/envelopes.d.ts +0 -116
  2230. package/dist/stores/envelopes.js +0 -219
  2231. package/dist/stores/helpers.d.ts +0 -12
  2232. package/dist/stores/helpers.js +0 -42
  2233. package/dist/stores/lease-store.d.ts +0 -18
  2234. package/dist/stores/lease-store.js +0 -189
  2235. package/dist/stores/message-store.d.ts +0 -12
  2236. package/dist/stores/message-store.js +0 -273
  2237. package/dist/stores/operational-store.d.ts +0 -11
  2238. package/dist/stores/operational-store.js +0 -214
  2239. package/dist/stores/project-workflow-store/json-record.d.ts +0 -29
  2240. package/dist/stores/project-workflow-store/json-record.js +0 -223
  2241. package/dist/stores/project-workflow-store/sqlite-project-workflow-store.d.ts +0 -37
  2242. package/dist/stores/project-workflow-store/sqlite-project-workflow-store.js +0 -271
  2243. package/dist/stores/project-workflow-store.d.ts +0 -2
  2244. package/dist/stores/project-workflow-store.js +0 -2
  2245. package/dist/stores/run-store.d.ts +0 -9
  2246. package/dist/stores/run-store.js +0 -75
  2247. package/dist/stores/subscription-store.d.ts +0 -8
  2248. package/dist/stores/subscription-store.js +0 -73
  2249. package/dist/testing/fixture-support.d.ts +0 -24
  2250. package/dist/testing/fixture-support.js +0 -385
  2251. package/dist/treedx/accounts/auth.d.ts +0 -17
  2252. package/dist/treedx/accounts/auth.js +0 -48
  2253. package/dist/treedx/accounts/repository-name.d.ts +0 -2
  2254. package/dist/treedx/accounts/repository-name.js +0 -10
  2255. package/dist/treedx/changesets/unified-diff.d.ts +0 -7
  2256. package/dist/treedx/changesets/unified-diff.js +0 -56
  2257. package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +0 -3
  2258. package/dist/treedx/client/accounts/contracts/auth-mode.js +0 -6
  2259. package/dist/treedx/client/build/creation/build-context.d.ts +0 -3
  2260. package/dist/treedx/client/build/creation/build-context.js +0 -7
  2261. package/dist/treedx/client/build/creation/build-snapshot.d.ts +0 -3
  2262. package/dist/treedx/client/build/creation/build-snapshot.js +0 -8
  2263. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +0 -3
  2264. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +0 -7
  2265. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +0 -6
  2266. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +0 -10
  2267. package/dist/treedx/client/methods.d.ts +0 -102
  2268. package/dist/treedx/client/methods.js +0 -209
  2269. package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +0 -3
  2270. package/dist/treedx/client/persistence/contracts/restore-storage.js +0 -6
  2271. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +0 -3
  2272. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +0 -6
  2273. package/dist/treedx/client/repositories/creation/register-repository.d.ts +0 -3
  2274. package/dist/treedx/client/repositories/creation/register-repository.js +0 -7
  2275. package/dist/treedx/client/repositories/queries/get-repository.d.ts +0 -3
  2276. package/dist/treedx/client/repositories/queries/get-repository.js +0 -7
  2277. package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +0 -3
  2278. package/dist/treedx/client/repositories/queries/list-repository-paths.js +0 -7
  2279. package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +0 -3
  2280. package/dist/treedx/client/repositories/queries/list-repository-refs.js +0 -12
  2281. package/dist/treedx/client/repositories/queries/query-repository.d.ts +0 -3
  2282. package/dist/treedx/client/repositories/queries/query-repository.js +0 -7
  2283. package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +0 -3
  2284. package/dist/treedx/client/repositories/queries/read-repository-file.js +0 -6
  2285. package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +0 -3
  2286. package/dist/treedx/client/repositories/queries/read-repository-files.js +0 -7
  2287. package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +0 -3
  2288. package/dist/treedx/client/repositories/queries/search-repository-files.js +0 -7
  2289. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +0 -3
  2290. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +0 -9
  2291. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +0 -3
  2292. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +0 -6
  2293. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +0 -3
  2294. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +0 -7
  2295. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +0 -5
  2296. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +0 -7
  2297. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +0 -3
  2298. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +0 -6
  2299. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +0 -3
  2300. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +0 -7
  2301. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +0 -2
  2302. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +0 -19
  2303. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +0 -3
  2304. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +0 -7
  2305. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +0 -3
  2306. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +0 -6
  2307. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +0 -3
  2308. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +0 -7
  2309. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +0 -3
  2310. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +0 -6
  2311. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +0 -3
  2312. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +0 -7
  2313. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +0 -6
  2314. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +0 -23
  2315. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +0 -3
  2316. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +0 -8
  2317. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +0 -3
  2318. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +0 -7
  2319. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +0 -3
  2320. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +0 -8
  2321. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +0 -3
  2322. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +0 -8
  2323. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +0 -2
  2324. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +0 -15
  2325. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +0 -2
  2326. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +0 -38
  2327. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +0 -2
  2328. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +0 -15
  2329. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +0 -2
  2330. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +0 -15
  2331. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +0 -2
  2332. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +0 -14
  2333. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +0 -2
  2334. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +0 -14
  2335. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +0 -6
  2336. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +0 -41
  2337. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +0 -2
  2338. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +0 -14
  2339. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +0 -3
  2340. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +0 -7
  2341. package/dist/treedx/client/support/creation/apply-changeset.d.ts +0 -3
  2342. package/dist/treedx/client/support/creation/apply-changeset.js +0 -10
  2343. package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +0 -3
  2344. package/dist/treedx/client/support/creation/apply-storage-migration.js +0 -7
  2345. package/dist/treedx/client/support/creation/create-migration.d.ts +0 -6
  2346. package/dist/treedx/client/support/creation/create-migration.js +0 -7
  2347. package/dist/treedx/client/support/creation/export-artifact.d.ts +0 -3
  2348. package/dist/treedx/client/support/creation/export-artifact.js +0 -8
  2349. package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +0 -3
  2350. package/dist/treedx/client/support/creation/plan-storage-migration.js +0 -7
  2351. package/dist/treedx/client/support/creation/request-binary.d.ts +0 -6
  2352. package/dist/treedx/client/support/creation/request-binary.js +0 -42
  2353. package/dist/treedx/client/support/creation/write-file.d.ts +0 -3
  2354. package/dist/treedx/client/support/creation/write-file.js +0 -10
  2355. package/dist/treedx/client/support/creation/write-files.d.ts +0 -3
  2356. package/dist/treedx/client/support/creation/write-files.js +0 -12
  2357. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +0 -3
  2358. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +0 -7
  2359. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +0 -3
  2360. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +0 -7
  2361. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +0 -3
  2362. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +0 -9
  2363. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +0 -4
  2364. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +0 -6
  2365. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +0 -3
  2366. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +0 -7
  2367. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +0 -3
  2368. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +0 -7
  2369. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +0 -3
  2370. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +0 -7
  2371. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +0 -3
  2372. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +0 -7
  2373. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +0 -3
  2374. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +0 -10
  2375. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +0 -3
  2376. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +0 -9
  2377. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +0 -3
  2378. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +0 -7
  2379. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +0 -6
  2380. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +0 -7
  2381. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +0 -6
  2382. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +0 -7
  2383. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +0 -6
  2384. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +0 -6
  2385. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +0 -15
  2386. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +0 -6
  2387. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +0 -3
  2388. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +0 -7
  2389. package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +0 -3
  2390. package/dist/treedx/client/support/retirement/cleanup-artifacts.js +0 -7
  2391. package/dist/treedx/client/support/retirement/delete-artifact.d.ts +0 -3
  2392. package/dist/treedx/client/support/retirement/delete-artifact.js +0 -7
  2393. package/dist/treedx/client/support/retirement/delete-file.d.ts +0 -3
  2394. package/dist/treedx/client/support/retirement/delete-file.js +0 -10
  2395. package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +0 -3
  2396. package/dist/treedx/client/support/retirement/rollback-storage-migration.js +0 -7
  2397. package/dist/treedx/client/support/updates/patch-file.d.ts +0 -3
  2398. package/dist/treedx/client/support/updates/patch-file.js +0 -10
  2399. package/dist/treedx/client/support/updates/refresh-search-index.d.ts +0 -3
  2400. package/dist/treedx/client/support/updates/refresh-search-index.js +0 -8
  2401. package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +0 -3
  2402. package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +0 -6
  2403. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +0 -3
  2404. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +0 -8
  2405. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +0 -3
  2406. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +0 -27
  2407. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +0 -3
  2408. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +0 -41
  2409. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +0 -3
  2410. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +0 -27
  2411. package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +0 -3
  2412. package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +0 -6
  2413. package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +0 -3
  2414. package/dist/treedx/client/treedx/blobs/creation/write-blob.js +0 -8
  2415. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +0 -3
  2416. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +0 -8
  2417. package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +0 -3
  2418. package/dist/treedx/client/treedx/blobs/queries/read-blob.js +0 -10
  2419. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +0 -3
  2420. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +0 -7
  2421. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +0 -3
  2422. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +0 -8
  2423. package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +0 -3
  2424. package/dist/treedx/client/treedx/federation/contracts/federated-query.js +0 -7
  2425. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +0 -3
  2426. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +0 -6
  2427. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +0 -3
  2428. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +0 -7
  2429. package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +0 -3
  2430. package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +0 -7
  2431. package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +0 -3
  2432. package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +0 -7
  2433. package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +0 -3
  2434. package/dist/treedx/client/treedx/graph/contracts/federated-context.js +0 -7
  2435. package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +0 -3
  2436. package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +0 -7
  2437. package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +0 -3
  2438. package/dist/treedx/client/treedx/graph/contracts/graph-search.js +0 -8
  2439. package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +0 -3
  2440. package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +0 -10
  2441. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +0 -3
  2442. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +0 -7
  2443. package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +0 -3
  2444. package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +0 -7
  2445. package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +0 -3
  2446. package/dist/treedx/client/treedx/graph/queries/query-graph.js +0 -7
  2447. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +0 -3
  2448. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +0 -6
  2449. package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +0 -3
  2450. package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +0 -6
  2451. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +0 -3
  2452. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +0 -6
  2453. package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +0 -3
  2454. package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +0 -7
  2455. package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +0 -3
  2456. package/dist/treedx/client/treedx/search/contracts/federated-search.js +0 -7
  2457. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +0 -3
  2458. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +0 -7
  2459. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +0 -3
  2460. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +0 -12
  2461. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +0 -2
  2462. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +0 -6
  2463. package/dist/treedx/federation/federated-client.d.ts +0 -27
  2464. package/dist/treedx/federation/federated-client.js +0 -158
  2465. package/dist/treedx/generated/openapi-types.d.ts +0 -3662
  2466. package/dist/treedx/generated/openapi-types.js +0 -0
  2467. package/dist/treedx/graph/graph-adapter.d.ts +0 -33
  2468. package/dist/treedx/graph/graph-adapter.js +0 -156
  2469. package/dist/treedx/graph/graph.d.ts +0 -52
  2470. package/dist/treedx/graph/graph.js +0 -133
  2471. package/dist/treedx/reconciliation/adapters.d.ts +0 -6
  2472. package/dist/treedx/reconciliation/adapters.js +0 -36
  2473. package/dist/treedx/reconciliation/query-adapter.d.ts +0 -19
  2474. package/dist/treedx/reconciliation/query-adapter.js +0 -62
  2475. package/dist/treedx/reconciliation/repository-adapter.d.ts +0 -54
  2476. package/dist/treedx/reconciliation/repository-adapter.js +0 -374
  2477. package/dist/treedx/repositories/treedx-backends.d.ts +0 -4
  2478. package/dist/treedx/repositories/treedx-backends.js +0 -4
  2479. package/dist/treedx/support/client.d.ts +0 -251
  2480. package/dist/treedx/support/client.js +0 -252
  2481. package/dist/treedx/support/errors.d.ts +0 -13
  2482. package/dist/treedx/support/errors.js +0 -17
  2483. package/dist/treedx/support/market-integration.d.ts +0 -27
  2484. package/dist/treedx/support/market-integration.js +0 -162
  2485. package/dist/treedx/support/ports.d.ts +0 -166
  2486. package/dist/treedx/support/ports.js +0 -231
  2487. package/dist/treedx/support/registry-client.d.ts +0 -11
  2488. package/dist/treedx/support/registry-client.js +0 -19
  2489. package/dist/treedx/support/sdk-integration.d.ts +0 -27
  2490. package/dist/treedx/support/sdk-integration.js +0 -63
  2491. package/dist/treedx/types/tree-dx-actor.d.ts +0 -209
  2492. package/dist/treedx/types/tree-dx-actor.js +0 -8
  2493. package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +0 -13
  2494. package/dist/treedx/types/tree-dx-artifact-list-response.js +0 -0
  2495. package/dist/treedx/types/tree-dx-changeset.d.ts +0 -51
  2496. package/dist/treedx/types/tree-dx-changeset.js +0 -6
  2497. package/dist/treedx/types/tree-dx-context-request.d.ts +0 -245
  2498. package/dist/treedx/types/tree-dx-context-request.js +0 -0
  2499. package/dist/treedx/types/tree-dx-exec-result.d.ts +0 -249
  2500. package/dist/treedx/types/tree-dx-exec-result.js +0 -0
  2501. package/dist/treedx/types/tree-dx-list-tree-request.d.ts +0 -222
  2502. package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
  2503. package/dist/treedx/types/tree-dx-push-request.d.ts +0 -229
  2504. package/dist/treedx/types/tree-dx-push-request.js +0 -0
  2505. package/dist/treedx/workspaces/workspace-adapter.d.ts +0 -28
  2506. package/dist/treedx/workspaces/workspace-adapter.js +0 -68
  2507. package/dist/treedx-backends/normalize-path-rule.d.ts +0 -57
  2508. package/dist/treedx-backends/normalize-path-rule.js +0 -148
  2509. package/dist/treedx-backends/tree-dx-content-backend.d.ts +0 -86
  2510. package/dist/treedx-backends/tree-dx-content-backend.js +0 -303
  2511. package/dist/treedx-backends/tree-dx-graph-backend.d.ts +0 -43
  2512. package/dist/treedx-backends/tree-dx-graph-backend.js +0 -99
  2513. package/dist/treedx-backends/tree-dx-repository-hint.d.ts +0 -97
  2514. package/dist/treedx-backends/tree-dx-repository-hint.js +0 -159
  2515. package/dist/treeseed/services/compose.yml +0 -6
  2516. package/dist/treeseed/template-catalog/catalog.fixture.json +0 -215
  2517. package/dist/types/cloudflare.d.ts +0 -54
  2518. package/dist/verification/create-workspace-act-workflow.d.ts +0 -16
  2519. package/dist/verification/create-workspace-act-workflow.js +0 -223
  2520. package/dist/verification/run-verify-driver.d.ts +0 -7
  2521. package/dist/verification/run-verify-driver.js +0 -71
  2522. package/dist/verification/verify-driver.d.ts +0 -60
  2523. package/dist/verification/verify-driver.js +0 -168
  2524. package/dist/workflow/operations/commerce/catalog/back-merge-production-into-staging.d.ts +0 -90
  2525. package/dist/workflow/operations/commerce/catalog/back-merge-production-into-staging.js +0 -241
  2526. package/dist/workflow/operations/commerce/catalog/run-release-production-guarantees.d.ts +0 -79
  2527. package/dist/workflow/operations/commerce/catalog/run-release-production-guarantees.js +0 -235
  2528. package/dist/workflow/operations/configuration/workflow-config.d.ts +0 -192
  2529. package/dist/workflow/operations/configuration/workflow-config.js +0 -345
  2530. package/dist/workflow/operations/coordination/integration-change-set.d.ts +0 -95
  2531. package/dist/workflow/operations/coordination/integration-change-set.js +0 -335
  2532. package/dist/workflow/operations/coordination/staging-candidate-workflow-gates.d.ts +0 -46
  2533. package/dist/workflow/operations/coordination/staging-candidate-workflow-gates.js +0 -287
  2534. package/dist/workflow/operations/coordination/workflow-ci.d.ts +0 -23
  2535. package/dist/workflow/operations/coordination/workflow-ci.js +0 -69
  2536. package/dist/workflow/operations/coordination/workflow-destroy.d.ts +0 -180
  2537. package/dist/workflow/operations/coordination/workflow-destroy.js +0 -162
  2538. package/dist/workflow/operations/guarantees/workflow-proof.d.ts +0 -87
  2539. package/dist/workflow/operations/guarantees/workflow-proof.js +0 -285
  2540. package/dist/workflow/operations/packages/collect-published-release-artifact-checks.d.ts +0 -71
  2541. package/dist/workflow/operations/packages/collect-published-release-artifact-checks.js +0 -238
  2542. package/dist/workflow/operations/packages/collect-release-plan-blockers.d.ts +0 -39
  2543. package/dist/workflow/operations/packages/collect-release-plan-blockers.js +0 -280
  2544. package/dist/workflow/operations/packages/normalize-release-candidate-mode.d.ts +0 -43
  2545. package/dist/workflow/operations/packages/normalize-release-candidate-mode.js +0 -222
  2546. package/dist/workflow/operations/packages/plan-root-package-version.d.ts +0 -57
  2547. package/dist/workflow/operations/packages/plan-root-package-version.js +0 -245
  2548. package/dist/workflow/operations/packages/prepare-fresh-release-run.d.ts +0 -31
  2549. package/dist/workflow/operations/packages/prepare-fresh-release-run.js +0 -264
  2550. package/dist/workflow/operations/packages/release-admin-message.d.ts +0 -62
  2551. package/dist/workflow/operations/packages/release-admin-message.js +0 -215
  2552. package/dist/workflow/operations/reconciliation/reconcile-save-hosted-environment.d.ts +0 -72
  2553. package/dist/workflow/operations/reconciliation/reconcile-save-hosted-environment.js +0 -260
  2554. package/dist/workflow/operations/reconciliation/run-release-gate-reconcile-facade.d.ts +0 -43
  2555. package/dist/workflow/operations/reconciliation/run-release-gate-reconcile-facade.js +0 -127
  2556. package/dist/workflow/operations/recovery/fail-workflow-run.d.ts +0 -62
  2557. package/dist/workflow/operations/recovery/fail-workflow-run.js +0 -266
  2558. package/dist/workflow/operations/recovery/recover-save-integration.d.ts +0 -16
  2559. package/dist/workflow/operations/recovery/recover-save-integration.js +0 -51
  2560. package/dist/workflow/operations/recovery/workflow-resume.d.ts +0 -119
  2561. package/dist/workflow/operations/recovery/workflow-resume.js +0 -240
  2562. package/dist/workflow/operations/recovery/workflow-write.d.ts +0 -57
  2563. package/dist/workflow/operations/recovery/workflow-write.js +0 -227
  2564. package/dist/workflow/operations/recovery/workspace-artifact-state.d.ts +0 -18
  2565. package/dist/workflow/operations/recovery/workspace-artifact-state.js +0 -59
  2566. package/dist/workflow/operations/release/workflow-release.d.ts +0 -372
  2567. package/dist/workflow/operations/release/workflow-release.js +0 -497
  2568. package/dist/workflow/operations/repositories/gates-for-saved-repository-reports.d.ts +0 -49
  2569. package/dist/workflow/operations/repositories/gates-for-saved-repository-reports.js +0 -226
  2570. package/dist/workflow/operations/support/cleanup-stage-source-branches.d.ts +0 -20
  2571. package/dist/workflow/operations/support/cleanup-stage-source-branches.js +0 -52
  2572. package/dist/workflow/operations/support/create-repo-report.d.ts +0 -64
  2573. package/dist/workflow/operations/support/create-repo-report.js +0 -224
  2574. package/dist/workflow/operations/support/resolve-generated-dependency-conflict.d.ts +0 -7
  2575. package/dist/workflow/operations/support/resolve-generated-dependency-conflict.js +0 -89
  2576. package/dist/workflow/operations/support/sync-current-branch-to-origin.d.ts +0 -222
  2577. package/dist/workflow/operations/support/sync-current-branch-to-origin.js +0 -258
  2578. package/dist/workflow/operations/support/update-ahead-behind.d.ts +0 -69
  2579. package/dist/workflow/operations/support/update-ahead-behind.js +0 -220
  2580. package/dist/workflow/operations/support/workflow-helpers.d.ts +0 -22
  2581. package/dist/workflow/operations/support/workflow-helpers.js +0 -114
  2582. package/dist/workflow/operations/workspace-lifecycle/workflow-close.d.ts +0 -275
  2583. package/dist/workflow/operations/workspace-lifecycle/workflow-close.js +0 -230
  2584. package/dist/workflow/operations/workspace-lifecycle/workflow-save.d.ts +0 -135
  2585. package/dist/workflow/operations/workspace-lifecycle/workflow-save.js +0 -522
  2586. package/dist/workflow/operations/workspace-lifecycle/workflow-stage.d.ts +0 -45
  2587. package/dist/workflow/operations/workspace-lifecycle/workflow-stage.js +0 -330
  2588. package/dist/workflow/operations/workspace-lifecycle/workflow-switch.d.ts +0 -35
  2589. package/dist/workflow/operations/workspace-lifecycle/workflow-switch.js +0 -295
  2590. package/dist/workflow/operations/workspace-lifecycle/workflow-update.d.ts +0 -152
  2591. package/dist/workflow/operations/workspace-lifecycle/workflow-update.js +0 -286
  2592. package/dist/workflow/operations.d.ts +0 -31
  2593. package/dist/workflow/operations.js +0 -31
  2594. package/dist/workflow/policy.d.ts +0 -15
  2595. package/dist/workflow/policy.js +0 -73
  2596. package/dist/workflow/runs/ensure-workflow-exclude-rule.d.ts +0 -85
  2597. package/dist/workflow/runs/ensure-workflow-exclude-rule.js +0 -292
  2598. package/dist/workflow/runs/get-cached-successful-workflow-gate.d.ts +0 -24
  2599. package/dist/workflow/runs/get-cached-successful-workflow-gate.js +0 -158
  2600. package/dist/workflow/runs/update-workflow-run-journal.d.ts +0 -28
  2601. package/dist/workflow/runs/update-workflow-run-journal.js +0 -230
  2602. package/dist/workflow/runs/workflow-run-command.d.ts +0 -113
  2603. package/dist/workflow/runs/workflow-run-command.js +0 -140
  2604. package/dist/workflow/runs.d.ts +0 -4
  2605. package/dist/workflow/runs.js +0 -4
  2606. package/dist/workflow/session.d.ts +0 -37
  2607. package/dist/workflow/session.js +0 -189
  2608. package/dist/workflow/worktrees.d.ts +0 -77
  2609. package/dist/workflow/worktrees.js +0 -338
  2610. package/dist/workflow-state/branch-role.d.ts +0 -239
  2611. package/dist/workflow-state/branch-role.js +0 -45
  2612. package/dist/workflow-state/readiness-for-environment.d.ts +0 -61
  2613. package/dist/workflow-state/readiness-for-environment.js +0 -217
  2614. package/dist/workflow-state/recommend-next-steps.d.ts +0 -2
  2615. package/dist/workflow-state/recommend-next-steps.js +0 -99
  2616. package/dist/workflow-state/resolve-workflow-state.d.ts +0 -2
  2617. package/dist/workflow-state/resolve-workflow-state.js +0 -426
  2618. package/dist/workflow-state/safe-release-history.d.ts +0 -23
  2619. package/dist/workflow-state/safe-release-history.js +0 -78
  2620. package/drizzle/d1/0000_treeseed_d1.sql +0 -19
  2621. package/drizzle/market/0000_market_control_plane.sql +0 -4064
  2622. package/drizzle/market/0001_feedback_management.sql +0 -110
  2623. package/drizzle/market/0001_knowledge_collaboration.sql +0 -37
  2624. package/drizzle/market/0002_knowledge_pack_workflow.sql +0 -79
  2625. package/drizzle/market/0003_knowledge_review_snapshot.sql +0 -2
  2626. package/drizzle/market/0004_remote_provider_publication.sql +0 -193
  2627. package/drizzle/market/0005_remote_delivery_operation_scope.sql +0 -9
  2628. package/drizzle/market/0006_workflow_run_provenance.sql +0 -17
  2629. package/drizzle/market/0007_transient_workflow_configuration.sql +0 -6
  2630. package/drizzle/market/0008_guide_editorial_review.sql +0 -27
  2631. package/drizzle/market/0009_capacity_workday_schedules.sql +0 -30
  2632. package/drizzle/market/0010_agent_lab_realtime_preferences.sql +0 -2
  2633. package/drizzle/market/0011_seed_team_membership_claims.sql +0 -20
  2634. package/drizzle/market/0012_signal_time_planning.sql +0 -82
  2635. package/drizzle/market/0013_planning_participant_nodes.sql +0 -8
  2636. package/drizzle/market/0014_legacy_capacity_accounting_nullable.sql +0 -8
  2637. package/drizzle/market/0015_remove_platform_repository_claims.sql +0 -1
  2638. package/drizzle/market/0016_session_events.sql +0 -13
  2639. package/drizzle/market/0017_agent_lab_view_state.sql +0 -18
  2640. package/drizzle/market/0018_agent_context_query_checks.sql +0 -27
  2641. package/drizzle/market/0019_context_query_check_evidence_only.sql +0 -1
  2642. package/drizzle/market/0020_capacity_integrated_communication.sql +0 -181
  2643. package/drizzle/market/0021_project_contribution_authorizations.sql +0 -48
  2644. package/drizzle/market/0022_remove_project_contribution_authorizations.sql +0 -2
  2645. package/scripts/verification/verify-driver.ts +0 -42
  2646. /package/dist/{hosting → content}/contracts.js +0 -0
  2647. /package/dist/{api/types.js → sdk-types/control-plane/resource-requests.js} +0 -0
  2648. /package/dist/{types → site-contracts}/cloudflare.js +0 -0
  2649. /package/dist/{market-client/agent-lab-interface.js → site-contracts/platform.js} +0 -0
  2650. /package/dist/{operations/services/package-bootstrap → standards/mcp}/contracts.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");