@treeseed/sdk 0.4.6 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/operations/providers/default.js +1 -0
- package/dist/operations/services/config-runtime.d.ts +121 -26
- package/dist/operations/services/config-runtime.js +330 -196
- package/dist/operations/services/export-runtime.d.ts +18 -0
- package/dist/operations/services/export-runtime.js +136 -0
- package/dist/operations/services/template-registry.d.ts +2 -0
- package/dist/operations/services/template-registry.js +55 -6
- package/dist/operations-registry.js +1 -0
- package/dist/operations-types.d.ts +1 -1
- package/dist/platform/book-export.d.ts +78 -0
- package/dist/platform/book-export.js +449 -0
- package/dist/platform/contracts.d.ts +5 -0
- package/dist/platform/deploy-config.d.ts +2 -0
- package/dist/platform/deploy-config.js +30 -2
- package/dist/platform/env.yaml +5 -0
- package/dist/platform/environment.d.ts +10 -1
- package/dist/platform/environment.js +82 -6
- package/dist/scripts/aggregate-book.js +13 -118
- package/dist/scripts/config-treeseed.js +18 -27
- package/dist/sdk-types.d.ts +1 -0
- package/dist/template-catalog.js +1 -0
- package/dist/workflow/operations.d.ts +293 -177
- package/dist/workflow/operations.js +302 -188
- package/dist/workflow/policy.d.ts +12 -0
- package/dist/workflow/policy.js +58 -0
- package/dist/workflow-state.d.ts +19 -1
- package/dist/workflow-state.js +57 -39
- package/dist/workflow-support.d.ts +2 -1
- package/dist/workflow-support.js +14 -6
- package/dist/workflow.d.ts +14 -1
- package/dist/workflow.js +8 -1
- package/package.json +6 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { checkTreeseedProviderConnections } from '../operations/services/config-runtime.ts';
|
|
1
2
|
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
|
+
import type { TreeseedCloseInput, TreeseedConfigInput, TreeseedDestroyInput, TreeseedExportInput, TreeseedReleaseInput, TreeseedSaveInput, TreeseedStageInput, TreeseedSwitchInput, TreeseedTaskBranchMetadata, TreeseedWorkflowContext, TreeseedWorkflowDevInput, TreeseedWorkflowNextStep, TreeseedWorkflowOperationId, TreeseedWorkflowResult } from '../workflow.ts';
|
|
3
4
|
type WorkflowWrite = NonNullable<TreeseedWorkflowContext['write']>;
|
|
5
|
+
type WorkflowStatePayload = ReturnType<typeof resolveTreeseedWorkflowState>;
|
|
4
6
|
export type TreeseedWorkflowErrorCode = 'validation_failed' | 'merge_conflict' | 'missing_runtime_auth' | 'deployment_timeout' | 'confirmation_required' | 'unsupported_transport' | 'unsupported_state';
|
|
5
7
|
export declare class TreeseedWorkflowError extends Error {
|
|
6
8
|
code: TreeseedWorkflowErrorCode;
|
|
@@ -21,77 +23,136 @@ export type WorkflowOperationHelpers = {
|
|
|
21
23
|
tasks: TreeseedTaskBranchMetadata[];
|
|
22
24
|
}>>;
|
|
23
25
|
};
|
|
24
|
-
type TreeseedRepairAction = {
|
|
25
|
-
id: string;
|
|
26
|
-
detail: string;
|
|
27
|
-
};
|
|
28
26
|
export declare function workflowStatus(helpers: WorkflowOperationHelpers): Promise<TreeseedWorkflowResult<import("../workflow-state.ts").TreeseedWorkflowState>>;
|
|
29
27
|
export declare function workflowTasks(helpers: WorkflowOperationHelpers): Promise<TreeseedWorkflowResult<{
|
|
30
28
|
tasks: TreeseedTaskBranchMetadata[];
|
|
31
29
|
}>>;
|
|
32
|
-
export declare function workflowConfig(helpers: WorkflowOperationHelpers, input?: TreeseedConfigInput): Promise<{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
export declare function workflowConfig(helpers: WorkflowOperationHelpers, input?: TreeseedConfigInput): Promise<TreeseedWorkflowResult<{
|
|
31
|
+
mode: string;
|
|
32
|
+
scopes: ("local" | "staging" | "prod")[];
|
|
33
|
+
sync: "all" | "cloudflare" | "railway" | "none" | "github";
|
|
34
|
+
configPath: string;
|
|
35
|
+
keyPath: string;
|
|
36
|
+
repairs: import("../operations/services/config-runtime.ts").TreeseedRepairAction[];
|
|
37
|
+
preflight: {
|
|
38
|
+
ok: boolean;
|
|
39
|
+
requireAuth: boolean;
|
|
40
|
+
missingCommands: string[];
|
|
41
|
+
failingAuth: string[];
|
|
42
|
+
checks: {
|
|
43
|
+
commands: {
|
|
44
|
+
[k: string]: {
|
|
45
|
+
installed: boolean;
|
|
46
|
+
path: string | null;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
auth: {};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
toolHealth: {
|
|
53
|
+
githubCli: {
|
|
54
|
+
name: any;
|
|
55
|
+
available: any;
|
|
56
|
+
detail: any;
|
|
57
|
+
};
|
|
58
|
+
ghActExtension: {
|
|
59
|
+
name: any;
|
|
60
|
+
available: any;
|
|
61
|
+
detail: any;
|
|
62
|
+
};
|
|
63
|
+
dockerDaemon: {
|
|
64
|
+
name: any;
|
|
65
|
+
available: any;
|
|
66
|
+
detail: any;
|
|
67
|
+
};
|
|
68
|
+
actVerificationReady: any;
|
|
69
|
+
remediation: string[];
|
|
70
|
+
};
|
|
71
|
+
context: import("../operations/services/config-runtime.ts").TreeseedCollectedConfigContext;
|
|
72
|
+
result: {
|
|
37
73
|
scopes: ("local" | "staging" | "prod")[];
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
74
|
+
synced: Record<string, unknown>;
|
|
75
|
+
initialized: Array<{
|
|
76
|
+
scope: import("../operations/services/config-runtime.ts").TreeseedConfigScope;
|
|
77
|
+
secrets: number;
|
|
78
|
+
target: string;
|
|
79
|
+
}>;
|
|
80
|
+
connectionChecks: ReturnType<typeof checkTreeseedProviderConnections>[];
|
|
81
|
+
validationByScope: Record<import("../operations/services/config-runtime.ts").TreeseedConfigScope, ReturnType<typeof import("../platform/environment.ts").validateTreeseedEnvironmentValues>>;
|
|
82
|
+
updated: {
|
|
83
|
+
scope: import("../operations/services/config-runtime.ts").TreeseedConfigScope | "shared";
|
|
84
|
+
id: string;
|
|
85
|
+
reused: boolean;
|
|
86
|
+
cleared: boolean;
|
|
44
87
|
}[];
|
|
45
|
-
|
|
46
|
-
|
|
88
|
+
envFiles: {
|
|
89
|
+
envLocalPath: string;
|
|
90
|
+
devVarsPath: string;
|
|
91
|
+
} | null;
|
|
92
|
+
};
|
|
93
|
+
reports: {
|
|
94
|
+
scope: "local" | "staging" | "prod";
|
|
95
|
+
environment: {
|
|
96
|
+
scope: "local" | "staging" | "prod";
|
|
97
|
+
revealSecrets: boolean;
|
|
98
|
+
entries: any;
|
|
99
|
+
};
|
|
100
|
+
provider: {
|
|
101
|
+
scope: string;
|
|
47
102
|
ok: boolean;
|
|
48
|
-
requireAuth: boolean;
|
|
49
|
-
missingCommands: string[];
|
|
50
|
-
failingAuth: string[];
|
|
51
103
|
checks: {
|
|
52
|
-
|
|
53
|
-
|
|
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;
|
|
104
|
+
provider: any;
|
|
105
|
+
ready: any;
|
|
75
106
|
detail: any;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
|
|
107
|
+
}[];
|
|
108
|
+
};
|
|
109
|
+
}[];
|
|
110
|
+
state: import("../workflow-state.ts").TreeseedWorkflowState;
|
|
111
|
+
readiness: {
|
|
112
|
+
local: {
|
|
113
|
+
ready: boolean;
|
|
114
|
+
blockers: string[];
|
|
115
|
+
warnings: string[];
|
|
116
|
+
};
|
|
117
|
+
staging: {
|
|
118
|
+
ready: boolean;
|
|
119
|
+
blockers: string[];
|
|
120
|
+
warnings: string[];
|
|
121
|
+
};
|
|
122
|
+
prod: {
|
|
123
|
+
ready: boolean;
|
|
124
|
+
blockers: string[];
|
|
125
|
+
warnings: string[];
|
|
79
126
|
};
|
|
80
|
-
keyPath?: undefined;
|
|
81
|
-
configPath?: undefined;
|
|
82
|
-
result?: undefined;
|
|
83
|
-
state?: undefined;
|
|
84
127
|
};
|
|
85
|
-
|
|
86
|
-
|
|
128
|
+
} & {
|
|
129
|
+
finalState: WorkflowStatePayload;
|
|
130
|
+
}> | {
|
|
87
131
|
ok: true;
|
|
88
132
|
operation: "config";
|
|
89
133
|
payload: {
|
|
90
134
|
mode: string;
|
|
91
135
|
scopes: ("local" | "staging" | "prod")[];
|
|
92
136
|
sync: "all" | "cloudflare" | "railway" | "none" | "github";
|
|
93
|
-
|
|
94
|
-
|
|
137
|
+
secretsRevealed: boolean;
|
|
138
|
+
reports: {
|
|
139
|
+
scope: "local" | "staging" | "prod";
|
|
140
|
+
environment: {
|
|
141
|
+
scope: "local" | "staging" | "prod";
|
|
142
|
+
revealSecrets: boolean;
|
|
143
|
+
entries: any;
|
|
144
|
+
};
|
|
145
|
+
provider: {
|
|
146
|
+
scope: string;
|
|
147
|
+
ok: boolean;
|
|
148
|
+
checks: {
|
|
149
|
+
provider: any;
|
|
150
|
+
ready: any;
|
|
151
|
+
detail: any;
|
|
152
|
+
}[];
|
|
153
|
+
};
|
|
154
|
+
}[];
|
|
155
|
+
repairs: import("../operations/services/config-runtime.ts").TreeseedRepairAction[];
|
|
95
156
|
preflight: {
|
|
96
157
|
ok: boolean;
|
|
97
158
|
requireAuth: boolean;
|
|
@@ -126,11 +187,7 @@ export declare function workflowConfig(helpers: WorkflowOperationHelpers, input?
|
|
|
126
187
|
actVerificationReady: any;
|
|
127
188
|
remediation: string[];
|
|
128
189
|
};
|
|
129
|
-
|
|
130
|
-
reports?: undefined;
|
|
131
|
-
configPath?: undefined;
|
|
132
|
-
result?: undefined;
|
|
133
|
-
state?: undefined;
|
|
190
|
+
keyPath?: undefined;
|
|
134
191
|
};
|
|
135
192
|
nextSteps: TreeseedWorkflowNextStep[];
|
|
136
193
|
} | {
|
|
@@ -140,9 +197,8 @@ export declare function workflowConfig(helpers: WorkflowOperationHelpers, input?
|
|
|
140
197
|
mode: string;
|
|
141
198
|
scopes: ("local" | "staging" | "prod")[];
|
|
142
199
|
sync: "all" | "cloudflare" | "railway" | "none" | "github";
|
|
143
|
-
configPath: string;
|
|
144
200
|
keyPath: string;
|
|
145
|
-
repairs: TreeseedRepairAction[];
|
|
201
|
+
repairs: import("../operations/services/config-runtime.ts").TreeseedRepairAction[];
|
|
146
202
|
preflight: {
|
|
147
203
|
ok: boolean;
|
|
148
204
|
requireAuth: boolean;
|
|
@@ -177,140 +233,200 @@ export declare function workflowConfig(helpers: WorkflowOperationHelpers, input?
|
|
|
177
233
|
actVerificationReady: any;
|
|
178
234
|
remediation: string[];
|
|
179
235
|
};
|
|
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
236
|
secretsRevealed?: undefined;
|
|
189
237
|
reports?: undefined;
|
|
190
238
|
};
|
|
191
239
|
nextSteps: TreeseedWorkflowNextStep[];
|
|
192
240
|
}>;
|
|
193
|
-
export declare function
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
};
|
|
206
|
-
previewResult: Record<string, unknown> | null;
|
|
207
|
-
state: import("../workflow-state.ts").TreeseedWorkflowState;
|
|
241
|
+
export declare function workflowExport(helpers: WorkflowOperationHelpers, input?: TreeseedExportInput): Promise<TreeseedWorkflowResult<import("../operations/services/export-runtime.ts").TreeseedExportResult & {
|
|
242
|
+
finalState: WorkflowStatePayload;
|
|
243
|
+
}>>;
|
|
244
|
+
export declare function workflowSwitch(helpers: WorkflowOperationHelpers, input: TreeseedSwitchInput): Promise<TreeseedWorkflowResult<{
|
|
245
|
+
branchName: string;
|
|
246
|
+
created: boolean;
|
|
247
|
+
resumed: boolean;
|
|
248
|
+
previewRequested: boolean;
|
|
249
|
+
preview: {
|
|
250
|
+
enabled: boolean;
|
|
251
|
+
url: string | null;
|
|
252
|
+
lastDeploymentTimestamp: string | null;
|
|
208
253
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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;
|
|
254
|
+
previewResult: Record<string, unknown> | null;
|
|
255
|
+
preconditions: {
|
|
256
|
+
cleanWorktreeRequired: boolean;
|
|
257
|
+
baseBranch: string;
|
|
222
258
|
};
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
259
|
+
} & {
|
|
260
|
+
finalState: WorkflowStatePayload;
|
|
261
|
+
}>>;
|
|
262
|
+
export declare function workflowDev(helpers: WorkflowOperationHelpers, input?: TreeseedWorkflowDevInput): Promise<TreeseedWorkflowResult<{
|
|
263
|
+
watch: boolean;
|
|
264
|
+
background: boolean;
|
|
265
|
+
command: string;
|
|
266
|
+
args: string[];
|
|
267
|
+
cwd: string;
|
|
268
|
+
pid: number | null;
|
|
269
|
+
exitCode: null;
|
|
270
|
+
runtime: {
|
|
271
|
+
mode: string;
|
|
272
|
+
apiBaseUrl: string;
|
|
273
|
+
webUrl: string;
|
|
234
274
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
275
|
+
readiness: {
|
|
276
|
+
ready: boolean;
|
|
277
|
+
blockers: string[];
|
|
278
|
+
warnings: string[];
|
|
279
|
+
};
|
|
280
|
+
} & {
|
|
281
|
+
finalState: WorkflowStatePayload;
|
|
282
|
+
}> | TreeseedWorkflowResult<{
|
|
283
|
+
watch: boolean;
|
|
284
|
+
background: boolean;
|
|
285
|
+
command: string;
|
|
286
|
+
args: string[];
|
|
287
|
+
cwd: string;
|
|
288
|
+
pid: null;
|
|
289
|
+
exitCode: number;
|
|
290
|
+
runtime: {
|
|
291
|
+
mode: string;
|
|
292
|
+
apiBaseUrl: string;
|
|
293
|
+
webUrl: string;
|
|
294
|
+
};
|
|
295
|
+
readiness: {
|
|
296
|
+
ready: boolean;
|
|
297
|
+
blockers: string[];
|
|
298
|
+
warnings: string[];
|
|
299
|
+
};
|
|
300
|
+
} & {
|
|
301
|
+
finalState: WorkflowStatePayload;
|
|
302
|
+
}>>;
|
|
303
|
+
export declare function workflowSave(helpers: WorkflowOperationHelpers, input: TreeseedSaveInput): Promise<TreeseedWorkflowResult<{
|
|
304
|
+
branch: string;
|
|
305
|
+
scope: string;
|
|
306
|
+
hotfix: boolean;
|
|
307
|
+
message: string;
|
|
308
|
+
commitSha: string;
|
|
309
|
+
commitCreated: boolean;
|
|
310
|
+
noChanges: boolean;
|
|
311
|
+
branchSync: {
|
|
312
|
+
remoteBranchExisted: boolean;
|
|
313
|
+
pulledRebase: boolean;
|
|
314
|
+
pushed: boolean;
|
|
315
|
+
createdRemoteBranch: boolean;
|
|
316
|
+
conflicts: boolean;
|
|
317
|
+
};
|
|
318
|
+
previewAction: Record<string, unknown>;
|
|
319
|
+
mergeConflict: null;
|
|
320
|
+
} & {
|
|
321
|
+
finalState: WorkflowStatePayload;
|
|
322
|
+
}>>;
|
|
323
|
+
export declare function workflowClose(helpers: WorkflowOperationHelpers, input: TreeseedCloseInput): Promise<TreeseedWorkflowResult<{
|
|
324
|
+
branchName: string;
|
|
325
|
+
message: string;
|
|
326
|
+
autoSaved: boolean;
|
|
327
|
+
autoSaveResult: ({
|
|
240
328
|
branch: string;
|
|
241
329
|
scope: string;
|
|
242
330
|
hotfix: boolean;
|
|
243
331
|
message: string;
|
|
244
332
|
commitSha: string;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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;
|
|
333
|
+
commitCreated: boolean;
|
|
334
|
+
noChanges: boolean;
|
|
335
|
+
branchSync: {
|
|
336
|
+
remoteBranchExisted: boolean;
|
|
337
|
+
pulledRebase: boolean;
|
|
338
|
+
pushed: boolean;
|
|
339
|
+
createdRemoteBranch: boolean;
|
|
340
|
+
conflicts: boolean;
|
|
264
341
|
};
|
|
265
|
-
|
|
266
|
-
|
|
342
|
+
previewAction: Record<string, unknown>;
|
|
343
|
+
mergeConflict: null;
|
|
344
|
+
} & {
|
|
345
|
+
finalState: WorkflowStatePayload;
|
|
346
|
+
}) | null;
|
|
347
|
+
deprecatedTag: {
|
|
348
|
+
tagName: string;
|
|
349
|
+
head: string;
|
|
267
350
|
};
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
351
|
+
previewCleanup: {
|
|
352
|
+
performed: boolean;
|
|
353
|
+
state: any;
|
|
354
|
+
} | {
|
|
355
|
+
performed: boolean;
|
|
356
|
+
};
|
|
357
|
+
remoteDeleted: boolean;
|
|
358
|
+
localDeleted: boolean;
|
|
359
|
+
finalBranch: string;
|
|
360
|
+
} & {
|
|
361
|
+
finalState: WorkflowStatePayload;
|
|
362
|
+
}>>;
|
|
363
|
+
export declare function workflowStage(helpers: WorkflowOperationHelpers, input: TreeseedStageInput): Promise<TreeseedWorkflowResult<{
|
|
364
|
+
branchName: string;
|
|
365
|
+
mergeTarget: string;
|
|
366
|
+
message: string;
|
|
367
|
+
autoSaved: boolean;
|
|
368
|
+
autoSaveResult: ({
|
|
369
|
+
branch: string;
|
|
370
|
+
scope: string;
|
|
371
|
+
hotfix: boolean;
|
|
276
372
|
message: string;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
status: string;
|
|
287
|
-
branch: string;
|
|
288
|
-
reason?: undefined;
|
|
289
|
-
};
|
|
290
|
-
previewCleanup: {
|
|
291
|
-
performed: boolean;
|
|
292
|
-
state: any;
|
|
293
|
-
} | {
|
|
294
|
-
performed: boolean;
|
|
373
|
+
commitSha: string;
|
|
374
|
+
commitCreated: boolean;
|
|
375
|
+
noChanges: boolean;
|
|
376
|
+
branchSync: {
|
|
377
|
+
remoteBranchExisted: boolean;
|
|
378
|
+
pulledRebase: boolean;
|
|
379
|
+
pushed: boolean;
|
|
380
|
+
createdRemoteBranch: boolean;
|
|
381
|
+
conflicts: boolean;
|
|
295
382
|
};
|
|
296
|
-
|
|
297
|
-
|
|
383
|
+
previewAction: Record<string, unknown>;
|
|
384
|
+
mergeConflict: null;
|
|
385
|
+
} & {
|
|
386
|
+
finalState: WorkflowStatePayload;
|
|
387
|
+
}) | null;
|
|
388
|
+
deprecatedTag: {
|
|
389
|
+
tagName: string;
|
|
390
|
+
head: string;
|
|
298
391
|
};
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
releaseTag: string;
|
|
308
|
-
stagingBranch: string;
|
|
309
|
-
productionBranch: string;
|
|
310
|
-
touchedPackages: unknown[];
|
|
392
|
+
stagingWait: {
|
|
393
|
+
status: string;
|
|
394
|
+
reason: string;
|
|
395
|
+
branch?: undefined;
|
|
396
|
+
} | {
|
|
397
|
+
status: string;
|
|
398
|
+
branch: string;
|
|
399
|
+
reason?: undefined;
|
|
311
400
|
};
|
|
312
|
-
|
|
313
|
-
|
|
401
|
+
previewCleanup: {
|
|
402
|
+
performed: boolean;
|
|
403
|
+
state: any;
|
|
404
|
+
} | {
|
|
405
|
+
performed: boolean;
|
|
406
|
+
};
|
|
407
|
+
remoteDeleted: boolean;
|
|
408
|
+
localDeleted: boolean;
|
|
409
|
+
finalBranch: string;
|
|
410
|
+
} & {
|
|
411
|
+
finalState: WorkflowStatePayload;
|
|
412
|
+
}>>;
|
|
413
|
+
export declare function workflowRelease(helpers: WorkflowOperationHelpers, input: TreeseedReleaseInput): Promise<TreeseedWorkflowResult<{
|
|
414
|
+
level: "patch" | "major" | "minor";
|
|
415
|
+
rootVersion: string;
|
|
416
|
+
releaseTag: string;
|
|
417
|
+
releasedCommit: string;
|
|
418
|
+
stagingBranch: string;
|
|
419
|
+
productionBranch: string;
|
|
420
|
+
touchedPackages: unknown[];
|
|
421
|
+
finalBranch: string;
|
|
422
|
+
pushStatus: {
|
|
423
|
+
stagingPushed: boolean;
|
|
424
|
+
productionPushed: boolean;
|
|
425
|
+
tagPushed: boolean;
|
|
426
|
+
};
|
|
427
|
+
} & {
|
|
428
|
+
finalState: WorkflowStatePayload;
|
|
429
|
+
}>>;
|
|
314
430
|
export declare function workflowDestroy(helpers: WorkflowOperationHelpers, input: TreeseedDestroyInput): Promise<{
|
|
315
431
|
ok: boolean;
|
|
316
432
|
operation: string;
|