@camunda8/cli 4.7.0-alpha.25 → 4.7.0-alpha.26

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.
@@ -2027,13 +2027,14 @@ import { spawn as spawn2 } from "node:child_process";
2027
2027
  import {
2028
2028
  existsSync as existsSync5,
2029
2029
  mkdtempSync,
2030
- readFileSync as readFileSync5,
2030
+ readFileSync as readFileSync6,
2031
2031
  realpathSync as realpathSync3,
2032
2032
  rmSync as rmSync3,
2033
2033
  writeFileSync as writeFileSync3
2034
2034
  } from "node:fs";
2035
2035
  import { tmpdir } from "node:os";
2036
- import { join as join5, resolve as resolve4 } from "node:path";
2036
+ import { join as join6, resolve as resolve4 } from "node:path";
2037
+ import { fileURLToPath as fileURLToPath4 } from "node:url";
2037
2038
 
2038
2039
  // node_modules/@camunda8/orchestration-cluster-api/dist/index.js
2039
2040
  function assertConstraint(value, label, c) {
@@ -2279,6 +2280,28 @@ function renderCommandFailure(logger, message, error, { verbose = false } = {})
2279
2280
  });
2280
2281
  }
2281
2282
 
2283
+ // src/core/node-version.ts
2284
+ var import_semver = __toESM(require_semver2(), 1);
2285
+ import { readFileSync as readFileSync2 } from "node:fs";
2286
+ import { dirname as dirname2, join as join2 } from "node:path";
2287
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
2288
+ function readRequiredNodeRange() {
2289
+ try {
2290
+ const packageJson = join2(
2291
+ dirname2(fileURLToPath2(import.meta.url)),
2292
+ "..",
2293
+ "..",
2294
+ "package.json"
2295
+ );
2296
+ const pkg = JSON.parse(readFileSync2(packageJson, "utf-8"));
2297
+ const node = isRecord(pkg) && isRecord(pkg.engines) && pkg.engines.node;
2298
+ return typeof node === "string" ? node : void 0;
2299
+ } catch {
2300
+ return void 0;
2301
+ }
2302
+ }
2303
+ var REQUIRED_NODE_RANGE = readRequiredNodeRange();
2304
+
2282
2305
  // src/core/update-check.ts
2283
2306
  var CHECK_INTERVAL_MS = 60 * 60 * 1e3;
2284
2307
 
