@camunda8/cli 4.7.0-alpha.2 → 4.7.0-alpha.3

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.
@@ -161,9 +161,11 @@ Set the version to the actual installed cache version. The test uses temporary t
161
161
  ## Supported platforms
162
162
 
163
163
  - macOS (x86_64, aarch64)
164
- - Linux (x86_64, aarch64)
164
+ - Linux (x86_64)
165
165
  - Windows (x86_64)
166
166
 
167
+ These are the platforms the Camunda Download Center publishes Camunda 8 Run for. On any other platform, such as Linux or Windows on arm64, `c8 cluster install` and `c8 cluster start` stop with an explanation instead of downloading. To use your own build, set `C8CTL_C8RUN_DOWNLOAD_URL` to a mirror with the same layout that hosts it.
168
+
167
169
  ## License
168
170
 
169
171
  MIT
@@ -440,6 +440,38 @@ function getCacheDir() {
440
440
  }
441
441
  }
442
442
 
443
+ /**
444
+ * Platform/architecture pairs the Camunda Download Center publishes a
445
+ * Camunda 8 Run build for: darwin-aarch64, darwin-x86_64, linux-x86_64 and
446
+ * windows-x86_64. There is no Linux or Windows arm64 build.
447
+ */
448
+ const PUBLISHED_PLATFORMS = {
449
+ darwin: ['x64', 'arm64'],
450
+ linux: ['x64'],
451
+ win32: ['x64'],
452
+ };
453
+
454
+ /**
455
+ * Why Camunda 8 Run cannot be downloaded for this platform, or null when it
456
+ * can. A mirror (C8CTL_C8RUN_DOWNLOAD_URL) may host other builds, so any
457
+ * platform is allowed when one is set.
458
+ */
459
+ export function unpublishedPlatformMessage({
460
+ platform = osPlatform(),
461
+ arch = osArch(),
462
+ mirror = process.env.C8CTL_C8RUN_DOWNLOAD_URL,
463
+ } = {}) {
464
+ if (mirror) return null;
465
+ if (Object.hasOwn(PUBLISHED_PLATFORMS, platform) && PUBLISHED_PLATFORMS[platform].includes(arch)) {
466
+ return null;
467
+ }
468
+ return (
469
+ `Camunda 8 Run is not published for ${platform} ${arch}. ` +
470
+ 'The Camunda Download Center has builds for macOS (x64, arm64), Linux (x64) and Windows (x64). ' +
471
+ 'To use your own build, set C8CTL_C8RUN_DOWNLOAD_URL to a mirror with the same layout that hosts it.'
472
+ );
473
+ }
474
+
443
475
  function getPlatformIdentifier() {
444
476
  const platform = osPlatform();
445
477
  const arch = osArch();
@@ -1179,6 +1211,10 @@ async function downloadC8Run(config) {
1179
1211
  const logger = getLogger();
1180
1212
  const version = config.version;
1181
1213
 
1214
+ // Fail before requesting an archive that was never published.
1215
+ const unpublished = unpublishedPlatformMessage();
1216
+ if (unpublished) throw new Error(unpublished);
1217
+
1182
1218
  const downloadUrl = getDownloadUrl(version);
1183
1219
 
1184
1220
  logger.info(`Downloading Camunda ${version} for ${getPlatformIdentifier().platform}...`);
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Prerequisite checks for `c8ctl setup`: Node.js version, operating
3
+ * system and architecture, and network access to the Camunda 8 Run
4
+ * download host.
5
+ *
6
+ * Inputs (versions, platform, fetch, environment) are parameters with
7
+ * the real runtime as the default, so every outcome is testable.
8
+ */
9
+ export type PrerequisiteId = "node" | "platform" | "network";
10
+ export interface PrerequisiteResult {
11
+ readonly id: PrerequisiteId;
12
+ readonly title: string;
13
+ readonly ok: boolean;
14
+ /** What was found, e.g. "Node.js 22.17.1 is installed; c8ctl needs >=22.18.0." */
15
+ readonly detail: string;
16
+ /** How to fix a failed check. */
17
+ readonly hint?: string;
18
+ }
19
+ /** The `fetch` subset the network check uses. */
20
+ export type PrerequisiteFetch = (url: string, init: {
21
+ method: string;
22
+ redirect: "manual";
23
+ signal: AbortSignal;
24
+ }) => Promise<unknown>;
25
+ type Env = Readonly<Record<string, string | undefined>>;
26
+ /**
27
+ * Pages for setting Camunda up by hand, for anyone who cannot meet a
28
+ * prerequisite. Unversioned docs.camunda.io URLs resolve to the current
29
+ * release.
30
+ */
31
+ export declare const MANUAL_SETUP_LINKS: readonly {
32
+ readonly label: string;
33
+ readonly url: string;
34
+ }[];
35
+ /** The Node.js range from c8ctl's `engines.node`, the one npm enforces. */
36
+ export declare const REQUIRED_NODE_RANGE: string | undefined;
37
+ export declare function checkNodeVersion({ version, range, }?: {
38
+ version?: string;
39
+ range?: string;
40
+ }): PrerequisiteResult;
41
+ export declare function checkPlatform({ platform, arch, }?: {
42
+ platform?: string;
43
+ arch?: string;
44
+ }): PrerequisiteResult;
45
+ /**
46
+ * Check that the Camunda 8 Run download host answers. Any HTTP response,
47
+ * including a redirect, counts as reachable; a connection failure, a
48
+ * timeout, or a download URL that cannot work fails.
49
+ */
50
+ export declare function checkNetwork({ fetch, env, timeoutMs, }?: {
51
+ fetch?: PrerequisiteFetch;
52
+ env?: Env;
53
+ timeoutMs?: number;
54
+ }): Promise<PrerequisiteResult>;
55
+ export declare function checkPrerequisites(options?: {
56
+ version?: string;
57
+ range?: string;
58
+ platform?: string;
59
+ arch?: string;
60
+ fetch?: PrerequisiteFetch;
61
+ env?: Env;
62
+ timeoutMs?: number;
63
+ }): Promise<PrerequisiteResult[]>;
64
+ /** Explain the failed checks and point at the manual setup instead. */
65
+ export declare function formatPrerequisiteFailures(results: readonly PrerequisiteResult[]): string;
66
+ export {};
67
+ //# sourceMappingURL=setup-prerequisites.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-prerequisites.d.ts","sourceRoot":"","sources":["../../../src/utils/command-local/setup-prerequisites.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAE7D,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,kFAAkF;IAClF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,iCAAiC;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,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ClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;CACd,GACJ,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAM/B;AAED,uEAAuE;AACvE,wBAAgB,0BAA0B,CACzC,OAAO,EAAE,SAAS,kBAAkB,EAAE,GACpC,MAAM,CAaR"}
@@ -0,0 +1,238 @@
1
+ /**
2
+ * Prerequisite checks for `c8ctl setup`: Node.js version, operating
3
+ * system and architecture, and network access to the Camunda 8 Run
4
+ * download host.
5
+ *
6
+ * Inputs (versions, platform, fetch, environment) are parameters with
7
+ * the real runtime as the default, so every outcome is testable.
8
+ */
9
+ import { readFileSync } from "node:fs";
10
+ import { join } from "node:path";
11
+ import semver from "semver";
12
+ /**
13
+ * Pages for setting Camunda up by hand, for anyone who cannot meet a
14
+ * prerequisite. Unversioned docs.camunda.io URLs resolve to the current
15
+ * release.
16
+ */
17
+ export const MANUAL_SETUP_LINKS = [
18
+ {
19
+ label: "Run your first process without c8ctl",
20
+ url: "https://docs.camunda.io/docs/guides/getting-started-hello-world/",
21
+ },
22
+ {
23
+ label: "Install and start Camunda 8 Run",
24
+ url: "https://docs.camunda.io/docs/self-managed/quickstart/developer-quickstart/c8run/install-start/",
25
+ },
26
+ {
27
+ label: "Install Desktop Modeler",
28
+ url: "https://docs.camunda.io/docs/components/modeler/desktop-modeler/install-the-modeler/",
29
+ },
30
+ ];
31
+ // ── Node.js ────────────────────────────────────────────────────────
32
+ function readRequiredNodeRange() {
33
+ try {
34
+ // src/utils/command-local/ and dist/utils/command-local/ are both
35
+ // three levels below the package root.
36
+ const pkg = JSON.parse(readFileSync(join(import.meta.dirname, "..", "..", "..", "package.json"), "utf-8"));
37
+ const engines = pkg && typeof pkg === "object" && "engines" in pkg
38
+ ? pkg.engines
39
+ : undefined;
40
+ const node = engines && typeof engines === "object" && "node" in engines
41
+ ? engines.node
42
+ : undefined;
43
+ return typeof node === "string" ? node : undefined;
44
+ }
45
+ catch {
46
+ return undefined;
47
+ }
48
+ }
49
+ /** The Node.js range from c8ctl's `engines.node`, the one npm enforces. */
50
+ export const REQUIRED_NODE_RANGE = readRequiredNodeRange();
51
+ export function checkNodeVersion({ version = process.versions.node, range = REQUIRED_NODE_RANGE, } = {}) {
52
+ const title = "Node.js version";
53
+ if (!range) {
54
+ return { id: "node", title, ok: true, detail: `Node.js ${version}.` };
55
+ }
56
+ const ok = semver.satisfies(version, range, { includePrerelease: true });
57
+ return ok
58
+ ? { id: "node", title, ok, detail: `Node.js ${version}.` }
59
+ : {
60
+ id: "node",
61
+ title,
62
+ ok,
63
+ detail: `Node.js ${version} is installed; c8ctl needs ${range}.`,
64
+ hint: "Install a supported Node.js release from https://nodejs.org/en/download, then run c8ctl setup again.",
65
+ };
66
+ }
67
+ // ── Platform ───────────────────────────────────────────────────────
68
+ /**
69
+ * Platform and architecture pairs Camunda 8 Run is published for: exactly
70
+ * the darwin-aarch64, darwin-x86_64, linux-x86_64 and windows-x86_64
71
+ * builds on the Camunda Download Center. Other pairs, including Linux and
72
+ * Windows on arm64, have no build to download.
73
+ */
74
+ const SUPPORTED_ARCHS_BY_PLATFORM = {
75
+ darwin: ["x64", "arm64"],
76
+ linux: ["x64"],
77
+ win32: ["x64"],
78
+ };
79
+ export function checkPlatform({ platform = process.platform, arch = process.arch, } = {}) {
80
+ const title = "Operating system";
81
+ const ok = Object.hasOwn(SUPPORTED_ARCHS_BY_PLATFORM, platform) &&
82
+ SUPPORTED_ARCHS_BY_PLATFORM[platform].includes(arch);
83
+ return ok
84
+ ? { id: "platform", title, ok, detail: `${platform} ${arch}.` }
85
+ : {
86
+ id: "platform",
87
+ title,
88
+ ok,
89
+ detail: `Camunda 8 Run is not available for ${platform} ${arch}.`,
90
+ hint: "Camunda 8 Run is available for macOS (x64, arm64), Linux (x64) and Windows (x64).",
91
+ };
92
+ }
93
+ // ── Network ────────────────────────────────────────────────────────
94
+ const DEFAULT_DOWNLOAD_URL = "https://downloads.camunda.cloud/release/camunda/c8run/";
95
+ const DEFAULT_NETWORK_TIMEOUT_MS = 10_000;
96
+ /** The download base URL, honouring the same mirror override as the cluster plugin. */
97
+ function downloadBaseUrl(env) {
98
+ return (env.C8CTL_C8RUN_DOWNLOAD_URL || DEFAULT_DOWNLOAD_URL).replace(/\/*$/, "/");
99
+ }
100
+ /**
101
+ * A URL safe to print, redacted like the cluster plugin's download URLs:
102
+ * credentials become `***`, and a query string or fragment `?<redacted>`.
103
+ */
104
+ function displayUrl(url) {
105
+ try {
106
+ const parsed = new URL(url);
107
+ if (parsed.username || parsed.password) {
108
+ parsed.username = "***";
109
+ parsed.password = "";
110
+ }
111
+ const query = parsed.search || parsed.hash ? "?<redacted>" : "";
112
+ parsed.search = "";
113
+ parsed.hash = "";
114
+ return `${parsed.toString()}${query}`;
115
+ }
116
+ catch {
117
+ return "(invalid URL)";
118
+ }
119
+ }
120
+ /** Why a download URL cannot work, as the cluster plugin reports it, or undefined. */
121
+ function downloadUrlProblem(url) {
122
+ let parsed;
123
+ try {
124
+ parsed = new URL(url);
125
+ }
126
+ catch {
127
+ return "not a valid URL";
128
+ }
129
+ if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
130
+ return `unsupported protocol ${parsed.protocol} (use http or https)`;
131
+ }
132
+ if (parsed.username || parsed.password) {
133
+ return "the URL contains credentials, which fetch() does not send";
134
+ }
135
+ return undefined;
136
+ }
137
+ /** The first error code in an error's cause chain, e.g. ENOTFOUND. */
138
+ function causeCode(error) {
139
+ for (let current = error, depth = 0; current && depth < 5; depth++) {
140
+ if (typeof current !== "object")
141
+ return undefined;
142
+ if ("code" in current && typeof current.code === "string") {
143
+ return current.code;
144
+ }
145
+ current = "cause" in current ? current.cause : undefined;
146
+ }
147
+ return undefined;
148
+ }
149
+ function networkHint(env) {
150
+ if (env.C8CTL_C8RUN_DOWNLOAD_URL) {
151
+ return ("C8CTL_C8RUN_DOWNLOAD_URL points the download at a mirror. Make sure that " +
152
+ "server is reachable, or unset it to use the Camunda Download Center.");
153
+ }
154
+ if ((env.HTTPS_PROXY || env.https_proxy) && env.NODE_USE_ENV_PROXY !== "1") {
155
+ return ("HTTPS_PROXY is set, but Node.js only uses it when NODE_USE_ENV_PROXY=1 is " +
156
+ "set as well (Node.js 22.21+ or 24.5+). Set NODE_USE_ENV_PROXY=1 and try again.");
157
+ }
158
+ return ("Check your network connection. Behind a proxy? Set HTTPS_PROXY together with " +
159
+ "NODE_USE_ENV_PROXY=1 (Node.js 22.21+ or 24.5+).");
160
+ }
161
+ /**
162
+ * Check that the Camunda 8 Run download host answers. Any HTTP response,
163
+ * including a redirect, counts as reachable; a connection failure, a
164
+ * timeout, or a download URL that cannot work fails.
165
+ */
166
+ export async function checkNetwork({ fetch = globalThis.fetch, env = process.env, timeoutMs = DEFAULT_NETWORK_TIMEOUT_MS, } = {}) {
167
+ const title = "Network access";
168
+ const url = downloadBaseUrl(env);
169
+ const shown = displayUrl(url);
170
+ const problem = downloadUrlProblem(url);
171
+ if (problem) {
172
+ return {
173
+ id: "network",
174
+ title,
175
+ ok: false,
176
+ detail: `Cannot use ${shown}: ${problem}.`,
177
+ hint: networkHint(env),
178
+ };
179
+ }
180
+ // A referenced timer rather than AbortSignal.timeout(), whose timer is
181
+ // unreferenced: the timeout must fire even when nothing else keeps the
182
+ // event loop alive, or a stalled request could end the process early.
183
+ const controller = new AbortController();
184
+ let timedOut = false;
185
+ const timer = setTimeout(() => {
186
+ timedOut = true;
187
+ controller.abort();
188
+ }, timeoutMs);
189
+ try {
190
+ // A redirect is an answer from the host, so it is not followed.
191
+ await fetch(url, {
192
+ method: "HEAD",
193
+ redirect: "manual",
194
+ signal: controller.signal,
195
+ });
196
+ return { id: "network", title, ok: true, detail: `${shown} is reachable.` };
197
+ }
198
+ catch (error) {
199
+ // Never the error's message: it can repeat the URL, credentials included.
200
+ const reason = timedOut
201
+ ? `timed out after ${timeoutMs / 1000}s`
202
+ : (causeCode(error) ?? "connection failed");
203
+ return {
204
+ id: "network",
205
+ title,
206
+ ok: false,
207
+ detail: `Could not reach ${shown} (${reason}).`,
208
+ hint: networkHint(env),
209
+ };
210
+ }
211
+ finally {
212
+ clearTimeout(timer);
213
+ }
214
+ }
215
+ // ── All checks ─────────────────────────────────────────────────────
216
+ export async function checkPrerequisites(options = {}) {
217
+ return [
218
+ checkNodeVersion(options),
219
+ checkPlatform(options),
220
+ await checkNetwork(options),
221
+ ];
222
+ }
223
+ /** Explain the failed checks and point at the manual setup instead. */
224
+ export function formatPrerequisiteFailures(results) {
225
+ const failed = results.filter((result) => !result.ok);
226
+ return [
227
+ "c8ctl setup cannot continue:",
228
+ "",
229
+ ...failed.flatMap((result) => [
230
+ ` ✗ ${result.title}: ${result.detail}`,
231
+ ...(result.hint ? [` ${result.hint}`] : []),
232
+ ]),
233
+ "",
234
+ "To set up Camunda by hand instead:",
235
+ ...MANUAL_SETUP_LINKS.map((link) => ` ${link.label}: ${link.url}`),
236
+ ].join("\n");
237
+ }
238
+ //# sourceMappingURL=setup-prerequisites.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-prerequisites.js","sourceRoot":"","sources":["../../../src/utils/command-local/setup-prerequisites.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAsB5B;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAGzB;IACL;QACC,KAAK,EAAE,sCAAsC;QAC7C,GAAG,EAAE,kEAAkE;KACvE;IACD;QACC,KAAK,EAAE,iCAAiC;QACxC,GAAG,EAAE,gGAAgG;KACrG;IACD;QACC,KAAK,EAAE,yBAAyB;QAChC,GAAG,EAAE,sFAAsF;KAC3F;CACD,CAAC;AAEF,sEAAsE;AAEtE,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,CAAC;YAAS,CAAC;QACV,YAAY,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;AACF,CAAC;AAED,sEAAsE;AAEtE,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACvC,UAQI,EAAE;IAEN,OAAO;QACN,gBAAgB,CAAC,OAAO,CAAC;QACzB,aAAa,CAAC,OAAO,CAAC;QACtB,MAAM,YAAY,CAAC,OAAO,CAAC;KAC3B,CAAC;AACH,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,0BAA0B,CACzC,OAAsC;IAEtC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtD,OAAO;QACN,8BAA8B;QAC9B,EAAE;QACF,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;YAC7B,OAAO,MAAM,CAAC,KAAK,KAAK,MAAM,CAAC,MAAM,EAAE;YACvC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9C,CAAC;QACF,EAAE;QACF,oCAAoC;QACpC,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,GAAG,EAAE,CAAC;KACnE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,CAAC"}
@@ -3,6 +3,7 @@ export * from "./command-local/mcp-proxy-helpers.ts";
3
3
  export * from "./command-local/open-helpers.ts";
4
4
  export * from "./command-local/process-instance-helpers.ts";
5
5
  export * from "./command-local/search-helpers.ts";
6
+ export * from "./command-local/setup-prerequisites.ts";
6
7
  export * from "./command-local/watch-constants.ts";
7
8
  export * from "./shared/camunda-json.ts";
8
9
  export * from "./shared/date-filter.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAMA,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAMA,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
@@ -9,6 +9,7 @@ export * from "./command-local/mcp-proxy-helpers.js";
9
9
  export * from "./command-local/open-helpers.js";
10
10
  export * from "./command-local/process-instance-helpers.js";
11
11
  export * from "./command-local/search-helpers.js";
12
+ export * from "./command-local/setup-prerequisites.js";
12
13
  export * from "./command-local/watch-constants.js";
13
14
  export * from "./shared/camunda-json.js";
14
15
  export * from "./shared/date-filter.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,EAAE;AACF,+EAA+E;AAC/E,iFAAiF;AACjF,wCAAwC;AACxC,+DAA+D;AAC/D,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,EAAE;AACF,+EAA+E;AAC/E,iFAAiF;AACjF,wCAAwC;AACxC,+DAA+D;AAC/D,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda8/cli",
3
- "version": "4.7.0-alpha.2",
3
+ "version": "4.7.0-alpha.3",
4
4
  "description": "Camunda 8 CLI - minimal-dependency CLI for Camunda 8 operations",
5
5
  "type": "module",
6
6
  "engines": {