@treeseed/sdk 0.1.1 → 0.3.0

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 (228) hide show
  1. package/README.md +97 -494
  2. package/dist/{src/cli-tools.d.ts → cli-tools.d.ts} +1 -1
  3. package/dist/cli-tools.js +5 -3
  4. package/dist/{src/content-store.d.ts → content-store.d.ts} +3 -2
  5. package/dist/content-store.js +52 -20
  6. package/dist/{src/d1-store.d.ts → d1-store.d.ts} +62 -1
  7. package/dist/d1-store.js +625 -65
  8. package/dist/field-aliases.d.ts +11 -0
  9. package/dist/field-aliases.js +41 -0
  10. package/dist/graph/build.d.ts +19 -0
  11. package/dist/graph/build.js +949 -0
  12. package/dist/graph/dsl.d.ts +2 -0
  13. package/dist/graph/dsl.js +243 -0
  14. package/dist/graph/query.d.ts +47 -0
  15. package/dist/graph/query.js +447 -0
  16. package/dist/graph/ranking.d.ts +3 -0
  17. package/dist/graph/ranking.js +483 -0
  18. package/dist/graph/schema.d.ts +142 -0
  19. package/dist/graph/schema.js +133 -0
  20. package/dist/graph.d.ts +52 -0
  21. package/dist/graph.js +133 -0
  22. package/dist/index.d.ts +27 -0
  23. package/dist/index.js +90 -2
  24. package/dist/model-registry.d.ts +8 -0
  25. package/dist/model-registry.js +351 -25
  26. package/dist/operations/providers/default.d.ts +10 -0
  27. package/dist/operations/providers/default.js +514 -0
  28. package/dist/operations/runtime.d.ts +7 -0
  29. package/dist/operations/runtime.js +60 -0
  30. package/dist/operations/services/config-runtime.d.ts +269 -0
  31. package/dist/operations/services/config-runtime.js +1397 -0
  32. package/dist/operations/services/d1-migration.d.ts +6 -0
  33. package/dist/operations/services/d1-migration.js +89 -0
  34. package/dist/operations/services/deploy.d.ts +371 -0
  35. package/dist/operations/services/deploy.js +981 -0
  36. package/dist/operations/services/git-workflow.d.ts +49 -0
  37. package/dist/operations/services/git-workflow.js +218 -0
  38. package/dist/operations/services/github-automation.d.ts +156 -0
  39. package/dist/operations/services/github-automation.js +256 -0
  40. package/dist/operations/services/local-dev.d.ts +9 -0
  41. package/dist/operations/services/local-dev.js +106 -0
  42. package/dist/operations/services/mailpit-runtime.d.ts +4 -0
  43. package/dist/operations/services/mailpit-runtime.js +59 -0
  44. package/dist/operations/services/railway-deploy.d.ts +53 -0
  45. package/dist/operations/services/railway-deploy.js +123 -0
  46. package/dist/operations/services/runtime-paths.d.ts +19 -0
  47. package/dist/operations/services/runtime-paths.js +54 -0
  48. package/dist/operations/services/runtime-tools.d.ts +117 -0
  49. package/dist/operations/services/runtime-tools.js +358 -0
  50. package/dist/operations/services/save-deploy-preflight.d.ts +34 -0
  51. package/dist/operations/services/save-deploy-preflight.js +76 -0
  52. package/dist/operations/services/template-registry.d.ts +88 -0
  53. package/dist/operations/services/template-registry.js +407 -0
  54. package/dist/operations/services/watch-dev.d.ts +21 -0
  55. package/dist/operations/services/watch-dev.js +284 -0
  56. package/dist/operations/services/workspace-preflight.d.ts +40 -0
  57. package/dist/operations/services/workspace-preflight.js +165 -0
  58. package/dist/operations/services/workspace-save.d.ts +42 -0
  59. package/dist/operations/services/workspace-save.js +235 -0
  60. package/dist/operations/services/workspace-tools.d.ts +16 -0
  61. package/dist/operations/services/workspace-tools.js +270 -0
  62. package/dist/operations-registry.d.ts +5 -0
  63. package/dist/operations-registry.js +68 -0
  64. package/dist/operations-types.d.ts +71 -0
  65. package/dist/operations-types.js +17 -0
  66. package/dist/operations.d.ts +6 -0
  67. package/dist/operations.js +16 -0
  68. package/dist/platform/books-data.d.ts +1 -0
  69. package/dist/platform/books-data.js +1 -0
  70. package/dist/platform/contracts.d.ts +158 -0
  71. package/dist/platform/contracts.js +0 -0
  72. package/dist/platform/deploy/config.d.ts +4 -0
  73. package/dist/platform/deploy/config.js +222 -0
  74. package/dist/platform/deploy-config.d.ts +1 -0
  75. package/dist/platform/deploy-config.js +1 -0
  76. package/dist/platform/env.yaml +394 -0
  77. package/dist/platform/environment.d.ts +130 -0
  78. package/dist/platform/environment.js +331 -0
  79. package/dist/platform/plugin.d.ts +2 -0
  80. package/dist/platform/plugin.js +4 -0
  81. package/dist/platform/plugins/constants.d.ts +22 -0
  82. package/dist/platform/plugins/constants.js +29 -0
  83. package/dist/platform/plugins/plugin.d.ts +51 -0
  84. package/dist/platform/plugins/plugin.js +6 -0
  85. package/dist/platform/plugins/runtime.d.ts +35 -0
  86. package/dist/platform/plugins/runtime.js +142 -0
  87. package/dist/platform/plugins.d.ts +5 -0
  88. package/dist/platform/plugins.js +16 -0
  89. package/dist/platform/site-config-schema.js +1 -0
  90. package/dist/platform/tenant/config.d.ts +9 -0
  91. package/dist/platform/tenant/config.js +154 -0
  92. package/dist/platform/tenant/runtime-config.d.ts +4 -0
  93. package/dist/platform/tenant/runtime-config.js +20 -0
  94. package/dist/platform/tenant-config.d.ts +1 -0
  95. package/dist/platform/tenant-config.js +1 -0
  96. package/dist/platform/utils/books-data.d.ts +29 -0
  97. package/dist/platform/utils/books-data.js +82 -0
  98. package/dist/platform/utils/site-config-schema.js +321 -0
  99. package/dist/remote.d.ts +175 -0
  100. package/dist/remote.js +202 -0
  101. package/dist/runtime.js +50 -3
  102. package/dist/scripts/aggregate-book.js +121 -0
  103. package/dist/scripts/build-dist.js +57 -13
  104. package/dist/scripts/build-tenant-worker.js +36 -0
  105. package/dist/scripts/cleanup-markdown.js +373 -0
  106. package/dist/scripts/cli-test-fixtures.js +48 -0
  107. package/dist/scripts/config-treeseed.js +95 -0
  108. package/dist/scripts/ensure-mailpit.js +29 -0
  109. package/dist/scripts/local-dev.js +129 -0
  110. package/dist/scripts/logs-mailpit.js +2 -0
  111. package/dist/scripts/patch-starlight-content-path.js +172 -0
  112. package/dist/scripts/release-verify.js +34 -5
  113. package/dist/scripts/run-fixture-astro-command.js +18 -0
  114. package/dist/scripts/scaffold-site.js +65 -0
  115. package/dist/scripts/stop-mailpit.js +5 -0
  116. package/dist/scripts/sync-dev-vars.js +6 -0
  117. package/dist/scripts/sync-template.js +20 -0
  118. package/dist/scripts/template-catalog.test.js +100 -0
  119. package/dist/scripts/template-command.js +31 -0
  120. package/dist/scripts/tenant-astro-command.js +3 -0
  121. package/dist/scripts/tenant-build.js +16 -0
  122. package/dist/scripts/tenant-check.js +7 -0
  123. package/dist/scripts/tenant-d1-migrate-local.js +11 -0
  124. package/dist/scripts/tenant-deploy.js +180 -0
  125. package/dist/scripts/tenant-destroy.js +104 -0
  126. package/dist/scripts/tenant-dev.js +171 -0
  127. package/dist/scripts/tenant-lint.js +4 -0
  128. package/dist/scripts/tenant-test.js +4 -0
  129. package/dist/scripts/test-cloudflare-local.js +212 -0
  130. package/dist/scripts/test-scaffold.js +314 -0
  131. package/dist/scripts/test-smoke.js +71 -13
  132. package/dist/scripts/treeseed-assert-release-tag-version.js +21 -0
  133. package/dist/scripts/treeseed-build-dist.js +134 -0
  134. package/dist/scripts/treeseed-publish-package.js +19 -0
  135. package/dist/scripts/treeseed-release-verify.js +131 -0
  136. package/dist/scripts/treeseed-run-ts.js +45 -0
  137. package/dist/scripts/validate-templates.js +6 -0
  138. package/dist/scripts/verify-driver.js +29 -0
  139. package/dist/scripts/workflow-commands.test.js +39 -0
  140. package/dist/scripts/workspace-close.js +24 -0
  141. package/dist/scripts/workspace-command-e2e.js +718 -0
  142. package/dist/scripts/workspace-lint.js +9 -0
  143. package/dist/scripts/workspace-preflight.js +22 -0
  144. package/dist/scripts/workspace-publish-changed-packages.js +16 -0
  145. package/dist/scripts/workspace-release-verify.js +81 -0
  146. package/dist/scripts/workspace-release.js +42 -0
  147. package/dist/scripts/workspace-save.js +124 -0
  148. package/dist/scripts/workspace-start-warning.js +3 -0
  149. package/dist/scripts/workspace-start.js +71 -0
  150. package/dist/scripts/workspace-test-unit.js +4 -0
  151. package/dist/scripts/workspace-test.js +11 -0
  152. package/dist/sdk-fields.d.ts +11 -0
  153. package/dist/sdk-fields.js +169 -0
  154. package/dist/sdk-filters.d.ts +4 -0
  155. package/dist/sdk-filters.js +12 -15
  156. package/dist/sdk-types.d.ts +796 -0
  157. package/dist/sdk-types.js +7 -1
  158. package/dist/sdk-version.d.ts +2 -0
  159. package/dist/sdk-version.js +42 -0
  160. package/dist/sdk.d.ts +215 -0
  161. package/dist/sdk.js +235 -11
  162. package/dist/stores/cursor-store.js +9 -3
  163. package/dist/stores/lease-store.js +8 -2
  164. package/dist/{src/stores → stores}/message-store.d.ts +1 -1
  165. package/dist/stores/message-store.js +27 -3
  166. package/dist/stores/operational-store.d.ts +24 -0
  167. package/dist/stores/operational-store.js +279 -0
  168. package/dist/stores/run-store.js +8 -1
  169. package/dist/stores/subscription-store.js +7 -5
  170. package/dist/template-catalog.d.ts +13 -0
  171. package/dist/template-catalog.js +141 -0
  172. package/dist/treeseed/services/compose.yml +7 -0
  173. package/dist/treeseed/template-catalog/catalog.fixture.json +55 -0
  174. package/dist/treeseed/template-catalog/templates/starter-basic/template/astro.config.d.ts +2 -0
  175. package/dist/treeseed/template-catalog/templates/starter-basic/template/astro.config.ts +3 -0
  176. package/dist/treeseed/template-catalog/templates/starter-basic/template/package.json +32 -0
  177. package/dist/treeseed/template-catalog/templates/starter-basic/template/src/config.yaml +40 -0
  178. package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content/empty/.gitkeep +1 -0
  179. package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content/knowledge/handbook/index.mdx +11 -0
  180. package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content/pages/welcome.mdx +11 -0
  181. package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content.config.d.ts +1 -0
  182. package/dist/treeseed/template-catalog/templates/starter-basic/template/src/content.config.ts +3 -0
  183. package/dist/treeseed/template-catalog/templates/starter-basic/template/src/env.yaml +1 -0
  184. package/dist/treeseed/template-catalog/templates/starter-basic/template/src/manifest.yaml +19 -0
  185. package/dist/treeseed/template-catalog/templates/starter-basic/template/treeseed.site.yaml +26 -0
  186. package/dist/treeseed/template-catalog/templates/starter-basic/template/tsconfig.json +9 -0
  187. package/dist/treeseed/template-catalog/templates/starter-basic/template.config.json +90 -0
  188. package/dist/verification.d.ts +20 -0
  189. package/dist/verification.js +98 -0
  190. package/dist/workflow/operations.d.ts +396 -0
  191. package/dist/workflow/operations.js +841 -0
  192. package/dist/workflow-state.d.ts +56 -0
  193. package/dist/workflow-state.js +195 -0
  194. package/dist/workflow-support.d.ts +9 -0
  195. package/dist/workflow-support.js +176 -0
  196. package/dist/workflow.d.ts +111 -0
  197. package/dist/workflow.js +97 -0
  198. package/package.json +97 -5
  199. package/scripts/verify-driver.mjs +29 -0
  200. package/dist/scripts/.ts-run-1775616845195-odh4xzphk3l.js +0 -22
  201. package/dist/scripts/.ts-run-1775616848931-9386s6kwrl.js +0 -126
  202. package/dist/scripts/assert-release-tag-version.d.ts +0 -1
  203. package/dist/scripts/build-dist.d.ts +0 -1
  204. package/dist/scripts/package-tools.d.ts +0 -15
  205. package/dist/scripts/publish-package.d.ts +0 -1
  206. package/dist/scripts/release-verify.d.ts +0 -1
  207. package/dist/scripts/test-smoke.d.ts +0 -1
  208. package/dist/src/index.d.ts +0 -6
  209. package/dist/src/model-registry.d.ts +0 -4
  210. package/dist/src/sdk-filters.d.ts +0 -4
  211. package/dist/src/sdk-types.d.ts +0 -285
  212. package/dist/src/sdk.d.ts +0 -109
  213. package/dist/test/test-fixture.d.ts +0 -1
  214. package/dist/test/utils/envelopes.test.d.ts +0 -1
  215. package/dist/test/utils/sdk.test.d.ts +0 -1
  216. package/dist/vitest.config.d.ts +0 -2
  217. /package/dist/{src/frontmatter.d.ts → frontmatter.d.ts} +0 -0
  218. /package/dist/{src/git-runtime.d.ts → git-runtime.d.ts} +0 -0
  219. /package/dist/{src/runtime.d.ts → runtime.d.ts} +0 -0
  220. /package/dist/{src/stores → stores}/cursor-store.d.ts +0 -0
  221. /package/dist/{src/stores → stores}/envelopes.d.ts +0 -0
  222. /package/dist/{src/stores → stores}/helpers.d.ts +0 -0
  223. /package/dist/{src/stores → stores}/lease-store.d.ts +0 -0
  224. /package/dist/{src/stores → stores}/run-store.d.ts +0 -0
  225. /package/dist/{src/stores → stores}/subscription-store.d.ts +0 -0
  226. /package/dist/{src/types → types}/agents.d.ts +0 -0
  227. /package/dist/{src/types → types}/cloudflare.d.ts +0 -0
  228. /package/dist/{src/wrangler-d1.d.ts → wrangler-d1.d.ts} +0 -0
