@fluidgrids/cli 2026.1028.2 → 2026.1029.1
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/README.md +48 -3
- package/dist/code-first/api.d.ts +193 -0
- package/dist/code-first/api.d.ts.map +1 -1
- package/dist/code-first/api.js +137 -4
- package/dist/code-first/api.js.map +1 -1
- package/dist/code-first/code-upload.d.ts +2 -1
- package/dist/code-first/code-upload.d.ts.map +1 -1
- package/dist/code-first/code-upload.js +5 -1
- package/dist/code-first/code-upload.js.map +1 -1
- package/dist/code-first/commands/runs.d.ts +80 -14
- package/dist/code-first/commands/runs.d.ts.map +1 -1
- package/dist/code-first/commands/runs.js +281 -20
- package/dist/code-first/commands/runs.js.map +1 -1
- package/dist/code-first/commands/versions.d.ts +52 -3
- package/dist/code-first/commands/versions.d.ts.map +1 -1
- package/dist/code-first/commands/versions.js +177 -3
- package/dist/code-first/commands/versions.js.map +1 -1
- package/dist/code-first/durable-operations.d.ts +1 -2
- package/dist/code-first/durable-operations.d.ts.map +1 -1
- package/dist/code-first/durable-operations.js +1 -2
- package/dist/code-first/durable-operations.js.map +1 -1
- package/dist/code-first/lowering.d.ts +13 -0
- package/dist/code-first/lowering.d.ts.map +1 -1
- package/dist/code-first/lowering.js +24 -1
- package/dist/code-first/lowering.js.map +1 -1
- package/dist/code-first/operations.d.ts +1 -3
- package/dist/code-first/operations.d.ts.map +1 -1
- package/dist/code-first/operations.js +1 -3
- package/dist/code-first/operations.js.map +1 -1
- package/dist/code-first/parity-operations.d.ts +44 -0
- package/dist/code-first/parity-operations.d.ts.map +1 -0
- package/dist/code-first/parity-operations.js +211 -0
- package/dist/code-first/parity-operations.js.map +1 -0
- package/dist/code-first/parity.d.ts +83 -0
- package/dist/code-first/parity.d.ts.map +1 -0
- package/dist/code-first/parity.js +301 -0
- package/dist/code-first/parity.js.map +1 -0
- package/dist/code-first/redact.d.ts +31 -0
- package/dist/code-first/redact.d.ts.map +1 -0
- package/dist/code-first/redact.js +150 -0
- package/dist/code-first/redact.js.map +1 -0
- package/dist/code-first/register.d.ts +7 -0
- package/dist/code-first/register.d.ts.map +1 -1
- package/dist/code-first/register.js +147 -18
- package/dist/code-first/register.js.map +1 -1
- package/dist/code-first/shared.d.ts +2 -0
- package/dist/code-first/shared.d.ts.map +1 -1
- package/dist/code-first/shared.js +1 -0
- package/dist/code-first/shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,13 +2,62 @@
|
|
|
2
2
|
* `fluidgrids versions list <key>`: every stored version of a workflow with
|
|
3
3
|
* the code bundle it references (`workflowCodeBundle`), so the build each
|
|
4
4
|
* version runs, the builds a hotfix kept compatible and when it was replaced
|
|
5
|
-
* are visible.
|
|
6
|
-
*
|
|
5
|
+
* are visible.
|
|
6
|
+
*
|
|
7
|
+
* Durable-function parity (BOFF-9905 B19, spec code-first 11 §2.27; each
|
|
8
|
+
* needs fluidgrids.durable-parity, which the service checks):
|
|
9
|
+
*
|
|
10
|
+
* | Command | Operation |
|
|
11
|
+
* |---|---|
|
|
12
|
+
* | `versions rollout <key>` | `workflowRollouts` |
|
|
13
|
+
* | `versions rollout <key> --to <version> --percent <n>` | `setWorkflowRollout` |
|
|
14
|
+
* | `versions rollout delete <key>` | `deleteWorkflowRollout` |
|
|
15
|
+
* | `versions drainage <key> <version>` | `workflowVersionDrainage` |
|
|
16
|
+
* | `versions override <runId> --pin <version> \| --auto-upgrade \| --clear` | `setWorkflowRunVersioningOverride` |
|
|
7
17
|
*/
|
|
8
|
-
import type { CodeBundleInfo, RemoteVersion } from '../api.js';
|
|
18
|
+
import type { CodeBundleInfo, DurableRun, RemoteVersion, VersionDrainage, WorkflowRollout } from '../api.js';
|
|
19
|
+
import { type TargetOptions } from '../parity.js';
|
|
9
20
|
import { type CommandEnv, type OutputOptions } from '../shared.js';
|
|
10
21
|
export interface VersionRow extends RemoteVersion {
|
|
11
22
|
bundle: CodeBundleInfo | null;
|
|
12
23
|
}
|
|
13
24
|
export declare function runVersionsList(env: CommandEnv, workflowKey: string, options: OutputOptions): Promise<VersionRow[]>;
|
|
25
|
+
export interface RolloutOptions extends OutputOptions {
|
|
26
|
+
to?: string;
|
|
27
|
+
percent?: string;
|
|
28
|
+
from?: string;
|
|
29
|
+
environment?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Without `--to`: the workflow's rollouts. With `--to` and `--percent`: create
|
|
33
|
+
* or change the PROD rollout (`percent: 100` promotes the version through the
|
|
34
|
+
* activation check and removes the rollout).
|
|
35
|
+
*/
|
|
36
|
+
export declare function runRollout(env: CommandEnv, workflowKey: string, options: RolloutOptions): Promise<WorkflowRollout[] | WorkflowRollout>;
|
|
37
|
+
export interface RolloutDeleteOptions extends OutputOptions {
|
|
38
|
+
environment?: string;
|
|
39
|
+
force?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Merge what the parent `versions rollout` command parsed into the `delete` options. Options typed
|
|
43
|
+
* before `delete` (`rollout --environment STAGING delete k`) land on the parent; the environment
|
|
44
|
+
* is honoured when it does not contradict the subcommand's own, and the setter-only options are
|
|
45
|
+
* refused so a delete never silently ignores them.
|
|
46
|
+
*/
|
|
47
|
+
export declare function rolloutDeleteOptions(options: RolloutDeleteOptions, parent: Record<string, unknown>): RolloutDeleteOptions;
|
|
48
|
+
/** Remove a rollout: every automatic start runs the ACTIVE version again. */
|
|
49
|
+
export declare function runRolloutDelete(env: CommandEnv, workflowKey: string, options: RolloutDeleteOptions): Promise<boolean>;
|
|
50
|
+
/** Whether a version's bundle still serves open runs. */
|
|
51
|
+
export declare function runDrainage(env: CommandEnv, workflowKey: string, version: string, options: OutputOptions): Promise<VersionDrainage>;
|
|
52
|
+
export interface OverrideOptions extends OutputOptions, TargetOptions {
|
|
53
|
+
pin?: string;
|
|
54
|
+
autoUpgrade?: boolean;
|
|
55
|
+
clear?: boolean;
|
|
56
|
+
reason?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Set or remove a run's versioning override. A change that moves the run to
|
|
60
|
+
* another bundle is replay-checked by the service first (`pendingOverride`).
|
|
61
|
+
*/
|
|
62
|
+
export declare function runOverride(env: CommandEnv, runId: string | undefined, options: OverrideOptions): Promise<DurableRun>;
|
|
14
63
|
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/code-first/commands/versions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/code-first/commands/versions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,OAAO,KAAK,EACV,cAAc,EAEd,UAAU,EACV,aAAa,EACb,eAAe,EAEf,eAAe,EAEhB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAAqB,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAEtF,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B;AAED,wBAAsB,eAAe,CACnC,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,UAAU,EAAE,CAAC,CAmBvB;AAID,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAgCD;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,EAAE,GAAG,eAAe,CAAC,CAoC9C;AAED,MAAM,WAAW,oBAAqB,SAAQ,aAAa;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,oBAAoB,EAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,oBAAoB,CActB;AAYD,6EAA6E;AAC7E,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,OAAO,CAAC,CA2BlB;AAID,yDAAyD;AACzD,wBAAsB,WAAW,CAC/B,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,eAAe,CAAC,CAe1B;AAID,MAAM,WAAW,eAAgB,SAAQ,aAAa,EAAE,aAAa;IACnE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,GAAG,EAAE,UAAU,EACf,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,UAAU,CAAC,CAkCrB"}
|
|
@@ -2,11 +2,24 @@
|
|
|
2
2
|
* `fluidgrids versions list <key>`: every stored version of a workflow with
|
|
3
3
|
* the code bundle it references (`workflowCodeBundle`), so the build each
|
|
4
4
|
* version runs, the builds a hotfix kept compatible and when it was replaced
|
|
5
|
-
* are visible.
|
|
6
|
-
*
|
|
5
|
+
* are visible.
|
|
6
|
+
*
|
|
7
|
+
* Durable-function parity (BOFF-9905 B19, spec code-first 11 §2.27; each
|
|
8
|
+
* needs fluidgrids.durable-parity, which the service checks):
|
|
9
|
+
*
|
|
10
|
+
* | Command | Operation |
|
|
11
|
+
* |---|---|
|
|
12
|
+
* | `versions rollout <key>` | `workflowRollouts` |
|
|
13
|
+
* | `versions rollout <key> --to <version> --percent <n>` | `setWorkflowRollout` |
|
|
14
|
+
* | `versions rollout delete <key>` | `deleteWorkflowRollout` |
|
|
15
|
+
* | `versions drainage <key> <version>` | `workflowVersionDrainage` |
|
|
16
|
+
* | `versions override <runId> --pin <version> \| --auto-upgrade \| --clear` | `setWorkflowRunVersioningOverride` |
|
|
7
17
|
*/
|
|
18
|
+
import { createInterface } from 'readline/promises';
|
|
19
|
+
import { CliUserError } from '@burdenoff/cli-sdk/core';
|
|
20
|
+
import { runRefOf } from '../parity.js';
|
|
8
21
|
import { sortVersions } from '../remote.js';
|
|
9
|
-
import { emit } from '../shared.js';
|
|
22
|
+
import { emit, parseChoice } from '../shared.js';
|
|
10
23
|
export async function runVersionsList(env, workflowKey, options) {
|
|
11
24
|
const versions = sortVersions(await env.api.workflowVersions(workflowKey));
|
|
12
25
|
const rows = [];
|
|
@@ -27,4 +40,165 @@ export async function runVersionsList(env, workflowKey, options) {
|
|
|
27
40
|
});
|
|
28
41
|
return rows;
|
|
29
42
|
}
|
|
43
|
+
const ENVIRONMENTS = ['PROD', 'STAGING', 'DEV'];
|
|
44
|
+
function rolloutRows(rollouts) {
|
|
45
|
+
return rollouts.map((rollout) => [
|
|
46
|
+
rollout.environment,
|
|
47
|
+
rollout.fromVersion,
|
|
48
|
+
rollout.toVersion,
|
|
49
|
+
`${rollout.percent}%`,
|
|
50
|
+
`${rollout.verifiedPercent}%`,
|
|
51
|
+
rollout.activationCheck
|
|
52
|
+
? `${rollout.activationCheck.kind ?? 'CHECK'} ${rollout.activationCheck.status}`
|
|
53
|
+
: '-',
|
|
54
|
+
]);
|
|
55
|
+
}
|
|
56
|
+
function checkLine(check, what) {
|
|
57
|
+
if (!check || check.status === 'REPLACED' || check.status === 'REJECTED')
|
|
58
|
+
return [];
|
|
59
|
+
return [
|
|
60
|
+
`${what} waits for replay check ${check.id} (${check.kind ?? 'CHECK'} ${check.status}): the affected runs move only once they replay against the new bundle.`,
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
/** `0` to `100`. */
|
|
64
|
+
function parsePercent(raw) {
|
|
65
|
+
if (raw === undefined || !/^\d{1,3}$/.test(raw.trim()) || Number(raw) > 100) {
|
|
66
|
+
throw new CliUserError(`Invalid value '${raw ?? ''}' for --percent: expected 0 to 100.`);
|
|
67
|
+
}
|
|
68
|
+
return Number(raw.trim());
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Without `--to`: the workflow's rollouts. With `--to` and `--percent`: create
|
|
72
|
+
* or change the PROD rollout (`percent: 100` promotes the version through the
|
|
73
|
+
* activation check and removes the rollout).
|
|
74
|
+
*/
|
|
75
|
+
export async function runRollout(env, workflowKey, options) {
|
|
76
|
+
const headers = ['Environment', 'From', 'To', 'Percent', 'Verified', 'Check'];
|
|
77
|
+
if (options.to === undefined && options.percent === undefined) {
|
|
78
|
+
const rollouts = await env.api.workflowRollouts(workflowKey);
|
|
79
|
+
emit(env, options, rollouts, { headers, rows: rolloutRows(rollouts) }, rollouts.length === 0 ? [`${workflowKey} has no rollout.`] : []);
|
|
80
|
+
return rollouts;
|
|
81
|
+
}
|
|
82
|
+
if (options.to === undefined || options.to.trim() === '') {
|
|
83
|
+
throw new CliUserError('--percent needs --to <version>.');
|
|
84
|
+
}
|
|
85
|
+
const input = {
|
|
86
|
+
toVersion: options.to,
|
|
87
|
+
percent: parsePercent(options.percent),
|
|
88
|
+
};
|
|
89
|
+
if (options.from !== undefined)
|
|
90
|
+
input.fromVersion = options.from;
|
|
91
|
+
const environment = parseChoice(options.environment?.toUpperCase(), '--environment', ENVIRONMENTS);
|
|
92
|
+
if (environment)
|
|
93
|
+
input.environment = environment;
|
|
94
|
+
const rollout = await env.api.setWorkflowRollout(workflowKey, input);
|
|
95
|
+
const details = [
|
|
96
|
+
rollout.promoted
|
|
97
|
+
? `${rollout.toVersion} is promoted: it becomes the ACTIVE version${rollout.activationCheck ? ' once its activation check passes' : ''}.`
|
|
98
|
+
: `${rollout.percent}% of new automatic starts of ${workflowKey} run ${rollout.toVersion}.`,
|
|
99
|
+
...checkLine(rollout.activationCheck, 'The rollout'),
|
|
100
|
+
];
|
|
101
|
+
emit(env, options, rollout, { headers, rows: rolloutRows([rollout]) }, details);
|
|
102
|
+
return rollout;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Merge what the parent `versions rollout` command parsed into the `delete` options. Options typed
|
|
106
|
+
* before `delete` (`rollout --environment STAGING delete k`) land on the parent; the environment
|
|
107
|
+
* is honoured when it does not contradict the subcommand's own, and the setter-only options are
|
|
108
|
+
* refused so a delete never silently ignores them.
|
|
109
|
+
*/
|
|
110
|
+
export function rolloutDeleteOptions(options, parent) {
|
|
111
|
+
for (const flag of ['to', 'percent', 'from']) {
|
|
112
|
+
if (parent[flag] !== undefined) {
|
|
113
|
+
throw new CliUserError(`--${flag} does not apply to \`versions rollout delete\`.`);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const inherited = parent['environment'];
|
|
117
|
+
if (typeof inherited !== 'string')
|
|
118
|
+
return options;
|
|
119
|
+
if (options.environment !== undefined && options.environment !== inherited) {
|
|
120
|
+
throw new CliUserError(`Conflicting --environment values '${inherited}' and '${options.environment}'.`);
|
|
121
|
+
}
|
|
122
|
+
return { ...options, environment: inherited };
|
|
123
|
+
}
|
|
124
|
+
async function confirm(question) {
|
|
125
|
+
const rl = createInterface({ input: process.stdin, output: process.stderr });
|
|
126
|
+
try {
|
|
127
|
+
const answer = await rl.question(`${question} [y/N] `);
|
|
128
|
+
return /^y(es)?$/i.test(answer.trim());
|
|
129
|
+
}
|
|
130
|
+
finally {
|
|
131
|
+
rl.close();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/** Remove a rollout: every automatic start runs the ACTIVE version again. */
|
|
135
|
+
export async function runRolloutDelete(env, workflowKey, options) {
|
|
136
|
+
const environment = parseChoice(options.environment?.toUpperCase(), '--environment', ENVIRONMENTS);
|
|
137
|
+
if (!options.force) {
|
|
138
|
+
if (!env.interactive()) {
|
|
139
|
+
throw new CliUserError(`Removing the rollout of ${workflowKey} needs confirmation.`, {
|
|
140
|
+
hint: 'Pass --force to remove it without a prompt.',
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
if (!(await confirm(`Remove the rollout of ${workflowKey}? New starts run the ACTIVE version.`))) {
|
|
144
|
+
throw new CliUserError('Aborted: nothing was changed.');
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const removed = await env.api.deleteWorkflowRollout(workflowKey, environment);
|
|
148
|
+
emit(env, options, { workflowKey, removed }, { headers: ['Workflow', 'Removed'], rows: [[workflowKey, removed ? 'yes' : 'no']] }, [removed ? `The rollout of ${workflowKey} is removed.` : `${workflowKey} had no rollout.`]);
|
|
149
|
+
return removed;
|
|
150
|
+
}
|
|
151
|
+
// ----------------------------------------------------------- versions drainage
|
|
152
|
+
/** Whether a version's bundle still serves open runs. */
|
|
153
|
+
export async function runDrainage(env, workflowKey, version, options) {
|
|
154
|
+
const drainage = await env.api.versionDrainage(workflowKey, version);
|
|
155
|
+
emit(env, options, drainage, {
|
|
156
|
+
headers: ['Version', 'Status', 'Open runs', 'Last run', 'Rollout target'],
|
|
157
|
+
rows: [
|
|
158
|
+
[
|
|
159
|
+
drainage.version,
|
|
160
|
+
drainage.status,
|
|
161
|
+
String(drainage.openRuns),
|
|
162
|
+
drainage.lastRunStartedAt ?? '-',
|
|
163
|
+
drainage.rolloutTarget ? 'yes' : 'no',
|
|
164
|
+
],
|
|
165
|
+
],
|
|
166
|
+
});
|
|
167
|
+
return drainage;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Set or remove a run's versioning override. A change that moves the run to
|
|
171
|
+
* another bundle is replay-checked by the service first (`pendingOverride`).
|
|
172
|
+
*/
|
|
173
|
+
export async function runOverride(env, runId, options) {
|
|
174
|
+
const chosen = [options.pin !== undefined, options.autoUpgrade === true, options.clear === true];
|
|
175
|
+
if (chosen.filter(Boolean).length !== 1) {
|
|
176
|
+
throw new CliUserError('Give exactly one of --pin <version>, --auto-upgrade or --clear.');
|
|
177
|
+
}
|
|
178
|
+
let override = null;
|
|
179
|
+
if (options.pin !== undefined) {
|
|
180
|
+
if (options.pin.trim() === '')
|
|
181
|
+
throw new CliUserError('--pin needs a version.');
|
|
182
|
+
override = { behavior: 'PINNED', version: options.pin };
|
|
183
|
+
}
|
|
184
|
+
else if (options.autoUpgrade) {
|
|
185
|
+
override = { behavior: 'AUTO_UPGRADE' };
|
|
186
|
+
}
|
|
187
|
+
const ref = runRefOf(runId, options);
|
|
188
|
+
const run = await env.api.setRunVersioningOverride(ref, override, options.reason);
|
|
189
|
+
const versioning = run.versioning;
|
|
190
|
+
const rows = [
|
|
191
|
+
['Run', run.id],
|
|
192
|
+
['Behavior', versioning?.behavior ?? '-'],
|
|
193
|
+
[
|
|
194
|
+
'Override',
|
|
195
|
+
versioning?.override
|
|
196
|
+
? `${versioning.override.behavior}${versioning.override.version ? ` ${versioning.override.version}` : ''}`
|
|
197
|
+
: '-',
|
|
198
|
+
],
|
|
199
|
+
['Serving version', versioning?.servingVersion ?? run.version],
|
|
200
|
+
];
|
|
201
|
+
emit(env, options, run, { headers: ['Field', 'Value'], rows }, checkLine(versioning?.pendingOverride, 'The override'));
|
|
202
|
+
return run;
|
|
203
|
+
}
|
|
30
204
|
//# sourceMappingURL=versions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/code-first/commands/versions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/code-first/commands/versions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,eAAe,EAAE,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;QACD,CAAC,iBAAiB,EAAE,UAAU,EAAE,cAAc,IAAI,GAAG,CAAC,OAAO,CAAC;KAC/D,CAAC;IACF,IAAI,CACF,GAAG,EACH,OAAO,EACP,GAAG,EACH,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,EACrC,SAAS,CAAC,UAAU,EAAE,eAAe,EAAE,cAAc,CAAC,CACvD,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
* Every document targets the WORKSPACE gateway (wspace-workflow-svc). The names
|
|
7
7
|
* and shapes are the Phase B contract (PLAN-B §5 B8 and B9, spec 08 §4). They
|
|
8
8
|
* are validated by `tests/code-first/durable-operations.test.ts` against the
|
|
9
|
-
* vendored supergraph
|
|
10
|
-
* in, and against `schema/durable.pending.graphql` until then.
|
|
9
|
+
* vendored supergraph.
|
|
11
10
|
*
|
|
12
11
|
* The service gates every operation that starts new durable work
|
|
13
12
|
* (`prepareWorkflowCodeUpload`, `replaceWorkflowVersionCode`, `startWorkflow`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-operations.d.ts","sourceRoot":"","sources":["../../src/code-first/durable-operations.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"durable-operations.d.ts","sourceRoot":"","sources":["../../src/code-first/durable-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,wFAAwF;AACxF,eAAO,MAAM,+BAA+B,4SAQ3C,CAAC;AAOF,+FAA+F;AAC/F,eAAO,MAAM,gCAAgC,2bAc5C,CAAC;AAEF,yBAAyB;AACzB,eAAO,MAAM,wBAAwB,kMAIpC,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,uBAAuB,wTAOnC,CAAC;AAWF,gDAAgD;AAChD,eAAO,MAAM,iBAAiB,ydAO7B,CAAC;AAEF,uCAAuC;AACvC,eAAO,MAAM,eAAe,qZAI3B,CAAC;AAEF,yCAAyC;AACzC,eAAO,MAAM,uBAAuB,sSAOnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,wUAWlC,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,yBAAyB,4LAIrC,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,2BAA2B,8KAIvC,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,YAAY,oMAOxB,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,8KAI/B,CAAC"}
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
* Every document targets the WORKSPACE gateway (wspace-workflow-svc). The names
|
|
7
7
|
* and shapes are the Phase B contract (PLAN-B §5 B8 and B9, spec 08 §4). They
|
|
8
8
|
* are validated by `tests/code-first/durable-operations.test.ts` against the
|
|
9
|
-
* vendored supergraph
|
|
10
|
-
* in, and against `schema/durable.pending.graphql` until then.
|
|
9
|
+
* vendored supergraph.
|
|
11
10
|
*
|
|
12
11
|
* The service gates every operation that starts new durable work
|
|
13
12
|
* (`prepareWorkflowCodeUpload`, `replaceWorkflowVersionCode`, `startWorkflow`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-operations.js","sourceRoot":"","sources":["../../src/code-first/durable-operations.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"durable-operations.js","sourceRoot":"","sources":["../../src/code-first/durable-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,oBAAoB,GAAG,4CAA4C,CAAC;AAE1E,wFAAwF;AACxF,MAAM,CAAC,MAAM,+BAA+B,GAAG;;;;iBAI9B,oBAAoB;iBACpB,oBAAoB;;;CAGpC,CAAC;AAEF,MAAM,mBAAmB,GAAG;;;CAG3B,CAAC;AAEF,+FAA+F;AAC/F,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;;;;;;;;;;UAYtC,mBAAmB;;CAE5B,CAAC;AAEF,yBAAyB;AACzB,MAAM,CAAC,MAAM,wBAAwB,GAAG;;qCAEH,mBAAmB;;CAEvD,CAAC;AAEF,gFAAgF;AAChF,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;CAOtC,CAAC;AAEF,6CAA6C;AAC7C,MAAM,kBAAkB,GAAG;;;;;;CAM1B,CAAC;AAEF,gDAAgD;AAChD,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;cAInB,kBAAkB;;;CAG/B,CAAC;AAEF,uCAAuC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG;;6BAEF,kBAAkB;;CAE9C,CAAC;AAEF,yCAAyC;AACzC,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;CAOtC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;CAWrC,CAAC;AAEF,uFAAuF;AACvF,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;CAIxC,CAAC;AAEF,8FAA8F;AAC9F,MAAM,CAAC,MAAM,2BAA2B,GAAG;;;;CAI1C,CAAC;AAEF,oFAAoF;AACpF,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;CAO3B,CAAC;AAEF,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;CAIlC,CAAC"}
|
|
@@ -44,6 +44,11 @@ export interface LoweredProject {
|
|
|
44
44
|
sourceFiles?: Record<string, string>;
|
|
45
45
|
/** Pure-ESM packages vendored from the project's `node_modules`. */
|
|
46
46
|
vendored?: VendoredDeps;
|
|
47
|
+
/**
|
|
48
|
+
* The bundle's source map (C-SOURCEMAP, SDK R2), uploaded inside the source
|
|
49
|
+
* archive so the service maps `__stack_trace` locations back to the sources.
|
|
50
|
+
*/
|
|
51
|
+
map?: string;
|
|
47
52
|
/** Durable-function findings; `push` refuses a project that has any. */
|
|
48
53
|
issues: DurableIssue[];
|
|
49
54
|
}
|
|
@@ -75,6 +80,14 @@ export declare function vendorProjectDependencies(root: string): VendoredDeps |
|
|
|
75
80
|
* with the SDK's default entries sees exactly the modules the CLI bundled.
|
|
76
81
|
*/
|
|
77
82
|
export declare function durableBundleFiles(files: readonly ProjectFile[], entries: readonly string[]): ProjectFile[];
|
|
83
|
+
/**
|
|
84
|
+
* The source map of a durable bundle (C-SOURCEMAP): the same build as
|
|
85
|
+
* `lower()`'s (the SDK's default entries over the archived files), with an
|
|
86
|
+
* external map. The bundle bytes are the same with or without a map; a build
|
|
87
|
+
* whose `buildId` differs anyway gives no map, so a map never describes
|
|
88
|
+
* another bundle.
|
|
89
|
+
*/
|
|
90
|
+
export declare function bundleSourceMap(files: readonly ProjectFile[], buildId: string, deps: VendoredDeps | undefined): Promise<string | undefined>;
|
|
78
91
|
export declare function lowerProject(project: Project, options: LowerProjectOptions & {
|
|
79
92
|
connectionNames: readonly string[];
|
|
80
93
|
}): Promise<LoweredProject>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lowering.d.ts","sourceRoot":"","sources":["../../src/code-first/lowering.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,
|
|
1
|
+
{"version":3,"file":"lowering.d.ts","sourceRoot":"","sources":["../../src/code-first/lowering.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAQtB,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,cAAc,CAAC;IACvB,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC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AAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAiBhF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,OAAO,EAAE,SAAS,MAAM,EAAE,GACzB,WAAW,EAAE,CAMf;AAyCD;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,YAAY,GAAG,SAAS,GAC7B,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAO7B;AAED,wBAAsB,YAAY,CAChC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,mBAAmB,GAAG;IAAE,eAAe,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACpE,OAAO,CAAC,cAAc,CAAC,CA6HzB"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { CliUserError } from '@burdenoff/cli-sdk/core';
|
|
10
10
|
import { BuilderError, UnresolvedConnectionsError } from '@fluidgrids/workflows';
|
|
11
11
|
import { parseWorkflowDocument } from '@fluidgrids/workflows/ir';
|
|
12
|
-
import { defaultEntries, lower, LowerError, vendorDependencies, } from '@fluidgrids/workflows/roundtrip';
|
|
12
|
+
import { buildBundle, defaultEntries, lower, LowerError, vendorDependencies, } from '@fluidgrids/workflows/roundtrip';
|
|
13
13
|
import { existsSync, readFileSync } from 'fs';
|
|
14
14
|
import { join, posix } from 'path';
|
|
15
15
|
import { isJsonWorkflow, isLoweringInput, isWorkflowModule, listSourcePaths, readProjectFiles, } from './project.js';
|
|
@@ -114,6 +114,21 @@ function connectionMap(names, resolve) {
|
|
|
114
114
|
}
|
|
115
115
|
return out;
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* The source map of a durable bundle (C-SOURCEMAP): the same build as
|
|
119
|
+
* `lower()`'s (the SDK's default entries over the archived files), with an
|
|
120
|
+
* external map. The bundle bytes are the same with or without a map; a build
|
|
121
|
+
* whose `buildId` differs anyway gives no map, so a map never describes
|
|
122
|
+
* another bundle.
|
|
123
|
+
*/
|
|
124
|
+
export async function bundleSourceMap(files, buildId, deps) {
|
|
125
|
+
const built = await buildBundle(new Map(files.map((file) => [file.path, file.content])), {
|
|
126
|
+
maxBundleBytes: MAX_BUNDLE_BYTES,
|
|
127
|
+
sourcemap: 'external',
|
|
128
|
+
...(deps ? { deps } : {}),
|
|
129
|
+
});
|
|
130
|
+
return built.buildId === buildId ? built.map : undefined;
|
|
131
|
+
}
|
|
117
132
|
export async function lowerProject(project, options) {
|
|
118
133
|
const paths = listSourcePaths(project.root);
|
|
119
134
|
const language = project.config.language;
|
|
@@ -149,6 +164,14 @@ export async function lowerProject(project, options) {
|
|
|
149
164
|
result.buildId = lowered.buildId;
|
|
150
165
|
result.sourceHash = lowered.sourceHash;
|
|
151
166
|
result.bundle = lowered.bundle;
|
|
167
|
+
if (durable) {
|
|
168
|
+
const map = await bundleSourceMap(bundleFiles, lowered.buildId, deps);
|
|
169
|
+
if (map !== undefined)
|
|
170
|
+
result.map = map;
|
|
171
|
+
else {
|
|
172
|
+
result.warnings.push('The source map build did not reproduce the bundle; the push uploads no source map (stack traces show bundle locations).');
|
|
173
|
+
}
|
|
174
|
+
}
|
|
152
175
|
result.sourceFiles = Object.fromEntries(bundleFiles.map((file) => [file.path, file.content]));
|
|
153
176
|
if (deps)
|
|
154
177
|
result.vendored = deps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lowering.js","sourceRoot":"","sources":["../../src/code-first/lowering.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EACL,cAAc,EACd,KAA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,CAAC,GAAG,uBAAuB,QAAQ,QAAQ,QAAQ,CAAC,IAAI,IAAI,EACrF,EAAE,IAAI,EAAE,4EAA4E,EAAE,CACvF,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IACD,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvE,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
* (BOFF-9904): `exportWorkflow(format:, options:)` with the additive
|
|
17
17
|
* `exportFormat` / `files` / `fidelity` / `irHash` fields, `importWorkflow`
|
|
18
18
|
* with `source`, `validateWorkflowDefinition` and `workflowInterface`. They
|
|
19
|
-
* are validated against the supergraph
|
|
20
|
-
* in, and until then against `schema/code-first.pending.graphql`, which mirrors
|
|
21
|
-
* the service's `code-first.gql`.
|
|
19
|
+
* are validated against the vendored supergraph, which carries them.
|
|
22
20
|
*
|
|
23
21
|
* Every code-first operation is gated on the service by the
|
|
24
22
|
* `fluidgrids.code-first` feature flag; a workspace without it gets a GraphQL
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/code-first/operations.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/code-first/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAIH,yEAAyE;AACzE,eAAO,MAAM,kBAAkB,kWAQ9B,CAAC;AAEF,wCAAwC;AACxC,eAAO,MAAM,uBAAuB,mCAAoC,CAAC;AACzE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAyB3E;AAED,eAAO,MAAM,oBAAoB,0MAMhC,CAAC;AAEF,eAAO,MAAM,qBAAqB,+MAQjC,CAAC;AAIF,eAAO,MAAM,0BAA0B,mUAWtC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,gWAY9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,0VAWpC,CAAC;AAIF,8FAA8F;AAC9F,eAAO,MAAM,+BAA+B,0UAQ3C,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,qBAAqB,qKAIjC,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,uTAOlC,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,mBAAmB,uNAQ/B,CAAC"}
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
* (BOFF-9904): `exportWorkflow(format:, options:)` with the additive
|
|
17
17
|
* `exportFormat` / `files` / `fidelity` / `irHash` fields, `importWorkflow`
|
|
18
18
|
* with `source`, `validateWorkflowDefinition` and `workflowInterface`. They
|
|
19
|
-
* are validated against the supergraph
|
|
20
|
-
* in, and until then against `schema/code-first.pending.graphql`, which mirrors
|
|
21
|
-
* the service's `code-first.gql`.
|
|
19
|
+
* are validated against the vendored supergraph, which carries them.
|
|
22
20
|
*
|
|
23
21
|
* Every code-first operation is gated on the service by the
|
|
24
22
|
* `fluidgrids.code-first` feature flag; a workspace without it gets a GraphQL
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/code-first/operations.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"operations.js","source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,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;CAQlC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GraphQL documents for durable-function parity (BOFF-9905 B19, spec code-first
|
|
3
|
+
* 11): workflow ids and their policies, the other parity start options, run
|
|
4
|
+
* targets (`{ workflowKey, workflowId }`), pending state, run counts, the
|
|
5
|
+
* `__metadata` stack trace, completion callbacks, rollouts, drainage and
|
|
6
|
+
* per-run versioning overrides.
|
|
7
|
+
*
|
|
8
|
+
* Every document targets the WORKSPACE gateway (wspace-workflow-svc releases
|
|
9
|
+
* S3 to S6). The service refuses each of them with FEATURE_DISABLED unless the
|
|
10
|
+
* workspace has fluidgrids.code-first, fluidgrids.durable-functions and
|
|
11
|
+
* fluidgrids.durable-parity; the CLI never decides the flag itself. They are
|
|
12
|
+
* separate from the Phase B documents in `durable-operations.ts`, so a command
|
|
13
|
+
* run without a parity option sends exactly what it sent before.
|
|
14
|
+
*
|
|
15
|
+
* `tests/code-first/parity-operations.test.ts` validates them against the
|
|
16
|
+
* vendored supergraph, which carries the parity releases S3 to S6.
|
|
17
|
+
*/
|
|
18
|
+
/** startWorkflow with parity options. */
|
|
19
|
+
export declare const CF_START_WORKFLOW_PARITY = "\n mutation FluidgridsCodeStartWorkflowParity($input: StartWorkflowInput!) {\n startWorkflow(input: $input) {\n existing\n run { \n id workflowId workflowKey version status mode triggerNodeId\n executionKind workflowFn taskQueue buildId historyLength parentClosePolicy\n parentRunId rootRunId cancelRequestedAt\n createdAt startedAt completedAt errorMessage errorType\n determinism { failing cause attempts since lastFailureSeq message }\n \n businessId runAttempt firstRunId continuedFromRunId continuedToRunId priority\n summary details currentDetails memo startDelayUntil runTimeoutAt executionTimeoutAt\n }\n }\n }\n";
|
|
20
|
+
/** TERMINATE_EXISTING: needs the workflow-run delete permission (BP22). */
|
|
21
|
+
export declare const CF_START_WORKFLOW_TERMINATE_EXISTING = "\n mutation FluidgridsCodeStartWorkflowTerminateExisting($input: StartWorkflowInput!) {\n startWorkflowTerminateExisting(input: $input) {\n existing\n run { \n id workflowId workflowKey version status mode triggerNodeId\n executionKind workflowFn taskQueue buildId historyLength parentClosePolicy\n parentRunId rootRunId cancelRequestedAt\n createdAt startedAt completedAt errorMessage errorType\n determinism { failing cause attempts since lastFailureSeq message }\n \n businessId runAttempt firstRunId continuedFromRunId continuedToRunId priority\n summary details currentDetails memo startDelayUntil runTimeoutAt executionTimeoutAt\n }\n }\n }\n";
|
|
22
|
+
/** A run by id with every parity field. */
|
|
23
|
+
export declare const CF_DESCRIBE_RUN_PARITY = "\n query FluidgridsCodeDescribeRunParity($id: ID!) {\n workflowRun(id: $id) { \n \n id workflowId workflowKey version status mode triggerNodeId\n executionKind workflowFn taskQueue buildId historyLength parentClosePolicy\n parentRunId rootRunId cancelRequestedAt\n createdAt startedAt completedAt errorMessage errorType\n determinism { failing cause attempts since lastFailureSeq message }\n\n \n businessId runAttempt firstRunId continuedFromRunId continuedToRunId priority\n summary details currentDetails memo startDelayUntil runTimeoutAt executionTimeoutAt\n\n completionCallback {\n url status attempts lastStatusCode lastError lastAttemptAt deliveredAt nextAttemptAt\n }\n versioning {\n behavior startBehavior servingVersion buildId heldFromVersion\n override { behavior version }\n pendingOverride { \n id kind status buildId previousBuildId targetVersion runId force verifiedRuns\n violations { runId seq message }\n }\n }\n }\n }\n";
|
|
24
|
+
/** A run by id with its chain fields only (`runs result --follow-runs`). */
|
|
25
|
+
export declare const CF_RUN_CHAIN = "\n query FluidgridsCodeRunChain($id: ID!) {\n workflowRun(id: $id) { \n id workflowId workflowKey version status mode triggerNodeId\n executionKind workflowFn taskQueue buildId historyLength parentClosePolicy\n parentRunId rootRunId cancelRequestedAt\n createdAt startedAt completedAt errorMessage errorType\n determinism { failing cause attempts since lastFailureSeq message }\n \n businessId runAttempt firstRunId continuedFromRunId continuedToRunId priority\n summary details currentDetails memo startDelayUntil runTimeoutAt executionTimeoutAt\n }\n }\n";
|
|
26
|
+
/** The latest run of a workflow id, followed along continue-as-new. */
|
|
27
|
+
export declare const CF_RUN_BY_WORKFLOW_ID = "\n query FluidgridsCodeRunByWorkflowId($workflowKey: String!, $workflowId: String!, $firstRunId: ID) {\n workflowRunByWorkflowId(\n workflowKey: $workflowKey\n workflowId: $workflowId\n firstRunId: $firstRunId\n ) { \n \n id workflowId workflowKey version status mode triggerNodeId\n executionKind workflowFn taskQueue buildId historyLength parentClosePolicy\n parentRunId rootRunId cancelRequestedAt\n createdAt startedAt completedAt errorMessage errorType\n determinism { failing cause attempts since lastFailureSeq message }\n\n \n businessId runAttempt firstRunId continuedFromRunId continuedToRunId priority\n summary details currentDetails memo startDelayUntil runTimeoutAt executionTimeoutAt\n\n completionCallback {\n url status attempts lastStatusCode lastError lastAttemptAt deliveredAt nextAttemptAt\n }\n versioning {\n behavior startBehavior servingVersion buildId heldFromVersion\n override { behavior version }\n pendingOverride { \n id kind status buildId previousBuildId targetVersion runId force verifiedRuns\n violations { runId seq message }\n }\n }\n }\n }\n";
|
|
28
|
+
/** What a run is waiting on. */
|
|
29
|
+
export declare const CF_RUN_PENDING = "\n query FluidgridsCodeRunPending($id: ID!) {\n workflowRun(id: $id) { id status pending { \n activities {\n activityId activityType state attempt maxAttempts scheduledAt lastStartedAt\n lastHeartbeatAt heartbeatDetails lastFailure nextAttemptAt summary\n }\n children { runId workflowKey version status startedAt }\n timers { timerId fireAt summary }\n bufferedSignals\n workflowTask { state attempt startedAt failureCause }\n } }\n }\n";
|
|
30
|
+
/** How many runs the list returns for a filter, in total and per group. */
|
|
31
|
+
export declare const CF_RUNS_COUNT = "\n query FluidgridsCodeRunsCount($filter: ListWorkflowRunsInput, $groupBy: [RunGroupBy!]) {\n workflowRunsCount(filter: $filter, groupBy: $groupBy) {\n total\n groups { key values count }\n groupsTruncated\n }\n }\n";
|
|
32
|
+
export declare const CF_SIGNAL_RUN_BY_TARGET = "\n mutation FluidgridsCodeSignalRunByTarget(\n $target: RunTargetInput!\n $name: String!\n $payload: JSON\n $idempotencyKey: String\n ) {\n signalWorkflowRun(\n target: $target\n name: $name\n payload: $payload\n idempotencyKey: $idempotencyKey\n ) {\n accepted delivered buffered forwardedToRunId seq duplicate\n }\n }\n";
|
|
33
|
+
export declare const CF_TERMINATE_RUN_BY_TARGET = "\n mutation FluidgridsCodeTerminateRunByTarget($target: RunTargetInput!, $reason: String) {\n terminateWorkflowRun(target: $target, reason: $reason) { id status completedAt errorMessage }\n }\n";
|
|
34
|
+
/** `runs cancel <runId>`: the existing cancelWorkflowRun. */
|
|
35
|
+
export declare const CF_CANCEL_RUN = "\n mutation FluidgridsCodeCancelRun($id: ID!) {\n cancelWorkflowRun(id: $id) { id status completedAt errorMessage }\n }\n";
|
|
36
|
+
export declare const CF_CANCEL_RUN_BY_TARGET = "\n mutation FluidgridsCodeCancelRunByTarget($target: RunTargetInput!) {\n cancelWorkflowRunByTarget(target: $target) { id status completedAt errorMessage }\n }\n";
|
|
37
|
+
/** The stack trace by run id or target, optionally with `__metadata`. */
|
|
38
|
+
export declare const CF_STACK_TRACE_PARITY = "\n query FluidgridsCodeStackTraceParity(\n $runId: ID\n $target: RunTargetInput\n $enhanced: Boolean\n $metadata: Boolean\n ) {\n workflowRunStackTrace(\n runId: $runId\n target: $target\n enhanced: $enhanced\n metadata: $metadata\n ) {\n trace\n enhanced\n metadata { definition currentDetails }\n }\n }\n";
|
|
39
|
+
export declare const CF_WORKFLOW_ROLLOUTS = "\n query FluidgridsCodeWorkflowRollouts($workflowKey: String!) {\n workflowRollouts(workflowKey: $workflowKey) { \n id workflowKey environment fromVersion toVersion percent verifiedPercent promoted\n activationCheck { \n id kind status buildId previousBuildId targetVersion runId force verifiedRuns\n violations { runId seq message }\n }\n createdAt updatedAt\n }\n }\n";
|
|
40
|
+
export declare const CF_SET_WORKFLOW_ROLLOUT = "\n mutation FluidgridsCodeSetWorkflowRollout($workflowKey: String!, $input: WorkflowRolloutInput!) {\n setWorkflowRollout(workflowKey: $workflowKey, input: $input) { \n id workflowKey environment fromVersion toVersion percent verifiedPercent promoted\n activationCheck { \n id kind status buildId previousBuildId targetVersion runId force verifiedRuns\n violations { runId seq message }\n }\n createdAt updatedAt\n }\n }\n";
|
|
41
|
+
export declare const CF_DELETE_WORKFLOW_ROLLOUT = "\n mutation FluidgridsCodeDeleteWorkflowRollout(\n $workflowKey: String!\n $environment: WorkflowEnvironment\n ) {\n deleteWorkflowRollout(workflowKey: $workflowKey, environment: $environment)\n }\n";
|
|
42
|
+
export declare const CF_WORKFLOW_VERSION_DRAINAGE = "\n query FluidgridsCodeWorkflowVersionDrainage($workflowKey: String!, $version: String!) {\n workflowVersionDrainage(workflowKey: $workflowKey, version: $version) {\n workflowKey version status openRuns lastRunStartedAt rolloutTarget\n }\n }\n";
|
|
43
|
+
export declare const CF_SET_RUN_VERSIONING_OVERRIDE = "\n mutation FluidgridsCodeSetRunVersioningOverride(\n $runId: ID\n $target: RunTargetInput\n $override: VersioningOverrideInput\n $reason: String\n ) {\n setWorkflowRunVersioningOverride(\n runId: $runId\n target: $target\n override: $override\n reason: $reason\n ) { \n \n id workflowId workflowKey version status mode triggerNodeId\n executionKind workflowFn taskQueue buildId historyLength parentClosePolicy\n parentRunId rootRunId cancelRequestedAt\n createdAt startedAt completedAt errorMessage errorType\n determinism { failing cause attempts since lastFailureSeq message }\n\n \n businessId runAttempt firstRunId continuedFromRunId continuedToRunId priority\n summary details currentDetails memo startDelayUntil runTimeoutAt executionTimeoutAt\n\n completionCallback {\n url status attempts lastStatusCode lastError lastAttemptAt deliveredAt nextAttemptAt\n }\n versioning {\n behavior startBehavior servingVersion buildId heldFromVersion\n override { behavior version }\n pendingOverride { \n id kind status buildId previousBuildId targetVersion runId force verifiedRuns\n violations { runId seq message }\n }\n }\n }\n }\n";
|
|
44
|
+
//# sourceMappingURL=parity-operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parity-operations.d.ts","sourceRoot":"","sources":["../../src/code-first/parity-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AA8CH,yCAAyC;AACzC,eAAO,MAAM,wBAAwB,0oBAOpC,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,oCAAoC,sqBAOhD,CAAC;AAEF,2CAA2C;AAC3C,eAAO,MAAM,sBAAsB,k9BAIlC,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,YAAY,6jBAIxB,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,8mCAQjC,CAAC;AAEF,gCAAgC;AAChC,eAAO,MAAM,cAAc,2cAI1B,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,aAAa,mPAQzB,CAAC;AAEF,eAAO,MAAM,uBAAuB,uXAgBnC,CAAC;AAEF,eAAO,MAAM,0BAA0B,2MAItC,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,aAAa,mIAIzB,CAAC;AAEF,eAAO,MAAM,uBAAuB,2KAInC,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,kXAkBjC,CAAC;AAQF,eAAO,MAAM,oBAAoB,gYAIhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,qbAInC,CAAC;AAEF,eAAO,MAAM,0BAA0B,uNAOtC,CAAC;AAEF,eAAO,MAAM,4BAA4B,qQAMxC,CAAC;AAEF,eAAO,MAAM,8BAA8B,orCAc1C,CAAC"}
|