@camunda8/cli 4.7.0-alpha.11 → 4.7.0-alpha.12

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.
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Project scaffolding for `c8ctl setup`.
3
+ *
4
+ * The three blueprints are intentionally curated here and are not exposed as
5
+ * a CLI command. Files are enumerated through GitHub's tree API and each file
6
+ * is downloaded from its raw URL, so setup does not require git.
7
+ */
8
+ export interface BlueprintSource {
9
+ readonly owner: string;
10
+ readonly repo: string;
11
+ readonly ref: string;
12
+ readonly path: string;
13
+ }
14
+ export interface SetupBlueprint {
15
+ readonly id: string;
16
+ readonly name: string;
17
+ readonly description: string;
18
+ readonly guideUrl: string;
19
+ readonly source: BlueprintSource;
20
+ }
21
+ export declare const SETUP_BLUEPRINTS: readonly [{
22
+ readonly id: "rocket-launch";
23
+ readonly name: "Rocket Launch";
24
+ readonly description: "A fully automated hello-world process with a decision.";
25
+ readonly guideUrl: "https://docs.camunda.io/docs/guides/getting-started-hello-world/";
26
+ readonly source: {
27
+ readonly owner: "camunda";
28
+ readonly repo: "camunda-8-get-started";
29
+ readonly ref: "main";
30
+ readonly path: "1-rocket-launch";
31
+ };
32
+ }, {
33
+ readonly id: "service-worker";
34
+ readonly name: "Service worker";
35
+ readonly description: "An order process with service worker implementations.";
36
+ readonly guideUrl: "https://docs.camunda.io/docs/guides/getting-started-example/";
37
+ readonly source: {
38
+ readonly owner: "camunda";
39
+ readonly repo: "camunda-8-get-started";
40
+ readonly ref: "main";
41
+ readonly path: "2-order-process-with-service-workers";
42
+ };
43
+ }, {
44
+ readonly id: "ai-agent";
45
+ readonly name: "AI agent";
46
+ readonly description: "An agentic chat process with tools and user feedback.";
47
+ readonly guideUrl: "https://docs.camunda.io/docs/guides/getting-started-agentic-orchestration/";
48
+ readonly source: {
49
+ readonly owner: "camunda";
50
+ readonly repo: "camunda-8-tutorials";
51
+ readonly ref: "main";
52
+ readonly path: "solutions/ai-agent-chat-with-tools";
53
+ };
54
+ }];
55
+ export type SetupBlueprintId = (typeof SETUP_BLUEPRINTS)[number]["id"];
56
+ export interface BlueprintResponse {
57
+ readonly ok: boolean;
58
+ readonly status: number;
59
+ readonly statusText: string;
60
+ json(): Promise<unknown>;
61
+ arrayBuffer(): Promise<ArrayBuffer>;
62
+ }
63
+ export type BlueprintFetch = (url: string, init: {
64
+ headers: Record<string, string>;
65
+ signal: AbortSignal;
66
+ }) => Promise<BlueprintResponse>;
67
+ export type BlueprintProgressPhase = "listing" | "downloading" | "writing" | "complete";
68
+ export interface BlueprintProgress {
69
+ readonly phase: BlueprintProgressPhase;
70
+ readonly message: string;
71
+ readonly totalFiles?: number;
72
+ }
73
+ export interface ScaffoldSetupBlueprintOptions {
74
+ readonly id: string;
75
+ /** Exact project directory. Defaults to `<cwd>/<blueprint id>`. */
76
+ readonly destinationDir?: string;
77
+ /** Base directory used when `destinationDir` is relative or omitted. */
78
+ readonly cwd?: string;
79
+ readonly fetch?: BlueprintFetch;
80
+ readonly onProgress?: (event: BlueprintProgress) => void;
81
+ readonly timeoutMs?: number;
82
+ }
83
+ export interface ScaffoldedSetupBlueprint {
84
+ readonly blueprint: SetupBlueprint;
85
+ readonly directory: string;
86
+ readonly files: string[];
87
+ }
88
+ export declare class BlueprintScaffoldError extends Error {
89
+ readonly hint?: string;
90
+ constructor(message: string, options?: {
91
+ hint?: string;
92
+ cause?: unknown;
93
+ });
94
+ }
95
+ /** Download one curated setup blueprint into a new or empty directory. */
96
+ export declare function scaffoldSetupBlueprint({ id, destinationDir, cwd, fetch, onProgress, timeoutMs, }: ScaffoldSetupBlueprintOptions): Promise<ScaffoldedSetupBlueprint>;
97
+ //# sourceMappingURL=blueprint-scaffold.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blueprint-scaffold.d.ts","sourceRoot":"","sources":["../../../src/utils/command-local/blueprint-scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAYH,MAA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sB,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,wEAAwE;IACxE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,qBAAa,sBAAuB,SAAQ,KAAK;IAChD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;gBAGtB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAO;CAMjD;AAuPD,0EAA0E;AAC1E,wBAAsB,sBAAsB,CAAC,EAC5C,EAAE,EACF,cAAc,EACd,GAAmB,EACnB,KAAwB,EACxB,UAAU,EACV,SAA8B,GAC9B,EAAE,6BAA6B,GAAG,OAAO,CAAC,wBAAwB,CAAC,CA2DnE"}
@@ -0,0 +1,260 @@
1
+ /**
2
+ * Project scaffolding for `c8ctl setup`.
3
+ *
4
+ * The three blueprints are intentionally curated here and are not exposed as
5
+ * a CLI command. Files are enumerated through GitHub's tree API and each file
6
+ * is downloaded from its raw URL, so setup does not require git.
7
+ */
8
+ import { existsSync, mkdirSync, readdirSync, statSync, writeFileSync, } from "node:fs";
9
+ import { dirname, join, resolve } from "node:path";
10
+ import { isRecord } from "../../core/index.js";
11
+ export const SETUP_BLUEPRINTS = [
12
+ {
13
+ id: "rocket-launch",
14
+ name: "Rocket Launch",
15
+ description: "A fully automated hello-world process with a decision.",
16
+ guideUrl: "https://docs.camunda.io/docs/guides/getting-started-hello-world/",
17
+ source: {
18
+ owner: "camunda",
19
+ repo: "camunda-8-get-started",
20
+ ref: "main",
21
+ path: "1-rocket-launch",
22
+ },
23
+ },
24
+ {
25
+ id: "service-worker",
26
+ name: "Service worker",
27
+ description: "An order process with service worker implementations.",
28
+ guideUrl: "https://docs.camunda.io/docs/guides/getting-started-example/",
29
+ source: {
30
+ owner: "camunda",
31
+ repo: "camunda-8-get-started",
32
+ ref: "main",
33
+ path: "2-order-process-with-service-workers",
34
+ },
35
+ },
36
+ {
37
+ id: "ai-agent",
38
+ name: "AI agent",
39
+ description: "An agentic chat process with tools and user feedback.",
40
+ guideUrl: "https://docs.camunda.io/docs/guides/getting-started-agentic-orchestration/",
41
+ source: {
42
+ owner: "camunda",
43
+ repo: "camunda-8-tutorials",
44
+ ref: "main",
45
+ path: "solutions/ai-agent-chat-with-tools",
46
+ },
47
+ },
48
+ ];
49
+ export class BlueprintScaffoldError extends Error {
50
+ hint;
51
+ constructor(message, options = {}) {
52
+ super(message, { cause: options.cause });
53
+ this.name = "BlueprintScaffoldError";
54
+ this.hint = options.hint;
55
+ }
56
+ }
57
+ const DEFAULT_TIMEOUT_MS = 30_000;
58
+ function blueprintById(id) {
59
+ const blueprint = SETUP_BLUEPRINTS.find((candidate) => candidate.id === id);
60
+ if (blueprint)
61
+ return blueprint;
62
+ const ids = SETUP_BLUEPRINTS.map((candidate) => candidate.id).join(", ");
63
+ throw new BlueprintScaffoldError(`Unknown blueprint "${id}". Available blueprints: ${ids}.`);
64
+ }
65
+ function githubCommitUrl(source) {
66
+ return (`https://api.github.com/repos/${source.owner}/${source.repo}/commits/` +
67
+ encodeURIComponent(source.ref));
68
+ }
69
+ function githubTreeUrl(source, revision) {
70
+ return (`https://api.github.com/repos/${source.owner}/${source.repo}/git/trees/` +
71
+ `${encodeURIComponent(revision)}?recursive=1`);
72
+ }
73
+ function encodeGitHubPath(path) {
74
+ return path.split("/").map(encodeURIComponent).join("/");
75
+ }
76
+ function rawFileUrl(source, revision, path) {
77
+ return (`https://raw.githubusercontent.com/${source.owner}/${source.repo}/` +
78
+ `${encodeURIComponent(revision)}/${encodeGitHubPath(path)}`);
79
+ }
80
+ function githubHeaders() {
81
+ return {
82
+ Accept: "application/vnd.github+json",
83
+ "User-Agent": "c8ctl",
84
+ "X-GitHub-Api-Version": "2022-11-28",
85
+ };
86
+ }
87
+ async function request({ fetch, url, timeoutMs, failureMessage, read, }) {
88
+ const controller = new AbortController();
89
+ let timedOut = false;
90
+ const timer = setTimeout(() => {
91
+ timedOut = true;
92
+ controller.abort();
93
+ }, timeoutMs);
94
+ try {
95
+ const response = await fetch(url, {
96
+ headers: githubHeaders(),
97
+ signal: controller.signal,
98
+ });
99
+ if (!response.ok) {
100
+ throw new BlueprintScaffoldError(`${failureMessage}: HTTP ${response.status} ${response.statusText} (${url}).`);
101
+ }
102
+ return await read(response);
103
+ }
104
+ catch (error) {
105
+ if (error instanceof BlueprintScaffoldError)
106
+ throw error;
107
+ throw new BlueprintScaffoldError(`${failureMessage}${timedOut ? ` after ${timeoutMs / 1000}s` : ""}.`, {
108
+ hint: "Check your network connection. If you use a proxy, make sure Node.js is configured to use it.",
109
+ cause: error,
110
+ });
111
+ }
112
+ finally {
113
+ clearTimeout(timer);
114
+ }
115
+ }
116
+ function parseCommitSha(value) {
117
+ if (isRecord(value) &&
118
+ typeof value.sha === "string" &&
119
+ /^[0-9a-f]{40}$/i.test(value.sha)) {
120
+ return value.sha;
121
+ }
122
+ throw new BlueprintScaffoldError("GitHub returned an unexpected blueprint revision.", {
123
+ hint: "Try again later; the GitHub commit response format may have changed.",
124
+ });
125
+ }
126
+ function isGitHubTreeEntry(value) {
127
+ return (isRecord(value) &&
128
+ typeof value.path === "string" &&
129
+ typeof value.type === "string");
130
+ }
131
+ function parseGitHubTree(value) {
132
+ if (!isRecord(value) || !Array.isArray(value.tree)) {
133
+ throw new BlueprintScaffoldError("GitHub returned an unexpected blueprint file list.", {
134
+ hint: "Try again later; the GitHub tree response format may have changed.",
135
+ });
136
+ }
137
+ if (value.truncated === true) {
138
+ throw new BlueprintScaffoldError("GitHub returned a truncated blueprint file list; the project was not written.", { hint: "Try again later or reduce the blueprint size." });
139
+ }
140
+ return value.tree.map((entry) => {
141
+ if (!isGitHubTreeEntry(entry)) {
142
+ throw new BlueprintScaffoldError("GitHub returned an unexpected entry in the blueprint file list.");
143
+ }
144
+ return { path: entry.path, type: entry.type };
145
+ });
146
+ }
147
+ function isSafeRelativePath(path) {
148
+ return (path.length > 0 &&
149
+ !path.startsWith("/") &&
150
+ !/^[A-Za-z]:/.test(path) &&
151
+ !path.includes("\\") &&
152
+ !path.includes("\0") &&
153
+ path
154
+ .split("/")
155
+ .every((part) => part !== "" && part !== "." && part !== ".."));
156
+ }
157
+ function projectFilePaths(tree, source) {
158
+ const prefix = `${source.path}/`;
159
+ return tree
160
+ .filter((entry) => entry.type === "blob" && entry.path.startsWith(prefix))
161
+ .map((entry) => entry.path.slice(prefix.length))
162
+ .map((relativePath) => {
163
+ if (!isSafeRelativePath(relativePath)) {
164
+ throw new BlueprintScaffoldError(`GitHub returned an unsafe path in the blueprint: ${source.path}/${relativePath}.`);
165
+ }
166
+ return relativePath;
167
+ })
168
+ .sort();
169
+ }
170
+ function assertDestinationAvailable(directory) {
171
+ if (!existsSync(directory))
172
+ return;
173
+ if (!statSync(directory).isDirectory()) {
174
+ throw new BlueprintScaffoldError(`Blueprint destination ${directory} already exists and is not a directory.`, { hint: "Choose an empty or new destination directory." });
175
+ }
176
+ if (readdirSync(directory).length > 0) {
177
+ throw new BlueprintScaffoldError(`Blueprint destination ${directory} already exists and is not empty.`, {
178
+ hint: "Choose an empty or new destination directory; existing files are never overwritten.",
179
+ });
180
+ }
181
+ }
182
+ function destinationPath(directory, relativePath) {
183
+ return join(directory, ...relativePath.split("/"));
184
+ }
185
+ async function downloadFiles({ blueprint, revision, paths, fetch, timeoutMs, }) {
186
+ const files = [];
187
+ for (const relativePath of paths) {
188
+ const contents = await request({
189
+ fetch,
190
+ url: rawFileUrl(blueprint.source, revision, `${blueprint.source.path}/${relativePath}`),
191
+ timeoutMs,
192
+ failureMessage: `Could not download ${relativePath} from GitHub`,
193
+ read: async (response) => Buffer.from(await response.arrayBuffer()),
194
+ });
195
+ files.push({ relativePath, contents });
196
+ }
197
+ return files;
198
+ }
199
+ function writeFiles(directory, files) {
200
+ mkdirSync(directory, { recursive: true });
201
+ for (const file of files) {
202
+ const destination = destinationPath(directory, file.relativePath);
203
+ mkdirSync(dirname(destination), { recursive: true });
204
+ writeFileSync(destination, file.contents, { flag: "wx" });
205
+ }
206
+ }
207
+ /** Download one curated setup blueprint into a new or empty directory. */
208
+ export async function scaffoldSetupBlueprint({ id, destinationDir, cwd = process.cwd(), fetch = globalThis.fetch, onProgress, timeoutMs = DEFAULT_TIMEOUT_MS, }) {
209
+ const blueprint = blueprintById(id);
210
+ const directory = resolve(cwd, destinationDir ?? blueprint.id);
211
+ assertDestinationAvailable(directory);
212
+ onProgress?.({
213
+ phase: "listing",
214
+ message: `Fetching the ${blueprint.name} file list…`,
215
+ });
216
+ const revision = parseCommitSha(await request({
217
+ fetch,
218
+ url: githubCommitUrl(blueprint.source),
219
+ timeoutMs,
220
+ failureMessage: "Could not resolve the blueprint revision from GitHub",
221
+ read: (response) => response.json(),
222
+ }));
223
+ const tree = await request({
224
+ fetch,
225
+ url: githubTreeUrl(blueprint.source, revision),
226
+ timeoutMs,
227
+ failureMessage: "Could not fetch the blueprint file list from GitHub",
228
+ read: (response) => response.json(),
229
+ });
230
+ const files = projectFilePaths(parseGitHubTree(tree), blueprint.source);
231
+ if (files.length === 0) {
232
+ throw new BlueprintScaffoldError(`GitHub did not list any files for ${blueprint.name}.`);
233
+ }
234
+ onProgress?.({
235
+ phase: "downloading",
236
+ message: `Downloading ${files.length} ${blueprint.name} files…`,
237
+ totalFiles: files.length,
238
+ });
239
+ const downloaded = await downloadFiles({
240
+ blueprint,
241
+ revision,
242
+ paths: files,
243
+ fetch,
244
+ timeoutMs,
245
+ });
246
+ onProgress?.({
247
+ phase: "writing",
248
+ message: `Writing ${blueprint.name} to ${directory}…`,
249
+ totalFiles: files.length,
250
+ });
251
+ assertDestinationAvailable(directory);
252
+ writeFiles(directory, downloaded);
253
+ onProgress?.({
254
+ phase: "complete",
255
+ message: `${blueprint.name} is ready in ${directory}.`,
256
+ totalFiles: files.length,
257
+ });
258
+ return { blueprint, directory, files };
259
+ }
260
+ //# sourceMappingURL=blueprint-scaffold.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blueprint-scaffold.js","sourceRoot":"","sources":["../../../src/utils/command-local/blueprint-scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACN,UAAU,EACV,SAAS,EACT,WAAW,EACX,QAAQ,EACR,aAAa,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAiB/C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B;QACC,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,wDAAwD;QACrE,QAAQ,EACP,kEAAkE;QACnE,MAAM,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,uBAAuB;YAC7B,GAAG,EAAE,MAAM;YACX,IAAI,EAAE,iBAAiB;SACvB;KACD;IACD;QACC,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,u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SAAS;QAC/D,UAAU,EAAE,KAAK,CAAC,MAAM;KACxB,CAAC,CAAC;IACH,MAAM,UAAU,GAAG,MAAM,aAAa,CAAC;QACtC,SAAS;QACT,QAAQ;QACR,KAAK,EAAE,KAAK;QACZ,KAAK;QACL,SAAS;KACT,CAAC,CAAC;IAEH,UAAU,EAAE,CAAC;QACZ,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,WAAW,SAAS,CAAC,IAAI,OAAO,SAAS,GAAG;QACrD,UAAU,EAAE,KAAK,CAAC,MAAM;KACxB,CAAC,CAAC;IACH,0BAA0B,CAAC,SAAS,CAAC,CAAC;IACtC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAClC,UAAU,EAAE,CAAC;QACZ,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,GAAG,SAAS,CAAC,IAAI,gBAAgB,SAAS,GAAG;QACtD,UAAU,EAAE,KAAK,CAAC,MAAM;KACxB,CAAC,CAAC;IAEH,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AACxC,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from "./command-local/blueprint-scaffold.ts";
1
2
  export * from "./command-local/deploy-version.ts";
2
3
  export * from "./command-local/mcp-install-helpers.ts";
3
4
  export * from "./command-local/mcp-proxy-helpers.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAMA,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uCAAuC,CAAC;AACtD,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,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
@@ -4,6 +4,7 @@
4
4
  // barrel (`../utils/index.ts`), never from deep utils files. Intra-utils imports
5
5
  // use direct sibling paths. Enforced by
6
6
  // tests/unit/layering-import-boundary.test.ts (Rules A and B).
7
+ export * from "./command-local/blueprint-scaffold.js";
7
8
  export * from "./command-local/deploy-version.js";
8
9
  export * from "./command-local/mcp-install-helpers.js";
9
10
  export * from "./command-local/mcp-proxy-helpers.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,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uCAAuC,CAAC;AACtD,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,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uCAAuC,CAAC;AACtD,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.11",
3
+ "version": "4.7.0-alpha.12",
4
4
  "description": "Camunda 8 CLI - minimal-dependency CLI for Camunda 8 operations",
5
5
  "type": "module",
6
6
  "engines": {