@treeseed/sdk 0.10.28 → 0.12.4

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 (509) hide show
  1. package/README.md +213 -7
  2. package/dist/agent-capacity.d.ts +916 -0
  3. package/dist/agent-capacity.js +1600 -0
  4. package/dist/agent-tools.d.ts +37 -0
  5. package/dist/agent-tools.js +301 -0
  6. package/dist/api/app.d.ts +1 -1
  7. package/dist/api/auth/d1-database.d.ts +2 -2
  8. package/dist/api/auth/d1-provider.d.ts +4 -4
  9. package/dist/api/auth/d1-store.d.ts +2 -2
  10. package/dist/api/auth/memory-provider.d.ts +1 -1
  11. package/dist/api/auth/tokens.d.ts +1 -1
  12. package/dist/api/config.d.ts +3 -1
  13. package/dist/api/config.js +34 -10
  14. package/dist/api/http.d.ts +2 -2
  15. package/dist/api/index.d.ts +10 -10
  16. package/dist/api/index.js +4 -2
  17. package/dist/api/operations-routes.d.ts +3 -3
  18. package/dist/api/operations.d.ts +1 -1
  19. package/dist/api/providers.d.ts +1 -1
  20. package/dist/api/providers.js +21 -4
  21. package/dist/api/railway.d.ts +3 -2
  22. package/dist/api/sdk-dispatch.d.ts +4 -4
  23. package/dist/api/sdk-routes.d.ts +2 -2
  24. package/dist/api/templates.d.ts +2 -2
  25. package/dist/api/types.d.ts +3 -2
  26. package/dist/capacity-provider.d.ts +118 -59
  27. package/dist/capacity-provider.js +235 -43
  28. package/dist/capacity.d.ts +2 -2
  29. package/dist/cli-tools.d.ts +1 -1
  30. package/dist/content-operations.d.ts +97 -0
  31. package/dist/content-operations.js +250 -0
  32. package/dist/content-store.d.ts +4 -4
  33. package/dist/control-plane-client.d.ts +13 -18
  34. package/dist/control-plane-client.js +8 -86
  35. package/dist/control-plane.d.ts +3 -2
  36. package/dist/control-plane.js +38 -13
  37. package/dist/copilot.d.ts +3 -0
  38. package/dist/copilot.js +16 -1
  39. package/dist/d1-http.d.ts +1 -1
  40. package/dist/d1-store.d.ts +32 -57
  41. package/dist/d1-store.js +115 -318
  42. package/dist/db/d1.d.ts +1 -232
  43. package/dist/db/index.d.ts +3 -3
  44. package/dist/db/market-schema.d.ts +50900 -11018
  45. package/dist/db/market-schema.js +2313 -467
  46. package/dist/db/node-sqlite.d.ts +1 -232
  47. package/dist/db/node-sqlite.js +7 -2
  48. package/dist/db/schema.d.ts +0 -462
  49. package/dist/db/schema.js +2 -22
  50. package/dist/dispatch.d.ts +1 -1
  51. package/dist/dispatch.js +0 -11
  52. package/dist/fixture-support.js +52 -4
  53. package/dist/governance.d.ts +133 -0
  54. package/dist/governance.js +285 -0
  55. package/dist/graph/build.d.ts +2 -2
  56. package/dist/graph/context-query-contracts.d.ts +1 -1
  57. package/dist/graph/dsl.d.ts +1 -1
  58. package/dist/graph/query.d.ts +4 -4
  59. package/dist/graph/ranking.d.ts +1 -1
  60. package/dist/graph/schema.d.ts +1 -1
  61. package/dist/graph.d.ts +11 -11
  62. package/dist/guarantees/index.d.ts +425 -0
  63. package/dist/guarantees/index.js +1146 -0
  64. package/dist/hosting/apps.d.ts +12 -0
  65. package/dist/hosting/apps.js +107 -0
  66. package/dist/hosting/builtins.d.ts +25 -0
  67. package/dist/hosting/builtins.js +602 -0
  68. package/dist/hosting/contracts.d.ts +208 -0
  69. package/dist/hosting/contracts.js +0 -0
  70. package/dist/hosting/graph.d.ts +195 -0
  71. package/dist/hosting/graph.js +1092 -0
  72. package/dist/hosting/index.d.ts +4 -0
  73. package/dist/hosting/index.js +4 -0
  74. package/dist/index.d.ts +88 -67
  75. package/dist/index.js +142 -14
  76. package/dist/local-dev/managed-dev.d.ts +85 -0
  77. package/dist/local-dev/managed-dev.js +368 -0
  78. package/dist/managed-dependencies.d.ts +9 -0
  79. package/dist/managed-dependencies.js +10 -9
  80. package/dist/market-client.d.ts +327 -9
  81. package/dist/market-client.js +464 -20
  82. package/dist/model-registry.d.ts +1 -1
  83. package/dist/model-registry.js +19 -19
  84. package/dist/operations/agent-tools.d.ts +2 -11
  85. package/dist/operations/agent-tools.js +2 -14
  86. package/dist/operations/providers/default.d.ts +1 -1
  87. package/dist/operations/providers/default.js +20 -37
  88. package/dist/operations/repository-operations.d.ts +26 -2
  89. package/dist/operations/repository-operations.js +159 -1
  90. package/dist/operations/runtime.d.ts +3 -3
  91. package/dist/operations/services/bootstrap-runner.d.ts +4 -2
  92. package/dist/operations/services/bootstrap-runner.js +22 -2
  93. package/dist/operations/services/build-warning-policy.d.ts +34 -0
  94. package/dist/operations/services/build-warning-policy.js +81 -82
  95. package/dist/operations/services/commit-message-provider.js +4 -4
  96. package/dist/operations/services/config-runtime.d.ts +83 -24
  97. package/dist/operations/services/config-runtime.js +449 -130
  98. package/dist/operations/services/deploy.d.ts +106 -624
  99. package/dist/operations/services/deploy.js +746 -263
  100. package/dist/operations/services/deployment-readiness.d.ts +30 -0
  101. package/dist/operations/services/deployment-readiness.js +206 -0
  102. package/dist/operations/services/git-remote-policy.js +12 -4
  103. package/dist/operations/services/git-runner.d.ts +66 -0
  104. package/dist/operations/services/git-runner.js +479 -0
  105. package/dist/operations/services/git-workflow.d.ts +45 -6
  106. package/dist/operations/services/git-workflow.js +251 -23
  107. package/dist/operations/services/github-actions-verification.d.ts +4 -1
  108. package/dist/operations/services/github-actions-verification.js +12 -3
  109. package/dist/operations/services/github-api.js +22 -6
  110. package/dist/operations/services/github-automation.d.ts +4 -4
  111. package/dist/operations/services/github-automation.js +19 -21
  112. package/dist/operations/services/github-credentials.d.ts +13 -0
  113. package/dist/operations/services/github-credentials.js +59 -0
  114. package/dist/operations/services/hosted-service-checks.d.ts +81 -0
  115. package/dist/operations/services/hosted-service-checks.js +478 -0
  116. package/dist/operations/services/hosting-audit.d.ts +2 -2
  117. package/dist/operations/services/hosting-audit.js +7 -7
  118. package/dist/operations/services/hub-launch.d.ts +1 -1
  119. package/dist/operations/services/hub-provider-launch.d.ts +5 -5
  120. package/dist/operations/services/hub-provider-launch.js +22 -17
  121. package/dist/operations/services/live-hosted-service-checks.d.ts +26 -0
  122. package/dist/operations/services/live-hosted-service-checks.js +463 -0
  123. package/dist/operations/services/local-dev.js +0 -1
  124. package/dist/operations/services/managed-host-security.d.ts +1 -1
  125. package/dist/operations/services/managed-host-security.js +1 -1
  126. package/dist/operations/services/managed-repositories.d.ts +37 -0
  127. package/dist/operations/services/managed-repositories.js +177 -0
  128. package/dist/operations/services/operations-runner-smoke.d.ts +31 -0
  129. package/dist/operations/services/operations-runner-smoke.js +198 -0
  130. package/dist/operations/services/package-adapters.d.ts +170 -0
  131. package/dist/operations/services/package-adapters.js +859 -0
  132. package/dist/operations/services/package-reference-policy.d.ts +13 -88
  133. package/dist/operations/services/package-reference-policy.js +96 -215
  134. package/dist/operations/services/project-host-operations.d.ts +4 -4
  135. package/dist/operations/services/project-platform.d.ts +57 -173
  136. package/dist/operations/services/project-platform.js +80 -111
  137. package/dist/operations/services/project-web-monitor.d.ts +2 -2
  138. package/dist/operations/services/project-web-monitor.js +122 -5
  139. package/dist/operations/services/railway-api.d.ts +117 -5
  140. package/dist/operations/services/railway-api.js +915 -93
  141. package/dist/operations/services/railway-deploy.d.ts +30 -112
  142. package/dist/operations/services/railway-deploy.js +521 -961
  143. package/dist/operations/services/release-history.js +3 -4
  144. package/dist/operations/services/release-proof-ledger.d.ts +13 -0
  145. package/dist/operations/services/release-proof-ledger.js +81 -0
  146. package/dist/operations/services/release-proof-planner.d.ts +48 -0
  147. package/dist/operations/services/release-proof-planner.js +195 -0
  148. package/dist/operations/services/release-proof-runner.d.ts +16 -0
  149. package/dist/operations/services/release-proof-runner.js +169 -0
  150. package/dist/operations/services/release-proof.d.ts +81 -0
  151. package/dist/operations/services/release-proof.js +79 -0
  152. package/dist/operations/services/repository-save-orchestrator.d.ts +8 -7
  153. package/dist/operations/services/repository-save-orchestrator.js +604 -212
  154. package/dist/operations/services/runtime-paths.d.ts +1 -3
  155. package/dist/operations/services/runtime-paths.js +0 -4
  156. package/dist/operations/services/runtime-tools.d.ts +1 -191
  157. package/dist/operations/services/runtime-tools.js +4 -443
  158. package/dist/operations/services/save-deploy-preflight.js +9 -1
  159. package/dist/operations/services/template-host-bindings.d.ts +2 -2
  160. package/dist/operations/services/template-host-bindings.js +3 -2
  161. package/dist/operations/services/template-registry.d.ts +6 -6
  162. package/dist/operations/services/template-registry.js +33 -14
  163. package/dist/operations/services/template-secret-sync.d.ts +3 -3
  164. package/dist/operations/services/verification-cache.d.ts +25 -0
  165. package/dist/operations/services/verification-cache.js +71 -0
  166. package/dist/operations/services/workflow-timing.d.ts +25 -0
  167. package/dist/operations/services/workflow-timing.js +79 -0
  168. package/dist/operations/services/workspace-dependency-mode.js +50 -5
  169. package/dist/operations/services/workspace-preflight.js +8 -8
  170. package/dist/operations/services/workspace-save-script.d.ts +4 -4
  171. package/dist/operations/services/workspace-save.d.ts +1 -0
  172. package/dist/operations/services/workspace-save.js +42 -19
  173. package/dist/operations/services/workspace-tools.js +42 -7
  174. package/dist/operations-registry.d.ts +1 -1
  175. package/dist/operations-registry.js +5 -6
  176. package/dist/operations-types.d.ts +1 -1
  177. package/dist/operations.d.ts +17 -11
  178. package/dist/operations.js +57 -3
  179. package/dist/platform/book-export.js +2 -0
  180. package/dist/platform/books-data.d.ts +1 -1
  181. package/dist/platform/config.d.ts +27 -0
  182. package/dist/platform/config.js +100 -0
  183. package/dist/platform/content-runtime-source.d.ts +54 -0
  184. package/dist/platform/content-runtime-source.js +169 -0
  185. package/dist/platform/contracts.d.ts +38 -2
  186. package/dist/platform/deploy-config.d.ts +1 -1
  187. package/dist/platform/deploy-config.js +80 -9
  188. package/dist/platform/deploy-runtime.d.ts +1 -1
  189. package/dist/platform/desired-state.d.ts +63 -0
  190. package/dist/platform/desired-state.js +1021 -0
  191. package/dist/platform/env.yaml +568 -45
  192. package/dist/platform/environment.d.ts +3 -2
  193. package/dist/platform/environment.js +122 -21
  194. package/dist/platform/local-content-materialization.d.ts +9 -0
  195. package/dist/platform/local-content-materialization.js +212 -0
  196. package/dist/platform/plugin.d.ts +13 -4
  197. package/dist/platform/plugins/runtime.d.ts +3 -3
  198. package/dist/platform/plugins/runtime.js +62 -1
  199. package/dist/platform/plugins.d.ts +6 -6
  200. package/dist/platform/published-content-pipeline.d.ts +3 -3
  201. package/dist/platform/published-content-pipeline.js +5 -1
  202. package/dist/platform/published-content.d.ts +4 -3
  203. package/dist/platform/site-config-schema.d.ts +1 -0
  204. package/dist/platform/site-config-schema.js +4 -1
  205. package/dist/platform/tenant/runtime-config.d.ts +152 -2
  206. package/dist/platform/tenant-config.d.ts +1 -1
  207. package/dist/platform/utils/site-config-schema.d.ts +154 -0
  208. package/dist/platform/utils/site-config-schema.js +400 -461
  209. package/dist/platform-operation-store.d.ts +1 -1
  210. package/dist/platform-operation-store.js +2 -2
  211. package/dist/platform-operations.js +1 -1
  212. package/dist/plugin-default.d.ts +1 -1
  213. package/dist/plugin-default.js +27 -12
  214. package/dist/project-import.d.ts +91 -0
  215. package/dist/project-import.js +257 -0
  216. package/dist/project-workflow.d.ts +1 -1
  217. package/dist/reconcile/bootstrap-systems.d.ts +2 -2
  218. package/dist/reconcile/bootstrap-systems.js +5 -5
  219. package/dist/reconcile/builtin-adapters.d.ts +7 -1
  220. package/dist/reconcile/builtin-adapters.js +3190 -429
  221. package/dist/reconcile/contracts.d.ts +23 -6
  222. package/dist/reconcile/desired-state.d.ts +2 -192
  223. package/dist/reconcile/desired-state.js +29 -38
  224. package/dist/reconcile/engine.d.ts +61 -395
  225. package/dist/reconcile/engine.js +229 -44
  226. package/dist/reconcile/index.d.ts +10 -8
  227. package/dist/reconcile/index.js +2 -0
  228. package/dist/reconcile/live-acceptance.d.ts +100 -0
  229. package/dist/reconcile/live-acceptance.js +2027 -0
  230. package/dist/reconcile/platform.d.ts +104 -0
  231. package/dist/reconcile/platform.js +100 -0
  232. package/dist/reconcile/providers/docker-private.d.ts +54 -0
  233. package/dist/reconcile/providers/docker-private.js +101 -0
  234. package/dist/reconcile/providers/github-private.d.ts +65 -0
  235. package/dist/reconcile/providers/github-private.js +119 -0
  236. package/dist/reconcile/providers/local-private.d.ts +28 -0
  237. package/dist/reconcile/providers/local-private.js +75 -0
  238. package/dist/reconcile/providers/railway-iac.d.ts +66 -0
  239. package/dist/reconcile/providers/railway-iac.js +275 -0
  240. package/dist/reconcile/providers/release-private.d.ts +92 -0
  241. package/dist/reconcile/providers/release-private.js +152 -0
  242. package/dist/reconcile/registry.d.ts +2 -2
  243. package/dist/reconcile/registry.js +16 -1
  244. package/dist/reconcile/state.d.ts +1 -1
  245. package/dist/reconcile/state.js +7 -44
  246. package/dist/reconcile/units.d.ts +1 -1
  247. package/dist/reconcile/units.js +9 -3
  248. package/dist/remote.d.ts +6 -6
  249. package/dist/scenes/artifacts.d.ts +16 -0
  250. package/dist/scenes/artifacts.js +61 -0
  251. package/dist/scenes/auth.d.ts +2 -0
  252. package/dist/scenes/auth.js +28 -0
  253. package/dist/scenes/base-url.d.ts +12 -0
  254. package/dist/scenes/base-url.js +123 -0
  255. package/dist/scenes/builtin-plugins.d.ts +2 -0
  256. package/dist/scenes/builtin-plugins.js +447 -0
  257. package/dist/scenes/checkpoints.d.ts +14 -0
  258. package/dist/scenes/checkpoints.js +33 -0
  259. package/dist/scenes/device-matrix.d.ts +2 -0
  260. package/dist/scenes/device-matrix.js +97 -0
  261. package/dist/scenes/devices.d.ts +11 -0
  262. package/dist/scenes/devices.js +22 -0
  263. package/dist/scenes/diagnostics.d.ts +5 -0
  264. package/dist/scenes/diagnostics.js +22 -0
  265. package/dist/scenes/diagram-providers.d.ts +2 -0
  266. package/dist/scenes/diagram-providers.js +181 -0
  267. package/dist/scenes/diagram-validation.d.ts +22 -0
  268. package/dist/scenes/diagram-validation.js +74 -0
  269. package/dist/scenes/environment.d.ts +2 -0
  270. package/dist/scenes/environment.js +65 -0
  271. package/dist/scenes/evidence-bundle.d.ts +5 -0
  272. package/dist/scenes/evidence-bundle.js +42 -0
  273. package/dist/scenes/evidence-report.d.ts +10 -0
  274. package/dist/scenes/evidence-report.js +73 -0
  275. package/dist/scenes/evidence.d.ts +16 -0
  276. package/dist/scenes/evidence.js +277 -0
  277. package/dist/scenes/index.d.ts +48 -0
  278. package/dist/scenes/index.js +312 -0
  279. package/dist/scenes/inspect.d.ts +9 -0
  280. package/dist/scenes/inspect.js +64 -0
  281. package/dist/scenes/loader.d.ts +3 -0
  282. package/dist/scenes/loader.js +38 -0
  283. package/dist/scenes/logs.d.ts +2 -0
  284. package/dist/scenes/logs.js +47 -0
  285. package/dist/scenes/operations.d.ts +3 -0
  286. package/dist/scenes/operations.js +128 -0
  287. package/dist/scenes/phase0.d.ts +9 -0
  288. package/dist/scenes/phase0.js +637 -0
  289. package/dist/scenes/planner.d.ts +12 -0
  290. package/dist/scenes/planner.js +166 -0
  291. package/dist/scenes/playwright-adapter.d.ts +2 -0
  292. package/dist/scenes/playwright-adapter.js +63 -0
  293. package/dist/scenes/plugins.d.ts +5 -0
  294. package/dist/scenes/plugins.js +115 -0
  295. package/dist/scenes/progress.d.ts +17 -0
  296. package/dist/scenes/progress.js +24 -0
  297. package/dist/scenes/publish-destinations.d.ts +12 -0
  298. package/dist/scenes/publish-destinations.js +99 -0
  299. package/dist/scenes/publish-plan-report.d.ts +10 -0
  300. package/dist/scenes/publish-plan-report.js +70 -0
  301. package/dist/scenes/publish-plan.d.ts +15 -0
  302. package/dist/scenes/publish-plan.js +248 -0
  303. package/dist/scenes/publish-redaction.d.ts +16 -0
  304. package/dist/scenes/publish-redaction.js +148 -0
  305. package/dist/scenes/publish-release-record.d.ts +13 -0
  306. package/dist/scenes/publish-release-record.js +34 -0
  307. package/dist/scenes/publish-report.d.ts +10 -0
  308. package/dist/scenes/publish-report.js +67 -0
  309. package/dist/scenes/publish.d.ts +16 -0
  310. package/dist/scenes/publish.js +298 -0
  311. package/dist/scenes/registry.d.ts +12 -0
  312. package/dist/scenes/registry.js +65 -0
  313. package/dist/scenes/remotion-adapter.d.ts +3 -0
  314. package/dist/scenes/remotion-adapter.js +94 -0
  315. package/dist/scenes/remotion-composition-registry.d.ts +2 -0
  316. package/dist/scenes/remotion-composition-registry.js +12 -0
  317. package/dist/scenes/remotion-compositions.d.ts +15 -0
  318. package/dist/scenes/remotion-compositions.js +464 -0
  319. package/dist/scenes/remotion-diagrams.d.ts +9 -0
  320. package/dist/scenes/remotion-diagrams.js +188 -0
  321. package/dist/scenes/remotion-input.d.ts +13 -0
  322. package/dist/scenes/remotion-input.js +291 -0
  323. package/dist/scenes/remotion-visuals.d.ts +29 -0
  324. package/dist/scenes/remotion-visuals.js +198 -0
  325. package/dist/scenes/render-media-assets.d.ts +9 -0
  326. package/dist/scenes/render-media-assets.js +117 -0
  327. package/dist/scenes/render-report.d.ts +10 -0
  328. package/dist/scenes/render-report.js +27 -0
  329. package/dist/scenes/render.d.ts +2 -0
  330. package/dist/scenes/render.js +218 -0
  331. package/dist/scenes/reporter.d.ts +3 -0
  332. package/dist/scenes/reporter.js +101 -0
  333. package/dist/scenes/resume.d.ts +2 -0
  334. package/dist/scenes/resume.js +79 -0
  335. package/dist/scenes/runner.d.ts +2 -0
  336. package/dist/scenes/runner.js +674 -0
  337. package/dist/scenes/schema.d.ts +6 -0
  338. package/dist/scenes/schema.js +994 -0
  339. package/dist/scenes/seed.d.ts +2 -0
  340. package/dist/scenes/seed.js +83 -0
  341. package/dist/scenes/segments.d.ts +15 -0
  342. package/dist/scenes/segments.js +79 -0
  343. package/dist/scenes/selectors.d.ts +3 -0
  344. package/dist/scenes/selectors.js +21 -0
  345. package/dist/scenes/timeline.d.ts +11 -0
  346. package/dist/scenes/timeline.js +26 -0
  347. package/dist/scenes/timeouts.d.ts +6 -0
  348. package/dist/scenes/timeouts.js +17 -0
  349. package/dist/scenes/training-captions.d.ts +14 -0
  350. package/dist/scenes/training-captions.js +98 -0
  351. package/dist/scenes/training-report.d.ts +10 -0
  352. package/dist/scenes/training-report.js +78 -0
  353. package/dist/scenes/training-transcript.d.ts +24 -0
  354. package/dist/scenes/training-transcript.js +204 -0
  355. package/dist/scenes/training.d.ts +10 -0
  356. package/dist/scenes/training.js +134 -0
  357. package/dist/scenes/types.d.ts +1872 -0
  358. package/dist/scenes/types.js +8 -0
  359. package/dist/scenes/visual-audit-contact-sheets.d.ts +6 -0
  360. package/dist/scenes/visual-audit-contact-sheets.js +119 -0
  361. package/dist/scenes/visual-audit-fixtures.d.ts +25 -0
  362. package/dist/scenes/visual-audit-fixtures.js +210 -0
  363. package/dist/scenes/visual-audit-report.d.ts +11 -0
  364. package/dist/scenes/visual-audit-report.js +85 -0
  365. package/dist/scenes/visual-audit-review.d.ts +23 -0
  366. package/dist/scenes/visual-audit-review.js +829 -0
  367. package/dist/scenes/visual-audit-routes.d.ts +13 -0
  368. package/dist/scenes/visual-audit-routes.js +308 -0
  369. package/dist/scenes/visual-audit.d.ts +3 -0
  370. package/dist/scenes/visual-audit.js +596 -0
  371. package/dist/scripts/build-dist.js +154 -40
  372. package/dist/scripts/check-build-warnings.js +42 -53
  373. package/dist/scripts/cleanup-markdown.js +1 -1
  374. package/dist/scripts/cli-test-fixtures.js +24 -28
  375. package/dist/scripts/deployment-readiness.js +20 -0
  376. package/dist/scripts/generate-treedx-openapi-types.js +186 -0
  377. package/dist/scripts/migrate-journey-csv-to-guarantees.js +140 -0
  378. package/dist/scripts/operations-runner-smoke.js +16 -0
  379. package/dist/scripts/package-tools.js +12 -1
  380. package/dist/scripts/prepare.js +3 -7
  381. package/dist/scripts/release-verify.js +6 -6
  382. package/dist/scripts/run-fixture-astro-command.js +1 -1
  383. package/dist/scripts/template-catalog.test.js +68 -82
  384. package/dist/scripts/tenant-dev.js +0 -10
  385. package/dist/scripts/tenant-workflow-action.js +10 -1
  386. package/dist/scripts/test-cloudflare-local.js +1 -1
  387. package/dist/scripts/test-scaffold.js +0 -1
  388. package/dist/scripts/test-smoke.js +3 -3
  389. package/dist/scripts/treeseed-build-dist.js +4 -7
  390. package/dist/scripts/treeseed-release-verify.js +1 -1
  391. package/dist/scripts/verify-driver.js +30 -21
  392. package/dist/scripts/workflow-commands.test.js +18 -27
  393. package/dist/scripts/workspace-command-e2e.js +1 -1
  394. package/dist/scripts/workspace-lint.js +6 -0
  395. package/dist/scripts/workspace-release-test.js +90 -1
  396. package/dist/scripts/workspace-test.js +6 -0
  397. package/dist/sdk-dispatch.d.ts +1 -1
  398. package/dist/sdk-dispatch.js +0 -16
  399. package/dist/sdk-fields.d.ts +1 -1
  400. package/dist/sdk-filters.d.ts +1 -1
  401. package/dist/sdk-types.d.ts +1352 -116
  402. package/dist/sdk-types.js +413 -2
  403. package/dist/sdk.d.ts +106 -100
  404. package/dist/sdk.js +211 -51
  405. package/dist/secrets-capability.d.ts +421 -0
  406. package/dist/secrets-capability.js +530 -0
  407. package/dist/seeds/normalize.js +1 -0
  408. package/dist/seeds/planner.js +38 -0
  409. package/dist/seeds/schema.js +293 -4
  410. package/dist/seeds/types.d.ts +60 -0
  411. package/dist/seeds/types.js +9 -1
  412. package/dist/service-credentials.d.ts +54 -0
  413. package/dist/service-credentials.js +112 -0
  414. package/dist/stores/cursor-store.d.ts +2 -2
  415. package/dist/stores/envelopes.d.ts +1 -1
  416. package/dist/stores/helpers.d.ts +1 -1
  417. package/dist/stores/lease-store.d.ts +2 -2
  418. package/dist/stores/message-store.d.ts +2 -2
  419. package/dist/stores/operational-store.d.ts +3 -26
  420. package/dist/stores/operational-store.js +0 -225
  421. package/dist/stores/project-workflow-store.d.ts +2 -2
  422. package/dist/stores/run-store.d.ts +2 -3
  423. package/dist/stores/run-store.js +0 -98
  424. package/dist/stores/subscription-store.d.ts +2 -3
  425. package/dist/stores/subscription-store.js +0 -100
  426. package/dist/template-catalog.d.ts +1 -1
  427. package/dist/template-launch-requirements.d.ts +2 -2
  428. package/dist/template-launch-requirements.js +9 -0
  429. package/dist/template-launch-ui.d.ts +2 -2
  430. package/dist/treedx/adapters.d.ts +6 -0
  431. package/dist/treedx/adapters.js +36 -0
  432. package/dist/treedx/client.d.ts +222 -0
  433. package/dist/treedx/client.js +871 -0
  434. package/dist/treedx/errors.d.ts +13 -0
  435. package/dist/treedx/errors.js +17 -0
  436. package/dist/treedx/federated-client.d.ts +27 -0
  437. package/dist/treedx/federated-client.js +158 -0
  438. package/dist/treedx/generated/openapi-types.d.ts +3558 -0
  439. package/dist/treedx/generated/openapi-types.js +0 -0
  440. package/dist/treedx/graph-adapter.d.ts +33 -0
  441. package/dist/treedx/graph-adapter.js +156 -0
  442. package/dist/treedx/index.d.ts +14 -0
  443. package/dist/treedx/index.js +48 -0
  444. package/dist/treedx/market-integration.d.ts +27 -0
  445. package/dist/treedx/market-integration.js +131 -0
  446. package/dist/treedx/ports.d.ts +166 -0
  447. package/dist/treedx/ports.js +231 -0
  448. package/dist/treedx/query-adapter.d.ts +19 -0
  449. package/dist/treedx/query-adapter.js +62 -0
  450. package/dist/treedx/registry-client.d.ts +11 -0
  451. package/dist/treedx/registry-client.js +19 -0
  452. package/dist/treedx/repository-adapter.d.ts +45 -0
  453. package/dist/treedx/repository-adapter.js +319 -0
  454. package/dist/treedx/sdk-integration.d.ts +27 -0
  455. package/dist/treedx/sdk-integration.js +63 -0
  456. package/dist/treedx/types.d.ts +1084 -0
  457. package/dist/treedx/types.js +8 -0
  458. package/dist/treedx/workspace-adapter.d.ts +27 -0
  459. package/dist/treedx/workspace-adapter.js +65 -0
  460. package/dist/treedx-backends.d.ts +220 -0
  461. package/dist/treedx-backends.js +634 -0
  462. package/dist/treedx-client.d.ts +89 -0
  463. package/dist/treedx-client.js +184 -0
  464. package/dist/treeseed/services/compose.yml +2 -3
  465. package/dist/treeseed/template-catalog/catalog.fixture.json +27 -27
  466. package/dist/types/agents.d.ts +256 -0
  467. package/dist/types/agents.js +42 -1
  468. package/dist/verification.d.ts +1 -0
  469. package/dist/verification.js +143 -14
  470. package/dist/workflow/operations.d.ts +580 -523
  471. package/dist/workflow/operations.js +2084 -1279
  472. package/dist/workflow/policy.js +19 -7
  473. package/dist/workflow/runs.d.ts +9 -3
  474. package/dist/workflow/runs.js +66 -26
  475. package/dist/workflow/session.d.ts +4 -1
  476. package/dist/workflow/session.js +50 -10
  477. package/dist/workflow/worktrees.d.ts +6 -2
  478. package/dist/workflow/worktrees.js +98 -15
  479. package/dist/workflow-state.d.ts +17 -4
  480. package/dist/workflow-state.js +68 -41
  481. package/dist/workflow-support.d.ts +26 -17
  482. package/dist/workflow-support.js +84 -24
  483. package/dist/workflow.d.ts +51 -16
  484. package/dist/workflow.js +19 -7
  485. package/drizzle/d1/0000_treeseed_d1.sql +0 -18
  486. package/drizzle/market/0000_market_control_plane.sql +1793 -1499
  487. package/drizzle/market/0004_treedx_market_integration.sql +99 -0
  488. package/drizzle/market/0005_agent_capacity_coordination.sql +145 -0
  489. package/drizzle/market/0006_provider_assignment_lifecycle.sql +9 -0
  490. package/drizzle/market/0007_agent_architecture_gap_closure.sql +157 -0
  491. package/drizzle/market/0008_agent_capacity_operational_closure.sql +27 -0
  492. package/drizzle/market/0009_agent_capacity_runtime_hardening.sql +29 -0
  493. package/drizzle/market/0010_secrets_capability_persistence.sql +130 -0
  494. package/drizzle/market/0011_github_app_adapter.sql +47 -0
  495. package/drizzle/market/0012_workday_test_runs.sql +44 -0
  496. package/drizzle/market/0013_runtime_task_lifecycle.sql +39 -0
  497. package/drizzle/market/0014_governance_pipeline.sql +189 -0
  498. package/package.json +106 -18
  499. package/scripts/{verify-driver.mjs → verify-driver.ts} +19 -4
  500. package/templates/github/deploy-web.workflow.yml +49 -12
  501. package/dist/operations/services/mailpit-runtime.d.ts +0 -20
  502. package/dist/operations/services/mailpit-runtime.js +0 -67
  503. package/dist/operations/services/release-candidate.d.ts +0 -41
  504. package/dist/operations/services/release-candidate.js +0 -616
  505. package/dist/scripts/ensure-mailpit.js +0 -48
  506. package/dist/scripts/logs-mailpit.js +0 -2
  507. package/dist/scripts/run-ts.js +0 -45
  508. package/dist/scripts/stop-mailpit.js +0 -5
  509. package/dist/scripts/treeseed-run-ts.js +0 -45
