@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.
- package/README.md +1 -1
- package/dist/cli.js +9708 -33
- package/package.json +37 -33
- package/dist/auth/device-login.d.ts +0 -31
- package/dist/auth/device-login.d.ts.map +0 -1
- package/dist/auth/device-login.js +0 -75
- package/dist/auth/device-login.js.map +0 -1
- package/dist/auth/token-auth.d.ts +0 -49
- package/dist/auth/token-auth.d.ts.map +0 -1
- package/dist/auth/token-auth.js +0 -279
- package/dist/auth/token-auth.js.map +0 -1
- package/dist/cli.d.ts +0 -10
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/code-first/api.d.ts +0 -607
- package/dist/code-first/api.d.ts.map +0 -1
- package/dist/code-first/api.js +0 -438
- package/dist/code-first/api.js.map +0 -1
- package/dist/code-first/code-upload.d.ts +0 -68
- package/dist/code-first/code-upload.d.ts.map +0 -1
- package/dist/code-first/code-upload.js +0 -223
- package/dist/code-first/code-upload.js.map +0 -1
- package/dist/code-first/commands/codegen.d.ts +0 -20
- package/dist/code-first/commands/codegen.d.ts.map +0 -1
- package/dist/code-first/commands/codegen.js +0 -50
- package/dist/code-first/commands/codegen.js.map +0 -1
- package/dist/code-first/commands/diff.d.ts +0 -28
- package/dist/code-first/commands/diff.d.ts.map +0 -1
- package/dist/code-first/commands/diff.js +0 -73
- package/dist/code-first/commands/diff.js.map +0 -1
- package/dist/code-first/commands/hotfix.d.ts +0 -55
- package/dist/code-first/commands/hotfix.d.ts.map +0 -1
- package/dist/code-first/commands/hotfix.js +0 -231
- package/dist/code-first/commands/hotfix.js.map +0 -1
- package/dist/code-first/commands/import.d.ts +0 -40
- package/dist/code-first/commands/import.d.ts.map +0 -1
- package/dist/code-first/commands/import.js +0 -235
- package/dist/code-first/commands/import.js.map +0 -1
- package/dist/code-first/commands/init.d.ts +0 -33
- package/dist/code-first/commands/init.d.ts.map +0 -1
- package/dist/code-first/commands/init.js +0 -177
- package/dist/code-first/commands/init.js.map +0 -1
- package/dist/code-first/commands/interface.d.ts +0 -12
- package/dist/code-first/commands/interface.d.ts.map +0 -1
- package/dist/code-first/commands/interface.js +0 -21
- package/dist/code-first/commands/interface.js.map +0 -1
- package/dist/code-first/commands/pull.d.ts +0 -63
- package/dist/code-first/commands/pull.d.ts.map +0 -1
- package/dist/code-first/commands/pull.js +0 -266
- package/dist/code-first/commands/pull.js.map +0 -1
- package/dist/code-first/commands/push.d.ts +0 -104
- package/dist/code-first/commands/push.d.ts.map +0 -1
- package/dist/code-first/commands/push.js +0 -320
- package/dist/code-first/commands/push.js.map +0 -1
- package/dist/code-first/commands/replay.d.ts +0 -44
- package/dist/code-first/commands/replay.d.ts.map +0 -1
- package/dist/code-first/commands/replay.js +0 -271
- package/dist/code-first/commands/replay.js.map +0 -1
- package/dist/code-first/commands/runs.d.ts +0 -168
- package/dist/code-first/commands/runs.d.ts.map +0 -1
- package/dist/code-first/commands/runs.js +0 -598
- package/dist/code-first/commands/runs.js.map +0 -1
- package/dist/code-first/commands/suite.d.ts +0 -57
- package/dist/code-first/commands/suite.d.ts.map +0 -1
- package/dist/code-first/commands/suite.js +0 -197
- package/dist/code-first/commands/suite.js.map +0 -1
- package/dist/code-first/commands/validate.d.ts +0 -38
- package/dist/code-first/commands/validate.d.ts.map +0 -1
- package/dist/code-first/commands/validate.js +0 -140
- package/dist/code-first/commands/validate.js.map +0 -1
- package/dist/code-first/commands/versions.d.ts +0 -63
- package/dist/code-first/commands/versions.d.ts.map +0 -1
- package/dist/code-first/commands/versions.js +0 -204
- package/dist/code-first/commands/versions.js.map +0 -1
- package/dist/code-first/connections.d.ts +0 -55
- package/dist/code-first/connections.d.ts.map +0 -1
- package/dist/code-first/connections.js +0 -180
- package/dist/code-first/connections.js.map +0 -1
- package/dist/code-first/durable-operations.d.ts +0 -41
- package/dist/code-first/durable-operations.d.ts.map +0 -1
- package/dist/code-first/durable-operations.js +0 -135
- package/dist/code-first/durable-operations.js.map +0 -1
- package/dist/code-first/history.d.ts +0 -30
- package/dist/code-first/history.d.ts.map +0 -1
- package/dist/code-first/history.js +0 -139
- package/dist/code-first/history.js.map +0 -1
- package/dist/code-first/imports.d.ts +0 -22
- package/dist/code-first/imports.d.ts.map +0 -1
- package/dist/code-first/imports.js +0 -67
- package/dist/code-first/imports.js.map +0 -1
- package/dist/code-first/index.d.ts +0 -18
- package/dist/code-first/index.d.ts.map +0 -1
- package/dist/code-first/index.js +0 -36
- package/dist/code-first/index.js.map +0 -1
- package/dist/code-first/junit.d.ts +0 -24
- package/dist/code-first/junit.d.ts.map +0 -1
- package/dist/code-first/junit.js +0 -163
- package/dist/code-first/junit.js.map +0 -1
- package/dist/code-first/lowering.d.ts +0 -104
- package/dist/code-first/lowering.d.ts.map +0 -1
- package/dist/code-first/lowering.js +0 -254
- package/dist/code-first/lowering.js.map +0 -1
- package/dist/code-first/operations.d.ts +0 -55
- package/dist/code-first/operations.d.ts.map +0 -1
- package/dist/code-first/operations.js +0 -165
- package/dist/code-first/operations.js.map +0 -1
- package/dist/code-first/parity-operations.d.ts +0 -44
- package/dist/code-first/parity-operations.d.ts.map +0 -1
- package/dist/code-first/parity-operations.js +0 -211
- package/dist/code-first/parity-operations.js.map +0 -1
- package/dist/code-first/parity.d.ts +0 -83
- package/dist/code-first/parity.d.ts.map +0 -1
- package/dist/code-first/parity.js +0 -301
- package/dist/code-first/parity.js.map +0 -1
- package/dist/code-first/presigned.d.ts +0 -21
- package/dist/code-first/presigned.d.ts.map +0 -1
- package/dist/code-first/presigned.js +0 -85
- package/dist/code-first/presigned.js.map +0 -1
- package/dist/code-first/project.d.ts +0 -130
- package/dist/code-first/project.d.ts.map +0 -1
- package/dist/code-first/project.js +0 -308
- package/dist/code-first/project.js.map +0 -1
- package/dist/code-first/python-build.d.ts +0 -78
- package/dist/code-first/python-build.d.ts.map +0 -1
- package/dist/code-first/python-build.js +0 -268
- package/dist/code-first/python-build.js.map +0 -1
- package/dist/code-first/python.d.ts +0 -103
- package/dist/code-first/python.d.ts.map +0 -1
- package/dist/code-first/python.js +0 -260
- package/dist/code-first/python.js.map +0 -1
- package/dist/code-first/redact.d.ts +0 -31
- package/dist/code-first/redact.d.ts.map +0 -1
- package/dist/code-first/redact.js +0 -159
- package/dist/code-first/redact.js.map +0 -1
- package/dist/code-first/register.d.ts +0 -35
- package/dist/code-first/register.d.ts.map +0 -1
- package/dist/code-first/register.js +0 -420
- package/dist/code-first/register.js.map +0 -1
- package/dist/code-first/remote.d.ts +0 -58
- package/dist/code-first/remote.d.ts.map +0 -1
- package/dist/code-first/remote.js +0 -126
- package/dist/code-first/remote.js.map +0 -1
- package/dist/code-first/replay.d.ts +0 -36
- package/dist/code-first/replay.d.ts.map +0 -1
- package/dist/code-first/replay.js +0 -52
- package/dist/code-first/replay.js.map +0 -1
- package/dist/code-first/shared.d.ts +0 -53
- package/dist/code-first/shared.d.ts.map +0 -1
- package/dist/code-first/shared.js +0 -94
- package/dist/code-first/shared.js.map +0 -1
- package/dist/code-first/test-suite-operations.d.ts +0 -16
- package/dist/code-first/test-suite-operations.d.ts.map +0 -1
- package/dist/code-first/test-suite-operations.js +0 -44
- package/dist/code-first/test-suite-operations.js.map +0 -1
- package/dist/config/apply.d.ts +0 -51
- package/dist/config/apply.d.ts.map +0 -1
- package/dist/config/apply.js +0 -121
- package/dist/config/apply.js.map +0 -1
- package/dist/config/commands.d.ts +0 -58
- package/dist/config/commands.d.ts.map +0 -1
- package/dist/config/commands.js +0 -252
- package/dist/config/commands.js.map +0 -1
- package/dist/config/profiles.d.ts +0 -108
- package/dist/config/profiles.d.ts.map +0 -1
- package/dist/config/profiles.js +0 -339
- package/dist/config/profiles.js.map +0 -1
- package/dist/flag-hint.d.ts +0 -46
- package/dist/flag-hint.d.ts.map +0 -1
- package/dist/flag-hint.js +0 -114
- package/dist/flag-hint.js.map +0 -1
- package/dist/modules.d.ts +0 -17
- package/dist/modules.d.ts.map +0 -1
- package/dist/modules.js +0 -65
- package/dist/modules.js.map +0 -1
- package/dist/phase-c/api.d.ts +0 -433
- package/dist/phase-c/api.d.ts.map +0 -1
- package/dist/phase-c/api.js +0 -334
- package/dist/phase-c/api.js.map +0 -1
- package/dist/phase-c/commands/activities.d.ts +0 -119
- package/dist/phase-c/commands/activities.d.ts.map +0 -1
- package/dist/phase-c/commands/activities.js +0 -287
- package/dist/phase-c/commands/activities.js.map +0 -1
- package/dist/phase-c/commands/batch.d.ts +0 -90
- package/dist/phase-c/commands/batch.d.ts.map +0 -1
- package/dist/phase-c/commands/batch.js +0 -296
- package/dist/phase-c/commands/batch.js.map +0 -1
- package/dist/phase-c/commands/queues.d.ts +0 -67
- package/dist/phase-c/commands/queues.d.ts.map +0 -1
- package/dist/phase-c/commands/queues.js +0 -183
- package/dist/phase-c/commands/queues.js.map +0 -1
- package/dist/phase-c/commands/run-control.d.ts +0 -76
- package/dist/phase-c/commands/run-control.d.ts.map +0 -1
- package/dist/phase-c/commands/run-control.js +0 -245
- package/dist/phase-c/commands/run-control.js.map +0 -1
- package/dist/phase-c/commands/schedules.d.ts +0 -63
- package/dist/phase-c/commands/schedules.d.ts.map +0 -1
- package/dist/phase-c/commands/schedules.js +0 -198
- package/dist/phase-c/commands/schedules.js.map +0 -1
- package/dist/phase-c/commands/search-attributes.d.ts +0 -30
- package/dist/phase-c/commands/search-attributes.d.ts.map +0 -1
- package/dist/phase-c/commands/search-attributes.js +0 -70
- package/dist/phase-c/commands/search-attributes.js.map +0 -1
- package/dist/phase-c/commands/signal-tokens.d.ts +0 -27
- package/dist/phase-c/commands/signal-tokens.d.ts.map +0 -1
- package/dist/phase-c/commands/signal-tokens.js +0 -68
- package/dist/phase-c/commands/signal-tokens.js.map +0 -1
- package/dist/phase-c/commands/worker-run.d.ts +0 -109
- package/dist/phase-c/commands/worker-run.d.ts.map +0 -1
- package/dist/phase-c/commands/worker-run.js +0 -484
- package/dist/phase-c/commands/worker-run.js.map +0 -1
- package/dist/phase-c/commands/workers.d.ts +0 -46
- package/dist/phase-c/commands/workers.d.ts.map +0 -1
- package/dist/phase-c/commands/workers.js +0 -140
- package/dist/phase-c/commands/workers.js.map +0 -1
- package/dist/phase-c/index.d.ts +0 -16
- package/dist/phase-c/index.d.ts.map +0 -1
- package/dist/phase-c/index.js +0 -25
- package/dist/phase-c/index.js.map +0 -1
- package/dist/phase-c/operations.d.ts +0 -67
- package/dist/phase-c/operations.d.ts.map +0 -1
- package/dist/phase-c/operations.js +0 -559
- package/dist/phase-c/operations.js.map +0 -1
- package/dist/phase-c/register.d.ts +0 -39
- package/dist/phase-c/register.d.ts.map +0 -1
- package/dist/phase-c/register.js +0 -678
- package/dist/phase-c/register.js.map +0 -1
- package/dist/phase-c/shared.d.ts +0 -44
- package/dist/phase-c/shared.d.ts.map +0 -1
- package/dist/phase-c/shared.js +0 -146
- package/dist/phase-c/shared.js.map +0 -1
- package/dist/product-defaults.d.ts +0 -11
- package/dist/product-defaults.d.ts.map +0 -1
- package/dist/product-defaults.js +0 -25
- package/dist/product-defaults.js.map +0 -1
- package/dist/program.d.ts +0 -25
- package/dist/program.d.ts.map +0 -1
- package/dist/program.js +0 -60
- 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,KA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|
-
*
|
|
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' | 'python';
|
|
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: Exclude<ReplayEngine, 'python'>): 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,GAAG,QAAQ,CAAC;AAEvD,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,OAAO,CAAC,YAAY,EAAE,QAAQ,CAAC,GACtC,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
|
-
//# sourceMappingURL=replay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replay.js","sourceRoot":"","sources":["../../src/code-first/replay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAwBnG,2EAA2E;AAC3E,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,MAAc,EACd,OAAe,EACf,MAAuC;IAEvC,MAAM,SAAS,GAAG,CAChB,IAAiB,EACjB,IAAY,EACZ,MAA0B,EACX,EAAE,CAAC,CAAC;QACnB,IAAI;QACJ,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;QAC1B,MAAM;QACN,EAAE,EAAE,MAAM,CAAC,OAAO,KAAK,QAAQ;QAC/B,KAAK,EAAE,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;QACjF,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;QAC7E,GAAG,EAAE,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,IAAI;QAChC,MAAM;KACP,CAAC,CA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AAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,OAAO,GAAG,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,KAAK,IAAI,UAAU,GAAG,EAAE,KAAK,OAAO,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC;AAC1F,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/** Helpers shared by the code-first commands. */
|
|
2
|
-
import { type CLIContext, type TableConfig } 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,O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,CAAC,GAAG,EAAE,UAAU,GAAG,UAAU,CAY5D;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAClB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,WAAW,EAClB,OAAO,GAAE,SAAS,MAAM,EAAO,GAC9B,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,aAAa,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,CAAC,CAIzF;AAED,2DAA2D;AAC3D,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAC1C,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,SAAS,CAAC,EAAE,GACpB,CAAC,GAAG,SAAS,CAOf;AAED,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAQ7F;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,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,EAAqC,MAAM,yBAAyB,CAAC;AAG1F,OAAO,EAAE,eAAe,EAA0B,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAqB,MAAM,UAAU,CAAC;AA6BjE,6EAA6E;AAC7E,MAAM,UAAU,aAAa,CAC3B,OAAe,EACf,IAAuB,EACvB,GAAW;IAEX,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACnE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAgC,EAAE,EAAE;YACrD,MAAM,CACJ,KAAK,CAAC,IAAI,KAAK,QAAQ;gBACrB,CAAC,CAAC,IAAI,YAAY,CAAC,GAAG,OAAO,yBAAyB,CAAC;gBACvD,CAAC,CAAC,IAAI,YAAY,CAAC,mBAAmB,OAAO,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CACrE,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;I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,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAC7E,CAAC;IACJ,CAAC;AACH,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,eAAe,CAAC,GAAuB,EAAE,IAAY;IACnE,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACxC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAY,CAAC;IACpC,CAAC;IAAC,MAAM,CAAC;QACP,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/config/apply.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Applying a client profile (spec code-first 11 §2.36) to the CLI at startup.
|
|
3
|
-
*
|
|
4
|
-
* A profile is in effect when `--profile`, `FLUIDGRIDS_PROFILE` or the file's
|
|
5
|
-
* `defaultProfile` names one, or when the file defines `default`. Without a
|
|
6
|
-
* config file, or without such a profile, nothing changes: the CLI behaves
|
|
7
|
-
* exactly as it did before profiles existed.
|
|
8
|
-
*
|
|
9
|
-
* What a profile sets, each only where the environment does not already:
|
|
10
|
-
* - `apiUrl`: the workspace gateway endpoint (`FLUIDGRIDS_WORKSPACE_ENDPOINT`
|
|
11
|
-
* still wins), with the product Origin the CLI maps to that host;
|
|
12
|
-
* - `tokenRef`: the token for token mode (`FLUIDGRIDS_TOKEN` still wins), read
|
|
13
|
-
* from the named variable or the OS keychain, never from a file;
|
|
14
|
-
* - `workspace`: the workspace of token mode (`FLUIDGRIDS_WORKSPACE_ID`).
|
|
15
|
-
*
|
|
16
|
-
* `product`, `environment`, `codecServerUrl` and `payloadConverter` are read by
|
|
17
|
-
* the SDKs; the CLI stores and shows them.
|
|
18
|
-
*
|
|
19
|
-
* The profile is resolved only for a command that may talk to the gateway:
|
|
20
|
-
* never for help or the version (`--help`, `-h`, `help`, `--version`, `-V`, no
|
|
21
|
-
* command at all), for `auth` (the stored login), or for `config`. So a config
|
|
22
|
-
* file that does not parse, a profile name that does not exist, or a token the
|
|
23
|
-
* keychain cannot give never stops those. The `config` commands refuse a file
|
|
24
|
-
* that is not valid TOML with a hint naming it: fix it in an editor, or move it
|
|
25
|
-
* away to start again.
|
|
26
|
-
*/
|
|
27
|
-
import { type CLIContext, type ConfigStore } from '@burdenoff/cli-sdk/core';
|
|
28
|
-
import { type Keychain, type ResolvedProfile } from './profiles.js';
|
|
29
|
-
export interface AppliedProfile {
|
|
30
|
-
profile: ResolvedProfile;
|
|
31
|
-
/** The environment with the profile's token and workspace filled in. */
|
|
32
|
-
env: Record<string, string | undefined>;
|
|
33
|
-
/** The workspace endpoint the profile sets, unless the environment sets one. */
|
|
34
|
-
workspaceEndpoint?: string;
|
|
35
|
-
}
|
|
36
|
-
/** The first argument that is not an option: the top-level command. */
|
|
37
|
-
export declare function topLevelCommand(argv: readonly string[]): string | undefined;
|
|
38
|
-
/** Top-level commands that never resolve a profile (see the file comment). */
|
|
39
|
-
export declare const PROFILE_FREE_COMMANDS: ReadonlySet<string>;
|
|
40
|
-
/** Whether the command line may talk to the gateway, so a profile applies to it. */
|
|
41
|
-
export declare function profileApplies(argv: readonly string[]): boolean;
|
|
42
|
-
/**
|
|
43
|
-
* The profile to apply, or null when none is in effect (no file, no profile
|
|
44
|
-
* named and no `default`, or a command line that `profileApplies` exempts).
|
|
45
|
-
*/
|
|
46
|
-
export declare function applyProfile(argv: readonly string[], env: Readonly<Record<string, string | undefined>>, keychain: Keychain): AppliedProfile | null;
|
|
47
|
-
/** A config store whose workspace endpoint (and product Origin) is the profile's. */
|
|
48
|
-
export declare function withWorkspaceEndpoint(config: ConfigStore, endpoint: string, productOrigins?: Readonly<Record<string, string>>, env?: Readonly<Record<string, string | undefined>>): ConfigStore;
|
|
49
|
-
/** The context talking to the profile's workspace endpoint (the stored login's clients). */
|
|
50
|
-
export declare function contextWithEndpoint(ctx: CLIContext, endpoint: string): CLIContext;
|
|
51
|
-
//# sourceMappingURL=apply.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../src/config/apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,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-1,121 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Applying a client profile (spec code-first 11 §2.36) to the CLI at startup.
|
|
3
|
-
*
|
|
4
|
-
* A profile is in effect when `--profile`, `FLUIDGRIDS_PROFILE` or the file's
|
|
5
|
-
* `defaultProfile` names one, or when the file defines `default`. Without a
|
|
6
|
-
* config file, or without such a profile, nothing changes: the CLI behaves
|
|
7
|
-
* exactly as it did before profiles existed.
|
|
8
|
-
*
|
|
9
|
-
* What a profile sets, each only where the environment does not already:
|
|
10
|
-
* - `apiUrl`: the workspace gateway endpoint (`FLUIDGRIDS_WORKSPACE_ENDPOINT`
|
|
11
|
-
* still wins), with the product Origin the CLI maps to that host;
|
|
12
|
-
* - `tokenRef`: the token for token mode (`FLUIDGRIDS_TOKEN` still wins), read
|
|
13
|
-
* from the named variable or the OS keychain, never from a file;
|
|
14
|
-
* - `workspace`: the workspace of token mode (`FLUIDGRIDS_WORKSPACE_ID`).
|
|
15
|
-
*
|
|
16
|
-
* `product`, `environment`, `codecServerUrl` and `payloadConverter` are read by
|
|
17
|
-
* the SDKs; the CLI stores and shows them.
|
|
18
|
-
*
|
|
19
|
-
* The profile is resolved only for a command that may talk to the gateway:
|
|
20
|
-
* never for help or the version (`--help`, `-h`, `help`, `--version`, `-V`, no
|
|
21
|
-
* command at all), for `auth` (the stored login), or for `config`. So a config
|
|
22
|
-
* file that does not parse, a profile name that does not exist, or a token the
|
|
23
|
-
* keychain cannot give never stops those. The `config` commands refuse a file
|
|
24
|
-
* that is not valid TOML with a hint naming it: fix it in an editor, or move it
|
|
25
|
-
* away to start again.
|
|
26
|
-
*/
|
|
27
|
-
import { createGqlClients } from '@burdenoff/cli-sdk/core';
|
|
28
|
-
import { configPath, DEFAULT_PROFILE, PROFILE_ENV, profileFromArgv, readConfig, resolveProfile, resolveProfileToken, TOKEN_ENV, } from './profiles.js';
|
|
29
|
-
/** The first argument that is not an option: the top-level command. */
|
|
30
|
-
export function topLevelCommand(argv) {
|
|
31
|
-
for (let index = 2; index < argv.length; index++) {
|
|
32
|
-
const arg = argv[index];
|
|
33
|
-
if (arg === undefined || arg === '--')
|
|
34
|
-
return undefined;
|
|
35
|
-
if (!arg.startsWith('-'))
|
|
36
|
-
return arg;
|
|
37
|
-
// Options of the program that take a value.
|
|
38
|
-
if ((arg === '--token' || arg === '--profile' || arg === '-f' || arg === '--format') &&
|
|
39
|
-
!arg.includes('=')) {
|
|
40
|
-
index++;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
/** Top-level commands that never resolve a profile (see the file comment). */
|
|
46
|
-
export const PROFILE_FREE_COMMANDS = new Set(['auth', 'config', 'help']);
|
|
47
|
-
const HELP_OR_VERSION = new Set(['--help', '-h', '--version', '-V']);
|
|
48
|
-
/** Whether the command line may talk to the gateway, so a profile applies to it. */
|
|
49
|
-
export function profileApplies(argv) {
|
|
50
|
-
const command = topLevelCommand(argv);
|
|
51
|
-
if (command === undefined || PROFILE_FREE_COMMANDS.has(command))
|
|
52
|
-
return false;
|
|
53
|
-
for (let index = 2; index < argv.length; index++) {
|
|
54
|
-
const arg = argv[index];
|
|
55
|
-
if (arg === '--')
|
|
56
|
-
break;
|
|
57
|
-
if (arg !== undefined && HELP_OR_VERSION.has(arg))
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* The profile to apply, or null when none is in effect (no file, no profile
|
|
64
|
-
* named and no `default`, or a command line that `profileApplies` exempts).
|
|
65
|
-
*/
|
|
66
|
-
export function applyProfile(argv, env, keychain) {
|
|
67
|
-
if (!profileApplies(argv))
|
|
68
|
-
return null;
|
|
69
|
-
const explicit = profileFromArgv(argv);
|
|
70
|
-
const file = configPath(env);
|
|
71
|
-
const config = readConfig(file);
|
|
72
|
-
const named = explicit ?? (env[PROFILE_ENV]?.trim() || undefined) ?? config.defaultProfile;
|
|
73
|
-
if (named === undefined && config.profiles[DEFAULT_PROFILE] === undefined)
|
|
74
|
-
return null;
|
|
75
|
-
const profile = resolveProfile(config, env, explicit, file);
|
|
76
|
-
const next = { ...env };
|
|
77
|
-
const token = resolveProfileToken(profile, env, keychain);
|
|
78
|
-
if (token !== undefined && !env[TOKEN_ENV]?.trim())
|
|
79
|
-
next[TOKEN_ENV] = token;
|
|
80
|
-
const workspace = profile.values.workspace;
|
|
81
|
-
if (workspace !== undefined && !env['FLUIDGRIDS_WORKSPACE_ID']?.trim()) {
|
|
82
|
-
next['FLUIDGRIDS_WORKSPACE_ID'] = workspace;
|
|
83
|
-
}
|
|
84
|
-
const applied = { profile, env: next };
|
|
85
|
-
const endpointFromEnv = env['FLUIDGRIDS_WORKSPACE_ENDPOINT']?.trim() || env['WORKSPACE_ENDPOINT']?.trim();
|
|
86
|
-
if (profile.values.apiUrl !== undefined && !endpointFromEnv) {
|
|
87
|
-
applied.workspaceEndpoint = profile.values.apiUrl;
|
|
88
|
-
}
|
|
89
|
-
return applied;
|
|
90
|
-
}
|
|
91
|
-
function hostOf(url) {
|
|
92
|
-
try {
|
|
93
|
-
return new URL(url).host;
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
return undefined;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
/** A config store whose workspace endpoint (and product Origin) is the profile's. */
|
|
100
|
-
export function withWorkspaceEndpoint(config, endpoint, productOrigins = {}, env = process.env) {
|
|
101
|
-
return {
|
|
102
|
-
...config,
|
|
103
|
-
read: () => ({ ...config.read(), workspaceEndpoint: endpoint }),
|
|
104
|
-
get: (key) => (key === 'workspaceEndpoint' ? endpoint : config.get(key)),
|
|
105
|
-
resolveProductOrigin: () => {
|
|
106
|
-
const override = env['FLUIDGRIDS_ORIGIN']?.trim();
|
|
107
|
-
if (override)
|
|
108
|
-
return override;
|
|
109
|
-
const host = hostOf(endpoint);
|
|
110
|
-
return host !== undefined && Object.hasOwn(productOrigins, host)
|
|
111
|
-
? productOrigins[host]
|
|
112
|
-
: undefined;
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
/** The context talking to the profile's workspace endpoint (the stored login's clients). */
|
|
117
|
-
export function contextWithEndpoint(ctx, endpoint) {
|
|
118
|
-
const config = withWorkspaceEndpoint(ctx.config, endpoint, ctx.defaults.productOrigins ?? {});
|
|
119
|
-
return { ...ctx, config, gql: createGqlClients(config, ctx.auth) };
|
|
120
|
-
}
|
|
121
|
-
//# sourceMappingURL=apply.js.map
|
package/dist/config/apply.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply.js","sourceRoot":"","sources":["../../src/config/apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,gBAAgB,EAAqC,MAAM,yBAAyB,CAAC;AAE9F,OAAO,EACL,UAAU,EACV,eAAe,EACf,WAAW,EACX,eAAe,EACf,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,SAAS,GAGV,MAAM,eAAe,CAAC;AAUvB,uEAAuE;AACvE,MAAM,UAAU,eAAe,CAAC,IAAuB;IACrD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACjD,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QACxB,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI;YAAE,OAAO,SAAS,CAAC;QACxD,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC;YAAE,OAAO,GAAG,CAAC;QACrC,4CAA4C;QAC5C,IACE,CAAC,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,UAAU,CAAC;YAChF,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAClB,CAAC;YACD,KAAK,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GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;AACrE,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `fluidgrids config set|get|list|delete|migrate` (spec code-first 11 §2.36,
|
|
3
|
-
* Temporal's `temporal config` and environment profiles): the client profiles
|
|
4
|
-
* of `~/.fluidgrids/config.toml`, which the CLI and both workflow SDKs read.
|
|
5
|
-
*
|
|
6
|
-
* - `config set <key> <value> [--profile p]` sets a profile key;
|
|
7
|
-
* `config set token [--profile p] [--from-env VAR]` stores a token in the OS
|
|
8
|
-
* keychain (read from the variable, or from standard input) and points the
|
|
9
|
-
* profile's `tokenRef` at it; `config set defaultProfile <name>` picks the
|
|
10
|
-
* profile used when none is named.
|
|
11
|
-
* - `config get [key]` shows the resolved profile (the environment's
|
|
12
|
-
* `FLUIDGRIDS_<KEY>` overrides included); a token is never printed.
|
|
13
|
-
* - `config list` shows every profile.
|
|
14
|
-
* - `config delete [key] [--profile p]` removes a key, or the whole profile
|
|
15
|
-
* (and the keychain token the CLI stored for it).
|
|
16
|
-
* - `config migrate [--profile p]` writes the CLI's current workspace
|
|
17
|
-
* endpoint and workspace into a profile; tokens are never copied into the file.
|
|
18
|
-
*
|
|
19
|
-
* These commands work offline and never apply a profile themselves. A file that
|
|
20
|
-
* is not valid TOML is refused with a hint naming it: rewriting it would lose
|
|
21
|
-
* what it holds, so it is fixed by hand (or moved away to start again).
|
|
22
|
-
*/
|
|
23
|
-
import { type CLIContext } from '@burdenoff/cli-sdk/core';
|
|
24
|
-
import { type Keychain, type ProfileKey } from './profiles.js';
|
|
25
|
-
export interface ConfigEnv {
|
|
26
|
-
ctx: CLIContext;
|
|
27
|
-
env: Readonly<Record<string, string | undefined>>;
|
|
28
|
-
keychain: Keychain;
|
|
29
|
-
/** Standard input as text (a token piped to `config set token`). */
|
|
30
|
-
readStdin: () => Promise<string>;
|
|
31
|
-
}
|
|
32
|
-
export interface ConfigOptions {
|
|
33
|
-
format?: string;
|
|
34
|
-
/** The program's `--profile`. */
|
|
35
|
-
profile?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface SetOptions extends ConfigOptions {
|
|
38
|
-
/** `config set token`: read the token from this environment variable. */
|
|
39
|
-
fromEnv?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface DeleteOptions extends ConfigOptions {
|
|
42
|
-
/** Keep the keychain entry when the profile is deleted. */
|
|
43
|
-
keepToken?: boolean;
|
|
44
|
-
}
|
|
45
|
-
export interface MigrateOptions extends ConfigOptions {
|
|
46
|
-
/** Point the profile's tokenRef at this environment variable. */
|
|
47
|
-
tokenEnv?: string;
|
|
48
|
-
/** Make the profile the default one. */
|
|
49
|
-
setDefault?: boolean;
|
|
50
|
-
}
|
|
51
|
-
/** Check a value for its key. */
|
|
52
|
-
export declare function checkProfileValue(key: ProfileKey, value: string, profile: string): string;
|
|
53
|
-
export declare function runConfigSet(env: ConfigEnv, key: string, value: string | undefined, options: SetOptions): Promise<Record<string, unknown>>;
|
|
54
|
-
export declare function runConfigGet(env: ConfigEnv, key: string | undefined, options: ConfigOptions): Promise<Record<string, unknown>>;
|
|
55
|
-
export declare function runConfigList(env: ConfigEnv, options: ConfigOptions): Promise<Record<string, unknown>>;
|
|
56
|
-
export declare function runConfigDelete(env: ConfigEnv, key: string | undefined, options: DeleteOptions): Promise<Record<string, unknown>>;
|
|
57
|
-
export declare function runConfigMigrate(env: ConfigEnv, options: MigrateOptions): Promise<Record<string, unknown>>;
|
|
58
|
-
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/config/commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAExE,OAAO,EAeL,KAAK,QAAQ,EACb,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AAEvB,MAAM,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