@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
@@ -11,6 +11,7 @@ import {
11
11
  collectTreeseedEnvironmentContext,
12
12
  withTreeseedKeyAgentAutopromptDisabled
13
13
  } from "./operations/services/config-runtime.js";
14
+ import { resolveTreeseedGitHubToken } from "./service-credentials.js";
14
15
  import { resolveWranglerBin } from "./operations/services/runtime-tools.js";
15
16
  import { getTreeseedEnvironmentSuggestedValues, validateTreeseedEnvironmentValues } from "./platform/environment.js";
16
17
  import { resolveTreeseedWebCachePolicy } from "./platform/deploy-config.js";
@@ -19,10 +20,12 @@ import {
19
20
  createPersistentDeployTarget,
20
21
  loadDeployState
21
22
  } from "./operations/services/deploy.js";
22
- import { loadCliDeployConfig } from "./operations/services/runtime-tools.js";
23
+ import { loadTreeseedPlatformConfig } from "./platform/config.js";
23
24
  import { collectCliPreflight } from "./operations/services/workspace-preflight.js";
24
25
  import { collectPublicPackageReleaseLineState, currentBranch, gitStatusPorcelain } from "./operations/services/workspace-save.js";
25
- import { hasCompleteTreeseedPackageCheckout, isWorkspaceRoot, run, workspacePackages } from "./operations/services/workspace-tools.js";
26
+ import { hasCompleteTreeseedPackageCheckout, isWorkspaceRoot } from "./operations/services/workspace-tools.js";
27
+ import { classifyTreeseedGitMode, runTreeseedGitText } from "./operations/services/git-runner.js";
28
+ import { packageAdapterPlanSummary } from "./operations/services/package-adapters.js";
26
29
  import { inspectWorkspaceDependencyMode } from "./operations/services/workspace-dependency-mode.js";
27
30
  import { inspectDetachedHeadRepair, PRODUCTION_BRANCH, STAGING_BRANCH } from "./operations/services/git-workflow.js";
28
31
  import { classifyWorkflowRunJournals, inspectWorkflowLock } from "./workflow/runs.js";
@@ -31,6 +34,14 @@ import {
31
34
  resolveTreeseedWorkflowPaths,
32
35
  workflowEnvironmentForBranchRole
33
36
  } from "./workflow/policy.js";
