@fluidgrids/cli 2026.1028.2 → 2026.1031.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.
Files changed (69) hide show
  1. package/README.md +102 -3
  2. package/dist/code-first/api.d.ts +244 -0
  3. package/dist/code-first/api.d.ts.map +1 -1
  4. package/dist/code-first/api.js +148 -4
  5. package/dist/code-first/api.js.map +1 -1
  6. package/dist/code-first/code-upload.d.ts +2 -1
  7. package/dist/code-first/code-upload.d.ts.map +1 -1
  8. package/dist/code-first/code-upload.js +5 -1
  9. package/dist/code-first/code-upload.js.map +1 -1
  10. package/dist/code-first/commands/runs.d.ts +80 -14
  11. package/dist/code-first/commands/runs.d.ts.map +1 -1
  12. package/dist/code-first/commands/runs.js +281 -20
  13. package/dist/code-first/commands/runs.js.map +1 -1
  14. package/dist/code-first/commands/suite.d.ts +57 -0
  15. package/dist/code-first/commands/suite.d.ts.map +1 -0
  16. package/dist/code-first/commands/suite.js +197 -0
  17. package/dist/code-first/commands/suite.js.map +1 -0
  18. package/dist/code-first/commands/versions.d.ts +52 -3
  19. package/dist/code-first/commands/versions.d.ts.map +1 -1
  20. package/dist/code-first/commands/versions.js +177 -3
  21. package/dist/code-first/commands/versions.js.map +1 -1
  22. package/dist/code-first/durable-operations.d.ts +1 -2
  23. package/dist/code-first/durable-operations.d.ts.map +1 -1
  24. package/dist/code-first/durable-operations.js +1 -2
  25. package/dist/code-first/durable-operations.js.map +1 -1
  26. package/dist/code-first/index.d.ts +2 -1
  27. package/dist/code-first/index.d.ts.map +1 -1
  28. package/dist/code-first/index.js +2 -1
  29. package/dist/code-first/index.js.map +1 -1
  30. package/dist/code-first/junit.d.ts +24 -0
  31. package/dist/code-first/junit.d.ts.map +1 -0
  32. package/dist/code-first/junit.js +163 -0
  33. package/dist/code-first/junit.js.map +1 -0
  34. package/dist/code-first/lowering.d.ts +13 -0
  35. package/dist/code-first/lowering.d.ts.map +1 -1
  36. package/dist/code-first/lowering.js +24 -1
  37. package/dist/code-first/lowering.js.map +1 -1
  38. package/dist/code-first/operations.d.ts +1 -3
  39. package/dist/code-first/operations.d.ts.map +1 -1
  40. package/dist/code-first/operations.js +1 -3
  41. package/dist/code-first/operations.js.map +1 -1
  42. package/dist/code-first/parity-operations.d.ts +44 -0
  43. package/dist/code-first/parity-operations.d.ts.map +1 -0
  44. package/dist/code-first/parity-operations.js +211 -0
  45. package/dist/code-first/parity-operations.js.map +1 -0
  46. package/dist/code-first/parity.d.ts +83 -0
  47. package/dist/code-first/parity.d.ts.map +1 -0
  48. package/dist/code-first/parity.js +301 -0
  49. package/dist/code-first/parity.js.map +1 -0
  50. package/dist/code-first/redact.d.ts +31 -0
  51. package/dist/code-first/redact.d.ts.map +1 -0
  52. package/dist/code-first/redact.js +150 -0
  53. package/dist/code-first/redact.js.map +1 -0
  54. package/dist/code-first/register.d.ts +9 -1
  55. package/dist/code-first/register.d.ts.map +1 -1
  56. package/dist/code-first/register.js +171 -26
  57. package/dist/code-first/register.js.map +1 -1
  58. package/dist/code-first/shared.d.ts +2 -0
  59. package/dist/code-first/shared.d.ts.map +1 -1
  60. package/dist/code-first/shared.js +1 -0
  61. package/dist/code-first/shared.js.map +1 -1
  62. package/dist/code-first/test-suite-operations.d.ts +16 -0
  63. package/dist/code-first/test-suite-operations.d.ts.map +1 -0
  64. package/dist/code-first/test-suite-operations.js +44 -0
  65. package/dist/code-first/test-suite-operations.js.map +1 -0
  66. package/dist/program.d.ts.map +1 -1
  67. package/dist/program.js +1 -0
  68. package/dist/program.js.map +1 -1
  69. package/package.json +2 -2
