@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 +0,0 @@
1
- {"version":3,"file":"remote.js","sourceRoot":"","sources":["../../src/code-first/remote.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAgB,MAAM,cAAc,CAAC;AAC5E,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GAEtB,MAAM,kBAAkB,CAAC;AAE1B,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,6BAA6B;AAC7B,MAAM,UAAU,YAAY,CAAC,QAAkC;IAC7D,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACjC,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACnE,CAAC;AACJ,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,WAAW,CACzB,QAAkC,EAClC,OAAe;IAEf,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IACtC,IAAI,OAAO,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC3D,IAAI,OAAO,KAAK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;IAE5D,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC9F,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,mBAAmB,CACzC,GAAG,EACH,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CACnF,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Replaying histories against the project's code bundle (spec 10 §1, C-ABI).
3
- *
4
- * - Default engine: a fresh Node `vm` context with the SDK's task prelude
5
- * (`runWorkflowTaskInVm`), fast and good for development.
6
- * - `--isolate`: the QuickJS runner the managed workers and the service use
7
- * (`createWorkflowTaskRunner`), so a pass here is a pass there.
8
- *
9
- * Both run a `verify` task request over the whole history and report
10
- * `NON_DETERMINISM` when the code no longer produces the recorded commands.
11
- */
12
- import type { HistoryFile, WorkflowTaskResult } from '@fluidgrids/workflows/history';
13
- export type ReplayEngine = 'vm' | 'quickjs';
14
- export interface ReplayOutcome {
15
- name: string;
16
- workflowFn: string;
17
- events: number;
18
- engine: ReplayEngine;
19
- ok: boolean;
20
- /** `NON_DETERMINISM`, `WORKFLOW_CODE_ERROR`, …; null when the replay passed. */
21
- cause: string | null;
22
- message: string | null;
23
- /** The first history event the failure points at, when the runtime knows it. */
24
- seq: number | null;
25
- result: WorkflowTaskResult;
26
- }
27
- /** Replays many histories against one bundle; close it when done. */
28
- export interface Replayer {
29
- replay(file: HistoryFile, name: string): Promise<ReplayOutcome>;
30
- close(): Promise<void>;
31
- }
32
- /** A replayer for `bundle` (verified against `buildId` in the isolate). */
33
- export declare function createReplayer(bundle: string, buildId: string, engine: ReplayEngine): Promise<Replayer>;
34
- /** One line per failed replay, for hints and details. */
35
- export declare function describeOutcome(outcome: ReplayOutcome): string;
36
- //# sourceMappingURL=replay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../../src/code-first/replay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAIrF,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,YAAY,CAAC;IACrB,EAAE,EAAE,OAAO,CAAC;IACZ,gFAAgF;IAChF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,gFAAgF;IAChF,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAED,qEAAqE;AACrE,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAChE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,2EAA2E;AAC3E,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,QAAQ,CAAC,CAmCnB;AAED,yDAAyD;AACzD,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAI9D"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Replaying histories against the project's code bundle (spec 10 §1, C-ABI).
3
- *
4
- * - Default engine: a fresh Node `vm` context with the SDK's task prelude
5
- * (`runWorkflowTaskInVm`), fast and good for development.
6
- * - `--isolate`: the QuickJS runner the managed workers and the service use
7
- * (`createWorkflowTaskRunner`), so a pass here is a pass there.
8
- *
9
- * Both run a `verify` task request over the whole history and report
10
- * `NON_DETERMINISM` when the code no longer produces the recorded commands.
11
- */
12
- import { createWorkflowTaskRunner } from '@fluidgrids/workflows/quickjs';
13
- import { bundleToScript, replayRequest, runWorkflowTaskInVm } from '@fluidgrids/workflows/testing';
14
- /** A replayer for `bundle` (verified against `buildId` in the isolate). */
15
- export async function createReplayer(bundle, buildId, engine) {
16
- const toOutcome = (file, name, result) => ({
17
- name,
18
- workflowFn: file.workflowFn,
19
- events: file.events.length,
20
- engine,
21
- ok: result.outcome !== 'failed',
22
- cause: result.outcome === 'failed' ? (result.failure?.cause ?? 'INTERNAL') : null,
23
- message: result.outcome === 'failed' ? (result.failure?.message ?? '') : null,
24
- seq: result.failure?.seq ?? null,
25
- result,
26
- });
27
- const request = (file) => replayRequest(file.workflowFn, file.events, file.info ?? {}, file.nowMs);
28
- if (engine === 'quickjs') {
29
- const runner = createWorkflowTaskRunner({ poolSize: 1 });
30
- return {
31
- async replay(file, name) {
32
- return toOutcome(file, name, await runner.run({ code: bundle, buildId }, request(file)));
33
- },
34
- close: () => runner.close(),
35
- };
36
- }
37
- const script = await bundleToScript(bundle);
38
- return {
39
- async replay(file, name) {
40
- return toOutcome(file, name, await runWorkflowTaskInVm(script, request(file)));
41
- },
42
- close: () => Promise.resolve(),
43
- };
44
- }
45
- /** One line per failed replay, for hints and details. */
46
- export function describeOutcome(outcome) {
47
- if (outcome.ok)
48
- return `${outcome.name}: ok (${outcome.events} events, ${outcome.engine})`;
49
- const at = outcome.seq !== null ? ` at event ${outcome.seq}` : '';
50
- return `${outcome.name}: ${outcome.cause ?? 'INTERNAL'}${at}: ${outcome.message ?? ''}`;
51
- }
52
- //# sourceMapping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from '@burdenoff/cli-sdk/core';
3
- import type { Command } from 'commander';
4
- import { type DeviceLoginResult } from '../auth/device-login.js';
5
- import { type CodeFirstApi } from './api.js';
6
- export interface OutputOptions {
7
- format?: string;
8
- }
9
- export interface ProjectOptions extends OutputOptions {
10
- project?: string;
11
- }
12
- /** Dependencies a command needs; tests substitute them. */
13
- export interface CommandEnv {
14
- ctx: CLIContext;
15
- api: CodeFirstApi;
16
- cwd: () => string;
17
- /** True when a person can answer the device-code prompt (stdin and stdout are terminals). */
18
- interactive: () => boolean;
19
- /** The device-code login (`fluidgrids auth login`'s flow, without prompts). */
20
- login: (workspaceId?: string) => Promise<DeviceLoginResult>;
21
- /** HTTP for presigned code uploads and offloaded history payloads (never the gateway). */
22
- fetch: (url: string, init?: Parameters<typeof fetch>[1]) => Promise<Response>;
23
- /** Run a program with the terminal's stdio in `cwd`; resolves its exit status. */
24
- exec: (command: string, args: readonly string[], cwd: string) => Promise<number>;
25
- /** Wait between polls. */
26
- sleep: (ms: number) => Promise<void>;
27
- /** An environment variable (secrets such as `--callback-secret-env` are read this way). */
28
- getEnv: (name: string) => string | undefined;
29
- }
30
- /** Run a program with inherited stdio; a missing program is a user error. */
31
- export declare function execInherited(command: string, args: readonly string[], cwd: string): Promise<number>;
32
- export declare function createCommandEnv(ctx: CLIContext): CommandEnv;
33
- /**
34
- * Print a result: the table plus detail lines for people, the data itself for
35
- * `--format json|yaml` (where the details are already part of the data).
36
- */
37
- export declare function emit(env: CommandEnv, options: OutputOptions, data: unknown, table: TableConfig, details?: readonly string[]): void;
38
- /**
39
- * The command's options with the CLI-wide `-f/--format` filled in. Commander
40
- * lets the program claim `-f` wherever it appears on the line, so a command's
41
- * own `format` option can stay undefined; this reads the program's value then.
42
- */
43
- export declare function withGlobalFormat<T extends OutputOptions>(options: T, command: Command): T;
44
- /** A closed-set option value; undefined passes through. */
45
- export declare function parseChoice<T extends string>(raw: string | undefined, flag: string, allowed: readonly T[]): T | undefined;
46
- /** Keys named on the command line that the local project does not define. */
47
- export declare function requireKnownKeys(requested: readonly string[], known: readonly string[]): void;
48
- /** A JSON option value (`--input`, `--payload`); any JSON value. */
49
- export declare function parseJsonOption(raw: string | undefined, flag: string): unknown;
50
- /** A positive integer option value. */
51
- export declare function parsePositiveInt(raw: string | undefined, flag: string): number | undefined;
52
- export declare function describeError(error: unknown): string;
53
- //# sourceMappingURL=shared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/code-first/shared.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAIjD,OAAO,EAAgB,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAEjE,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,2DAA2D;AAC3D,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,UAAU,CAAC;IAChB,GAAG,EAAE,YAAY,CAAC;IAClB,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,6FAA6F;IAC7F,WAAW,EAAE,MAAM,OAAO,CAAC;IAC3B,+EAA+E;IAC/E,KAAK,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC5D,0FAA0F;IAC1F,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9E,kFAAkF;IAClF,IAAI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EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAO9E;AAED,uCAAuC;AACvC,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM1F;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEpD"}
@@ -1,94 +0,0 @@
1
- /** Helpers shared by the code-first commands. */
2
- import { spawn } from 'child_process';
3
- import { CliUserError } from '@burdenoff/cli-sdk/core';
4
- import { deviceCodeLogin } from '../auth/device-login.js';
5
- import { createCodeFirstApi } from './api.js';
6
- /** Run a program with inherited stdio; a missing program is a user error. */
7
- export function execInherited(command, args, cwd) {
8
- return new Promise((resolve, reject) => {
9
- const child = spawn(command, [...args], { cwd, stdio: 'inherit' });
10
- child.on('error', (error) => {
11
- reject(error.code === 'ENOENT'
12
- ? new CliUserError(`${command} was not found on PATH.`)
13
- : new CliUserError(`Could not start ${command}: ${error.message}`));
14
- });
15
- child.on('close', (code, signal) => resolve(code ?? (signal ? 1 : 0)));
16
- });
17
- }
18
- export function createCommandEnv(ctx) {
19
- return {
20
- ctx,
21
- api: createCodeFirstApi(ctx),
22
- cwd: () => process.cwd(),
23
- interactive: () => process.stdin.isTTY === true && process.stdout.isTTY === true,
24
- login: (workspaceId) => deviceCodeLogin(ctx, workspaceId ? { workspaceId } : {}),
25
- fetch: (url, init) => fetch(url, init),
26
- exec: execInherited,
27
- sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),
28
- getEnv: (name) => process.env[name],
29
- };
30
- }
31
- /**
32
- * Print a result: the table plus detail lines for people, the data itself for
33
- * `--format json|yaml` (where the details are already part of the data).
34
- */
35
- export function emit(env, options, data, table, details = []) {
36
- const { output } = env.ctx;
37
- output.formatAndOutput(options, data, table);
38
- if (output.getFormat(options) === 'table') {
39
- for (const line of details)
40
- console.log(line);
41
- }
42
- }
43
- /**
44
- * The command's options with the CLI-wide `-f/--format` filled in. Commander
45
- * lets the program claim `-f` wherever it appears on the line, so a command's
46
- * own `format` option can stay undefined; this reads the program's value then.
47
- */
48
- export function withGlobalFormat(options, command) {
49
- if (options.format !== undefined)
50
- return options;
51
- const format = command.optsWithGlobals()['format'];
52
- return typeof format === 'string' ? { ...options, format } : options;
53
- }
54
- /** A closed-set option value; undefined passes through. */
55
- export function parseChoice(raw, flag, allowed) {
56
- if (raw === undefined)
57
- return undefined;
58
- const match = allowed.find((value) => value === raw);
59
- if (match === undefined) {
60
- throw new CliUserError(`Invalid value '${raw}' for ${flag}. Allowed: ${allowed.join(', ')}`);
61
- }
62
- return match;
63
- }
64
- /** Keys named on the command line that the local project does not define. */
65
- export function requireKnownKeys(requested, known) {
66
- const missing = requested.filter((key) => !known.includes(key));
67
- if (missing.length > 0) {
68
- throw new CliUserError(`Not defined in this project: ${missing.join(', ')}`, known.length > 0 ? { hint: `Defined here: ${known.join(', ')}` } : undefined);
69
- }
70
- }
71
- /** A JSON option value (`--input`, `--payload`); any JSON value. */
72
- export function parseJsonOption(raw, flag) {
73
- if (raw === undefined)
74
- return undefined;
75
- try {
76
- return JSON.parse(raw);
77
- }
78
- catch {
79
- throw new CliUserError(`${flag} must be valid JSON.`);
80
- }
81
- }
82
- /** A positive integer option value. */
83
- export function parsePositiveInt(raw, flag) {
84
- if (raw === undefined)
85
- return undefined;
86
- if (!/^\d+$/.test(raw) || Number(raw) <= 0 || !Number.isSafeInteger(Number(raw))) {
87
- throw new CliUserError(`Invalid value '${raw}' for ${flag}: expected a positive integer.`);
88
- }
89
- return Number(raw);
90
- }
91
- export function describeError(error) {
92
- return error instanceof Error ? error.message : String(error);
93
- }
94
- //# sourceMappingURL=shared.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/code-first/shared.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,OAAO,EAAE,YAAY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P,MAAM,IAAI,YAAY,CAAC,GAAG,IAAI,sBAAsB,CAAC,CAAC;IACxD,CAAC;AACH,CAAC;AAED,uCAAuC;AACvC,MAAM,UAAU,gBAAgB,CAAC,GAAuB,EAAE,IAAY;IACpE,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QACjF,MAAM,IAAI,YAAY,CAAC,kBAAkB,GAAG,SAAS,IAAI,gCAAgC,CAAC,CAAC;IAC7F,CAAC;IACD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * GraphQL documents for workflow test suites (BOFF-9960): `fluidgrids test
3
- * <workflowKey>` starts a suite run of a workflow's saved test cases and polls
4
- * it until every case has finished.
5
- *
6
- * Both target the WORKSPACE gateway (wspace-workflow-svc). The service gates
7
- * them on the `fluidgrids.workflow-tests` feature flag, fail closed; a
8
- * workspace without the flag gets a GraphQL error that the CLI prints as it is.
9
- * They are validated by `tests/code-first/suite.test.ts` against the vendored
10
- * supergraph.
11
- */
12
- /** Start a suite run: every enabled case, or the cases named in `caseIds`. */
13
- export declare const CF_RUN_WORKFLOW_TESTS = "\n mutation FluidgridsCodeRunWorkflowTests($input: RunWorkflowTestsInput!) {\n runWorkflowTests(input: $input) { \n id\n workflowKey\n version\n status\n source\n triggeredBy\n startedAt\n completedAt\n summary { total passed failed errored pending }\n results {\n caseId\n caseName\n status\n runId\n runStatus\n completedAt\n failures { code message nodeId }\n }\n }\n }\n";
14
- /** Poll a suite run; null when it does not exist or the caller cannot see it. */
15
- export declare const CF_WORKFLOW_TEST_RUN = "\n query FluidgridsCodeWorkflowTestRun($id: ID!) {\n workflowTestRun(id: $id) { \n id\n workflowKey\n version\n status\n source\n triggeredBy\n startedAt\n completedAt\n summary { total passed failed errored pending }\n results {\n caseId\n caseName\n status\n runId\n runStatus\n completedAt\n failures { code message nodeId }\n }\n }\n }\n";
16
- //# sourceMappingURL=test-suite-operations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-suite-operations.d.ts","sourceRoot":"","sources":["../../src/code-first/test-suite-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAuBH,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,gaAIjC,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,oBAAoB,+XAIhC,CAAC"}
@@ -1,44 +0,0 @@
1
- /**
2
- * GraphQL documents for workflow test suites (BOFF-9960): `fluidgrids test
3
- * <workflowKey>` starts a suite run of a workflow's saved test cases and polls
4
- * it until every case has finished.
5
- *
6
- * Both target the WORKSPACE gateway (wspace-workflow-svc). The service gates
7
- * them on the `fluidgrids.workflow-tests` feature flag, fail closed; a
8
- * workspace without the flag gets a GraphQL error that the CLI prints as it is.
9
- * They are validated by `tests/code-first/suite.test.ts` against the vendored
10
- * supergraph.
11
- */
12
- const SUITE_FIELDS = `
13
- id
14
- workflowKey
15
- version
16
- status
17
- source
18
- triggeredBy
19
- startedAt
20
- completedAt
21
- summary { total passed failed errored pending }
22
- results {
23
- caseId
24
- caseName
25
- status
26
- runId
27
- runStatus
28
- completedAt
29
- failures { code message nodeId }
30
- }
31
- `;
32
- /** Start a suite run: every enabled case, or the cases named in `caseIds`. */
33
- export const CF_RUN_WORKFLOW_TESTS = `
34
- mutation FluidgridsCodeRunWorkflowTests($input: RunWorkflowTestsInput!) {
35
- runWorkflowTests(input: $input) { ${SUITE_FIELDS} }
36
- }
37
- `;
38
- /** Poll a suite run; null when it does not exist or the caller cannot see it. */
39
- export const CF_WORKFLOW_TEST_RUN = `
40
- query FluidgridsCodeWorkflowTestRun($id: ID!) {
41
- workflowTestRun(id: $id) { ${SUITE_FIELDS} }
42
- }
43
- `;
44
- //# sourceMappingURL=test-suite-operations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-suite-operations.js","sourceRoot":"","sources":["../../src/code-first/test-suite-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,qBAAqB,GAAG;;wCAEG,YAAY;;CAEnD,CAAC;AAEF,iFAAiF;AACjF,MAAM,CAAC,MAAM,oBAAoB,GAAG;;iCAEH,YAAY;;CAE5C,CAAC"}
package/dist/modules.d.ts DELETED
@@ -1,15 +0,0 @@
1
- /**
2
- * The cli-sdk modules this shell mounts: the FluidGrids domain module plus the
3
- * shared platform modules. Kept in one list so the shell and its tests mount
4
- * exactly the same surface.
5
- *
6
- * `codeFirstModule` is product-local (src/code-first/): the code-first workflow
7
- * commands depend on @fluidgrids/workflows, which other product CLIs must not
8
- * pull in through cli-sdk.
9
- *
10
- * Not mounted: `vibecontrols` (another product; it also owns a top-level
11
- * `webhooks` group) and `sandbox` (VibeControls dev environments).
12
- */
13
- import type { CliModule } from '@burdenoff/cli-sdk/core';
14
- export declare const modules: readonly CliModule[];
15
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA0BzD,eAAO,MAAM,OAAO,EAAE,SAAS,SAAS,EAwBvC,CAAC"}
package/dist/modules.js DELETED
@@ -1,61 +0,0 @@
1
- /**
2
- * The cli-sdk modules this shell mounts: the FluidGrids domain module plus the
3
- * shared platform modules. Kept in one list so the shell and its tests mount
4
- * exactly the same surface.
5
- *
6
- * `codeFirstModule` is product-local (src/code-first/): the code-first workflow
7
- * commands depend on @fluidgrids/workflows, which other product CLIs must not
8
- * pull in through cli-sdk.
9
- *
10
- * Not mounted: `vibecontrols` (another product; it also owns a top-level
11
- * `webhooks` group) and `sandbox` (VibeControls dev environments).
12
- */
13
- import authModule from '@burdenoff/cli-sdk/modules/auth';
14
- import workspacesModule from '@burdenoff/cli-sdk/modules/workspaces';
15
- import organizationsModule from '@burdenoff/cli-sdk/modules/organizations';
16
- import toursModule from '@burdenoff/cli-sdk/modules/tours';
17
- import rbacModule from '@burdenoff/cli-sdk/modules/rbac';
18
- import fluidgridsModule from '@burdenoff/cli-sdk/modules/fluidgrids';
19
- import tagsModule from '@burdenoff/cli-sdk/modules/tags';
20
- import filesModule from '@burdenoff/cli-sdk/modules/files';
21
- import groupsModule from '@burdenoff/cli-sdk/modules/groups';
22
- import conversationsModule from '@burdenoff/cli-sdk/modules/conversations';
23
- import securityModule from '@burdenoff/cli-sdk/modules/security';
24
- import integrationsModule from '@burdenoff/cli-sdk/modules/integrations';
25
- import channelsModule from '@burdenoff/cli-sdk/modules/channels';
26
- import schedulerModule from '@burdenoff/cli-sdk/modules/scheduler';
27
- import exportModule from '@burdenoff/cli-sdk/modules/export';
28
- import notificationsModule from '@burdenoff/cli-sdk/modules/notifications';
29
- import supportModule from '@burdenoff/cli-sdk/modules/support';
30
- import productsModule from '@burdenoff/cli-sdk/modules/products';
31
- import billingModule from '@burdenoff/cli-sdk/modules/billing';
32
- import storeModule from '@burdenoff/cli-sdk/modules/store';
33
- import devportalModule from '@burdenoff/cli-sdk/modules/devportal';
34
- import healthModule from '@burdenoff/cli-sdk/modules/health';
35
- import codeFirstModule from './code-first/index.js';
36
- export const modules = [
37
- authModule,
38
- workspacesModule,
39
- organizationsModule,
40
- toursModule,
41
- rbacModule,
42
- fluidgridsModule,
43
- tagsModule,
44
- filesModule,
45
- groupsModule,
46
- conversationsModule,
47
- securityModule,
48
- integrationsModule,
49
- channelsModule,
50
- schedulerModule,
51
- exportModule,
52
- notificationsModule,
53
- supportModule,
54
- productsModule,
55
- billingModule,
56
- storeModule,
57
- devportalModule,
58
- healthModule,
59
- codeFirstModule,
60
- ];
61
- //# sourceMappingURL=modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,gBAAgB,MAAM,uCAAuC,CAAC;AACrE,OAAO,mBAAmB,MAAM,0CAA0C,CAAC;AAC3E,OAAO,WAAW,MAAM,kCAAkC,CAAC;AAC3D,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,gBAAgB,MAAM,uCAAuC,CAAC;AACrE,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,WAAW,MAAM,kCAAkC,CAAC;AAC3D,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAC7D,OAAO,mBAAmB,MAAM,0CAA0C,CAAC;AAC3E,OAAO,cAAc,MAAM,qCAAqC,CAAC;AACjE,OAAO,kBAAkB,MAAM,yCAAyC,CAAC;AACzE,OAAO,cAAc,MAAM,qCAAqC,CAAC;AACjE,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAC7D,OAAO,mBAAmB,MAAM,0CAA0C,CAAC;AAC3E,OAAO,aAAa,MAAM,oCAAoC,CAAC;AAC/D,OAAO,cAAc,MAAM,qCAAqC,CAAC;AACjE,OAAO,aAAa,MAAM,oCAAoC,CAAC;AAC/D,OAAO,WAAW,MAAM,kCAAkC,CAAC;AAC3D,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAE7D,OAAO,eAAe,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,MAAM,OAAO,GAAyB;IAC3C,UAAU;IACV,gBAAgB;IAChB,mBAAmB;IACnB,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,UAAU;IACV,WAAW;IACX,YAAY;IACZ,mBAAmB;IACnB,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,YAAY;IACZ,mBAAmB;IACnB,aAAa;IACb,cAAc;IACd,aAAa;IACb,WAAW;IACX,eAAe;IACf,YAAY;IACZ,eAAe;CAChB,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Product-specific defaults injected into CLIContext via buildContext().
3
- * Anything specific to "fluidgrids" (vs other product CLIs) lives here.
4
- *
5
- * Defaults point at PROD. Dev users override per-config or via env vars:
6
- * FLUIDGRIDS_WORKSPACE_ENDPOINT, FLUIDGRIDS_GLOBAL_ENDPOINT, FLUIDGRIDS_OIDC_ISSUER,
7
- * FLUIDGRIDS_ORIGIN.
8
- */
9
- import type { ProductDefaults } from '@burdenoff/cli-sdk/core';
10
- export declare const productDefaults: ProductDefaults;
11
- //# sourceMappingURL=product-defaults.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product-defaults.d.ts","sourceRoot":"","sources":["../src/product-defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,eAAO,MAAM,eAAe,EAAE,eAe7B,CAAC"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Product-specific defaults injected into CLIContext via buildContext().
3
- * Anything specific to "fluidgrids" (vs other product CLIs) lives here.
4
- *
5
- * Defaults point at PROD. Dev users override per-config or via env vars:
6
- * FLUIDGRIDS_WORKSPACE_ENDPOINT, FLUIDGRIDS_GLOBAL_ENDPOINT, FLUIDGRIDS_OIDC_ISSUER,
7
- * FLUIDGRIDS_ORIGIN.
8
- */
9
- export const productDefaults = {
10
- configDirName: 'fluidgrids-cli',
11
- // First-party device-code client registered by global-auth-svc system-apps.
12
- oidcClientId: 'burdenoff_cli_fluidgrids',
13
- oidcIssuerProd: 'https://graphql.burdenoff.com/global',
14
- workspaceEndpointDefault: 'https://graphqlworkspaces.burdenoff.com/workspaces/graphql',
15
- globalEndpointDefault: 'https://graphql.burdenoff.com/global/graphql',
16
- envPrefix: 'FLUIDGRIDS',
17
- // wspace-workflow-svc is product-scoped: the gateway derives the product from
18
- // Origin, which Node does not send. Override with FLUIDGRIDS_ORIGIN for custom
19
- // or local gateways.
20
- productOrigins: {
21
- 'graphqlworkspaces.burdenoff.com': 'https://app.fluidgrids.ai',
22
- 'alphagraphqlworkspaces.burdenoff.com': 'https://alphaapp.fluidgrids.ai',
23
- },
24
- };
25
- //# sourceMappingURL=product-defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product-defaults.js","sourceRoot":"","sources":["../src/product-defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC9C,aAAa,EAAE,gBAAgB;IAC/B,4EAA4E;IAC5E,YAAY,EAAE,0BAA0B;IACxC,cAAc,EAAE,sCAAsC;IACtD,wBAAwB,EAAE,4DAA4D;IACtF,qBAAqB,EAAE,8CAA8C;IACrE,SAAS,EAAE,YAAY;IACvB,8EAA8E;IAC9E,+EAA+E;IAC/E,qBAAqB;IACrB,cAAc,EAAE;QACd,iCAAiC,EAAE,2BAA2B;QAC9D,sCAAsC,EAAE,gCAAgC;KACzE;CACF,CAAC"}
package/dist/program.d.ts DELETED
@@ -1,20 +0,0 @@
1
- /**
2
- * Builds the FluidGrids CLI program: the CLIContext with product defaults
3
- * (switched to token mode when FLUIDGRIDS_TOKEN / --token is set), the mounted
4
- * modules, and the global options. `cli.ts` runs it; tests build it directly.
5
- */
6
- import { type CLIContext, type OutputAdapter, type ProgramFactoryResult } from '@burdenoff/cli-sdk/core';
7
- export interface CreateCliOptions {
8
- argv: readonly string[];
9
- env: Readonly<Record<string, string | undefined>>;
10
- version: string;
11
- output?: OutputAdapter;
12
- }
13
- export interface FluidgridsCli extends ProgramFactoryResult {
14
- ctx: CLIContext;
15
- /** True when FLUIDGRIDS_TOKEN or --token supplied the credentials. */
16
- tokenMode: boolean;
17
- }
18
- export declare const HELP_EXAMPLES: readonly string[];
19
- export declare function createCli(options: CreateCliOptions): FluidgridsCli;
20
- //# sourceMappingURL=program.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,oBAAoB,EAC1B,MAAM,yBAAyB,CAAC;AAMjC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD,GAAG,EAAE,UAAU,CAAC;IAChB,sEAAsE;IACtE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAc1C,CAAC;AAEF,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,aAAa,CAqBlE"}
package/dist/program.js DELETED
@@ -1,44 +0,0 @@
1
- /**
2
- * Builds the FluidGrids CLI program: the CLIContext with product defaults
3
- * (switched to token mode when FLUIDGRIDS_TOKEN / --token is set), the mounted
4
- * modules, and the global options. `cli.ts` runs it; tests build it directly.
5
- */
6
- import { buildContext, createProgram, } from '@burdenoff/cli-sdk/core';
7
- import { applyTokenAuth, readTokenAuthSettings, TOKEN_FLAG } from './auth/token-auth.js';
8
- import { modules } from './modules.js';
9
- import { productDefaults } from './product-defaults.js';
10
- export const HELP_EXAMPLES = [
11
- '$ fluidgrids auth login # OAuth2 Device Code login',
12
- '$ fluidgrids workspace set <id> # Pick workspace',
13
- '$ fluidgrids workflows list --status ACTIVE # Workflow definitions',
14
- '$ fluidgrids workflows trigger <key> --wf-version 1.0.0 --trigger-node start',
15
- '$ fluidgrids runs wait <runId> # Block until a run finishes',
16
- '$ fluidgrids init --lang ts # Code-first project',
17
- '$ fluidgrids pull lead-enrichment --as ts # Workflow as TypeScript',
18
- '$ fluidgrids push --dry-run # What a push would change',
19
- '$ FLUIDGRIDS_TOKEN=... fluidgrids diff --exit-code # CI: non-interactive auth',
20
- '$ fluidgrids test <key> --junit junit.xml # CI: run the saved test cases',
21
- '',
22
- 'Configuration: ~/.config/fluidgrids-cli/ (FLUIDGRIDS_TOKEN skips the stored login)',
23
- 'Documentation: https://docs.fluidgrids.ai/developers/cli-reference',
24
- ];
25
- export function createCli(options) {
26
- const settings = readTokenAuthSettings(options.argv, options.env);
27
- const base = buildContext({
28
- productName: 'fluidgrids',
29
- productVersion: options.version,
30
- defaults: productDefaults,
31
- ...(options.output ? { output: options.output } : {}),
32
- });
33
- const ctx = settings ? applyTokenAuth(base, settings) : base;
34
- const factory = createProgram(ctx, modules, {
35
- name: 'fluidgrids',
36
- description: 'FluidGrids CLI — workflow automation from the terminal',
37
- version: options.version,
38
- helpExamples: [...HELP_EXAMPLES],
39
- });
40
- // Read before the program parses (see readTokenAuthSettings); declared so commander accepts it.
41
- factory.program.option(`${TOKEN_FLAG} <token>`, 'Platform access token for non-interactive use (prefer the FLUIDGRIDS_TOKEN variable)');
42
- return { ...factory, ctx, tokenMode: settings !== null };
43
- }
44
- //# sourceMappingURL=program.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"program.js","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,YAAY,EACZ,aAAa,GAId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