@@ -1,9 +1,9 @@
1
1
  entries:
2
- GH_TOKEN:
2
+ TREESEED_GITHUB_TOKEN:
3
3
  label: GitHub access token
4
4
  group: auth
5
- description: Personal access token used by Treeseed for GitHub CLI automation, repository setup, CI secret sync, and GitHub Copilot SDK-backed workflows.
6
- howToGet: "Create a GitHub fine-grained personal access token scoped to the TreeSeed repository. Required repository permissions: Contents read/write, Environments read/write, Secrets and variables read/write, Actions and workflows read/write, Pull requests read/write, Issues read/write. Then paste it here as GH_TOKEN."
5
+ description: Personal access token used by Treeseed for GitHub CLI automation, repository setup, CI secret sync, and repository-scoped GitHub workflows.
6
+ howToGet: "Create a GitHub fine-grained personal access token scoped to the TreeSeed repository. Required repository permissions: Contents read/write, Environments read/write, Secrets and variables read/write, Actions and workflows read/write, Pull requests read/write, Issues read/write. Then paste it here as TREESEED_GITHUB_TOKEN."
7
7
  sensitivity: secret
8
8
  targets:
9
9
  - local-runtime
@@ -23,15 +23,87 @@ entries:
23
23
  sourcePriority:
