@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,223 +0,0 @@
1
- /**
2
- * Uploading a code bundle (durable functions, Phase B; C-S3, DB11, DB12):
3
- *
4
- * 1. The bundle `lower()` built is one ES module whose `buildId` is
5
- * `sha256:<hex>` of its bytes. The source archive is `packSources` of the
6
- * files it was built from, the project's lockfile and the vendored pure-ESM
7
- * packages, so the service can rebuild the same bytes, plus the bundle's
8
- * source map (C-SOURCEMAP, SDK R2) for source-mapped stack traces.
9
- * 2. `prepareWorkflowCodeUpload` checks the caps and the
10
- * `fluidgrids.code-bundles.bytes` quota and returns presigned PUTs: the
11
- * bundle to its content-addressed key (skipped when `alreadyStored`), the
12
- * source to an upload staging key.
13
- * 3. The version is created with `codeBundle: { uploadId, … }`; the service
14
- * verifies the checksum, scans the source for secrets and links the bundle.
15
- *
16
- * One bundle serves every workflow version of a push. Each version needs its
17
- * own upload ticket (the ticket binds a workflow key and is consumed by the
18
- * version), but only the first PUT of the bundle transfers it.
19
- */
20
- import { CliUserError } from '@burdenoff/cli-sdk/core';
21
- import { SDK_VERSION } from '@fluidgrids/workflows';
22
- import { packSources } from '@fluidgrids/workflows/roundtrip';
23
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
24
- import { dirname, join } from 'path';
25
- import { MAX_BUNDLE_BYTES } from './lowering.js';
26
- import { presignedUrl, readCapped, storageErrorSummary } from './presigned.js';
27
- import { BUILD_DIR } from './project.js';
28
- import { describeError } from './shared.js';
29
- /** Largest source archive the service accepts, as uploaded (spec 01 §5). */
30
- export const MAX_SOURCE_ARCHIVE_BYTES = 32 * 1024 * 1024;
31
- /** Most of an upload error body read to find its error code. */
32
- const ERROR_BODY_BYTES = 64 * 1024;
33
- /** Lockfiles recorded in the source archive, first match wins. */
34
- export const LOCKFILES = [
35
- 'bun.lock',
36
- 'package-lock.json',
37
- 'pnpm-lock.yaml',
38
- 'yarn.lock',
39
- ];
40
- /**
41
- * Headers the HTTP client computes itself. The presigned URL signs
42
- * `content-length`; the client sends the same value because it sends exactly
43
- * the body the length was declared for.
44
- */
45
- const CLIENT_HEADERS = new Set(['content-length', 'host']);
46
- function lockText(root) {
47
- for (const name of LOCKFILES) {
48
- const path = join(root, name);
49
- if (existsSync(path))
50
- return readFileSync(path, 'utf8');
51
- }
52
- return undefined;
53
- }
54
- /** The bundle and source archive of a lowered TypeScript project, size-checked. */
55
- export function prepareBundle(project, lowered) {
56
- if (!lowered.bundle || !lowered.buildId || !lowered.sourceHash || !lowered.sourceFiles) {
57
- throw new CliUserError('This project has no code bundle to upload.', {
58
- hint: 'Durable functions are TypeScript `workflow()` exports (Python ones arrive in Phase C).',
59
- });
60
- }
61
- const bundle = new TextEncoder().encode(lowered.bundle);
62
- if (bundle.byteLength > MAX_BUNDLE_BYTES) {
63
- throw new CliUserError(`The code bundle is ${bundle.byteLength} bytes; the limit is ${MAX_BUNDLE_BYTES}.`);
64
- }
65
- const archiveInput = { files: lowered.sourceFiles };
66
- const lock = lockText(project.root);
67
- if (lock !== undefined)
68
- archiveInput.lock = lock;
69
- if (lowered.vendored) {
70
- archiveInput.vendored = Object.fromEntries(Object.entries(lowered.vendored).map(([name, pkg]) => [
71
- name,
72
- { version: pkg.version, files: { ...pkg.files } },
73
- ]));
74
- }
75
- // C-SOURCEMAP: the service maps stack-trace locations through it.
76
- if (lowered.map !== undefined)
77
- archiveInput.map = lowered.map;
78
- const archive = packSources(archiveInput);
79
- if (archive.byteLength > MAX_SOURCE_ARCHIVE_BYTES) {
80
- throw new CliUserError(`The source archive is ${archive.byteLength} bytes; the limit is ${MAX_SOURCE_ARCHIVE_BYTES}.`, { hint: 'Vendored dependencies count toward it; drop unused `dependencies`.' });
81
- }
82
- writeBuildBundle(project, TYPESCRIPT_BUNDLE_PATH, bundle);
83
- return {
84
- buildId: lowered.buildId,
85
- sourceHash: lowered.sourceHash,
86
- sdkVersion: SDK_VERSION,
87
- language: 'typescript',
88
- bundle,
89
- archive,
90
- };
91
- }
92
- /** Where `push` writes the TypeScript bundle it uploads (CWD8): `fluidgrids worker run` serves it. */
93
- export const TYPESCRIPT_BUNDLE_PATH = `${BUILD_DIR}/bundle.mjs`;
94
- /** Write a bundle under `.fluidgrids/build/`. */
95
- export function writeBuildBundle(project, path, bytes) {
96
- const target = join(project.root, ...path.split('/'));
97
- mkdirSync(dirname(target), { recursive: true });
98
- writeFileSync(target, bytes);
99
- }
100
- /**
101
- * The bundle and source archive of a lowered Python project (Phase C, C-S6):
102
- * the `.pyz` the Python SDK builds (it lands in `.fluidgrids/build/`), whose
103
- * `buildId` and `sourceHash` must be the ones the lowering recorded, and the
104
- * `{files}` archive the service hashes the same way.
105
- */
106
- export async function preparePythonBundle(lowered) {
107
- if (!lowered.buildPython || !lowered.buildId || !lowered.sourceHash || !lowered.sourceFiles) {
108
- throw new CliUserError('This project has no code bundle to upload.', {
109
- hint: 'Durable functions are `@workflow` functions in workflows/*.py.',
110
- });
111
- }
112
- const built = await lowered.buildPython();
113
- if (built.buildId !== lowered.buildId || built.sourceHash !== lowered.sourceHash) {
114
- throw new CliUserError(`The Python build (${built.buildId}) does not match the lowering (${lowered.buildId}); the sources changed while pushing, or the SDK is not deterministic.`);
115
- }
116
- for (const issue of built.issues) {
117
- throw new CliUserError(`The Python build refused ${issue.module}: ${issue.code}: ${issue.message}`);
118
- }
119
- if (built.bundle.byteLength > MAX_BUNDLE_BYTES) {
120
- throw new CliUserError(`The code bundle is ${built.bundle.byteLength} bytes; the limit is ${MAX_BUNDLE_BYTES}.`);
121
- }
122
- const archive = packSources({ files: lowered.sourceFiles });
123
- if (archive.byteLength > MAX_SOURCE_ARCHIVE_BYTES) {
124
- throw new CliUserError(`The source archive is ${archive.byteLength} bytes; the limit is ${MAX_SOURCE_ARCHIVE_BYTES}.`);
125
- }
126
- return {
127
- buildId: built.buildId,
128
- sourceHash: built.sourceHash,
129
- sdkVersion: built.sdkVersion,
130
- language: 'python',
131
- bundle: built.bundle,
132
- archive,
133
- };
134
- }
135
- /** The bundle a push or hotfix uploads, for either language. */
136
- export async function prepareProjectBundle(project, lowered) {
137
- return project.config.language === 'py'
138
- ? preparePythonBundle(lowered)
139
- : prepareBundle(project, lowered);
140
- }
141
- async function put(env, target, body, what) {
142
- if (target.method.toUpperCase() !== 'PUT') {
143
- throw new CliUserError(`The service asked for a ${target.method} ${what} upload; expected PUT.`);
144
- }
145
- presignedUrl(target.url, `${what} upload`);
146
- const headers = Object.fromEntries(Object.entries(target.headers).filter(([name]) => !CLIENT_HEADERS.has(name.toLowerCase())));
147
- let response;
148
- try {
149
- response = await env.fetch(target.url, { method: 'PUT', headers, body });
150
- }
151
- catch (error) {
152
- // The URL carries a signature; it is never printed.
153
- throw new CliUserError(`Uploading the ${what} failed: ${describeError(error)}`);
154
- }
155
- if (!response.ok) {
156
- // Only the error code and message: an S3 error body echoes the access key
157
- // id, the string to sign and the signature of the presigned request.
158
- const body = await readCapped(response, ERROR_BODY_BYTES, () => new Error('too large'))
159
- .then((bytes) => new TextDecoder().decode(bytes))
160
- .catch(() => '');
161
- const summary = storageErrorSummary(body);
162
- throw new CliUserError(`Uploading the ${what} failed with HTTP ${response.status}${summary ? ` (${summary})` : ''}.`);
163
- }
164
- }
165
- /** Get an upload ticket for `workflowKey` and send what the service does not have yet. */
166
- export async function uploadBundle(env, prepared, workflowKey) {
167
- const ticket = await env.api.prepareCodeUpload({
168
- workflowKey,
169
- buildId: prepared.buildId,
170
- bundleBytes: prepared.bundle.byteLength,
171
- sourceHash: prepared.sourceHash,
172
- sourceBytes: prepared.archive.byteLength,
173
- // Sent for Python only, so a TypeScript push sends exactly what it did before Phase C.
174
- ...(prepared.language === 'python' ? { language: 'python' } : {}),
175
- });
176
- let bundleSent = false;
177
- if (!ticket.bundle.alreadyStored) {
178
- await put(env, ticket.bundle, prepared.bundle, 'code bundle');
179
- bundleSent = true;
180
- }
181
- let sourceSent = false;
182
- if (ticket.source && !ticket.source.alreadyStored) {
183
- await put(env, ticket.source, prepared.archive, 'source archive');
184
- sourceSent = true;
185
- }
186
- return { uploadId: ticket.uploadId, bundleSent, sourceSent };
187
- }
188
- function isRecord(value) {
189
- return typeof value === 'object' && value !== null && !Array.isArray(value);
190
- }
191
- /**
192
- * The `code` block of a workflow that the prepared bundle serves. Refuses a
193
- * workflow that runs no code or records another build; `push` calls it for
194
- * every version it will write before it writes the first one.
195
- */
196
- export function bundleCodeBlock(workflow, prepared) {
197
- const code = workflow.definition['code'];
198
- if (!isRecord(code)) {
199
- throw new CliUserError(`${workflow.key} does not run code; it needs no bundle.`);
200
- }
201
- if (code['buildId'] !== prepared.buildId) {
202
- throw new CliUserError(`${workflow.key} records buildId ${String(code['buildId'])}, but the bundle is ${prepared.buildId}.`);
203
- }
204
- return code;
205
- }
206
- /** `CodeBundleInput` for one workflow's version, from its definition's `code` block. */
207
- export function codeBundleInput(uploadId, workflow, prepared) {
208
- const code = bundleCodeBlock(workflow, prepared);
209
- return {
210
- uploadId,
211
- buildId: prepared.buildId,
212
- language: typeof code['language'] === 'string' ? code['language'] : prepared.language,
213
- sdkVersion: prepared.sdkVersion,
214
- entry: workflow.path,
215
- exports: code['exports'] ?? { workflows: {} },
216
- determinism: typeof code['determinism'] === 'string'
217
- ? code['determinism']
218
- : prepared.language === 'python'
219
- ? 'worker'
220
- : 'isolate',
221
- };
222
- }
223
- //# sourceMappingURL=code-upload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code-upload.js","sourceRoot":"","sources":["../../src/code-first/code-upload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAsB,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,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AAI,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE;QAC7C,WAAW,EACT,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,QAAQ;YACrC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;YACrB,CAAC,CAAC,QAAQ,CAAC,QAAQ,KAAK,QAAQ;gBAC9B,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,SAAS;KAClB,CAAC;AACJ,CAAC"}
@@ -1,20 +0,0 @@
1
- /**
2
- * `fluidgrids codegen [--lang ts|py]`: regenerate `.fluidgrids/nodes.ts|py`
3
- * from the workspace's node registry and record the snapshot in `lock.json`.
4
- */
5
- import type { NodeManifest } from '@fluidgrids/workflows/ir';
6
- import { type Project, type ProjectLanguage } from '../project.js';
7
- import { type CommandEnv, type ProjectOptions } from '../shared.js';
8
- export interface CodegenResult {
9
- path: string;
10
- language: ProjectLanguage;
11
- registrySnapshot: string;
12
- nodeTypes: number;
13
- changed: boolean;
14
- }
15
- /** Write the clients for `manifests` and update the lock (in memory and on disk). */
16
- export declare function writeNodeClients(project: Project, manifests: readonly NodeManifest[], language: ProjectLanguage): Promise<CodegenResult>;
17
- export declare function runCodegen(env: CommandEnv, options: ProjectOptions & {
18
- lang?: string;
19
- }): Promise<CodegenResult>;
20
- //# sourceMappingURL=codegen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../src/code-first/commands/codegen.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAqB,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEvF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,qFAAqF;AACrF,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,YAAY,EAAE,EAClC,QAAQ,EAAE,eAAe,GACxB,OAAO,CAAC,aAAa,CAAC,CAqBxB;AAED,wBAAsB,UAAU,CAC9B,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1C,OAAO,CAAC,aAAa,CAAC,CAmBxB"}
@@ -1,50 +0,0 @@
1
- /**
2
- * `fluidgrids codegen [--lang ts|py]`: regenerate `.fluidgrids/nodes.ts|py`
3
- * from the workspace's node registry and record the snapshot in `lock.json`.
4
- */
5
- import { generateNodeClients } from '@fluidgrids/workflows/codegen';
6
- import { assertProjectWorkspace, loadProject, PROJECT_LANGUAGES, writeLock, writeProjectFile, } from '../project.js';
7
- import { emit, parseChoice } from '../shared.js';
8
- /** Write the clients for `manifests` and update the lock (in memory and on disk). */
9
- export async function writeNodeClients(project, manifests, language) {
10
- const generated = await generateNodeClients(manifests, language);
11
- const previous = project.lock.registrySnapshot;
12
- writeProjectFile(project.root, generated.path, generated.content);
13
- const external = manifests.filter((manifest) => !manifest.nodeType.startsWith('internal:'));
14
- project.lock.registrySnapshot = generated.registrySnapshot;
15
- project.lock.nodes = external
16
- .map((manifest) => ({ nodeType: manifest.nodeType, nodeVersion: manifest.nodeVersion ?? null }))
17
- .sort((a, b) => {
18
- const left = `${a.nodeType}\u0000${a.nodeVersion ?? ''}`;
19
- const right = `${b.nodeType}\u0000${b.nodeVersion ?? ''}`;
20
- return left < right ? -1 : left > right ? 1 : 0;
21
- });
22
- writeLock(project);
23
- return {
24
- path: generated.path,
25
- language,
26
- registrySnapshot: generated.registrySnapshot,
27
- nodeTypes: new Set(external.map((manifest) => manifest.nodeType)).size,
28
- changed: previous !== generated.registrySnapshot,
29
- };
30
- }
31
- export async function runCodegen(env, options) {
32
- const project = loadProject(options.project, env.cwd());
33
- assertProjectWorkspace(env, project);
34
- const language = parseChoice(options.lang, '--lang', PROJECT_LANGUAGES) ?? project.config.language;
35
- const manifests = await env.api.nodeManifests();
36
- const result = await writeNodeClients(project, manifests, language);
37
- emit(env, options, result, {
38
- headers: ['File', 'Node types', 'Registry snapshot', 'Changed'],
39
- rows: [
40
- [
41
- result.path,
42
- String(result.nodeTypes),
43
- result.registrySnapshot,
44
- result.changed ? 'yes' : 'no',
45
- ],
46
- ],
47
- });
48
- return result;
49
- }
50
- //# sourceMappingURL=codegen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codegen.js","sourceRoot":"","sources":["../../../src/code-first/commands/codegen.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,gBAAgB,GAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,WAAW,EAAwC,MAAM,cAAc,CAAC;AAUvF,qFAAqF;AACrF,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAgB,EAChB,SAAkC,EAClC,QAAyB;IAEzB,MAAM,SAAS,GAAG,MAAM,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACjE,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC;IAC/C,gBAAgB,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAClE,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC,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xD,sBAAsB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACrC,MAAM,QAAQ,GACZ,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,iBAAiB,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;IACpF,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAChD,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACpE,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,OAAO,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,mBAAmB,EAAE,SAAS,CAAC;QAC/D,IAAI,EAAE;YACJ;gBACE,MAAM,CAAC,IAAI;gBACX,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;gBACxB,MAAM,CAAC,gBAAgB;gBACvB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;aAC9B;SACF;KACF,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,28 +0,0 @@
1
- /**
2
- * `fluidgrids diff [key…] [--against latest|active|<version>]`: the IR diff of
3
- * the local workflows against a stored version (spec 07 §7). Both sides are
4
- * compared after normalisation, without `authoring`, with the stored pinned
5
- * data carried over exactly as `push` would.
6
- */
7
- import { type CommandEnv, type ProjectOptions } from '../shared.js';
8
- export interface DiffOptions extends ProjectOptions {
9
- against?: string;
10
- exitCode?: boolean;
11
- }
12
- export interface DiffItem {
13
- key: string;
14
- against: string | null;
15
- status: 'same' | 'changed' | 'new';
16
- changes: Array<{
17
- kind: string;
18
- path: string;
19
- before?: unknown;
20
- after?: unknown;
21
- }>;
22
- }
23
- export interface DiffResult {
24
- against: string;
25
- workflows: DiffItem[];
26
- }
27
- export declare function runDiff(env: CommandEnv, keys: readonly string[], options: DiffOptions): Promise<DiffResult>;
28
- //# sourceMappingURL=diff.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/code-first/commands/diff.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAcH,OAAO,EAA0B,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5F,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,KAAK,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACnF;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,wBAAsB,OAAO,CAC3B,GAAG,EAAE,UAAU,EACf,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,UAAU,CAAC,CA6ErB"}
@@ -1,73 +0,0 @@
1
- /**
2
- * `fluidgrids diff [key…] [--against latest|active|<version>]`: the IR diff of
3
- * the local workflows against a stored version (spec 07 §7). Both sides are
4
- * compared after normalisation, without `authoring`, with the stored pinned
5
- * data carried over exactly as `push` would.
6
- */
7
- import { CliUserError } from '@burdenoff/cli-sdk/core';
8
- import { diffDefinitions } from '@fluidgrids/workflows/ir';
9
- import { explainUnresolved } from '../connections.js';
10
- import { lowerProject } from '../lowering.js';
11
- import { assertProjectWorkspace, loadProject } from '../project.js';
12
- import { comparableRemote, outgoingDefinition, projectConnectionIndex, RemoteWorkflows, } from '../remote.js';
13
- import { emit, requireKnownKeys } from '../shared.js';
14
- export async function runDiff(env, keys, options) {
15
- const project = loadProject(options.project, env.cwd());
16
- assertProjectWorkspace(env, project);
17
- const against = options.against ?? 'latest';
18
- const latest = new RemoteWorkflows(env.api, 'latest');
19
- const remote = against === 'latest' ? latest : new RemoteWorkflows(env.api, against);
20
- const index = await projectConnectionIndex(env.api, project, keys, latest);
21
- const lowered = await lowerProject(project, {
22
- connections: (name) => (Object.hasOwn(index.refs, name) ? index.refs[name] : undefined),
23
- connectionNames: Object.keys(index.refs),
24
- explainUnresolved: (names) => explainUnresolved(names, index),
25
- });
26
- requireKnownKeys(keys, lowered.workflows.map((workflow) => workflow.key));
27
- const selected = keys.length > 0
28
- ? lowered.workflows.filter((workflow) => keys.includes(workflow.key))
29
- : lowered.workflows;
30
- const items = [];
31
- for (const workflow of selected) {
32
- const stored = await remote.get(workflow.key);
33
- if (!stored.export) {
34
- items.push({ key: workflow.key, against: null, status: 'new', changes: [] });
35
- continue;
36
- }
37
- const base = comparableRemote(stored.export.definitionJson, workflow.key);
38
- const changes = diffDefinitions(base, outgoingDefinition(workflow.definition, base)).map((change) => ({
39
- kind: change.kind,
40
- path: change.path,
41
- ...(change.before !== undefined ? { before: change.before } : {}),
42
- ...(change.after !== undefined ? { after: change.after } : {}),
43
- }));
44
- items.push({
45
- key: workflow.key,
46
- against: stored.export.version,
47
- status: changes.length === 0 ? 'same' : 'changed',
48
- changes,
49
- });
50
- }
51
- const result = { against, workflows: items };
52
- const details = [...lowered.warnings];
53
- details.push(...items.flatMap((item) => item.changes.map((change) => {
54
- const values = change.kind === 'changed'
55
- ? `: ${JSON.stringify(change.before)} -> ${JSON.stringify(change.after)}`
56
- : '';
57
- return `${item.key}: ${change.kind} ${change.path}${values}`;
58
- })));
59
- emit(env, options, result, {
60
- headers: ['Workflow', 'Against', 'Status', 'Changes'],
61
- rows: items.map((item) => [
62
- item.key,
63
- item.against ?? '-',
64
- item.status,
65
- String(item.changes.length),
66
- ]),
67
- }, details);
68
- if (options.exitCode && items.some((item) => item.status !== 'same')) {
69
- throw new CliUserError('The local workflows differ from the workspace.', { exitCode: 1 });
70
- }
71
- return result;
72
- }
73
- //# sourceMappingURL=diff.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diff.js","sourceRoot":"","sources":["../../../src/code-first/commands/diff.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAwC,MAAM,cAAc,CAAC;AAmB5F,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,GAAe,EACf,IAAuB,EACvB,OAAoB;IAEpB,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;IACxD,sBAAsB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACrC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,QAAQ,CAAC;IAC5C,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtD,MAAM,MAAM,GAAG,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,GAAG,CAAC,G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I,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,MAAM,MAAM,GACV,MAAM,CAAC,IAAI,KAAK,SAAS;YACvB,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YACzE,CAAC,CAAC,EAAE,CAAC;QACT,OAAO,GAAG,IAAI,CAAC,GAAG,KAAK,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,GAAG,MAAM,EAAE,CAAC;IAC/D,CAAC,CAAC,CACH,CACF,CAAC;IACF,IAAI,CACF,GAAG,EACH,OAAO,EACP,MAAM,EACN;QACE,OAAO,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;QACrD,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;YACxB,IAAI,CAAC,GAAG;YACR,IAAI,CAAC,OAAO,IAAI,GAAG;YACnB,IAAI,CAAC,MAAM;YACX,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;SAC5B,CAAC;KACH,EACD,OAAO,CACR,CAAC;IACF,IAAI,OAAO,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,EAAE,CAAC;QACrE,MAAM,IAAI,YAAY,CAAC,gDAAgD,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5F,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,55 +0,0 @@
1
- /**
2
- * `fluidgrids push --hotfix <version> [key]`: replace the code bundle of an
3
- * existing version (spec 06 §2, decision DB10) instead of creating a version.
4
- *
5
- * 1. The local lowering of the workflow must equal the stored version except
6
- * for its code: a hotfix fixes code, it never changes the graph, the
7
- * exported functions or their interfaces.
8
- * 2. `--replay-sample N` first replays the N most recent durable runs of that
9
- * version locally (in the QuickJS isolate, or with the Python SDK for a
10
- * Python project), and refuses on a violation. It
11
- * scans the newest runs of the key up to a bound, warns when it found fewer
12
- * than N and refuses when it found none.
13
- * 3. The bundle is uploaded as for a push, `replaceWorkflowVersionCode` starts
14
- * the service's job, and the CLI polls `workflowCodeReplace` until the job
15
- * ends REPLACED or REJECTED (the service replays up to 50 open and 50
16
- * completed runs; `--no-verify-replay` skips that and is audited). The
17
- * result is emitted before a REJECTED job or a timeout exits non-zero.
18
- */
19
- import type { CodeReplaceResult } from '../api.js';
20
- import { type ReplayOutcome } from '../replay.js';
21
- import { type CommandEnv } from '../shared.js';
22
- import { type PushOptions } from './push.js';
23
- /** Poll interval of the replacement job. */
24
- export declare const HOTFIX_POLL_MS = 2000;
25
- /** Default wait for the replacement job (the service replays up to 100 runs). */
26
- export declare const HOTFIX_DEFAULT_TIMEOUT_MS: number;
27
- export interface HotfixResult {
28
- key: string;
29
- version: string;
30
- buildId: string;
31
- previousBuildId: string;
32
- status: CodeReplaceResult['status'];
33
- /** True when `--timeout` passed before the job ended; `status` is its last state. */
34
- timedOut: boolean;
35
- jobId: string;
36
- verifiedRuns: number;
37
- bundleUploaded: boolean;
38
- verifyReplay: boolean;
39
- /** What `--replay-sample` found and replayed; null without it. */
40
- replaySample: ReplaySample | null;
41
- localReplays: Array<Omit<ReplayOutcome, 'result'>>;
42
- violations: CodeReplaceResult['violations'];
43
- }
44
- /** Runs of the key scanned for a `--replay-sample` (newest first). */
45
- export declare const HOTFIX_SAMPLE_SCAN_LIMIT = 500;
46
- /** What `--replay-sample` replayed. */
47
- export interface ReplaySample {
48
- requested: number;
49
- /** Durable runs of the version found among the newest runs of the key. */
50
- found: number;
51
- /** Runs of the key that were scanned. */
52
- scanned: number;
53
- }
54
- export declare function runHotfix(env: CommandEnv, keys: readonly string[], options: PushOptions): Promise<HotfixResult>;
55
- //# sourceMapping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