@camunda8/cli 4.7.0-alpha.27 → 4.7.0-alpha.28

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.
@@ -12,8 +12,9 @@ Default c8ctl plugin that manages Camunda Desktop Modeler.
12
12
  - `c8ctl modeler update` — update through Homebrew, winget, or the direct
13
13
  release installation method. Reports when the installation is already up to
14
14
  date.
15
- - `c8ctl modeler remove` — uninstall through the matching package manager or
16
- remove the direct app/release installation. Linux file-type registrations
15
+ - `c8ctl modeler uninstall` — uninstall through the matching package manager or
16
+ remove the direct app/release installation (`modeler remove` remains a
17
+ compatibility alias). Linux file-type registrations
17
18
  are removed with Modeler's bundled XDG unregister script. Unmanaged
18
19
  installations are left untouched: direct macOS bundles in `/Applications` or
19
20
  `~/Applications` must be signed by Camunda, Windows installs must be managed by
@@ -3613,7 +3613,7 @@ function removeWindowsModeler(ctx) {
3613
3613
  verifyExpectedRemovalTarget(ctx, removalTarget);
3614
3614
  if (ctx.isDryRun) {
3615
3615
  return dryRunResult(
3616
- "modeler remove",
3616
+ "modeler uninstall",
3617
3617
  "Dry run: would remove Camunda Modeler with `winget uninstall --id Camunda.Modeler --exact --source winget`.",
3618
3618
  removalTarget
3619
3619
  );
@@ -3677,7 +3677,7 @@ async function updateLinuxModeler(ctx) {
3677
3677
  if (!installation) return noModelerInstalled();
3678
3678
  if (!existsSync(join3(installation.installDir, LINUX_EXECUTABLE))) {
3679
3679
  throw new Error(
3680
- `Camunda Modeler ${installation.version} is only partially installed: ${join3(installation.installDir, LINUX_EXECUTABLE)} is missing. Run \`c8ctl modeler remove\` to clean up, then \`c8ctl modeler install\` to install it again.`
3680
+ `Camunda Modeler ${installation.version} is only partially installed: ${join3(installation.installDir, LINUX_EXECUTABLE)} is missing. Run \`c8ctl modeler uninstall\` to clean up, then \`c8ctl modeler install\` to install it again.`
3681
3681
  );
3682
3682
  }
3683
3683
  const tempDir = mkdtempSync(join3(tmpdir(), "c8ctl-modeler-"));
@@ -3847,7 +3847,7 @@ function removeLinuxModeler(ctx) {
3847
3847
  verifyExpectedRemovalTarget(ctx, removalTarget);
3848
3848
  if (ctx.isDryRun) {
3849
3849
  return dryRunResult(
3850
- "modeler remove",
3850
+ "modeler uninstall",
3851
3851
  `Dry run: would remove Camunda Modeler ${installation.version} from ${installation.installDir} and unregister its file types.`,
3852
3852
  removalTarget
3853
3853
  );
@@ -3903,7 +3903,7 @@ async function removeMacModeler(ctx) {
3903
3903
  );
3904
3904
  }
3905
3905
  return dryRunResult(
3906
- "modeler remove",
3906
+ "modeler uninstall",
3907
3907
  "Dry run: would remove Camunda Modeler with `brew uninstall --cask camunda-modeler`.",
3908
3908
  removalTarget2
3909
3909
  );
@@ -3934,7 +3934,7 @@ async function removeMacModeler(ctx) {
3934
3934
  verifyMacModelerBundle(appPath, "remove", ctx.quiet);
3935
3935
  if (ctx.isDryRun) {
3936
3936
  return dryRunResult(
3937
- "modeler remove",
3937
+ "modeler uninstall",
3938
3938
  `Dry run: would remove the Camunda Modeler app bundle at ${appPath}.`,
3939
3939
  removalTarget
3940
3940
  );
@@ -3964,7 +3964,7 @@ async function removeDesktopModeler(ctx) {
3964
3964
  }
3965
3965
  if (process.platform === "darwin") return removeMacModeler(ctx);
3966
3966
  throw new Error(
3967
- `c8ctl modeler remove currently supports macOS, Windows, and Linux only. Download Modeler manually from ${MANUAL_DOWNLOAD_URL}`
3967
+ `c8ctl modeler uninstall currently supports macOS, Windows, and Linux only. Download Modeler manually from ${MANUAL_DOWNLOAD_URL}`
3968
3968
  );
3969
3969
  }
3970
3970
 
@@ -3986,8 +3986,12 @@ var metadata = {
3986
3986
  description: "Update Camunda Desktop Modeler to the latest stable release"
3987
3987
  },
3988
3988
  {
3989
- name: "remove",
3989
+ name: "uninstall",
3990
3990
  description: "Remove a c8ctl-managed Camunda Desktop Modeler installation"
3991
+ },
3992
+ {
3993
+ name: "remove",
3994
+ description: "Alias for uninstall"
3991
3995
  }
3992
3996
  ],
3993
3997
  examples: [
@@ -4000,7 +4004,7 @@ var metadata = {
4000
4004
  description: "Update Camunda Desktop Modeler"
4001
4005
  },
4002
4006
  {
4003
- command: "c8ctl modeler remove --dry-run",
4007
+ command: "c8ctl modeler uninstall --dry-run",
4004
4008
  description: "Preview removal of Camunda Desktop Modeler"
4005
4009
  }
4006
4010
  ]
@@ -4027,13 +4031,14 @@ async function modelerHandler(args, _flags, ctx) {
4027
4031
  const action = args[0];
4028
4032
  if (action === void 0) {
4029
4033
  logger.info(
4030
- "\nUsage: c8ctl modeler <install|update|remove>\n\nAvailable commands:\n install\n update\n remove",
4034
+ "\nUsage: c8ctl modeler <install|update|uninstall>\n\nAvailable commands:\n install\n update\n uninstall",
4031
4035
  { essential: true }
4032
4036
  );
4033
4037
  process.exitCode = 1;
4034
4038
  return;
4035
4039
  }
4036
- if (action !== "install" && action !== "update" && action !== "remove") {
4040
+ const canonicalAction = action === "remove" ? "uninstall" : action;
4041
+ if (canonicalAction !== "install" && canonicalAction !== "update" && canonicalAction !== "uninstall") {
4037
4042
  logger.error(`Unknown command: modeler ${args.join(" ")}`);
4038
4043
  logger.info('Run "c8 help" for usage information', { essential: true });
4039
4044
  process.exitCode = 1;
@@ -4043,13 +4048,13 @@ async function modelerHandler(args, _flags, ctx) {
4043
4048
  const operation = {
4044
4049
  install: installDesktopModeler,
4045
4050
  update: updateDesktopModeler,
4046
- remove: removeDesktopModeler
4047
- }[action];
4051
+ uninstall: removeDesktopModeler
4052
+ }[canonicalAction];
4048
4053
  const result = await operation({
4049
4054
  isDryRun: ctx.dryRun,
4050
4055
  logger,
4051
4056
  quiet: ctx.quiet,
4052
- ...action === "remove" ? {
4057
+ ...canonicalAction === "uninstall" ? {
4053
4058
  expectedRemovalTarget: expectedRemovalTargetFromEnvironment()
4054
4059
  } : {}
4055
4060
  });
@@ -4057,7 +4062,7 @@ async function modelerHandler(args, _flags, ctx) {
4057
4062
  kind: "dryRun",
4058
4063
  info: {
4059
4064
  dryRun: true,
4060
- command: `modeler ${action}`,
4065
+ command: `modeler ${canonicalAction}`,
4061
4066
  message: result.message,
4062
4067
  wouldChange: false
4063
4068
  }
@@ -4070,9 +4075,14 @@ async function modelerHandler(args, _flags, ctx) {
4070
4075
  logger.success(normalized.message);
4071
4076
  }
4072
4077
  } catch (error) {
4073
- renderCommandFailure(logger, `Failed to ${action} Camunda Modeler`, error, {
4074
- verbose: ctx.verbose
4075
- });
4078
+ renderCommandFailure(
4079
+ logger,
4080
+ `Failed to ${canonicalAction} Camunda Modeler`,
4081
+ error,
4082
+ {
4083
+ verbose: ctx.verbose
4084
+ }
4085
+ );
4076
4086
  process.exitCode = 1;
4077
4087
  }
4078
4088
  }
@@ -27,10 +27,10 @@ Children run pinned to text output; their progress is buffered and surfaces
27
27
  only when a step fails.
28
28
 
29
29
  Removal orchestrates the same owners: the unified preview is built from
30
- shared inspection helpers and a `modeler remove --dry-run` probe, and after
30
+ shared inspection helpers and a `modeler uninstall --dry-run` probe, and after
31
31
  one confirmation the actual teardown runs as child commands —
32
32
  `c8ctl mcp uninstall` per harness,
33
- `c8ctl skills remove --harness <harness> --yes`, and `c8ctl modeler remove`.
33
+ `c8ctl skills uninstall --harness <harness> --yes`, and `c8ctl modeler uninstall`.
34
34
 
35
35
  ## Flags
36
36
 
@@ -5666,19 +5666,19 @@ function captureC8ctlJson(argv) {
5666
5666
  async function detectModelerRemoval() {
5667
5667
  const payload = await captureC8ctlJson([
5668
5668
  "modeler",
5669
- "remove",
5669
+ "uninstall",
5670
5670
  "--dry-run"
5671
5671
  ]);
5672
5672
  if (!isRecord(payload) || typeof payload.wouldChange !== "boolean") {
5673
5673
  throw new Error(
5674
- 'modeler remove --dry-run returned an invalid response: expected a boolean "wouldChange" field.'
5674
+ 'modeler uninstall --dry-run returned an invalid response: expected a boolean "wouldChange" field.'
5675
5675
  );
5676
5676
  }
5677
5677
  if (!payload.wouldChange) return void 0;
5678
5678
  const removalTarget = payload.removalTarget;
5679
5679
  if (!isRecord(removalTarget) || typeof removalTarget.method !== "string" || removalTarget.method.length === 0 || typeof removalTarget.path !== "string" || removalTarget.path.length === 0) {
5680
5680
  throw new Error(
5681
- 'modeler remove --dry-run returned an invalid response: expected a "removalTarget" object with nonempty "method" and "path".'
5681
+ 'modeler uninstall --dry-run returned an invalid response: expected a "removalTarget" object with nonempty "method" and "path".'
5682
5682
  );
5683
5683
  }
5684
5684
  return {
@@ -6001,7 +6001,7 @@ async function executePlan(ctx, selected, blueprintId, { color }) {
6001
6001
  function modelerRemovalLine(message) {
6002
6002
  const match = /^Dry run: would remove (.+)$/.exec(message);
6003
6003
  if (match) return `Remove ${match[1]}`;
6004
- return `Remove Camunda Desktop Modeler with \`c8ctl modeler remove\` (${message})`;
6004
+ return `Remove Camunda Desktop Modeler with \`c8ctl modeler uninstall\` (${message})`;
6005
6005
  }
6006
6006
  function setupRemovalPreview(inventory, stopCluster) {
6007
6007
  const items = [];
@@ -6182,7 +6182,7 @@ async function applySetupRemoval(ctx, inventory, stopCluster) {
6182
6182
  ctx,
6183
6183
  [
6184
6184
  "skills",
6185
- "remove",
6185
+ "uninstall",
6186
6186
  ...names,
6187
6187
  "--harness",
6188
6188
  harness,
@@ -6202,7 +6202,7 @@ async function applySetupRemoval(ctx, inventory, stopCluster) {
6202
6202
  }
6203
6203
  if (inventory.modeler) {
6204
6204
  try {
6205
- await spawnC8ctl(ctx, ["modeler", "remove"], {
6205
+ await spawnC8ctl(ctx, ["modeler", "uninstall"], {
6206
6206
  promoteStdoutLine: (line) => line.includes("Modeler"),
6207
6207
  // Registration-cleanup warnings and failure diagnostics ride
6208
6208
  // stderr — keep them visible in quiet removal runs.
@@ -6465,7 +6465,7 @@ A run without a selection (piped output, CI) installs nothing unless you pass --
6465
6465
 
6466
6466
  Exit code 0: every selected setup step succeeded, or nothing was installed for lack of a go-ahead (wizard cancelled with Escape; a piped, --quiet or JSON-mode run without --yes; --json or --dry-run printing the plan). Ctrl+C ends the wizard by signal (130 on POSIX shells). A re-run reuses finished work where possible; the deploy, process start and skills install repeat by design. Exit code 1: arguments failed validation, or a step failed \u2014 other eligible steps still ran, while dependents (and the deploy finale after any failure) were skipped.
6467
6467
 
6468
- --remove shows setup-managed MCP entries, Camunda skills, a c8ctl-managed Desktop Modeler installation, and marker-listed blueprint files before removing them. Confirm in the interactive prompt or pass --yes in non-interactive use. --json and --dry-run print only the removal preview. Removal runs the owning commands: mcp uninstall, skills remove, and modeler remove. Local edits in skill folders and listed blueprint files are removed; untracked blueprint files are kept. --remove cannot be combined with --modeler, --no-modeler, or --docs-mcp.
6468
+ --remove shows setup-managed MCP entries, Camunda skills, a c8ctl-managed Desktop Modeler installation, and marker-listed blueprint files before removing them. Confirm in the interactive prompt or pass --yes in non-interactive use. --json and --dry-run print only the removal preview. Removal runs the owning commands: mcp uninstall, skills uninstall, and modeler uninstall. Local edits in skill folders and listed blueprint files are removed; untracked blueprint files are kept. --remove cannot be combined with --modeler, --no-modeler, or --docs-mcp.
6469
6469
 
6470
6470
  --stop-cluster is available only with --remove. It stops the local cluster without purging runtime data or deleting downloaded binaries.
6471
6471
 
@@ -12,9 +12,10 @@ harnesses.
12
12
  GitHub CLI agent ID.
13
13
  - `c8ctl skills list [--harness <agent-id>]` — list installed Camunda skills
14
14
  and their harnesses and paths.
15
- - `c8ctl skills remove [name...] [--skill-path <path>...] [--harness <agent-id>]`
15
+ - `c8ctl skills uninstall [name...] [--skill-path <path>...] [--harness <agent-id>]`
16
16
  — preview and remove installed Camunda skills from the detected harnesses
17
- or one selected harness. Naming skills removes matching installations; an
17
+ or one selected harness (`skills remove` remains a compatibility alias).
18
+ Naming skills removes matching installations; an
18
19
  unknown name fails before anything is deleted. To select one installation
19
20
  when a name exists at multiple paths, pair each positional name with one
20
21
  `--skill-path` value in the same order. Unknown name/path pairs fail before
@@ -2698,7 +2698,7 @@ var metadata = {
2698
2698
  Requires GitHub CLI 2.95 or later; its skill commands are in preview.
2699
2699
  Re-run to update the same skill directories without duplicates when upstream changes. Local edits to up-to-date skills are preserved; upstream updates may replace edited files.
2700
2700
  To restore one skill's upstream files, use \`gh skill update --force --dir <skills-root> <skill-name>\`; pass the parent skills directory (for example \`~/.claude/skills\`), not the listed skill directory. Find names with \`gh skill list --scope user --agent <agent-id>\`. Extra local files are retained.
2701
- Use \`skills list\` to inspect installed skills and \`skills remove\` to remove them. Removal deletes the full skill directories, including local edits. Name one or more skills to remove only those; unknown names fail before anything is deleted. When a name is installed at multiple paths, pair each positional name with a matching \`--skill-path\` value to remove only that installation. Use a GitHub CLI agent ID for --harness; see \`gh skill install --help\` for supported IDs. Pass \`--yes\` for non-interactive removal; \`--dry-run\` previews without deleting.`,
2701
+ Use \`skills list\` to inspect installed skills and \`skills uninstall\` to remove them (\`skills remove\` remains a compatibility alias). Removal deletes the full skill directories, including local edits. Name one or more skills to remove only those; unknown names fail before anything is deleted. When a name is installed at multiple paths, pair each positional name with a matching \`--skill-path\` value to remove only that installation. Use a GitHub CLI agent ID for --harness; see \`gh skill install --help\` for supported IDs. Pass \`--yes\` for non-interactive removal; \`--dry-run\` previews without deleting.`,
2702
2702
  subcommands: [
2703
2703
  {
2704
2704
  name: "install",
@@ -2709,8 +2709,12 @@ Use \`skills list\` to inspect installed skills and \`skills remove\` to remove
2709
2709
  description: "List installed Camunda skills by harness"
2710
2710
  },
2711
2711
  {
2712
- name: "remove",
2712
+ name: "uninstall",
2713
2713
  description: "Remove installed Camunda skills"
2714
+ },
2715
+ {
2716
+ name: "remove",
2717
+ description: "Alias for uninstall"
2714
2718
  }
2715
2719
  ],
2716
2720
  examples: [
@@ -2731,15 +2735,15 @@ Use \`skills list\` to inspect installed skills and \`skills remove\` to remove
2731
2735
  description: "List installed Camunda skills by harness"
2732
2736
  },
2733
2737
  {
2734
- command: "c8ctl skills remove --dry-run",
2738
+ command: "c8ctl skills uninstall --dry-run",
2735
2739
  description: "Preview Camunda skills removal"
2736
2740
  },
2737
2741
  {
2738
- command: "c8ctl skills remove camunda-c8ctl --yes",
2742
+ command: "c8ctl skills uninstall camunda-c8ctl --yes",
2739
2743
  description: "Remove only the named Camunda skills"
2740
2744
  },
2741
2745
  {
2742
- command: "c8ctl skills remove --harness claude-code --yes",
2746
+ command: "c8ctl skills uninstall --harness claude-code --yes",
2743
2747
  description: "Remove Camunda skills from Claude Code"
2744
2748
  }
2745
2749
  ]
@@ -2827,7 +2831,7 @@ async function removeSkills(rawHarness, extraArgs, rawSkillPaths, ctx) {
2827
2831
  try {
2828
2832
  if (ctx.unrecognizedFlags && ctx.unrecognizedFlags.length > 0) {
2829
2833
  throw new Error(
2830
- `Unknown flag${ctx.unrecognizedFlags.length === 1 ? "" : "s"} ${ctx.unrecognizedFlags.join(", ")} for 'skills remove'. Only --harness and --skill-path are supported removal selectors; fix or remove the flag before deleting skills.`
2834
+ `Unknown flag${ctx.unrecognizedFlags.length === 1 ? "" : "s"} ${ctx.unrecognizedFlags.join(", ")} for 'skills uninstall'. Only --harness and --skill-path are supported removal selectors; fix or remove the flag before deleting skills.`
2831
2835
  );
2832
2836
  }
2833
2837
  const swallowed = ctx.suspiciousFlagValues?.[0];
@@ -2897,7 +2901,7 @@ async function removeSkills(rawHarness, extraArgs, rawSkillPaths, ctx) {
2897
2901
  path
2898
2902
  }));
2899
2903
  const preview = {
2900
- command: "skills remove",
2904
+ command: "skills uninstall",
2901
2905
  action: "remove",
2902
2906
  preview: true,
2903
2907
  items
@@ -2910,7 +2914,7 @@ async function removeSkills(rawHarness, extraArgs, rawSkillPaths, ctx) {
2910
2914
  if (ctx.outputMode === "json") {
2911
2915
  emitRowsJson(
2912
2916
  ctx,
2913
- { command: "skills remove", harnesses, removed: [] },
2917
+ { command: "skills uninstall", harnesses, removed: [] },
2914
2918
  []
2915
2919
  );
2916
2920
  } else {
@@ -2959,7 +2963,7 @@ async function removeSkills(rawHarness, extraArgs, rawSkillPaths, ctx) {
2959
2963
  const command = [
2960
2964
  "c8ctl",
2961
2965
  "skills",
2962
- "remove",
2966
+ "uninstall",
2963
2967
  ...requestedNames,
2964
2968
  ...requestedHarness ? ["--harness", requestedHarness] : [],
2965
2969
  "--yes"
@@ -2986,7 +2990,7 @@ async function removeSkills(rawHarness, extraArgs, rawSkillPaths, ctx) {
2986
2990
  throw new Error(
2987
2991
  `The installed-skills inventory changed after the preview: ${stale.map((skill) => `"${skill.name}" (${skill.path})`).join(
2988
2992
  ", "
2989
- )}. Run "c8ctl skills remove" again for a fresh preview before deleting.`
2993
+ )}. Run "c8ctl skills uninstall" again for a fresh preview before deleting.`
2990
2994
  );
2991
2995
  }
2992
2996
  const removed = [];
@@ -3002,7 +3006,7 @@ async function removeSkills(rawHarness, extraArgs, rawSkillPaths, ctx) {
3002
3006
  if (ctx.outputMode === "json") {
3003
3007
  emitRowsJson(
3004
3008
  ctx,
3005
- { command: "skills remove", removed: skillRows(removed) },
3009
+ { command: "skills uninstall", removed: skillRows(removed) },
3006
3010
  skillRows(removed)
3007
3011
  );
3008
3012
  } else {
@@ -3027,7 +3031,7 @@ async function removeSkills(rawHarness, extraArgs, rawSkillPaths, ctx) {
3027
3031
  }
3028
3032
  if (failures.length > 0) process.exitCode = 1;
3029
3033
  } catch (error) {
3030
- renderCommandFailure(logger, "Failed to skills remove", error, {
3034
+ renderCommandFailure(logger, "Failed to skills uninstall", error, {
3031
3035
  verbose: ctx.verbose
3032
3036
  });
3033
3037
  process.exitCode = 1;
@@ -3036,16 +3040,18 @@ async function removeSkills(rawHarness, extraArgs, rawSkillPaths, ctx) {
3036
3040
  async function skillsHandler(args, flags, ctx) {
3037
3041
  if (!ctx) throw new Error("skills requires the plugin host context");
3038
3042
  const { logger } = ctx;
3039
- if (args[0] !== "remove" && flags?.["skill-path"] !== void 0) {
3040
- logger.error("--skill-path can only be used with 'skills remove'.");
3043
+ const subcommand = args[0];
3044
+ const isUninstall = subcommand === "uninstall" || subcommand === "remove";
3045
+ if (!isUninstall && flags?.["skill-path"] !== void 0) {
3046
+ logger.error("--skill-path can only be used with 'skills uninstall'.");
3041
3047
  process.exitCode = 1;
3042
3048
  return;
3043
3049
  }
3044
- if (args[0] === "list") {
3050
+ if (subcommand === "list") {
3045
3051
  await listSkills(flags?.harness, ctx);
3046
3052
  return;
3047
3053
  }
3048
- if (args[0] === "remove") {
3054
+ if (isUninstall) {
3049
3055
  await removeSkills(
3050
3056
  flags?.harness,
3051
3057
  args.slice(1),
@@ -3054,10 +3060,10 @@ async function skillsHandler(args, flags, ctx) {
3054
3060
  );
3055
3061
  return;
3056
3062
  }
3057
- if (args[0] !== "install") {
3058
- if (args[0] === void 0) {
3063
+ if (subcommand !== "install") {
3064
+ if (subcommand === void 0) {
3059
3065
  logger.info(
3060
- "\nUsage: c8ctl skills <install|list|remove> [--harness <agent-id>]\n\nAvailable commands:\n install\n list\n remove",
3066
+ "\nUsage: c8ctl skills <install|list|uninstall> [--harness <agent-id>]\n\nAvailable commands:\n install\n list\n uninstall",
3061
3067
  {
3062
3068
  essential: true
3063
3069
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda8/cli",
3
- "version": "4.7.0-alpha.27",
3
+ "version": "4.7.0-alpha.28",
4
4
  "description": "Camunda 8 CLI - minimal-dependency CLI for Camunda 8 operations",
5
5
  "type": "module",
6
6
  "engines": {