24
24
  - machine-config
25
25
  - process-env
26
- RAILWAY_API_TOKEN:
26
+ TREESEED_GITHUB_COPILOT_TOKEN:
27
+ label: GitHub Copilot access token
28
+ group: auth
29
+ description: Account-scoped GitHub token used only by Treeseed GitHub Copilot SDK-backed execution providers.
30
+ howToGet: "Create a GitHub fine-grained personal access token for the account with an active Copilot subscription. Enable the Copilot Requests permission, then store it as TREESEED_GITHUB_COPILOT_TOKEN. If omitted, the Copilot adapter can fall back to TREESEED_GITHUB_TOKEN for compatibility."
31
+ sensitivity: secret
32
+ targets:
33
+ - local-runtime
34
+ - github-secret
35
+ - railway-secret
36
+ scopes:
37
+ - local
38
+ - staging
39
+ - prod
40
+ storage: scoped
41
+ requirement: optional
42
+ purposes:
43
+ - config
44
+ validation:
45
+ kind: nonempty
46
+ minLength: 8
47
+ sourcePriority:
48
+ - machine-config
49
+ - process-env
50
+ TREESEED_DOCKERHUB_USERNAME:
51
+ label: Docker Hub username
52
+ group: docker
53
+ description: Docker Hub username used by Treeseed package release workflows to publish container images such as treeseed/treedx and treeseed/treedx-profiler.
54
+ howToGet: Use the Docker Hub account or organization user that owns the Treeseed images.
55
+ sensitivity: plain
56
+ targets:
57
+ - local-runtime
58
+ - github-variable
59
+ scopes:
60
+ - staging
61
+ - prod
62
+ storage: shared
63
+ requirement: optional
64
+ purposes:
65
+ - deploy
66
+ - config
67
+ validation:
68
+ kind: nonempty
69
+ sourcePriority:
70
+ - machine-config
71
+ - process-env
72
+ TREESEED_DOCKERHUB_TOKEN:
73
+ label: Docker Hub token
74
+ group: docker
75
+ description: Docker Hub access token used by Treeseed production release workflows to publish semantic TreeDX service and profiler images.
76
+ howToGet: Create a Docker Hub access token with permission to push the Treeseed images, then store it through Treeseed config as TREESEED_DOCKERHUB_TOKEN.
77
+ sensitivity: secret
78
+ targets:
79
+ - local-runtime
80
+ - github-secret
81
+ scopes:
82
+ - staging
83
+ - prod
84
+ storage: shared
85
+ requirement: optional
86
+ purposes:
87
+ - deploy
88
+ - config
89
+ validation:
90
+ kind: nonempty
91
+ minLength: 8
92
+ sourcePriority:
93
+ - machine-config
94
+ - process-env
95
+ TREESEED_RAILWAY_API_TOKEN:
27
96
  label: Railway API token
