@camunda8/cli 4.7.0-alpha.12 → 4.7.0-alpha.14
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 -0
- package/dist/command-dispatch.d.ts.map +1 -1
- package/dist/command-dispatch.js +2 -0
- package/dist/command-dispatch.js.map +1 -1
- package/dist/commands/helpers/deploy-helpers.d.ts +3 -0
- package/dist/commands/helpers/deploy-helpers.d.ts.map +1 -1
- package/dist/commands/helpers/deploy-helpers.js +1 -1
- package/dist/commands/helpers/deploy-helpers.js.map +1 -1
- package/dist/commands/mcp.d.ts +6 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +9 -2
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/modeler.d.ts +8 -0
- package/dist/commands/modeler.d.ts.map +1 -1
- package/dist/commands/modeler.js +9 -2
- package/dist/commands/modeler.js.map +1 -1
- package/dist/commands/run.d.ts +5 -0
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +2 -1
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/setup.d.ts +20 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +426 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/framework/command-registry.d.ts +32 -0
- package/dist/framework/command-registry.d.ts.map +1 -1
- package/dist/framework/command-registry.js +54 -0
- package/dist/framework/command-registry.js.map +1 -1
- package/dist/framework/ui/prompt.d.ts +69 -0
- package/dist/framework/ui/prompt.d.ts.map +1 -1
- package/dist/framework/ui/prompt.js +223 -0
- package/dist/framework/ui/prompt.js.map +1 -1
- package/dist/utils/command-local/blueprint-scaffold.d.ts +35 -0
- package/dist/utils/command-local/blueprint-scaffold.d.ts.map +1 -1
- package/dist/utils/command-local/blueprint-scaffold.js +18 -2
- package/dist/utils/command-local/blueprint-scaffold.js.map +1 -1
- package/dist/utils/command-local/setup-helpers.d.ts +110 -0
- package/dist/utils/command-local/setup-helpers.d.ts.map +1 -0
- package/dist/utils/command-local/setup-helpers.js +258 -0
- package/dist/utils/command-local/setup-helpers.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,6 +17,30 @@ export interface SetupBlueprint {
|
|
|
17
17
|
readonly description: string;
|
|
18
18
|
readonly guideUrl: string;
|
|
19
19
|
readonly source: BlueprintSource;
|
|
20
|
+
/**
|
|
21
|
+
* Directory to deploy, relative to the scaffolded project root. Some
|
|
22
|
+
* projects carry several copies of a model (e.g. one per worker
|
|
23
|
+
* language); deploying the whole project would deploy the same
|
|
24
|
+
* definition twice, which Camunda rejects. Default: the project root.
|
|
25
|
+
*/
|
|
26
|
+
readonly deployPath?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The BPMN file whose process setup starts after deploying, relative
|
|
29
|
+
* to the scaffolded project root.
|
|
30
|
+
*/
|
|
31
|
+
readonly processFile: string;
|
|
32
|
+
/**
|
|
33
|
+
* Variables for the first process instance, where the model needs
|
|
34
|
+
* inputs to run through without an incident.
|
|
35
|
+
*/
|
|
36
|
+
readonly startVariables?: Record<string, unknown>;
|
|
37
|
+
/**
|
|
38
|
+
* When set, setup deploys the project but does not start an instance:
|
|
39
|
+
* the process needs something setup cannot provide (credentials,
|
|
40
|
+
* inputs). The note tells the user what to configure and how to
|
|
41
|
+
* start it themselves afterwards.
|
|
42
|
+
*/
|
|
43
|
+
readonly startNote?: string;
|
|
20
44
|
}
|
|
21
45
|
export declare const SETUP_BLUEPRINTS: readonly [{
|
|
22
46
|
readonly id: "rocket-launch";
|
|
@@ -29,6 +53,11 @@ export declare const SETUP_BLUEPRINTS: readonly [{
|
|
|
29
53
|
readonly ref: "main";
|
|
30
54
|
readonly path: "1-rocket-launch";
|
|
31
55
|
};
|
|
56
|
+
readonly processFile: "rocket-launch.bpmn";
|
|
57
|
+
readonly startVariables: {
|
|
58
|
+
readonly missionName: "Apollo";
|
|
59
|
+
readonly fuelLevel: 80;
|
|
60
|
+
};
|
|
32
61
|
}, {
|
|
33
62
|
readonly id: "service-worker";
|
|
34
63
|
readonly name: "Service worker";
|
|
@@ -40,6 +69,8 @@ export declare const SETUP_BLUEPRINTS: readonly [{
|
|
|
40
69
|
readonly ref: "main";
|
|
41
70
|
readonly path: "2-order-process-with-service-workers";
|
|
42
71
|
};
|
|
72
|
+
readonly deployPath: "bpmn";
|
|
73
|
+
readonly processFile: "bpmn/order-process.bpmn";
|
|
43
74
|
}, {
|
|
44
75
|
readonly id: "ai-agent";
|
|
45
76
|
readonly name: "AI agent";
|
|
@@ -51,6 +82,8 @@ export declare const SETUP_BLUEPRINTS: readonly [{
|
|
|
51
82
|
readonly ref: "main";
|
|
52
83
|
readonly path: "solutions/ai-agent-chat-with-tools";
|
|
53
84
|
};
|
|
85
|
+
readonly processFile: "ai-agent-chat-with-tools.bpmn";
|
|
86
|
+
readonly startNote: string;
|
|
54
87
|
}];
|
|
55
88
|
export type SetupBlueprintId = (typeof SETUP_BLUEPRINTS)[number]["id"];
|
|
56
89
|
export interface BlueprintResponse {
|
|
@@ -92,6 +125,8 @@ export declare class BlueprintScaffoldError extends Error {
|
|
|
92
125
|
cause?: unknown;
|
|
93
126
|
});
|
|
94
127
|
}
|
|
128
|
+
/** The curated blueprint with this id; throws an error listing the valid ids. */
|
|
129
|
+
export declare function setupBlueprintById(id: string): SetupBlueprint;
|
|
95
130
|
/** Download one curated setup blueprint into a new or empty directory. */
|
|
96
131
|
export declare function scaffoldSetupBlueprint({ id, destinationDir, cwd, fetch, onProgress, timeoutMs, }: ScaffoldSetupBlueprintOptions): Promise<ScaffoldedSetupBlueprint>;
|
|
97
132
|
//# sourceMappingURL=blueprint-scaffold.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-scaffold.d.ts","sourceRoot":"","sources":["../../../src/utils/command-local/blueprint-scaffold.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C,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;AAcD,iFAAiF;AACjF,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,CAO7D;AAkOD,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"}
|
|
@@ -20,6 +20,10 @@ export const SETUP_BLUEPRINTS = [
|
|
|
20
20
|
ref: "main",
|
|
21
21
|
path: "1-rocket-launch",
|
|
22
22
|
},
|
|
23
|
+
processFile: "rocket-launch.bpmn",
|
|
24
|
+
// The mission decision reads these; the upstream quick-start's
|
|
25
|
+
// "full send" launch.
|
|
26
|
+
startVariables: { missionName: "Apollo", fuelLevel: 80 },
|
|
23
27
|
},
|
|
24
28
|
{
|
|
25
29
|
id: "service-worker",
|
|
@@ -32,6 +36,10 @@ export const SETUP_BLUEPRINTS = [
|
|
|
32
36
|
ref: "main",
|
|
33
37
|
path: "2-order-process-with-service-workers",
|
|
34
38
|
},
|
|
39
|
+
// The worker implementations each embed a copy of the model; only
|
|
40
|
+
// the bpmn/ directory is deployed.
|
|
41
|
+
deployPath: "bpmn",
|
|
42
|
+
processFile: "bpmn/order-process.bpmn",
|
|
35
43
|
},
|
|
36
44
|
{
|
|
37
45
|
id: "ai-agent",
|
|
@@ -44,6 +52,13 @@ export const SETUP_BLUEPRINTS = [
|
|
|
44
52
|
ref: "main",
|
|
45
53
|
path: "solutions/ai-agent-chat-with-tools",
|
|
46
54
|
},
|
|
55
|
+
processFile: "ai-agent-chat-with-tools.bpmn",
|
|
56
|
+
// The model calls an LLM through Camunda-provided connector
|
|
57
|
+
// secrets that exist only on SaaS, and it expects an initial
|
|
58
|
+
// input — a fresh local cluster cannot run it as-is.
|
|
59
|
+
startNote: "needs an LLM provider. Configure the AI Agent connector secrets " +
|
|
60
|
+
"for your cluster, then start a chat instance with: " +
|
|
61
|
+
`c8ctl create pi --id=ai-agent-chat-with-tools --variables '{"inputText":"Hello!"}' --profile local`,
|
|
47
62
|
},
|
|
48
63
|
];
|
|
49
64
|
export class BlueprintScaffoldError extends Error {
|
|
@@ -55,7 +70,8 @@ export class BlueprintScaffoldError extends Error {
|
|
|
55
70
|
}
|
|
56
71
|
}
|
|
57
72
|
const DEFAULT_TIMEOUT_MS = 30_000;
|
|
58
|
-
|
|
73
|
+
/** The curated blueprint with this id; throws an error listing the valid ids. */
|
|
74
|
+
export function setupBlueprintById(id) {
|
|
59
75
|
const blueprint = SETUP_BLUEPRINTS.find((candidate) => candidate.id === id);
|
|
60
76
|
if (blueprint)
|
|
61
77
|
return blueprint;
|
|
@@ -206,7 +222,7 @@ function writeFiles(directory, files) {
|
|
|
206
222
|
}
|
|
207
223
|
/** Download one curated setup blueprint into a new or empty directory. */
|
|
208
224
|
export async function scaffoldSetupBlueprint({ id, destinationDir, cwd = process.cwd(), fetch = globalThis.fetch, onProgress, timeoutMs = DEFAULT_TIMEOUT_MS, }) {
|
|
209
|
-
const blueprint =
|
|
225
|
+
const blueprint = setupBlueprintById(id);
|
|
210
226
|
const directory = resolve(cwd, destinationDir ?? blueprint.id);
|
|
211
227
|
assertDestinationAvailable(directory);
|
|
212
228
|
onProgress?.({
|
|
@@ -1 +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;
|
|
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;AAyC/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;QACD,WAAW,EAAE,oBAAoB;QACjC,+DAA+D;QAC/D,sBAAsB;QACtB,cAAc,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;KACxD;IACD;QACC,EAAE,EAAE,g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SAAS,CAAC,MAAM,CAAC,CAAC;IACxE,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,sBAAsB,CAC/B,qCAAqC,SAAS,CAAC,IAAI,GAAG,CACtD,CAAC;IACH,CAAC;IAED,UAAU,EAAE,CAAC;QACZ,KAAK,EAAE,aAAa;QACpB,OAAO,EAAE,eAAe,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,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"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content and renderers for `c8ctl setup`: the welcome banner, the list
|
|
3
|
+
* of components the wizard can set up, and the ordered step plan.
|
|
4
|
+
*
|
|
5
|
+
* Pure string builders — the command handler owns all I/O. Renderers
|
|
6
|
+
* take a `color` flag: colored output uses true-color ANSI escapes and
|
|
7
|
+
* belongs on an interactive terminal; piped output gets plain text.
|
|
8
|
+
*
|
|
9
|
+
* Colors follow the Camunda brand guide (camunda.com/brand): Royal Blue
|
|
10
|
+
* is the primary brand color.
|
|
11
|
+
*/
|
|
12
|
+
export interface BannerStyle {
|
|
13
|
+
readonly brand: string;
|
|
14
|
+
readonly bold: string;
|
|
15
|
+
readonly dim: string;
|
|
16
|
+
readonly reset: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function bannerStyle({ color }: {
|
|
19
|
+
color: boolean;
|
|
20
|
+
}): BannerStyle;
|
|
21
|
+
export type SetupComponentId = "cluster" | "modeler" | "blueprint" | "skills" | "cluster-mcp" | "docs-mcp";
|
|
22
|
+
export interface SetupComponent {
|
|
23
|
+
readonly id: SetupComponentId;
|
|
24
|
+
/** Short name shown in the checkbox list. */
|
|
25
|
+
readonly label: string;
|
|
26
|
+
/** Why it is worth installing — shown dimmed next to the label. */
|
|
27
|
+
readonly why: string;
|
|
28
|
+
/** Pre-checked state, also the non-interactive and --yes default. */
|
|
29
|
+
readonly defaultSelected: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Components this one cannot work without: while any of them is
|
|
32
|
+
* deselected, this option is greyed out with the reason and forced
|
|
33
|
+
* off.
|
|
34
|
+
*/
|
|
35
|
+
readonly requires?: readonly {
|
|
36
|
+
id: SetupComponentId;
|
|
37
|
+
reason: string;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Everything the setup wizard offers. The docs MCP server stays opt-in:
|
|
42
|
+
* the onboarding decision is to add it only on request.
|
|
43
|
+
*/
|
|
44
|
+
export declare const SETUP_COMPONENTS: readonly SetupComponent[];
|
|
45
|
+
/**
|
|
46
|
+
* Drop components whose requirements are not selected. Each pass only
|
|
47
|
+
* ever removes, so this settles quickly even for chains. Applied after
|
|
48
|
+
* flag overrides too, so a flag cannot resurrect a disabled component.
|
|
49
|
+
*/
|
|
50
|
+
export declare function enforceComponentDependencies(selected: ReadonlySet<SetupComponentId>): Set<SetupComponentId>;
|
|
51
|
+
/** Selected component ids when the wizard cannot ask (non-TTY, --yes). */
|
|
52
|
+
export declare function defaultSelection(): ReadonlySet<SetupComponentId>;
|
|
53
|
+
export type SetupStepId = "prerequisites" | "install-c8run" | "start-cluster" | "install-modeler" | "scaffold-blueprint" | "deploy-blueprint" | "install-skills" | "cluster-mcp" | "docs-mcp" | "open-operate";
|
|
54
|
+
export interface SetupStep {
|
|
55
|
+
readonly id: SetupStepId;
|
|
56
|
+
readonly title: string;
|
|
57
|
+
readonly detail: string;
|
|
58
|
+
/** The component this step belongs to; null = always runs. */
|
|
59
|
+
readonly component: SetupComponentId | null;
|
|
60
|
+
/**
|
|
61
|
+
* Steps that must have succeeded for this step to run; otherwise it
|
|
62
|
+
* is reported as skipped with the unmet steps named.
|
|
63
|
+
*/
|
|
64
|
+
readonly dependsOn?: readonly SetupStepId[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* What `c8ctl setup` does, in order. Steps whose component was not
|
|
68
|
+
* selected are reported as skipped instead of running.
|
|
69
|
+
*/
|
|
70
|
+
export declare const SETUP_STEPS: readonly SetupStep[];
|
|
71
|
+
export type SetupStepStatus = "success" | "error" | "skipped";
|
|
72
|
+
/**
|
|
73
|
+
* One finished step, aligned for a wizard report: the title followed by
|
|
74
|
+
* a dot leader and the status tag in a fixed column. `width` is the
|
|
75
|
+
* longest title in the plan, so the tags line up.
|
|
76
|
+
*/
|
|
77
|
+
export declare function formatStepResult(title: string, status: SetupStepStatus, width: number): string;
|
|
78
|
+
/**
|
|
79
|
+
* The boxed welcome screen: brand-colored wordmark, a one-line promise,
|
|
80
|
+
* and the ground rule that nothing runs without confirmation.
|
|
81
|
+
*/
|
|
82
|
+
export declare function renderWelcomeBanner({ color }: {
|
|
83
|
+
color: boolean;
|
|
84
|
+
}): string;
|
|
85
|
+
/**
|
|
86
|
+
* The tailored step plan for a selection: chosen steps numbered with
|
|
87
|
+
* their detail, unchosen steps dimmed and marked as skipped.
|
|
88
|
+
*/
|
|
89
|
+
export declare function renderSetupPlan(selected: ReadonlySet<SetupComponentId>, { color }: {
|
|
90
|
+
color: boolean;
|
|
91
|
+
}): string;
|
|
92
|
+
/** Structured plan for JSON output mode and --dry-run. */
|
|
93
|
+
export declare function setupPlanPayload(selected: ReadonlySet<SetupComponentId>, { blueprint }?: {
|
|
94
|
+
blueprint?: string;
|
|
95
|
+
}): {
|
|
96
|
+
command: string;
|
|
97
|
+
preview: true;
|
|
98
|
+
blueprint: string | null;
|
|
99
|
+
components: readonly {
|
|
100
|
+
id: string;
|
|
101
|
+
label: string;
|
|
102
|
+
selected: boolean;
|
|
103
|
+
}[];
|
|
104
|
+
steps: readonly {
|
|
105
|
+
title: string;
|
|
106
|
+
detail: string;
|
|
107
|
+
status: "planned" | "skipped";
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=setup-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/command-local/setup-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAYH,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,WAAW,CAItE;AAID,MAAM,MAAM,gBAAgB,GACzB,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,aAAa,GACb,UAAU,CAAC;AAEd,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,EAAE,EAAE,gBAAgB,CAAC;IAC9B,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB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MAAM,GACX,MAAM,CAGR;AAgBD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAsCzE;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,WAAW,CAAC,gBAAgB,CAAC,EACvC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAC3B,MAAM,CAsBR;AAED,0DAA0D;AAC1D,wBAAgB,gBAAgB,CAC/B,QAAQ,EAAE,WAAW,CAAC,gBAAgB,CAAC,EACvC,EAAE,SAAS,EAAE,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GACxC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,SAAS;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IACxE,KAAK,EAAE,SAAS;QACf,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;KAC9B,EAAE,CAAC;CACJ,CAmBA"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content and renderers for `c8ctl setup`: the welcome banner, the list
|
|
3
|
+
* of components the wizard can set up, and the ordered step plan.
|
|
4
|
+
*
|
|
5
|
+
* Pure string builders — the command handler owns all I/O. Renderers
|
|
6
|
+
* take a `color` flag: colored output uses true-color ANSI escapes and
|
|
7
|
+
* belongs on an interactive terminal; piped output gets plain text.
|
|
8
|
+
*
|
|
9
|
+
* Colors follow the Camunda brand guide (camunda.com/brand): Royal Blue
|
|
10
|
+
* is the primary brand color.
|
|
11
|
+
*/
|
|
12
|
+
// ── Brand styling ──────────────────────────────────────────────────
|
|
13
|
+
const ESC = "\x1b[";
|
|
14
|
+
const RESET = `${ESC}0m`;
|
|
15
|
+
const BOLD = `${ESC}1m`;
|
|
16
|
+
const DIM = `${ESC}2m`;
|
|
17
|
+
/** Camunda Royal Blue (#4F39F6), the primary brand color. */
|
|
18
|
+
const BRAND_BLUE = `${ESC}38;2;79;57;246m`;
|
|
19
|
+
export function bannerStyle({ color }) {
|
|
20
|
+
return color
|
|
21
|
+
? { brand: BRAND_BLUE, bold: BOLD, dim: DIM, reset: RESET }
|
|
22
|
+
: { brand: "", bold: "", dim: "", reset: "" };
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Everything the setup wizard offers. The docs MCP server stays opt-in:
|
|
26
|
+
* the onboarding decision is to add it only on request.
|
|
27
|
+
*/
|
|
28
|
+
export const SETUP_COMPONENTS = [
|
|
29
|
+
{
|
|
30
|
+
id: "cluster",
|
|
31
|
+
label: "Local cluster",
|
|
32
|
+
why: "Run Camunda 8 on this machine — no Docker, no cloud account",
|
|
33
|
+
defaultSelected: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "modeler",
|
|
37
|
+
label: "Desktop Modeler",
|
|
38
|
+
why: "Draw BPMN diagrams and forms visually, deploy from the canvas",
|
|
39
|
+
defaultSelected: true,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: "blueprint",
|
|
43
|
+
label: "Starter blueprint",
|
|
44
|
+
why: "A working example project, deployed and started for you",
|
|
45
|
+
defaultSelected: true,
|
|
46
|
+
requires: [{ id: "cluster", reason: "needs the local cluster" }],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "skills",
|
|
50
|
+
label: "AI assistant skills",
|
|
51
|
+
why: "Teach Claude Code / Copilot / Cursor how to build on Camunda 8",
|
|
52
|
+
defaultSelected: true,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "cluster-mcp",
|
|
56
|
+
label: "Cluster MCP server",
|
|
57
|
+
why: "Let your AI assistant inspect and operate your cluster",
|
|
58
|
+
defaultSelected: true,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "docs-mcp",
|
|
62
|
+
label: "Docs MCP server",
|
|
63
|
+
why: "Always-current Camunda 8 docs inside your AI assistant",
|
|
64
|
+
defaultSelected: false,
|
|
65
|
+
},
|
|
66
|
+
];
|
|
67
|
+
/**
|
|
68
|
+
* Drop components whose requirements are not selected. Each pass only
|
|
69
|
+
* ever removes, so this settles quickly even for chains. Applied after
|
|
70
|
+
* flag overrides too, so a flag cannot resurrect a disabled component.
|
|
71
|
+
*/
|
|
72
|
+
export function enforceComponentDependencies(selected) {
|
|
73
|
+
const next = new Set(selected);
|
|
74
|
+
for (let changed = true; changed;) {
|
|
75
|
+
changed = false;
|
|
76
|
+
for (const c of SETUP_COMPONENTS) {
|
|
77
|
+
if (next.has(c.id) && c.requires?.some((r) => !next.has(r.id))) {
|
|
78
|
+
next.delete(c.id);
|
|
79
|
+
changed = true;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return next;
|
|
84
|
+
}
|
|
85
|
+
/** Selected component ids when the wizard cannot ask (non-TTY, --yes). */
|
|
86
|
+
export function defaultSelection() {
|
|
87
|
+
return enforceComponentDependencies(new Set(SETUP_COMPONENTS.filter((c) => c.defaultSelected).map((c) => c.id)));
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* What `c8ctl setup` does, in order. Steps whose component was not
|
|
91
|
+
* selected are reported as skipped instead of running.
|
|
92
|
+
*/
|
|
93
|
+
export const SETUP_STEPS = [
|
|
94
|
+
{
|
|
95
|
+
id: "prerequisites",
|
|
96
|
+
title: "Check prerequisites",
|
|
97
|
+
detail: "Node.js ≥ 22.18, supported OS, network access",
|
|
98
|
+
component: null,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "install-c8run",
|
|
102
|
+
title: "Install Camunda 8 Run",
|
|
103
|
+
detail: "download the latest release",
|
|
104
|
+
component: "cluster",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: "start-cluster",
|
|
108
|
+
title: "Start the local cluster",
|
|
109
|
+
detail: "wait until it reports healthy",
|
|
110
|
+
component: "cluster",
|
|
111
|
+
dependsOn: ["install-c8run"],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "install-modeler",
|
|
115
|
+
title: "Install Desktop Modeler",
|
|
116
|
+
detail: "the visual BPMN editor",
|
|
117
|
+
component: "modeler",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: "scaffold-blueprint",
|
|
121
|
+
title: "Create the blueprint project",
|
|
122
|
+
detail: "Rocket Launch, Service worker, or AI agent",
|
|
123
|
+
component: "blueprint",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: "deploy-blueprint",
|
|
127
|
+
title: "Deploy and start the process",
|
|
128
|
+
detail: "your first running process instance",
|
|
129
|
+
component: "blueprint",
|
|
130
|
+
dependsOn: ["scaffold-blueprint", "start-cluster"],
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: "install-skills",
|
|
134
|
+
title: "Install AI assistant skills",
|
|
135
|
+
detail: "for the AI coding tools found on this machine",
|
|
136
|
+
component: "skills",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: "cluster-mcp",
|
|
140
|
+
title: "Configure the cluster MCP server",
|
|
141
|
+
detail: "connect your AI assistant to the cluster",
|
|
142
|
+
component: "cluster-mcp",
|
|
143
|
+
dependsOn: ["start-cluster"],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: "docs-mcp",
|
|
147
|
+
title: "Configure the docs MCP server",
|
|
148
|
+
detail: "Camunda 8 documentation in your AI assistant",
|
|
149
|
+
component: "docs-mcp",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "open-operate",
|
|
153
|
+
title: "Open Operate",
|
|
154
|
+
detail: "http://localhost:8080/operate — log in with demo/demo",
|
|
155
|
+
component: "cluster",
|
|
156
|
+
dependsOn: ["start-cluster"],
|
|
157
|
+
},
|
|
158
|
+
];
|
|
159
|
+
const STATUS_TAGS = {
|
|
160
|
+
success: "[SUCCESS]",
|
|
161
|
+
error: "[ERROR]",
|
|
162
|
+
skipped: "[SKIPPED]",
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* One finished step, aligned for a wizard report: the title followed by
|
|
166
|
+
* a dot leader and the status tag in a fixed column. `width` is the
|
|
167
|
+
* longest title in the plan, so the tags line up.
|
|
168
|
+
*/
|
|
169
|
+
export function formatStepResult(title, status, width) {
|
|
170
|
+
const dots = ".".repeat(Math.max(2, width - title.length + 2));
|
|
171
|
+
return ` ${title} ${dots} ${STATUS_TAGS[status]}`;
|
|
172
|
+
}
|
|
173
|
+
// ── Welcome banner ─────────────────────────────────────────────────
|
|
174
|
+
/** Block-letter c8ctl wordmark, 6 rows. */
|
|
175
|
+
const LOGO = [
|
|
176
|
+
" ██████╗ █████╗ ██████╗ ████████╗ ██╗ ",
|
|
177
|
+
"██╔════╝ ██╔══██╗ ██╔════╝ ╚══██╔══╝ ██║ ",
|
|
178
|
+
"██║ ╚█████╔╝ ██║ ██║ ██║ ",
|
|
179
|
+
"██║ ██╔══██╗ ██║ ██║ ██║ ",
|
|
180
|
+
"╚██████╗ ██████╔╝ ╚██████╗ ██║ ███████╗",
|
|
181
|
+
" ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝",
|
|
182
|
+
];
|
|
183
|
+
const BANNER_WIDTH = 68;
|
|
184
|
+
/**
|
|
185
|
+
* The boxed welcome screen: brand-colored wordmark, a one-line promise,
|
|
186
|
+
* and the ground rule that nothing runs without confirmation.
|
|
187
|
+
*/
|
|
188
|
+
export function renderWelcomeBanner({ color }) {
|
|
189
|
+
const s = bannerStyle({ color });
|
|
190
|
+
const top = ` ╭${"─".repeat(BANNER_WIDTH)}╮`;
|
|
191
|
+
const bottom = ` ╰${"─".repeat(BANNER_WIDTH)}╯`;
|
|
192
|
+
const empty = ` │${" ".repeat(BANNER_WIDTH)}│`;
|
|
193
|
+
const pad = (text, visibleLength) => ` │${text}${" ".repeat(Math.max(0, BANNER_WIDTH - visibleLength))}│`;
|
|
194
|
+
const logoPad = " ";
|
|
195
|
+
const textPad = " ";
|
|
196
|
+
return [
|
|
197
|
+
top,
|
|
198
|
+
empty,
|
|
199
|
+
...LOGO.map((line) => pad(`${logoPad}${s.brand}${line}${s.reset}`, logoPad.length + line.length)),
|
|
200
|
+
empty,
|
|
201
|
+
pad(`${textPad}${s.bold}Welcome to Camunda 8!${s.reset} Let's get you from zero to a`, textPad.length +
|
|
202
|
+
"Welcome to Camunda 8! Let's get you from zero to a".length),
|
|
203
|
+
pad(`${textPad}running local process — in a couple of minutes.`, textPad.length + "running local process — in a couple of minutes.".length),
|
|
204
|
+
empty,
|
|
205
|
+
pad(`${textPad}${s.dim}Pick what to set up. Nothing runs without your say.${s.reset}`, textPad.length +
|
|
206
|
+
"Pick what to set up. Nothing runs without your say.".length),
|
|
207
|
+
empty,
|
|
208
|
+
bottom,
|
|
209
|
+
].join("\n");
|
|
210
|
+
}
|
|
211
|
+
// ── Plan rendering ─────────────────────────────────────────────────
|
|
212
|
+
/**
|
|
213
|
+
* The tailored step plan for a selection: chosen steps numbered with
|
|
214
|
+
* their detail, unchosen steps dimmed and marked as skipped.
|
|
215
|
+
*/
|
|
216
|
+
export function renderSetupPlan(selected, { color }) {
|
|
217
|
+
const s = bannerStyle({ color });
|
|
218
|
+
const lines = [
|
|
219
|
+
"",
|
|
220
|
+
` ${s.bold}Here's what c8ctl setup will do:${s.reset}`,
|
|
221
|
+
"",
|
|
222
|
+
];
|
|
223
|
+
let n = 0;
|
|
224
|
+
for (const step of SETUP_STEPS) {
|
|
225
|
+
const included = step.component === null || selected.has(step.component);
|
|
226
|
+
if (included) {
|
|
227
|
+
n += 1;
|
|
228
|
+
lines.push(` ${s.brand}${String(n).padStart(2, "0")}.${s.reset} ${s.bold}${step.title}${s.reset}`);
|
|
229
|
+
lines.push(` ${s.dim}${step.detail}${s.reset}`);
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
lines.push(` ${s.dim} - ${step.title} — skipped${s.reset}`);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
lines.push("");
|
|
236
|
+
return lines.join("\n");
|
|
237
|
+
}
|
|
238
|
+
/** Structured plan for JSON output mode and --dry-run. */
|
|
239
|
+
export function setupPlanPayload(selected, { blueprint } = {}) {
|
|
240
|
+
return {
|
|
241
|
+
command: "setup",
|
|
242
|
+
preview: true,
|
|
243
|
+
blueprint: blueprint ?? null,
|
|
244
|
+
components: SETUP_COMPONENTS.map((c) => ({
|
|
245
|
+
id: c.id,
|
|
246
|
+
label: c.label,
|
|
247
|
+
selected: selected.has(c.id),
|
|
248
|
+
})),
|
|
249
|
+
steps: SETUP_STEPS.map((step) => ({
|
|
250
|
+
title: step.title,
|
|
251
|
+
detail: step.detail,
|
|
252
|
+
status: step.component === null || selected.has(step.component)
|
|
253
|
+
? "planned"
|
|
254
|
+
: "skipped",
|
|
255
|
+
})),
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
//# sourceMappingURL=setup-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-helpers.js","sourceRoot":"","sources":["../../../src/utils/command-local/setup-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,sEAAsE;AAEtE,MAAM,GAAG,GAAG,OAAO,CAAC;AACpB,MAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC;AACzB,MAAM,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC;AACxB,MAAM,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAEvB,6DAA6D;AAC7D,MAAM,UAAU,GAAG,GAAG,GAAG,iBAAiB,CAAC;AAS3C,MAAM,UAAU,WAAW,CAAC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AAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;QACvD,CAAC;aAAM,CAAC;YACP,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,KAAK,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;QAChE,CAAC;IACF,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,gBAAgB,CAC/B,QAAuC,EACvC,EAAE,SAAS,KAA6B,EAAE;IAY1C,OAAO;QACN,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,SAAS,IAAI,IAAI;QAC5B,UAAU,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACxC,EAAE,EAAE,CAAC,CAAC,EAAE;YACR,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;SAC5B,CAAC,CAAC;QACH,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACjC,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EACL,IAAI,CAAC,SAAS,KAAK,IAAI,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;gBACtD,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,SAAS;SACb,CAAC,CAAC;KACH,CAAC;AACH,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./command-local/open-helpers.ts";
|
|
|
7
7
|
export * from "./command-local/process-instance-helpers.ts";
|
|
8
8
|
export * from "./command-local/search-helpers.ts";
|
|
9
9
|
export * from "./command-local/setup-detectors.ts";
|
|
10
|
+
export * from "./command-local/setup-helpers.ts";
|
|
10
11
|
export * from "./command-local/setup-prerequisites.ts";
|
|
11
12
|
export * from "./command-local/skills-install-helpers.ts";
|
|
12
13
|
export * from "./command-local/watch-constants.ts";
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
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,kCAAkC,CAAC;AACjD,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/dist/utils/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./command-local/open-helpers.js";
|
|
|
13
13
|
export * from "./command-local/process-instance-helpers.js";
|
|
14
14
|
export * from "./command-local/search-helpers.js";
|
|
15
15
|
export * from "./command-local/setup-detectors.js";
|
|
16
|
+
export * from "./command-local/setup-helpers.js";
|
|
16
17
|
export * from "./command-local/setup-prerequisites.js";
|
|
17
18
|
export * from "./command-local/skills-install-helpers.js";
|
|
18
19
|
export * from "./command-local/watch-constants.js";
|
package/dist/utils/index.js.map
CHANGED
|
@@ -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,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,iCAAi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