@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,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `fluidgrids workers …` (Phase C release C-SB1, wspace-sandbox-svc):
|
|
3
|
-
*
|
|
4
|
-
* | Command | Operation |
|
|
5
|
-
* |---|---|
|
|
6
|
-
* | `workers list [--queue] [--build-id] [--stale] [--include-ended]` | `workflowWorkers` |
|
|
7
|
-
* | `workers tokens list` | `workerTokens` |
|
|
8
|
-
* | `workers tokens create <name> --queue q …` | `createWorkerToken` (the token is shown once) |
|
|
9
|
-
* | `workers tokens rotate <id>` | `rotateWorkerToken` (the old token stops at once) |
|
|
10
|
-
* | `workers tokens delete <id>` | `deleteWorkerToken` |
|
|
11
|
-
* | `workers tokens allow-connections <id> [name…]` | `setWorkerTokenConnectionAllowlist` (workspace admins) |
|
|
12
|
-
*
|
|
13
|
-
* Issuing and rotating tokens and changing the allow-list need
|
|
14
|
-
* fluidgrids.self-hosted-workers; reads and deletes never do. A token is a
|
|
15
|
-
* secret: it is printed once and never stored by the CLI.
|
|
16
|
-
*/
|
|
17
|
-
import { CliUserError } from '@burdenoff/cli-sdk/core';
|
|
18
|
-
import { emit } from '../../code-first/shared.js';
|
|
19
|
-
import { checkQueueName } from './queues.js';
|
|
20
|
-
import { cell, parseList, requireConfirmation } from '../shared.js';
|
|
21
|
-
const CONNECTION_NAME = /^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$/;
|
|
22
|
-
function workerRows(workers) {
|
|
23
|
-
return workers.map((worker) => [
|
|
24
|
-
worker.identity,
|
|
25
|
-
worker.stale ? `${worker.status} (stale)` : worker.status,
|
|
26
|
-
`${worker.sdkLanguage} ${worker.sdkVersion}`,
|
|
27
|
-
worker.taskQueues.join(', '),
|
|
28
|
-
`${worker.slots.workflow.used}/${worker.slots.workflow.total}`,
|
|
29
|
-
`${worker.slots.activity.used}/${worker.slots.activity.total}`,
|
|
30
|
-
worker.lastHeartbeatAt,
|
|
31
|
-
]);
|
|
32
|
-
}
|
|
33
|
-
export async function runWorkersList(env, options) {
|
|
34
|
-
if (options.stale && options.notStale) {
|
|
35
|
-
throw new CliUserError('Give --stale or --not-stale, not both.');
|
|
36
|
-
}
|
|
37
|
-
const filter = {
|
|
38
|
-
...(options.queue ? { taskQueue: options.queue } : {}),
|
|
39
|
-
...(options.buildId ? { buildId: options.buildId } : {}),
|
|
40
|
-
...(options.stale ? { stale: true } : {}),
|
|
41
|
-
...(options.notStale ? { stale: false } : {}),
|
|
42
|
-
...(options.includeEnded ? { includeEnded: true } : {}),
|
|
43
|
-
};
|
|
44
|
-
const workers = await env.pc.workflowWorkers(filter);
|
|
45
|
-
emit(env, options, workers, {
|
|
46
|
-
headers: [
|
|
47
|
-
'Identity',
|
|
48
|
-
'Status',
|
|
49
|
-
'SDK',
|
|
50
|
-
'Queues',
|
|
51
|
-
'Workflow slots',
|
|
52
|
-
'Activity slots',
|
|
53
|
-
'Last heartbeat',
|
|
54
|
-
],
|
|
55
|
-
rows: workerRows(workers),
|
|
56
|
-
});
|
|
57
|
-
return workers;
|
|
58
|
-
}
|
|
59
|
-
function tokenRow(token) {
|
|
60
|
-
return [
|
|
61
|
-
token.id,
|
|
62
|
-
token.name,
|
|
63
|
-
token.taskQueues.join(', '),
|
|
64
|
-
token.connectionAllowlist.join(', ') || '-',
|
|
65
|
-
`${token.tokenPrefix}…`,
|
|
66
|
-
String(token.activeSessions),
|
|
67
|
-
];
|
|
68
|
-
}
|
|
69
|
-
const TOKEN_HEADERS = ['Id', 'Name', 'Queues', 'Connections', 'Token', 'Sessions'];
|
|
70
|
-
export async function runTokensList(env, options) {
|
|
71
|
-
const tokens = await env.pc.workerTokens();
|
|
72
|
-
emit(env, options, tokens, { headers: TOKEN_HEADERS, rows: tokens.map(tokenRow) });
|
|
73
|
-
return tokens;
|
|
74
|
-
}
|
|
75
|
-
function connectionNames(raw) {
|
|
76
|
-
const names = parseList(raw);
|
|
77
|
-
for (const name of names) {
|
|
78
|
-
if (!CONNECTION_NAME.test(name)) {
|
|
79
|
-
throw new CliUserError(`Invalid connection name '${name}'.`);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return names;
|
|
83
|
-
}
|
|
84
|
-
function issued(env, options, result) {
|
|
85
|
-
emit(env, options, result, { headers: TOKEN_HEADERS, rows: [tokenRow(result.workerToken)] }, [
|
|
86
|
-
`Token (shown once, store it now): ${result.token}`,
|
|
87
|
-
`Bridge: ${result.bridgeUrl}`,
|
|
88
|
-
'Run a worker with FLUIDGRIDS_WORKER_TOKEN set to it (`fluidgrids worker run`).',
|
|
89
|
-
]);
|
|
90
|
-
}
|
|
91
|
-
export async function runTokensCreate(env, name, options) {
|
|
92
|
-
const tokenName = name.trim();
|
|
93
|
-
if (tokenName === '')
|
|
94
|
-
throw new CliUserError('A worker token needs a name.');
|
|
95
|
-
const taskQueues = parseList(options.queue).map(checkQueueName);
|
|
96
|
-
if (taskQueues.length === 0) {
|
|
97
|
-
throw new CliUserError('A worker token needs at least one --queue.', {
|
|
98
|
-
hint: 'Create the queue first with `fluidgrids queues create <name>`.',
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
const allowlist = connectionNames(options.allowConnection);
|
|
102
|
-
const result = await env.pc.createWorkerToken({
|
|
103
|
-
name: tokenName,
|
|
104
|
-
taskQueues,
|
|
105
|
-
...(allowlist.length > 0 ? { connectionAllowlist: allowlist } : {}),
|
|
106
|
-
});
|
|
107
|
-
issued(env, options, result);
|
|
108
|
-
return result;
|
|
109
|
-
}
|
|
110
|
-
export async function runTokensRotate(env, id, options) {
|
|
111
|
-
await requireConfirmation(env, `Rotate worker token ${id}? The old token stops working and its workers disconnect.`, options.force);
|
|
112
|
-
const result = await env.pc.rotateWorkerToken(id);
|
|
113
|
-
issued(env, options, result);
|
|
114
|
-
return result;
|
|
115
|
-
}
|
|
116
|
-
export async function runTokensDelete(env, id, options) {
|
|
117
|
-
await requireConfirmation(env, `Delete worker token ${id}? Its workers disconnect and it stops working.`, options.force);
|
|
118
|
-
const deleted = await env.pc.deleteWorkerToken(id);
|
|
119
|
-
const result = { id, deleted };
|
|
120
|
-
emit(env, options, result, { headers: ['Id', 'Deleted'], rows: [[id, String(deleted)]] });
|
|
121
|
-
return result;
|
|
122
|
-
}
|
|
123
|
-
export async function runTokensAllowConnections(env, id, names, options) {
|
|
124
|
-
const list = connectionNames(names);
|
|
125
|
-
if (list.length === 0 && !options.clear) {
|
|
126
|
-
throw new CliUserError('Name the connections to allow, or pass --clear to allow none.');
|
|
127
|
-
}
|
|
128
|
-
if (list.length > 0 && options.clear) {
|
|
129
|
-
throw new CliUserError('Give connection names or --clear, not both.');
|
|
130
|
-
}
|
|
131
|
-
const token = await env.pc.setWorkerTokenConnectionAllowlist(id, list);
|
|
132
|
-
emit(env, options, token, { headers: TOKEN_HEADERS, rows: [tokenRow(token)] }, [
|
|
133
|
-
list.length === 0
|
|
134
|
-
? 'No credential is released to workers holding this token.'
|
|
135
|
-
: `User activities on this token's workers may resolve: ${list.join(', ')} (each release is audited).`,
|
|
136
|
-
`Connections: ${cell(token.connectionAllowlist.join(', '))}`,
|
|
137
|
-
]);
|
|
138
|
-
return token;
|
|
139
|
-
}
|
|
140
|
-
//# sourceMappingURL=workers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workers.js","sourceRoot":"","sources":["../../../src/phase-c/commands/workers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,IAAI,EAAsB,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,mBAAmB,EAAkB,MAAM,cAAc,CAAC;AAuBpF,MAAM,eAAe,GAAG,qCAAqC,CAAC;AAE9D,SAAS,UAAU,CAAC,OAA6B;IAC/C,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QAC7B,MAAM,CAAC,QAAQ;QACf,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM;QACzD,GAAG,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,UAAU,EAAE;QAC5C,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;QAC5B,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE;QAC9D,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KA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CAAC;IACvE,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE;QAC7E,IAAI,CAAC,MAAM,KAAK,CAAC;YACf,CAAC,CAAC,0DAA0D;YAC5D,CAAC,CAAC,wDAAwD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,6BAA6B;QACxG,gBAAgB,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;KAC7D,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/phase-c/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Phase C command groups (BOFF-9906, spec code-first 11 §2.36): client
|
|
3
|
-
* profiles (`config`), task queues, self-hosted workers and worker tokens,
|
|
4
|
-
* `worker run` and `dev`, run control on `runs` (query, update, reset, trace,
|
|
5
|
-
* batch), `activities`, `signal-token`, `search-attributes`, `batch` and
|
|
6
|
-
* `schedules`.
|
|
7
|
-
*
|
|
8
|
-
* Product-local, like the code-first module: `worker run` and the Python push
|
|
9
|
-
* depend on `@fluidgrids/workflows`. Every implementation loads on first use
|
|
10
|
-
* (see `register.ts`). It mounts after the code-first module, whose `runs`
|
|
11
|
-
* additions it extends.
|
|
12
|
-
*/
|
|
13
|
-
import type { CliModule } from '@burdenoff/cli-sdk/core';
|
|
14
|
-
declare const phaseCModule: CliModule;
|
|
15
|
-
export default phaseCModule;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/phase-c/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKzD,QAAA,MAAM,YAAY,EAAE,SAQnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/phase-c/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Phase C command groups (BOFF-9906, spec code-first 11 §2.36): client
|
|
3
|
-
* profiles (`config`), task queues, self-hosted workers and worker tokens,
|
|
4
|
-
* `worker run` and `dev`, run control on `runs` (query, update, reset, trace,
|
|
5
|
-
* batch), `activities`, `signal-token`, `search-attributes`, `batch` and
|
|
6
|
-
* `schedules`.
|
|
7
|
-
*
|
|
8
|
-
* Product-local, like the code-first module: `worker run` and the Python push
|
|
9
|
-
* depend on `@fluidgrids/workflows`. Every implementation loads on first use
|
|
10
|
-
* (see `register.ts`). It mounts after the code-first module, whose `runs`
|
|
11
|
-
* additions it extends.
|
|
12
|
-
*/
|
|
13
|
-
import { createCommandEnv } from '../code-first/shared.js';
|
|
14
|
-
import { registerPhaseC } from './register.js';
|
|
15
|
-
const phaseCModule = {
|
|
16
|
-
id: 'fluidgrids-phase-c',
|
|
17
|
-
version: '1.0.0',
|
|
18
|
-
displayName: 'FluidGrids workers, run control and client profiles',
|
|
19
|
-
dependsOn: ['auth', 'fluidgrids', 'fluidgrids-code-first'],
|
|
20
|
-
register(program, ctx) {
|
|
21
|
-
registerPhaseC(program, createCommandEnv(ctx));
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
export default phaseCModule;
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/phase-c/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,YAAY,GAAc;IAC9B,EAAE,EAAE,oBAAoB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qDAAqD;IAClE,SAAS,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,uBAAuB,CAAC;IAC1D,QAAQ,CAAC,OAAO,EAAE,GAAG;QACnB,cAAc,CAAC,OAAO,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;IACjD,CAAC;CACF,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GraphQL documents of the Phase C command groups (BOFF-9906, spec code-first
|
|
3
|
-
* 11 §2.36): task queues, self-hosted workers and worker tokens, run control
|
|
4
|
-
* (queries, updates, reset, trace), activities and pause rules, signal tokens,
|
|
5
|
-
* search attributes, batch operations and schedule policies.
|
|
6
|
-
*
|
|
7
|
-
* Every document validates against `schema/wspace.graphql`, the production
|
|
8
|
-
* supergraph snapshot, which carries the Phase C releases of wspace-workflow-svc
|
|
9
|
-
* and wspace-sandbox-svc; `tests/phase-c/operations.test.ts` checks it. The
|
|
10
|
-
* services gate every operation that starts new work on its
|
|
11
|
-
* Phase C flag (failing closed with FEATURE_DISABLED); the CLI does not repeat
|
|
12
|
-
* those checks.
|
|
13
|
-
*/
|
|
14
|
-
/** The run hierarchy is read to this many levels below the root. */
|
|
15
|
-
export declare const TRACE_DEPTH = 6;
|
|
16
|
-
export declare const PC_TASK_QUEUES = "\n query FluidgridsPhaseCTaskQueues {\n taskQueues { \n id name kind environment description maxTasksPerSecond workerUnavailableTimeoutSeconds\n createdAt updatedAt\n }\n }\n";
|
|
17
|
-
export declare const PC_TASK_QUEUE_STATS = "\n query FluidgridsPhaseCTaskQueueStats($name: String!, $environment: WorkflowEnvironment) {\n taskQueueStats(name: $name, environment: $environment) {\n name environment known pollers\n workflow { \n backlogCount approxBacklogAgeSeconds tasksAddRate tasksDispatchRate\n priorities { priority backlogCount approxBacklogAgeSeconds }\n }\n activity { \n backlogCount approxBacklogAgeSeconds tasksAddRate tasksDispatchRate\n priorities { priority backlogCount approxBacklogAgeSeconds }\n }\n }\n }\n";
|
|
18
|
-
export declare const PC_TASK_QUEUE_WORKERS = "\n query FluidgridsPhaseCTaskQueueWorkers($name: String!, $context: ContextInput!) {\n taskQueueWorkers(name: $name, context: $context) { \n id workerId tokenId tokenName identity sdkLanguage sdkVersion taskQueues buildIds\n workflows activities encodings status stale startedAt lastHeartbeatAt endedAt endReason\n slots {\n workflow { used total }\n activity { used total }\n localActivity { used total }\n }\n pollers { workflow activity }\n tasksInFlight cachedRuns\n host { os arch hostname runtime }\n }\n }\n";
|
|
19
|
-
export declare const PC_CREATE_TASK_QUEUE = "\n mutation FluidgridsPhaseCCreateTaskQueue($input: CreateTaskQueueInput!) {\n createTaskQueue(input: $input) { \n id name kind environment description maxTasksPerSecond workerUnavailableTimeoutSeconds\n createdAt updatedAt\n }\n }\n";
|
|
20
|
-
export declare const PC_UPDATE_TASK_QUEUE = "\n mutation FluidgridsPhaseCUpdateTaskQueue($id: ID!, $input: UpdateTaskQueueInput!) {\n updateTaskQueue(id: $id, input: $input) { \n id name kind environment description maxTasksPerSecond workerUnavailableTimeoutSeconds\n createdAt updatedAt\n }\n }\n";
|
|
21
|
-
export declare const PC_DELETE_TASK_QUEUE = "\n mutation FluidgridsPhaseCDeleteTaskQueue($id: ID!) {\n deleteTaskQueue(id: $id)\n }\n";
|
|
22
|
-
export declare const PC_WORKFLOW_WORKERS = "\n query FluidgridsPhaseCWorkflowWorkers(\n $filter: SandboxWorkflowWorkersFilter\n $context: ContextInput!\n ) {\n workflowWorkers(filter: $filter, context: $context) { \n id workerId tokenId tokenName identity sdkLanguage sdkVersion taskQueues buildIds\n workflows activities encodings status stale startedAt lastHeartbeatAt endedAt endReason\n slots {\n workflow { used total }\n activity { used total }\n localActivity { used total }\n }\n pollers { workflow activity }\n tasksInFlight cachedRuns\n host { os arch hostname runtime }\n }\n }\n";
|
|
23
|
-
export declare const PC_WORKER_TOKENS = "\n query FluidgridsPhaseCWorkerTokens($context: ContextInput!) {\n workerTokens(context: $context) { \n id name taskQueues connectionAllowlist tokenPrefix activeSessions createdBy createdAt\n }\n }\n";
|
|
24
|
-
export declare const PC_CREATE_WORKER_TOKEN = "\n mutation FluidgridsPhaseCCreateWorkerToken($input: CreateSandboxWorkerTokenInput!) {\n createWorkerToken(input: $input) {\n token bridgeUrl\n workerToken { \n id name taskQueues connectionAllowlist tokenPrefix activeSessions createdBy createdAt\n }\n }\n }\n";
|
|
25
|
-
export declare const PC_ROTATE_WORKER_TOKEN = "\n mutation FluidgridsPhaseCRotateWorkerToken($id: ID!, $context: ContextInput!) {\n rotateWorkerToken(id: $id, context: $context) {\n token bridgeUrl\n workerToken { \n id name taskQueues connectionAllowlist tokenPrefix activeSessions createdBy createdAt\n }\n }\n }\n";
|
|
26
|
-
export declare const PC_DELETE_WORKER_TOKEN = "\n mutation FluidgridsPhaseCDeleteWorkerToken($id: ID!, $context: ContextInput!) {\n deleteWorkerToken(id: $id, context: $context)\n }\n";
|
|
27
|
-
export declare const PC_SET_WORKER_TOKEN_ALLOWLIST = "\n mutation FluidgridsPhaseCSetWorkerTokenConnectionAllowlist(\n $id: ID!\n $names: [String!]!\n $context: ContextInput!\n ) {\n setWorkerTokenConnectionAllowlist(id: $id, names: $names, context: $context) {\n \n id name taskQueues connectionAllowlist tokenPrefix activeSessions createdBy createdAt\n\n }\n }\n";
|
|
28
|
-
export declare const PC_QUERY_RUN = "\n query FluidgridsPhaseCQueryRun(\n $runId: ID\n $target: RunTargetInput\n $name: String!\n $args: JSON\n $rejectCondition: WorkflowQueryRejectCondition\n ) {\n queryWorkflowRun(\n runId: $runId\n target: $target\n name: $name\n args: $args\n rejectCondition: $rejectCondition\n ) { name value rejected error }\n }\n";
|
|
29
|
-
export declare const PC_UPDATE_RUN = "\n mutation FluidgridsPhaseCUpdateRun(\n $runId: ID\n $target: RunTargetInput\n $name: String!\n $args: JSON\n $updateId: ID!\n $waitFor: WorkflowUpdateWaitFor\n $timeoutMs: Int\n ) {\n updateWorkflowRun(\n runId: $runId\n target: $target\n name: $name\n args: $args\n updateId: $updateId\n waitFor: $waitFor\n timeoutMs: $timeoutMs\n ) { \n runId updateId name status result failure createdAt acceptedAt completedAt\n }\n }\n";
|
|
30
|
-
export declare const PC_RUN_UPDATE = "\n query FluidgridsPhaseCRunUpdate($runId: ID, $target: RunTargetInput, $updateId: ID!) {\n workflowRunUpdate(runId: $runId, target: $target, updateId: $updateId) { \n runId updateId name status result failure createdAt acceptedAt completedAt\n }\n }\n";
|
|
31
|
-
export declare const PC_RESET_RUN = "\n mutation FluidgridsPhaseCResetRun(\n $runId: ID\n $target: RunTargetInput\n $to: WorkflowResetTargetInput!\n $reason: String\n $reapplySignals: Boolean\n $reapplyUpdates: Boolean\n ) {\n resetWorkflowRun(\n runId: $runId\n target: $target\n to: $to\n reason: $reason\n reapplySignals: $reapplySignals\n reapplyUpdates: $reapplyUpdates\n ) { \n id status workflowKey version executionKind taskQueue\n resetFromRunId resetToRunId continuedToRunId\n }\n }\n";
|
|
32
|
-
export declare const PC_RESET_RUN_TO_LAST_CLEAN_TASK = "\n mutation FluidgridsPhaseCResetRunToLastCleanTask(\n $runId: ID\n $target: RunTargetInput\n $reason: String\n ) {\n resetWorkflowRunToLastCleanTask(runId: $runId, target: $target, reason: $reason) {\n \n id status workflowKey version executionKind taskQueue\n resetFromRunId resetToRunId continuedToRunId\n\n }\n }\n";
|
|
33
|
-
export declare const PC_RUN_HIERARCHY: string;
|
|
34
|
-
export declare const PC_RUN_PENDING = "\n query FluidgridsPhaseCRunPending($id: ID!) {\n workflowRun(id: $id) { id status executionKind pending { \n activities {\n activityId activityType state attempt maxAttempts scheduledAt lastStartedAt\n lastHeartbeatAt heartbeatDetails lastFailure nextAttemptAt summary\n }\n children { runId workflowKey version status startedAt }\n timers { timerId fireAt summary }\n bufferedSignals\n workflowTask { state attempt startedAt failureCause }\n } }\n }\n";
|
|
35
|
-
export declare const PC_RUN_BY_WORKFLOW_ID = "\n query FluidgridsPhaseCRunByWorkflowId(\n $workflowKey: String!\n $workflowId: String!\n $firstRunId: ID\n ) {\n workflowRunByWorkflowId(\n workflowKey: $workflowKey\n workflowId: $workflowId\n firstRunId: $firstRunId\n ) { id status }\n }\n";
|
|
36
|
-
export declare const PC_COMPLETE_ACTIVITY_BY_ID = "\n mutation FluidgridsPhaseCCompleteActivityById(\n $runId: ID\n $target: RunTargetInput\n $activityId: ID!\n $result: JSON\n ) {\n completeActivityById(runId: $runId, target: $target, activityId: $activityId, result: $result)\n }\n";
|
|
37
|
-
export declare const PC_FAIL_ACTIVITY_BY_ID = "\n mutation FluidgridsPhaseCFailActivityById(\n $runId: ID\n $target: RunTargetInput\n $activityId: ID!\n $failure: WorkflowAsyncFailureInput!\n ) {\n failActivityById(runId: $runId, target: $target, activityId: $activityId, failure: $failure)\n }\n";
|
|
38
|
-
export declare const PC_HEARTBEAT_ACTIVITY_BY_ID = "\n mutation FluidgridsPhaseCHeartbeatActivityById(\n $runId: ID\n $target: RunTargetInput\n $activityId: ID!\n $details: JSON\n ) {\n heartbeatActivityById(\n runId: $runId\n target: $target\n activityId: $activityId\n details: $details\n ) { cancelRequested paused pauseReason }\n }\n";
|
|
39
|
-
export declare const PC_COMPLETE_ACTIVITY_ASYNC = "\n mutation FluidgridsPhaseCCompleteActivityAsync($taskToken: String!, $result: JSON) {\n completeActivityAsync(taskToken: $taskToken, result: $result)\n }\n";
|
|
40
|
-
export declare const PC_FAIL_ACTIVITY_ASYNC = "\n mutation FluidgridsPhaseCFailActivityAsync(\n $taskToken: String!\n $failure: WorkflowAsyncFailureInput!\n ) {\n failActivityAsync(taskToken: $taskToken, failure: $failure)\n }\n";
|
|
41
|
-
export declare const PC_HEARTBEAT_ACTIVITY_ASYNC = "\n mutation FluidgridsPhaseCHeartbeatActivityAsync($taskToken: String!, $details: JSON) {\n heartbeatActivityAsync(taskToken: $taskToken, details: $details) {\n cancelRequested paused pauseReason\n }\n }\n";
|
|
42
|
-
export declare const PC_PAUSE_ACTIVITY = "\n mutation FluidgridsPhaseCPauseActivity(\n $runId: ID\n $target: RunTargetInput\n $selector: WorkflowActivitySelectorInput!\n $reason: String!\n ) {\n pauseActivity(runId: $runId, target: $target, selector: $selector, reason: $reason) {\n \n id status workflowKey version executionKind taskQueue\n resetFromRunId resetToRunId continuedToRunId\n\n }\n }\n";
|
|
43
|
-
export declare const PC_UNPAUSE_ACTIVITY = "\n mutation FluidgridsPhaseCUnpauseActivity(\n $runId: ID\n $target: RunTargetInput\n $selector: WorkflowActivitySelectorInput!\n $resetAttempts: Boolean\n $resetHeartbeat: Boolean\n ) {\n unpauseActivity(\n runId: $runId\n target: $target\n selector: $selector\n resetAttempts: $resetAttempts\n resetHeartbeat: $resetHeartbeat\n ) { \n id status workflowKey version executionKind taskQueue\n resetFromRunId resetToRunId continuedToRunId\n }\n }\n";
|
|
44
|
-
export declare const PC_RESET_ACTIVITY = "\n mutation FluidgridsPhaseCResetActivity(\n $runId: ID\n $target: RunTargetInput\n $selector: WorkflowActivitySelectorInput!\n $resetHeartbeat: Boolean\n ) {\n resetActivity(\n runId: $runId\n target: $target\n selector: $selector\n resetHeartbeat: $resetHeartbeat\n ) { \n id status workflowKey version executionKind taskQueue\n resetFromRunId resetToRunId continuedToRunId\n }\n }\n";
|
|
45
|
-
export declare const PC_UPDATE_ACTIVITY_OPTIONS = "\n mutation FluidgridsPhaseCUpdateActivityOptions(\n $runId: ID\n $target: RunTargetInput\n $selector: WorkflowActivitySelectorInput!\n $options: WorkflowActivityOptionsInput!\n ) {\n updateActivityOptions(\n runId: $runId\n target: $target\n selector: $selector\n options: $options\n ) { \n id status workflowKey version executionKind taskQueue\n resetFromRunId resetToRunId continuedToRunId\n }\n }\n";
|
|
46
|
-
export declare const PC_PAUSE_RULES = "\n query FluidgridsPhaseCActivityPauseRules {\n workflowActivityPauseRules { \n id activityType nodeType workflowKey reason expiresAt createdBy createdAt\n }\n }\n";
|
|
47
|
-
export declare const PC_CREATE_PAUSE_RULE = "\n mutation FluidgridsPhaseCCreateActivityPauseRule($input: WorkflowActivityPauseRuleInput!) {\n createActivityPauseRule(input: $input) { \n id activityType nodeType workflowKey reason expiresAt createdBy createdAt\n }\n }\n";
|
|
48
|
-
export declare const PC_DELETE_PAUSE_RULE = "\n mutation FluidgridsPhaseCDeleteActivityPauseRule($id: ID!) {\n deleteActivityPauseRule(id: $id)\n }\n";
|
|
49
|
-
export declare const PC_CREATE_SIGNAL_TOKEN = "\n mutation FluidgridsPhaseCCreateWorkflowSignalToken($input: CreateWorkflowSignalTokenInput!) {\n createWorkflowSignalToken(input: $input) {\n token url\n signalToken { \n id runId signalName reusable ipAllowlist expiresAt usedAt revokedAt createdAt createdBy\n }\n }\n }\n";
|
|
50
|
-
export declare const PC_REVOKE_SIGNAL_TOKEN = "\n mutation FluidgridsPhaseCRevokeWorkflowSignalToken($id: ID!) {\n revokeWorkflowSignalToken(id: $id) { \n id runId signalName reusable ipAllowlist expiresAt usedAt revokedAt createdAt createdBy\n }\n }\n";
|
|
51
|
-
export declare const PC_SIGNAL_TOKENS = "\n query FluidgridsPhaseCWorkflowSignalTokens($runId: ID!) {\n workflowSignalTokens(runId: $runId) { \n id runId signalName reusable ipAllowlist expiresAt usedAt revokedAt createdAt createdBy\n }\n }\n";
|
|
52
|
-
export declare const PC_SEARCH_ATTRIBUTES = "\n query FluidgridsPhaseCWorkflowSearchAttributes {\n workflowSearchAttributes { id name type description createdBy createdAt }\n }\n";
|
|
53
|
-
export declare const PC_CREATE_SEARCH_ATTRIBUTE = "\n mutation FluidgridsPhaseCCreateWorkflowSearchAttribute(\n $input: CreateWorkflowSearchAttributeInput!\n ) {\n createWorkflowSearchAttribute(input: $input) { id name type description createdBy createdAt }\n }\n";
|
|
54
|
-
export declare const PC_DELETE_SEARCH_ATTRIBUTE = "\n mutation FluidgridsPhaseCDeleteWorkflowSearchAttribute($id: ID!) {\n deleteWorkflowSearchAttribute(id: $id)\n }\n";
|
|
55
|
-
export declare const PC_START_BATCH_OPERATION = "\n mutation FluidgridsPhaseCStartBatchOperation($input: StartWorkflowBatchOperationInput!) {\n startBatchOperation(input: $input) { \n id type status reason dryRun total succeeded failed skipped maxOperationsPerSecond filter\n errors { runId message }\n failureMessage requestedBy createdAt startedAt completedAt cancelRequestedAt\n }\n }\n";
|
|
56
|
-
export declare const PC_START_BATCH_TERMINATE = "\n mutation FluidgridsPhaseCStartBatchTerminate($input: StartWorkflowBatchTerminateInput!) {\n startBatchTerminate(input: $input) { \n id type status reason dryRun total succeeded failed skipped maxOperationsPerSecond filter\n errors { runId message }\n failureMessage requestedBy createdAt startedAt completedAt cancelRequestedAt\n }\n }\n";
|
|
57
|
-
export declare const PC_START_BATCH_EXPORT = "\n mutation FluidgridsPhaseCStartBatchExport($input: StartWorkflowBatchExportInput!) {\n startBatchExport(input: $input) { \n id type status reason dryRun total succeeded failed skipped maxOperationsPerSecond filter\n errors { runId message }\n failureMessage requestedBy createdAt startedAt completedAt cancelRequestedAt\n }\n }\n";
|
|
58
|
-
export declare const PC_CANCEL_BATCH_OPERATION = "\n mutation FluidgridsPhaseCCancelBatchOperation($id: ID!) {\n cancelBatchOperation(id: $id) { \n id type status reason dryRun total succeeded failed skipped maxOperationsPerSecond filter\n errors { runId message }\n failureMessage requestedBy createdAt startedAt completedAt cancelRequestedAt\n }\n }\n";
|
|
59
|
-
export declare const PC_BATCH_OPERATION = "\n query FluidgridsPhaseCWorkflowBatchOperation($id: ID!) {\n workflowBatchOperation(id: $id) { \n id type status reason dryRun total succeeded failed skipped maxOperationsPerSecond filter\n errors { runId message }\n failureMessage requestedBy createdAt startedAt completedAt cancelRequestedAt\n }\n }\n";
|
|
60
|
-
export declare const PC_BATCH_OPERATIONS = "\n query FluidgridsPhaseCWorkflowBatchOperations(\n $status: WorkflowBatchJobStatus\n $first: Int\n $after: String\n ) {\n workflowBatchOperations(status: $status, first: $first, after: $after) {\n items { \n id type status reason dryRun total succeeded failed skipped maxOperationsPerSecond filter\n errors { runId message }\n failureMessage requestedBy createdAt startedAt completedAt cancelRequestedAt\n }\n nextCursor\n }\n }\n";
|
|
61
|
-
export declare const PC_SCHEDULED_JOBS = "\n query FluidgridsPhaseCWorkflowScheduledJobs(\n $workflowKey: String\n $pagination: WorkflowPaginationInput\n ) {\n workflowScheduledJobs(workflowKey: $workflowKey, pagination: $pagination) {\n jobs {\n id name workflowKey version enabled status schedule scheduleType rrule timezone\n nextRun lastRun config\n }\n pagination { hasMore limit offset total }\n }\n }\n";
|
|
62
|
-
export declare const PC_SCHEDULE_DESCRIBE = "\n query FluidgridsPhaseCWorkflowScheduleDescribe($workflowKey: String!, $triggerNodeId: String!) {\n workflowScheduleDescribe(workflowKey: $workflowKey, triggerNodeId: $triggerNodeId) {\n \n workflowKey triggerNodeId version jobs specKind spec overlapPolicy catchupWindowSeconds\n jitterSeconds pauseOnFailure\n state { paused note pausedAt pausedBy remainingActions }\n nextFireTimes\n recentActions { \n id kind outcome dueAt firedAt releaseAt runId blockingRunId overlapPolicy note createdAt\n }\n\n }\n }\n";
|
|
63
|
-
export declare const PC_TRIGGER_SCHEDULE = "\n mutation FluidgridsPhaseCTriggerWorkflowSchedule(\n $workflowKey: String!\n $triggerNodeId: String!\n $overlapPolicy: WorkflowScheduleOverlapPolicy\n ) {\n triggerWorkflowSchedule(\n workflowKey: $workflowKey\n triggerNodeId: $triggerNodeId\n overlapPolicy: $overlapPolicy\n ) {\n runId\n tick { \n id kind outcome dueAt firedAt releaseAt runId blockingRunId overlapPolicy note createdAt\n }\n }\n }\n";
|
|
64
|
-
export declare const PC_BACKFILL_SCHEDULE = "\n mutation FluidgridsPhaseCBackfillWorkflowSchedule(\n $workflowKey: String!\n $triggerNodeId: String!\n $from: DateTime!\n $to: DateTime!\n $overlapPolicy: WorkflowScheduleOverlapPolicy\n ) {\n backfillWorkflowSchedule(\n workflowKey: $workflowKey\n triggerNodeId: $triggerNodeId\n from: $from\n to: $to\n overlapPolicy: $overlapPolicy\n ) { fireTimes queued alreadyQueued overlapPolicy }\n }\n";
|
|
65
|
-
export declare const PC_PAUSE_SCHEDULE = "\n mutation FluidgridsPhaseCPauseWorkflowSchedule(\n $workflowKey: String!\n $triggerNodeId: String!\n $note: String\n ) {\n pauseWorkflowSchedule(workflowKey: $workflowKey, triggerNodeId: $triggerNodeId, note: $note) {\n \n workflowKey triggerNodeId version jobs specKind spec overlapPolicy catchupWindowSeconds\n jitterSeconds pauseOnFailure\n state { paused note pausedAt pausedBy remainingActions }\n nextFireTimes\n recentActions { \n id kind outcome dueAt firedAt releaseAt runId blockingRunId overlapPolicy note createdAt\n }\n\n }\n }\n";
|
|
66
|
-
export declare const PC_UNPAUSE_SCHEDULE = "\n mutation FluidgridsPhaseCUnpauseWorkflowSchedule(\n $workflowKey: String!\n $triggerNodeId: String!\n ) {\n unpauseWorkflowSchedule(workflowKey: $workflowKey, triggerNodeId: $triggerNodeId) {\n \n workflowKey triggerNodeId version jobs specKind spec overlapPolicy catchupWindowSeconds\n jitterSeconds pauseOnFailure\n state { paused note pausedAt pausedBy remainingActions }\n nextFireTimes\n recentActions { \n id kind outcome dueAt firedAt releaseAt runId blockingRunId overlapPolicy note createdAt\n }\n\n }\n }\n";
|
|
67
|
-
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/phase-c/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAiFH,oEAAoE;AACpE,eAAO,MAAM,WAAW,IAAI,CAAC;AAW7B,eAAO,MAAM,cAAc,0LAI1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,ghBAQ/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,4hBAIjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,qPAIhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,wQAIhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,kGAIhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,mkBAO/B,CAAC;AAEF,eAAO,MA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