28
97
  group: auth
29
98
  description: Account-level Railway API token used by Treeseed to provision, reconcile, deploy, and inspect Market Railway services.
30
- howToGet: Create a Railway account API token with access to the Treeseed Market project/workspace, then store it through Treeseed config as RAILWAY_API_TOKEN.
99
+ howToGet: Create a Railway account API token with access to the Treeseed Market project/workspace, then store it through Treeseed config as TREESEED_RAILWAY_API_TOKEN.
31
100
  sensitivity: secret
32
101
  targets:
33
102
  - local-runtime
34
103
  - github-secret
104
+ - railway-secret
105
+ serviceTargets:
106
+ - operationsRunner
35
107
  scopes:
36
108
  - local
37
109
  - staging
@@ -49,6 +121,56 @@ entries:
49
121
  - process-env
50
122
  relevanceRef: railwayManagedEnabled
51
123
  requiredWhenRef: railwayManagedEnabled
124
+ TREESEED_RAILWAY_WORKSPACE:
125
+ label: Railway workspace
126
+ group: railway
127
+ description: Railway workspace Treeseed should use when listing or creating projects during bootstrap and config reconciliation.
128
+ howToGet: In Railway, use the workspace slug or name shown in the workspace switcher.
129
+ sensitivity: plain
130
+ targets:
131
+ - local-runtime
132
+ - github-variable
133
+ - railway-var
134
+ scopes:
135
+ - staging
136
+ - prod
137
+ storage: shared
138
+ requirement: optional
139
+ purposes:
140
+ - deploy
141
+ - destroy
142
+ - config
143
+ validation:
144
+ kind: nonempty
145
+ sourcePriority:
146
+ - machine-config
147
+ - process-env
148
+ relevanceRef: railwayManagedEnabled
149
+ requiredWhenRef: railwayManagedEnabled
150
+ TREESEED_RAILWAY_PROJECT_ID:
151
+ label: Railway project ID
152
+ group: hosting
153
+ visibility: system
154
+ description: Railway project identifier used by hosted deploy workflows and reconciliation helpers for the active environment.
155
+ howToGet: Treeseed can derive or persist this after Railway project reconciliation. Override it only when targeting a known Railway project ID.
156
+ sensitivity: plain
157
+ targets:
158
+ - github-variable
159
+ - railway-var
160
+ scopes:
161
+ - staging
162
+ - prod
163
+ storage: scoped
164
+ requirement: optional
165
+ purposes:
166
+ - deploy
167
+ - config
168
+ validation:
169
+ kind: nonempty
170
+ sourcePriority:
171
+ - machine-config
172
+ - process-env
173
+ relevanceRef: railwayManagedEnabled
52
174
  TREESEED_GITHUB_OWNER:
