@camunda8/cli 4.7.0-alpha.2 → 4.7.0-alpha.21
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 +11 -0
- package/README.md +11 -2
- package/dist/command-dispatch.d.ts.map +1 -1
- package/dist/command-dispatch.js +3 -0
- package/dist/command-dispatch.js.map +1 -1
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +48 -9
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/helpers/deploy-helpers.d.ts +96 -2
- package/dist/commands/helpers/deploy-helpers.d.ts.map +1 -1
- package/dist/commands/helpers/deploy-helpers.js +213 -70
- package/dist/commands/helpers/deploy-helpers.js.map +1 -1
- package/dist/commands/mcp-proxy.d.ts.map +1 -1
- package/dist/commands/mcp-proxy.js +13 -8
- package/dist/commands/mcp-proxy.js.map +1 -1
- package/dist/commands/mcp.d.ts +9 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/mcp.js +109 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/profiles.d.ts.map +1 -1
- package/dist/commands/profiles.js +13 -7
- package/dist/commands/profiles.js.map +1 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +1 -8
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/commands/watch.js +309 -16
- package/dist/commands/watch.js.map +1 -1
- package/dist/core/client.d.ts +13 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +48 -21
- package/dist/core/client.js.map +1 -1
- package/dist/core/config.d.ts +34 -3
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +91 -9
- package/dist/core/config.js.map +1 -1
- package/dist/core/env-address.d.ts +22 -0
- package/dist/core/env-address.d.ts.map +1 -0
- package/dist/core/env-address.js +30 -0
- package/dist/core/env-address.js.map +1 -0
- package/dist/core/errors.d.ts +17 -0
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +32 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js +2 -1
- package/dist/core/logger.js.map +1 -1
- package/dist/default-plugins/cluster/README.md +3 -1
- package/dist/default-plugins/cluster/c8ctl-plugin.js +54 -3
- package/dist/default-plugins/modeler/README.md +12 -0
- package/dist/default-plugins/modeler/c8ctl-plugin.js +3042 -0
- package/dist/default-plugins/modeler/package.json +8 -0
- package/dist/default-plugins/setup/README.md +36 -0
- package/dist/default-plugins/setup/c8ctl-plugin.js +6336 -0
- package/dist/default-plugins/setup/package.json +8 -0
- package/dist/default-plugins/skills/README.md +18 -0
- package/dist/default-plugins/skills/c8ctl-plugin.js +572 -0
- package/dist/default-plugins/skills/package.json +8 -0
- package/dist/framework/command-registry.d.ts +56 -0
- package/dist/framework/command-registry.d.ts.map +1 -1
- package/dist/framework/command-registry.js +99 -0
- package/dist/framework/command-registry.js.map +1 -1
- package/dist/framework/plugins/plugin-loader.d.ts +5 -2
- package/dist/framework/plugins/plugin-loader.d.ts.map +1 -1
- package/dist/framework/plugins/plugin-loader.js.map +1 -1
- package/dist/framework/ui/help.d.ts.map +1 -1
- package/dist/framework/ui/help.js +57 -14
- package/dist/framework/ui/help.js.map +1 -1
- package/dist/framework/ui/prompt.d.ts +80 -0
- package/dist/framework/ui/prompt.d.ts.map +1 -1
- package/dist/framework/ui/prompt.js +311 -0
- package/dist/framework/ui/prompt.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/command-local/mcp-install-helpers.d.ts +49 -0
- package/dist/utils/command-local/mcp-install-helpers.d.ts.map +1 -0
- package/dist/utils/command-local/mcp-install-helpers.js +394 -0
- package/dist/utils/command-local/mcp-install-helpers.js.map +1 -0
- package/dist/utils/command-local/process-instance-helpers.d.ts +6 -0
- package/dist/utils/command-local/process-instance-helpers.d.ts.map +1 -1
- package/dist/utils/command-local/process-instance-helpers.js +9 -0
- package/dist/utils/command-local/process-instance-helpers.js.map +1 -1
- package/dist/utils/command-local/skills-install-helpers.d.ts +45 -0
- package/dist/utils/command-local/skills-install-helpers.d.ts.map +1 -0
- package/dist/utils/command-local/skills-install-helpers.js +322 -0
- package/dist/utils/command-local/skills-install-helpers.js.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/shared/camunda-json.d.ts +24 -3
- package/dist/utils/shared/camunda-json.d.ts.map +1 -1
- package/dist/utils/shared/camunda-json.js +23 -5
- package/dist/utils/shared/camunda-json.js.map +1 -1
- package/dist/utils/shared/deploy-resource-selection.d.ts +165 -0
- package/dist/utils/shared/deploy-resource-selection.d.ts.map +1 -0
- package/dist/utils/shared/deploy-resource-selection.js +466 -0
- package/dist/utils/shared/deploy-resource-selection.js.map +1 -0
- package/dist/utils/shared/ignore.d.ts +26 -0
- package/dist/utils/shared/ignore.d.ts.map +1 -1
- package/dist/utils/shared/ignore.js +6 -2
- package/dist/utils/shared/ignore.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { existsSync, lstatSync, realpathSync, rmSync, statSync, unlinkSync, } from "node:fs";
|
|
3
|
+
import { homedir } from "node:os";
|
|
4
|
+
import { basename, dirname, isAbsolute, posix, relative, resolve, sep, win32, } from "node:path";
|
|
5
|
+
import { isRecord } from "../../core/index.js";
|
|
6
|
+
const HARNESS_DETECTORS = [
|
|
7
|
+
{ id: "claude-code", executable: "claude" },
|
|
8
|
+
{ id: "github-copilot", executable: "copilot" },
|
|
9
|
+
];
|
|
10
|
+
const HARNESS_ALIASES = {
|
|
11
|
+
claude: "claude-code",
|
|
12
|
+
copilot: "github-copilot",
|
|
13
|
+
};
|
|
14
|
+
export const CAMUNDA_SKILLS_REPOSITORY = "camunda/skills";
|
|
15
|
+
const CAMUNDA_SKILLS_URL = `https://github.com/${CAMUNDA_SKILLS_REPOSITORY}`;
|
|
16
|
+
export function normalizeSkillHarness(value) {
|
|
17
|
+
const normalized = value.trim().toLowerCase();
|
|
18
|
+
if (!/^[a-z0-9][a-z0-9.-]*$/.test(normalized)) {
|
|
19
|
+
throw new Error("Invalid harness ID. Use a non-empty GitHub CLI skill agent ID, such as claude-code, github-copilot, or cursor.");
|
|
20
|
+
}
|
|
21
|
+
return Object.hasOwn(HARNESS_ALIASES, normalized)
|
|
22
|
+
? HARNESS_ALIASES[normalized]
|
|
23
|
+
: normalized;
|
|
24
|
+
}
|
|
25
|
+
export function buildSkillInstallArgs(harness) {
|
|
26
|
+
return [
|
|
27
|
+
"skill",
|
|
28
|
+
"install",
|
|
29
|
+
CAMUNDA_SKILLS_REPOSITORY,
|
|
30
|
+
"--all",
|
|
31
|
+
"--agent",
|
|
32
|
+
harness,
|
|
33
|
+
"--scope",
|
|
34
|
+
"user",
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
function buildSkillListArgs(harness) {
|
|
38
|
+
return [
|
|
39
|
+
"skill",
|
|
40
|
+
"list",
|
|
41
|
+
"--agent",
|
|
42
|
+
harness,
|
|
43
|
+
"--scope",
|
|
44
|
+
"user",
|
|
45
|
+
"--json",
|
|
46
|
+
"skillName,sourceURL,path",
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
function buildSkillDiscoveryArgs() {
|
|
50
|
+
return ["skill", "install", CAMUNDA_SKILLS_REPOSITORY];
|
|
51
|
+
}
|
|
52
|
+
function buildSkillInstallSpecificArgs({ harness, skill, }) {
|
|
53
|
+
return [
|
|
54
|
+
"skill",
|
|
55
|
+
"install",
|
|
56
|
+
CAMUNDA_SKILLS_REPOSITORY,
|
|
57
|
+
skill,
|
|
58
|
+
"--agent",
|
|
59
|
+
harness,
|
|
60
|
+
"--scope",
|
|
61
|
+
"user",
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
function buildSkillUpdateArgs(skills, directory) {
|
|
65
|
+
return ["skill", "update", "--all", "--dir", directory, ...skills];
|
|
66
|
+
}
|
|
67
|
+
function installedCamundaSkills(stdout) {
|
|
68
|
+
let parsed;
|
|
69
|
+
try {
|
|
70
|
+
parsed = JSON.parse(stdout);
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
throw new Error("GitHub CLI returned invalid JSON while listing skills.");
|
|
74
|
+
}
|
|
75
|
+
if (!Array.isArray(parsed)) {
|
|
76
|
+
throw new Error("GitHub CLI returned an invalid installed-skills list.");
|
|
77
|
+
}
|
|
78
|
+
const skills = [];
|
|
79
|
+
for (const entry of parsed) {
|
|
80
|
+
if (!isRecord(entry) || typeof entry.sourceURL !== "string")
|
|
81
|
+
continue;
|
|
82
|
+
if (entry.sourceURL.replace(/\/+$/, "").toLowerCase() !== CAMUNDA_SKILLS_URL)
|
|
83
|
+
continue;
|
|
84
|
+
if (typeof entry.skillName !== "string" ||
|
|
85
|
+
entry.skillName.length === 0 ||
|
|
86
|
+
typeof entry.path !== "string" ||
|
|
87
|
+
entry.path.length === 0) {
|
|
88
|
+
throw new Error("GitHub CLI returned incomplete Camunda skill metadata.");
|
|
89
|
+
}
|
|
90
|
+
skills.push({
|
|
91
|
+
name: entry.skillName,
|
|
92
|
+
directory: dirname(entry.path),
|
|
93
|
+
path: entry.path,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return skills;
|
|
97
|
+
}
|
|
98
|
+
function availableCamundaSkills(stdout) {
|
|
99
|
+
const names = stdout
|
|
100
|
+
.split(/\r?\n/)
|
|
101
|
+
.filter((line) => line.includes("\t"))
|
|
102
|
+
.map((line) => line.split("\t", 1)[0].trim())
|
|
103
|
+
.filter((name) => name.length > 0);
|
|
104
|
+
if (names.length === 0) {
|
|
105
|
+
throw new Error("GitHub CLI returned no available Camunda skills.");
|
|
106
|
+
}
|
|
107
|
+
if (names.some((name) => !/^[a-z0-9][a-z0-9._/-]*$/i.test(name))) {
|
|
108
|
+
throw new Error("GitHub CLI returned an invalid available Camunda skills list.");
|
|
109
|
+
}
|
|
110
|
+
return [...new Set(names)];
|
|
111
|
+
}
|
|
112
|
+
function joinForPlatform(platform, ...paths) {
|
|
113
|
+
return platform === "win32" ? win32.join(...paths) : posix.join(...paths);
|
|
114
|
+
}
|
|
115
|
+
function harnessConfigDirectories({ harness, env, home, platform, }) {
|
|
116
|
+
if (harness === "claude-code") {
|
|
117
|
+
return [
|
|
118
|
+
...(env.CLAUDE_CONFIG_DIR ? [env.CLAUDE_CONFIG_DIR] : []),
|
|
119
|
+
joinForPlatform(platform, home, ".claude"),
|
|
120
|
+
];
|
|
121
|
+
}
|
|
122
|
+
if (harness === "github-copilot") {
|
|
123
|
+
return [joinForPlatform(platform, home, ".copilot")];
|
|
124
|
+
}
|
|
125
|
+
return [];
|
|
126
|
+
}
|
|
127
|
+
export function executableIsOnPath({ name, env, platform, }) {
|
|
128
|
+
const pathSeparator = platform === "win32" ? ";" : ":";
|
|
129
|
+
const directories = (env.PATH ?? "")
|
|
130
|
+
.split(pathSeparator)
|
|
131
|
+
.filter((directory) => directory.length > 0);
|
|
132
|
+
const extensions = platform === "win32"
|
|
133
|
+
? (env.PATHEXT ?? ".COM;.EXE;.BAT;.CMD")
|
|
134
|
+
.split(";")
|
|
135
|
+
.filter((extension) => extension.length > 0)
|
|
136
|
+
: [""];
|
|
137
|
+
return directories.some((directory) => extensions.some((extension) => existsSync(joinForPlatform(platform, directory, `${name}${extension}`))));
|
|
138
|
+
}
|
|
139
|
+
export function detectInstalledHarnesses({ env = process.env, home, platform = process.platform, } = {}) {
|
|
140
|
+
const userHome = home ??
|
|
141
|
+
(platform === "win32"
|
|
142
|
+
? env.USERPROFILE || env.HOME || homedir()
|
|
143
|
+
: env.HOME || homedir());
|
|
144
|
+
return HARNESS_DETECTORS.filter(({ id, executable }) => harnessConfigDirectories({
|
|
145
|
+
harness: id,
|
|
146
|
+
env,
|
|
147
|
+
home: userHome,
|
|
148
|
+
platform,
|
|
149
|
+
}).some((directory) => existsSync(directory)) ||
|
|
150
|
+
executableIsOnPath({ name: executable, env, platform })).map(({ id }) => id);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Async spawn, not spawnSync: a sync call would block the event loop
|
|
154
|
+
* for the whole download, freezing the setup step's spinner mid-run.
|
|
155
|
+
*/
|
|
156
|
+
function runCommand(command, args) {
|
|
157
|
+
return new Promise((resolveRun) => {
|
|
158
|
+
const child = spawn(command, args);
|
|
159
|
+
let stdout = "";
|
|
160
|
+
let stderr = "";
|
|
161
|
+
child.stdout?.setEncoding("utf8");
|
|
162
|
+
child.stderr?.setEncoding("utf8");
|
|
163
|
+
child.stdout?.on("data", (chunk) => {
|
|
164
|
+
stdout += chunk;
|
|
165
|
+
});
|
|
166
|
+
child.stderr?.on("data", (chunk) => {
|
|
167
|
+
stderr += chunk;
|
|
168
|
+
});
|
|
169
|
+
// ENOENT reports "error" and then "close" — settle once, on the
|
|
170
|
+
// first signal.
|
|
171
|
+
let settled = false;
|
|
172
|
+
const done = (result) => {
|
|
173
|
+
if (settled)
|
|
174
|
+
return;
|
|
175
|
+
settled = true;
|
|
176
|
+
resolveRun(result);
|
|
177
|
+
};
|
|
178
|
+
child.on("error", (error) => done({ status: null, stdout, stderr, error }));
|
|
179
|
+
child.on("close", (status) => done({ status, stdout, stderr }));
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
export async function listCamundaSkills(harness, runner = runCommand) {
|
|
183
|
+
const listed = await runner("gh", buildSkillListArgs(harness));
|
|
184
|
+
requireSuccessfulSkillCommand(listed, "check for installed");
|
|
185
|
+
return installedCamundaSkills(listed.stdout).map((skill) => ({
|
|
186
|
+
...skill,
|
|
187
|
+
harness,
|
|
188
|
+
}));
|
|
189
|
+
}
|
|
190
|
+
function isWithinPath(root, candidate) {
|
|
191
|
+
const relativePath = relative(root, candidate);
|
|
192
|
+
return (relativePath === "" ||
|
|
193
|
+
(relativePath !== ".." &&
|
|
194
|
+
!relativePath.startsWith(`..${sep}`) &&
|
|
195
|
+
!isAbsolute(relativePath)));
|
|
196
|
+
}
|
|
197
|
+
function harnessSkillDirectories({ harness, env, home, platform, }) {
|
|
198
|
+
return harnessConfigDirectories({ harness, env, home, platform }).map((directory) => resolve(joinForPlatform(platform, directory, "skills")));
|
|
199
|
+
}
|
|
200
|
+
export function hasCamundaUserSkillsDirectory(harness, { env = process.env, home, platform = process.platform, } = {}) {
|
|
201
|
+
const userHome = home ??
|
|
202
|
+
(platform === "win32"
|
|
203
|
+
? env.USERPROFILE || env.HOME || homedir()
|
|
204
|
+
: env.HOME || homedir());
|
|
205
|
+
return harnessSkillDirectories({
|
|
206
|
+
harness,
|
|
207
|
+
env,
|
|
208
|
+
home: userHome,
|
|
209
|
+
platform,
|
|
210
|
+
}).some((directory) => statSync(directory, { throwIfNoEntry: false })?.isDirectory() === true);
|
|
211
|
+
}
|
|
212
|
+
function skillRemovalLocation(skill, { env = process.env, home, platform = process.platform }) {
|
|
213
|
+
const userHome = home ??
|
|
214
|
+
(platform === "win32"
|
|
215
|
+
? env.USERPROFILE || env.HOME || homedir()
|
|
216
|
+
: env.HOME || homedir());
|
|
217
|
+
if (!isAbsolute(skill.path)) {
|
|
218
|
+
throw new Error(`Cannot safely remove Camunda skill "${skill.name}": GitHub CLI returned a non-absolute path.`);
|
|
219
|
+
}
|
|
220
|
+
const directory = resolve(skill.path);
|
|
221
|
+
const skillName = skill.name.split(/[\\/]/).at(-1);
|
|
222
|
+
if (!skillName || basename(directory) !== skillName) {
|
|
223
|
+
throw new Error(`Cannot safely remove Camunda skill "${skill.name}": its listed path does not match the skill name.`);
|
|
224
|
+
}
|
|
225
|
+
const roots = harnessSkillDirectories({
|
|
226
|
+
harness: skill.harness,
|
|
227
|
+
env,
|
|
228
|
+
home: userHome,
|
|
229
|
+
platform,
|
|
230
|
+
});
|
|
231
|
+
const root = roots.find((candidate) => candidate !== directory && isWithinPath(candidate, directory));
|
|
232
|
+
if (!root) {
|
|
233
|
+
throw new Error(`Cannot safely remove Camunda skill "${skill.name}" from ${skill.path}: the path is outside the ${skill.harness} user skills directory.`);
|
|
234
|
+
}
|
|
235
|
+
return { directory, root };
|
|
236
|
+
}
|
|
237
|
+
export function camundaSkillRemovalPath(skill, options = {}) {
|
|
238
|
+
return skillRemovalLocation(skill, options).directory;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Remove a listed Camunda skill directory without following a skill or parent
|
|
242
|
+
* symlink outside the harness's user-scope skills directory.
|
|
243
|
+
*/
|
|
244
|
+
export function removeCamundaSkill(skill, options = {}) {
|
|
245
|
+
const { directory, root } = skillRemovalLocation(skill, options);
|
|
246
|
+
const directoryInfo = lstatSync(directory, { throwIfNoEntry: false });
|
|
247
|
+
if (!directoryInfo)
|
|
248
|
+
return;
|
|
249
|
+
if (directoryInfo.isSymbolicLink()) {
|
|
250
|
+
const rootInfo = statSync(root, { throwIfNoEntry: false });
|
|
251
|
+
if (!rootInfo?.isDirectory()) {
|
|
252
|
+
throw new Error(`Cannot safely remove Camunda skill "${skill.name}": its user skills directory is unavailable.`);
|
|
253
|
+
}
|
|
254
|
+
const rootRealPath = realpathSync(root);
|
|
255
|
+
const parentRealPath = realpathSync(dirname(directory));
|
|
256
|
+
if (!isWithinPath(rootRealPath, parentRealPath)) {
|
|
257
|
+
throw new Error(`Cannot safely remove Camunda skill "${skill.name}": its parent directory resolves outside the user skills directory.`);
|
|
258
|
+
}
|
|
259
|
+
unlinkSync(directory);
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
if (!directoryInfo.isDirectory()) {
|
|
263
|
+
throw new Error(`Cannot safely remove Camunda skill "${skill.name}": its listed path is not a directory.`);
|
|
264
|
+
}
|
|
265
|
+
const rootInfo = statSync(root, { throwIfNoEntry: false });
|
|
266
|
+
if (!rootInfo?.isDirectory()) {
|
|
267
|
+
throw new Error(`Cannot safely remove Camunda skill "${skill.name}": its user skills directory is unavailable.`);
|
|
268
|
+
}
|
|
269
|
+
const rootRealPath = realpathSync(root);
|
|
270
|
+
const directoryRealPath = realpathSync(directory);
|
|
271
|
+
if (!isWithinPath(rootRealPath, directoryRealPath) ||
|
|
272
|
+
directoryRealPath === rootRealPath) {
|
|
273
|
+
throw new Error(`Cannot safely remove Camunda skill "${skill.name}": its directory resolves outside the user skills directory.`);
|
|
274
|
+
}
|
|
275
|
+
rmSync(directory, { recursive: true });
|
|
276
|
+
}
|
|
277
|
+
export async function runSkillInstall(harness, runner = runCommand) {
|
|
278
|
+
const installed = await listCamundaSkills(harness, runner);
|
|
279
|
+
if (installed.length === 0) {
|
|
280
|
+
requireSuccessfulSkillCommand(await runner("gh", buildSkillInstallArgs(harness)), "install");
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
const availableResult = await runner("gh", buildSkillDiscoveryArgs());
|
|
284
|
+
requireSuccessfulSkillCommand(availableResult, "list available");
|
|
285
|
+
const available = availableCamundaSkills(availableResult.stdout);
|
|
286
|
+
const installedNames = new Set(installed.map(({ name }) => name));
|
|
287
|
+
const missing = available.filter((skill) => !installedNames.has(skill));
|
|
288
|
+
const byDirectory = new Map();
|
|
289
|
+
for (const skill of installed) {
|
|
290
|
+
const skills = byDirectory.get(skill.directory) ?? [];
|
|
291
|
+
if (!skills.includes(skill.name))
|
|
292
|
+
skills.push(skill.name);
|
|
293
|
+
byDirectory.set(skill.directory, skills);
|
|
294
|
+
}
|
|
295
|
+
for (const [directory, skills] of byDirectory) {
|
|
296
|
+
requireSuccessfulSkillCommand(await runner("gh", buildSkillUpdateArgs(skills, directory)), "update");
|
|
297
|
+
}
|
|
298
|
+
for (const skill of missing) {
|
|
299
|
+
requireSuccessfulSkillCommand(await runner("gh", buildSkillInstallSpecificArgs({ harness, skill })), "install");
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
function requireSuccessfulSkillCommand(result, action) {
|
|
303
|
+
if (result.error) {
|
|
304
|
+
const errorCode = "code" in result.error && typeof result.error.code === "string"
|
|
305
|
+
? result.error.code
|
|
306
|
+
: undefined;
|
|
307
|
+
if (errorCode === "ENOENT") {
|
|
308
|
+
throw new Error("GitHub CLI was not found. Install GitHub CLI 2.90 or later from https://cli.github.com/.");
|
|
309
|
+
}
|
|
310
|
+
throw new Error(`Could not run GitHub CLI: ${result.error.message}`);
|
|
311
|
+
}
|
|
312
|
+
if (result.status === 0)
|
|
313
|
+
return;
|
|
314
|
+
const details = [result.stderr.trim(), result.stdout.trim()]
|
|
315
|
+
.filter((output) => output.length > 0)
|
|
316
|
+
.join("\n");
|
|
317
|
+
if (/unknown command\s+["']?skill\b/i.test(details)) {
|
|
318
|
+
throw new Error("`gh skill` requires GitHub CLI 2.90 or later. Upgrade GitHub CLI from https://cli.github.com/.");
|
|
319
|
+
}
|
|
320
|
+
throw new Error(`GitHub CLI failed to ${action} Camunda skills${result.status === null ? "" : ` (exit code ${result.status})`}: ${details || "No details were reported."}`);
|
|
321
|
+
}
|
|
322
|
+
//# sourceMappingURL=skills-install-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills-install-helpers.js","sourceRoot":"","sources":["../../../src/utils/command-local/skills-install-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EACN,UAAU,EACV,SAAS,EACT,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,UAAU,GACV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EACN,QAAQ,EACR,OAAO,EACP,UAAU,EACV,KAAK,EACL,QAAQ,EACR,OAAO,EACP,GAAG,EACH,KAAK,GACL,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAA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AAC,KAAK,CAAC,IAAI,KAAK,QAAQ;YAC9D,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI;YACnB,CAAC,CAAC,SAAS,CAAC;QACd,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CACd,0FAA0F,CAC1F,CAAC;QACH,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,6BAA6B,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAEhC,MAAM,OAAO,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SAC1D,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;SACrC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACrD,MAAM,IAAI,KAAK,CACd,gGAAgG,CAChG,CAAC;IACH,CAAC;IACD,MAAM,IAAI,KAAK,CACd,wBAAwB,MAAM,kBAAkB,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,MAAM,CAAC,MAAM,GAAG,KAAK,OAAO,IAAI,2BAA2B,EAAE,CAC1J,CAAC;AACH,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from "./command-local/deploy-version.ts";
|
|
2
|
+
export * from "./command-local/mcp-install-helpers.ts";
|
|
2
3
|
export * from "./command-local/mcp-proxy-helpers.ts";
|
|
3
4
|
export * from "./command-local/open-helpers.ts";
|
|
4
5
|
export * from "./command-local/process-instance-helpers.ts";
|
|
5
6
|
export * from "./command-local/search-helpers.ts";
|
|
7
|
+
export * from "./command-local/skills-install-helpers.ts";
|
|
6
8
|
export * from "./command-local/watch-constants.ts";
|
|
7
9
|
export * from "./shared/camunda-json.ts";
|
|
8
10
|
export * from "./shared/date-filter.ts";
|
|
11
|
+
export * from "./shared/deploy-resource-selection.ts";
|
|
9
12
|
export * from "./shared/ignore.ts";
|
|
10
13
|
export * from "./shared/npm-exec.ts";
|
|
11
14
|
export * from "./shared/resource-extensions.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,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,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
|
@@ -5,13 +5,16 @@
|
|
|
5
5
|
// use direct sibling paths. Enforced by
|
|
6
6
|
// tests/unit/layering-import-boundary.test.ts (Rules A and B).
|
|
7
7
|
export * from "./command-local/deploy-version.js";
|
|
8
|
+
export * from "./command-local/mcp-install-helpers.js";
|
|
8
9
|
export * from "./command-local/mcp-proxy-helpers.js";
|
|
9
10
|
export * from "./command-local/open-helpers.js";
|
|
10
11
|
export * from "./command-local/process-instance-helpers.js";
|
|
11
12
|
export * from "./command-local/search-helpers.js";
|
|
13
|
+
export * from "./command-local/skills-install-helpers.js";
|
|
12
14
|
export * from "./command-local/watch-constants.js";
|
|
13
15
|
export * from "./shared/camunda-json.js";
|
|
14
16
|
export * from "./shared/date-filter.js";
|
|
17
|
+
export * from "./shared/deploy-resource-selection.js";
|
|
15
18
|
export * from "./shared/ignore.js";
|
|
16
19
|
export * from "./shared/npm-exec.js";
|
|
17
20
|
export * from "./shared/resource-extensions.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,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,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,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"}
|
|
@@ -22,6 +22,18 @@
|
|
|
22
22
|
export declare const CAMUNDA_PROJECT_FILE = "camunda.json";
|
|
23
23
|
/** Legacy marker, superseded by {@link CAMUNDA_PROJECT_FILE}. */
|
|
24
24
|
export declare const PROCESS_APPLICATION_FILE = ".process-application";
|
|
25
|
+
/** Tool-agnostic error codes, shared with the parity fixtures. */
|
|
26
|
+
export type DeployResourcesErrorCode = "invalid-config" | "empty-selection" | "read-error";
|
|
27
|
+
/**
|
|
28
|
+
* Raised for an invalid `camunda.json` or `deployResources` configuration
|
|
29
|
+
* (including malformed JSON), an empty final selection, or a selected
|
|
30
|
+
* path that cannot be read (`read-error`). `code` matches the `error`
|
|
31
|
+
* value used by the shared parity fixtures.
|
|
32
|
+
*/
|
|
33
|
+
export declare class DeployResourcesError extends Error {
|
|
34
|
+
readonly code: DeployResourcesErrorCode;
|
|
35
|
+
constructor(code: DeployResourcesErrorCode, message: string);
|
|
36
|
+
}
|
|
25
37
|
/**
|
|
26
38
|
* Parsed contents of a `camunda.json` descriptor. Mirrors the JSON shape
|
|
27
39
|
* of the file so future fields can be added in place.
|
|
@@ -32,6 +44,14 @@ export interface CamundaProject {
|
|
|
32
44
|
/** ID of the linked project in Camunda Hub. */
|
|
33
45
|
projectId?: string;
|
|
34
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Raw value of the optional `deployResources` field, kept verbatim
|
|
49
|
+
* when the key is present (even when it is `null` or wrong-typed) so
|
|
50
|
+
* the integration that consumes it can validate strictly and report
|
|
51
|
+
* a precise error. Absent key → property absent. Validate with
|
|
52
|
+
* `parseDeployResources` from `deploy-resource-selection.ts`.
|
|
53
|
+
*/
|
|
54
|
+
deployResources?: unknown;
|
|
35
55
|
}
|
|
36
56
|
/**
|
|
37
57
|
* Decode descriptor bytes, tolerating the BOMs that Windows tooling
|
|
@@ -44,15 +64,16 @@ export declare function decodeCamundaJson(buffer: Buffer): string;
|
|
|
44
64
|
*
|
|
45
65
|
* @param content - Raw file contents (after {@link decodeCamundaJson}).
|
|
46
66
|
* @param source - Path used in error messages.
|
|
47
|
-
* @throws {
|
|
48
|
-
* not an object.
|
|
67
|
+
* @throws {DeployResourcesError} `invalid-config` when the content is not
|
|
68
|
+
* valid JSON or the top level is not an object.
|
|
49
69
|
*/
|
|
50
70
|
export declare function parseCamundaJson(content: string, source?: string): CamundaProject;
|
|
51
71
|
/**
|
|
52
72
|
* Read and parse the `camunda.json` descriptor in a directory.
|
|
53
73
|
* Returns `null` when no readable descriptor exists.
|
|
54
74
|
*
|
|
55
|
-
* @throws {
|
|
75
|
+
* @throws {DeployResourcesError} `invalid-config` when the file exists but
|
|
76
|
+
* is not valid JSON.
|
|
56
77
|
*/
|
|
57
78
|
export declare function readCamundaProject(dirPath: string): CamundaProject | null;
|
|
58
79
|
//# sourceMappingURL=camunda-json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"camunda-json.d.ts","sourceRoot":"","sources":["../../../src/utils/shared/camunda-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AAEnD,iEAAiE;AACjE,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B,uCAAuC;IACvC,GAAG,CAAC,EAAE;QACL,+CAA+C;QAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"camunda-json.d.ts","sourceRoot":"","sources":["../../../src/utils/shared/camunda-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AAEnD,iEAAiE;AACjE,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAE/D,kEAAkE;AAClE,MAAM,MAAM,wBAAwB,GACjC,gBAAgB,GAChB,iBAAiB,GACjB,YAAY,CAAC;AAEhB;;;;;GAKG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;gBAC5B,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,MAAM;CAK3D;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B,uCAAuC;IACvC,GAAG,CAAC,EAAE;QACL,+CAA+C;QAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAKxD;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,MAA6B,GACnC,cAAc,CAsChB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CASzE"}
|
|
@@ -25,6 +25,20 @@ import { isRecord, normalizeToError } from "../../core/index.js";
|
|
|
25
25
|
export const CAMUNDA_PROJECT_FILE = "camunda.json";
|
|
26
26
|
/** Legacy marker, superseded by {@link CAMUNDA_PROJECT_FILE}. */
|
|
27
27
|
export const PROCESS_APPLICATION_FILE = ".process-application";
|
|
28
|
+
/**
|
|
29
|
+
* Raised for an invalid `camunda.json` or `deployResources` configuration
|
|
30
|
+
* (including malformed JSON), an empty final selection, or a selected
|
|
31
|
+
* path that cannot be read (`read-error`). `code` matches the `error`
|
|
32
|
+
* value used by the shared parity fixtures.
|
|
33
|
+
*/
|
|
34
|
+
export class DeployResourcesError extends Error {
|
|
35
|
+
code;
|
|
36
|
+
constructor(code, message) {
|
|
37
|
+
super(message);
|
|
38
|
+
this.name = "DeployResourcesError";
|
|
39
|
+
this.code = code;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
28
42
|
/**
|
|
29
43
|
* Decode descriptor bytes, tolerating the BOMs that Windows tooling
|
|
30
44
|
* writes: UTF-8 BOM (stripped) and UTF-16LE BOM (Windows PowerShell 5.1
|
|
@@ -41,8 +55,8 @@ export function decodeCamundaJson(buffer) {
|
|
|
41
55
|
*
|
|
42
56
|
* @param content - Raw file contents (after {@link decodeCamundaJson}).
|
|
43
57
|
* @param source - Path used in error messages.
|
|
44
|
-
* @throws {
|
|
45
|
-
* not an object.
|
|
58
|
+
* @throws {DeployResourcesError} `invalid-config` when the content is not
|
|
59
|
+
* valid JSON or the top level is not an object.
|
|
46
60
|
*/
|
|
47
61
|
export function parseCamundaJson(content, source = CAMUNDA_PROJECT_FILE) {
|
|
48
62
|
// A whitespace-only file is an empty descriptor — the natural outcome
|
|
@@ -55,11 +69,11 @@ export function parseCamundaJson(content, source = CAMUNDA_PROJECT_FILE) {
|
|
|
55
69
|
parsed = JSON.parse(content);
|
|
56
70
|
}
|
|
57
71
|
catch (error) {
|
|
58
|
-
throw new
|
|
72
|
+
throw new DeployResourcesError("invalid-config", `Invalid JSON in ${source}: ${normalizeToError(error).message}. ` +
|
|
59
73
|
"camunda.json must contain a JSON object; use {} for an empty descriptor");
|
|
60
74
|
}
|
|
61
75
|
if (!isRecord(parsed)) {
|
|
62
|
-
throw new
|
|
76
|
+
throw new DeployResourcesError("invalid-config", `${source} must contain a single JSON object; use {} for an empty descriptor`);
|
|
63
77
|
}
|
|
64
78
|
const project = {};
|
|
65
79
|
const hub = parsed.hub;
|
|
@@ -67,13 +81,17 @@ export function parseCamundaJson(content, source = CAMUNDA_PROJECT_FILE) {
|
|
|
67
81
|
project.hub =
|
|
68
82
|
typeof hub.projectId === "string" ? { projectId: hub.projectId } : {};
|
|
69
83
|
}
|
|
84
|
+
if (Object.hasOwn(parsed, "deployResources")) {
|
|
85
|
+
project.deployResources = parsed.deployResources;
|
|
86
|
+
}
|
|
70
87
|
return project;
|
|
71
88
|
}
|
|
72
89
|
/**
|
|
73
90
|
* Read and parse the `camunda.json` descriptor in a directory.
|
|
74
91
|
* Returns `null` when no readable descriptor exists.
|
|
75
92
|
*
|
|
76
|
-
* @throws {
|
|
93
|
+
* @throws {DeployResourcesError} `invalid-config` when the file exists but
|
|
94
|
+
* is not valid JSON.
|
|
77
95
|
*/
|
|
78
96
|
export function readCamundaProject(dirPath) {
|
|
79
97
|
const filePath = join(dirPath, CAMUNDA_PROJECT_FILE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"camunda-json.js","sourceRoot":"","sources":["../../../src/utils/shared/camunda-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,qDAAqD;AACrD,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAEnD,iEAAiE;AACjE,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"camunda-json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