37
+ function runGit(args, options) {
38
+ return runTreeseedGitText(args, {
39
+ cwd: options.cwd,
40
+ mode: classifyTreeseedGitMode(args),
41
+ timeoutMs: options.timeoutMs,
42
+ maxBuffer: options.maxBuffer
43
+ });
44
+ }
34
45
  function emptyPersistentEnvironments() {
35
46
  return {
36
47
  local: { initialized: false, phase: "pending", configured: false, provisioned: false, deployable: false, blockers: [], warnings: [], lastValidatedAt: null, lastDeploymentTimestamp: null, lastDeployedUrl: null },
@@ -141,7 +152,7 @@ function providerProblems(validation, provider) {
141
152
  const id = problem.id.toUpperCase();
142
153
  const group = problem.entry.group;
143
154
  if (provider === "github") {
144
- return id === "GH_TOKEN" || id === "GITHUB_TOKEN" || group === "github";
155
+ return id === "TREESEED_GITHUB_TOKEN" || group === "github";
145
156
  }
146
157
  if (provider === "cloudflare") {
147
158
  return id.startsWith("CLOUDFLARE_") || id.includes("TURNSTILE") || group === "cloudflare";
@@ -207,9 +218,9 @@ function providerLiveCheck(provider, configured, cwd, env) {
207
218
  }
208
219
  function providerStatusForScope(cwd, scope, statusConfig, options) {
209
220
  const values = statusConfig.values;
210
- const githubConfigured = typeof values.GH_TOKEN === "string" && values.GH_TOKEN.trim().length > 0;
211
- const cloudflareConfigured = typeof values.CLOUDFLARE_API_TOKEN === "string" && values.CLOUDFLARE_API_TOKEN.trim().length > 0;
212
- const railwayConfigured = typeof values.RAILWAY_API_TOKEN === "string" && values.RAILWAY_API_TOKEN.trim().length > 0;
221
+ const githubConfigured = Boolean(resolveTreeseedGitHubToken(values));
222
+ const cloudflareConfigured = typeof values.TREESEED_CLOUDFLARE_API_TOKEN === "string" && values.TREESEED_CLOUDFLARE_API_TOKEN.trim().length > 0;
223
+ const railwayConfigured = typeof values.TREESEED_RAILWAY_API_TOKEN === "string" && values.TREESEED_RAILWAY_API_TOKEN.trim().length > 0;
213
224
  const localDevelopmentConfigured = providerProblems(statusConfig.validation, "localDevelopment").length === 0;
214
225
  const live = options.live === true;
215
226
  const env = statusConfig.resolvedValues;
@@ -243,7 +254,7 @@ function hasStatusConfigValue(statusConfigByScope, key) {
243
254
  }
244
255
  function knownRemoteTrackingBranchExists(repoDir, branchName) {
245
256
  try {
246
- run("git", ["show-ref", "--verify", "--quiet", `refs/remotes/origin/${branchName}`], { cwd: repoDir, capture: true });
257
+ runGit(["show-ref", "--verify", "--quiet", `refs/remotes/origin/${branchName}`], { cwd: repoDir, capture: true });
247
258
  return true;
248
259
  } catch {
249
260
  return false;
@@ -251,7 +262,7 @@ function knownRemoteTrackingBranchExists(repoDir, branchName) {
251
262
  }
252
263
  function safeHeadCommit(repoDir) {
253
264
  try {
254
- return run("git", ["rev-parse", "HEAD"], { cwd: repoDir, capture: true }).trim();
265
+ return runGit(["rev-parse", "HEAD"], { cwd: repoDir, capture: true }).trim();
255
266
  } catch {
256
267
  return null;
257
268
  }
@@ -267,14 +278,14 @@ function safeReleaseHistory(repoDir) {
267
278
  };
268
279
  }
269
280
  try {
270
- const output = run("git", ["rev-list", "--left-right", "--count", "staging...main"], { cwd: repoDir, capture: true }).trim();
281
+ const output = runGit(["rev-list", "--left-right", "--count", "staging...main"], { cwd: repoDir, capture: true }).trim();
271
282
  const [aheadRaw, behindRaw] = output.split(/\s+/u);
272
283
  const stagingAheadMain = Number.parseInt(aheadRaw ?? "", 10);
273
284
  const stagingBehindMain = Number.parseInt(behindRaw ?? "", 10);
274
285
  if (!Number.isFinite(stagingAheadMain) || !Number.isFinite(stagingBehindMain)) {
275
286
  throw new Error("invalid rev-list output");
276
287
  }
277
- const stagingOnlySubjects = run("git", ["log", "--format=%s", "main..staging"], { cwd: repoDir, capture: true }).split("\n").map((line) => line.trim()).filter(Boolean);
288
+ const stagingOnlySubjects = runGit(["log", "--format=%s", "main..staging"], { cwd: repoDir, capture: true }).split("\n").map((line) => line.trim()).filter(Boolean);
278
289
  const unreleasedStagingCommits = stagingOnlySubjects.filter((subject) => subject !== "release: sync package staging heads" && subject !== "release: back-merge main into staging" && !subject.startsWith("release: back-merge main into staging ")).length;
279
290
  return {
280
291
  stagingAheadMain,
@@ -293,25 +304,34 @@ function safeReleaseHistory(repoDir) {
293
304
  };
294
305
  }
295
306
  }
296
- const DEFAULT_OBSOLETE_RUN_HISTORY_LIMIT = 20;
297
- function capObsoleteWorkflowRuns(obsoleteRuns, options = {}) {
307
+ const DEFAULT_WORKFLOW_RUN_HISTORY_LIMIT = 20;
308
+ function capWorkflowRunHistory(runs, options = {}) {
298
309
  const historyMode = options.history === "all" ? "all" : "recent";
299
- const limit = options.limit ?? DEFAULT_OBSOLETE_RUN_HISTORY_LIMIT;
300
- const obsoleteRunsTotal = obsoleteRuns.length;
310
+ const limit = options.limit ?? DEFAULT_WORKFLOW_RUN_HISTORY_LIMIT;
311
+ const total = runs.length;
301
312
  if (historyMode === "all") {
302
313
  return {
303
314
  historyMode,
304
- obsoleteRuns,
305
- obsoleteRunsTotal,
306
- obsoleteRunsOmitted: 0
315
+ runs,
316
+ total,
317
+ omitted: 0
307
318
  };
308
319
  }
309
- const cappedRuns = obsoleteRuns.slice(0, limit);
320
+ const cappedRuns = runs.slice(0, limit);
310
321
  return {
311
322
  historyMode,
312
- obsoleteRuns: cappedRuns,
313
- obsoleteRunsTotal,
314
- obsoleteRunsOmitted: Math.max(0, obsoleteRunsTotal - cappedRuns.length)
323
+ runs: cappedRuns,
324
+ total,
325
+ omitted: Math.max(0, total - cappedRuns.length)
326
+ };
327
+ }
328
+ function capObsoleteWorkflowRuns(obsoleteRuns, options = {}) {
329
+ const capped = capWorkflowRunHistory(obsoleteRuns, options);
330
+ return {
331
+ historyMode: capped.historyMode,
332
+ obsoleteRuns: capped.runs,
333
+ obsoleteRunsTotal: capped.total,
334
+ obsoleteRunsOmitted: capped.omitted
315
335
  };
316
336
  }
317
337
  function resolveLocalStatusUrl(deployConfig) {
@@ -329,28 +349,30 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
329
349
  const dirtyWorktree = root ? gitStatusPorcelain(root).length > 0 : false;
330
350
  const completePackageCheckout = hasCompleteTreeseedPackageCheckout(effectiveCwd);
331
351
  const workspaceDependencyMode = inspectWorkspaceDependencyMode(effectiveCwd);
332
- const packageSyncRepos = completePackageCheckout ? workspacePackages(effectiveCwd).filter((pkg) => pkg.name?.startsWith("@treeseed/")).map((pkg) => {
333
- const repoBranch = currentBranch(pkg.dir) || null;
334
- const dirty = gitStatusPorcelain(pkg.dir).length > 0;
352
+ const packageAdapters = workspaceRoot ? packageAdapterPlanSummary(effectiveCwd) : [];
353
+ const packageSyncRepos = workspaceRoot ? packageAdapters.map((pkg) => {
354
+ const packageDir = resolve(effectiveCwd, pkg.path);
355
+ const repoBranch = currentBranch(packageDir) || null;
356
+ const dirty = gitStatusPorcelain(packageDir).length > 0;
335
357
  const expectedBranch = branchName;
336
- const detachedRepair = repoBranch ? null : inspectDetachedHeadRepair(pkg.dir, [expectedBranch, STAGING_BRANCH, PRODUCTION_BRANCH].filter((branch) => Boolean(branch)));
358
+ const detachedRepair = repoBranch ? null : inspectDetachedHeadRepair(packageDir, [expectedBranch, STAGING_BRANCH, PRODUCTION_BRANCH].filter((branch) => Boolean(branch)));
337
359
  let localBranch = false;
338
360
  if (expectedBranch) {
339
361
  if (repoBranch === expectedBranch) {
340
362
  localBranch = true;
341
363
  } else {
342
364
  try {
343
- run("git", ["show-ref", "--verify", "--quiet", `refs/heads/${expectedBranch}`], { cwd: pkg.dir, capture: true });
365
+ runGit(["show-ref", "--verify", "--quiet", `refs/heads/${expectedBranch}`], { cwd: packageDir, capture: true });
344
366
  localBranch = true;
345
367
  } catch {
346
368
  localBranch = false;
347
369
  }
348
370
  }
349
371
  }
350
- const remoteBranch = Boolean(expectedBranch) ? knownRemoteTrackingBranchExists(pkg.dir, expectedBranch) : false;
372
+ const remoteBranch = Boolean(expectedBranch) ? knownRemoteTrackingBranchExists(packageDir, expectedBranch) : false;
351
373
  return {
352
- name: pkg.name,
353
- path: pkg.relativeDir,
374
+ name: pkg.id,
375
+ path: pkg.path,
354
376
  branchName: repoBranch,
355
377
  dirty,
356
378
  aligned: expectedBranch ? repoBranch === expectedBranch : true,
@@ -401,15 +423,15 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
401
423
  const machineConfig = existsSync(configPath) ? loadTreeseedMachineConfig(effectiveCwd) : null;
402
424
  const keyStatus = inspectTreeseedKeyAgentStatus(effectiveCwd);
403
425
  const marketSettings = machineConfig?.settings?.market && typeof machineConfig.settings.market === "object" ? machineConfig.settings.market : null;
404
- const runnerHostId = typeof marketSettings?.runnerHostId === "string" && marketSettings.runnerHostId.trim() ? marketSettings.runnerHostId.trim() : typeof marketSettings?.projectId === "string" && marketSettings.projectId.trim() ? `market-runner:${marketSettings.projectId.trim()}` : null;
426
+ const runnerHostId = typeof marketSettings?.runnerHostId === "string" && marketSettings.runnerHostId.trim() ? marketSettings.runnerHostId.trim() : typeof marketSettings?.projectId === "string" && marketSettings.projectId.trim() ? `operations-runner:${marketSettings.projectId.trim()}` : null;
405
427
  const runnerSession = runnerHostId ? safeResolveRemoteSession(effectiveCwd, runnerHostId) : null;
406
- const workflowLock = inspectWorkflowLock(effectiveCwd);
428
+ const workflowLock = inspectWorkflowLock(effectiveCwd, { scope: "worktree" });
407
429
  const workflowRunHeads = {};
408
430
  if (root) {
409
431
  workflowRunHeads["@treeseed/market"] = safeHeadCommit(root);
410
432
  }
411
- for (const pkg of completePackageCheckout ? workspacePackages(effectiveCwd).filter((entry) => entry.name?.startsWith("@treeseed/")) : []) {
412
- workflowRunHeads[pkg.name] = safeHeadCommit(pkg.dir);
433
+ for (const pkg of packageAdapters) {
434
+ workflowRunHeads[pkg.id] = safeHeadCommit(resolve(effectiveCwd, pkg.path));
413
435
  }
414
436
  const classifiedRuns = classifyWorkflowRunJournals(effectiveCwd, {
415
437
  currentBranch: branchName,
@@ -428,6 +450,7 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
428
450
  nextStep: journal.steps.find((step) => step.status === "pending")?.description ?? null,
429
451
  reasons: classification.reasons
430
452
  }));
453
+ const staleHistory = capWorkflowRunHistory(staleRuns, { history: options.history });
431
454
  const obsoleteRuns = classifiedRuns.filter((entry) => entry.classification.state === "obsolete").map(({ journal, classification }) => ({
432
455
  runId: journal.runId,
433
456
  command: journal.command,
@@ -467,7 +490,9 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
467
490
  staleReason: workflowLock.staleReason
468
491
  },
469
492
  interruptedRuns,
470
- staleRuns,
493
+ staleRuns: staleHistory.runs,
494
+ staleRunsTotal: staleHistory.total,
495
+ staleRunsOmitted: staleHistory.omitted,
471
496
  obsoleteRuns: obsoleteHistory.obsoleteRuns,
472
497
  historyMode: obsoleteHistory.historyMode,
473
498
  obsoleteRunsTotal: obsoleteHistory.obsoleteRunsTotal,
@@ -475,7 +500,7 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
475
500
  blockers: workflowBlockers
476
501
  },
477
502
  packageSync: {
478
- mode: completePackageCheckout ? "recursive-workspace" : "root-only",
503
+ mode: completePackageCheckout || packageSyncRepos.length > 0 ? "recursive-workspace" : "root-only",
479
504
  completeCheckout: completePackageCheckout,
480
505
  dependencyMode: workspaceDependencyMode.mode,
481
506
  workspaceLinks: workspaceDependencyMode,
@@ -485,7 +510,8 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
485
510
  repos: packageSyncRepos,
486
511
  blockers: packageSyncBlockers,
487
512
  warnings: packageSyncWarnings,
488
- releaseLine: packageReleaseLine
513
+ releaseLine: packageReleaseLine,
514
+ packages: packageAdapters
489
515
  },
490
516
  preview: {
491
517
  enabled: false,
@@ -574,7 +600,7 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
574
600
  };
575
601
  if (tenantRoot) {
576
602
  try {
577
- const deployConfig = loadCliDeployConfig(effectiveCwd);
603
+ const deployConfig = loadTreeseedPlatformConfig({ tenantRoot: effectiveCwd, environment: workflowEnvironmentForBranchRole(branchRole), env: options.env ?? process.env }).deployConfig;
578
604
  const environmentContext = collectTreeseedEnvironmentContext(effectiveCwd);
579
605
  const statusConfigByScope = Object.fromEntries(
580
606
  ["local", "staging", "prod"].map((scope) => [
@@ -597,11 +623,11 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
597
623
  const runtimeSessionReady = Boolean(
598
624
  marketSettings?.runnerReady === true || typeof runnerSession?.accessToken === "string" && runnerSession.accessToken.length > 0
599
625
  );
600
- state.auth.gh = state.auth.gh || hasStatusConfigValue(statusConfigByScope, "GH_TOKEN");
601
- state.auth.wrangler = state.auth.wrangler || hasStatusConfigValue(statusConfigByScope, "CLOUDFLARE_API_TOKEN");
602
- state.auth.railway = state.auth.railway || hasStatusConfigValue(statusConfigByScope, "RAILWAY_API_TOKEN");
626
+ state.auth.gh = state.auth.gh || Boolean(resolveTreeseedGitHubToken(statusConfigByScope.local.values)) || Boolean(resolveTreeseedGitHubToken(statusConfigByScope.staging.values)) || Boolean(resolveTreeseedGitHubToken(statusConfigByScope.prod.values));
627
+ state.auth.wrangler = state.auth.wrangler || hasStatusConfigValue(statusConfigByScope, "TREESEED_CLOUDFLARE_API_TOKEN");
628
+ state.auth.railway = state.auth.railway || hasStatusConfigValue(statusConfigByScope, "TREESEED_RAILWAY_API_TOKEN");
603
629
  state.auth.copilot = state.auth.copilot || state.auth.gh;
604
- state.marketConnection.baseUrl = state.marketConnection.baseUrl ?? sharedConfigValues.TREESEED_MARKET_API_BASE_URL ?? deployConfig.runtime?.marketBaseUrl ?? deployConfig.hosting?.marketBaseUrl ?? null;
630
+ state.marketConnection.baseUrl = state.marketConnection.baseUrl ?? sharedConfigValues.TREESEED_API_BASE_URL ?? deployConfig.runtime?.marketBaseUrl ?? deployConfig.hosting?.marketBaseUrl ?? null;
605
631
  state.marketConnection.teamId = state.marketConnection.teamId ?? sharedConfigValues.TREESEED_HOSTING_TEAM_ID ?? deployConfig.runtime?.teamId ?? deployConfig.hosting?.teamId ?? null;
606
632
  state.marketConnection.projectId = state.marketConnection.projectId ?? sharedConfigValues.TREESEED_PROJECT_ID ?? deployConfig.runtime?.projectId ?? deployConfig.hosting?.projectId ?? null;
607
633
  state.marketConnection.hubMode = deployConfig.hub?.mode ?? null;
@@ -812,6 +838,7 @@ function recommendTreeseedNextSteps(state) {
812
838
  }
813
839
  export {
814
840
  capObsoleteWorkflowRuns,
841
+ capWorkflowRunHistory,
815
842
  recommendTreeseedNextSteps,
816
843
  resolveTreeseedWorkflowState
817
844
  };
@@ -1,17 +1,26 @@
1
- export { applyTreeseedConfigValues, applyTreeseedEnvironmentToProcess, applyTreeseedSafeRepairs, assertTreeseedCommandEnvironment, checkTreeseedProviderConnections, clearTreeseedRemoteSession, collectTreeseedConfigContext, collectTreeseedPrintEnvReport, createDefaultTreeseedMachineConfig, ensureTreeseedActVerificationTooling, ensureTreeseedSecretSessionForConfig, ensureTreeseedGitignoreEntries, getTreeseedMachineConfigPaths, loadTreeseedMachineConfig, listRelevantTreeseedConfigEntries, finalizeTreeseedConfig, inspectTreeseedKeyAgentTransportDiagnostic, inspectTreeseedPassphraseEnvDiagnostic, listDeprecatedTreeseedLocalEnvFiles, inspectTreeseedKeyAgentStatus, lockTreeseedSecretSession, migrateTreeseedMachineKeyToWrapped, resolveTreeseedMachineEnvironmentValues, resolveTreeseedLaunchEnvironment, resolveTreeseedRemoteConfig, resolveTreeseedRemoteSession, rotateTreeseedMachineKey, rotateTreeseedMachineKeyPassphrase, setTreeseedRemoteSession, TREESEED_MACHINE_KEY_PASSPHRASE_ENV, TreeseedKeyAgentError, updateTreeseedDeployConfigFeatureToggles, unlockTreeseedSecretSessionFromEnv, unlockTreeseedSecretSessionInteractive, unlockTreeseedSecretSessionWithPassphrase, withTreeseedKeyAgentAutopromptDisabled, warnDeprecatedTreeseedLocalEnvFiles, writeTreeseedMachineConfig, } from './operations/services/config-runtime.ts';
2
- export { exportTreeseedCodebase } from './operations/services/export-runtime.ts';
3
- export { formatTreeseedHostingAuditReport, resolveTreeseedHostingAuditTarget, runTreeseedHostingAudit, type TreeseedHostingAuditCheck, type TreeseedHostingAuditEnvironment, type TreeseedHostingAuditHostKind, type TreeseedHostingAuditReport, } from './operations/services/hosting-audit.ts';
4
- export { assertDeploymentInitialized, cleanupDestroyedState, createBranchPreviewDeployTarget, createPersistentDeployTarget, deployTargetLabel, destroyCloudflareResources, ensureGeneratedWranglerConfig, finalizeDeploymentState, loadDeployState, printDeploySummary, printDestroySummary, provisionCloudflareResources, runRemoteD1Migrations, syncCloudflareSecrets, validateDeployPrerequisites, validateDestroyPrerequisites, } from './operations/services/deploy.ts';
5
- export { assertCleanWorktree, assertFeatureBranch, branchExists, checkoutBranch, createDeprecatedTaskTag, createFeatureBranchFromStaging, currentManagedBranch, deleteLocalBranch, deleteRemoteBranch, ensureLocalBranchTracking, gitWorkflowRoot, listTaskBranches, mergeCurrentBranchIntoStaging, mergeStagingIntoMain, prepareReleaseBranches, PRODUCTION_BRANCH, pushBranch, remoteBranchExists, STAGING_BRANCH, syncBranchWithOrigin, waitForStagingAutomation, } from './operations/services/git-workflow.ts';
6
- export { dockerIsAvailable, stopKnownMailpitContainers, type TreeseedMailpitContainer, } from './operations/services/mailpit-runtime.ts';
7
- export { loadCliDeployConfig, packageScriptPath, resolveWranglerBin, } from './operations/services/runtime-tools.ts';
8
- export { configuredRailwayServices, deployRailwayService, validateRailwayDeployPrerequisites, } from './operations/services/railway-deploy.ts';
9
- export { ensureRailwayEnvironment, ensureRailwayProject, ensureRailwayService, getRailwayAuthProfile, listRailwayEnvironments, listRailwayProjects, listRailwayServices, listRailwayVariables, railwayGraphqlRequest, resolveRailwayApiToken, resolveRailwayApiUrl, resolveRailwayWorkspace, resolveRailwayWorkspaceContext, upsertRailwayVariables, } from './operations/services/railway-api.ts';
10
- export { runTenantDeployPreflight, runWorkspaceReleasePreflight, runWorkspaceSavePreflight, } from './operations/services/save-deploy-preflight.ts';
11
- export { collectCliPreflight } from './operations/services/workspace-preflight.ts';
12
- export { collectTreeseedDependencyStatus, collectTreeseedToolStatus, createTreeseedManagedToolEnv, formatTreeseedDependencyFailureDetails, formatTreeseedDependencyReport, installTreeseedDependencies, resolveTreeseedToolBinary, resolveTreeseedToolCommand, type TreeseedToolStatusResult, } from './managed-dependencies.ts';
13
- export { runTreeseedCopilotTask, type TreeseedCopilotTaskInput, type TreeseedCopilotTaskResult, } from './copilot.ts';
14
- export { applyWorkspaceVersionChanges, collectMergeConflictReport, currentBranch, formatMergeConflictReport, gitStatusPorcelain, hasMeaningfulChanges, incrementVersion, originRemoteUrl, planWorkspaceReleaseBump, repoRoot, } from './operations/services/workspace-save.ts';
15
- export { assertNoWorkspaceLinksInDeploymentLockfiles, collectDeploymentLockfileWorkspaceIssues, discoverWorkspaceLinks, ensureLocalWorkspaceLinks, inspectWorkspaceDependencyMode, unlinkLocalWorkspaceLinks, type DependencyResolutionMode, type DeploymentLockfileWorkspaceIssue, type WorkspaceLinksMode, } from './operations/services/workspace-dependency-mode.ts';
16
- export { findNearestTreeseedRoot, findNearestTreeseedWorkspaceRoot, isWorkspaceRoot, run, workspaceRoot, } from './operations/services/workspace-tools.ts';
17
- export { collectTreeseedReconcileStatus, createTreeseedReconcileRegistry, deriveTreeseedDesiredUnits, destroyTreeseedTargetUnits, observeTreeseedUnits, planTreeseedReconciliation, reconcileTreeseedTarget, } from './reconcile/index.ts';
1
+ export { applyTreeseedConfigValues, applyTreeseedEnvironmentToProcess, applyTreeseedSafeRepairs, assertTreeseedCommandEnvironment, checkTreeseedProviderConnections, clearTreeseedRemoteSession, collectTreeseedConfigContext, collectTreeseedConfigSeedValues, collectTreeseedPrintEnvReport, createDefaultTreeseedMachineConfig, ensureTreeseedActVerificationTooling, ensureTreeseedSecretSessionForConfig, ensureTreeseedGitignoreEntries, getTreeseedMachineConfigPaths, loadTreeseedMachineConfig, listRelevantTreeseedConfigEntries, finalizeTreeseedConfig, inspectTreeseedKeyAgentTransportDiagnostic, inspectTreeseedPassphraseEnvDiagnostic, listDeprecatedTreeseedLocalEnvFiles, inspectTreeseedKeyAgentStatus, lockTreeseedSecretSession, migrateTreeseedMachineKeyToWrapped, resolveTreeseedMachineEnvironmentValues, resolveTreeseedLaunchEnvironment, resolveTreeseedRemoteConfig, resolveTreeseedRemoteSession, rotateTreeseedMachineKey, rotateTreeseedMachineKeyPassphrase, setTreeseedRemoteSession, TREESEED_MACHINE_KEY_PASSPHRASE_ENV, TreeseedKeyAgentError, updateTreeseedDeployConfigFeatureToggles, unlockTreeseedSecretSessionFromEnv, unlockTreeseedSecretSessionInteractive, unlockTreeseedSecretSessionWithPassphrase, withTreeseedKeyAgentAutopromptDisabled, warnDeprecatedTreeseedLocalEnvFiles, writeTreeseedMachineConfig, } from './operations/services/config-runtime.js';
2
+ export { exportTreeseedCodebase } from './operations/services/export-runtime.js';
3
+ export { formatTreeseedHostingAuditReport, resolveTreeseedHostingAuditTarget, runTreeseedHostingAudit, type TreeseedHostingAuditCheck, type TreeseedHostingAuditEnvironment, type TreeseedHostingAuditHostKind, type TreeseedHostingAuditReport, } from './operations/services/hosting-audit.js';
4
+ export { collectTreeseedHostedServiceChecks, type TreeseedHostedServiceCheck, type TreeseedHostedServiceCheckReport, type TreeseedHostedServiceCheckStatus, type TreeseedHostedServiceType, type TreeseedObservedRailwayServiceState, } from './operations/services/hosted-service-checks.js';
5
+ export { collectTreeseedDeploymentReadiness, formatTreeseedReadinessReport, type TreeseedDeploymentReadinessCheck, type TreeseedDeploymentReadinessReport, type TreeseedDeploymentReadinessStatus, } from './operations/services/deployment-readiness.js';
6
+ export { collectTreeseedLiveHostedServiceChecks, type TreeseedLiveHostedServiceCheckOptions, type TreeseedLiveHostedServiceCheckReport, } from './operations/services/live-hosted-service-checks.js';
7
+ export { runTreeseedOperationsRunnerSmoke, type TreeseedOperationsRunnerSmokeOptions, type TreeseedOperationsRunnerSmokeReport, } from './operations/services/operations-runner-smoke.js';
8
+ export { readTreeseedVerificationCache, treeseedVerificationCacheKey, writeTreeseedVerificationCache, type TreeseedVerificationCacheEntry, } from './operations/services/verification-cache.js';
9
+ export { assertDeploymentInitialized, cleanupDestroyedState, createBranchPreviewDeployTarget, createPersistentDeployTarget, deployTargetLabel, destroyCloudflareResources, ensureGeneratedWranglerConfig, finalizeDeploymentState, loadDeployState, printDeploySummary, printDestroySummary, provisionCloudflareResources, runRemoteD1Migrations, syncCloudflareSecrets, validateDeployPrerequisites, validateDestroyPrerequisites, } from './operations/services/deploy.js';
10
+ export { assertCleanWorktree, assertFeatureBranch, branchExists, checkoutBranch, createFeatureBranchFromStaging, currentManagedBranch, deleteLocalBranch, deleteRemoteBranch, ensureLocalBranchTracking, gitWorkflowRoot, listTaskBranches, mergeCurrentBranchIntoStaging, mergeStagingIntoMain, prepareReleaseBranches, PRODUCTION_BRANCH, pushBranch, remoteBranchExists, STAGING_BRANCH, syncBranchWithOrigin, waitForStagingAutomation, } from './operations/services/git-workflow.js';
11
+ export { loadCliDeployConfig, packageScriptPath, resolveWranglerBin, } from './operations/services/runtime-tools.js';
12
+ export { configuredRailwayServices, validateRailwayDeployPrerequisites, } from './operations/services/railway-deploy.js';
13
+ export { getRailwayAuthProfile, listRailwayEnvironments, listRailwayProjects, listRailwayServices, listRailwayVariables, resolveRailwayApiToken, resolveRailwayApiUrl, resolveRailwayWorkspace, resolveRailwayWorkspaceContext, } from './operations/services/railway-api.js';
14
+ export { githubRepositoryCredentialEnvName, resolveGitHubCredentialForRepository, type TreeseedGitHubCredentialResolution, } from './operations/services/github-credentials.js';
15
+ export { createGitHubApiClient, ensureGitHubActionsEnvironment, getLatestGitHubWorkflowRun, listGitHubEnvironmentSecretNames, listGitHubEnvironmentVariableNames, type GitHubWorkflowDispatchResult, type GitHubWorkflowRunSummary, } from './operations/services/github-api.js';
16
+ export { inspectTreeseedGitLocks, inspectTreeseedGitLockSet, inspectTreeseedWorkspaceGitLocks, recoverTreeseedGitLocks, runTreeseedGitBatch, runTreeseedGit, type TreeseedGitLockDiagnostic, type TreeseedGitLockKind, type TreeseedGitLockProcessHint, type TreeseedGitBatchOperation, type TreeseedGitRunnerMode, type TreeseedGitRunnerResult, type TreeseedGitWorkspaceLockDiagnostics, } from './operations/services/git-runner.js';
17
+ export { discoverTreeseedPackageAdapters, findTreeseedPackageAdapter, packageAdapterPlanSummary, planTreeseedPackageDevelopmentImage, runTreeseedPackageImageWorkflow, syncTreeseedPackageWorkflows, validateTreeseedPackageManifests, type TreeseedPackageAdapter, type TreeseedPackageDevelopmentImagePlan, type TreeseedPackageImageWorkflowOptions, type TreeseedPackageManifestValidation, type TreeseedPackageWorkflowSyncResult, type TreeseedPackageWorkflowTemplateKind, } from './operations/services/package-adapters.js';
18
+ export { runTenantDeployPreflight, runWorkspaceReleasePreflight, runWorkspaceSavePreflight, } from './operations/services/save-deploy-preflight.js';
19
+ export { collectCliPreflight } from './operations/services/workspace-preflight.js';
20
+ export { collectTreeseedDependencyStatus, collectTreeseedToolStatus, createTreeseedManagedToolEnv, formatTreeseedDependencyFailureDetails, formatTreeseedDependencyReport, installTreeseedDependencies, resolveTreeseedToolBinary, resolveTreeseedToolCommand, type TreeseedToolStatusResult, } from './managed-dependencies.js';
21
+ export { runTreeseedCopilotTask, type TreeseedCopilotTaskInput, type TreeseedCopilotTaskResult, } from './copilot.js';
22
+ export { applyWorkspaceVersionChanges, collectMergeConflictReport, currentBranch, formatMergeConflictReport, gitStatusPorcelain, hasMeaningfulChanges, incrementVersion, originRemoteUrl, planWorkspaceReleaseBump, repoRoot, } from './operations/services/workspace-save.js';
23
+ export { assertNoWorkspaceLinksInDeploymentLockfiles, collectDeploymentLockfileWorkspaceIssues, discoverWorkspaceLinks, ensureLocalWorkspaceLinks, inspectWorkspaceDependencyMode, unlinkLocalWorkspaceLinks, type DependencyResolutionMode, type DeploymentLockfileWorkspaceIssue, type WorkspaceLinksMode, } from './operations/services/workspace-dependency-mode.js';
24
+ export { findNearestTreeseedRoot, findNearestTreeseedWorkspaceRoot, isWorkspaceRoot, run, workspaceRoot, } from './operations/services/workspace-tools.js';
25
+ export { resolveTreeseedWorkflowPaths, } from './workflow/policy.js';
26
+ export { collectTreeseedReconcileStatus, createTreeseedReconcileRegistry, deriveTreeseedDesiredUnits, destroyTreeseedTargetUnits, planTreeseedReconciliation, refreshTreeseedUnits, reconcileTreeseedTarget, } from './reconcile/index.js';
@@ -6,6 +6,7 @@ import {
6
6
  checkTreeseedProviderConnections,
7
7
  clearTreeseedRemoteSession,
8
8
  collectTreeseedConfigContext,
9
+ collectTreeseedConfigSeedValues,
9
10
  collectTreeseedPrintEnvReport,
10
11
  createDefaultTreeseedMachineConfig,
11
12
  ensureTreeseedActVerificationTooling,
@@ -44,6 +45,24 @@ import {
44
45
  resolveTreeseedHostingAuditTarget,
45
46
  runTreeseedHostingAudit
46
47
  } from "./operations/services/hosting-audit.js";
48
+ import {
49
+ collectTreeseedHostedServiceChecks
50
+ } from "./operations/services/hosted-service-checks.js";
51
+ import {
52
+ collectTreeseedDeploymentReadiness,
53
+ formatTreeseedReadinessReport
54
+ } from "./operations/services/deployment-readiness.js";
55
+ import {
56
+ collectTreeseedLiveHostedServiceChecks
57
+ } from "./operations/services/live-hosted-service-checks.js";
58
+ import {
59
+ runTreeseedOperationsRunnerSmoke
60
+ } from "./operations/services/operations-runner-smoke.js";
61
+ import {
62
+ readTreeseedVerificationCache,
63
+ treeseedVerificationCacheKey,
64
+ writeTreeseedVerificationCache
65
+ } from "./operations/services/verification-cache.js";
47
66
  import {
48
67
  assertDeploymentInitialized,
49
68
  cleanupDestroyedState,
@@ -67,7 +86,6 @@ import {
67
86
  assertFeatureBranch,
68
87
  branchExists,
69
88
  checkoutBranch,
70
- createDeprecatedTaskTag,
71
89
  createFeatureBranchFromStaging,
72
90
  currentManagedBranch,
73
91
  deleteLocalBranch,
@@ -85,10 +103,6 @@ import {
85
103
  syncBranchWithOrigin,
86
104
  waitForStagingAutomation
87
105
  } from "./operations/services/git-workflow.js";
88
- import {
89
- dockerIsAvailable,
90
- stopKnownMailpitContainers
91
- } from "./operations/services/mailpit-runtime.js";
92
106
  import {
93
107
  loadCliDeployConfig,
94
108
  packageScriptPath,
@@ -96,25 +110,47 @@ import {
96
110
  } from "./operations/services/runtime-tools.js";
97
111
  import {
98
112
  configuredRailwayServices,
99
- deployRailwayService,
100
113
  validateRailwayDeployPrerequisites
101
114
  } from "./operations/services/railway-deploy.js";
102
115
  import {
103
- ensureRailwayEnvironment,
104
- ensureRailwayProject,
105
- ensureRailwayService,
106
116
  getRailwayAuthProfile,
107
117
  listRailwayEnvironments,
108
118
  listRailwayProjects,
109
119
  listRailwayServices,
110
120
  listRailwayVariables,
111
- railwayGraphqlRequest,
112
121
  resolveRailwayApiToken,
113
122
  resolveRailwayApiUrl,
114
123
  resolveRailwayWorkspace,
115
- resolveRailwayWorkspaceContext,
116
- upsertRailwayVariables
124
+ resolveRailwayWorkspaceContext
117
125
  } from "./operations/services/railway-api.js";
126
+ import {
127
+ githubRepositoryCredentialEnvName,
128
+ resolveGitHubCredentialForRepository
129
+ } from "./operations/services/github-credentials.js";
130
+ import {
131
+ createGitHubApiClient,
132
+ ensureGitHubActionsEnvironment,
133
+ getLatestGitHubWorkflowRun,
134
+ listGitHubEnvironmentSecretNames,
135
+ listGitHubEnvironmentVariableNames
136
+ } from "./operations/services/github-api.js";
137
+ import {
138
+ inspectTreeseedGitLocks,
139
+ inspectTreeseedGitLockSet,
140
+ inspectTreeseedWorkspaceGitLocks,
141
+ recoverTreeseedGitLocks,
142
+ runTreeseedGitBatch,
143
+ runTreeseedGit
144
+ } from "./operations/services/git-runner.js";
145
+ import {
146
+ discoverTreeseedPackageAdapters,
147
+ findTreeseedPackageAdapter,
148
+ packageAdapterPlanSummary,
149
+ planTreeseedPackageDevelopmentImage,
150
+ runTreeseedPackageImageWorkflow,
151
+ syncTreeseedPackageWorkflows,
152
+ validateTreeseedPackageManifests
153
+ } from "./operations/services/package-adapters.js";
118
154
  import {
119
155
  runTenantDeployPreflight,
120
156
  runWorkspaceReleasePreflight,
@@ -161,13 +197,16 @@ import {
161
197
  run,
162
198
  workspaceRoot
163
199
  } from "./operations/services/workspace-tools.js";
200
+ import {
201
+ resolveTreeseedWorkflowPaths
202
+ } from "./workflow/policy.js";
164
203
  import {
165
204
  collectTreeseedReconcileStatus,
166
205
  createTreeseedReconcileRegistry,
167
206
  deriveTreeseedDesiredUnits,
168
207
  destroyTreeseedTargetUnits,
169
- observeTreeseedUnits,
170
208
  planTreeseedReconciliation,
209
+ refreshTreeseedUnits,
171
210
  reconcileTreeseedTarget
172
211
  } from "./reconcile/index.js";
173
212
  export {
@@ -193,15 +232,19 @@ export {
193
232
  collectDeploymentLockfileWorkspaceIssues,
194
233
  collectMergeConflictReport,
195
234
  collectTreeseedConfigContext,
235
+ collectTreeseedConfigSeedValues,
196
236
  collectTreeseedDependencyStatus,
237
+ collectTreeseedDeploymentReadiness,
238
+ collectTreeseedHostedServiceChecks,
239
+ collectTreeseedLiveHostedServiceChecks,
197
240
  collectTreeseedPrintEnvReport,
198
241
  collectTreeseedReconcileStatus,
199
242
  collectTreeseedToolStatus,
200
243
  configuredRailwayServices,
201
244
  createBranchPreviewDeployTarget,
202
245
  createDefaultTreeseedMachineConfig,
203
- createDeprecatedTaskTag,
204
246
  createFeatureBranchFromStaging,
247
+ createGitHubApiClient,
205
248
  createPersistentDeployTarget,
206
249
  createTreeseedManagedToolEnv,
207
250
  createTreeseedReconcileRegistry,
@@ -209,19 +252,16 @@ export {
209
252
  currentManagedBranch,
210
253
  deleteLocalBranch,
211
254
  deleteRemoteBranch,
212
- deployRailwayService,
213
255
  deployTargetLabel,
214
256
  deriveTreeseedDesiredUnits,
215
257
  destroyCloudflareResources,
216
258
  destroyTreeseedTargetUnits,
259
+ discoverTreeseedPackageAdapters,
217
260
  discoverWorkspaceLinks,
218
- dockerIsAvailable,
219
261
  ensureGeneratedWranglerConfig,
262
+ ensureGitHubActionsEnvironment,
220
263
  ensureLocalBranchTracking,
221
264
  ensureLocalWorkspaceLinks,
222
- ensureRailwayEnvironment,
223
- ensureRailwayProject,
224
- ensureRailwayService,
225
265
  ensureTreeseedActVerificationTooling,
226
266
  ensureTreeseedGitignoreEntries,
227
267
  ensureTreeseedSecretSessionForConfig,
@@ -230,23 +270,32 @@ export {
230
270
  finalizeTreeseedConfig,
231
271
  findNearestTreeseedRoot,
232
272
  findNearestTreeseedWorkspaceRoot,
273
+ findTreeseedPackageAdapter,
233
274
  formatMergeConflictReport,
234
275
  formatTreeseedDependencyFailureDetails,
235
276
  formatTreeseedDependencyReport,
236
277
  formatTreeseedHostingAuditReport,
278
+ formatTreeseedReadinessReport,
279
+ getLatestGitHubWorkflowRun,
237
280
  getRailwayAuthProfile,
238
281
  getTreeseedMachineConfigPaths,
239
282
  gitStatusPorcelain,
240
283
  gitWorkflowRoot,
284
+ githubRepositoryCredentialEnvName,
241
285
  hasMeaningfulChanges,
242
286
  incrementVersion,
287
+ inspectTreeseedGitLockSet,
288
+ inspectTreeseedGitLocks,
243
289
  inspectTreeseedKeyAgentStatus,
244
290
  inspectTreeseedKeyAgentTransportDiagnostic,
245
291
  inspectTreeseedPassphraseEnvDiagnostic,
292
+ inspectTreeseedWorkspaceGitLocks,
246
293
  inspectWorkspaceDependencyMode,
247
294
  installTreeseedDependencies,
248
295
  isWorkspaceRoot,
249
296
  listDeprecatedTreeseedLocalEnvFiles,
297
+ listGitHubEnvironmentSecretNames,
298
+ listGitHubEnvironmentVariableNames,
250
299
  listRailwayEnvironments,
251
300
  listRailwayProjects,
252
301
  listRailwayServices,
@@ -260,9 +309,10 @@ export {
260
309
  mergeCurrentBranchIntoStaging,
261
310
  mergeStagingIntoMain,
262
311
  migrateTreeseedMachineKeyToWrapped,
263
- observeTreeseedUnits,
264
312
  originRemoteUrl,
313
+ packageAdapterPlanSummary,
265
314
  packageScriptPath,
315
+ planTreeseedPackageDevelopmentImage,
266
316
  planTreeseedReconciliation,
267
317
  planWorkspaceReleaseBump,
268
318
  prepareReleaseBranches,
@@ -270,10 +320,13 @@ export {
270
320
  printDestroySummary,
271
321
  provisionCloudflareResources,
272
322
  pushBranch,
273
- railwayGraphqlRequest,
323
+ readTreeseedVerificationCache,
274
324
  reconcileTreeseedTarget,
325
+ recoverTreeseedGitLocks,
326
+ refreshTreeseedUnits,
275
327
  remoteBranchExists,
276
328
  repoRoot,
329
+ resolveGitHubCredentialForRepository,
277
330
  resolveRailwayApiToken,
278
331
  resolveRailwayApiUrl,
279
332
  resolveRailwayWorkspace,
@@ -285,6 +338,7 @@ export {
285
338
  resolveTreeseedRemoteSession,
286
339
  resolveTreeseedToolBinary,
287
340
  resolveTreeseedToolCommand,
341
+ resolveTreeseedWorkflowPaths,
288
342
  resolveWranglerBin,
289
343
  rotateTreeseedMachineKey,
290
344
  rotateTreeseedMachineKeyPassphrase,
@@ -292,25 +346,31 @@ export {
292
346
  runRemoteD1Migrations,
293
347
  runTenantDeployPreflight,
294
348
  runTreeseedCopilotTask,
349
+ runTreeseedGit,
350
+ runTreeseedGitBatch,
295
351
  runTreeseedHostingAudit,
352
+ runTreeseedOperationsRunnerSmoke,
353
+ runTreeseedPackageImageWorkflow,
296
354
  runWorkspaceReleasePreflight,
297
355
  runWorkspaceSavePreflight,
298
356
  setTreeseedRemoteSession,
299
- stopKnownMailpitContainers,
300
357
  syncBranchWithOrigin,
301
358
  syncCloudflareSecrets,
359
+ syncTreeseedPackageWorkflows,
360
+ treeseedVerificationCacheKey,
302
361
  unlinkLocalWorkspaceLinks,
303
362
  unlockTreeseedSecretSessionFromEnv,
304
363
  unlockTreeseedSecretSessionInteractive,
305
364
  unlockTreeseedSecretSessionWithPassphrase,
306
365
  updateTreeseedDeployConfigFeatureToggles,
307
- upsertRailwayVariables,
308
366
  validateDeployPrerequisites,
309
367
  validateDestroyPrerequisites,
310
368
  validateRailwayDeployPrerequisites,
369
+ validateTreeseedPackageManifests,
311
370
  waitForStagingAutomation,
312
371
  warnDeprecatedTreeseedLocalEnvFiles,
313
372
  withTreeseedKeyAgentAutopromptDisabled,
314
373
  workspaceRoot,
315
- writeTreeseedMachineConfig
374
+ writeTreeseedMachineConfig,
375
+ writeTreeseedVerificationCache
316
376
  };