@fluidgrids/cli 2026.1107.1 → 2026.1109.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 (162) hide show
  1. package/README.md +98 -6
  2. package/dist/cli.js +9705 -33
  3. package/package.json +42 -35
  4. package/dist/auth/device-login.d.ts +0 -31
  5. package/dist/auth/device-login.d.ts.map +0 -1
  6. package/dist/auth/device-login.js +0 -75
  7. package/dist/auth/device-login.js.map +0 -1
  8. package/dist/auth/token-auth.d.ts +0 -49
  9. package/dist/auth/token-auth.d.ts.map +0 -1
  10. package/dist/auth/token-auth.js +0 -279
  11. package/dist/auth/token-auth.js.map +0 -1
  12. package/dist/cli.d.ts +0 -10
  13. package/dist/cli.d.ts.map +0 -1
  14. package/dist/cli.js.map +0 -1
  15. package/dist/code-first/api.d.ts +0 -601
  16. package/dist/code-first/api.d.ts.map +0 -1
  17. package/dist/code-first/api.js +0 -432
  18. package/dist/code-first/api.js.map +0 -1
  19. package/dist/code-first/code-upload.d.ts +0 -53
  20. package/dist/code-first/code-upload.d.ts.map +0 -1
  21. package/dist/code-first/code-upload.js +0 -165
  22. package/dist/code-first/code-upload.js.map +0 -1
  23. package/dist/code-first/commands/codegen.d.ts +0 -20
  24. package/dist/code-first/commands/codegen.d.ts.map +0 -1
  25. package/dist/code-first/commands/codegen.js +0 -50
  26. package/dist/code-first/commands/codegen.js.map +0 -1
  27. package/dist/code-first/commands/diff.d.ts +0 -28
  28. package/dist/code-first/commands/diff.d.ts.map +0 -1
  29. package/dist/code-first/commands/diff.js +0 -73
  30. package/dist/code-first/commands/diff.js.map +0 -1
  31. package/dist/code-first/commands/hotfix.d.ts +0 -54
  32. package/dist/code-first/commands/hotfix.d.ts.map +0 -1
  33. package/dist/code-first/commands/hotfix.js +0 -225
  34. package/dist/code-first/commands/hotfix.js.map +0 -1
  35. package/dist/code-first/commands/import.d.ts +0 -40
  36. package/dist/code-first/commands/import.d.ts.map +0 -1
  37. package/dist/code-first/commands/import.js +0 -235
  38. package/dist/code-first/commands/import.js.map +0 -1
  39. package/dist/code-first/commands/init.d.ts +0 -33
  40. package/dist/code-first/commands/init.d.ts.map +0 -1
  41. package/dist/code-first/commands/init.js +0 -177
  42. package/dist/code-first/commands/init.js.map +0 -1
  43. package/dist/code-first/commands/interface.d.ts +0 -12
  44. package/dist/code-first/commands/interface.d.ts.map +0 -1
  45. package/dist/code-first/commands/interface.js +0 -21
  46. package/dist/code-first/commands/interface.js.map +0 -1
  47. package/dist/code-first/commands/pull.d.ts +0 -63
  48. package/dist/code-first/commands/pull.d.ts.map +0 -1
  49. package/dist/code-first/commands/pull.js +0 -266
  50. package/dist/code-first/commands/pull.js.map +0 -1
  51. package/dist/code-first/commands/push.d.ts +0 -97
  52. package/dist/code-first/commands/push.d.ts.map +0 -1
  53. package/dist/code-first/commands/push.js +0 -313
  54. package/dist/code-first/commands/push.js.map +0 -1
  55. package/dist/code-first/commands/replay.d.ts +0 -44
  56. package/dist/code-first/commands/replay.d.ts.map +0 -1
  57. package/dist/code-first/commands/replay.js +0 -238
  58. package/dist/code-first/commands/replay.js.map +0 -1
  59. package/dist/code-first/commands/runs.d.ts +0 -160
  60. package/dist/code-first/commands/runs.d.ts.map +0 -1
  61. package/dist/code-first/commands/runs.js +0 -565
  62. package/dist/code-first/commands/runs.js.map +0 -1
  63. package/dist/code-first/commands/suite.d.ts +0 -57
  64. package/dist/code-first/commands/suite.d.ts.map +0 -1
  65. package/dist/code-first/commands/suite.js +0 -197
  66. package/dist/code-first/commands/suite.js.map +0 -1
  67. package/dist/code-first/commands/validate.d.ts +0 -38
  68. package/dist/code-first/commands/validate.d.ts.map +0 -1
  69. package/dist/code-first/commands/validate.js +0 -140
  70. package/dist/code-first/commands/validate.js.map +0 -1
  71. package/dist/code-first/commands/versions.d.ts +0 -63
  72. package/dist/code-first/commands/versions.d.ts.map +0 -1
  73. package/dist/code-first/commands/versions.js +0 -204
  74. package/dist/code-first/commands/versions.js.map +0 -1
  75. package/dist/code-first/connections.d.ts +0 -55
  76. package/dist/code-first/connections.d.ts.map +0 -1
  77. package/dist/code-first/connections.js +0 -180
  78. package/dist/code-first/connections.js.map +0 -1
  79. package/dist/code-first/durable-operations.d.ts +0 -41
  80. package/dist/code-first/durable-operations.d.ts.map +0 -1
  81. package/dist/code-first/durable-operations.js +0 -135
  82. package/dist/code-first/durable-operations.js.map +0 -1
  83. package/dist/code-first/history.d.ts +0 -30
  84. package/dist/code-first/history.d.ts.map +0 -1
  85. package/dist/code-first/history.js +0 -139
  86. package/dist/code-first/history.js.map +0 -1
  87. package/dist/code-first/imports.d.ts +0 -22
  88. package/dist/code-first/imports.d.ts.map +0 -1
  89. package/dist/code-first/imports.js +0 -67
  90. package/dist/code-first/imports.js.map +0 -1
  91. package/dist/code-first/index.d.ts +0 -18
  92. package/dist/code-first/index.d.ts.map +0 -1
  93. package/dist/code-first/index.js +0 -36
  94. package/dist/code-first/index.js.map +0 -1
  95. package/dist/code-first/junit.d.ts +0 -24
  96. package/dist/code-first/junit.d.ts.map +0 -1
  97. package/dist/code-first/junit.js +0 -163
  98. package/dist/code-first/junit.js.map +0 -1
  99. package/dist/code-first/lowering.d.ts +0 -94
  100. package/dist/code-first/lowering.d.ts.map +0 -1
  101. package/dist/code-first/lowering.js +0 -248
  102. package/dist/code-first/lowering.js.map +0 -1
  103. package/dist/code-first/operations.d.ts +0 -55
  104. package/dist/code-first/operations.d.ts.map +0 -1
  105. package/dist/code-first/operations.js +0 -165
  106. package/dist/code-first/operations.js.map +0 -1
  107. package/dist/code-first/parity-operations.d.ts +0 -44
  108. package/dist/code-first/parity-operations.d.ts.map +0 -1
  109. package/dist/code-first/parity-operations.js +0 -211
  110. package/dist/code-first/parity-operations.js.map +0 -1
  111. package/dist/code-first/parity.d.ts +0 -83
  112. package/dist/code-first/parity.d.ts.map +0 -1
  113. package/dist/code-first/parity.js +0 -301
  114. package/dist/code-first/parity.js.map +0 -1
  115. package/dist/code-first/presigned.d.ts +0 -21
  116. package/dist/code-first/presigned.d.ts.map +0 -1
  117. package/dist/code-first/presigned.js +0 -85
  118. package/dist/code-first/presigned.js.map +0 -1
  119. package/dist/code-first/project.d.ts +0 -123
  120. package/dist/code-first/project.d.ts.map +0 -1
  121. package/dist/code-first/project.js +0 -301
  122. package/dist/code-first/project.js.map +0 -1
  123. package/dist/code-first/python.d.ts +0 -81
  124. package/dist/code-first/python.d.ts.map +0 -1
  125. package/dist/code-first/python.js +0 -249
  126. package/dist/code-first/python.js.map +0 -1
  127. package/dist/code-first/redact.d.ts +0 -31
  128. package/dist/code-first/redact.d.ts.map +0 -1
  129. package/dist/code-first/redact.js +0 -159
  130. package/dist/code-first/redact.js.map +0 -1
  131. package/dist/code-first/register.d.ts +0 -35
  132. package/dist/code-first/register.d.ts.map +0 -1
  133. package/dist/code-first/register.js +0 -415
  134. package/dist/code-first/register.js.map +0 -1
  135. package/dist/code-first/remote.d.ts +0 -58
  136. package/dist/code-first/remote.d.ts.map +0 -1
  137. package/dist/code-first/remote.js +0 -126
  138. package/dist/code-first/remote.js.map +0 -1
  139. package/dist/code-first/replay.d.ts +0 -36
  140. package/dist/code-first/replay.d.ts.map +0 -1
  141. package/dist/code-first/replay.js +0 -52
  142. package/dist/code-first/replay.js.map +0 -1
  143. package/dist/code-first/shared.d.ts +0 -53
  144. package/dist/code-first/shared.d.ts.map +0 -1
  145. package/dist/code-first/shared.js +0 -94
  146. package/dist/code-first/shared.js.map +0 -1
  147. package/dist/code-first/test-suite-operations.d.ts +0 -16
  148. package/dist/code-first/test-suite-operations.d.ts.map +0 -1
  149. package/dist/code-first/test-suite-operations.js +0 -44
  150. package/dist/code-first/test-suite-operations.js.map +0 -1
  151. package/dist/modules.d.ts +0 -15
  152. package/dist/modules.d.ts.map +0 -1
  153. package/dist/modules.js +0 -61
  154. package/dist/modules.js.map +0 -1
  155. package/dist/product-defaults.d.ts +0 -11
  156. package/dist/product-defaults.d.ts.map +0 -1
  157. package/dist/product-defaults.js +0 -25
  158. package/dist/product-defaults.js.map +0 -1
  159. package/dist/program.d.ts +0 -20
  160. package/dist/program.d.ts.map +0 -1
  161. package/dist/program.js +0 -44
  162. package/dist/program.js.map +0 -1