@@ -0,0 +1,396 @@
1
+ import { resolveTreeseedWorkflowState } from '../workflow-state.ts';
2
+ import type { TreeseedCloseInput, TreeseedConfigInput, TreeseedDestroyInput, TreeseedReleaseInput, TreeseedSaveInput, TreeseedStageInput, TreeseedSwitchInput, TreeseedTaskBranchMetadata, TreeseedWorkflowContext, TreeseedWorkflowDevInput, TreeseedWorkflowNextStep, TreeseedWorkflowOperationId, TreeseedWorkflowResult } from '../workflow.ts';
3
+ type WorkflowWrite = NonNullable<TreeseedWorkflowContext['write']>;
4
+ export type TreeseedWorkflowErrorCode = 'validation_failed' | 'merge_conflict' | 'missing_runtime_auth' | 'deployment_timeout' | 'confirmation_required' | 'unsupported_transport' | 'unsupported_state';
5
+ export declare class TreeseedWorkflowError extends Error {
6
+ code: TreeseedWorkflowErrorCode;
7
+ operation: TreeseedWorkflowOperationId;
8
+ details?: Record<string, unknown>;
9
+ exitCode?: number;
10
+ constructor(operation: TreeseedWorkflowOperationId, code: TreeseedWorkflowErrorCode, message: string, options?: {
11
+ details?: Record<string, unknown>;
12
+ exitCode?: number;
13
+ });
14
+ }
15
+ export type WorkflowOperationHelpers = {
16
+ context: TreeseedWorkflowContext;
17
+ cwd(): string;
18
+ write: WorkflowWrite;
19
+ runStatus(): Promise<TreeseedWorkflowResult<ReturnType<typeof resolveTreeseedWorkflowState>>>;
20
+ runTasks(): Promise<TreeseedWorkflowResult<{
21
+ tasks: TreeseedTaskBranchMetadata[];
22
+ }>>;
23
+ };
24
+ type TreeseedRepairAction = {
25
+ id: string;
26
+ detail: string;
27
+ };
28
+ export declare function workflowStatus(helpers: WorkflowOperationHelpers): Promise<TreeseedWorkflowResult<import("../workflow-state.ts").TreeseedWorkflowState>>;
29
+ export declare function workflowTasks(helpers: WorkflowOperationHelpers): Promise<TreeseedWorkflowResult<{
30
+ tasks: TreeseedTaskBranchMetadata[];
31
+ }>>;
32
+ export declare function workflowConfig(helpers: WorkflowOperationHelpers, input?: TreeseedConfigInput): Promise<{
33
+ ok: true;
34
+ operation: "config";
35
+ payload: {
36
+ mode: string;
37
+ scopes: ("local" | "staging" | "prod")[];
38
+ sync: "all" | "cloudflare" | "railway" | "none" | "github";
39
+ secretsRevealed: boolean;
40
+ reports: {
41
+ scope: "local" | "staging" | "prod";
42
+ environmentReport: string;
43
+ providerReport: string;
44
+ }[];
45
+ repairs: TreeseedRepairAction[];
46
+ preflight: {
47
+ ok: boolean;
48
+ requireAuth: boolean;
49
+ missingCommands: string[];
50
+ failingAuth: string[];
51
+ checks: {
52
+ commands: {
53
+ [k: string]: {
54
+ installed: boolean;
55
+ path: string | null;
56
+ };
57
+ };
58
+ auth: {};
59
+ };
60
+ };
61
+ toolHealth: {
62
+ githubCli: {
63
+ name: any;
64
+ available: any;
65
+ detail: any;
66
+ };
67
+ ghActExtension: {
68
+ name: any;
69
+ available: any;
70
+ detail: any;
71
+ };
72
+ dockerDaemon: {
73
+ name: any;
74
+ available: any;
75
+ detail: any;
76
+ };
77
+ actVerificationReady: any;
78
+ remediation: string[];
79
+ };
80
+ keyPath?: undefined;
81
+ configPath?: undefined;
82
+ result?: undefined;
83
+ state?: undefined;
84
+ };
85
+ nextSteps: TreeseedWorkflowNextStep[];
86
+ } | {
87
+ ok: true;
88
+ operation: "config";
89
+ payload: {
90
+ mode: string;
91
+ scopes: ("local" | "staging" | "prod")[];
92
+ sync: "all" | "cloudflare" | "railway" | "none" | "github";
93
+ keyPath: string;
94
+ repairs: TreeseedRepairAction[];
95
+ preflight: {
96
+ ok: boolean;
97
+ requireAuth: boolean;
98
+ missingCommands: string[];
99
+ failingAuth: string[];
100
+ checks: {
101
+ commands: {
102
+ [k: string]: {
103
+ installed: boolean;
104
+ path: string | null;
105
+ };
106
+ };
107
+ auth: {};
108
+ };
109
+ };
110
+ toolHealth: {
111
+ githubCli: {
112
+ name: any;
113
+ available: any;
114
+ detail: any;
115
+ };
116
+ ghActExtension: {
117
+ name: any;
118
+ available: any;
119
+ detail: any;
120
+ };
121
+ dockerDaemon: {
122
+ name: any;
123
+ available: any;
124
+ detail: any;
125
+ };
126
+ actVerificationReady: any;
127
+ remediation: string[];
128
+ };
129
+ secretsRevealed?: undefined;
130
+ reports?: undefined;
131
+ configPath?: undefined;
132
+ result?: undefined;
133
+ state?: undefined;
134
+ };
135
+ nextSteps: TreeseedWorkflowNextStep[];
136
+ } | {
137
+ ok: true;
138
+ operation: "config";
139
+ payload: {
140
+ mode: string;
141
+ scopes: ("local" | "staging" | "prod")[];
142
+ sync: "all" | "cloudflare" | "railway" | "none" | "github";
143
+ configPath: string;
144
+ keyPath: string;
145
+ repairs: TreeseedRepairAction[];
146
+ preflight: {
147
+ ok: boolean;
148
+ requireAuth: boolean;
149
+ missingCommands: string[];
150
+ failingAuth: string[];
151
+ checks: {
152
+ commands: {
153
+ [k: string]: {
154
+ installed: boolean;
155
+ path: string | null;
156
+ };
157
+ };
158
+ auth: {};
159
+ };
160
+ };
161
+ toolHealth: {
162
+ githubCli: {
163
+ name: any;
164
+ available: any;
165
+ detail: any;
166
+ };
167
+ ghActExtension: {
168
+ name: any;
169
+ available: any;
170
+ detail: any;
171
+ };
172
+ dockerDaemon: {
173
+ name: any;
174
+ available: any;
175
+ detail: any;
176
+ };
177
+ actVerificationReady: any;
178
+ remediation: string[];
179
+ };
180
+ result: {
181
+ scopes: string[];
182
+ updated: never[];
183
+ synced: {};
184
+ initialized: never[];
185
+ connectionChecks: never[];
186
+ };
187
+ state: import("../workflow-state.ts").TreeseedWorkflowState;
188
+ secretsRevealed?: undefined;
189
+ reports?: undefined;
190
+ };
191
+ nextSteps: TreeseedWorkflowNextStep[];
192
+ }>;
193
+ export declare function workflowSwitch(helpers: WorkflowOperationHelpers, input: TreeseedSwitchInput): Promise<{
194
+ ok: boolean;
195
+ operation: string;
196
+ payload: {
197
+ branchName: string;
198
+ created: boolean;
199
+ resumed: boolean;
200
+ previewRequested: boolean;
201
+ preview: {
202
+ enabled: boolean;
203
+ url: string | null;
204
+ lastDeploymentTimestamp: string | null;
205
+ };
206
+ previewResult: Record<string, unknown> | null;
207
+ state: import("../workflow-state.ts").TreeseedWorkflowState;
208
+ };
209
+ nextSteps: TreeseedWorkflowNextStep[];
210
+ }>;
211
+ export declare function workflowDev(helpers: WorkflowOperationHelpers, input?: TreeseedWorkflowDevInput): Promise<{
212
+ ok: true;
213
+ operation: "dev";
214
+ payload: {
215
+ watch: boolean;
216
+ background: boolean;
217
+ command: string;
218
+ args: string[];
219
+ cwd: string;
220
+ pid: number | null;
221
+ exitCode: null;
222
+ };
223
+ } | {
224
+ ok: boolean;
225
+ operation: "dev";
226
+ payload: {
227
+ watch: boolean;
228
+ background: boolean;
229
+ command: string;
230
+ args: string[];
231
+ cwd: string;
232
+ pid: null;
233
+ exitCode: number;
234
+ };
235
+ }>;
236
+ export declare function workflowSave(helpers: WorkflowOperationHelpers, input: TreeseedSaveInput): Promise<{
237
+ ok: boolean;
238
+ operation: string;
239
+ payload: {
240
+ branch: string;
241
+ scope: string;
242
+ hotfix: boolean;
243
+ message: string;
244
+ commitSha: string;
245
+ previewRefresh: Record<string, unknown> | null;
246
+ };
247
+ nextSteps: TreeseedWorkflowNextStep[];
248
+ }>;
249
+ export declare function workflowClose(helpers: WorkflowOperationHelpers, input: TreeseedCloseInput): Promise<{
250
+ ok: boolean;
251
+ operation: string;
252
+ payload: {
253
+ branchName: string;
254
+ message: string;
255
+ deprecatedTag: {
256
+ tagName: string;
257
+ head: string;
258
+ };
259
+ previewCleanup: {
260
+ performed: boolean;
261
+ state: any;
262
+ } | {
263
+ performed: boolean;
264
+ };
265
+ remoteDeleted: boolean;
266
+ localDeleted: boolean;
267
+ };
268
+ nextSteps: TreeseedWorkflowNextStep[];
269
+ }>;
270
+ export declare function workflowStage(helpers: WorkflowOperationHelpers, input: TreeseedStageInput): Promise<{
271
+ ok: boolean;
272
+ operation: string;
273
+ payload: {
274
+ branchName: string;
275
+ mergeTarget: string;
276
+ message: string;
277
+ deprecatedTag: {
278
+ tagName: string;
279
+ head: string;
280
+ };
281
+ stagingWait: {
282
+ status: string;
283
+ reason: string;
284
+ branch?: undefined;
285
+ } | {
286
+ status: string;
287
+ branch: string;
288
+ reason?: undefined;
289
+ };
290
+ previewCleanup: {
291
+ performed: boolean;
292
+ state: any;
293
+ } | {
294
+ performed: boolean;
295
+ };
296
+ remoteDeleted: boolean;
297
+ localDeleted: boolean;
298
+ };
299
+ nextSteps: TreeseedWorkflowNextStep[];
300
+ }>;
301
+ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input: TreeseedReleaseInput): Promise<{
302
+ ok: boolean;
303
+ operation: string;
304
+ payload: {
305
+ level: "patch" | "major" | "minor";
306
+ rootVersion: string;
307
+ releaseTag: string;
308
+ stagingBranch: string;
309
+ productionBranch: string;
310
+ touchedPackages: unknown[];
311
+ };
312
+ nextSteps: TreeseedWorkflowNextStep[];
313
+ }>;
314
+ export declare function workflowDestroy(helpers: WorkflowOperationHelpers, input: TreeseedDestroyInput): Promise<{
315
+ ok: boolean;
316
+ operation: string;
317
+ payload: {
318
+ scope: string;
319
+ dryRun: boolean;
320
+ force: boolean;
321
+ destroyRemote: boolean;
322
+ destroyLocal: boolean;
323
+ removeBuildArtifacts: boolean;
324
+ expectedConfirmation: string;
325
+ stateSummary: {
326
+ workerName: any;
327
+ lastDeploymentTimestamp: any;
328
+ };
329
+ remoteResult: {
330
+ target: {
331
+ kind: string;
332
+ scope: string;
333
+ } | {
334
+ kind: string;
335
+ branchName: string;
336
+ };
337
+ summary: {
338
+ target: any;
339
+ workerName: any;
340
+ siteUrl: any;
341
+ accountId: any;
342
+ formGuardKv: any;
343
+ sessionKv: any;
344
+ siteDataDb: any;
345
+ };
346
+ operations: {
347
+ worker: {
348
+ status: string;
349
+ name: any;
350
+ };
351
+ formGuard: {
352
+ status: string;
353
+ id: any;
354
+ preview?: undefined;
355
+ } | {
356
+ status: string;
357
+ id: any;
358
+ preview: boolean;
359
+ };
360
+ formGuardPreview: {
361
+ status: string;
362
+ id: any;
363
+ preview?: undefined;
364
+ } | {
365
+ status: string;
366
+ id: any;
367
+ preview: boolean;
368
+ } | null;
369
+ session: {
370
+ status: string;
371
+ id: any;
372
+ preview?: undefined;
373
+ } | {
374
+ status: string;
375
+ id: any;
376
+ preview: boolean;
377
+ };
378
+ sessionPreview: {
379
+ status: string;
380
+ id: any;
381
+ preview?: undefined;
382
+ } | {
383
+ status: string;
384
+ id: any;
385
+ preview: boolean;
386
+ } | null;
387
+ database: {
388
+ status: string;
389
+ name: any;
390
+ };
391
+ };
392
+ } | null;
393
+ };
394
+ nextSteps: TreeseedWorkflowNextStep[];
395
+ }>;
396
+ export {};