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

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 (840) hide show
  1. package/dist/accounts/account-contracts.d.ts +1 -1
  2. package/dist/agent-capacity/authority/assignment-authority-probe.d.ts +2 -2
  3. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +108 -108
  4. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +1 -1
  5. package/dist/ai-appliance/contracts.d.ts +2 -2
  6. package/dist/ai-appliance/contracts.js +2 -2
  7. package/dist/ai-appliance/validation.js +1 -1
  8. package/dist/capacity-provider/client.d.ts +2 -2
  9. package/dist/capacity-provider/client.js +4 -4
  10. package/dist/capacity-provider/contracts/governance.d.ts +6 -6
  11. package/dist/capacity-provider/validation.js +2 -2
  12. package/dist/content/validation/agent-operational-content-schemas.d.ts +64 -64
  13. package/dist/content/validation/auxiliary-content-schemas.d.ts +46 -46
  14. package/dist/content/validation/auxiliary-content-schemas.js +2 -2
  15. package/dist/content/validation/content-model-schemas.d.ts +426 -426
  16. package/dist/content/validation/portable-content-data.d.ts +60 -60
  17. package/dist/db/index.d.ts +0 -1
  18. package/dist/db/index.js +0 -1
  19. package/dist/entrypoints/clients/control-plane-client.d.ts +122 -0
  20. package/dist/entrypoints/clients/control-plane-client.js +226 -0
  21. package/dist/entrypoints/models/sdk-types.d.ts +1 -7
  22. package/dist/entrypoints/models/sdk-types.js +1 -7
  23. package/dist/guarantees/contracts/parse-agent-guarantee-proof.js +1 -1
  24. package/dist/guarantees/index/run-verifier-command.d.ts +1 -1
  25. package/dist/index/operations-and-workflows.d.ts +0 -1
  26. package/dist/index/operations-and-workflows.js +0 -36
  27. package/dist/index/platform-and-hosting.d.ts +1 -2
  28. package/dist/index/platform-and-hosting.js +23 -45
  29. package/dist/index/public-contracts.d.ts +0 -3
  30. package/dist/index/public-contracts.js +0 -3
  31. package/dist/index/templates-and-catalog.d.ts +1 -1
  32. package/dist/index/templates-and-catalog.js +1 -1
  33. package/dist/local-dev/managed-dev-process-spec.js +0 -1
  34. package/dist/operations/providers/default/preflight-operation.d.ts +6 -6
  35. package/dist/operations/services/config-runtime/configuration/create-default-machine-config.d.ts +2 -0
  36. package/dist/operations/services/config-runtime/configuration/create-default-machine-config.js +2 -0
  37. package/dist/operations/services/config-runtime/configuration/list-relevant-config-entries.js +1 -1
  38. package/dist/operations/services/config-runtime/support/resolve-entry-value-from-buckets.js +1 -1
  39. package/dist/operations/services/config-runtime/support/rotate-machine-key-passphrase.d.ts +4 -0
  40. package/dist/operations/services/config-runtime/{commerce/catalog/resolve-template-catalog-endpoint.d.ts → templates/catalog/template-catalog-settings.d.ts} +1 -0
  41. package/dist/operations/services/configuration/config-runtime.d.ts +1 -1
  42. package/dist/operations/services/configuration/config-runtime.js +1 -1
  43. package/dist/operations/services/deploy/accounts/local-runtime-auth-env-keys.d.ts +2 -2
  44. package/dist/operations/services/deploy/accounts/local-runtime-auth-env-keys.js +3 -3
  45. package/dist/operations/services/deploy/hosting/assert-cloudflare-cache-purge-succeeded.d.ts +0 -1
  46. package/dist/operations/services/deploy/hosting/assert-cloudflare-cache-purge-succeeded.js +1 -6
  47. package/dist/operations/services/deploy/hosting/configured-surface-hosts.d.ts +0 -2
  48. package/dist/operations/services/deploy/hosting/configured-surface-hosts.js +1 -3
  49. package/dist/operations/services/deploy/hosting/load-deploy-state.js +2 -2
  50. package/dist/operations/services/deploy/support/default-compatibility-date.d.ts +0 -1
  51. package/dist/operations/services/deploy/support/default-compatibility-date.js +0 -2
  52. package/dist/operations/services/github-actions-verification/git-hub-actions-workflow-state.d.ts +1 -1
  53. package/dist/operations/services/hosting/audit/managed-host-security.js +0 -1
  54. package/dist/operations/services/hosting-audit/hosting-audit-environment.d.ts +2 -2
  55. package/dist/operations/services/key-agent/read-legacy-project-machine-key.d.ts +1 -1
  56. package/dist/operations/services/template-registry/sync-managed-package-json.d.ts +3 -3
  57. package/dist/operations/services/template-registry/template-categories.d.ts +1 -1
  58. package/dist/operations/services/template-registry/validate-template-placeholders.js +1 -1
  59. package/dist/operator-contracts/control-plane-operation.d.ts +60 -0
  60. package/dist/operator-contracts/control-plane-operation.js +75 -0
  61. package/dist/operator-contracts/index.d.ts +3 -0
  62. package/dist/operator-contracts/index.js +3 -0
  63. package/dist/operator-contracts/mcp.d.ts +78 -0
  64. package/dist/operator-contracts/mcp.js +23 -0
  65. package/dist/operator-contracts/oauth.d.ts +38 -0
  66. package/dist/platform/deploy-config/deploy-config-field-aliases.d.ts +2 -2
  67. package/dist/platform/deploy-config/deploy-config-field-aliases.js +3 -3
  68. package/dist/platform/deploy-config/normalize-planes-from-legacy-hosting.d.ts +2 -2
  69. package/dist/platform/deploy-config/normalize-planes-from-legacy-hosting.js +5 -5
  70. package/dist/platform/deploy-config/parse-deploy-config.js +2 -4
  71. package/dist/platform/deploy-config/parse-platform-connections.d.ts +2 -4
  72. package/dist/platform/deploy-config/parse-platform-connections.js +4 -25
  73. package/dist/platform/desired-state/desired-environment.d.ts +1 -1
  74. package/dist/platform/env.yaml +2 -199
  75. package/dist/platform/environment/environment-scopes.d.ts +1 -2
  76. package/dist/platform/environment/environment-scopes.js +0 -2
  77. package/dist/platform/environment/resolve-content-bucket-binding.d.ts +1 -4
  78. package/dist/platform/environment/resolve-content-bucket-binding.js +1 -16
  79. package/dist/platform/packages/published-content-pipeline.d.ts +1 -1
  80. package/dist/platform/packages/published-content-pipeline.js +1 -1
  81. package/dist/platform/published-content/published-content-manifest-schema-version.d.ts +2 -2
  82. package/dist/platform/published-content/runtime/build-runtime-publication.js +1 -1
  83. package/dist/platform/published-content-pipeline/default-artifact-builder.d.ts +1 -1
  84. package/dist/platform/published-content-pipeline/default-artifact-builder.js +2 -2
  85. package/dist/platform/published-content-pipeline/list-markdown-files.d.ts +1 -1
  86. package/dist/platform/published-content-pipeline/list-markdown-files.js +1 -1
  87. package/dist/platform/published-content-pipeline/{resolve-commerce-offer-mode.d.ts → resolve-publication-access-mode.d.ts} +3 -2
  88. package/dist/platform/published-content-pipeline/{resolve-commerce-offer-mode.js → resolve-publication-access-mode.js} +4 -4
  89. package/dist/platform/support/contracts.d.ts +4 -11
  90. package/dist/reconcile/builtin-adapters/capacity/providers/capacity-provider-variables-for-service.d.ts +1 -2
  91. package/dist/reconcile/builtin-adapters/capacity/providers/capacity-provider-variables-for-service.js +3 -18
  92. package/dist/reconcile/builtin-adapters/hosting/observe-railway-unit.js +1 -10
  93. package/dist/reconcile/index.d.ts +0 -2
  94. package/dist/reconcile/index.js +0 -2
  95. package/dist/reconcile/seeds/local-seed-bootstrap-adapter.js +2 -18
  96. package/dist/scenes/accounts/auth.js +5 -5
  97. package/dist/scenes/index.d.ts +0 -8
  98. package/dist/scenes/index.js +0 -50
  99. package/dist/scenes/runner/run-scene.js +1 -26
  100. package/dist/scenes/seeds/seed.js +7 -8
  101. package/dist/scenes/support/execution/base-url.js +1 -1
  102. package/dist/scenes/visual-audit/run-scene-visual-audit.js +3 -21
  103. package/dist/scenes/visual-audit/split-diagnostics.js +1 -1
  104. package/dist/scripts/verification/check-file-architecture.js +0 -3
  105. package/dist/sdk/support/messages/dispatch.js +3 -3
  106. package/dist/sdk-types/configuration/sdk-dispatch-credential-source.d.ts +1 -1
  107. package/dist/sdk-types/{commerce/catalog/upsert-catalog-item-request.d.ts → control-plane/resource-requests.d.ts} +4 -4
  108. package/dist/sdk-types/support/platform-contracts.d.ts +3 -7
  109. package/dist/sdk-types/support/platform-contracts.js +2 -22
  110. package/dist/seeds/index.d.ts +0 -5
  111. package/dist/seeds/index.js +0 -8
  112. package/dist/seeds/schema/resource-buckets.d.ts +1 -1
  113. package/dist/standards/mcp/compare.d.ts +2 -0
  114. package/dist/standards/mcp/compare.js +38 -0
  115. package/dist/standards/mcp/contracts.d.ts +34 -0
  116. package/dist/standards/mcp/index.d.ts +3 -0
  117. package/dist/standards/mcp/index.js +3 -0
  118. package/dist/standards/mcp/normalize.d.ts +4 -0
  119. package/dist/standards/mcp/normalize.js +30 -0
  120. package/dist/{commerce/catalog → templates}/template-catalog.d.ts +1 -1
  121. package/dist/treeseed/template-catalog/catalog.fixture.json +1 -1
  122. package/dist/workflow/operations/configuration/workflow-config.d.ts +2 -2
  123. package/dist/workflow/operations/configuration/workflow-config.js +1 -1
  124. package/dist/workflow/operations/coordination/workflow-ci.js +1 -1
  125. package/dist/workflow/operations/coordination/workflow-destroy.js +1 -1
  126. package/dist/workflow/operations/guarantees/workflow-proof.d.ts +1 -1
  127. package/dist/workflow/operations/guarantees/workflow-proof.js +2 -2
  128. package/dist/workflow/operations/packages/collect-published-release-artifact-checks.js +1 -1
  129. package/dist/workflow/operations/packages/collect-release-plan-blockers.js +1 -1
  130. package/dist/workflow/operations/packages/normalize-release-candidate-mode.js +1 -1
  131. package/dist/workflow/operations/packages/prepare-fresh-release-run.d.ts +1 -1
  132. package/dist/workflow/operations/packages/prepare-fresh-release-run.js +1 -1
  133. package/dist/workflow/operations/packages/release-admin-message.d.ts +1 -1
  134. package/dist/workflow/operations/packages/release-admin-message.js +1 -1
  135. package/dist/workflow/operations/reconciliation/reconcile-save-hosted-environment.js +1 -1
  136. package/dist/workflow/operations/reconciliation/run-release-gate-reconcile-facade.js +1 -1
  137. package/dist/workflow/operations/recovery/fail-workflow-run.js +1 -1
  138. package/dist/workflow/operations/recovery/workflow-resume.js +1 -1
  139. package/dist/workflow/operations/release/workflow-release.js +2 -2
  140. package/dist/workflow/operations/{commerce/catalog → release-support/helpers}/back-merge-production-into-staging.d.ts +1 -0
  141. package/dist/workflow/operations/{commerce/catalog → release-support/helpers}/run-release-production-guarantees.d.ts +1 -0
  142. package/dist/workflow/operations/repositories/gates-for-saved-repository-reports.d.ts +1 -1
  143. package/dist/workflow/operations/repositories/gates-for-saved-repository-reports.js +1 -1
  144. package/dist/workflow/operations/support/create-repo-report.d.ts +1 -1
  145. package/dist/workflow/operations/support/create-repo-report.js +1 -1
  146. package/dist/workflow/operations/support/sync-current-branch-to-origin.d.ts +1 -1
  147. package/dist/workflow/operations/support/sync-current-branch-to-origin.js +1 -1
  148. package/dist/workflow/operations/support/update-ahead-behind.js +1 -1
  149. package/dist/workflow/operations/support/workflow-helpers.js +1 -1
  150. package/dist/workflow/operations/workspace-lifecycle/workflow-close.js +1 -1
  151. package/dist/workflow/operations/workspace-lifecycle/workflow-save.js +2 -2
  152. package/dist/workflow/operations/workspace-lifecycle/workflow-stage.js +1 -1
  153. package/dist/workflow/operations/workspace-lifecycle/workflow-switch.js +1 -1
  154. package/dist/workflow/operations/workspace-lifecycle/workflow-update.js +1 -1
  155. package/dist/workflow/operations.d.ts +2 -2
  156. package/dist/workflow/operations.js +2 -2
  157. package/dist/workflow-state/readiness-for-environment.d.ts +1 -0
  158. package/dist/workflow-state/resolve-workflow-state.js +1 -1
  159. package/package.json +10 -39
  160. package/dist/api/auth/d1-database.d.ts +0 -3
  161. package/dist/api/auth/d1-database.js +0 -20
  162. package/dist/api/auth/d1-provider.d.ts +0 -54
  163. package/dist/api/auth/d1-provider.js +0 -95
  164. package/dist/api/auth/d1-store/accounts/identity/can-adopt-username-match.d.ts +0 -3
  165. package/dist/api/auth/d1-store/accounts/identity/can-adopt-username-match.js +0 -13
  166. package/dist/api/auth/d1-store/accounts/identity/ensure-auth-schema.d.ts +0 -2
  167. package/dist/api/auth/d1-store/accounts/identity/ensure-auth-schema.js +0 -14
  168. package/dist/api/auth/d1-store/accounts/identity/load-user-by-username.d.ts +0 -2
  169. package/dist/api/auth/d1-store/accounts/identity/load-user-by-username.js +0 -6
  170. package/dist/api/auth/d1-store/accounts/identity/load-user-by-verified-email.d.ts +0 -2
  171. package/dist/api/auth/d1-store/accounts/identity/load-user-by-verified-email.js +0 -6
  172. package/dist/api/auth/d1-store/accounts/sessions/authenticate-service.d.ts +0 -6
  173. package/dist/api/auth/d1-store/accounts/sessions/authenticate-service.js +0 -34
  174. package/dist/api/auth/d1-store/accounts/sessions/issue-user-session.d.ts +0 -7
  175. package/dist/api/auth/d1-store/accounts/sessions/issue-user-session.js +0 -69
  176. package/dist/api/auth/d1-store/accounts/tokens/authenticate-bearer-token.d.ts +0 -6
  177. package/dist/api/auth/d1-store/accounts/tokens/authenticate-bearer-token.js +0 -42
  178. package/dist/api/auth/d1-store/accounts/tokens/create-personal-access-token.d.ts +0 -12
  179. package/dist/api/auth/d1-store/accounts/tokens/create-personal-access-token.js +0 -36
  180. package/dist/api/auth/d1-store/accounts/tokens/list-personal-access-tokens.d.ts +0 -2
  181. package/dist/api/auth/d1-store/accounts/tokens/list-personal-access-tokens.js +0 -10
  182. package/dist/api/auth/d1-store/accounts/tokens/refresh-access-token.d.ts +0 -3
  183. package/dist/api/auth/d1-store/accounts/tokens/refresh-access-token.js +0 -46
  184. package/dist/api/auth/d1-store/accounts/tokens/revoke-personal-access-token.d.ts +0 -2
  185. package/dist/api/auth/d1-store/accounts/tokens/revoke-personal-access-token.js +0 -15
  186. package/dist/api/auth/d1-store/capacity/providers/load-identity-by-provider.d.ts +0 -2
  187. package/dist/api/auth/d1-store/capacity/providers/load-identity-by-provider.js +0 -6
  188. package/dist/api/auth/d1-store/commerce/catalog/seed-catalog.d.ts +0 -2
  189. package/dist/api/auth/d1-store/commerce/catalog/seed-catalog.js +0 -27
  190. package/dist/api/auth/d1-store/configuration/create-service-credential.d.ts +0 -7
  191. package/dist/api/auth/d1-store/configuration/create-service-credential.js +0 -10
  192. package/dist/api/auth/d1-store/configuration/rotate-service-credential.d.ts +0 -2
  193. package/dist/api/auth/d1-store/configuration/rotate-service-credential.js +0 -17
  194. package/dist/api/auth/d1-store/configuration/upsert-service-credential.d.ts +0 -8
  195. package/dist/api/auth/d1-store/configuration/upsert-service-credential.js +0 -20
  196. package/dist/api/auth/d1-store/methods.d.ts +0 -40
  197. package/dist/api/auth/d1-store/methods.js +0 -82
  198. package/dist/api/auth/d1-store/runtime/approve-device-flow.d.ts +0 -5
  199. package/dist/api/auth/d1-store/runtime/approve-device-flow.js +0 -27
  200. package/dist/api/auth/d1-store/runtime/poll-device-flow.d.ts +0 -3
  201. package/dist/api/auth/d1-store/runtime/poll-device-flow.js +0 -71
  202. package/dist/api/auth/d1-store/runtime/start-device-flow.d.ts +0 -3
  203. package/dist/api/auth/d1-store/runtime/start-device-flow.js +0 -34
  204. package/dist/api/auth/d1-store/seeds/seed-configured-services.d.ts +0 -2
  205. package/dist/api/auth/d1-store/seeds/seed-configured-services.js +0 -14
  206. package/dist/api/auth/d1-store/support/audit/write-audit-event.d.ts +0 -9
  207. package/dist/api/auth/d1-store/support/audit/write-audit-event.js +0 -18
  208. package/dist/api/auth/d1-store/support/lifecycle/ensure-initialized.d.ts +0 -2
  209. package/dist/api/auth/d1-store/support/lifecycle/ensure-initialized.js +0 -9
  210. package/dist/api/auth/d1-store/support/principals/create-user.d.ts +0 -7
  211. package/dist/api/auth/d1-store/support/principals/create-user.js +0 -30
  212. package/dist/api/auth/d1-store/support/principals/exchange-trusted-user-assertion.d.ts +0 -10
  213. package/dist/api/auth/d1-store/support/principals/exchange-trusted-user-assertion.js +0 -50
  214. package/dist/api/auth/d1-store/support/principals/load-user.d.ts +0 -2
  215. package/dist/api/auth/d1-store/support/principals/load-user.js +0 -6
  216. package/dist/api/auth/d1-store/support/principals/permissions-for-user.d.ts +0 -2
  217. package/dist/api/auth/d1-store/support/principals/permissions-for-user.js +0 -11
  218. package/dist/api/auth/d1-store/support/principals/principal-for-user.d.ts +0 -2
  219. package/dist/api/auth/d1-store/support/principals/principal-for-user.js +0 -27
  220. package/dist/api/auth/d1-store/support/principals/scopes-for-principal.d.ts +0 -2
  221. package/dist/api/auth/d1-store/support/principals/scopes-for-principal.js +0 -13
  222. package/dist/api/auth/d1-store/support/principals/sync-user.d.ts +0 -7
  223. package/dist/api/auth/d1-store/support/principals/sync-user.js +0 -96
  224. package/dist/api/auth/d1-store/support/principals/user-metadata.d.ts +0 -9
  225. package/dist/api/auth/d1-store/support/principals/user-metadata.js +0 -13
  226. package/dist/api/auth/d1-store/support/queries/execute-statement.d.ts +0 -2
  227. package/dist/api/auth/d1-store/support/queries/execute-statement.js +0 -6
  228. package/dist/api/auth/d1-store/support/queries/query-all.d.ts +0 -2
  229. package/dist/api/auth/d1-store/support/queries/query-all.js +0 -7
  230. package/dist/api/auth/d1-store/support/queries/query-first.d.ts +0 -2
  231. package/dist/api/auth/d1-store/support/queries/query-first.js +0 -6
  232. package/dist/api/auth/d1-store/teams/assign-role.d.ts +0 -2
  233. package/dist/api/auth/d1-store/teams/assign-role.js +0 -12
  234. package/dist/api/auth/d1-store/teams/bootstrap-roles-for-user.d.ts +0 -3
  235. package/dist/api/auth/d1-store/teams/bootstrap-roles-for-user.js +0 -22
  236. package/dist/api/auth/d1-store/teams/permissions-for-roles.d.ts +0 -2
  237. package/dist/api/auth/d1-store/teams/permissions-for-roles.js +0 -15
  238. package/dist/api/auth/d1-store/teams/reconcile-bootstrap-admins.d.ts +0 -2
  239. package/dist/api/auth/d1-store/teams/reconcile-bootstrap-admins.js +0 -34
  240. package/dist/api/auth/d1-store/teams/replace-roles.d.ts +0 -2
  241. package/dist/api/auth/d1-store/teams/replace-roles.js +0 -9
  242. package/dist/api/auth/d1-store/teams/roles-for-user.d.ts +0 -2
  243. package/dist/api/auth/d1-store/teams/roles-for-user.js +0 -10
  244. package/dist/api/auth/d1-store/teams/set-user-roles.d.ts +0 -2
  245. package/dist/api/auth/d1-store/teams/set-user-roles.js +0 -25
  246. package/dist/api/auth/d1-store.d.ts +0 -133
  247. package/dist/api/auth/d1-store.js +0 -225
  248. package/dist/api/auth/memory-provider.d.ts +0 -82
  249. package/dist/api/auth/memory-provider.js +0 -297
  250. package/dist/api/auth/rbac.d.ts +0 -27
  251. package/dist/api/auth/rbac.js +0 -171
  252. package/dist/api/auth/tokens.d.ts +0 -18
  253. package/dist/api/auth/tokens.js +0 -56
  254. package/dist/api/auth/trusted-assertion.d.ts +0 -10
  255. package/dist/api/auth/trusted-assertion.js +0 -19
  256. package/dist/api/capacity/providers/providers.d.ts +0 -2
  257. package/dist/api/capacity/providers/providers.js +0 -69
  258. package/dist/api/configuration/config.d.ts +0 -4
  259. package/dist/api/configuration/config.js +0 -149
  260. package/dist/api/hosting/railway.d.ts +0 -53
  261. package/dist/api/hosting/railway.js +0 -71
  262. package/dist/api/index.d.ts +0 -13
  263. package/dist/api/index.js +0 -33
  264. package/dist/api/operations/operations-routes.d.ts +0 -11
  265. package/dist/api/operations/operations-routes.js +0 -39
  266. package/dist/api/operations/operations.d.ts +0 -3
  267. package/dist/api/operations/operations.js +0 -26
  268. package/dist/api/support/app.d.ts +0 -8
  269. package/dist/api/support/app.js +0 -410
  270. package/dist/api/support/http.d.ts +0 -28
  271. package/dist/api/support/http.js +0 -51
  272. package/dist/api/support/sdk-dispatch.d.ts +0 -6
  273. package/dist/api/support/sdk-dispatch.js +0 -14
  274. package/dist/api/support/sdk-routes.d.ts +0 -11
  275. package/dist/api/support/sdk-routes.js +0 -29
  276. package/dist/api/support/templates.d.ts +0 -3
  277. package/dist/api/support/templates.js +0 -31
  278. package/dist/api/types.d.ts +0 -242
  279. package/dist/db/market-schema/accounts/agent-lab-view-state.d.ts +0 -228
  280. package/dist/db/market-schema/accounts/agent-lab-view-state.js +0 -22
  281. package/dist/db/market-schema/accounts/better-auth-account.d.ts +0 -2491
  282. package/dist/db/market-schema/accounts/better-auth-account.js +0 -248
  283. package/dist/db/market-schema/accounts/notification-events.d.ts +0 -2911
  284. package/dist/db/market-schema/accounts/notification-events.js +0 -252
  285. package/dist/db/market-schema/accounts/team-services.d.ts +0 -1780
  286. package/dist/db/market-schema/accounts/team-services.js +0 -150
  287. package/dist/db/market-schema/agents/agent-context-query-checks.d.ts +0 -296
  288. package/dist/db/market-schema/agents/agent-context-query-checks.js +0 -33
  289. package/dist/db/market-schema/agents/agent-mode-runs.d.ts +0 -3137
  290. package/dist/db/market-schema/agents/agent-mode-runs.js +0 -311
  291. package/dist/db/market-schema/agents/communication-control.d.ts +0 -820
  292. package/dist/db/market-schema/agents/communication-control.js +0 -86
  293. package/dist/db/market-schema/capacity/accounting/capacity-ledger-entries.d.ts +0 -3187
  294. package/dist/db/market-schema/capacity/accounting/capacity-ledger-entries.js +0 -300
  295. package/dist/db/market-schema/capacity/providers/capacity-provider-team-credentials.d.ts +0 -2637
  296. package/dist/db/market-schema/capacity/providers/capacity-provider-team-credentials.js +0 -271
  297. package/dist/db/market-schema/capacity/workdays/capacity-workday-events.d.ts +0 -3882
  298. package/dist/db/market-schema/capacity/workdays/capacity-workday-events.js +0 -373
  299. package/dist/db/market-schema/commerce/capacity/commerce-capacity-listings.d.ts +0 -1681
  300. package/dist/db/market-schema/commerce/capacity/commerce-capacity-listings.js +0 -150
  301. package/dist/db/market-schema/commerce/catalog/catalog-items.d.ts +0 -3076
  302. package/dist/db/market-schema/commerce/catalog/catalog-items.js +0 -263
  303. package/dist/db/market-schema/commerce/catalog/commerce-product-versions.d.ts +0 -2943
  304. package/dist/db/market-schema/commerce/catalog/commerce-product-versions.js +0 -253
  305. package/dist/db/market-schema/commerce/payments/commerce-subscriptions.d.ts +0 -3072
  306. package/dist/db/market-schema/commerce/payments/commerce-subscriptions.js +0 -263
  307. package/dist/db/market-schema/governance/commons/commons-participants.d.ts +0 -3117
  308. package/dist/db/market-schema/governance/commons/commons-participants.js +0 -260
  309. package/dist/db/market-schema/governance/policy/governance-electorate-snapshots.d.ts +0 -2498
  310. package/dist/db/market-schema/governance/policy/governance-electorate-snapshots.js +0 -212
  311. package/dist/db/market-schema/projects/integrations/provider-operations.d.ts +0 -2586
  312. package/dist/db/market-schema/projects/integrations/provider-operations.js +0 -196
  313. package/dist/db/market-schema/projects/knowledge/knowledge-collaboration.d.ts +0 -1426
  314. package/dist/db/market-schema/projects/knowledge/knowledge-collaboration.js +0 -111
  315. package/dist/db/market-schema/projects/knowledge/project-knowledge-governance.d.ts +0 -1269
  316. package/dist/db/market-schema/projects/knowledge/project-knowledge-governance.js +0 -95
  317. package/dist/db/market-schema/projects/knowledge/tree-dx-project-libraries.d.ts +0 -1937
  318. package/dist/db/market-schema/projects/knowledge/tree-dx-project-libraries.js +0 -160
  319. package/dist/db/market-schema/support/feedback.d.ts +0 -1055
  320. package/dist/db/market-schema/support/feedback.js +0 -86
  321. package/dist/db/market-schema/support/market-schema.d.ts +0 -45339
  322. package/dist/db/market-schema/support/market-schema.js +0 -216
  323. package/dist/db/market-schema/support/subscribers.d.ts +0 -3027
  324. package/dist/db/market-schema/support/subscribers.js +0 -267
  325. package/dist/db/market-schema.d.ts +0 -22
  326. package/dist/db/market-schema.js +0 -22
  327. package/dist/entrypoints/clients/market-client.d.ts +0 -184
  328. package/dist/entrypoints/clients/market-client.js +0 -369
  329. package/dist/gateway/admin-passthrough.d.ts +0 -17
  330. package/dist/gateway/admin-passthrough.js +0 -131
  331. package/dist/gateway/admin-route-inventory.d.ts +0 -5
  332. package/dist/gateway/admin-route-inventory.js +0 -27
  333. package/dist/gateway/header-policy.d.ts +0 -3
  334. package/dist/gateway/header-policy.js +0 -38
  335. package/dist/gateway/health.d.ts +0 -9
  336. package/dist/gateway/health.js +0 -26
  337. package/dist/gateway/index.d.ts +0 -7
  338. package/dist/gateway/index.js +0 -8
  339. package/dist/gateway/node-websocket-proxy.d.ts +0 -13
  340. package/dist/gateway/node-websocket-proxy.js +0 -109
  341. package/dist/market-client/accounts/contracts/account-deletion-blockers.d.ts +0 -2
  342. package/dist/market-client/accounts/contracts/account-deletion-blockers.js +0 -6
  343. package/dist/market-client/accounts/contracts/account-identity.d.ts +0 -2
  344. package/dist/market-client/accounts/contracts/account-identity.js +0 -6
  345. package/dist/market-client/accounts/contracts/local-auth-paths.d.ts +0 -2
  346. package/dist/market-client/accounts/contracts/local-auth-paths.js +0 -6
  347. package/dist/market-client/accounts/contracts/logout.d.ts +0 -2
  348. package/dist/market-client/accounts/contracts/logout.js +0 -9
  349. package/dist/market-client/accounts/contracts/poll-device-login.d.ts +0 -3
  350. package/dist/market-client/accounts/contracts/poll-device-login.js +0 -9
  351. package/dist/market-client/accounts/contracts/web-appearance.d.ts +0 -2
  352. package/dist/market-client/accounts/contracts/web-appearance.js +0 -6
  353. package/dist/market-client/accounts/contracts/web-emails.d.ts +0 -2
  354. package/dist/market-client/accounts/contracts/web-emails.js +0 -6
  355. package/dist/market-client/accounts/contracts/web-notification-preferences.d.ts +0 -2
  356. package/dist/market-client/accounts/contracts/web-notification-preferences.js +0 -6
  357. package/dist/market-client/accounts/contracts/web-notifications.d.ts +0 -2
  358. package/dist/market-client/accounts/contracts/web-notifications.js +0 -6
  359. package/dist/market-client/accounts/contracts/web-sessions.d.ts +0 -2
  360. package/dist/market-client/accounts/contracts/web-sessions.js +0 -6
  361. package/dist/market-client/accounts/creation/add-web-email.d.ts +0 -4
  362. package/dist/market-client/accounts/creation/add-web-email.js +0 -10
  363. package/dist/market-client/accounts/creation/request-web-password-reset.d.ts +0 -4
  364. package/dist/market-client/accounts/creation/request-web-password-reset.js +0 -9
  365. package/dist/market-client/accounts/creation/start-device-login.d.ts +0 -3
  366. package/dist/market-client/accounts/creation/start-device-login.js +0 -9
  367. package/dist/market-client/accounts/lifecycle/complete-web-password-reset.d.ts +0 -5
  368. package/dist/market-client/accounts/lifecycle/complete-web-password-reset.js +0 -9
  369. package/dist/market-client/accounts/lifecycle/confirm-web-email.d.ts +0 -4
  370. package/dist/market-client/accounts/lifecycle/confirm-web-email.js +0 -9
  371. package/dist/market-client/accounts/lifecycle/verify-web-email.d.ts +0 -2
  372. package/dist/market-client/accounts/lifecycle/verify-web-email.js +0 -6
  373. package/dist/market-client/accounts/preferences/account-preferences.d.ts +0 -4
  374. package/dist/market-client/accounts/preferences/account-preferences.js +0 -14
  375. package/dist/market-client/accounts/queries/check-web-email.d.ts +0 -2
  376. package/dist/market-client/accounts/queries/check-web-email.js +0 -6
  377. package/dist/market-client/accounts/queries/check-web-username.d.ts +0 -2
  378. package/dist/market-client/accounts/queries/check-web-username.js +0 -6
  379. package/dist/market-client/accounts/retirement/delete-account.d.ts +0 -6
  380. package/dist/market-client/accounts/retirement/delete-account.js +0 -10
  381. package/dist/market-client/accounts/retirement/delete-web-email.d.ts +0 -2
  382. package/dist/market-client/accounts/retirement/delete-web-email.js +0 -6
  383. package/dist/market-client/accounts/retirement/revoke-web-session.d.ts +0 -2
  384. package/dist/market-client/accounts/retirement/revoke-web-session.js +0 -6
  385. package/dist/market-client/accounts/updates/mark-web-notification-read.d.ts +0 -2
  386. package/dist/market-client/accounts/updates/mark-web-notification-read.js +0 -6
  387. package/dist/market-client/accounts/updates/refresh-token.d.ts +0 -3
  388. package/dist/market-client/accounts/updates/refresh-token.js +0 -9
  389. package/dist/market-client/accounts/updates/set-primary-web-email.d.ts +0 -2
  390. package/dist/market-client/accounts/updates/set-primary-web-email.js +0 -6
  391. package/dist/market-client/accounts/updates/update-web-appearance.d.ts +0 -10
  392. package/dist/market-client/accounts/updates/update-web-appearance.js +0 -10
  393. package/dist/market-client/accounts/updates/update-web-notification-preferences.d.ts +0 -3
  394. package/dist/market-client/accounts/updates/update-web-notification-preferences.js +0 -6
  395. package/dist/market-client/accounts/updates/update-web-password.d.ts +0 -6
  396. package/dist/market-client/accounts/updates/update-web-password.js +0 -10
  397. package/dist/market-client/agent-lab-interface.d.ts +0 -12
  398. package/dist/market-client/agents/creation/create-structured-agent-estimate.d.ts +0 -2
  399. package/dist/market-client/agents/creation/create-structured-agent-estimate.js +0 -6
  400. package/dist/market-client/agents/lifecycle/accept-structured-agent-estimate.d.ts +0 -2
  401. package/dist/market-client/agents/lifecycle/accept-structured-agent-estimate.js +0 -6
  402. package/dist/market-client/capacity/accounting/contracts/capacity-ledger.d.ts +0 -7
  403. package/dist/market-client/capacity/accounting/contracts/capacity-ledger.js +0 -6
  404. package/dist/market-client/capacity/accounting/contracts/capacity-reservation-explanation.d.ts +0 -2
  405. package/dist/market-client/capacity/accounting/contracts/capacity-reservation-explanation.js +0 -6
  406. package/dist/market-client/capacity/accounting/contracts/capacity-reservations.d.ts +0 -7
  407. package/dist/market-client/capacity/accounting/contracts/capacity-reservations.js +0 -6
  408. package/dist/market-client/capacity/accounting/contracts/capacity-usage.d.ts +0 -7
  409. package/dist/market-client/capacity/accounting/contracts/capacity-usage.js +0 -6
  410. package/dist/market-client/capacity/accounting/lifecycle/decide-capacity-overrun.d.ts +0 -4
  411. package/dist/market-client/capacity/accounting/lifecycle/decide-capacity-overrun.js +0 -6
  412. package/dist/market-client/capacity/admission/contracts/team-capacity-registration-key.d.ts +0 -2
  413. package/dist/market-client/capacity/admission/contracts/team-capacity-registration-key.js +0 -6
  414. package/dist/market-client/capacity/admission/lifecycle/enable-team-capacity-registration-key.d.ts +0 -2
  415. package/dist/market-client/capacity/admission/lifecycle/enable-team-capacity-registration-key.js +0 -6
  416. package/dist/market-client/capacity/admission/lifecycle/reveal-team-capacity-registration-key.d.ts +0 -2
  417. package/dist/market-client/capacity/admission/lifecycle/reveal-team-capacity-registration-key.js +0 -6
  418. package/dist/market-client/capacity/admission/retirement/disable-team-capacity-registration-key.d.ts +0 -2
  419. package/dist/market-client/capacity/admission/retirement/disable-team-capacity-registration-key.js +0 -6
  420. package/dist/market-client/capacity/admission/updates/rotate-team-capacity-registration-key.d.ts +0 -2
  421. package/dist/market-client/capacity/admission/updates/rotate-team-capacity-registration-key.js +0 -6
  422. package/dist/market-client/capacity/admission/updates/update-team-capacity-registration-key-status.d.ts +0 -2
  423. package/dist/market-client/capacity/admission/updates/update-team-capacity-registration-key-status.js +0 -6
  424. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-set.d.ts +0 -2
  425. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-set.js +0 -6
  426. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-sets.d.ts +0 -5
  427. package/dist/market-client/capacity/allocations/contracts/capacity-allocation-sets.js +0 -11
  428. package/dist/market-client/capacity/allocations/contracts/capacity-grant.d.ts +0 -2
  429. package/dist/market-client/capacity/allocations/contracts/capacity-grant.js +0 -6
  430. package/dist/market-client/capacity/allocations/contracts/capacity-grants.d.ts +0 -5
  431. package/dist/market-client/capacity/allocations/contracts/capacity-grants.js +0 -11
  432. package/dist/market-client/capacity/allocations/creation/create-capacity-allocation-set.d.ts +0 -2
  433. package/dist/market-client/capacity/allocations/creation/create-capacity-allocation-set.js +0 -6
  434. package/dist/market-client/capacity/allocations/creation/create-capacity-grant.d.ts +0 -2
  435. package/dist/market-client/capacity/allocations/creation/create-capacity-grant.js +0 -6
  436. package/dist/market-client/capacity/allocations/creation/plan-capacity-allocation-set.d.ts +0 -2
  437. package/dist/market-client/capacity/allocations/creation/plan-capacity-allocation-set.js +0 -6
  438. package/dist/market-client/capacity/allocations/creation/plan-capacity-grant.d.ts +0 -2
  439. package/dist/market-client/capacity/allocations/creation/plan-capacity-grant.js +0 -6
  440. package/dist/market-client/capacity/allocations/lifecycle/activate-capacity-allocation-set.d.ts +0 -2
  441. package/dist/market-client/capacity/allocations/lifecycle/activate-capacity-allocation-set.js +0 -6
  442. package/dist/market-client/capacity/allocations/queries/explain-capacity-allocation-set.d.ts +0 -2
  443. package/dist/market-client/capacity/allocations/queries/explain-capacity-allocation-set.js +0 -6
  444. package/dist/market-client/capacity/allocations/retirement/archive-capacity-allocation-set.d.ts +0 -2
  445. package/dist/market-client/capacity/allocations/retirement/archive-capacity-allocation-set.js +0 -6
  446. package/dist/market-client/capacity/allocations/updates/supersede-capacity-allocation-set.d.ts +0 -2
  447. package/dist/market-client/capacity/allocations/updates/supersede-capacity-allocation-set.js +0 -6
  448. package/dist/market-client/capacity/allocations/updates/transition-capacity-grant.d.ts +0 -2
  449. package/dist/market-client/capacity/allocations/updates/transition-capacity-grant.js +0 -6
  450. package/dist/market-client/capacity/assignments/contracts/assignment-authority-probe.d.ts +0 -2
  451. package/dist/market-client/capacity/assignments/contracts/assignment-authority-probe.js +0 -6
  452. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignment.d.ts +0 -2
  453. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignment.js +0 -6
  454. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignments.d.ts +0 -12
  455. package/dist/market-client/capacity/assignments/contracts/capacity-provider-assignments.js +0 -26
  456. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graph.d.ts +0 -2
  457. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graph.js +0 -6
  458. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graphs.d.ts +0 -4
  459. package/dist/market-client/capacity/assignments/contracts/decision-assignment-graphs.js +0 -7
  460. package/dist/market-client/capacity/assignments/contracts/provider-assignment-explanation.d.ts +0 -2
  461. package/dist/market-client/capacity/assignments/contracts/provider-assignment-explanation.js +0 -6
  462. package/dist/market-client/capacity/assignments/lifecycle/admit-capacity-assignment.d.ts +0 -2
  463. package/dist/market-client/capacity/assignments/lifecycle/admit-capacity-assignment.js +0 -6
  464. package/dist/market-client/capacity/assignments/lifecycle/integrate-assignment-content.d.ts +0 -10
  465. package/dist/market-client/capacity/assignments/lifecycle/integrate-assignment-content.js +0 -9
  466. package/dist/market-client/capacity/assignments/lifecycle/requeue-capacity-assignment.d.ts +0 -5
  467. package/dist/market-client/capacity/assignments/lifecycle/requeue-capacity-assignment.js +0 -6
  468. package/dist/market-client/capacity/assignments/retirement/abandon-assignment-content.d.ts +0 -9
  469. package/dist/market-client/capacity/assignments/retirement/abandon-assignment-content.js +0 -9
  470. package/dist/market-client/capacity/assignments/retirement/cancel-capacity-assignment.d.ts +0 -5
  471. package/dist/market-client/capacity/assignments/retirement/cancel-capacity-assignment.js +0 -6
  472. package/dist/market-client/capacity/capacity-core/contracts/capacity-audit-events.d.ts +0 -11
  473. package/dist/market-client/capacity/capacity-core/contracts/capacity-audit-events.js +0 -11
  474. package/dist/market-client/capacity/observability/contracts/agent-lab.d.ts +0 -27
  475. package/dist/market-client/capacity/observability/contracts/agent-lab.js +0 -37
  476. package/dist/market-client/capacity/observability/contracts/capacity-evidence-page.d.ts +0 -7
  477. package/dist/market-client/capacity/observability/contracts/capacity-evidence-page.js +0 -13
  478. package/dist/market-client/capacity/observability/contracts/project-capacity-diagnostics.d.ts +0 -2
  479. package/dist/market-client/capacity/observability/contracts/project-capacity-diagnostics.js +0 -7
  480. package/dist/market-client/capacity/observability/contracts/project-capacity-runtime-diagnostics.d.ts +0 -2
  481. package/dist/market-client/capacity/observability/contracts/project-capacity-runtime-diagnostics.js +0 -7
  482. package/dist/market-client/capacity/planning/contracts/capacity-plan.d.ts +0 -2
  483. package/dist/market-client/capacity/planning/contracts/capacity-plan.js +0 -6
  484. package/dist/market-client/capacity/planning/contracts/decision-capacity-plans.d.ts +0 -4
  485. package/dist/market-client/capacity/planning/contracts/decision-capacity-plans.js +0 -7
  486. package/dist/market-client/capacity/planning/creation/create-decision-capacity-plan.d.ts +0 -2
  487. package/dist/market-client/capacity/planning/creation/create-decision-capacity-plan.js +0 -6
  488. package/dist/market-client/capacity/planning/creation/request-capacity-plan-revision.d.ts +0 -2
  489. package/dist/market-client/capacity/planning/creation/request-capacity-plan-revision.js +0 -6
  490. package/dist/market-client/capacity/planning/lifecycle/accept-capacity-plan.d.ts +0 -2
  491. package/dist/market-client/capacity/planning/lifecycle/accept-capacity-plan.js +0 -6
  492. package/dist/market-client/capacity/planning/lifecycle/schedule-capacity-plan.d.ts +0 -2
  493. package/dist/market-client/capacity/planning/lifecycle/schedule-capacity-plan.js +0 -6
  494. package/dist/market-client/capacity/planning/updates/supersede-capacity-plan.d.ts +0 -2
  495. package/dist/market-client/capacity/planning/updates/supersede-capacity-plan.js +0 -6
  496. package/dist/market-client/capacity/providers/contracts/auth-providers.d.ts +0 -2
  497. package/dist/market-client/capacity/providers/contracts/auth-providers.js +0 -6
  498. package/dist/market-client/capacity/providers/contracts/capacity-provider-credentials.d.ts +0 -6
  499. package/dist/market-client/capacity/providers/contracts/capacity-provider-credentials.js +0 -13
  500. package/dist/market-client/capacity/providers/contracts/capacity-provider-membership.d.ts +0 -2
  501. package/dist/market-client/capacity/providers/contracts/capacity-provider-membership.js +0 -6
  502. package/dist/market-client/capacity/providers/contracts/capacity-provider-memberships.d.ts +0 -7
  503. package/dist/market-client/capacity/providers/contracts/capacity-provider-memberships.js +0 -15
  504. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-request.d.ts +0 -2
  505. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-request.js +0 -6
  506. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-requests.d.ts +0 -6
  507. package/dist/market-client/capacity/providers/contracts/capacity-provider-registration-requests.js +0 -13
  508. package/dist/market-client/capacity/providers/contracts/provider-availability-sessions.d.ts +0 -7
  509. package/dist/market-client/capacity/providers/contracts/provider-availability-sessions.js +0 -16
  510. package/dist/market-client/capacity/providers/lifecycle/authorize-capacity-provider-credential-rotation.d.ts +0 -2
  511. package/dist/market-client/capacity/providers/lifecycle/authorize-capacity-provider-credential-rotation.js +0 -6
  512. package/dist/market-client/capacity/providers/lifecycle/resume-capacity-provider-membership.d.ts +0 -2
  513. package/dist/market-client/capacity/providers/lifecycle/resume-capacity-provider-membership.js +0 -6
  514. package/dist/market-client/capacity/providers/lifecycle/review-capacity-provider-registration.d.ts +0 -5
  515. package/dist/market-client/capacity/providers/lifecycle/review-capacity-provider-registration.js +0 -6
  516. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-credential.d.ts +0 -2
  517. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-credential.js +0 -6
  518. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-membership.d.ts +0 -2
  519. package/dist/market-client/capacity/providers/retirement/revoke-capacity-provider-membership.js +0 -6
  520. package/dist/market-client/capacity/providers/retirement/suspend-capacity-provider-membership.d.ts +0 -2
  521. package/dist/market-client/capacity/providers/retirement/suspend-capacity-provider-membership.js +0 -6
  522. package/dist/market-client/capacity/providers/updates/update-capacity-provider-membership-status.d.ts +0 -2
  523. package/dist/market-client/capacity/providers/updates/update-capacity-provider-membership-status.js +0 -6
  524. package/dist/market-client/capacity/workdays/contracts/workday-events.d.ts +0 -5
  525. package/dist/market-client/capacity/workdays/contracts/workday-events.js +0 -11
  526. package/dist/market-client/capacity/workdays/contracts/workday-run.d.ts +0 -2
  527. package/dist/market-client/capacity/workdays/contracts/workday-run.js +0 -6
  528. package/dist/market-client/capacity/workdays/contracts/workday-runs.d.ts +0 -7
  529. package/dist/market-client/capacity/workdays/contracts/workday-runs.js +0 -16
  530. package/dist/market-client/capacity/workdays/contracts/workday-summary.d.ts +0 -6
  531. package/dist/market-client/capacity/workdays/contracts/workday-summary.js +0 -14
  532. package/dist/market-client/capacity/workdays/contracts/workday.d.ts +0 -2
  533. package/dist/market-client/capacity/workdays/contracts/workday.js +0 -6
  534. package/dist/market-client/capacity/workdays/creation/create-workday-event.d.ts +0 -2
  535. package/dist/market-client/capacity/workdays/creation/create-workday-event.js +0 -6
  536. package/dist/market-client/capacity/workdays/creation/create-workday-run.d.ts +0 -2
  537. package/dist/market-client/capacity/workdays/creation/create-workday-run.js +0 -6
  538. package/dist/market-client/capacity/workdays/creation/create-workday.d.ts +0 -2
  539. package/dist/market-client/capacity/workdays/creation/create-workday.js +0 -6
  540. package/dist/market-client/capacity/workdays/creation/preflight-workday-run.d.ts +0 -2
  541. package/dist/market-client/capacity/workdays/creation/preflight-workday-run.js +0 -6
  542. package/dist/market-client/capacity/workdays/creation/start-workday.d.ts +0 -2
  543. package/dist/market-client/capacity/workdays/creation/start-workday.js +0 -6
  544. package/dist/market-client/capacity/workdays/lifecycle/close-workday-admission.d.ts +0 -29
  545. package/dist/market-client/capacity/workdays/lifecycle/close-workday-admission.js +0 -9
  546. package/dist/market-client/capacity/workdays/lifecycle/complete-workday.d.ts +0 -2
  547. package/dist/market-client/capacity/workdays/lifecycle/complete-workday.js +0 -6
  548. package/dist/market-client/capacity/workdays/lifecycle/pause-workday.d.ts +0 -2
  549. package/dist/market-client/capacity/workdays/lifecycle/pause-workday.js +0 -6
  550. package/dist/market-client/capacity/workdays/lifecycle/resume-workday.d.ts +0 -2
  551. package/dist/market-client/capacity/workdays/lifecycle/resume-workday.js +0 -6
  552. package/dist/market-client/capacity/workdays/lifecycle/tick-workday-run.d.ts +0 -5
  553. package/dist/market-client/capacity/workdays/lifecycle/tick-workday-run.js +0 -6
  554. package/dist/market-client/capacity/workdays/retirement/cancel-workday.d.ts +0 -2
  555. package/dist/market-client/capacity/workdays/retirement/cancel-workday.js +0 -6
  556. package/dist/market-client/capacity/workdays/updates/update-workday-run.d.ts +0 -2
  557. package/dist/market-client/capacity/workdays/updates/update-workday-run.js +0 -6
  558. package/dist/market-client/commerce/catalog/contracts/catalog.d.ts +0 -2
  559. package/dist/market-client/commerce/catalog/contracts/catalog.js +0 -7
  560. package/dist/market-client/discussions/contracts/discussions.d.ts +0 -27
  561. package/dist/market-client/discussions/contracts/discussions.js +0 -21
  562. package/dist/market-client/interface.d.ts +0 -192
  563. package/dist/market-client/internal-capacity-allocation.d.ts +0 -4
  564. package/dist/market-client/internal-capacity-allocation.js +0 -17
  565. package/dist/market-client/methods.d.ts +0 -2
  566. package/dist/market-client/methods.js +0 -396
  567. package/dist/market-client/operations/contracts/research-workflow.d.ts +0 -2
  568. package/dist/market-client/operations/contracts/research-workflow.js +0 -6
  569. package/dist/market-client/operations/creation/create-research-workflow.d.ts +0 -2
  570. package/dist/market-client/operations/creation/create-research-workflow.js +0 -6
  571. package/dist/market-client/project-agent-interface.d.ts +0 -15
  572. package/dist/market-client/project-agent-interface.js +0 -0
  573. package/dist/market-client/projects/access/contracts/project-access.d.ts +0 -2
  574. package/dist/market-client/projects/access/contracts/project-access.js +0 -6
  575. package/dist/market-client/projects/agents/contracts/agent-deployments.d.ts +0 -34
  576. package/dist/market-client/projects/agents/contracts/agent-deployments.js +0 -22
  577. package/dist/market-client/projects/agents/contracts/project-agent-authoring-draft.d.ts +0 -10
  578. package/dist/market-client/projects/agents/contracts/project-agent-authoring-draft.js +0 -13
  579. package/dist/market-client/projects/agents/contracts/project-agent-class.d.ts +0 -2
  580. package/dist/market-client/projects/agents/contracts/project-agent-class.js +0 -6
  581. package/dist/market-client/projects/agents/contracts/project-agent-classes.d.ts +0 -5
  582. package/dist/market-client/projects/agents/contracts/project-agent-classes.js +0 -11
  583. package/dist/market-client/projects/agents/contracts/project-agent-fallback-outputs.d.ts +0 -8
  584. package/dist/market-client/projects/agents/contracts/project-agent-fallback-outputs.js +0 -17
  585. package/dist/market-client/projects/agents/contracts/project-agent-mode-runs.d.ts +0 -8
  586. package/dist/market-client/projects/agents/contracts/project-agent-mode-runs.js +0 -18
  587. package/dist/market-client/projects/agents/contracts/project-context-query-checks.d.ts +0 -2
  588. package/dist/market-client/projects/agents/contracts/project-context-query-checks.js +0 -6
  589. package/dist/market-client/projects/agents/creation/author-project-agent.d.ts +0 -10
  590. package/dist/market-client/projects/agents/creation/author-project-agent.js +0 -10
  591. package/dist/market-client/projects/agents/creation/author-project-definitions.d.ts +0 -12
  592. package/dist/market-client/projects/agents/creation/author-project-definitions.js +0 -10
  593. package/dist/market-client/projects/agents/creation/check-project-context-query.d.ts +0 -7
  594. package/dist/market-client/projects/agents/creation/check-project-context-query.js +0 -11
  595. package/dist/market-client/projects/agents/creation/create-project-agent-class.d.ts +0 -2
  596. package/dist/market-client/projects/agents/creation/create-project-agent-class.js +0 -6
  597. package/dist/market-client/projects/agents/creation/launch-project-agent-simulation.d.ts +0 -8
  598. package/dist/market-client/projects/agents/creation/launch-project-agent-simulation.js +0 -10
  599. package/dist/market-client/projects/agents/updates/update-project-agent-class.d.ts +0 -2
  600. package/dist/market-client/projects/agents/updates/update-project-agent-class.js +0 -6
  601. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-library.d.ts +0 -2
  602. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-library.js +0 -6
  603. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-proxy-audit.d.ts +0 -7
  604. package/dist/market-client/projects/knowledge/contracts/project-tree-dx-proxy-audit.js +0 -15
  605. package/dist/market-client/projects/knowledge/creation/upsert-project-tree-dx-library.d.ts +0 -3
  606. package/dist/market-client/projects/knowledge/creation/upsert-project-tree-dx-library.js +0 -6
  607. package/dist/market-client/projects/projects-core/contracts/dispatch-project-workflow-operation.d.ts +0 -2
  608. package/dist/market-client/projects/projects-core/contracts/dispatch-project-workflow-operation.js +0 -6
  609. package/dist/market-client/projects/projects-core/contracts/project-deletion-blockers.d.ts +0 -2
  610. package/dist/market-client/projects/projects-core/contracts/project-deletion-blockers.js +0 -6
  611. package/dist/market-client/projects/projects-core/contracts/project-workflow-operations.d.ts +0 -10
  612. package/dist/market-client/projects/projects-core/contracts/project-workflow-operations.js +0 -50
  613. package/dist/market-client/projects/projects-core/contracts/projects.d.ts +0 -2
  614. package/dist/market-client/projects/projects-core/contracts/projects.js +0 -7
  615. package/dist/market-client/projects/projects-core/creation/create-project.d.ts +0 -8
  616. package/dist/market-client/projects/projects-core/creation/create-project.js +0 -6
  617. package/dist/market-client/projects/projects-core/retirement/delete-project.d.ts +0 -2
  618. package/dist/market-client/projects/projects-core/retirement/delete-project.js +0 -6
  619. package/dist/market-client/projects/projects-core/updates/set-project-inventory-status.d.ts +0 -3
  620. package/dist/market-client/projects/projects-core/updates/set-project-inventory-status.js +0 -10
  621. package/dist/market-client/projects/repositories/contracts/project-repository-topology.d.ts +0 -2
  622. package/dist/market-client/projects/repositories/contracts/project-repository-topology.js +0 -6
  623. package/dist/market-client/projects/repositories/updates/update-project-repository-topology.d.ts +0 -3
  624. package/dist/market-client/projects/repositories/updates/update-project-repository-topology.js +0 -6
  625. package/dist/market-client/seeds/creation/apply-seed.d.ts +0 -2
  626. package/dist/market-client/seeds/creation/apply-seed.js +0 -6
  627. package/dist/market-client/seeds/creation/export-seed.d.ts +0 -2
  628. package/dist/market-client/seeds/creation/export-seed.js +0 -6
  629. package/dist/market-client/seeds/creation/plan-seed.d.ts +0 -2
  630. package/dist/market-client/seeds/creation/plan-seed.js +0 -6
  631. package/dist/market-client/seeds/interface.d.ts +0 -10
  632. package/dist/market-client/seeds/interface.js +0 -0
  633. package/dist/market-client/seeds/queries/list-seed-runs.d.ts +0 -2
  634. package/dist/market-client/seeds/queries/list-seed-runs.js +0 -7
  635. package/dist/market-client/seeds/queries/resolve-seed-resources.d.ts +0 -9
  636. package/dist/market-client/seeds/queries/resolve-seed-resources.js +0 -10
  637. package/dist/market-client/support/creation/create-decision-execution-input.d.ts +0 -2
  638. package/dist/market-client/support/creation/create-decision-execution-input.js +0 -6
  639. package/dist/market-client/support/creation/create-personal-theme.d.ts +0 -3
  640. package/dist/market-client/support/creation/create-personal-theme.js +0 -6
  641. package/dist/market-client/support/creation/create-planning-input-request.d.ts +0 -2
  642. package/dist/market-client/support/creation/create-planning-input-request.js +0 -6
  643. package/dist/market-client/support/creation/request-decision-execution-input-revision.d.ts +0 -2
  644. package/dist/market-client/support/creation/request-decision-execution-input-revision.js +0 -6
  645. package/dist/market-client/support/creation/request-first.d.ts +0 -7
  646. package/dist/market-client/support/creation/request-first.js +0 -19
  647. package/dist/market-client/support/delivery/artifact-download.d.ts +0 -2
  648. package/dist/market-client/support/delivery/artifact-download.js +0 -6
  649. package/dist/market-client/support/delivery/deliverable-manifest.d.ts +0 -4
  650. package/dist/market-client/support/delivery/deliverable-manifest.js +0 -14
  651. package/dist/market-client/support/identity/markets.d.ts +0 -2
  652. package/dist/market-client/support/identity/markets.js +0 -6
  653. package/dist/market-client/support/identity/me.d.ts +0 -2
  654. package/dist/market-client/support/identity/me.js +0 -6
  655. package/dist/market-client/support/identity/personal-themes.d.ts +0 -2
  656. package/dist/market-client/support/identity/personal-themes.js +0 -6
  657. package/dist/market-client/support/identity/web-sign-in.d.ts +0 -7
  658. package/dist/market-client/support/identity/web-sign-in.js +0 -9
  659. package/dist/market-client/support/identity/web-sign-up.d.ts +0 -9
  660. package/dist/market-client/support/identity/web-sign-up.js +0 -9
  661. package/dist/market-client/support/lifecycle/accept-decision-execution-input.d.ts +0 -2
  662. package/dist/market-client/support/lifecycle/accept-decision-execution-input.js +0 -6
  663. package/dist/market-client/support/planning/decision-execution-inputs.d.ts +0 -4
  664. package/dist/market-client/support/planning/decision-execution-inputs.js +0 -7
  665. package/dist/market-client/support/planning/decision-planning-status.d.ts +0 -2
  666. package/dist/market-client/support/planning/decision-planning-status.js +0 -6
  667. package/dist/market-client/support/planning/decision-structured-estimates.d.ts +0 -2
  668. package/dist/market-client/support/planning/decision-structured-estimates.js +0 -7
  669. package/dist/market-client/support/planning/execution-runs.d.ts +0 -12
  670. package/dist/market-client/support/planning/execution-runs.js +0 -11
  671. package/dist/market-client/support/preferences/request.d.ts +0 -7
  672. package/dist/market-client/support/preferences/request.js +0 -36
  673. package/dist/market-client/support/queries/current-market.d.ts +0 -2
  674. package/dist/market-client/support/queries/current-market.js +0 -6
  675. package/dist/market-client/support/retirement/delete-personal-theme.d.ts +0 -2
  676. package/dist/market-client/support/retirement/delete-personal-theme.js +0 -6
  677. package/dist/market-client/support/updates/update-personal-theme.d.ts +0 -3
  678. package/dist/market-client/support/updates/update-personal-theme.js +0 -6
  679. package/dist/market-client/support/updates/update-web-profile.d.ts +0 -5
  680. package/dist/market-client/support/updates/update-web-profile.js +0 -10
  681. package/dist/market-client/teams/contracts/team-deletion-blockers.d.ts +0 -2
  682. package/dist/market-client/teams/contracts/team-deletion-blockers.js +0 -6
  683. package/dist/market-client/teams/contracts/team-members.d.ts +0 -2
  684. package/dist/market-client/teams/contracts/team-members.js +0 -6
  685. package/dist/market-client/teams/contracts/team-permissions.d.ts +0 -2
  686. package/dist/market-client/teams/contracts/team-permissions.js +0 -6
  687. package/dist/market-client/teams/contracts/teams.d.ts +0 -2
  688. package/dist/market-client/teams/contracts/teams.js +0 -6
  689. package/dist/market-client/teams/creation/create-team.d.ts +0 -6
  690. package/dist/market-client/teams/creation/create-team.js +0 -10
  691. package/dist/market-client/teams/lifecycle/team-lifecycle.d.ts +0 -22
  692. package/dist/market-client/teams/lifecycle/team-lifecycle.js +0 -30
  693. package/dist/market-client/treedx/graph/contracts/tree-dx-build-context.d.ts +0 -2
  694. package/dist/market-client/treedx/graph/contracts/tree-dx-build-context.js +0 -6
  695. package/dist/market-client/treedx/repositories/contracts/team-tree-dx.d.ts +0 -2
  696. package/dist/market-client/treedx/repositories/contracts/team-tree-dx.js +0 -6
  697. package/dist/market-client/treedx/repositories/contracts/tree-dx-mirrors.d.ts +0 -2
  698. package/dist/market-client/treedx/repositories/contracts/tree-dx-mirrors.js +0 -6
  699. package/dist/market-client/treedx/repositories/contracts/tree-dx-read-repository-files.d.ts +0 -2
  700. package/dist/market-client/treedx/repositories/contracts/tree-dx-read-repository-files.js +0 -6
  701. package/dist/market-client/treedx/repositories/contracts/tree-dx-shares.d.ts +0 -2
  702. package/dist/market-client/treedx/repositories/contracts/tree-dx-shares.js +0 -6
  703. package/dist/market-client/treedx/repositories/creation/create-tree-dx-mirror.d.ts +0 -3
  704. package/dist/market-client/treedx/repositories/creation/create-tree-dx-mirror.js +0 -6
  705. package/dist/market-client/treedx/repositories/creation/create-tree-dx-share.d.ts +0 -3
  706. package/dist/market-client/treedx/repositories/creation/create-tree-dx-share.js +0 -6
  707. package/dist/market-client/treedx/repositories/creation/create-tree-dx-workspace.d.ts +0 -2
  708. package/dist/market-client/treedx/repositories/creation/create-tree-dx-workspace.js +0 -6
  709. package/dist/market-client/treedx/repositories/creation/provision-team-tree-dx.d.ts +0 -2
  710. package/dist/market-client/treedx/repositories/creation/provision-team-tree-dx.js +0 -6
  711. package/dist/market-client/treedx/repositories/updates/sync-tree-dx-mirror.d.ts +0 -2
  712. package/dist/market-client/treedx/repositories/updates/sync-tree-dx-mirror.js +0 -6
  713. package/dist/market-client/treedx/repositories/updates/update-team-tree-dx.d.ts +0 -3
  714. package/dist/market-client/treedx/repositories/updates/update-team-tree-dx.js +0 -6
  715. package/dist/operations/platform-operation-store.d.ts +0 -2
  716. package/dist/operations/platform-operation-store.js +0 -2
  717. package/dist/operations/platform-operations.d.ts +0 -3
  718. package/dist/operations/platform-operations.js +0 -3
  719. package/dist/operations/services/support/market-packaging.d.ts +0 -43
  720. package/dist/operations/services/support/market-packaging.js +0 -169
  721. package/dist/platform-operation-store/database-provider.d.ts +0 -44
  722. package/dist/platform-operation-store/database-provider.js +0 -205
  723. package/dist/platform-operation-store/platform-operation-store.d.ts +0 -56
  724. package/dist/platform-operation-store/platform-operation-store.js +0 -224
  725. package/dist/platform-operations/nested-record.d.ts +0 -21
  726. package/dist/platform-operations/nested-record.js +0 -262
  727. package/dist/platform-operations/platform-operation-endpoints.d.ts +0 -208
  728. package/dist/platform-operations/platform-operation-endpoints.js +0 -71
  729. package/dist/platform-operations/platform-runner-client.d.ts +0 -52
  730. package/dist/platform-operations/platform-runner-client.js +0 -143
  731. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-cleanup.d.ts +0 -55
  732. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-cleanup.js +0 -103
  733. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-competition.d.ts +0 -29
  734. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-competition.js +0 -179
  735. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-context.d.ts +0 -132
  736. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-context.js +0 -388
  737. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-executor.d.ts +0 -50
  738. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-executor.js +0 -0
  739. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-governance.d.ts +0 -65
  740. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-governance.js +0 -206
  741. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-guards.d.ts +0 -19
  742. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-guards.js +0 -36
  743. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-proof.d.ts +0 -14
  744. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-proof.js +0 -514
  745. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-scope.d.ts +0 -14
  746. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-scope.js +0 -122
  747. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-terminal.d.ts +0 -17
  748. package/dist/reconcile/capacity/capacity-core/live-acceptance-capacity-terminal.js +0 -101
  749. package/dist/reconcile/capacity/providers/live-acceptance-provider-config.d.ts +0 -1
  750. package/dist/reconcile/capacity/providers/live-acceptance-provider-config.js +0 -20
  751. package/dist/reconcile/hosting/live-acceptance-cloudflare-client.d.ts +0 -29
  752. package/dist/reconcile/hosting/live-acceptance-cloudflare-client.js +0 -119
  753. package/dist/reconcile/hosting/live-acceptance-cloudflare.d.ts +0 -14
  754. package/dist/reconcile/hosting/live-acceptance-cloudflare.js +0 -316
  755. package/dist/reconcile/hosting/live-acceptance-railway.d.ts +0 -14
  756. package/dist/reconcile/hosting/live-acceptance-railway.js +0 -420
  757. package/dist/reconcile/repositories/live-acceptance-github-client.d.ts +0 -6
  758. package/dist/reconcile/repositories/live-acceptance-github-client.js +0 -42
  759. package/dist/reconcile/repositories/live-acceptance-github.d.ts +0 -12
  760. package/dist/reconcile/repositories/live-acceptance-github.js +0 -301
  761. package/dist/reconcile/runtime/live-acceptance-local.d.ts +0 -16
  762. package/dist/reconcile/runtime/live-acceptance-local.js +0 -260
  763. package/dist/reconcile/runtime/live-acceptance-runtime.d.ts +0 -67
  764. package/dist/reconcile/runtime/live-acceptance-runtime.js +0 -324
  765. package/dist/reconcile/runtime/live-acceptance-starter-runtime.d.ts +0 -123
  766. package/dist/reconcile/runtime/live-acceptance-starter-runtime.js +0 -439
  767. package/dist/reconcile/support/acceptance/live-acceptance-starter-concurrency.d.ts +0 -19
  768. package/dist/reconcile/support/acceptance/live-acceptance-starter-concurrency.js +0 -128
  769. package/dist/reconcile/support/acceptance/live-acceptance-starter-engineering.d.ts +0 -18
  770. package/dist/reconcile/support/acceptance/live-acceptance-starter-engineering.js +0 -264
  771. package/dist/reconcile/support/acceptance/live-acceptance-starter-planning.d.ts +0 -44
  772. package/dist/reconcile/support/acceptance/live-acceptance-starter-planning.js +0 -154
  773. package/dist/reconcile/support/acceptance/live-acceptance-starters.d.ts +0 -51
  774. package/dist/reconcile/support/acceptance/live-acceptance-starters.js +0 -12
  775. package/dist/reconcile/support/acceptance/live-acceptance-values.d.ts +0 -2
  776. package/dist/reconcile/support/acceptance/live-acceptance-values.js +0 -10
  777. package/dist/reconcile/support/acceptance/live-acceptance-worktree-cleanup.d.ts +0 -7
  778. package/dist/reconcile/support/acceptance/live-acceptance-worktree-cleanup.js +0 -38
  779. package/dist/reconcile/support/acceptance/live-acceptance.d.ts +0 -102
  780. package/dist/reconcile/support/acceptance/live-acceptance.js +0 -322
  781. package/dist/scenes/agent-lab/activity-collector.d.ts +0 -114
  782. package/dist/scenes/agent-lab/activity-collector.js +0 -394
  783. package/dist/scenes/agent-lab/production-lifecycle.d.ts +0 -18
  784. package/dist/scenes/agent-lab/production-lifecycle.js +0 -573
  785. package/dist/scenes/agent-lab/profile-input-seed.d.ts +0 -23
  786. package/dist/scenes/agent-lab/profile-input-seed.js +0 -41
  787. package/dist/scenes/agent-lab/report-adapters.d.ts +0 -3
  788. package/dist/scenes/agent-lab/report-adapters.js +0 -33
  789. package/dist/scenes/agent-lab/report-model.d.ts +0 -122
  790. package/dist/scenes/agent-lab/report-model.js +0 -194
  791. package/dist/scenes/agent-lab/report-writer.d.ts +0 -14
  792. package/dist/scenes/agent-lab/report-writer.js +0 -143
  793. package/dist/scenes/agent-lab/run-agent-lab-scene.d.ts +0 -6
  794. package/dist/scenes/agent-lab/run-agent-lab-scene.js +0 -122
  795. package/dist/scenes/agent-lab/runtime/diagnostics.d.ts +0 -7
  796. package/dist/scenes/agent-lab/runtime/diagnostics.js +0 -42
  797. package/dist/scenes/agent-lab/runtime/metadata.d.ts +0 -7
  798. package/dist/scenes/agent-lab/runtime/metadata.js +0 -19
  799. package/dist/scenes/agent-lab/runtime/team-scope.d.ts +0 -29
  800. package/dist/scenes/agent-lab/runtime/team-scope.js +0 -54
  801. package/dist/scenes/agent-lab/semantic-artifact-assertions.d.ts +0 -29
  802. package/dist/scenes/agent-lab/semantic-artifact-assertions.js +0 -66
  803. package/dist/scenes/agent-lab/terminal-verification.d.ts +0 -17
  804. package/dist/scenes/agent-lab/terminal-verification.js +0 -31
  805. package/dist/scenes/agent-lab/viewer/runtime.d.ts +0 -1
  806. package/dist/scenes/agent-lab/viewer/runtime.js +0 -576
  807. package/dist/scenes/agent-lab/viewer/styles.d.ts +0 -1
  808. package/dist/scenes/agent-lab/viewer/styles.js +0 -28
  809. package/dist/scenes/agent-lab/workday-snapshot.d.ts +0 -116
  810. package/dist/scenes/agent-lab/workday-snapshot.js +0 -153
  811. package/dist/scenes/testing/visual-audit-fixtures.d.ts +0 -25
  812. package/dist/scenes/testing/visual-audit-fixtures.js +0 -299
  813. package/dist/scripts/maintenance/repair-extracted-class-interfaces.js +0 -36
  814. package/dist/scripts/testing/test-live-acceptance-cleanup-service.js +0 -57
  815. package/dist/sdk-types/commerce/capacity/commerce-capacity-listing-input.d.ts +0 -250
  816. package/dist/sdk-types/commerce/capacity/commerce-capacity-listing-input.js +0 -0
  817. package/dist/sdk-types/commerce/catalog/upsert-catalog-item-request.js +0 -0
  818. package/dist/sdk-types/commerce/governance/commerce-governance-states.d.ts +0 -42
  819. package/dist/sdk-types/commerce/governance/commerce-governance-states.js +0 -198
  820. package/dist/sdk-types/commerce/payments/commerce-entitlement.d.ts +0 -244
  821. package/dist/sdk-types/commerce/payments/commerce-entitlement.js +0 -0
  822. package/dist/sdk-types/commerce/payments/commerce-subscription-statuses.d.ts +0 -77
  823. package/dist/sdk-types/commerce/payments/commerce-subscription-statuses.js +0 -166
  824. package/dist/sdk-types/commerce/services/commerce-service-contract.d.ts +0 -247
  825. package/dist/sdk-types/commerce/services/commerce-service-contract.js +0 -0
  826. package/dist/sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.d.ts +0 -233
  827. package/dist/sdk-types/commerce/vendors/commerce-stripe-onboarding-request-input.js +0 -0
  828. package/dist/seeds/runtime/local-capacity.d.ts +0 -65
  829. package/dist/seeds/runtime/local-capacity.js +0 -402
  830. package/dist/seeds/workspaces/gateway-contract-migration.d.ts +0 -31
  831. package/dist/seeds/workspaces/gateway-contract-migration.js +0 -176
  832. package/dist/seeds/workspaces/market-api-workspace.d.ts +0 -60
  833. package/dist/seeds/workspaces/market-api-workspace.js +0 -528
  834. /package/dist/operations/services/config-runtime/{commerce/catalog/resolve-template-catalog-endpoint.js → templates/catalog/template-catalog-settings.js} +0 -0
  835. /package/dist/{api/types.js → operator-contracts/oauth.js} +0 -0
  836. /package/dist/{market-client/agent-lab-interface.js → sdk-types/control-plane/resource-requests.js} +0 -0
  837. /package/dist/{market-client/interface.js → standards/mcp/contracts.js} +0 -0
  838. /package/dist/{commerce/catalog → templates}/template-catalog.js +0 -0
  839. /package/dist/workflow/operations/{commerce/catalog → release-support/helpers}/back-merge-production-into-staging.js +0 -0
  840. /package/dist/workflow/operations/{commerce/catalog → release-support/helpers}/run-release-production-guarantees.js +0 -0