@@ -1,165 +0,0 @@
1
- /**
2
- * GraphQL documents for the code-first commands (spec 07 §7, Phase A).
3
- *
4
- * Every document targets the WORKSPACE gateway (wspace-workflow-svc, plus
5
- * wspace-integrations-svc for connections). They are hand-written, like the
6
- * documents in `@burdenoff/cli-sdk/modules/fluidgrids`, and validated by
7
- * `tests/code-first/operations.test.ts`.
8
- *
9
- * Two groups:
10
- * - Live operations, validated against the vendored supergraph
11
- * `schema/wspace.graphql`: `exportWorkflow` (JSON envelope),
12
- * `workflowVersions`, `createWorkflowVersion`, `importWorkflow`,
13
- * `workflowVersionDiff`, `nodeEndpointConfigs`, `getConnections`,
14
- * `workflowDefinitions`.
15
- * - Code-first operations added by the wspace-workflow-svc code-first release
16
- * (BOFF-9904): `exportWorkflow(format:, options:)` with the additive
17
- * `exportFormat` / `files` / `fidelity` / `irHash` fields, `importWorkflow`
18
- * with `source`, `validateWorkflowDefinition` and `workflowInterface`. They
19
- * are validated against the vendored supergraph, which carries them.
20
- *
21
- * Every code-first operation is gated on the service by the
22
- * `fluidgrids.code-first` feature flag; a workspace without it gets a GraphQL
23
- * error that the CLI prints as it is.
24
- */
25
- const NODE_REFERENCE_FIELDS = 'nodeId nodeType nodeVersion';
26
- /** The portable JSON envelope, exactly the fields the service writes. */
27
- export const CF_EXPORT_WORKFLOW = `
28
- query FluidgridsCodeExportWorkflow($workflowKey: String!, $version: String) {
29
- exportWorkflow(workflowKey: $workflowKey, version: $version) {
30
- format schemaVersion exportedAt workflowKey version name description
31
- definitionJson context tags tagsV2 icon category
32
- nodeReferences { ${NODE_REFERENCE_FIELDS} }
33
- }
34
- }
35
- `;
36
- /** Code formats the service renders. */
37
- export const RENDERED_EXPORT_FORMATS = ['TYPESCRIPT', 'PYTHON'];
38
- /**
39
- * `exportWorkflow` rendered as code on the service (code-first release).
40
- * `ExportOptionsInput.connectionNames` is the on/off switch (default on) and
41
- * `connectionNameMap` carries the connectionId-to-name map, because the service
42
- * does not read the integrations service on the caller's behalf.
43
- */
44
- export function renderedExportDocument(format) {
45
- return `
46
- query FluidgridsCodeExportWorkflowAs${format === 'TYPESCRIPT' ? 'TypeScript' : 'Python'}(
47
- $workflowKey: String!
48
- $version: String
49
- $connectionNameMap: JSON
50
- $includeLayout: Boolean
51
- $includePinnedData: Boolean
52
- ) {
53
- exportWorkflow(
54
- workflowKey: $workflowKey
55
- version: $version
56
- format: ${format}
57
- options: {
58
- connectionNameMap: $connectionNameMap
59
- includeLayout: $includeLayout
60
- includePinnedData: $includePinnedData
61
- }
62
- ) {
63
- workflowKey version exportFormat irHash
64
- files { path contentType content }
65
- fidelity { level items { nodeId path kind detail } }
66
- }
67
- }
68
- `;
69
- }
70
- export const CF_WORKFLOW_VERSIONS = `
71
- query FluidgridsCodeWorkflowVersions($workflowKey: String!) {
72
- workflowVersions(workflowKey: $workflowKey) {
73
- id workflowKey version name status isActive alias createdAt
74
- }
75
- }
76
- `;
77
- export const CF_LIST_WORKFLOW_KEYS = `
78
- query FluidgridsCodeListWorkflowKeys($input: ListWorkflowDefinitionsInput!) {
79
- workflowDefinitions(input: $input) {
80
- items { workflowKey version }
81
- total
82
- hasMore
83
- }
84
- }
85
- `;
86
- const SAVED_WORKFLOW_FIELDS = 'id workflowKey version status createdAt validationWarnings';
87
- export const CF_CREATE_WORKFLOW_VERSION = `
88
- mutation FluidgridsCodeCreateWorkflowVersion(
89
- $workflowKey: String!
90
- $input: CreateWorkflowVersionInput!
91
- ) {
92
- createWorkflowVersion(workflowKey: $workflowKey, input: $input) {
93
- success
94
- message
95
- workflow { ${SAVED_WORKFLOW_FIELDS} }
96
- }
97
- }
98
- `;
99
- /**
100
- * `importWorkflow` with either a bare `definitionJson` (live) or, from the
101
- * code-first release, `source: { format, files, connections }` so the service
102
- * reads a JSON document or lowers tier-1 TypeScript itself.
103
- */
104
- export const CF_IMPORT_WORKFLOW = `
105
- mutation FluidgridsCodeImportWorkflow($input: ImportWorkflowInput!) {
106
- importWorkflow(input: $input) {
107
- success
108
- message
109
- workflow { ${SAVED_WORKFLOW_FIELDS} }
110
- validation {
111
- valid errors warnings
112
- missingNodes { ${NODE_REFERENCE_FIELDS} }
113
- }
114
- }
115
- }
116
- `;
117
- export const CF_WORKFLOW_VERSION_DIFF = `
118
- query FluidgridsCodeWorkflowVersionDiff(
119
- $workflowKey: String!
120
- $fromVersion: String!
121
- $toVersion: String!
122
- ) {
123
- workflowVersionDiff(workflowKey: $workflowKey, fromVersion: $fromVersion, toVersion: $toVersion) {
124
- workflowKey fromVersion toVersion truncated
125
- entries { path kind before after }
126
- }
127
- }
128
- `;
129
- const VALIDATION_ISSUE_FIELDS = 'code message nodeId path';
130
- /** IR v2 validation on the service, with the strict rules on request (code-first release). */
131
- export const CF_VALIDATE_WORKFLOW_DEFINITION = `
132
- query FluidgridsCodeValidateWorkflowDefinition($definitionJson: JSON!, $strict: Boolean) {
133
- validateWorkflowDefinition(definitionJson: $definitionJson, strict: $strict) {
134
- valid schemaVersion irHash taskQueues
135
- errors { ${VALIDATION_ISSUE_FIELDS} }
136
- warnings { ${VALIDATION_ISSUE_FIELDS} }
137
- }
138
- }
139
- `;
140
- /** The workflow's declared or derived interface (inputs, outputs, signals) (code-first release). */
141
- export const CF_WORKFLOW_INTERFACE = `
142
- query FluidgridsCodeWorkflowInterface($workflowKey: String!, $version: String) {
143
- workflowInterface(workflowKey: $workflowKey, version: $version)
144
- }
145
- `;
146
- /** The node registry the workspace can use: the contract fields codegen reads. */
147
- export const CF_LIST_NODE_MANIFESTS = `
148
- query FluidgridsCodeNodeManifests($status: NodeConfigStatus, $pagination: WorkflowPaginationInput) {
149
- nodeEndpointConfigs(status: $status, pagination: $pagination) {
150
- configs { nodeType nodeVersion name kind operations isLatest }
151
- pagination { total limit offset hasMore }
152
- }
153
- }
154
- `;
155
- /** Workspace connections, to resolve connection names in code to ids. */
156
- export const CF_LIST_CONNECTIONS = `
157
- query FluidgridsCodeConnections($pagination: IntegrationsPaginationInput) {
158
- getConnections(pagination: $pagination) {
159
- items { id name provider { key } }
160
- total
161
- hasMore
162
- }
163
- }
164
- `;
165
- //# sourceMappingURL=operations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/code-first/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;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,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"}
@@ -1,44 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,211 +0,0 @@
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=parity-operations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parity-operations.js","sourceRoot":"","sources":["../../src/code-first/parity-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,kBAAkB,GAAG;;;;;;CAM1B,CAAC;AAEF,sGAAsG;AACtG,MAAM,YAAY,GAAG;;;CAGpB,CAAC;AAEF,MAAM,mBAAmB,GAAG;;;CAG3B,CAAC;AAEF,4DAA4D;AAC5D,MAAM,iBAAiB,GAAG;IACtB,kBAAkB;IAClB,YAAY;;;;;;;wBAOQ,mBAAmB;;CAE1C,CAAC;AAEF,MAAM,cAAc,GAAG;;;;;;;;;CAStB,CAAC;AAEF,yCAAyC;AACzC,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;cAI1B,kBAAkB,IAAI,YAAY;;;CAG/C,CAAC;AAEF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,oCAAoC,GAAG;;;;cAItC,kBAAkB,IAAI,YAAY;;;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19, spec code-first 11): run targets (`--workflow-id` with `--key`), the
4
- * workflow-id policies, durations, the completion callback and the start
5
- * options of `runs start`.
6
- *
7
- * The service is the authority on every value (it refuses with VALIDATION or,
8
- * without fluidgrids.durable-parity, FEATURE_DISABLED); the CLI only checks
9
- * what it can say better up front, and never takes a secret from argv.
10
- */
11
- import type { DurableRun, IdConflictPolicy, IdReusePolicy, RunGroupBy, RunRef, RunTarget, StartWorkflowInput, VersioningBehavior } from './api.js';
12
- import { type CommandEnv } from './shared.js';
13
- /** `--workflow-id <id> --key <workflowKey> [--first-run-id <id>]`. */
14
- export interface TargetOptions {
15
- workflowId?: string;
16
- key?: string;
17
- firstRunId?: string;
18
- }
19
- /**
20
- * The run a command acts on: the positional run id, or the latest run of a
21
- * workflow id. Exactly one of the two forms.
22
- */
23
- export declare function runRefOf(runId: string | undefined, options: TargetOptions): RunRef;
24
- export declare function describeTarget(target: RunTarget): string;
25
- /** The latest run of a target with its parity fields, or NOT_FOUND. */
26
- export declare function resolveTarget(env: CommandEnv, target: RunTarget): Promise<DurableRun>;
27
- /** The run id of a reference (a target resolves to its latest run). */
28
- export declare function resolveRunId(env: CommandEnv, ref: RunRef): Promise<string>;
29
- export declare const ID_REUSE_POLICIES: readonly IdReusePolicy[];
30
- export declare const ID_CONFLICT_POLICIES: readonly IdConflictPolicy[];
31
- export declare const VERSIONING_BEHAVIORS: readonly VersioningBehavior[];
32
- export declare const RUN_GROUP_BY: readonly RunGroupBy[];
33
- export declare function parseIdReuse(raw: string | undefined): IdReusePolicy | undefined;
34
- export declare function parseIdConflict(raw: string | undefined): IdConflictPolicy | undefined;
35
- export declare function parseVersioning(raw: string | undefined, flag: string): VersioningBehavior | undefined;
36
- /** `--group-by status,task-queue`: at most two distinct columns. */
37
- export declare function parseGroupBy(raw: string | undefined): RunGroupBy[];
38
- /**
39
- * A duration as the service takes it: a whole number of milliseconds, or what the workflow IR's
40
- * `durationMs` reads (`1.5s`, `5m`, `2h`, `7d`, `2w`, ISO 8601 `PT2H` or `P1W`). This is the same
41
- * check the service runs (`parseDurationMs` in wspace-workflow-svc), so the CLI neither refuses a
42
- * value the service takes nor sends one it refuses. The service checks the limits (30 days for a
43
- * start delay, 120 s for a task timeout).
44
- */
45
- export declare function parseDuration(raw: string | undefined, flag: string): string | undefined;
46
- /** `--priority 1..5` (1 is the highest). */
47
- export declare function parsePriority(raw: string | undefined): number | undefined;
48
- /**
49
- * `--callback-header 'Name: value'` (repeatable) and `--callback-header-env 'Name=ENV_VAR'`
50
- * (repeatable; the value is read from the environment, so a credential stays out of argv).
51
- * Errors name the option and its position, never the argument: a malformed entry usually still
52
- * holds a bearer token.
53
- */
54
- export declare function parseHeaders(raw: readonly string[] | undefined, fromEnv?: {
55
- env: CommandEnv;
56
- entries: readonly string[] | undefined;
57
- }): Record<string, string> | undefined;
58
- /** The callback signing secret, read from the named environment variable (never from argv). */
59
- export declare function readSecretEnv(env: CommandEnv, name: string | undefined): string | undefined;
60
- /** A JSON object option (`--memo`). */
61
- export declare function parseJsonObject(raw: string | undefined, flag: string): Record<string, unknown> | undefined;
62
- /** The parity options of `runs start`. */
63
- export interface ParityStartOptions {
64
- workflowId?: string;
65
- idReuse?: string;
66
- idConflict?: string;
67
- delay?: string;
68
- runTimeout?: string;
69
- executionTimeout?: string;
70
- taskTimeout?: string;
71
- summary?: string;
72
- detailsFile?: string;
73
- memo?: string;
74
- callback?: string;
75
- callbackHeader?: string[];
76
- callbackHeaderEnv?: string[];
77
- callbackSecretEnv?: string;
78
- priority?: string;
79
- versioningBehavior?: string;
80
- }
81
- /** The parity fields of a StartWorkflowInput from `runs start` options; empty without any. */
82
- export declare function parityStartFields(env: CommandEnv, options: ParityStartOptions): Partial<StartWorkflowInput>;
83
- //# sourceMappingURL=parity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parity.d.ts","sourceRoot":"","sources":["../../src/code-first/parity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,OAAO,KAAK,EACV,U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