@fluidgrids/cli 2026.1108.1 → 2026.1110.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 (238) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.js +9708 -33
  3. package/package.json +37 -33
  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 -607
  16. package/dist/code-first/api.d.ts.map +0 -1
  17. package/dist/code-first/api.js +0 -438
  18. package/dist/code-first/api.js.map +0 -1
  19. package/dist/code-first/code-upload.d.ts +0 -68
  20. package/dist/code-first/code-upload.d.ts.map +0 -1
  21. package/dist/code-first/code-upload.js +0 -223
  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 -55
  32. package/dist/code-first/commands/hotfix.d.ts.map +0 -1
  33. package/dist/code-first/commands/hotfix.js +0 -231
  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 -104
  52. package/dist/code-first/commands/push.d.ts.map +0 -1
  53. package/dist/code-first/commands/push.js +0 -320
  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 -271
  58. package/dist/code-first/commands/replay.js.map +0 -1
  59. package/dist/code-first/commands/runs.d.ts +0 -168
  60. package/dist/code-first/commands/runs.d.ts.map +0 -1
  61. package/dist/code-first/commands/runs.js +0 -598
  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 -104
  100. package/dist/code-first/lowering.d.ts.map +0 -1
  101. package/dist/code-first/lowering.js +0 -254
  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 -130
  120. package/dist/code-first/project.d.ts.map +0 -1
  121. package/dist/code-first/project.js +0 -308
  122. package/dist/code-first/project.js.map +0 -1
  123. package/dist/code-first/python-build.d.ts +0 -78
  124. package/dist/code-first/python-build.d.ts.map +0 -1
  125. package/dist/code-first/python-build.js +0 -268
  126. package/dist/code-first/python-build.js.map +0 -1
  127. package/dist/code-first/python.d.ts +0 -103
  128. package/dist/code-first/python.d.ts.map +0 -1
  129. package/dist/code-first/python.js +0 -260
  130. package/dist/code-first/python.js.map +0 -1
  131. package/dist/code-first/redact.d.ts +0 -31
  132. package/dist/code-first/redact.d.ts.map +0 -1
  133. package/dist/code-first/redact.js +0 -159
  134. package/dist/code-first/redact.js.map +0 -1
  135. package/dist/code-first/register.d.ts +0 -35
  136. package/dist/code-first/register.d.ts.map +0 -1
  137. package/dist/code-first/register.js +0 -420
  138. package/dist/code-first/register.js.map +0 -1
  139. package/dist/code-first/remote.d.ts +0 -58
  140. package/dist/code-first/remote.d.ts.map +0 -1
  141. package/dist/code-first/remote.js +0 -126
  142. package/dist/code-first/remote.js.map +0 -1
  143. package/dist/code-first/replay.d.ts +0 -36
  144. package/dist/code-first/replay.d.ts.map +0 -1
  145. package/dist/code-first/replay.js +0 -52
  146. package/dist/code-first/replay.js.map +0 -1
  147. package/dist/code-first/shared.d.ts +0 -53
  148. package/dist/code-first/shared.d.ts.map +0 -1
  149. package/dist/code-first/shared.js +0 -94
  150. package/dist/code-first/shared.js.map +0 -1
  151. package/dist/code-first/test-suite-operations.d.ts +0 -16
  152. package/dist/code-first/test-suite-operations.d.ts.map +0 -1
  153. package/dist/code-first/test-suite-operations.js +0 -44
  154. package/dist/code-first/test-suite-operations.js.map +0 -1
  155. package/dist/config/apply.d.ts +0 -51
  156. package/dist/config/apply.d.ts.map +0 -1
  157. package/dist/config/apply.js +0 -121
  158. package/dist/config/apply.js.map +0 -1
  159. package/dist/config/commands.d.ts +0 -58
  160. package/dist/config/commands.d.ts.map +0 -1
  161. package/dist/config/commands.js +0 -252
  162. package/dist/config/commands.js.map +0 -1
  163. package/dist/config/profiles.d.ts +0 -108
  164. package/dist/config/profiles.d.ts.map +0 -1
  165. package/dist/config/profiles.js +0 -339
  166. package/dist/config/profiles.js.map +0 -1
  167. package/dist/flag-hint.d.ts +0 -46
  168. package/dist/flag-hint.d.ts.map +0 -1
  169. package/dist/flag-hint.js +0 -114
  170. package/dist/flag-hint.js.map +0 -1
  171. package/dist/modules.d.ts +0 -17
  172. package/dist/modules.d.ts.map +0 -1
  173. package/dist/modules.js +0 -65
  174. package/dist/modules.js.map +0 -1
  175. package/dist/phase-c/api.d.ts +0 -433
  176. package/dist/phase-c/api.d.ts.map +0 -1
  177. package/dist/phase-c/api.js +0 -334
  178. package/dist/phase-c/api.js.map +0 -1
  179. package/dist/phase-c/commands/activities.d.ts +0 -119
  180. package/dist/phase-c/commands/activities.d.ts.map +0 -1
  181. package/dist/phase-c/commands/activities.js +0 -287
  182. package/dist/phase-c/commands/activities.js.map +0 -1
  183. package/dist/phase-c/commands/batch.d.ts +0 -90
  184. package/dist/phase-c/commands/batch.d.ts.map +0 -1
  185. package/dist/phase-c/commands/batch.js +0 -296
  186. package/dist/phase-c/commands/batch.js.map +0 -1
  187. package/dist/phase-c/commands/queues.d.ts +0 -67
  188. package/dist/phase-c/commands/queues.d.ts.map +0 -1
  189. package/dist/phase-c/commands/queues.js +0 -183
  190. package/dist/phase-c/commands/queues.js.map +0 -1
  191. package/dist/phase-c/commands/run-control.d.ts +0 -76
  192. package/dist/phase-c/commands/run-control.d.ts.map +0 -1
  193. package/dist/phase-c/commands/run-control.js +0 -245
  194. package/dist/phase-c/commands/run-control.js.map +0 -1
  195. package/dist/phase-c/commands/schedules.d.ts +0 -63
  196. package/dist/phase-c/commands/schedules.d.ts.map +0 -1
  197. package/dist/phase-c/commands/schedules.js +0 -198
  198. package/dist/phase-c/commands/schedules.js.map +0 -1
  199. package/dist/phase-c/commands/search-attributes.d.ts +0 -30
  200. package/dist/phase-c/commands/search-attributes.d.ts.map +0 -1
  201. package/dist/phase-c/commands/search-attributes.js +0 -70
  202. package/dist/phase-c/commands/search-attributes.js.map +0 -1
  203. package/dist/phase-c/commands/signal-tokens.d.ts +0 -27
  204. package/dist/phase-c/commands/signal-tokens.d.ts.map +0 -1
  205. package/dist/phase-c/commands/signal-tokens.js +0 -68
  206. package/dist/phase-c/commands/signal-tokens.js.map +0 -1
  207. package/dist/phase-c/commands/worker-run.d.ts +0 -109
  208. package/dist/phase-c/commands/worker-run.d.ts.map +0 -1
  209. package/dist/phase-c/commands/worker-run.js +0 -484
  210. package/dist/phase-c/commands/worker-run.js.map +0 -1
  211. package/dist/phase-c/commands/workers.d.ts +0 -46
  212. package/dist/phase-c/commands/workers.d.ts.map +0 -1
  213. package/dist/phase-c/commands/workers.js +0 -140
  214. package/dist/phase-c/commands/workers.js.map +0 -1
  215. package/dist/phase-c/index.d.ts +0 -16
  216. package/dist/phase-c/index.d.ts.map +0 -1
  217. package/dist/phase-c/index.js +0 -25
  218. package/dist/phase-c/index.js.map +0 -1
  219. package/dist/phase-c/operations.d.ts +0 -67
  220. package/dist/phase-c/operations.d.ts.map +0 -1
  221. package/dist/phase-c/operations.js +0 -559
  222. package/dist/phase-c/operations.js.map +0 -1
  223. package/dist/phase-c/register.d.ts +0 -39
  224. package/dist/phase-c/register.d.ts.map +0 -1
  225. package/dist/phase-c/register.js +0 -678
  226. package/dist/phase-c/register.js.map +0 -1
  227. package/dist/phase-c/shared.d.ts +0 -44
  228. package/dist/phase-c/shared.d.ts.map +0 -1
  229. package/dist/phase-c/shared.js +0 -146
  230. package/dist/phase-c/shared.js.map +0 -1
  231. package/dist/product-defaults.d.ts +0 -11
  232. package/dist/product-defaults.d.ts.map +0 -1
  233. package/dist/product-defaults.js +0 -25
  234. package/dist/product-defaults.js.map +0 -1
  235. package/dist/program.d.ts +0 -25
  236. package/dist/program.d.ts.map +0 -1
  237. package/dist/program.js +0 -60
  238. package/dist/program.js.map +0 -1