package/dist/api/index.js DELETED
@@ -1,33 +0,0 @@
1
- import { resolveApiD1Database } from "./auth/d1-database.js";
2
- import { D1AuthProvider } from "./auth/d1-provider.js";
3
- import { MemoryDeviceCodeAuthProvider } from "./auth/memory-provider.js";
4
- import { createSignedUserAssertion } from "./auth/trusted-assertion.js";
5
- import { principalHasPlatformPermission } from "./auth/rbac.js";
6
- import { resolveApiRuntimeProviders } from "./capacity/providers/providers.js";
7
- import { resolveApiConfig, resolveApiDatabaseUrl, resolveLocalApiDatabaseUrl } from "./configuration/config.js";
8
- import { createNodeServer, createRailwayApiServer } from "./hosting/railway.js";
9
- import { createApiApp, createApiRouter } from "./support/app.js";
10
- import { bearerTokenFromRequest, jsonError, requireActorType, requireAuthentication, requirePermission, requireScope } from "./support/http.js";
11
- import { loadTemplateCatalog } from "./support/templates.js";
12
- export {
13
- D1AuthProvider,
14
- MemoryDeviceCodeAuthProvider,
15
- bearerTokenFromRequest,
16
- createApiApp,
17
- createApiRouter,
18
- createNodeServer,
19
- createRailwayApiServer,
20
- createSignedUserAssertion,
21
- jsonError,
22
- loadTemplateCatalog,
23
- principalHasPlatformPermission,
24
- requireActorType,
25
- requireAuthentication,
26
- requirePermission,
27
- requireScope,
28
- resolveApiConfig,
29
- resolveApiD1Database,
30
- resolveApiDatabaseUrl,
31
- resolveApiRuntimeProviders,
32
- resolveLocalApiDatabaseUrl
33
- };
@@ -1,11 +0,0 @@
1
- import type { Hono } from 'hono';
2
- import type { AgentSdk } from '../../entrypoints/models/sdk.js';
3
- import type { ApiConfig } from '../types.js';
4
- import { executeHttpWorkflowOperation } from './operations.js';
5
- export declare function registerOperationRoutes(app: Hono<any>, options: {
6
- config: ApiConfig;
7
- scope: string;
8
- prefix?: string;
9
- sdk?: AgentSdk;
10
- executeOperation?: typeof executeHttpWorkflowOperation;
11
- }): void;
@@ -1,39 +0,0 @@
1
- import { findOperation } from "../../operations/operations-registry.js";
2
- import { jsonError, requireScope } from "../support/http.js";
3
- import { executeHttpWorkflowOperation, isHttpWorkflowOperationAllowed } from "./operations.js";
4
- function registerOperationRoutes(app, options) {
5
- const executeOperation = options.executeOperation ?? executeHttpWorkflowOperation;
6
- const prefix = options.prefix ?? "";
7
- function withPrefix(path) {
8
- if (!prefix) return path;
9
- return `${prefix}${path}`.replace(/\/{2,}/g, "/");
10
- }
11
- app.post(withPrefix("/operations/:operation"), async (c) => {
12
- const unauthorized = requireScope(c, options.scope);
13
- if (unauthorized) return unauthorized;
14
- const requestedOperation = c.req.param("operation");
15
- const resolvedOperation = findOperation(requestedOperation);
16
- if (!resolvedOperation) {
17
- return jsonError(c, 400, `Unknown Treeseed operation "${requestedOperation}".`, {
18
- operation: requestedOperation
19
- });
20
- }
21
- if (!isHttpWorkflowOperationAllowed(resolvedOperation.name)) {
22
- return jsonError(c, 400, `Workflow operation "${resolvedOperation.name}" is not supported over HTTP.`, {
23
- operation: resolvedOperation.name
24
- });
25
- }
26
- const body = await c.req.json().catch(() => ({}));
27
- try {
28
- const result = await executeOperation(resolvedOperation.name, body);
29
- return c.json(result, { status: result.ok ? 200 : 400 });
30
- } catch (error) {
31
- const message = error instanceof Error ? error.message : String(error);
32
- const status = /Unknown Treeseed operation|not supported over HTTP|confirmation required/i.test(message) ? 400 : 500;
33
- return jsonError(c, status, message, { operation: resolvedOperation.name });
34
- }
35
- });
36
- }
37
- export {
38
- registerOperationRoutes
39
- };
@@ -1,3 +0,0 @@
1
- import type { ApiWorkflowOperationResponse, WorkflowHttpOperationRequest } from '../types.js';
2
- export declare function isHttpWorkflowOperationAllowed(operation: string): boolean;
3
- export declare function executeHttpWorkflowOperation(operation: string, request: WorkflowHttpOperationRequest): Promise<ApiWorkflowOperationResponse>;
@@ -1,26 +0,0 @@
1
- import { OperationsSdk } from "../../operations/operations.js";
2
- const HTTP_BLOCKED_WORKFLOW_OPERATIONS = /* @__PURE__ */ new Set(["dev", "dev:watch"]);
3
- function isHttpWorkflowOperationAllowed(operation) {
4
- return !HTTP_BLOCKED_WORKFLOW_OPERATIONS.has(operation);
5
- }
6
- async function executeHttpWorkflowOperation(operation, request) {
7
- if (!isHttpWorkflowOperationAllowed(operation)) {
8
- throw new Error(`Workflow operation "${operation}" is not supported over HTTP.`);
9
- }
10
- const operations = new OperationsSdk();
11
- return operations.execute({
12
- operationName: operation,
13
- input: request.input ?? {}
14
- }, {
15
- cwd: request.cwd ?? process.cwd(),
16
- env: {
17
- ...process.env,
18
- ...request.env ?? {}
19
- },
20
- transport: "api"
21
- });
22
- }
23
- export {
24
- executeHttpWorkflowOperation,
25
- isHttpWorkflowOperationAllowed
26
- };
@@ -1,8 +0,0 @@
1
- import { Hono } from 'hono';
2
- import type { ApiServerOptions, AppVariables } from '../types.js';
3
- export declare function createApiRouter(options?: ApiServerOptions): Hono<{
4
- Variables: AppVariables;
5
- }, import("hono/types").BlankSchema, "/">;
6
- export declare function createApiApp(options?: ApiServerOptions): Hono<{
7
- Variables: AppVariables;
8
- }, import("hono/types").BlankSchema, "/">;
@@ -1,410 +0,0 @@
1
- import { Hono } from "hono";
2
- import crypto from "node:crypto";
3
- import { REMOTE_CONTRACT_HEADER, REMOTE_CONTRACT_VERSION } from "../../entrypoints/clients/remote.js";
4
- import { AgentSdk } from "../../entrypoints/models/sdk.js";
5
- import { resolveApiRuntimeProviders } from "../capacity/providers/providers.js";
6
- import { resolveApiConfig } from "../configuration/config.js";
7
- import { registerOperationRoutes } from "../operations/operations-routes.js";
8
- import { bearerTokenFromRequest, jsonError, requirePermission, requireScope } from "./http.js";
9
- import { registerSdkRoutes } from "./sdk-routes.js";
10
- import { loadTemplateCatalog } from "./templates.js";
11
- function mergeApiOptions(options) {
12
- const baseConfig = resolveApiConfig();
13
- return {
14
- config: {
15
- ...baseConfig,
16
- ...options.config ?? {},
17
- providers: {
18
- ...baseConfig.providers,
19
- ...options.config?.providers ?? {},
20
- agents: {
21
- ...baseConfig.providers.agents,
22
- ...options.config?.providers?.agents ?? {}
23
- }
24
- }
25
- },
26
- surfaces: {
27
- auth: true,
28
- templates: true,
29
- sdk: true,
30
- operations: true,
31
- ...options.surfaces ?? {}
32
- },
33
- scopes: {
34
- authMe: "auth:me",
35
- sdk: "sdk",
36
- operations: "operations",
37
- ...options.scopes ?? {}
38
- }
39
- };
40
- }
41
- function normalizePrefix(prefix) {
42
- if (!prefix?.trim()) return "";
43
- const normalized = prefix.trim().replace(/\/+$/u, "");
44
- return normalized.startsWith("/") ? normalized : `/${normalized}`;
45
- }
46
- function authApprovalUrl(config, userCode) {
47
- const baseUrl = (config.authApprovalBaseUrl ?? config.baseUrl).replace(/\/+$/u, "");
48
- const url = new URL("/auth/device/approve", `${baseUrl}/`);
49
- if (userCode) {
50
- url.searchParams.set("user_code", userCode);
51
- }
52
- return url.toString();
53
- }
54
- async function readJsonOrFormBody(c) {
55
- const contentType = c.req.header("content-type") ?? "";
56
- if (contentType.includes("application/json")) {
57
- const json = await c.req.json().catch(() => null);
58
- return json && typeof json === "object" && !Array.isArray(json) ? json : {};
59
- }
60
- const form = await c.req.parseBody?.().catch(() => null);
61
- return form && typeof form === "object" ? form : {};
62
- }
63
- function principalScopes(permissions) {
64
- const scopes = /* @__PURE__ */ new Set(["auth:me"]);
65
- if (permissions.includes("*:*:*") || permissions.includes("sdk:execute:global")) scopes.add("sdk");
66
- if (permissions.includes("*:*:*") || permissions.includes("agent:execute:global")) scopes.add("agent");
67
- if (permissions.includes("*:*:*") || permissions.includes("operations:execute:global")) scopes.add("operations");
68
- return [...scopes];
69
- }
70
- function buildProjectApiPrincipal(config) {
71
- return {
72
- id: `project:${config.projectId}`,
73
- displayName: config.projectApiLabel,
74
- roles: ["project_api"],
75
- permissions: [...config.projectApiPermissions],
76
- scopes: principalScopes(config.projectApiPermissions),
77
- metadata: {
78
- projectId: config.projectId
79
- }
80
- };
81
- }
82
- function matchesProjectApiKey(token, projectApiKey) {
83
- if (!projectApiKey) return false;
84
- const left = Buffer.from(token);
85
- const right = Buffer.from(projectApiKey);
86
- return left.length === right.length && crypto.timingSafeEqual(left, right);
87
- }
88
- function createApiRouter(options = {}) {
89
- const resolved = mergeApiOptions(options);
90
- const runtimeProviders = resolveApiRuntimeProviders(resolved.config, options.runtimeProviders);
91
- const sharedSdk = options.sdk ?? new AgentSdk({ repoRoot: resolved.config.repoRoot });
92
- const app = new Hono();
93
- const internalPrefix = normalizePrefix(options.internalPrefix);
94
- const runtime = {
95
- resolved,
96
- runtimeProviders,
97
- sharedSdk,
98
- internalPrefix
99
- };
100
- const extensionMounts = [];
101
- app.use("*", async (c, next) => {
102
- c.set("requestId", crypto.randomUUID());
103
- c.set("config", resolved.config);
104
- c.set("principal", null);
105
- c.set("actingUser", null);
106
- c.set("credential", null);
107
- c.set("actorType", "anonymous");
108
- c.set("permissionGrants", []);
109
- c.header(REMOTE_CONTRACT_HEADER, String(REMOTE_CONTRACT_VERSION));
110
- await next();
111
- });
112
- app.use("*", async (c, next) => {
113
- const serviceId = c.req.header("x-treeseed-service-id");
114
- const serviceSecret = c.req.header("x-treeseed-service-secret");
115
- if (serviceId && serviceSecret) {
116
- const result = await runtimeProviders.auth.authenticateServiceCredential(serviceId, serviceSecret);
117
- if (!result) {
118
- return jsonError(c, 401, "Invalid internal service credential.");
119
- }
120
- c.set("principal", result.principal);
121
- c.set("credential", result.credential);
122
- c.set("actorType", "service");
123
- c.set("permissionGrants", result.principal.permissions);
124
- }
125
- await next();
126
- });
127
- app.use("*", async (c, next) => {
128
- const token = bearerTokenFromRequest(c.req.raw);
129
- if (token) {
130
- const override = await options.authenticateBearerOverride?.(token) ?? null;
131
- if (override) {
132
- c.set("principal", override.principal);
133
- c.set("credential", override.credential);
134
- c.set("actorType", override.credential.type === "service_token" ? "service" : "user");
135
- c.set("permissionGrants", override.principal.permissions);
136
- } else if (matchesProjectApiKey(token, resolved.config.projectApiKey)) {
137
- const principal = buildProjectApiPrincipal(resolved.config);
138
- c.set("principal", principal);
139
- c.set("credential", {
140
- type: "project_api_key",
141
- id: resolved.config.projectId,
142
- label: resolved.config.projectApiLabel
143
- });
144
- c.set("actorType", "project");
145
- c.set("permissionGrants", principal.permissions);
146
- await next();
147
- return;
148
- }
149
- const result = await runtimeProviders.auth.authenticateBearerToken(token);
150
- if (result) {
151
- c.set("principal", result.principal);
152
- c.set("credential", result.credential);
153
- c.set("actorType", result.credential.type === "service_token" ? "service" : "user");
154
- c.set("permissionGrants", result.principal.permissions);
155
- }
156
- }
157
- await next();
158
- });
159
- app.use("*", async (c, next) => {
160
- const assertion = c.req.header("x-treeseed-user-assertion");
161
- if (c.get("actorType") === "service" && assertion) {
162
- const claims = runtimeProviders.auth.verifyTrustedUserAssertion(assertion);
163
- if (!claims) {
164
- return jsonError(c, 401, "Invalid trusted user assertion.");
165
- }
166
- const exchange = await runtimeProviders.auth.exchangeTrustedUserAssertion(claims);
167
- c.set("actingUser", exchange.principal);
168
- c.set("principal", exchange.principal);
169
- c.set("actorType", "user");
170
- c.set("permissionGrants", exchange.principal.permissions);
171
- }
172
- await next();
173
- });
174
- app.get("/healthz", (c) => c.json({
175
- ok: true,
176
- service: resolved.config.name,
177
- status: "ok",
178
- requestId: c.get("requestId")
179
- }));
180
- app.get("/readyz", (c) => c.json({
181
- ok: true,
182
- ready: true,
183
- providers: runtimeProviders.selections,
184
- surfaces: resolved.surfaces
185
- }));
186
- app.get("/internal/capabilities", (c) => c.json({
187
- ok: true,
188
- payload: {
189
- service: resolved.config.name,
190
- capabilities: [
191
- "sdk.execute",
192
- "operations.execute"
193
- ]
194
- }
195
- }));
196
- if (resolved.surfaces.templates) {
197
- app.get("/templates", (c) => c.json(loadTemplateCatalog(resolved.config)));
198
- app.get("/search/templates", (c) => c.json(loadTemplateCatalog(resolved.config)));
199
- app.get("/templates/:id", (c) => {
200
- const catalog = loadTemplateCatalog(resolved.config);
201
- const item = catalog.items.find((entry) => entry.id === c.req.param("id"));
202
- return item ? c.json({ ok: true, payload: item }) : jsonError(c, 404, `Unknown template "${c.req.param("id")}".`);
203
- });
204
- }
205
- if (resolved.surfaces.auth) {
206
- app.get("/auth/device/approve", (c) => {
207
- const target = authApprovalUrl(resolved.config, c.req.query("user_code"));
208
- if (target === c.req.url) {
209
- return jsonError(c, 404, "Open the TreeSeed web app to approve CLI device login.");
210
- }
211
- return c.redirect(target, 302);
212
- });
213
- app.post("/auth/device/start", async (c) => {
214
- const body = await c.req.json().catch(() => ({}));
215
- return c.json(await runtimeProviders.auth.startDeviceFlow(body));
216
- });
217
- app.post("/auth/device/poll", async (c) => {
218
- const body = await c.req.json().catch(() => ({}));
219
- const response = await runtimeProviders.auth.pollDeviceFlow(body);
220
- return c.json(response, { status: response.ok ? 200 : response.status === "expired" ? 410 : 400 });
221
- });
222
- app.post("/auth/device/approve", async (c) => {
223
- const body = await readJsonOrFormBody(c);
224
- try {
225
- const approved = await runtimeProviders.auth.approveDeviceFlow({
226
- userCode: String(body.userCode ?? ""),
227
- principalId: String(body.principalId ?? ""),
228
- displayName: typeof body.displayName === "string" ? body.displayName : void 0,
229
- metadata: typeof body.metadata === "string" ? JSON.parse(body.metadata || "{}") : body.metadata && typeof body.metadata === "object" ? body.metadata : void 0,
230
- scopes: Array.isArray(body.scopes) ? body.scopes.map(String) : void 0
231
- });
232
- if (typeof body.redirectTo === "string" && body.redirectTo.startsWith("http")) {
233
- return c.redirect(body.redirectTo, 303);
234
- }
235
- return c.json(approved);
236
- } catch (error) {
237
- return jsonError(c, 400, error instanceof Error ? error.message : String(error));
238
- }
239
- });
240
- app.post("/auth/token/refresh", async (c) => {
241
- const body = await c.req.json().catch(() => ({}));
242
- try {
243
- return c.json(await runtimeProviders.auth.refreshAccessToken(body));
244
- } catch (error) {
245
- return jsonError(c, 401, error instanceof Error ? error.message : String(error));
246
- }
247
- });
248
- app.get("/auth/me", (c) => {
249
- const unauthorized = requireScope(c, resolved.scopes.authMe);
250
- if (unauthorized) return unauthorized;
251
- return c.json({
252
- ok: true,
253
- payload: c.get("principal")
254
- });
255
- });
256
- app.post("/auth/pat", async (c) => {
257
- const unauthorized = requirePermission(c, "api_tokens:create:self");
258
- if (unauthorized) return unauthorized;
259
- const principal = c.get("principal");
260
- const body = await c.req.json().catch(() => ({}));
261
- if (!body.name?.trim() || !principal) {
262
- return jsonError(c, 400, "Token name is required.");
263
- }
264
- return c.json({
265
- ok: true,
266
- payload: await runtimeProviders.auth.createPersonalAccessToken(principal.id, {
267
- name: body.name.trim(),
268
- scopes: body.scopes,
269
- expiresAt: body.expiresAt ?? null
270
- })
271
- });
272
- });
273
- app.get("/auth/pat", async (c) => {
274
- const unauthorized = requirePermission(c, "api_tokens:read:self");
275
- if (unauthorized) return unauthorized;
276
- const principal = c.get("principal");
277
- if (!principal) return jsonError(c, 401, "Authentication required.");
278
- return c.json({
279
- ok: true,
280
- payload: await runtimeProviders.auth.listPersonalAccessTokens(principal.id)
281
- });
282
- });
283
- app.delete("/auth/pat/:id", async (c) => {
284
- const unauthorized = requirePermission(c, "api_tokens:delete:self");
285
- if (unauthorized) return unauthorized;
286
- const principal = c.get("principal");
287
- if (!principal) return jsonError(c, 401, "Authentication required.");
288
- await runtimeProviders.auth.revokePersonalAccessToken(principal.id, c.req.param("id"));
289
- return c.json({ ok: true });
290
- });
291
- app.post("/auth/admin/users", async (c) => {
292
- const unauthorized = requirePermission(c, "users:manage:global");
293
- if (unauthorized) return unauthorized;
294
- if (!runtimeProviders.auth.createUser) {
295
- return jsonError(c, 501, "User management is unavailable for this auth provider.");
296
- }
297
- const body = await c.req.json().catch(() => ({}));
298
- return c.json({
299
- ok: true,
300
- payload: await runtimeProviders.auth.createUser({
301
- email: body.email ?? null,
302
- displayName: body.displayName ?? null,
303
- metadata: typeof body.metadata === "object" && body.metadata ? body.metadata : {}
304
- })
305
- });
306
- });
307
- app.post("/auth/admin/users/:userId/roles", async (c) => {
308
- const unauthorized = requirePermission(c, "roles:manage:global");
309
- if (unauthorized) return unauthorized;
310
- if (!runtimeProviders.auth.setUserRoles) {
311
- return jsonError(c, 501, "Role management is unavailable for this auth provider.");
312
- }
313
- const body = await c.req.json().catch(() => ({}));
314
- const roles = Array.isArray(body.roles) ? body.roles.map(String) : [];
315
- return c.json({
316
- ok: true,
317
- payload: await runtimeProviders.auth.setUserRoles(c.req.param("userId"), roles)
318
- });
319
- });
320
- }
321
- app.post("/internal/auth/web/sync-user", async (c) => {
322
- if (c.get("actorType") !== "service") {
323
- return jsonError(c, 401, "Trusted service authentication required.");
324
- }
325
- const unauthorized = requirePermission(c, "services:impersonate:global");
326
- if (unauthorized) return unauthorized;
327
- const body = await c.req.json().catch(() => ({}));
328
- return c.json({
329
- ok: true,
330
- payload: await runtimeProviders.auth.syncUserIdentity(body)
331
- });
332
- });
333
- app.post("/internal/auth/web/exchange", async (c) => {
334
- if (c.get("actorType") !== "service") {
335
- return jsonError(c, 401, "Trusted service authentication required.");
336
- }
337
- const unauthorized = requirePermission(c, "services:impersonate:global");
338
- if (unauthorized) return unauthorized;
339
- const body = await c.req.json().catch(() => ({}));
340
- return c.json(await runtimeProviders.auth.exchangeTrustedUserAssertion(body));
341
- });
342
- app.post("/internal/auth/service/token", async (c) => {
343
- const unauthorized = requirePermission(c, "services:manage:global");
344
- if (unauthorized) return unauthorized;
345
- const body = await c.req.json().catch(() => ({}));
346
- if (!body.serviceId?.trim() || !body.name?.trim()) {
347
- return jsonError(c, 400, "serviceId and name are required.");
348
- }
349
- return c.json({
350
- ok: true,
351
- payload: await runtimeProviders.auth.createServiceToken({
352
- serviceId: body.serviceId.trim(),
353
- name: body.name.trim(),
354
- roles: body.roles,
355
- permissions: body.permissions
356
- })
357
- });
358
- });
359
- app.post("/internal/auth/service/rotate", async (c) => {
360
- const unauthorized = requirePermission(c, "services:manage:global");
361
- if (unauthorized) return unauthorized;
362
- const body = await c.req.json().catch(() => ({}));
363
- if (!body.serviceId?.trim()) {
364
- return jsonError(c, 400, "serviceId is required.");
365
- }
366
- return c.json({
367
- ok: true,
368
- payload: await runtimeProviders.auth.rotateServiceToken(body.serviceId.trim())
369
- });
370
- });
371
- if (resolved.surfaces.sdk) {
372
- registerSdkRoutes(app, {
373
- config: resolved.config,
374
- sharedSdk,
375
- scope: resolved.scopes.sdk,
376
- prefix: internalPrefix
377
- });
378
- }
379
- if (resolved.surfaces.operations) {
380
- registerOperationRoutes(app, {
381
- config: resolved.config,
382
- scope: resolved.scopes.operations,
383
- prefix: internalPrefix,
384
- sdk: sharedSdk,
385
- executeOperation: options.workflowExecutor
386
- });
387
- }
388
- for (const extension of options.extensions ?? []) {
389
- const mounted = extension.mount(app, runtime);
390
- if (mounted && typeof mounted.then === "function") {
391
- extensionMounts.push(mounted);
392
- }
393
- }
394
- options.extendApp?.(app, runtime);
395
- if (extensionMounts.length > 0) {
396
- app.use("*", async (_c, next) => {
397
- await Promise.all(extensionMounts);
398
- await next();
399
- });
400
- }
401
- app.notFound((c) => jsonError(c, 404, "Not found."));
402
- return app;
403
- }
404
- function createApiApp(options = {}) {
405
- return createApiRouter(options);
406
- }
407
- export {
408
- createApiApp,
409
- createApiRouter
410
- };
@@ -1,28 +0,0 @@
1
- import type { Context } from 'hono';
2
- import type { ApiPrincipal, ApiScope } from '../../entrypoints/clients/remote.js';
3
- import type { AppVariables } from '../types.js';
4
- export type ApiContext = Context<{
5
- Variables: AppVariables;
6
- }>;
7
- export declare function jsonError(c: Context, status: number, error: string, details?: Record<string, unknown>): Response & import("hono").TypedResponse<{
8
- ok: false;
9
- error: string;
10
- }, never, "json">;
11
- export declare function bearerTokenFromRequest(request: Request): string | null;
12
- export declare function hasScope(principal: ApiPrincipal | null, requiredScope: ApiScope): boolean;
13
- export declare function requireScope(c: ApiContext, requiredScope: ApiScope): (Response & import("hono").TypedResponse<{
14
- ok: false;
15
- error: string;
16
- }, never, "json">) | null;
17
- export declare function requireAuthentication(c: ApiContext): (Response & import("hono").TypedResponse<{
18
- ok: false;
19
- error: string;
20
- }, never, "json">) | null;
21
- export declare function requireActorType(c: ApiContext, actorType: 'anonymous' | 'user' | 'service' | 'project', message?: string): (Response & import("hono").TypedResponse<{
22
- ok: false;
23
- error: string;
24
- }, never, "json">) | null;
25
- export declare function requirePermission(c: ApiContext, permission: string): (Response & import("hono").TypedResponse<{
26
- ok: false;
27
- error: string;
28
- }, never, "json">) | null;
@@ -1,51 +0,0 @@
1
- import { permissionGranted } from "../auth/rbac.js";
2
- function jsonError(c, status, error, details) {
3
- return c.json({
4
- ok: false,
5
- error,
6
- ...details ?? {}
7
- }, { status });
8
- }
9
- function bearerTokenFromRequest(request) {
10
- const header = request.headers.get("authorization");
11
- if (!header) return null;
12
- const match = header.match(/^Bearer\s+(.+)$/i);
13
- return match?.[1] ?? null;
14
- }
15
- function hasScope(principal, requiredScope) {
16
- return Boolean(principal && (principal.scopes.includes(requiredScope) || principal.scopes.includes("*")));
17
- }
18
- function requireScope(c, requiredScope) {
19
- if (!hasScope(c.get("principal"), requiredScope)) {
20
- return jsonError(c, 401, "Authentication required.", { requiredScope });
21
- }
22
- return null;
23
- }
24
- function requireAuthentication(c) {
25
- if (!c.get("principal")) {
26
- return jsonError(c, 401, "Authentication required.");
27
- }
28
- return null;
29
- }
30
- function requireActorType(c, actorType, message = "Trusted service authentication required.") {
31
- if (c.get("actorType") !== actorType) {
32
- return jsonError(c, 401, message);
33
- }
34
- return null;
35
- }
36
- function requirePermission(c, permission) {
37
- const principal = c.get("principal");
38
- if (!principal || !permissionGranted(c.get("permissionGrants"), permission)) {
39
- return jsonError(c, 403, "Permission denied.", { permission });
40
- }
41
- return null;
42
- }
43
- export {
44
- bearerTokenFromRequest,
45
- hasScope,
46
- jsonError,
47
- requireActorType,
48
- requireAuthentication,
49
- requirePermission,
50
- requireScope
51
- };
@@ -1,6 +0,0 @@
1
- import type { RemoteSdkOperationRequest } from '../../entrypoints/clients/remote.js';
2
- import { executeSdkOperation, findSdkOperation, listSdkOperationNames } from '../../entrypoints/models/sdk-dispatch.js';
3
- import type { AgentSdk } from '../../entrypoints/models/sdk.js';
4
- import type { ApiConfig } from '../types.js';
5
- export { executeSdkOperation, findSdkOperation, listSdkOperationNames };
6
- export declare function resolveSdkInstance(sharedSdk: AgentSdk | undefined, config: ApiConfig, request: RemoteSdkOperationRequest): AgentSdk;
@@ -1,14 +0,0 @@
1
- import { executeSdkOperation, findSdkOperation, listSdkOperationNames } from "../../entrypoints/models/sdk-dispatch.js";
2
- import { AgentSdk as AgentSdkClass } from "../../entrypoints/models/sdk.js";
3
- function resolveSdkInstance(sharedSdk, config, request) {
4
- if (!request.repoRoot || request.repoRoot === config.repoRoot) {
5
- return sharedSdk ?? new AgentSdkClass({ repoRoot: config.repoRoot });
6
- }
7
- return new AgentSdkClass({ repoRoot: request.repoRoot });
8
- }
9
- export {
10
- executeSdkOperation,
11
- findSdkOperation,
12
- listSdkOperationNames,
13
- resolveSdkInstance
14
- };
@@ -1,11 +0,0 @@
1
- import type { Hono } from 'hono';
2
- import type { AgentSdk } from '../../entrypoints/models/sdk.js';
3
- import type { ApiConfig } from '../types.js';
4
- interface RegisterSdkRoutesOptions {
5
- config: ApiConfig;
6
- sharedSdk?: AgentSdk;
7
- scope: string;
8
- prefix?: string;
9
- }
10
- export declare function registerSdkRoutes(app: Hono<any>, options: RegisterSdkRoutesOptions): void;
11
- export {};