@treeseed/sdk 0.13.0-rc.2 → 0.13.0-rc.21

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