@@ -2291,7 +2314,7 @@ import {
2291
2314
  lstatSync as lstatSync2,
2292
2315
  mkdirSync,
2293
2316
  openSync,
2294
- readFileSync as readFileSync2,
2317
+ readFileSync as readFileSync3,
2295
2318
  realpathSync as realpathSync2,
2296
2319
  renameSync,
2297
2320
  rmSync as rmSync2,
@@ -2299,7 +2322,7 @@ import {
2299
2322
  writeFileSync
2300
2323
  } from "node:fs";
2301
2324
  import { homedir as homedir3 } from "node:os";
2302
- import { basename as basename2, dirname as dirname3, join as join2, resolve as resolve2 } from "node:path";
2325
+ import { basename as basename2, dirname as dirname4, join as join3, resolve as resolve2 } from "node:path";
2303
2326
  import { isDeepStrictEqual } from "node:util";
2304
2327
 
2305
2328
  // node_modules/jsonc-parser/lib/esm/impl/scanner.js
@@ -3689,7 +3712,7 @@ import {
3689
3712
  import { homedir as homedir2 } from "node:os";
3690
3713
  import {
3691
3714
  basename,
3692
- dirname as dirname2,
3715
+ dirname as dirname3,
3693
3716
  isAbsolute,
3694
3717
  posix,
3695
3718
  relative,
@@ -3785,7 +3808,7 @@ function installedCamundaSkills(stdout) {
3785
3808
  }
3786
3809
  skills.push({
3787
3810
  name: entry.skillName,
3788
- directory: dirname2(entry.path),
3811
+ directory: dirname3(entry.path),
3789
3812
  path: entry.path
3790
3813
  });
3791
3814
  }
@@ -3948,7 +3971,7 @@ function skillRemovalLocation(skill, { env = process.env, home, platform: platfo
3948
3971
  ...skill.harness === "pi" && env.PI_CODING_AGENT_DIR ? [env.PI_CODING_AGENT_DIR] : []
3949
3972
  ];
3950
3973
  const isEnvRoot = envRoots.some(
3951
- (envRoot) => resolve(envRoot) === resolve(dirname2(root))
3974
+ (envRoot) => resolve(envRoot) === resolve(dirname3(root))
3952
3975
  );
3953
3976
  if (!isEnvRoot && (!statSync(userHome, { throwIfNoEntry: false })?.isDirectory() || !isWithinPath(realpathSync(resolve(userHome)), rootRealPath))) {
3954
3977
  throw new Error(
@@ -3975,16 +3998,16 @@ function requireSuccessfulSkillCommand(result, action) {
3975
3998
  const errorCode = "code" in result.error && typeof result.error.code === "string" ? result.error.code : void 0;
3976
3999
  if (errorCode === "ENOENT") {
3977
4000
  throw new Error(
3978
- "GitHub CLI was not found. Install GitHub CLI 2.90 or later from https://cli.github.com/."
4001
+ "GitHub CLI was not found. Install GitHub CLI 2.95 or later from https://cli.github.com/."
3979
4002
  );
3980
4003
  }
3981
4004
  throw new Error(`Could not run GitHub CLI: ${result.error.message}`);
3982
4005
  }
3983
4006
  if (result.status === 0) return;
3984
4007
  const details = [result.stderr.trim(), result.stdout.trim()].filter((output) => output.length > 0).join("\n");
3985
- if (/unknown command\s+["']?skill\b/i.test(details)) {
4008
+ if (/unknown (command\s+["']?(skill|list)\b|flag:)/i.test(details)) {
3986
4009
  throw new Error(
3987
- "`gh skill` requires GitHub CLI 2.90 or later. Upgrade GitHub CLI from https://cli.github.com/."
4010
+ "`gh skill` requires GitHub CLI 2.95 or later. Upgrade GitHub CLI from https://cli.github.com/."
3988
4011
  );
3989
4012
  }
3990
4013
  throw new Error(
@@ -3996,13 +4019,13 @@ function requireSuccessfulSkillCommand(result, action) {
3996
4019
  var DOCS_URL = "https://camunda-docs.mcp.kapa.ai";
3997
4020
  function buildHarnesses() {
3998
4021
  const home = (process.platform === "win32" ? process.env.USERPROFILE : process.env.HOME) || homedir3();
3999
- const appData = process.platform === "darwin" ? join2(home, "Library", "Application Support") : process.platform === "win32" ? process.env.APPDATA || join2(home, "AppData", "Roaming") : process.env.XDG_CONFIG_HOME || join2(home, ".config");
4000
- const claude = process.env.CLAUDE_CONFIG_DIR || join2(home, ".claude");
4001
- const copilot = process.env.COPILOT_HOME || join2(home, ".copilot");
4022
+ const appData = process.platform === "darwin" ? join3(home, "Library", "Application Support") : process.platform === "win32" ? process.env.APPDATA || join3(home, "AppData", "Roaming") : process.env.XDG_CONFIG_HOME || join3(home, ".config");
4023
+ const claude = process.env.CLAUDE_CONFIG_DIR || join3(home, ".claude");
4024
+ const copilot = process.env.COPILOT_HOME || join3(home, ".copilot");
4002
4025
  const harnesses = [
4003
4026
  {
4004
4027
  id: "claude-code",
4005
- path: join2(process.env.CLAUDE_CONFIG_DIR || home, ".claude.json"),
4028
+ path: join3(process.env.CLAUDE_CONFIG_DIR || home, ".claude.json"),
4006
4029
  key: "mcpServers",
4007
4030
  directories: [claude],
4008
4031
  executable: "claude",
@@ -4010,7 +4033,7 @@ function buildHarnesses() {
4010
4033
  },
4011
4034
  {
4012
4035
  id: "github-copilot",
4013
- path: join2(copilot, "mcp-config.json"),
4036
+ path: join3(copilot, "mcp-config.json"),
4014
4037
  key: "mcpServers",
4015
4038
  directories: [copilot],
4016
4039
  executable: "copilot",
@@ -4018,17 +4041,17 @@ function buildHarnesses() {
4018
4041
  },
4019
4042
  {
4020
4043
  id: "cursor",
4021
- path: join2(home, ".cursor", "mcp.json"),
4044
+ path: join3(home, ".cursor", "mcp.json"),
4022
4045
  key: "mcpServers",
4023
- directories: [join2(home, ".cursor"), join2(appData, "Cursor")],
4046
+ directories: [join3(home, ".cursor"), join3(appData, "Cursor")],
4024
4047
  executable: "cursor",
4025
4048
  stdioType: "stdio"
4026
4049
  },
4027
4050
  {
4028
4051
  id: "vscode",
4029
- path: join2(appData, "Code", "User", "mcp.json"),
4052
+ path: join3(appData, "Code", "User", "mcp.json"),
4030
4053
  key: "servers",
4031
- directories: [join2(appData, "Code")],
4054
+ directories: [join3(appData, "Code")],
4032
4055
  executable: "code",
4033
4056
  stdioType: "stdio"
4034
4057
  }
@@ -4036,9 +4059,9 @@ function buildHarnesses() {
4036
4059
  if (process.platform === "darwin" || process.platform === "win32") {
4037
4060
  harnesses.push({
4038
4061
  id: "claude-desktop",
4039
- path: join2(appData, "Claude", "claude_desktop_config.json"),
4062
+ path: join3(appData, "Claude", "claude_desktop_config.json"),
4040
4063
  key: "mcpServers",
4041
- directories: [join2(appData, "Claude")]
4064
+ directories: [join3(appData, "Claude")]
4042
4065
  });
4043
4066
  }
4044
4067
  return harnesses;
@@ -4137,7 +4160,7 @@ function updateManagedEntry({
4137
4160
  }
4138
4161
  function readOptionalFile(path) {
4139
4162
  try {
4140
- return readFileSync2(path, "utf8");
4163
+ return readFileSync3(path, "utf8");
4141
4164
  } catch (error) {
4142
4165
  if (isRecord(error) && error.code === "ENOENT") return void 0;
4143
4166
  throw error;
@@ -4299,13 +4322,13 @@ import {
4299
4322
  lstatSync as lstatSync3,
4300
4323
  mkdirSync as mkdirSync2,
4301
4324
  readdirSync,
4302
- readFileSync as readFileSync3,
4325
+ readFileSync as readFileSync4,
4303
4326
  rmdirSync,
4304
4327
  statSync as statSync3,
4305
4328
  unlinkSync as unlinkSync2,
4306
4329
  writeFileSync as writeFileSync2
4307
4330
  } from "node:fs";
4308
- import { dirname as dirname4, isAbsolute as isAbsolute2, join as join3, relative as relative2, resolve as resolve3, sep as sep2 } from "node:path";
4331
+ import { dirname as dirname5, isAbsolute as isAbsolute2, join as join4, relative as relative2, resolve as resolve3, sep as sep2 } from "node:path";
4309
4332
  var ROCKET_LAUNCH_START_VARIABLES = { missionName: "Apollo", fuelLevel: 80 };
4310
4333
  var SETUP_BLUEPRINTS = [
4311
4334
  {
@@ -4338,7 +4361,7 @@ var SETUP_BLUEPRINTS = [
4338
4361
  `Watch it: http://localhost:8080/operate/processes/${processInstanceKey}`,
4339
4362
  " (login using demo / demo as username / password)",
4340
4363
  `Inspect it: c8ctl get process-instance ${processInstanceKey} --profile local`,
4341
- `Run again: c8ctl run "${join3(projectDir, "rocket-launch.bpmn")}" --profile local --variables '${JSON.stringify(ROCKET_LAUNCH_START_VARIABLES)}'`
4364
+ `Run again: c8ctl run "${join4(projectDir, "rocket-launch.bpmn")}" --profile local --variables '${JSON.stringify(ROCKET_LAUNCH_START_VARIABLES)}'`
4342
4365
  ]
4343
4366
  },
4344
4367
  {
@@ -4375,16 +4398,16 @@ var SETUP_BLUEPRINTS = [
4375
4398
  " (login using demo / demo as username / password)",
4376
4399
  "",
4377
4400
  "Start a worker in your language:",
4378
- ` Node.js: cd "${join3(projectDir, "nodejs")}"`,
4401
+ ` Node.js: cd "${join4(projectDir, "nodejs")}"`,
4379
4402
  " npm install",
4380
4403
  " npm start",
4381
- ` Python: cd "${join3(projectDir, "python")}"`,
4404
+ ` Python: cd "${join4(projectDir, "python")}"`,
4382
4405
  " python -m venv .venv",
4383
4406
  " source .venv/bin/activate # Windows: .venv\\Scripts\\activate",
4384
4407
  " pip install -r requirements.txt",
4385
4408
  " python main.py",
4386
- ` Java: mvn -f "${join3(projectDir, "java")}" spring-boot:run`,
4387
- ` C#: dotnet run --project "${join3(projectDir, "csharp")}"`
4409
+ ` Java: mvn -f "${join4(projectDir, "java")}" spring-boot:run`,
4410
+ ` C#: dotnet run --project "${join4(projectDir, "csharp")}"`
4388
4411
  ]
4389
4412
  }
4390
4413
  ];
@@ -4535,10 +4558,10 @@ function isBlueprintMarker(value) {
4535
4558
  return isRecord(value) && typeof value.id === "string" && Array.isArray(value.files) && value.files.every((file) => typeof file === "string");
4536
4559
  }
4537
4560
  function readMarker(directory) {
4538
- const markerPath = join3(directory, MARKER_FILE);
4561
+ const markerPath = join4(directory, MARKER_FILE);
4539
4562
  if (!existsSync3(markerPath)) return void 0;
4540
4563
  try {
4541
- const value = JSON.parse(readFileSync3(markerPath, "utf-8"));
4564
+ const value = JSON.parse(readFileSync4(markerPath, "utf-8"));
4542
4565
  if (isBlueprintMarker(value)) return { id: value.id, files: value.files };
4543
4566
  } catch {
4544
4567
  }
@@ -4549,7 +4572,7 @@ function readRemovalMarker(directory) {
4549
4572
  if (!rootInfo || rootInfo.isSymbolicLink() || !rootInfo.isDirectory()) {
4550
4573
  return void 0;
4551
4574
  }
4552
- const markerPath = join3(directory, MARKER_FILE);
4575
+ const markerPath = join4(directory, MARKER_FILE);
4553
4576
  const markerInfo = lstatSync3(markerPath, { throwIfNoEntry: false });
4554
4577
  if (!markerInfo) return void 0;
4555
4578
  if (markerInfo.isSymbolicLink() || !markerInfo.isFile()) {
@@ -4558,7 +4581,7 @@ function readRemovalMarker(directory) {
4558
4581
  { hint: "Inspect the marker manually before removing this project." }
4559
4582
  );
4560
4583
  }
4561
- const content = readFileSync3(markerPath, "utf-8");
4584
+ const content = readFileSync4(markerPath, "utf-8");
4562
4585
  let value;
4563
4586
  try {
4564
4587
  value = JSON.parse(content);
@@ -4652,7 +4675,7 @@ function hasSafeDirectoryChain(directory, candidate) {
4652
4675
  if (relativePath === "") return true;
4653
4676
  let current = root;
4654
4677
  for (const segment of relativePath.split(sep2)) {
4655
- current = join3(current, segment);
4678
+ current = join4(current, segment);
4656
4679
  const info = lstatSync3(current, { throwIfNoEntry: false });
4657
4680
  if (!info || info.isSymbolicLink() || !info.isDirectory()) return false;
4658
4681
  }
@@ -4679,7 +4702,7 @@ function removeSetupBlueprint(removal) {
4679
4702
  let missingParent = false;
4680
4703
  let unsafeParent = false;
4681
4704
  for (const segment of relativePath.split("/").slice(0, -1)) {
4682
- parent = join3(parent, segment);
4705
+ parent = join4(parent, segment);
4683
4706
  const parentInfo = lstatSync3(parent, { throwIfNoEntry: false });
4684
4707
  if (!parentInfo) {
4685
4708
  missingParent = true;
@@ -4695,7 +4718,7 @@ function removeSetupBlueprint(removal) {
4695
4718
  remainingFiles.push(relativePath);
4696
4719
  continue;
4697
4720
  }
4698
- const target = join3(parent, relativePath.split("/").at(-1) ?? "");
4721
+ const target = join4(parent, relativePath.split("/").at(-1) ?? "");
4699
4722
  if (!isWithinBlueprint(directory, target)) {
4700
4723
  throw new BlueprintScaffoldError(
4701
4724
  `Cannot safely remove the blueprint file ${relativePath} from ${directory}.`
@@ -4711,8 +4734,8 @@ function removeSetupBlueprint(removal) {
4711
4734
  }
4712
4735
  }
4713
4736
  if (remainingFiles.length === 0) {
4714
- const markerPath = join3(directory, MARKER_FILE);
4715
- if (readFileSync3(markerPath, "utf-8") !== removal.markerContent) {
4737
+ const markerPath = join4(directory, MARKER_FILE);
4738
+ if (readFileSync4(markerPath, "utf-8") !== removal.markerContent) {
4716
4739
  throw new BlueprintScaffoldError(
4717
4740
  `The blueprint marker in ${directory} changed during removal. Review it and try again.`
4718
4741
  );
@@ -4724,10 +4747,10 @@ function removeSetupBlueprint(removal) {
4724
4747
  }
4725
4748
  const parentDirectories = /* @__PURE__ */ new Set();
4726
4749
  for (const relativePath of current.marker.files) {
4727
- let parent = dirname4(join3(directory, ...relativePath.split("/")));
4750
+ let parent = dirname5(join4(directory, ...relativePath.split("/")));
4728
4751
  while (parent !== directory) {
4729
4752
  parentDirectories.add(parent);
4730
- const next = dirname4(parent);
4753
+ const next = dirname5(parent);
4731
4754
  if (next === parent) break;
4732
4755
  parent = next;
4733
4756
  }
@@ -4750,7 +4773,7 @@ function removeSetupBlueprint(removal) {
4750
4773
  };
4751
4774
  }
4752
4775
  function destinationPath(directory, relativePath) {
4753
- return join3(directory, ...relativePath.split("/"));
4776
+ return join4(directory, ...relativePath.split("/"));
4754
4777
  }
4755
4778
  async function downloadFiles({
4756
4779
  blueprint,
@@ -4780,7 +4803,7 @@ function writeFiles(directory, files, blueprint) {
4780
4803
  mkdirSync2(directory, { recursive: true });
4781
4804
  for (const file of files) {
4782
4805
  const destination = destinationPath(directory, file.relativePath);
4783
- mkdirSync2(dirname4(destination), { recursive: true });
4806
+ mkdirSync2(dirname5(destination), { recursive: true });
4784
4807
  writeFileSync2(destination, file.contents, { flag: "wx" });
4785
4808
  }
4786
4809
  const marker = {
@@ -4788,7 +4811,7 @@ function writeFiles(directory, files, blueprint) {
4788
4811
  files: files.map((file) => file.relativePath)
4789
4812
  };
4790
4813
  writeFileSync2(
4791
- join3(directory, MARKER_FILE),
4814
+ join4(directory, MARKER_FILE),
4792
4815
  `${JSON.stringify(marker, null, 2)}
4793
4816
  `,
4794
4817
  { flag: "wx" }
@@ -5226,9 +5249,10 @@ function setupPlanPayload(selected, { blueprint } = {}) {
5226
5249
  }
5227
5250
 
5228
5251
  // default-plugins/setup/prerequisites.ts
5229
- var import_semver = __toESM(require_semver2(), 1);
5230
- import { existsSync as existsSync4, readFileSync as readFileSync4 } from "node:fs";
5231
- import { join as join4 } from "node:path";
5252
+ var import_semver2 = __toESM(require_semver2(), 1);
5253
+ import { existsSync as existsSync4, readFileSync as readFileSync5 } from "node:fs";
5254
+ import { join as join5 } from "node:path";
5255
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
5232
5256
  var MANUAL_SETUP_LINKS = [
5233
5257
  {
5234
5258
  label: "Run your first process without c8ctl",
@@ -5243,14 +5267,15 @@ var MANUAL_SETUP_LINKS = [
5243
5267
  url: "https://docs.camunda.io/docs/components/modeler/desktop-modeler/install-the-modeler/"
5244
5268
  }
5245
5269
  ];
5246
- function readRequiredNodeRange() {
5270
+ function readRequiredNodeRange2() {
5247
5271
  try {
5272
+ const dir = fileURLToPath3(new URL(".", import.meta.url));
5248
5273
  const packageJson = [
5249
- join4(import.meta.dirname, "..", "..", "package.json"),
5250
- join4(import.meta.dirname, "..", "..", "..", "package.json")
5274
+ join5(dir, "..", "..", "package.json"),
5275
+ join5(dir, "..", "..", "..", "package.json")
5251
5276
  ].find((candidate) => existsSync4(candidate));
5252
5277
  if (!packageJson) return void 0;
5253
- const pkg = JSON.parse(readFileSync4(packageJson, "utf-8"));
5278
+ const pkg = JSON.parse(readFileSync5(packageJson, "utf-8"));
5254
5279
  const engines = pkg && typeof pkg === "object" && "engines" in pkg ? pkg.engines : void 0;
5255
5280
  const node = engines && typeof engines === "object" && "node" in engines ? engines.node : void 0;
5256
5281
  return typeof node === "string" ? node : void 0;
@@ -5258,16 +5283,16 @@ function readRequiredNodeRange() {
5258
5283
  return void 0;
5259
5284
  }
5260
5285
  }
5261
- var REQUIRED_NODE_RANGE = readRequiredNodeRange();
5286
+ var REQUIRED_NODE_RANGE2 = readRequiredNodeRange2();
5262
5287
  function checkNodeVersion({
5263
5288
  version = process.versions.node,
5264
- range = REQUIRED_NODE_RANGE
5289
+ range = REQUIRED_NODE_RANGE2
5265
5290
  } = {}) {
5266
5291
  const title = "Node.js version";
5267
5292
  if (!range) {
5268
5293
  return { id: "node", title, ok: true, detail: `Node.js ${version}.` };
5269
5294
  }
5270
- const ok = import_semver.default.satisfies(version, range, { includePrerelease: true });
5295
+ const ok = import_semver2.default.satisfies(version, range, { includePrerelease: true });
5271
5296
  return ok ? { id: "node", title, ok, detail: `Node.js ${version}.` } : {
5272
5297
  id: "node",
5273
5298
  title,
@@ -5524,7 +5549,7 @@ async function runPrerequisites(ctx) {
5524
5549
  }
5525
5550
  }
5526
5551
  var CLI_ENTRY = (() => {
5527
- const dir = realpathSync3(import.meta.dirname);
5552
+ const dir = realpathSync3(fileURLToPath4(new URL(".", import.meta.url)));
5528
5553
  const candidates = [
5529
5554
  resolve4(dir, "..", "..", "index.js"),
5530
5555
  resolve4(dir, "..", "..", "src", "index.ts")
@@ -5534,6 +5559,7 @@ var CLI_ENTRY = (() => {
5534
5559
  function spawnC8ctl(ctx, argv, {
5535
5560
  skipStdoutLine,
5536
5561
  promoteStdoutLine,
5562
+ promoteStderrLine,
5537
5563
  stderrPassthrough = false,
5538
5564
  extraEnv
5539
5565
  } = {}) {
@@ -5557,7 +5583,7 @@ function spawnC8ctl(ctx, argv, {
5557
5583
  const err = createLineForwarder({
5558
5584
  write: (line) => ctx.logger.info(line, {
5559
5585
  stream: "stderr",
5560
- essential: stderrPassthrough
5586
+ essential: stderrPassthrough || promoteStderrLine?.(line) === true
5561
5587
  }),
5562
5588
  skip: () => false
5563
5589
  });
@@ -5686,7 +5712,9 @@ async function runClusterStart(ctx, run) {
5686
5712
  }
5687
5713
  }
5688
5714
  async function runModelerInstall(ctx) {
5689
- await spawnC8ctl(ctx, ["modeler", "install", "--quiet"]);
5715
+ await spawnC8ctl(ctx, ["modeler", "install", "--quiet"], {
5716
+ promoteStderrLine: (line) => line.includes("c8ctl modeler update")
5717
+ });
5690
5718
  }
5691
5719
  async function runBlueprintScaffold(ctx, run) {
5692
5720
  const id = run.blueprintId ?? SETUP_BLUEPRINTS[0].id;
@@ -5709,7 +5737,7 @@ async function runBlueprintDeploy(ctx, run) {
5709
5737
  if (!directory) {
5710
5738
  throw new Error("The blueprint project was not created.");
5711
5739
  }
5712
- const deployDir = join5(directory, blueprint.deployPath ?? ".");
5740
+ const deployDir = join6(directory, blueprint.deployPath ?? ".");
5713
5741
  const health = await checkLocalClusterHealth();
5714
5742
  if (!health.healthy) {
5715
5743
  throw new Error(
@@ -5722,7 +5750,7 @@ async function runBlueprintDeploy(ctx, run) {
5722
5750
  ].join("\n")
5723
5751
  );
5724
5752
  }
5725
- const deployDataDir = mkdtempSync(join5(tmpdir(), "c8ctl-setup-deploy-"));
5753
+ const deployDataDir = mkdtempSync(join6(tmpdir(), "c8ctl-setup-deploy-"));
5726
5754
  stageLocalProfile(deployDataDir);
5727
5755
  try {
5728
5756
  await spawnC8ctl(
@@ -5745,8 +5773,8 @@ async function runBlueprintDeploy(ctx, run) {
5745
5773
  } finally {
5746
5774
  rmSync3(deployDataDir, { recursive: true, force: true });
5747
5775
  }
5748
- const processFile = join5(directory, blueprint.processFile);
5749
- const processId = extractProcessId(readFileSync5(processFile, "utf-8"));
5776
+ const processFile = join6(directory, blueprint.processFile);
5777
+ const processId = extractProcessId(readFileSync6(processFile, "utf-8"));
5750
5778
  if (!processId) {
5751
5779
  throw new Error(`Could not find a process id in ${blueprint.processFile}.`);
5752
5780
  }
@@ -5762,14 +5790,14 @@ async function runBlueprintDeploy(ctx, run) {
5762
5790
  run.processInstanceKey = created.processInstanceKey;
5763
5791
  }
5764
5792
  function stageLocalProfile(deployDataDir) {
5765
- const profilesPath = join5(c8ctl2.getUserDataDir(), "profiles.json");
5793
+ const profilesPath = join6(c8ctl2.getUserDataDir(), "profiles.json");
5766
5794
  if (!existsSync5(profilesPath)) return;
5767
- const parsed = JSON.parse(readFileSync5(profilesPath, "utf-8"));
5795
+ const parsed = JSON.parse(readFileSync6(profilesPath, "utf-8"));
5768
5796
  const profiles = isRecord(parsed) && Array.isArray(parsed.profiles) ? parsed.profiles : [];
5769
5797
  const local = profiles.filter(isRecord).find((profile) => profile.name === DEFAULT_PROFILE);
5770
5798
  if (!local) return;
5771
5799
  writeFileSync3(
5772
- join5(deployDataDir, "profiles.json"),
5800
+ join6(deployDataDir, "profiles.json"),
5773
5801
  JSON.stringify({
5774
5802
  profiles: [{ ...local, defaultTenantId: LOCAL_TENANT_ID }]
5775
5803
  }),
@@ -20,7 +20,7 @@ harnesses.
20
20
  `--skill-path` value in the same order. Unknown name/path pairs fail before
21
21
  anything is deleted.
22
22
 
23
- Requires GitHub CLI 2.90 or later; its skill commands are in preview.
23
+ Requires GitHub CLI 2.95 or later; its skill commands are in preview.
24
24
  Re-run to update the same skill directories without duplicates when upstream
25
25
  changes.
26
26