53
175
  label: GitHub repository owner
54
176
  group: github
@@ -113,11 +235,11 @@ entries:
113
235
  - machine-config
114
236
  - process-env
115
237
  defaultValueRef: githubRepositoryVisibilityDefault
116
- CLOUDFLARE_API_TOKEN:
238
+ TREESEED_CLOUDFLARE_API_TOKEN:
117
239
  label: Cloudflare API token
118
240
  group: auth
119
- description: Account-level Cloudflare API token used by Wrangler, Workers AI, and CI to manage Pages, Workers, Workers KV, D1, Queues, DNS, secrets, and deploys.
120
- howToGet: "Create a Cloudflare account-level API token scoped to the target domain and account. Required permissions: Account Cloudflare Pages edit, Account Workers Scripts edit, Account Workers KV Storage edit, Account D1 edit, Account Queues edit, Zone DNS edit, Workers AI Read, and Workers AI Edit for model execution. If TREESEED_COMMIT_AI_GATEWAY_ID is configured, also grant AI Gateway Read/Run access for the gateway. Then paste it here as CLOUDFLARE_API_TOKEN."
241
+ description: Account-level Cloudflare API token used by Wrangler, Workers AI, and CI to manage Pages, Workers, Workers KV, D1, R2, Queues, Turnstile, DNS, cache settings, secrets, and deploys.
242
+ howToGet: "Create a Cloudflare account-level API token scoped to the target account and domain. Account permissions: Pages Write, Workers Scripts Write, Workers KV Storage Write, Workers R2 Storage Write, D1 Write, Queues Write, Turnstile Sites Write, Account Rulesets Write, and Account Rule Lists Write. Zone permissions for the target domain: Zone Read, DNS Write, Cache Settings Write, and SSL and Certificates Write. Cloudflare API docs may call Cache Settings Write the Cache Rules permission and Account Rule Lists Write the Account Filter Lists permission. If TREESEED_COMMIT_AI_GATEWAY_ID or Workers AI model execution is configured, also grant AI Gateway Run and Workers AI Write. Then paste it here as TREESEED_CLOUDFLARE_API_TOKEN."
121
243
  sensitivity: secret
122
244
  targets:
123
245
  - local-runtime
@@ -139,7 +261,7 @@ entries:
139
261
  sourcePriority:
140
262
  - machine-config
141
263
  - process-env
142
- CLOUDFLARE_ACCOUNT_ID:
264
+ TREESEED_CLOUDFLARE_ACCOUNT_ID:
143
265
  label: Cloudflare account ID
144
266
  group: cloudflare
145
267
  description: Identifies the Cloudflare account Treeseed should provision, deploy into, and use for Workers AI commit message generation.