@@ -1,301 +0,0 @@
1
- /**
2
- * Option parsing shared by the durable-function parity commands (BOFF-9905
3
- * B19, 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 { readFileSync } from 'fs';
12
- import { resolve } from 'path';
13
- import { CliUserError } from '@burdenoff/cli-sdk/core';
14
- import { durationMs } from '@fluidgrids/workflows/ir';
15
- import { describeError, parseJsonOption } from './shared.js';
16
- /**
17
- * The run a command acts on: the positional run id, or the latest run of a
18
- * workflow id. Exactly one of the two forms.
19
- */
20
- export function runRefOf(runId, options) {
21
- const targeted = options.workflowId !== undefined ||
22
- options.key !== undefined ||
23
- options.firstRunId !== undefined;
24
- if (!targeted) {
25
- if (runId === undefined || runId.trim() === '') {
26
- throw new CliUserError('Give a run id, or --workflow-id with --key.');
27
- }
28
- return { runId };
29
- }
30
- if (runId !== undefined) {
31
- throw new CliUserError('Give a run id or --workflow-id with --key, not both.');
32
- }
33
- const workflowId = options.workflowId?.trim() ?? '';
34
- const key = options.key?.trim() ?? '';
35
- if (workflowId === '' || key === '') {
36
- throw new CliUserError('--workflow-id and --key go together (the workflow id of that key).');
37
- }
38
- const target = { workflowKey: key, workflowId };
39
- if (options.firstRunId !== undefined) {
40
- if (options.firstRunId.trim() === '')
41
- throw new CliUserError('--first-run-id cannot be empty.');
42
- target.firstRunId = options.firstRunId;
43
- }
44
- return { target };
45
- }
46
- export function describeTarget(target) {
47
- return `workflow id ${target.workflowId} of ${target.workflowKey}`;
48
- }
49
- /** The latest run of a target with its parity fields, or NOT_FOUND. */
50
- export async function resolveTarget(env, target) {
51
- const run = await env.api.runByWorkflowId(target);
52
- if (!run)
53
- throw new CliUserError(`No run with ${describeTarget(target)} (NOT_FOUND)`);
54
- return run;
55
- }
56
- /** The run id of a reference (a target resolves to its latest run). */
57
- export async function resolveRunId(env, ref) {
58
- return 'runId' in ref ? ref.runId : (await resolveTarget(env, ref.target)).id;
59
- }
60
- /** An enum option given as `use-existing`, `USE_EXISTING` or `use_existing`. */
61
- function parseEnum(raw, flag, allowed) {
62
- if (raw === undefined)
63
- return undefined;
64
- const normal = raw.trim().toUpperCase().replace(/-/g, '_');
65
- const match = allowed.find((value) => value === normal);
66
- if (match === undefined) {
67
- const shown = allowed.map((value) => value.toLowerCase().replace(/_/g, '-'));
68
- throw new CliUserError(`Invalid value '${raw}' for ${flag}. Allowed: ${shown.join(', ')}`);
69
- }
70
- return match;
71
- }
72
- export const ID_REUSE_POLICIES = [
73
- 'ALLOW_DUPLICATE',
74
- 'ALLOW_DUPLICATE_FAILED_ONLY',
75
- 'REJECT_DUPLICATE',
76
- ];
77
- export const ID_CONFLICT_POLICIES = [
78
- 'FAIL',
79
- 'USE_EXISTING',
80
- 'TERMINATE_EXISTING',
81
- ];
82
- export const VERSIONING_BEHAVIORS = ['PINNED', 'AUTO_UPGRADE'];
83
- export const RUN_GROUP_BY = [
84
- 'STATUS',
85
- 'WORKFLOW_KEY',
86
- 'EXECUTION_KIND',
87
- 'TASK_QUEUE',
88
- ];
89
- export function parseIdReuse(raw) {
90
- return parseEnum(raw, '--id-reuse', ID_REUSE_POLICIES);
91
- }
92
- export function parseIdConflict(raw) {
93
- return parseEnum(raw, '--id-conflict', ID_CONFLICT_POLICIES);
94
- }
95
- export function parseVersioning(raw, flag) {
96
- return parseEnum(raw, flag, VERSIONING_BEHAVIORS);
97
- }
98
- /** `--group-by status,task-queue`: at most two distinct columns. */
99
- export function parseGroupBy(raw) {
100
- if (raw === undefined)
101
- return [];
102
- const columns = [];
103
- for (const part of raw.split(',')) {
104
- const column = parseEnum(part.trim() === '' ? undefined : part, '--group-by', RUN_GROUP_BY);
105
- if (column)
106
- columns.push(column);
107
- }
108
- const distinct = [...new Set(columns)];
109
- if (distinct.length === 0)
110
- throw new CliUserError('--group-by needs a column.');
111
- if (distinct.length > 2)
112
- throw new CliUserError('--group-by takes at most two columns.');
113
- return distinct;
114
- }
115
- /**
116
- * A duration as the service takes it: a whole number of milliseconds, or what the workflow IR's
117
- * `durationMs` reads (`1.5s`, `5m`, `2h`, `7d`, `2w`, ISO 8601 `PT2H` or `P1W`). This is the same
118
- * check the service runs (`parseDurationMs` in wspace-workflow-svc), so the CLI neither refuses a
119
- * value the service takes nor sends one it refuses. The service checks the limits (30 days for a
120
- * start delay, 120 s for a task timeout).
121
- */
122
- export function parseDuration(raw, flag) {
123
- if (raw === undefined)
124
- return undefined;
125
- const value = raw.trim();
126
- if (/^\d+$/.test(value))
127
- return value;
128
- const ms = value === '' ? undefined : durationMs(value, 'ms');
129
- if (ms === undefined || !Number.isFinite(ms)) {
130
- throw new CliUserError(`Invalid value '${raw}' for ${flag}: expected milliseconds or a duration such as 1.5s, 5m, 2h, 2w or PT2H.`);
131
- }
132
- return value;
133
- }
134
- /** `--priority 1..5` (1 is the highest). */
135
- export function parsePriority(raw) {
136
- if (raw === undefined)
137
- return undefined;
138
- if (!/^[1-5]$/.test(raw.trim())) {
139
- throw new CliUserError(`Invalid value '${raw}' for --priority: expected 1 (highest) to 5.`);
140
- }
141
- return Number(raw.trim());
142
- }
143
- /** Header names the callback cannot set (the service refuses them too). */
144
- const RESERVED_HEADER = /^(host|content-.*|user-agent|x-fluidgrids-.*|connection|keep-alive|transfer-encoding|te|trailer|upgrade|proxy-.*)$/i;
145
- const HEADER_NAME = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
146
- const ENV_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/;
147
- function addHeader(headers, name, value) {
148
- if (RESERVED_HEADER.test(name)) {
149
- throw new CliUserError(`--callback-header cannot set ${name}.`);
150
- }
151
- const lower = name.toLowerCase();
152
- if (Object.keys(headers).some((existing) => existing.toLowerCase() === lower)) {
153
- throw new CliUserError(`--callback-header ${name} is given twice.`);
154
- }
155
- Object.defineProperty(headers, name, {
156
- value,
157
- enumerable: true,
158
- writable: true,
159
- configurable: true,
160
- });
161
- }
162
- /**
163
- * `--callback-header 'Name: value'` (repeatable) and `--callback-header-env 'Name=ENV_VAR'`
164
- * (repeatable; the value is read from the environment, so a credential stays out of argv).
165
- * Errors name the option and its position, never the argument: a malformed entry usually still
166
- * holds a bearer token.
167
- */
168
- export function parseHeaders(raw, fromEnv) {
169
- const envEntries = fromEnv?.entries ?? [];
170
- if ((raw === undefined || raw.length === 0) && envEntries.length === 0)
171
- return undefined;
172
- const headers = {};
173
- (raw ?? []).forEach((entry, index) => {
174
- const at = entry.indexOf(':');
175
- const name = (at < 0 ? '' : entry.slice(0, at)).trim();
176
- if (!HEADER_NAME.test(name)) {
177
- throw new CliUserError(`Invalid --callback-header #${index + 1}: expected 'Name: value' with a header name before the colon (the argument is not printed).`);
178
- }
179
- addHeader(headers, name, entry.slice(at + 1).trim());
180
- });
181
- envEntries.forEach((entry, index) => {
182
- const at = entry.indexOf('=');
183
- const name = (at < 0 ? '' : entry.slice(0, at)).trim();
184
- const variable = at < 0 ? '' : entry.slice(at + 1).trim();
185
- if (!HEADER_NAME.test(name) || !ENV_NAME.test(variable)) {
186
- throw new CliUserError(`Invalid --callback-header-env #${index + 1}: expected 'Name=ENV_VAR' (the argument is not printed).`);
187
- }
188
- const value = fromEnv?.env.getEnv(variable);
189
- if (value === undefined || value.trim() === '') {
190
- throw new CliUserError(`The environment variable ${variable} (--callback-header-env ${name}) is empty or unset.`);
191
- }
192
- addHeader(headers, name, value.trim());
193
- });
194
- return headers;
195
- }
196
- /** The callback signing secret, read from the named environment variable (never from argv). */
197
- export function readSecretEnv(env, name) {
198
- if (name === undefined)
199
- return undefined;
200
- if (!ENV_NAME.test(name)) {
201
- throw new CliUserError(`Invalid environment variable name for --callback-secret-env.`);
202
- }
203
- const value = env.getEnv(name);
204
- if (value === undefined || value.trim() === '') {
205
- throw new CliUserError(`The environment variable ${name} (--callback-secret-env) is empty or unset.`);
206
- }
207
- if (value.length < 16 || value.length > 512) {
208
- throw new CliUserError(`The signing secret in ${name} must be 16 to 512 characters long (it has ${value.length}).`);
209
- }
210
- return value;
211
- }
212
- /** A JSON object option (`--memo`). */
213
- export function parseJsonObject(raw, flag) {
214
- const value = parseJsonOption(raw, flag);
215
- if (value === undefined)
216
- return undefined;
217
- if (typeof value !== 'object' || value === null || Array.isArray(value)) {
218
- throw new CliUserError(`${flag} must be a JSON object.`);
219
- }
220
- // Checked above to be a plain JSON object.
221
- return value;
222
- }
223
- /** The parity fields of a StartWorkflowInput from `runs start` options; empty without any. */
224
- export function parityStartFields(env, options) {
225
- const fields = {};
226
- if (options.workflowId !== undefined) {
227
- if (options.workflowId.trim() === '')
228
- throw new CliUserError('--workflow-id cannot be empty.');
229
- fields.workflowId = options.workflowId;
230
- }
231
- const reuse = parseIdReuse(options.idReuse);
232
- if (reuse)
233
- fields.idReusePolicy = reuse;
234
- const conflict = parseIdConflict(options.idConflict);
235
- if (conflict)
236
- fields.idConflictPolicy = conflict;
237
- if (conflict === 'TERMINATE_EXISTING' && fields.workflowId === undefined) {
238
- throw new CliUserError('--id-conflict terminate-existing needs --workflow-id.');
239
- }
240
- const delay = parseDuration(options.delay, '--delay');
241
- if (delay)
242
- fields.startDelay = delay;
243
- const runTimeout = parseDuration(options.runTimeout, '--run-timeout');
244
- if (runTimeout)
245
- fields.runTimeout = runTimeout;
246
- const executionTimeout = parseDuration(options.executionTimeout, '--execution-timeout');
247
- if (executionTimeout)
248
- fields.executionTimeout = executionTimeout;
249
- const taskTimeout = parseDuration(options.taskTimeout, '--task-timeout');
250
- if (taskTimeout)
251
- fields.workflowTaskTimeout = taskTimeout;
252
- if (options.summary !== undefined)
253
- fields.summary = options.summary;
254
- if (options.detailsFile !== undefined) {
255
- const path = resolve(env.cwd(), options.detailsFile);
256
- try {
257
- fields.details = readFileSync(path, 'utf8');
258
- }
259
- catch (error) {
260
- throw new CliUserError(`Cannot read --details-file ${options.detailsFile}: ${describeError(error)}`);
261
- }
262
- }
263
- const memo = parseJsonObject(options.memo, '--memo');
264
- if (memo)
265
- fields.context = memo;
266
- const headers = parseHeaders(options.callbackHeader, {
267
- env,
268
- entries: options.callbackHeaderEnv,
269
- });
270
- const secret = readSecretEnv(env, options.callbackSecretEnv);
271
- if (options.callback === undefined) {
272
- if (headers || secret !== undefined) {
273
- throw new CliUserError('--callback-header, --callback-header-env and --callback-secret-env need --callback <url>.');
274
- }
275
- }
276
- else {
277
- let url;
278
- try {
279
- url = new URL(options.callback);
280
- }
281
- catch {
282
- throw new CliUserError(`--callback must be an http(s) URL.`);
283
- }
284
- if (url.protocol !== 'https:' && url.protocol !== 'http:') {
285
- throw new CliUserError(`--callback must be an http(s) URL.`);
286
- }
287
- fields.completionCallbackUrl = options.callback;
288
- if (headers)
289
- fields.completionCallbackHeaders = headers;
290
- if (secret !== undefined)
291
- fields.completionCallbackSigningSecret = secret;
292
- }
293
- const priority = parsePriority(options.priority);
294
- if (priority !== undefined)
295
- fields.priority = priority;
296
- const versioning = parseVersioning(options.versioningBehavior, '--versioning-behavior');
297
- if (versioning)
298
- fields.versioningBehavior = versioning;
299
- return fields;
300
- }
301
- //# sourceMappingURL=parity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parity.js","sourceRoot":"","sources":["../../src/code-first/parity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAYtD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAmB,MAAM,aAAa,CAA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AAC;QACnC,IAAI,OAAO,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACpC,MAAM,IAAI,YAAY,CACpB,2FAA2F,CAC5F,CAAC;QACJ,CAAC;IACH,CAAC;SAAM,CAAC;QACN,IAAI,GAAQ,CAAC;QACb,IAAI,CAAC;YACH,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,YAAY,CAAC,oCAAoC,CAAC,CAAC;QAC/D,CAAC;QACD,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,GAAG,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;YAC1D,MAAM,IAAI,YAAY,CAAC,oCAAoC,CAAC,CAAC;QAC/D,CAAC;QACD,MAAM,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;QAChD,IAAI,OAAO;YAAE,MAAM,CAAC,yBAAyB,GAAG,OAAO,CAAC;QACxD,IAAI,MAAM,KAAK,SAAS;YAAE,MAAM,CAAC,+BAA+B,GAAG,MAAM,CAAC;IAC5E,CAAC;IACD,MAAM,QAAQ,GAAG,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACjD,IAAI,QAAQ,KAAK,SAAS;QAAE,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACvD,MAAM,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC,kBAAkB,EAAE,uBAAuB,CAAC,CAAC;IACxF,IAAI,UAAU;QAAE,MAAM,CAAC,kBAAkB,GAAG,UAAU,CAAC;IACvD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Presigned S3 URLs the service hands the CLI (code uploads, offloaded history
3
- * payloads). The URL carries a signature, so neither it nor anything that
4
- * echoes the request (S3 error bodies repeat the access key id, the string to
5
- * sign and the signature) is ever printed.
6
- */
7
- /** Parse a presigned URL and refuse anything but https (plain http only to this machine). */
8
- export declare function presignedUrl(raw: string, what: string): URL;
9
- /**
10
- * A safe one-line summary of a storage error body: the `<Code>` and
11
- * `<Message>` of an S3 XML error and nothing else. Other bodies are not
12
- * echoed, because a proxy or a storage service may repeat the request.
13
- */
14
- export declare function storageErrorSummary(body: string): string | undefined;
15
- /**
16
- * Read a response body of at most `maxBytes` bytes: `content-length` is
17
- * checked before reading, and the stream is counted while it is read, so an
18
- * oversized body is never buffered whole.
19
- */
20
- export declare function readCapped(response: Response, maxBytes: number, tooLarge: () => Error): Promise<Uint8Array>;
21
- //# sourceMappingURL=presigned.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"presigned.d.ts","sourceRoot":"","sources":["../../src/code-first/presigned.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,6FAA6F;AAC7F,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAc3D;AAqBD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKpE;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,KAAK,GACpB,OAAO,CAAC,UAAU,CAAC,CA2BrB"}
@@ -1,85 +0,0 @@
1
- /**
2
- * Presigned S3 URLs the service hands the CLI (code uploads, offloaded history
3
- * payloads). The URL carries a signature, so neither it nor anything that
4
- * echoes the request (S3 error bodies repeat the access key id, the string to
5
- * sign and the signature) is ever printed.
6
- */
7
- import { CliUserError } from '@burdenoff/cli-sdk/core';
8
- /** Parse a presigned URL and refuse anything but https (plain http only to this machine). */
9
- export function presignedUrl(raw, what) {
10
- let url;
11
- try {
12
- url = new URL(raw);
13
- }
14
- catch {
15
- throw new CliUserError(`The service returned an invalid ${what} URL.`);
16
- }
17
- const local = url.hostname === 'localhost' || url.hostname === '127.0.0.1';
18
- if (url.protocol !== 'https:' && !(url.protocol === 'http:' && local)) {
19
- throw new CliUserError(`Refusing to transfer the ${what} over ${url.protocol}; expected https.`);
20
- }
21
- return url;
22
- }
23
- const XML_FIELD_LIMIT = 200;
24
- function xmlField(text, name) {
25
- const match = new RegExp(`<${name}>([^<]*)</${name}>`).exec(text);
26
- const value = match?.[1]?.trim();
27
- return value ? value.slice(0, XML_FIELD_LIMIT) : undefined;
28
- }
29
- /** Credential-shaped values that must never reach the terminal. */
30
- const SECRET_PATTERNS = [
31
- /X-Amz-[A-Za-z-]+=[^&\s"<]*/g,
32
- /\b(?:AKIA|ASIA)[A-Z0-9]{12,}\b/g,
33
- /\b[0-9a-f]{40,}\b/g,
34
- ];
35
- function redact(value) {
36
- return SECRET_PATTERNS.reduce((text, pattern) => text.replace(pattern, '[redacted]'), value);
37
- }
38
- /**
39
- * A safe one-line summary of a storage error body: the `<Code>` and
40
- * `<Message>` of an S3 XML error and nothing else. Other bodies are not
41
- * echoed, because a proxy or a storage service may repeat the request.
42
- */
43
- export function storageErrorSummary(body) {
44
- const code = xmlField(body, 'Code');
45
- if (!code)
46
- return undefined;
47
- const message = xmlField(body, 'Message');
48
- return redact(message ? `${code}: ${message}` : code);
49
- }
50
- /**
51
- * Read a response body of at most `maxBytes` bytes: `content-length` is
52
- * checked before reading, and the stream is counted while it is read, so an
53
- * oversized body is never buffered whole.
54
- */
55
- export async function readCapped(response, maxBytes, tooLarge) {
56
- const declared = Number(response.headers.get('content-length'));
57
- if (Number.isFinite(declared) && declared > maxBytes) {
58
- await response.body?.cancel().catch(() => undefined);
59
- throw tooLarge();
60
- }
61
- if (!response.body)
62
- return new Uint8Array();
63
- const reader = response.body.getReader();
64
- const chunks = [];
65
- let total = 0;
66
- for (;;) {
67
- const { done, value } = await reader.read();
68
- if (done)
69
- break;
70
- total += value.byteLength;
71
- if (total > maxBytes) {
72
- await reader.cancel().catch(() => undefined);
73
- throw tooLarge();
74
- }
75
- chunks.push(value);
76
- }
77
- const out = new Uint8Array(total);
78
- let offset = 0;
79
- for (const chunk of chunks) {
80
- out.set(chunk, offset);
81
- offset += chunk.byteLength;
82
- }
83
- return out;
84
- }
85
- //# sourceMappingURL=presigned.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"presigned.js","sourceRoot":"","sources":["../../src/code-first/presigned.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,6FAA6F;AAC7F,MAAM,UAAU,YAAY,CAAC,GAAW,EAAE,IAAY;IACpD,IAAI,GAAQ,CAAC;IACb,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,YAAY,CAAC,mCAAmC,IAAI,OAAO,CAAC,CAAC;IACzE,CAAC;IACD,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,KAAK,WAAW,IAAI,GAAG,CAAC,QAAQ,KAAK,WAAW,CAAC;IAC3E,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC;QACtE,MAAM,IAAI,YAAY,CACpB,4BAA4B,IAAI,SAAS,GAAG,CAAC,QAAQ,mBAAmB,CACzE,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,eAAe,GAAG,GAAG,CAAC;AAE5B,SAAS,QAAQ,CAAC,IAAY,EAAE,IAAY;IAC1C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,IAAI,IAAI,aAAa,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClE,MAAM,KAAK,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IACjC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,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,CAAC;IAC5C,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IACzC,MAAM,MAAM,GAAiB,EAAE,CAAC;IAChC,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,SAAS,CAAC;QACR,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QAC5C,IAAI,IAAI;YAAE,MAAM;QAChB,KAAK,IAAI,KAAK,CAAC,UAAU,CAAC;QAC1B,IAAI,KAAK,GAAG,QAAQ,EAAE,CAAC;YACrB,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;YAC7C,MAAM,QAAQ,EAAE,CAAC;QACnB,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IACD,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC;IAClC,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC;IAC7B,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -1,130 +0,0 @@
1
- /**
2
- * The code-first project on disk (spec 06 §7, 07 §7):
3
- *
4
- * ```
5
- * fluidgrids.config.json language, workspace, default task queue, Python interpreter
6
- * workflows/<key>.ts|.py tier-1 source (with <key>.layout.json / <key>.pinned.json sidecars)
7
- * workflows/<key>.json canvas-authored workflows kept as the JSON export envelope
8
- * activities/ code imported by workflows
9
- * .fluidgrids/nodes.ts|.py generated node clients (`fluidgrids codegen`)
10
- * .fluidgrids/build/ the code bundle `push` uploaded (Phase C; not a source)
11
- * lock.json registry snapshot, node versions, SDK version, pulled versions
12
- * ```
13
- *
14
- * The `workflows/` and `.fluidgrids/` names are fixed: the lift and lower in
15
- * `@fluidgrids/workflows` read and write sidecars at `workflows/<key>.*`.
16
- */
17
- import { type CLIContext } from '@burdenoff/cli-sdk/core';
18
- export declare const CONFIG_FILE = "fluidgrids.config.json";
19
- export declare const LOCK_FILE = "lock.json";
20
- export declare const WORKFLOWS_DIR = "workflows";
21
- export declare const ACTIVITIES_DIR = "activities";
22
- export declare const GENERATED_DIR = ".fluidgrids";
23
- /**
24
- * Build output (Phase C, CWD8): `push` writes the code bundle it uploads here
25
- * (`bundle.mjs`, or `bundle.pyz` for Python), so `fluidgrids worker run` serves
26
- * the same bytes and `buildId`. Never read as a source.
27
- */
28
- export declare const BUILD_DIR = ".fluidgrids/build";
29
- export declare const CONFIG_FORMAT_VERSION = 1;
30
- export declare const LOCK_FORMAT_VERSION = 1;
31
- export type ProjectLanguage = 'ts' | 'py';
32
- export type WorkflowFormat = 'ts' | 'py' | 'json';
33
- export declare const PROJECT_LANGUAGES: readonly ProjectLanguage[];
34
- export declare const WORKFLOW_FORMATS: readonly WorkflowFormat[];
35
- export interface ProjectConfig {
36
- formatVersion: number;
37
- /** Language of the workflow source and of the generated node clients. */
38
- language: ProjectLanguage;
39
- /**
40
- * Workspace the project targets. When set, commands that talk to the
41
- * workspace refuse to run while the CLI uses another one.
42
- */
43
- workspaceId?: string;
44
- /** Task queue new code workflows default to (Phase B). */
45
- defaultTaskQueue: string;
46
- /** Python interpreter for `.py` projects; default `.venv/bin/python`, then `python3`. */
47
- python?: string;
48
- }
49
- export interface LockedNode {
50
- nodeType: string;
51
- nodeVersion: string | null;
52
- }
53
- export interface LockedWorkflow {
54
- /** The remote version this file was pulled from or pushed as. */
55
- version: string;
56
- /** `irHash` of that version. */
57
- irHash: string;
58
- format: WorkflowFormat;
59
- /** Project-relative path of the workflow file. */
60
- path: string;
61
- /** `buildId` of the code bundle this version references (durable functions). */
62
- buildId?: string;
63
- }
64
- /** The code bundle of the last push that uploaded one (durable functions, Phase B). */
65
- export interface LockedBundle {
66
- buildId: string;
67
- sourceHash: string;
68
- sdkVersion: string;
69
- }
70
- export interface ProjectLock {
71
- formatVersion: number;
72
- sdkVersion: string;
73
- registrySnapshot: string | null;
74
- nodes: LockedNode[];
75
- workflows: Record<string, LockedWorkflow>;
76
- bundle?: LockedBundle;
77
- }
78
- export interface Project {
79
- root: string;
80
- config: ProjectConfig;
81
- lock: ProjectLock;
82
- }
83
- /** A project file: path relative to the root with `/` separators, and its text. */
84
- export interface ProjectFile {
85
- path: string;
86
- content: string;
87
- }
88
- export declare function parseConfig(value: unknown, where: string): ProjectConfig;
89
- export declare function emptyLock(): ProjectLock;
90
- export declare function parseLock(value: unknown, where: string): ProjectLock;
91
- /** The nearest directory at or above `start` that holds `fluidgrids.config.json`. */
92
- export declare function findProjectRoot(start: string): string | null;
93
- /** Load the project at `projectDir`, or the nearest one above the working directory. */
94
- export declare function loadProject(projectDir: string | undefined, cwd?: string): Project;
95
- /** Deterministic JSON text for a file the CLI owns: sorted keys, two spaces, final newline. */
96
- export declare function jsonText(value: unknown): string;
97
- export declare function writeLock(project: Project): void;
98
- /**
99
- * A project-relative path with `/` separators. Absolute paths, `..` segments,
100
- * empty segments and backslashes are refused, so a path from a server response
101
- * or a lock file can never point outside the project.
102
- */
103
- export declare function safeRelativePath(path: string, where: string): string;
104
- /** Write a file inside the project, creating its directory. */
105
- export declare function writeProjectFile(root: string, path: string, content: string): void;
106
- export declare function readProjectFile(root: string, path: string): string | null;
107
- /** Every file under the project's source directories, sorted. */
108
- export declare function listSourcePaths(root: string): string[];
109
- export declare function isSidecar(path: string): boolean;
110
- /** A canvas workflow kept as JSON: `workflows/**.json` that is not a sidecar. */
111
- export declare function isJsonWorkflow(path: string): boolean;
112
- /** Source modules of the given language that may define workflows (tests and declarations excluded). */
113
- export declare function isWorkflowModule(path: string, language: ProjectLanguage): boolean;
114
- /** Files of the given language that lowering reads: modules plus sidecars. */
115
- export declare function isLoweringInput(path: string, language: ProjectLanguage): boolean;
116
- export declare function readProjectFiles(root: string, paths: readonly string[]): ProjectFile[];
117
- /** The OS-specific form of a project-relative path, for messages. */
118
- export declare function displayPath(path: string): string;
119
- /**
120
- * Refuse to work against a workspace other than the one the project records in
121
- * `fluidgrids.config.json` (`workspaceId`), so a `push` or `pull` never lands in
122
- * the wrong workspace after `fluidgrids workspace set` switched the CLI. A
123
- * project without `workspaceId` works against any workspace, and so does a
124
- * session whose workspace is not known (token mode with only
125
- * `FLUIDGRIDS_WORKSPACE_TOKEN`).
126
- */
127
- export declare function assertProjectWorkspace(env: {
128
- ctx: CLIContext;
129
- }, project: Project): void;
130
- //# sourceMappingURL=project.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/code-first/project.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIxE,eAAO,MAAM,WAAW,2BAA2B,CAAC;AACpD,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,aAAa,cAAc,CAAC;AACzC,eAAO,MAAM,cAAc,eAAe,CAAC;AAC3C,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAC3C;;;;GAIG;AACH,eAAO,MAAM,SAAS,sBAA2B,CAAC;AAClD,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1C,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAElD,eAAO,MAAM,iBAAiB,EAAE,SAAS,eAAe,EAAiB,CAAC;AAC1E,eAAO,MAAM,gBAAgB,EAAE,SAAS,cAAc,EAAyB,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,QAAQ,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