@camunda8/cli 4.2.1-alpha.3 → 4.3.0-alpha.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/CONTEXT.md +2 -1
- package/PLUGIN-HELP.md +6 -0
- package/README.md +4 -0
- package/dist/command-dispatch.d.ts.map +1 -1
- package/dist/command-dispatch.js +3 -1
- package/dist/command-dispatch.js.map +1 -1
- package/dist/commands/process-instances.d.ts +8 -0
- package/dist/commands/process-instances.d.ts.map +1 -1
- package/dist/commands/process-instances.js +36 -0
- package/dist/commands/process-instances.js.map +1 -1
- package/dist/core/logger.d.ts +4 -1
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js +9 -5
- package/dist/core/logger.js.map +1 -1
- package/dist/core/update-check-worker.d.ts +11 -0
- package/dist/core/update-check-worker.d.ts.map +1 -0
- package/dist/core/update-check-worker.js +14 -0
- package/dist/core/update-check-worker.js.map +1 -0
- package/dist/core/update-check.d.ts +38 -39
- package/dist/core/update-check.d.ts.map +1 -1
- package/dist/core/update-check.js +141 -177
- package/dist/core/update-check.js.map +1 -1
- package/dist/framework/command-registry.d.ts +36 -0
- package/dist/framework/command-registry.d.ts.map +1 -1
- package/dist/framework/command-registry.js +28 -0
- package/dist/framework/command-registry.js.map +1 -1
- package/dist/framework/ui/help.d.ts.map +1 -1
- package/dist/framework/ui/help.js +1 -2
- package/dist/framework/ui/help.js.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,42 +1,46 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Non-blocking CLI self-update notification.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* The CLI process never touches the network for this. It only reads cached
|
|
5
|
+
* state:
|
|
6
|
+
* - `update-check.json` — latest dist-tag versions, written by a detached
|
|
7
|
+
* worker process (`update-check-worker.ts`).
|
|
8
|
+
* - `last-update-notification.json` — the version we last notified about.
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* - This means an offline user on an airplane sees at most one 5-second delay
|
|
16
|
-
* per day, and usually zero.
|
|
10
|
+
* On startup, if the cached check is older than CHECK_INTERVAL_MS, a detached,
|
|
11
|
+
* unref'd worker is spawned to refresh it. A newer version it finds is
|
|
12
|
+
* announced on a later invocation. An unreachable registry, a firewall that
|
|
13
|
+
* drops packets, or a DNS lookup that never answers therefore costs the CLI
|
|
14
|
+
* nothing: an in-process check can't cancel a pending getaddrinfo or connect,
|
|
15
|
+
* and either one holds the event loop (and the shell prompt) open.
|
|
17
16
|
*
|
|
18
17
|
* Design constraints:
|
|
19
|
-
* - Zero extra dependencies (
|
|
20
|
-
* - Never
|
|
21
|
-
* -
|
|
22
|
-
* - Once-per-version notification (cache in the user data dir)
|
|
18
|
+
* - Zero extra dependencies (global fetch + node:fs + node:child_process)
|
|
19
|
+
* - Never delays command execution or exit
|
|
20
|
+
* - Once-per-version notification
|
|
23
21
|
* - Notification output suppressed in JSON output mode; skipped entirely
|
|
24
|
-
* in CI environments (no
|
|
22
|
+
* in CI environments (no spawn, no cache write)
|
|
25
23
|
*/
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { join } from "node:path";
|
|
24
|
+
import { spawn } from "node:child_process";
|
|
25
|
+
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
26
|
+
import { extname, join } from "node:path";
|
|
27
|
+
import { fileURLToPath } from "node:url";
|
|
29
28
|
import { getUserDataDir } from "./config.js";
|
|
30
29
|
import { isRecord } from "./logger.js";
|
|
31
30
|
import { c8ctl, isUnversionedDevBuild } from "./runtime.js";
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
/**
|
|
32
|
+
* npm registry dist-tags endpoint: `{ latest, alpha, … }`, a few dozen bytes
|
|
33
|
+
* (the full package document is over half a megabyte).
|
|
34
|
+
*/
|
|
35
|
+
const REGISTRY_URL = "https://registry.npmjs.org/-/package/@camunda8/cli/dist-tags";
|
|
36
|
+
/** Minimum time between background registry checks (ms). */
|
|
37
|
+
export const CHECK_INTERVAL_MS = 60 * 60 * 1000;
|
|
38
|
+
/** How long the worker waits for the registry before giving up (ms). */
|
|
39
|
+
export const WORKER_FETCH_TIMEOUT_MS = 10_000;
|
|
40
|
+
/** Written by the worker: when it last ran and what it found. */
|
|
41
|
+
const CHECK_FILE = "update-check.json";
|
|
42
|
+
/** Written by the CLI: the version it last notified about. */
|
|
43
|
+
const NOTIFICATION_FILE = "last-update-notification.json";
|
|
40
44
|
/**
|
|
41
45
|
* Detect the npm dist-tag channel from the running version.
|
|
42
46
|
* Versions like "1.2.0-alpha.5" → "alpha", everything else → "latest".
|
|
@@ -44,42 +48,46 @@ const CACHE_FILE = "last-update-notification.json";
|
|
|
44
48
|
export function detectChannel(version) {
|
|
45
49
|
return version.includes("-alpha.") ? "alpha" : "latest";
|
|
46
50
|
}
|
|
47
|
-
|
|
48
|
-
* Read the notification cache. Returns undefined if missing or corrupt.
|
|
49
|
-
*/
|
|
50
|
-
function readCache() {
|
|
51
|
+
function readJson(file) {
|
|
51
52
|
try {
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
if (!existsSync(filePath))
|
|
55
|
-
return undefined;
|
|
56
|
-
const raw = JSON.parse(readFileSync(filePath, "utf-8"));
|
|
57
|
-
if (!isRecord(raw))
|
|
58
|
-
return undefined;
|
|
59
|
-
const cache = {};
|
|
60
|
-
if (typeof raw.notifiedVersion === "string")
|
|
61
|
-
cache.notifiedVersion = raw.notifiedVersion;
|
|
62
|
-
if (typeof raw.lastPatientCheck === "number")
|
|
63
|
-
cache.lastPatientCheck = raw.lastPatientCheck;
|
|
64
|
-
return cache;
|
|
53
|
+
const raw = JSON.parse(readFileSync(join(getUserDataDir(), file), "utf-8"));
|
|
54
|
+
return isRecord(raw) ? raw : undefined;
|
|
65
55
|
}
|
|
66
56
|
catch {
|
|
67
57
|
return undefined;
|
|
68
58
|
}
|
|
69
59
|
}
|
|
70
60
|
/**
|
|
71
|
-
*
|
|
61
|
+
* Best-effort write. Goes through a temp file + rename so a reader never
|
|
62
|
+
* sees a half-written file while the worker and the CLI run concurrently.
|
|
72
63
|
*/
|
|
73
|
-
function
|
|
64
|
+
function writeJson(file, data) {
|
|
74
65
|
try {
|
|
75
66
|
const dir = getUserDataDir();
|
|
76
67
|
mkdirSync(dir, { recursive: true });
|
|
77
|
-
|
|
68
|
+
const target = join(dir, file);
|
|
69
|
+
const temp = `${target}.${process.pid}.tmp`;
|
|
70
|
+
writeFileSync(temp, JSON.stringify(data), "utf-8");
|
|
71
|
+
renameSync(temp, target);
|
|
78
72
|
}
|
|
79
73
|
catch {
|
|
80
74
|
// Best-effort — don't crash if the write fails
|
|
81
75
|
}
|
|
82
76
|
}
|
|
77
|
+
function readCheckState() {
|
|
78
|
+
const raw = readJson(CHECK_FILE);
|
|
79
|
+
const versions = {};
|
|
80
|
+
if (raw && isRecord(raw.versions)) {
|
|
81
|
+
for (const [channel, version] of Object.entries(raw.versions)) {
|
|
82
|
+
if (typeof version === "string")
|
|
83
|
+
versions[channel] = version;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
checkedAt: typeof raw?.checkedAt === "number" ? raw.checkedAt : undefined,
|
|
88
|
+
versions,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
83
91
|
/**
|
|
84
92
|
* Naive semver comparison: returns true if `remote` is newer than `local`.
|
|
85
93
|
* Handles prerelease tags (alpha.N) by comparing the numeric suffix.
|
|
@@ -125,61 +133,82 @@ export function isNewer(local, remote) {
|
|
|
125
133
|
return false;
|
|
126
134
|
}
|
|
127
135
|
/**
|
|
128
|
-
*
|
|
129
|
-
* destroys the in-flight connect, so the check never holds the process open.
|
|
130
|
-
*/
|
|
131
|
-
export const httpsTransport = (url, { signal }) => new Promise((resolve, reject) => {
|
|
132
|
-
const req = get(url, { signal }, (res) => {
|
|
133
|
-
const chunks = [];
|
|
134
|
-
res.on("data", (c) => chunks.push(c));
|
|
135
|
-
res.on("end", () => resolve(new Response(Buffer.concat(chunks), { status: res.statusCode ?? 0 })));
|
|
136
|
-
res.on("error", reject);
|
|
137
|
-
});
|
|
138
|
-
req.on("socket", (socket) => socket.unref());
|
|
139
|
-
req.on("error", reject);
|
|
140
|
-
});
|
|
141
|
-
let transport = httpsTransport;
|
|
142
|
-
/**
|
|
143
|
-
* Fetch the latest version for a given dist-tag from the npm registry.
|
|
136
|
+
* Fetch all dist-tags (e.g. `latest`, `alpha`) from the npm registry.
|
|
144
137
|
* Returns undefined on any failure (offline, timeout, etc.).
|
|
138
|
+
*
|
|
139
|
+
* Plain global fetch is fine here: it only ever runs in the worker, whose
|
|
140
|
+
* deadline bounds any stall. It also honours NODE_USE_ENV_PROXY +
|
|
141
|
+
* HTTPS_PROXY, which a network that blocks the registry may need.
|
|
145
142
|
*/
|
|
146
|
-
|
|
143
|
+
async function fetchDistTags() {
|
|
147
144
|
try {
|
|
148
|
-
const res = await
|
|
145
|
+
const res = await fetch(REGISTRY_URL, {
|
|
146
|
+
signal: AbortSignal.timeout(WORKER_FETCH_TIMEOUT_MS),
|
|
147
|
+
});
|
|
149
148
|
if (!res.ok)
|
|
150
149
|
return undefined;
|
|
151
150
|
const data = await res.json();
|
|
152
151
|
if (!isRecord(data))
|
|
153
152
|
return undefined;
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
153
|
+
const tags = {};
|
|
154
|
+
for (const [tag, version] of Object.entries(data)) {
|
|
155
|
+
if (typeof version === "string")
|
|
156
|
+
tags[tag] = version;
|
|
157
|
+
}
|
|
158
|
+
return Object.keys(tags).length > 0 ? tags : undefined;
|
|
159
159
|
}
|
|
160
160
|
catch {
|
|
161
161
|
return undefined;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
165
|
+
* Worker body: fetch the dist-tags and record them.
|
|
166
|
+
* Runs in the detached worker process, never in the CLI process.
|
|
167
|
+
*
|
|
168
|
+
* `checkedAt` is recorded before the fetch so that, while the registry is
|
|
169
|
+
* unreachable, CLI invocations don't respawn a worker each time.
|
|
170
|
+
*
|
|
171
|
+
* Every channel is recorded from the one response, replacing the previous
|
|
172
|
+
* set: one check serves stable and alpha builds alike, and concurrent
|
|
173
|
+
* workers can't drop each other's results — each writes a complete set.
|
|
167
174
|
*/
|
|
168
|
-
|
|
175
|
+
export async function runUpdateCheck() {
|
|
176
|
+
const checkedAt = Date.now();
|
|
177
|
+
writeJson(CHECK_FILE, { ...readCheckState(), checkedAt });
|
|
178
|
+
const versions = await fetchDistTags();
|
|
179
|
+
if (versions)
|
|
180
|
+
writeJson(CHECK_FILE, { checkedAt, versions });
|
|
181
|
+
}
|
|
169
182
|
/**
|
|
170
|
-
*
|
|
183
|
+
* Launch the worker detached and unref'd: the CLI neither waits for it nor
|
|
184
|
+
* shares its process group, so Ctrl-C or the shell prompt are unaffected.
|
|
171
185
|
*/
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
186
|
+
const spawnWorker = () => {
|
|
187
|
+
// `.ts` when running from source, `.js` from dist
|
|
188
|
+
const ext = extname(fileURLToPath(import.meta.url));
|
|
189
|
+
const worker = fileURLToPath(new URL(`./update-check-worker${ext}`, import.meta.url));
|
|
190
|
+
try {
|
|
191
|
+
const child = spawn(process.execPath, [worker], {
|
|
192
|
+
detached: true,
|
|
193
|
+
stdio: "ignore",
|
|
194
|
+
windowsHide: true,
|
|
195
|
+
});
|
|
196
|
+
child.on("error", () => { });
|
|
197
|
+
child.unref();
|
|
198
|
+
}
|
|
199
|
+
catch {
|
|
200
|
+
// Best-effort — never fail the command over an update check
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
let spawner = spawnWorker;
|
|
204
|
+
/** The notification resolved from cache, printed after the command. */
|
|
205
|
+
let pendingNotification;
|
|
178
206
|
/**
|
|
179
207
|
* Start the non-blocking update check. Call this once at CLI startup.
|
|
180
|
-
* The result is stored internally and printed by `printUpdateNotification()`.
|
|
181
208
|
*
|
|
182
|
-
*
|
|
209
|
+
* Reads the cached check result (sync, no network) to decide what
|
|
210
|
+
* `printUpdateNotification()` will print, and spawns the background worker
|
|
211
|
+
* if the cache is stale.
|
|
183
212
|
*/
|
|
184
213
|
export function startUpdateCheck(currentVersion) {
|
|
185
214
|
// Suppress in CI environments
|
|
@@ -189,117 +218,52 @@ export function startUpdateCheck(currentVersion) {
|
|
|
189
218
|
if (isUnversionedDevBuild(currentVersion))
|
|
190
219
|
return;
|
|
191
220
|
const channel = detectChannel(currentVersion);
|
|
192
|
-
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
// so JSON-mode suppression doesn't poison the cache)
|
|
210
|
-
const installCmd = channel === "alpha"
|
|
211
|
-
? "npm install -g @camunda8/cli@alpha"
|
|
212
|
-
: "npm install -g @camunda8/cli";
|
|
213
|
-
pendingNotification = {
|
|
214
|
-
message: `A newer version of c8ctl is available (${currentVersion} → ${remoteVersion}). Update with: ${installCmd}`,
|
|
215
|
-
version: remoteVersion,
|
|
216
|
-
};
|
|
217
|
-
})
|
|
218
|
-
.catch(() => {
|
|
219
|
-
// Swallow all errors — this is best-effort
|
|
220
|
-
})
|
|
221
|
-
.finally(() => {
|
|
222
|
-
resolveFetchSettled?.();
|
|
223
|
-
clearTimeout(timeoutId);
|
|
224
|
-
});
|
|
221
|
+
const state = readCheckState();
|
|
222
|
+
const stale = state.checkedAt === undefined ||
|
|
223
|
+
Date.now() - state.checkedAt >= CHECK_INTERVAL_MS;
|
|
224
|
+
if (stale)
|
|
225
|
+
spawner();
|
|
226
|
+
const remoteVersion = state.versions[channel];
|
|
227
|
+
if (!remoteVersion || !isNewer(currentVersion, remoteVersion))
|
|
228
|
+
return;
|
|
229
|
+
if (readJson(NOTIFICATION_FILE)?.notifiedVersion === remoteVersion)
|
|
230
|
+
return;
|
|
231
|
+
const installCmd = channel === "alpha"
|
|
232
|
+
? "npm install -g @camunda8/cli@alpha"
|
|
233
|
+
: "npm install -g @camunda8/cli";
|
|
234
|
+
pendingNotification = {
|
|
235
|
+
message: `A newer version of c8ctl is available (${currentVersion} → ${remoteVersion}). Update with: ${installCmd}`,
|
|
236
|
+
version: remoteVersion,
|
|
237
|
+
};
|
|
225
238
|
}
|
|
226
239
|
/**
|
|
227
240
|
* Print the update notification if one was resolved.
|
|
228
|
-
* Call this after the main command has completed.
|
|
241
|
+
* Call this after the main command has completed. Never waits.
|
|
229
242
|
*
|
|
230
|
-
*
|
|
231
|
-
* immediately. If it's still pending, wait only if the last "patient" check
|
|
232
|
-
* was more than 24 hours ago. Otherwise, abort and return instantly.
|
|
233
|
-
*
|
|
234
|
-
* Suppressed in JSON output mode (returns immediately with no wait).
|
|
243
|
+
* Suppressed in JSON output mode.
|
|
235
244
|
*/
|
|
236
|
-
export
|
|
237
|
-
|
|
238
|
-
if (c8ctl.outputMode === "json") {
|
|
239
|
-
fetchController?.abort();
|
|
245
|
+
export function printUpdateNotification() {
|
|
246
|
+
if (c8ctl.outputMode === "json")
|
|
240
247
|
return;
|
|
241
|
-
}
|
|
242
|
-
if (checkPromise && fetchSettled) {
|
|
243
|
-
// Race the fetch settlement against an immediately-resolved sentinel.
|
|
244
|
-
// This avoids microtask ordering issues with a boolean flag.
|
|
245
|
-
const alreadyDone = (await Promise.race([fetchSettled, Promise.resolve("pending")])) ===
|
|
246
|
-
"settled";
|
|
247
|
-
if (alreadyDone) {
|
|
248
|
-
// Already done — no delay
|
|
249
|
-
await checkPromise;
|
|
250
|
-
}
|
|
251
|
-
else if (isPatientCheck()) {
|
|
252
|
-
// Patient check — wait up to PATIENT_TIMEOUT_MS for the fetch
|
|
253
|
-
await checkPromise;
|
|
254
|
-
persistPatientTimestamp();
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
// Impatient — abort immediately, no post-command delay
|
|
258
|
-
fetchController?.abort();
|
|
259
|
-
return;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
248
|
if (!pendingNotification)
|
|
263
249
|
return;
|
|
264
|
-
// Persist so we don't nag about this version again (deferred
|
|
265
|
-
//
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
...cache,
|
|
250
|
+
// Persist so we don't nag about this version again (deferred to print time
|
|
251
|
+
// so JSON-mode suppression doesn't write the cache prematurely)
|
|
252
|
+
writeJson(NOTIFICATION_FILE, {
|
|
253
|
+
...readJson(NOTIFICATION_FILE),
|
|
269
254
|
notifiedVersion: pendingNotification.version,
|
|
270
255
|
});
|
|
271
256
|
console.log(`\n${pendingNotification.message}`);
|
|
272
257
|
}
|
|
273
|
-
/**
|
|
274
|
-
* Whether this invocation should be a "patient" check (wait for the fetch).
|
|
275
|
-
* Returns true if the last patient check was more than 24 hours ago.
|
|
276
|
-
*/
|
|
277
|
-
function isPatientCheck() {
|
|
278
|
-
const cache = readCache();
|
|
279
|
-
const last = cache?.lastPatientCheck;
|
|
280
|
-
if (!last)
|
|
281
|
-
return true; // Never checked — be patient
|
|
282
|
-
return Date.now() - last >= PATIENT_INTERVAL_MS;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Record that a patient check happened now.
|
|
286
|
-
*/
|
|
287
|
-
function persistPatientTimestamp() {
|
|
288
|
-
const cache = readCache() ?? {};
|
|
289
|
-
writeCache({ ...cache, lastPatientCheck: Date.now() });
|
|
290
|
-
}
|
|
291
258
|
/**
|
|
292
259
|
* Reset internal state (for testing only).
|
|
293
260
|
*/
|
|
294
261
|
export function _resetForTesting() {
|
|
295
262
|
pendingNotification = undefined;
|
|
296
|
-
|
|
297
|
-
fetchSettled = undefined;
|
|
298
|
-
resolveFetchSettled = undefined;
|
|
299
|
-
fetchController = undefined;
|
|
263
|
+
spawner = spawnWorker;
|
|
300
264
|
}
|
|
301
|
-
/** Override the
|
|
302
|
-
export function
|
|
303
|
-
|
|
265
|
+
/** Override how the worker is launched (for testing only). */
|
|
266
|
+
export function _setSpawnerForTesting(s) {
|
|
267
|
+
spawner = s;
|
|
304
268
|
}
|
|
305
269
|
//# sourceMappingURL=update-check.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-check.js","sourceRoot":"","sources":["../../src/core/update-check.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"update-check.js","sourceRoot":"","sources":["../../src/core/update-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE5D;;;GAGG;AACH,MAAM,YAAY,GACjB,8DAA8D,CAAC;AAEhE,4DAA4D;AAC5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEhD,wEAAwE;AACxE,MAAM,CAA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KAAK,OAAO;QAClB,CAAC,CAAC,oCAAoC;QACtC,CAAC,CAAC,8BAA8B,CAAC;IACnC,mBAAmB,GAAG;QACrB,OAAO,EAAE,0CAA0C,cAAc,MAAM,aAAa,mBAAmB,UAAU,EAAE;QACnH,OAAO,EAAE,aAAa;KACtB,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB;IACtC,IAAI,KAAK,CAAC,UAAU,KAAK,MAAM;QAAE,OAAO;IACxC,IAAI,CAAC,mBAAmB;QAAE,OAAO;IAEjC,2EAA2E;IAC3E,gEAAgE;IAChE,SAAS,CAAC,iBAAiB,EAAE;QAC5B,GAAG,QAAQ,CAAC,iBAAiB,CAAC;QAC9B,eAAe,EAAE,mBAAmB,CAAC,OAAO;KAC5C,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,KAAK,mBAAmB,CAAC,OAAO,EAAE,CAAC,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC/B,mBAAmB,GAAG,SAAS,CAAC;IAChC,OAAO,GAAG,WAAW,CAAC;AACvB,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,qBAAqB,CAAC,CAAU;IAC/C,OAAO,GAAG,CAAC,CAAC;AACb,CAAC"}
|
|
@@ -1228,6 +1228,42 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1228
1228
|
}];
|
|
1229
1229
|
};
|
|
1230
1230
|
};
|
|
1231
|
+
suspend: {
|
|
1232
|
+
description: string;
|
|
1233
|
+
helpDescription: string;
|
|
1234
|
+
helpResource: string;
|
|
1235
|
+
hasDetailedHelp: true;
|
|
1236
|
+
helpFooterLabel: string;
|
|
1237
|
+
mutating: true;
|
|
1238
|
+
requiresResource: true;
|
|
1239
|
+
resources: string[];
|
|
1240
|
+
flags: {};
|
|
1241
|
+
resourcePositionals: {
|
|
1242
|
+
"process-instance": readonly [{
|
|
1243
|
+
readonly name: "key";
|
|
1244
|
+
readonly required: true;
|
|
1245
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
1246
|
+
}];
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
resume: {
|
|
1250
|
+
description: string;
|
|
1251
|
+
helpDescription: string;
|
|
1252
|
+
helpResource: string;
|
|
1253
|
+
hasDetailedHelp: true;
|
|
1254
|
+
helpFooterLabel: string;
|
|
1255
|
+
mutating: true;
|
|
1256
|
+
requiresResource: true;
|
|
1257
|
+
resources: string[];
|
|
1258
|
+
flags: {};
|
|
1259
|
+
resourcePositionals: {
|
|
1260
|
+
"process-instance": readonly [{
|
|
1261
|
+
readonly name: "key";
|
|
1262
|
+
readonly required: true;
|
|
1263
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
1264
|
+
}];
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1231
1267
|
await: {
|
|
1232
1268
|
description: string;
|
|
1233
1269
|
helpDescription: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-registry.d.ts","sourceRoot":"","sources":["../../src/framework/command-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACN,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,OAAO,EACP,WAAW,EACX,MAAM,EACN,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EAEX,MAAM,qCAAqC,CAAC;AAI7C,MAAM,WAAW,OAAO;IACvB,8EAA8E;IAC9E,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,IAAI,CAAC,EAAE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AE,OAAO,CAAC,CAAC,GACnD,MAAM,CACR,MAAM,EACN;IAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAClE,CAiDA"}
|
|
@@ -921,6 +921,34 @@ export const COMMAND_REGISTRY = {
|
|
|
921
921
|
"process-instance": GET_PI_POSITIONALS,
|
|
922
922
|
},
|
|
923
923
|
},
|
|
924
|
+
suspend: {
|
|
925
|
+
description: "Suspend resource",
|
|
926
|
+
helpDescription: "Suspend a process instance (Camunda 8.10+)",
|
|
927
|
+
helpResource: "<resource> <key>",
|
|
928
|
+
hasDetailedHelp: true,
|
|
929
|
+
helpFooterLabel: "Show suspend command with all flags",
|
|
930
|
+
mutating: true,
|
|
931
|
+
requiresResource: true,
|
|
932
|
+
resources: ["pi"],
|
|
933
|
+
flags: {},
|
|
934
|
+
resourcePositionals: {
|
|
935
|
+
"process-instance": GET_PI_POSITIONALS,
|
|
936
|
+
},
|
|
937
|
+
},
|
|
938
|
+
resume: {
|
|
939
|
+
description: "Resume resource",
|
|
940
|
+
helpDescription: "Resume a suspended process instance (Camunda 8.10+)",
|
|
941
|
+
helpResource: "<resource> <key>",
|
|
942
|
+
hasDetailedHelp: true,
|
|
943
|
+
helpFooterLabel: "Show resume command with all flags",
|
|
944
|
+
mutating: true,
|
|
945
|
+
requiresResource: true,
|
|
946
|
+
resources: ["pi"],
|
|
947
|
+
flags: {},
|
|
948
|
+
resourcePositionals: {
|
|
949
|
+
"process-instance": GET_PI_POSITIONALS,
|
|
950
|
+
},
|
|
951
|
+
},
|
|
924
952
|
await: {
|
|
925
953
|
description: "Create and await completion (alias for create --awaitCompletion)",
|
|
926
954
|
helpDescription: "Create and await process instance completion (server-side waiting)",
|