@@ -169,7 +291,7 @@ entries:
169
291
  TREESEED_CLOUDFLARE_PAGES_PROJECT_NAME:
170
292
  label: Cloudflare Pages project name
171
293
  group: cloudflare
172
- description: Production Pages project used for the Treeseed web deployment.
294
+ description: Static Cloudflare Pages project used for all Treeseed web environments.
173
295
  howToGet: Treeseed can default this from the site slug. Override it if the Cloudflare Pages project should use a different name.
174
296
  sensitivity: plain
175
297
  targets:
@@ -190,10 +312,10 @@ entries:
190
312
  - process-env
191
313
  defaultValueRef: pagesProjectNameDefault
192
314
  TREESEED_CLOUDFLARE_PAGES_PREVIEW_PROJECT_NAME:
193
- label: Cloudflare staging Pages project
315
+ label: Cloudflare preview Pages project
194
316
  group: cloudflare
195
- description: Staging Pages project used for non-production Treeseed web deployments.
196
- howToGet: Treeseed can default this from the production Pages project name with a -staging suffix.
317
+ description: Legacy alias for the shared Cloudflare Pages project used by non-production branch deployments. Do not configure a separate project per environment.
318
+ howToGet: Treeseed defaults this to TREESEED_CLOUDFLARE_PAGES_PROJECT_NAME so staging deploys use the shared Pages project preview environment.
197
319
  sensitivity: plain
198
320
  targets:
199
321
  - local-runtime
@@ -303,7 +425,7 @@ entries:
303
425
  validation:
304
426
  kind: enum
305
427
  values:
306
- - market_control_plane
428
+ - treeseed_control_plane
307
429
  - hosted_project
308
430
  - self_hosted_project
309
431
  sourcePriority:
@@ -340,10 +462,10 @@ entries:
340
462
  - treeseed.site.yaml
341
463
  defaultValueRef: hostingRegistrationDefault
342
464
  TREESEED_CENTRAL_MARKET_API_BASE_URL:
343
- label: Treeseed central market API base URL
465
+ label: Treeseed central API base URL
344
466
  group: hosting
345
467
  description: Base URL for the always-available central TreeSeed market used when no team-specific specialized market is selected.
346
- howToGet: The production TreeSeed market defaults to https://api.treeseed.ai. Set this only when an environment should use another central-compatible market endpoint.
468
+ howToGet: The production TreeSeed market defaults to https://api.treeseed.dev. Set this only when an environment should use another central-compatible market endpoint.
347
469
  sensitivity: plain
348
470
  targets:
349
471
  - github-variable
@@ -364,11 +486,11 @@ entries:
364
486
  - process-env
365
487
  - treeseed.site.yaml
366
488
  defaultValueRef: centralMarketBaseUrlDefault
367
- TREESEED_MARKET_API_BASE_URL:
368
- label: Treeseed default market API base URL
489
+ TREESEED_API_BASE_URL:
490
+ label: Treeseed default API base URL
369
491
  group: hosting
370
492
  description: Primary market control-plane API URL used by hosted and optionally registered self-hosted project platforms.
371
- howToGet: The production TreeSeed market defaults to https://api.treeseed.ai. Set this to a staging, enterprise, or specialized market endpoint when that environment should register with a different market.
493
+ howToGet: The production TreeSeed market defaults to https://api.treeseed.dev. Set this to a staging, enterprise, or specialized market endpoint when that environment should register with a different market.
372
494
  sensitivity: plain
373
495
  targets:
374
496
  - github-variable
@@ -390,20 +512,22 @@ entries:
390
512
  relevanceRef: projectRegistrationEnabled
391
513
  requiredWhenRef: projectRegistrationEnabled
392
514
  defaultValueRef: marketBaseUrlDefault
393
- TREESEED_MARKET_DATABASE_URL:
394
- label: Market PostgreSQL database URL
515
+ TREESEED_DATABASE_URL:
516
+ label: Treeseed PostgreSQL database URL
395
517
  group: hosting
396
- cluster: hosting:market-control-plane
518
+ cluster: hosting:treeseed-control-plane
397
519
  visibility: system
398
- description: Railway PostgreSQL connection URL for Market control-plane tables. Browser/UI code must never receive this value.
399
- howToGet: Provision the managed Market PostgreSQL resource through Treeseed/Railway reconciliation and store the generated connection URL as a service secret.
520
+ description: PostgreSQL connection URL for Treeseed control-plane tables. Local development derives this from the managed local API Postgres configuration; hosted environments receive the reconciled Railway PostgreSQL connection URL. Browser/UI code must never receive this value.
521
+ howToGet: For local development, Treeseed derives this from the local API Postgres port and database defaults. For staging and production, provision the managed Treeseed PostgreSQL resource through Treeseed/Railway reconciliation and store the generated connection URL as a service secret.
400
522
  sensitivity: secret
401
523
  targets:
524
+ - local-runtime
402
525
  - railway-secret
403
526
  serviceTargets:
404
527
  - api
405
- - marketOperationsRunner
528
+ - operationsRunner
406
529
  scopes:
530
+ - local
407
531
  - staging
408
532
  - prod
409
533
  storage: scoped
@@ -414,27 +538,30 @@ entries:
414
538
  validation:
415
539
  kind: url
416
540
  sourcePriority:
541
+ - generated
417
542
  - machine-config
418
543
  - process-env
419
544
  - treeseed.site.yaml
545
+ localDefaultValueRef: localApiDatabaseUrlDefault
420
546
  TREESEED_PLATFORM_RUNNER_SECRET:
421
- label: Market operations runner secret
547
+ label: Treeseed operations runner secret
422
548
  group: hosting
423
- cluster: hosting:market-operations-runner
549
+ cluster: hosting:operations-runner
424
550
  visibility: system
425
- description: Bearer credential used only by the TreeSeed-owned Market operations runner to claim and update platform operation jobs.
551
+ description: Bearer credential used only by the TreeSeed-owned Treeseed operations runner to claim and update platform operation jobs.
426
552
  howToGet: Generate a strong secret with `openssl rand -base64 48` and store it through `treeseed config` for staging and production.
427
553
  sensitivity: secret
428
554
  targets:
555
+ - github-secret
429
556
  - railway-secret
430
557
  serviceTargets:
431
558
  - api
432
- - marketOperationsRunner
559
+ - operationsRunner
433
560
  scopes:
434
561
  - staging
435
562
  - prod
436
563
  storage: scoped
437
- requirement: conditional
564
+ requirement: optional
438
565
  purposes:
439
566
  - deploy
440
567
  - config
@@ -446,17 +573,17 @@ entries:
446
573
  - process-env
447
574
  defaultValueRef: generatedSecret
448
575
  TREESEED_PLATFORM_RUNNER_ID:
449
- label: Market operations runner ID
576
+ label: Treeseed operations runner ID
450
577
  group: hosting
451
- cluster: hosting:market-operations-runner
578
+ cluster: hosting:operations-runner
452
579
  visibility: system
453
- description: Stable identity for the TreeSeed-owned Market operations runner service in each environment.
580
+ description: Stable identity for the TreeSeed-owned Treeseed operations runner service in each environment.
454
581
  howToGet: Treeseed derives this from the environment. Override it only when replacing a runner identity deliberately.
455
582
  sensitivity: plain
456
583
  targets:
457
584
  - railway-var
458
585
  serviceTargets:
459
- - marketOperationsRunner
586
+ - operationsRunner
460
587
  scopes:
461
588
  - staging
462
589
  - prod
@@ -473,17 +600,17 @@ entries:
473
600
  - treeseed.site.yaml
474
601
  defaultValueRef: platformRunnerIdDefault
475
602
  TREESEED_PLATFORM_RUNNER_DATA_DIR:
476
- label: Market operations runner data directory
603
+ label: Treeseed operations runner data directory
477
604
  group: hosting
478
- cluster: hosting:market-operations-runner
605
+ cluster: hosting:operations-runner
479
606
  visibility: system
480
- description: Writable data directory mounted into the Market operations runner for repository workspaces and operation state.
607
+ description: Writable data directory mounted into the Treeseed operations runner for repository workspaces and operation state.
481
608
  howToGet: Use `/data` for Railway runner services with an attached volume.
482
609
  sensitivity: plain
483
610
  targets:
484
611
  - railway-var
485
612
  serviceTargets:
486
- - marketOperationsRunner
613
+ - operationsRunner
487
614
  scopes:
488
615
  - staging
489
616
  - prod