@@ -0,0 +1,163 @@
1
+ /**
2
+ * JUnit XML for a workflow test suite run (`fluidgrids test <key> --junit`),
3
+ * the report format CI systems (GitHub Actions reporters, GitLab, Jenkins,
4
+ * Azure DevOps) read.
5
+ *
6
+ * One `<testsuite>` per suite run and one `<testcase>` per test case:
7
+ * - PASSED: an empty `<testcase>`;
8
+ * - FAILED: a `<failure>` (an assertion did not hold, or the run did not end
9
+ * as the case expects);
10
+ * - ERROR: an `<error>` (the case could not run);
11
+ * - PENDING or RUNNING, when the CLI stopped waiting first: an `<error>` of type
12
+ * NOT_FINISHED, so an unfinished case never reads as a pass.
13
+ *
14
+ * `time` is the seconds from the suite's start to the case's completion: the
15
+ * service records when a case finished, not when its run started.
16
+ */
17
+ /** U+FFFD, written as an escape so the source stays plain ASCII. */
18
+ const REPLACEMENT_CHARACTER = '\uFFFD';
19
+ /**
20
+ * Whether XML 1.0 can carry a code point at all, even escaped (its `Char`
21
+ * production): tab, LF, CR, U+0020–U+D7FF, U+E000–U+FFFD and the supplementary
22
+ * planes. C0 controls, U+FFFE/U+FFFF and unpaired surrogates are not.
23
+ */
24
+ function isXmlChar(codePoint) {
25
+ return (codePoint === 0x9 ||
26
+ codePoint === 0xa ||
27
+ codePoint === 0xd ||
28
+ (codePoint >= 0x20 && codePoint <= 0xd7ff) ||
29
+ (codePoint >= 0xe000 && codePoint <= 0xfffd) ||
30
+ (codePoint >= 0x10000 && codePoint <= 0x10ffff));
31
+ }
32
+ /** Text safe for an XML attribute value or element content. */
33
+ export function escapeXml(value) {
34
+ let out = '';
35
+ // Iterating a string yields code points; an unpaired surrogate comes out on its own.
36
+ for (const char of value) {
37
+ const codePoint = char.codePointAt(0) ?? 0;
38
+ if (!isXmlChar(codePoint)) {
39
+ out += REPLACEMENT_CHARACTER;
40
+ continue;
41
+ }
42
+ switch (char) {
43
+ case '&':
44
+ out += '&amp;';
45
+ break;
46
+ case '<':
47
+ out += '&lt;';
48
+ break;
49
+ case '>':
50
+ out += '&gt;';
51
+ break;
52
+ case '"':
53
+ out += '&quot;';
54
+ break;
55
+ case "'":
56
+ out += '&apos;';
57
+ break;
58
+ default:
59
+ out += char;
60
+ }
61
+ }
62
+ return out;
63
+ }
64
+ function attributes(values) {
65
+ return Object.entries(values)
66
+ .map(([name, value]) => `${name}="${escapeXml(String(value))}"`)
67
+ .join(' ');
68
+ }
69
+ /** Seconds between two ISO instants, 3 decimals; 0 when either is missing or unparsable. */
70
+ export function elapsedSeconds(from, to) {
71
+ if (!from || !to)
72
+ return '0';
73
+ const ms = Date.parse(to) - Date.parse(from);
74
+ if (!Number.isFinite(ms) || ms < 0)
75
+ return '0';
76
+ return (ms / 1000).toFixed(3);
77
+ }
78
+ function failureText(result) {
79
+ const lines = result.failures.map((failure) => `${failure.code}${failure.nodeId ? ` [node ${failure.nodeId}]` : ''}: ${failure.message}`);
80
+ if (result.runId)
81
+ lines.push(`Run: ${result.runId}${result.runStatus ? ` (${result.runStatus})` : ''}`);
82
+ return lines.join('\n');
83
+ }
84
+ function caseOutcome(result) {
85
+ const first = result.failures[0];
86
+ const text = escapeXml(failureText(result));
87
+ switch (result.status) {
88
+ case 'PASSED':
89
+ return null;
90
+ case 'FAILED':
91
+ return `<failure ${attributes({
92
+ message: first ? `${first.code}: ${first.message}` : 'The case failed',
93
+ type: first?.code ?? 'FAILED',
94
+ })}>${text}</failure>`;
95
+ case 'ERROR':
96
+ return `<error ${attributes({
97
+ message: first ? `${first.code}: ${first.message}` : 'The case could not run',
98
+ type: first?.code ?? 'ERROR',
99
+ })}>${text}</error>`;
100
+ default:
101
+ return `<error ${attributes({
102
+ message: `The case was still ${result.status} when the CLI stopped waiting`,
103
+ type: 'NOT_FINISHED',
104
+ })}>${text}</error>`;
105
+ }
106
+ }
107
+ /** The JUnit XML document for a suite run (final or not). */
108
+ export function suiteToJUnit(suite) {
109
+ const failures = suite.results.filter((result) => result.status === 'FAILED').length;
110
+ const errors = suite.results.filter((result) => result.status !== 'PASSED' && result.status !== 'FAILED').length;
111
+ const tests = suite.results.length;
112
+ const end = suite.completedAt ??
113
+ suite.results.reduce((latest, result) => result.completedAt && (!latest || result.completedAt > latest)
114
+ ? result.completedAt
115
+ : latest, null);
116
+ const time = elapsedSeconds(suite.startedAt, end);
117
+ const name = `${suite.workflowKey}@${suite.version}`;
118
+ const classname = `fluidgrids.${suite.workflowKey}`;
119
+ const lines = [
120
+ '<?xml version="1.0" encoding="UTF-8"?>',
121
+ `<testsuites ${attributes({ name: 'fluidgrids', tests, failures, errors, time })}>`,
122
+ ` <testsuite ${attributes({
123
+ name,
124
+ id: suite.id,
125
+ tests,
126
+ failures,
127
+ errors,
128
+ skipped: 0,
129
+ timestamp: suite.startedAt,
130
+ time,
131
+ })}>`,
132
+ ' <properties>',
133
+ ` <property ${attributes({ name: 'suiteRunId', value: suite.id })}/>`,
134
+ ` <property ${attributes({ name: 'workflowKey', value: suite.workflowKey })}/>`,
135
+ ` <property ${attributes({ name: 'version', value: suite.version })}/>`,
136
+ ` <property ${attributes({ name: 'status', value: suite.status })}/>`,
137
+ ' </properties>',
138
+ ];
139
+ for (const result of suite.results) {
140
+ const open = ` <testcase ${attributes({
141
+ name: result.caseName,
142
+ classname,
143
+ time: elapsedSeconds(suite.startedAt, result.completedAt),
144
+ })}`;
145
+ const outcome = caseOutcome(result);
146
+ const runOut = result.runId
147
+ ? ` <system-out>${escapeXml(`Case ${result.caseId}, run ${result.runId}`)}</system-out>`
148
+ : null;
149
+ if (!outcome && !runOut) {
150
+ lines.push(`${open}/>`);
151
+ continue;
152
+ }
153
+ lines.push(`${open}>`);
154
+ if (outcome)
155
+ lines.push(` ${outcome}`);
156
+ if (runOut)
157
+ lines.push(runOut);
158
+ lines.push(' </testcase>');
159
+ }
160
+ lines.push(' </testsuite>', '</testsuites>', '');
161
+ return lines.join('\n');
162
+ }
163
+ //# sourceMappingURL=junit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"junit.js","sourceRoot":"","sources":["../../src/code-first/junit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,oEAAoE;AACpE,MAAM,qBAAqB,GAAG,QAAQ,CAAC;AAEvC;;;;GAIG;AACH,SAAS,SAAS,CAAC,SAAiB;IAClC,OAAO,CACL,SAAS,KAAK,GAAG;QACjB,SAAS,KAAK,GAAG;QACjB,SAAS,KAAK,GAAG;QACjB,CAAC,SAAS,IAAI,IAA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KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;QACnC,MAAM,IAAI,GAAG,iBAAiB,UAAU,CAAC;YACvC,IAAI,EAAE,MAAM,CAAC,QAAQ;YACrB,SAAS;YACT,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;SAC1D,CAAC,EAAE,CAAC;QACL,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;QACpC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK;YACzB,CAAC,CAAC,qBAAqB,SAAS,CAAC,QAAQ,MAAM,CAAC,MAAM,SAAS,MAAM,CAAC,KAAK,EAAE,CAAC,eAAe;YAC7F,CAAC,CAAC,IAAI,CAAC;QACT,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;YACxB,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC;YACxB,SAAS;QACX,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACvB,IAAI,OAAO;YAAE,KAAK,CAAC,IAAI,CAAC,SAAS,OAAO,EAAE,CAAC,CAAC;QAC5C,IAAI,MAAM;YAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAChC,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,eAAe,EAAE,EAAE,CAAC,CAAC;IAClD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,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,EAML,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,CAAC;IACpC,kGAAkG;IAClG,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC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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,KAAK,EACL,UAAU,EACV,kBAAkB,GAGnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GAIjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,WAAW,EACX,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,aAAa,CAAC;AAuBrB,kEAAkE;AAClE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AA2BhD,SAAS,cAAc,CAAC,KAAc;IACpC,OAAO,KAAK,YAAY,KAAK,IAAI,QAAQ,IAAI,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACpF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,KAAc,EAAE,IAAY;IACvD,IAAI,KAAK,YAAY,UAAU,IAAI,KAAK,YAAY,YAAY,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1F,OAAO,IAAI,YAAY,CAAC,YAAY,IAAI,YAAY,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC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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 once `bun run schema:pull` brings them
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;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;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,CAy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AEF,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 once `bun run schema:pull` brings them
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;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,MAAM,qBAAqB,GAAG,6BAA6B,CAAC;AAE5D,yEAAyE;AACzE,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;yBAKT,qBAAqB;;;CAG7C,CAAC;AAEF,wCAAwC;AACxC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAU,CAAC;AAGzE;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAA4B;IACjE,OAAO;wCAC+B,MAAM,KAAK,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ;;;;;;;;;;gBAUzE,MAAM;;;;;;;;;;;;CAYrB,CAAC;AACF,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;CAMnC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;CAQpC,CAAC;AAEF,MAAM,qBAAqB,GAAG,4DAA4D,CAAC;AAE3F,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;;;mBAQvB,qBAAqB;;;CAGvC,CAAC;AAEF;;;;GAIG;AACH,MAA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AAM,0BAA0B,GAAG;;;;;;;;mBAQvB,qBAAqB;;;CAGvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;mBAKf,qBAAqB;;;yBAGf,qBAAqB;;;;CAI7C,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;CAWvC,CAAC;AAEF,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAE3D,8FAA8F;AAC9F,MAAM,CAAC,MAAM,+BAA+B,GAAG;;;;iBAI9B,uBAAuB;mBACrB,uBAAuB;;;CAGzC,CAAC;AAEF,oGAAoG;AACpG,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;CAIpC,CAAC;AAEF,kFAAkF;AAClF,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;CAOrC,CAAC;AAEF,yEAAyE;AACzE,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"}
@@ -0,0 +1,211 @@
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
+ const DURABLE_RUN_FIELDS = `
19
+ id workflowId workflowKey version status mode triggerNodeId
20
+ executionKind workflowFn taskQueue buildId historyLength parentClosePolicy
21
+ parentRunId rootRunId cancelRequestedAt
22
+ createdAt startedAt completedAt errorMessage errorType
23
+ determinism { failing cause attempts since lastFailureSeq message }
24
+ `;
25
+ /** The chain fields `runs result --follow-runs` and the run header need (never refused per field). */
26
+ const CHAIN_FIELDS = `
27
+ businessId runAttempt firstRunId continuedFromRunId continuedToRunId priority
28
+ summary details currentDetails memo startDelayUntil runTimeoutAt executionTimeoutAt
29
+ `;
30
+ const CODE_REPLACE_FIELDS = `
31
+ id kind status buildId previousBuildId targetVersion runId force verifiedRuns
32
+ violations { runId seq message }
33
+ `;
34
+ /** A run with every parity field `runs describe` prints. */
35
+ const PARITY_RUN_FIELDS = `
36
+ ${DURABLE_RUN_FIELDS}
37
+ ${CHAIN_FIELDS}
38
+ completionCallback {
39
+ url status attempts lastStatusCode lastError lastAttemptAt deliveredAt nextAttemptAt
40
+ }
41
+ versioning {
42
+ behavior startBehavior servingVersion buildId heldFromVersion
43
+ override { behavior version }
44
+ pendingOverride { ${CODE_REPLACE_FIELDS} }
45
+ }
46
+ `;
47
+ const PENDING_FIELDS = `
48
+ activities {
49
+ activityId activityType state attempt maxAttempts scheduledAt lastStartedAt
50
+ lastHeartbeatAt heartbeatDetails lastFailure nextAttemptAt summary
51
+ }
52
+ children { runId workflowKey version status startedAt }
53
+ timers { timerId fireAt summary }
54
+ bufferedSignals
55
+ workflowTask { state attempt startedAt failureCause }
56
+ `;
57
+ /** startWorkflow with parity options. */
58
+ export const CF_START_WORKFLOW_PARITY = `
59
+ mutation FluidgridsCodeStartWorkflowParity($input: StartWorkflowInput!) {
60
+ startWorkflow(input: $input) {
61
+ existing
62
+ run { ${DURABLE_RUN_FIELDS} ${CHAIN_FIELDS} }
63
+ }
64
+ }
65
+ `;
66
+ /** TERMINATE_EXISTING: needs the workflow-run delete permission (BP22). */
67
+ export const CF_START_WORKFLOW_TERMINATE_EXISTING = `
68
+ mutation FluidgridsCodeStartWorkflowTerminateExisting($input: StartWorkflowInput!) {
69
+ startWorkflowTerminateExisting(input: $input) {
70
+ existing
71
+ run { ${DURABLE_RUN_FIELDS} ${CHAIN_FIELDS} }
72
+ }
73
+ }
74
+ `;
75
+ /** A run by id with every parity field. */
76
+ export const CF_DESCRIBE_RUN_PARITY = `
77
+ query FluidgridsCodeDescribeRunParity($id: ID!) {
78
+ workflowRun(id: $id) { ${PARITY_RUN_FIELDS} }
79
+ }
80
+ `;
81
+ /** A run by id with its chain fields only (`runs result --follow-runs`). */
82
+ export const CF_RUN_CHAIN = `
83
+ query FluidgridsCodeRunChain($id: ID!) {
84
+ workflowRun(id: $id) { ${DURABLE_RUN_FIELDS} ${CHAIN_FIELDS} }
85
+ }
86
+ `;
87
+ /** The latest run of a workflow id, followed along continue-as-new. */
88
+ export const CF_RUN_BY_WORKFLOW_ID = `
89
+ query FluidgridsCodeRunByWorkflowId($workflowKey: String!, $workflowId: String!, $firstRunId: ID) {
90
+ workflowRunByWorkflowId(
91
+ workflowKey: $workflowKey
92
+ workflowId: $workflowId
93
+ firstRunId: $firstRunId
94
+ ) { ${PARITY_RUN_FIELDS} }
95
+ }
96
+ `;
97
+ /** What a run is waiting on. */
98
+ export const CF_RUN_PENDING = `
99
+ query FluidgridsCodeRunPending($id: ID!) {
100
+ workflowRun(id: $id) { id status pending { ${PENDING_FIELDS} } }
101
+ }
102
+ `;
103
+ /** How many runs the list returns for a filter, in total and per group. */
104
+ export const CF_RUNS_COUNT = `
105
+ query FluidgridsCodeRunsCount($filter: ListWorkflowRunsInput, $groupBy: [RunGroupBy!]) {
106
+ workflowRunsCount(filter: $filter, groupBy: $groupBy) {
107
+ total
108
+ groups { key values count }
109
+ groupsTruncated
110
+ }
111
+ }
112
+ `;
113
+ export const CF_SIGNAL_RUN_BY_TARGET = `
114
+ mutation FluidgridsCodeSignalRunByTarget(
115
+ $target: RunTargetInput!
116
+ $name: String!
117
+ $payload: JSON
118
+ $idempotencyKey: String
119
+ ) {
120
+ signalWorkflowRun(
121
+ target: $target
122
+ name: $name
123
+ payload: $payload
124
+ idempotencyKey: $idempotencyKey
125
+ ) {
126
+ accepted delivered buffered forwardedToRunId seq duplicate
127
+ }
128
+ }
129
+ `;
130
+ export const CF_TERMINATE_RUN_BY_TARGET = `
131
+ mutation FluidgridsCodeTerminateRunByTarget($target: RunTargetInput!, $reason: String) {
132
+ terminateWorkflowRun(target: $target, reason: $reason) { id status completedAt errorMessage }
133
+ }
134
+ `;
135
+ /** `runs cancel <runId>`: the existing cancelWorkflowRun. */
136
+ export const CF_CANCEL_RUN = `
137
+ mutation FluidgridsCodeCancelRun($id: ID!) {
138
+ cancelWorkflowRun(id: $id) { id status completedAt errorMessage }
139
+ }
140
+ `;
141
+ export const CF_CANCEL_RUN_BY_TARGET = `
142
+ mutation FluidgridsCodeCancelRunByTarget($target: RunTargetInput!) {
143
+ cancelWorkflowRunByTarget(target: $target) { id status completedAt errorMessage }
144
+ }
145
+ `;
146
+ /** The stack trace by run id or target, optionally with `__metadata`. */
147
+ export const CF_STACK_TRACE_PARITY = `
148
+ query FluidgridsCodeStackTraceParity(
149
+ $runId: ID
150
+ $target: RunTargetInput
151
+ $enhanced: Boolean
152
+ $metadata: Boolean
153
+ ) {
154
+ workflowRunStackTrace(
155
+ runId: $runId
156
+ target: $target
157
+ enhanced: $enhanced
158
+ metadata: $metadata
159
+ ) {
160
+ trace
161
+ enhanced
162
+ metadata { definition currentDetails }
163
+ }
164
+ }
165
+ `;
166
+ const ROLLOUT_FIELDS = `
167
+ id workflowKey environment fromVersion toVersion percent verifiedPercent promoted
168
+ activationCheck { ${CODE_REPLACE_FIELDS} }
169
+ createdAt updatedAt
170
+ `;
171
+ export const CF_WORKFLOW_ROLLOUTS = `
172
+ query FluidgridsCodeWorkflowRollouts($workflowKey: String!) {
173
+ workflowRollouts(workflowKey: $workflowKey) { ${ROLLOUT_FIELDS} }
174
+ }
175
+ `;
176
+ export const CF_SET_WORKFLOW_ROLLOUT = `
177
+ mutation FluidgridsCodeSetWorkflowRollout($workflowKey: String!, $input: WorkflowRolloutInput!) {
178
+ setWorkflowRollout(workflowKey: $workflowKey, input: $input) { ${ROLLOUT_FIELDS} }
179
+ }
180
+ `;
181
+ export const CF_DELETE_WORKFLOW_ROLLOUT = `
182
+ mutation FluidgridsCodeDeleteWorkflowRollout(
183
+ $workflowKey: String!
184
+ $environment: WorkflowEnvironment
185
+ ) {
186
+ deleteWorkflowRollout(workflowKey: $workflowKey, environment: $environment)
187
+ }
188
+ `;
189
+ export const CF_WORKFLOW_VERSION_DRAINAGE = `
190
+ query FluidgridsCodeWorkflowVersionDrainage($workflowKey: String!, $version: String!) {
191
+ workflowVersionDrainage(workflowKey: $workflowKey, version: $version) {
192
+ workflowKey version status openRuns lastRunStartedAt rolloutTarget
193
+ }
194
+ }
195
+ `;
196
+ export const CF_SET_RUN_VERSIONING_OVERRIDE = `
197
+ mutation FluidgridsCodeSetRunVersioningOverride(
198
+ $runId: ID
199
+ $target: RunTargetInput
200
+ $override: VersioningOverrideInput
201
+ $reason: String
202
+ ) {
203
+ setWorkflowRunVersioningOverride(
204
+ runId: $runId
205
+ target: $target
206
+ override: $override
207
+ reason: $reason
208
+ ) { ${PARITY_RUN_FIELDS} }
209
+ }
210
+ `;
211
+ //# sourceMappingURL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