@@ -500,17 +627,17 @@ entries:
500
627
  - treeseed.site.yaml
501
628
  defaultValueRef: platformRunnerDataDirDefault
502
629
  TREESEED_PLATFORM_RUNNER_ENVIRONMENT:
503
- label: Market operations runner environment
630
+ label: Treeseed operations runner environment
504
631
  group: hosting
505
- cluster: hosting:market-operations-runner
632
+ cluster: hosting:operations-runner
506
633
  visibility: system
507
- description: Runtime environment label reported by the Market operations runner in registration and heartbeat records.
634
+ description: Runtime environment label reported by the Treeseed operations runner in registration and heartbeat records.
508
635
  howToGet: Treeseed derives this from the selected environment.
509
636
  sensitivity: plain
510
637
  targets:
511
638
  - railway-var
512
639
  serviceTargets:
513
- - marketOperationsRunner
640
+ - operationsRunner
514
641
  scopes:
515
642
  - staging
516
643
  - prod
@@ -526,11 +653,186 @@ entries:
526
653
  - process-env
527
654
  - treeseed.site.yaml
528
655
  defaultValueRef: platformRunnerEnvironmentDefault
656
+ TREESEED_CREDENTIAL_SESSION_SECRET:
657
+ label: Treeseed credential session secret
658
+ group: hosting
659
+ cluster: hosting:treeseed-control-plane
660
+ visibility: system
661
+ description: Secret used by the API and operations runner to encrypt provider credential session payloads.
662
+ howToGet: Generate a strong random secret and store it through `treeseed config` for staging and production.
663
+ sensitivity: secret
664
+ targets:
665
+ - github-secret
666
+ - railway-secret
667
+ serviceTargets:
668
+ - api
669
+ - operationsRunner
670
+ scopes:
671
+ - staging
672
+ - prod
673
+ storage: scoped
674
+ requirement: conditional
675
+ purposes:
676
+ - deploy
677
+ - config
678
+ validation:
679
+ kind: nonempty
680
+ minLength: 24
681
+ sourcePriority:
682
+ - machine-config
683
+ - process-env
684
+ defaultValueRef: generatedSecret
685
+ TREESEED_STRIPE_SECRET_KEY:
686
+ label: Stripe platform secret key
687
+ group: commerce
688
+ cluster: hosting:treeseed-control-plane
689
+ visibility: system
690
+ description: Platform Stripe secret key used only by the API for Connect onboarding, Product/Price mirror sync, PaymentIntent confirmation, subscriptions, webhook reconciliation, and connected-account refunds.
691
+ howToGet: "Stripe Dashboard -> Developers -> API keys. Use test mode first. Prefer a restricted key when available with access for Connect accounts, account links, login links, Products, Prices, PaymentIntents, Customers, Subscriptions, Refunds, and webhook event reads as needed. Store with `npx trsd config set TREESEED_STRIPE_SECRET_KEY --environment local|staging|prod`; never place Stripe secret keys in plaintext env files and never request vendor-provided Stripe secret keys."
692
+ sensitivity: secret
693
+ targets:
694
+ - local-runtime
695
+ - railway-secret
696
+ serviceTargets:
697
+ - api
698
+ scopes:
699
+ - local
700
+ - staging
701
+ - prod
702
+ storage: scoped
703
+ requirement: optional
704
+ purposes:
705
+ - deploy
706
+ - config
707
+ validation:
708
+ kind: nonempty
709
+ sourcePriority:
710
+ - machine-config
711
+ - process-env
712
+ TREESEED_STRIPE_PUBLISHABLE_KEY:
713
+ label: Stripe publishable key
714
+ group: commerce
715
+ cluster: hosting:treeseed-control-plane
716
+ visibility: system
717
+ description: Platform Stripe publishable key returned by `/v1/commerce/stripe/config` for root-market Stripe Elements checkout surfaces. Admin must not initialize Stripe Elements.
718
+ howToGet: "Stripe Dashboard -> Developers -> API keys. Copy the publishable key for the same test/live mode as TREESEED_STRIPE_SECRET_KEY and store it with `npx trsd config set TREESEED_STRIPE_PUBLISHABLE_KEY --environment local|staging|prod`."
719
+ sensitivity: plain
720
+ targets:
721
+ - local-runtime
722
+ - railway-var
723
+ - config-file
724
+ serviceTargets:
725
+ - api
726
+ scopes:
727
+ - local
728
+ - staging
729
+ - prod
730
+ storage: shared
731
+ requirement: optional
732
+ purposes:
733
+ - deploy
734
+ - config
735
+ validation:
736
+ kind: nonempty
737
+ sourcePriority:
738
+ - machine-config
739
+ - process-env
740
+ - treeseed.site.yaml
741
+ TREESEED_STRIPE_WEBHOOK_SECRET:
742
+ label: Stripe webhook signing secret
743
+ group: commerce
744
+ cluster: hosting:treeseed-control-plane
745
+ visibility: system
746
+ description: Stripe webhook endpoint signing secret used by the API to verify connected-account payment and subscription events.
747
+ howToGet: "Stripe Dashboard -> Developers -> Webhooks. Add endpoint `<TREESEED_API_BASE_URL>/v1/commerce/webhooks/stripe`; for local development use the Stripe CLI to forward to the local API. Subscribe to payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled, customer.subscription.created, customer.subscription.updated, customer.subscription.deleted, invoice.payment_succeeded, and invoice.payment_failed. Copy the signing secret and store it with `npx trsd config set TREESEED_STRIPE_WEBHOOK_SECRET --environment local|staging|prod`."
748
+ sensitivity: secret
749
+ targets:
750
+ - local-runtime
751
+ - railway-secret
752
+ serviceTargets:
753
+ - api
754
+ scopes:
755
+ - local
756
+ - staging
757
+ - prod
758
+ storage: scoped
759
+ requirement: optional
760
+ purposes:
761
+ - deploy
762
+ - config
763
+ validation:
764
+ kind: nonempty
765
+ sourcePriority:
766
+ - machine-config
767
+ - process-env
768
+ TREESEED_STRIPE_MODE:
769
+ label: Stripe mode
770
+ group: commerce
771
+ cluster: hosting:treeseed-control-plane
772
+ visibility: system
773
+ description: Stripe environment mode used by marketplace seller onboarding, mirror sync, checkout, webhooks, subscriptions, and refunds. Defaults to test for local and staging.
774
+ howToGet: "Set `test` for local and staging with `npx trsd config set TREESEED_STRIPE_MODE test --environment local|staging`. Set `live` in production only after Connect onboarding, webhook verification, local/staging marketplace acceptance, and Stripe production readiness are complete."
775
+ sensitivity: plain
776
+ targets:
777
+ - local-runtime
778
+ - railway-var
779
+ - config-file
780
+ serviceTargets:
781
+ - api
782
+ scopes:
783
+ - local
784
+ - staging
785
+ - prod
786
+ storage: shared
787
+ requirement: optional
788
+ purposes:
789
+ - deploy
790
+ - config
791
+ validation:
792
+ kind: enum
793
+ values:
794
+ - test
795
+ - live
796
+ sourcePriority:
797
+ - machine-config
798
+ - process-env
799
+ - treeseed.site.yaml
800
+ TREESEED_STRIPE_CONNECT_ACCOUNT_TYPE:
801
+ label: Stripe Connect account type
802
+ group: commerce
803
+ cluster: hosting:treeseed-control-plane
804
+ visibility: system
805
+ description: Canonical Stripe Connect account model for approved vendor onboarding. TreeSeed creates hosted onboarding links and vendors never provide raw Stripe secret keys.
806
+ howToGet: "Keep this set to `express` with `npx trsd config set TREESEED_STRIPE_CONNECT_ACCOUNT_TYPE express --environment local|staging|prod` unless a future documented phase changes the Connect account model."
807
+ sensitivity: plain
808
+ targets:
809
+ - local-runtime
810
+ - railway-var
811
+ - config-file
812
+ serviceTargets:
813
+ - api
814
+ scopes:
815
+ - local
816
+ - staging
817
+ - prod
818
+ storage: shared
819
+ requirement: optional
820
+ purposes:
821
+ - deploy
822
+ - config
823
+ validation:
824
+ kind: enum
825
+ values:
826
+ - express
827
+ sourcePriority:
828
+ - machine-config
829
+ - process-env
830
+ - treeseed.site.yaml
529
831
  TREESEED_CATALOG_MARKET_API_BASE_URLS:
530
- label: Treeseed catalog market API URLs
832
+ label: Treeseed catalog API URLs
531
833
  group: hosting
532
- description: Comma-separated market API base URLs that contribute templates, knowledge packs, and shared resources to the integrated catalog.
533
- howToGet: Start with the production TreeSeed market at https://api.treeseed.ai and add specialized team or enterprise market API URLs as needed.
834
+ description: Comma-separated API base URLs that contribute templates, knowledge packs, and shared resources to the integrated catalog.
835
+ howToGet: Start with the production TreeSeed market at https://api.treeseed.dev and add specialized team or enterprise API URLs as needed.
534
836
  sensitivity: plain
535
837
  targets:
536
838
  - github-variable
@@ -601,3 +903,224 @@ entries:
601
903
  relevanceRef: projectRegistrationEnabled
602
904
  requiredWhenRef: projectRegistrationEnabled
603
905
  defaultValueRef: hostingProjectIdDefault
906
+ TREESEED_SECRET_CAPABILITY_PROOF_REPO:
907
+ label: Secret capability proof repository
908
+ group: secrets-capability
909
+ description: GitHub repository slug used by guarded secret-capability live proof planning.
910
+ howToGet: Set to owner/name for a dedicated test repository when running the optional plan-only live proof.
911
+ sensitivity: plain
912
+ targets:
913
+ - local-runtime
914
+ scopes:
915
+ - local
916
+ - staging
917
+ - prod
918
+ storage: scoped
919
+ requirement: optional
920
+ purposes:
921
+ - dev
922
+ - config
923
+ validation:
924
+ kind: nonempty
925
+ sourcePriority:
926
+ - machine-config
927
+ - process-env
928
+ TREESEED_SECRET_CAPABILITY_PROOF_WORKFLOW:
929
+ label: Secret capability proof workflow
930
+ group: secrets-capability
931
+ description: Workflow file name used by guarded secret-capability live proof planning.
932
+ howToGet: Set to the allowlisted workflow file in the proof repository, such as secret-capability-proof.yml.
933
+ sensitivity: plain
934
+ targets:
935
+ - local-runtime
936
+ scopes:
937
+ - local
938
+ - staging
939
+ - prod
940
+ storage: scoped
941
+ requirement: optional
942
+ purposes:
943
+ - dev
944
+ - config
945
+ validation:
946
+ kind: nonempty
947
+ sourcePriority:
948
+ - machine-config
949
+ - process-env
950
+ TREESEED_SECRET_CAPABILITY_PROOF_REF:
951
+ label: Secret capability proof ref
952
+ group: secrets-capability
953
+ description: Branch or ref used by guarded secret-capability live proof planning.
954
+ howToGet: Set to the protected branch or ref used for the plan-only proof.
955
+ sensitivity: plain
956
+ targets:
957
+ - local-runtime
958
+ scopes:
959
+ - local
960
+ - staging
961
+ - prod
962
+ storage: scoped
963
+ requirement: optional
964
+ purposes:
965
+ - dev
966
+ - config
967
+ validation:
968
+ kind: nonempty
969
+ sourcePriority:
970
+ - machine-config
971
+ - process-env
972
+ TREESEED_CAPACITY_ACCEPTANCE_API_URL:
973
+ label: Capacity acceptance API URL
974
+ group: capacity-provider
975
+ description: Market API base URL used by live capacity runtime acceptance proof.
976
+ howToGet: Set to the staging or local API base URL when running capacity provider live acceptance.
977
+ sensitivity: plain
978
+ targets:
979
+ - local-runtime
980
+ scopes:
981
+ - local
982
+ - staging
983
+ - prod
984
+ storage: scoped
985
+ requirement: optional
986
+ purposes:
987
+ - dev
988
+ - config
989
+ validation:
990
+ kind: url
991
+ sourcePriority:
992
+ - machine-config
993
+ - process-env
994
+ TREESEED_CAPACITY_ACCEPTANCE_ADMIN_TOKEN:
995
+ label: Capacity acceptance admin token
996
+ group: capacity-provider
997
+ description: Admin bearer token used only by live capacity runtime acceptance proof.
998
+ howToGet: Create a scoped test/admin token for the acceptance environment and store it through Treeseed config.
999
+ sensitivity: secret
1000
+ targets:
1001
+ - local-runtime
1002
+ scopes:
1003
+ - local
1004
+ - staging
1005
+ - prod
1006
+ storage: scoped
1007
+ requirement: optional
1008
+ purposes:
1009
+ - dev
1010
+ - config
1011
+ validation:
1012
+ kind: nonempty
1013
+ minLength: 8
1014
+ sourcePriority:
1015
+ - machine-config
1016
+ - process-env
1017
+ TREESEED_CAPACITY_ACCEPTANCE_TEAM_ID:
1018
+ label: Capacity acceptance team ID
1019
+ group: capacity-provider
1020
+ description: Team id used by live capacity runtime acceptance proof.
1021
+ howToGet: Use a dedicated test team id in the target Market environment.
1022
+ sensitivity: plain
1023
+ targets:
1024
+ - local-runtime
1025
+ scopes:
1026
+ - local
1027
+ - staging
1028
+ - prod
1029
+ storage: scoped
1030
+ requirement: optional
1031
+ purposes:
1032
+ - dev
1033
+ - config
1034
+ validation:
1035
+ kind: nonempty
1036
+ sourcePriority:
1037
+ - machine-config
1038
+ - process-env
1039
+ TREESEED_CAPACITY_ACCEPTANCE_PROJECT_ID:
1040
+ label: Capacity acceptance project ID
1041
+ group: capacity-provider
1042
+ description: Project id used by live capacity runtime acceptance proof.
1043
+ howToGet: Use a dedicated test project id in the target Market environment.
1044
+ sensitivity: plain
1045
+ targets:
1046
+ - local-runtime
1047
+ scopes:
1048
+ - local
1049
+ - staging
1050
+ - prod
1051
+ storage: scoped
1052
+ requirement: optional
1053
+ purposes:
1054
+ - dev
1055
+ - config
1056
+ validation:
1057
+ kind: nonempty
1058
+ sourcePriority:
1059
+ - machine-config
1060
+ - process-env
1061
+ TREESEED_CAPACITY_ACCEPTANCE_PROVIDER_ID:
1062
+ label: Capacity acceptance provider ID
1063
+ group: capacity-provider
1064
+ description: Provider id used by live capacity runtime acceptance proof.
1065
+ howToGet: Use the provider id assigned to the test capacity provider.
1066
+ sensitivity: plain
1067
+ targets:
1068
+ - local-runtime
1069
+ scopes:
1070
+ - local
1071
+ - staging
1072
+ - prod
1073
+ storage: scoped
1074
+ requirement: optional
1075
+ purposes:
1076
+ - dev
1077
+ - config
1078
+ validation:
1079
+ kind: nonempty
1080
+ sourcePriority:
1081
+ - machine-config
1082
+ - process-env
1083
+ TREESEED_CAPACITY_ACCEPTANCE_AGENT_CLASS_ID:
1084
+ label: Capacity acceptance agent class ID
1085
+ group: capacity-provider
1086
+ description: Agent class id used by live capacity runtime acceptance proof.
1087
+ howToGet: Use an agent class available to the acceptance test project.
1088
+ sensitivity: plain
1089
+ targets:
1090
+ - local-runtime
1091
+ scopes:
1092
+ - local
1093
+ - staging
1094
+ - prod
1095
+ storage: scoped
1096
+ requirement: optional
1097
+ purposes:
1098
+ - dev
1099
+ - config
1100
+ validation:
1101
+ kind: nonempty
1102
+ sourcePriority:
1103
+ - machine-config
1104
+ - process-env
1105
+ TREESEED_CAPACITY_ACCEPTANCE_MODE:
1106
+ label: Capacity acceptance mode
1107
+ group: capacity-provider
1108
+ description: Work mode requested by live capacity runtime acceptance proof.
1109
+ howToGet: Leave unset to use planning, or set a supported project mode for the proof.
1110
+ sensitivity: plain
1111
+ targets:
1112
+ - local-runtime
1113
+ scopes:
1114
+ - local
1115
+ - staging
1116
+ - prod
1117
+ storage: scoped
1118
+ requirement: optional
1119
+ purposes:
1120
+ - dev
1121
+ - config
1122
+ validation:
1123
+ kind: nonempty
1124
+ sourcePriority:
1125
+ - machine-config
1126
+ - process-env