@camunda8/cli 4.7.0-alpha.24 → 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,14 @@ 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";
4332
+ var ROCKET_LAUNCH_START_VARIABLES = { missionName: "Apollo", fuelLevel: 80 };
4309
4333
  var SETUP_BLUEPRINTS = [
4310
4334
  {
4311
4335
  id: "rocket-launch",
@@ -4319,19 +4343,25 @@ var SETUP_BLUEPRINTS = [
4319
4343
  path: "1-rocket-launch"
4320
4344
  },
4321
4345
  processFile: "rocket-launch.bpmn",
4322
- // The mission decision reads these; the upstream quick-start's
4323
- // "full send" launch.
4324
- startVariables: { missionName: "Apollo", fuelLevel: 80 },
4346
+ startVariables: ROCKET_LAUNCH_START_VARIABLES,
4325
4347
  // Fully automated: setup already deployed and launched an
4326
- // instance, so the next step is looking at it. The suggestion pins
4327
- // the local profile and its <default> tenant — the session's
4328
- // active profile and tenant may point elsewhere. Two lines: && is
4329
- // a syntax error in Windows PowerShell 5.1.
4330
- nextSteps: () => [
4331
- "A Rocket Launch instance is already running on the local cluster.",
4332
- "See it:",
4333
- ' c8ctl use tenant "<default>"',
4334
- " c8ctl search process-instance --profile local"
4348
+ // instance, so the next step is looking at it. The deeplink opens
4349
+ // the started instance in Operate directly — no filter clearing.
4350
+ // The CLI lines pin the local profile (the session's active
4351
+ // profile may point elsewhere) but not the tenant: the first-run
4352
+ // audience has no session tenant, so resolution already lands on
4353
+ // <default>. The rerun carries the same start variables setup
4354
+ // used, or the mission decision incidents; the JSON is
4355
+ // single-quoted, which cmd.exe does not strip — cmd users quote
4356
+ // the other way around. The run path is quoted: the working
4357
+ // directory may contain spaces. All lines stay printable ASCII so
4358
+ // the box keeps its borders.
4359
+ nextSteps: ({ projectDir, processInstanceKey }) => [
4360
+ "Process instance is running on the local cluster.",
4361
+ `Watch it: http://localhost:8080/operate/processes/${processInstanceKey}`,
4362
+ " (login using demo / demo as username / password)",
4363
+ `Inspect it: c8ctl get process-instance ${processInstanceKey} --profile local`,
4364
+ `Run again: c8ctl run "${join4(projectDir, "rocket-launch.bpmn")}" --profile local --variables '${JSON.stringify(ROCKET_LAUNCH_START_VARIABLES)}'`
4335
4365
  ]
4336
4366
  },
4337
4367
  {
@@ -4351,15 +4381,33 @@ var SETUP_BLUEPRINTS = [
4351
4381
  processFile: "bpmn/order-process.bpmn",
4352
4382
  // The started instance stalls at its first service task until a
4353
4383
  // worker connects — starting one is the whole point of the box.
4354
- // The path is quoted: the working directory may contain spaces.
4355
- // npm install and npm start are separate lines: && is a syntax
4356
- // error in Windows PowerShell 5.1.
4357
- nextSteps: (projectDir) => [
4358
- "The order process waits for a worker. Start one:",
4359
- ` cd "${join3(projectDir, "nodejs")}"`,
4360
- " npm install",
4361
- " npm start",
4362
- "Then watch the instance complete in Operate."
4384
+ // One block per shipped worker language. Node.js and Python cd
4385
+ // into the worker directory: a bare `npm install --prefix <dir>`
4386
+ // is misread by npm on Windows as a global install of the
4387
+ // caller's directory, and the Python worker needs a virtualenv —
4388
+ // pip into an externally managed system Python fails (PEP 668).
4389
+ // Java and C# can address the project directly: -f and --project
4390
+ // share neither defect. Paths are quoted (the working directory
4391
+ // may contain spaces), every command gets its own line (&& is a
4392
+ // syntax error in Windows PowerShell 5.1), and all lines stay
4393
+ // printable ASCII so the box keeps its borders.
4394
+ nextSteps: ({ projectDir, processInstanceKey }) => [
4395
+ "Process instance is running on the local cluster.",
4396
+ "It waits at the first service task until a worker connects.",
4397
+ `Open it: http://localhost:8080/operate/processes/${processInstanceKey}`,
4398
+ " (login using demo / demo as username / password)",
4399
+ "",
4400
+ "Start a worker in your language:",
4401
+ ` Node.js: cd "${join4(projectDir, "nodejs")}"`,
4402
+ " npm install",
4403
+ " npm start",
4404
+ ` Python: cd "${join4(projectDir, "python")}"`,
4405
+ " python -m venv .venv",
4406
+ " source .venv/bin/activate # Windows: .venv\\Scripts\\activate",
4407
+ " pip install -r requirements.txt",
4408
+ " python main.py",
4409
+ ` Java: mvn -f "${join4(projectDir, "java")}" spring-boot:run`,
4410
+ ` C#: dotnet run --project "${join4(projectDir, "csharp")}"`
4363
4411
  ]
4364
4412
  }
4365
4413
  ];
@@ -4510,10 +4558,10 @@ function isBlueprintMarker(value) {
4510
4558
  return isRecord(value) && typeof value.id === "string" && Array.isArray(value.files) && value.files.every((file) => typeof file === "string");
4511
4559
  }
4512
4560
  function readMarker(directory) {
4513
- const markerPath = join3(directory, MARKER_FILE);
4561
+ const markerPath = join4(directory, MARKER_FILE);
4514
4562
  if (!existsSync3(markerPath)) return void 0;
4515
4563
  try {
4516
- const value = JSON.parse(readFileSync3(markerPath, "utf-8"));
4564
+ const value = JSON.parse(readFileSync4(markerPath, "utf-8"));
4517
4565
  if (isBlueprintMarker(value)) return { id: value.id, files: value.files };
4518
4566
  } catch {
4519
4567
  }
@@ -4524,7 +4572,7 @@ function readRemovalMarker(directory) {
4524
4572
  if (!rootInfo || rootInfo.isSymbolicLink() || !rootInfo.isDirectory()) {
4525
4573
  return void 0;
4526
4574
  }
4527
- const markerPath = join3(directory, MARKER_FILE);
4575
+ const markerPath = join4(directory, MARKER_FILE);
4528
4576
  const markerInfo = lstatSync3(markerPath, { throwIfNoEntry: false });
4529
4577
  if (!markerInfo) return void 0;
4530
4578
  if (markerInfo.isSymbolicLink() || !markerInfo.isFile()) {
@@ -4533,7 +4581,7 @@ function readRemovalMarker(directory) {
4533
4581
  { hint: "Inspect the marker manually before removing this project." }
4534
4582
  );
4535
4583
  }
4536
- const content = readFileSync3(markerPath, "utf-8");
4584
+ const content = readFileSync4(markerPath, "utf-8");
4537
4585
  let value;
4538
4586
  try {
4539
4587
  value = JSON.parse(content);
@@ -4627,7 +4675,7 @@ function hasSafeDirectoryChain(directory, candidate) {
4627
4675
  if (relativePath === "") return true;
4628
4676
  let current = root;
4629
4677
  for (const segment of relativePath.split(sep2)) {
4630
- current = join3(current, segment);
4678
+ current = join4(current, segment);
4631
4679
  const info = lstatSync3(current, { throwIfNoEntry: false });
4632
4680
  if (!info || info.isSymbolicLink() || !info.isDirectory()) return false;
4633
4681
  }
@@ -4654,7 +4702,7 @@ function removeSetupBlueprint(removal) {
4654
4702
  let missingParent = false;
4655
4703
  let unsafeParent = false;
4656
4704
  for (const segment of relativePath.split("/").slice(0, -1)) {
4657
- parent = join3(parent, segment);
4705
+ parent = join4(parent, segment);
4658
4706
  const parentInfo = lstatSync3(parent, { throwIfNoEntry: false });
4659
4707
  if (!parentInfo) {
4660
4708
  missingParent = true;
@@ -4670,7 +4718,7 @@ function removeSetupBlueprint(removal) {
4670
4718
  remainingFiles.push(relativePath);
4671
4719
  continue;
4672
4720
  }
4673
- const target = join3(parent, relativePath.split("/").at(-1) ?? "");
4721
+ const target = join4(parent, relativePath.split("/").at(-1) ?? "");
4674
4722
  if (!isWithinBlueprint(directory, target)) {
4675
4723
  throw new BlueprintScaffoldError(
4676
4724
  `Cannot safely remove the blueprint file ${relativePath} from ${directory}.`
@@ -4686,8 +4734,8 @@ function removeSetupBlueprint(removal) {
4686
4734
  }
4687
4735
  }
4688
4736
  if (remainingFiles.length === 0) {
4689
- const markerPath = join3(directory, MARKER_FILE);
4690
- if (readFileSync3(markerPath, "utf-8") !== removal.markerContent) {
4737
+ const markerPath = join4(directory, MARKER_FILE);
4738
+ if (readFileSync4(markerPath, "utf-8") !== removal.markerContent) {
4691
4739
  throw new BlueprintScaffoldError(
4692
4740
  `The blueprint marker in ${directory} changed during removal. Review it and try again.`
4693
4741
  );
@@ -4699,10 +4747,10 @@ function removeSetupBlueprint(removal) {
4699
4747
  }
4700
4748
  const parentDirectories = /* @__PURE__ */ new Set();
4701
4749
  for (const relativePath of current.marker.files) {
4702
- let parent = dirname4(join3(directory, ...relativePath.split("/")));
4750
+ let parent = dirname5(join4(directory, ...relativePath.split("/")));
4703
4751
  while (parent !== directory) {
4704
4752
  parentDirectories.add(parent);
4705
- const next = dirname4(parent);
4753
+ const next = dirname5(parent);
4706
4754
  if (next === parent) break;
4707
4755
  parent = next;
4708
4756
  }
@@ -4725,7 +4773,7 @@ function removeSetupBlueprint(removal) {
4725
4773
  };
4726
4774
  }
4727
4775
  function destinationPath(directory, relativePath) {
4728
- return join3(directory, ...relativePath.split("/"));
4776
+ return join4(directory, ...relativePath.split("/"));
4729
4777
  }
4730
4778
  async function downloadFiles({
4731
4779
  blueprint,
@@ -4755,7 +4803,7 @@ function writeFiles(directory, files, blueprint) {
4755
4803
  mkdirSync2(directory, { recursive: true });
4756
4804
  for (const file of files) {
4757
4805
  const destination = destinationPath(directory, file.relativePath);
4758
- mkdirSync2(dirname4(destination), { recursive: true });
4806
+ mkdirSync2(dirname5(destination), { recursive: true });
4759
4807
  writeFileSync2(destination, file.contents, { flag: "wx" });
4760
4808
  }
4761
4809
  const marker = {
@@ -4763,7 +4811,7 @@ function writeFiles(directory, files, blueprint) {
4763
4811
  files: files.map((file) => file.relativePath)
4764
4812
  };
4765
4813
  writeFileSync2(
4766
- join3(directory, MARKER_FILE),
4814
+ join4(directory, MARKER_FILE),
4767
4815
  `${JSON.stringify(marker, null, 2)}
4768
4816
  `,
4769
4817
  { flag: "wx" }
@@ -5201,9 +5249,10 @@ function setupPlanPayload(selected, { blueprint } = {}) {
5201
5249
  }
5202
5250
 
5203
5251
  // default-plugins/setup/prerequisites.ts
5204
- var import_semver = __toESM(require_semver2(), 1);
5205
- import { existsSync as existsSync4, readFileSync as readFileSync4 } from "node:fs";
5206
- 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";
5207
5256
  var MANUAL_SETUP_LINKS = [
5208
5257
  {
5209
5258
  label: "Run your first process without c8ctl",
@@ -5218,14 +5267,15 @@ var MANUAL_SETUP_LINKS = [
5218
5267
  url: "https://docs.camunda.io/docs/components/modeler/desktop-modeler/install-the-modeler/"
5219
5268
  }
5220
5269
  ];
5221
- function readRequiredNodeRange() {
5270
+ function readRequiredNodeRange2() {
5222
5271
  try {
5272
+ const dir = fileURLToPath3(new URL(".", import.meta.url));
5223
5273
  const packageJson = [
5224
- join4(import.meta.dirname, "..", "..", "package.json"),
5225
- join4(import.meta.dirname, "..", "..", "..", "package.json")
5274
+ join5(dir, "..", "..", "package.json"),
5275
+ join5(dir, "..", "..", "..", "package.json")
5226
5276
  ].find((candidate) => existsSync4(candidate));
5227
5277
  if (!packageJson) return void 0;
5228
- const pkg = JSON.parse(readFileSync4(packageJson, "utf-8"));
5278
+ const pkg = JSON.parse(readFileSync5(packageJson, "utf-8"));
5229
5279
  const engines = pkg && typeof pkg === "object" && "engines" in pkg ? pkg.engines : void 0;
5230
5280
  const node = engines && typeof engines === "object" && "node" in engines ? engines.node : void 0;
5231
5281
  return typeof node === "string" ? node : void 0;
@@ -5233,16 +5283,16 @@ function readRequiredNodeRange() {
5233
5283
  return void 0;
5234
5284
  }
5235
5285
  }
5236
- var REQUIRED_NODE_RANGE = readRequiredNodeRange();
5286
+ var REQUIRED_NODE_RANGE2 = readRequiredNodeRange2();
5237
5287
  function checkNodeVersion({
5238
5288
  version = process.versions.node,
5239
- range = REQUIRED_NODE_RANGE
5289
+ range = REQUIRED_NODE_RANGE2
5240
5290
  } = {}) {
5241
5291
  const title = "Node.js version";
5242
5292
  if (!range) {
5243
5293
  return { id: "node", title, ok: true, detail: `Node.js ${version}.` };
5244
5294
  }
5245
- const ok = import_semver.default.satisfies(version, range, { includePrerelease: true });
5295
+ const ok = import_semver2.default.satisfies(version, range, { includePrerelease: true });
5246
5296
  return ok ? { id: "node", title, ok, detail: `Node.js ${version}.` } : {
5247
5297
  id: "node",
5248
5298
  title,
@@ -5499,7 +5549,7 @@ async function runPrerequisites(ctx) {
5499
5549
  }
5500
5550
  }
5501
5551
  var CLI_ENTRY = (() => {
5502
- const dir = realpathSync3(import.meta.dirname);
5552
+ const dir = realpathSync3(fileURLToPath4(new URL(".", import.meta.url)));
5503
5553
  const candidates = [
5504
5554
  resolve4(dir, "..", "..", "index.js"),
5505
5555
  resolve4(dir, "..", "..", "src", "index.ts")
@@ -5509,6 +5559,7 @@ var CLI_ENTRY = (() => {
5509
5559
  function spawnC8ctl(ctx, argv, {
5510
5560
  skipStdoutLine,
5511
5561
  promoteStdoutLine,
5562
+ promoteStderrLine,
5512
5563
  stderrPassthrough = false,
5513
5564
  extraEnv
5514
5565
  } = {}) {
@@ -5532,7 +5583,7 @@ function spawnC8ctl(ctx, argv, {
5532
5583
  const err = createLineForwarder({
5533
5584
  write: (line) => ctx.logger.info(line, {
5534
5585
  stream: "stderr",
5535
- essential: stderrPassthrough
5586
+ essential: stderrPassthrough || promoteStderrLine?.(line) === true
5536
5587
  }),
5537
5588
  skip: () => false
5538
5589
  });
@@ -5661,7 +5712,9 @@ async function runClusterStart(ctx, run) {
5661
5712
  }
5662
5713
  }
5663
5714
  async function runModelerInstall(ctx) {
5664
- await spawnC8ctl(ctx, ["modeler", "install", "--quiet"]);
5715
+ await spawnC8ctl(ctx, ["modeler", "install", "--quiet"], {
5716
+ promoteStderrLine: (line) => line.includes("c8ctl modeler update")
5717
+ });
5665
5718
  }
5666
5719
  async function runBlueprintScaffold(ctx, run) {
5667
5720
  const id = run.blueprintId ?? SETUP_BLUEPRINTS[0].id;
@@ -5684,7 +5737,7 @@ async function runBlueprintDeploy(ctx, run) {
5684
5737
  if (!directory) {
5685
5738
  throw new Error("The blueprint project was not created.");
5686
5739
  }
5687
- const deployDir = join5(directory, blueprint.deployPath ?? ".");
5740
+ const deployDir = join6(directory, blueprint.deployPath ?? ".");
5688
5741
  const health = await checkLocalClusterHealth();
5689
5742
  if (!health.healthy) {
5690
5743
  throw new Error(
@@ -5697,7 +5750,7 @@ async function runBlueprintDeploy(ctx, run) {
5697
5750
  ].join("\n")
5698
5751
  );
5699
5752
  }
5700
- const deployDataDir = mkdtempSync(join5(tmpdir(), "c8ctl-setup-deploy-"));
5753
+ const deployDataDir = mkdtempSync(join6(tmpdir(), "c8ctl-setup-deploy-"));
5701
5754
  stageLocalProfile(deployDataDir);
5702
5755
  try {
5703
5756
  await spawnC8ctl(
@@ -5720,8 +5773,8 @@ async function runBlueprintDeploy(ctx, run) {
5720
5773
  } finally {
5721
5774
  rmSync3(deployDataDir, { recursive: true, force: true });
5722
5775
  }
5723
- const processFile = join5(directory, blueprint.processFile);
5724
- const processId = extractProcessId(readFileSync5(processFile, "utf-8"));
5776
+ const processFile = join6(directory, blueprint.processFile);
5777
+ const processId = extractProcessId(readFileSync6(processFile, "utf-8"));
5725
5778
  if (!processId) {
5726
5779
  throw new Error(`Could not find a process id in ${blueprint.processFile}.`);
5727
5780
  }
@@ -5734,17 +5787,17 @@ async function runBlueprintDeploy(ctx, run) {
5734
5787
  }
5735
5788
  });
5736
5789
  logger.info(`Process instance created: ${created.processInstanceKey}`);
5737
- run.instanceStarted = true;
5790
+ run.processInstanceKey = created.processInstanceKey;
5738
5791
  }
5739
5792
  function stageLocalProfile(deployDataDir) {
5740
- const profilesPath = join5(c8ctl2.getUserDataDir(), "profiles.json");
5793
+ const profilesPath = join6(c8ctl2.getUserDataDir(), "profiles.json");
5741
5794
  if (!existsSync5(profilesPath)) return;
5742
- const parsed = JSON.parse(readFileSync5(profilesPath, "utf-8"));
5795
+ const parsed = JSON.parse(readFileSync6(profilesPath, "utf-8"));
5743
5796
  const profiles = isRecord(parsed) && Array.isArray(parsed.profiles) ? parsed.profiles : [];
5744
5797
  const local = profiles.filter(isRecord).find((profile) => profile.name === DEFAULT_PROFILE);
5745
5798
  if (!local) return;
5746
5799
  writeFileSync3(
5747
- join5(deployDataDir, "profiles.json"),
5800
+ join6(deployDataDir, "profiles.json"),
5748
5801
  JSON.stringify({
5749
5802
  profiles: [{ ...local, defaultTenantId: LOCAL_TENANT_ID }]
5750
5803
  }),
@@ -6346,8 +6399,13 @@ async function runSetup(ctx, flags) {
6346
6399
  const blueprint = setupBlueprintById(
6347
6400
  run.blueprintId ?? SETUP_BLUEPRINTS[0].id
6348
6401
  );
6349
- if (run.instanceStarted) {
6350
- nextSteps.push(...blueprint.nextSteps(run.blueprintDir));
6402
+ if (run.processInstanceKey !== void 0) {
6403
+ nextSteps.push(
6404
+ ...blueprint.nextSteps({
6405
+ projectDir: run.blueprintDir,
6406
+ processInstanceKey: run.processInstanceKey
6407
+ })
6408
+ );
6351
6409
  }
6352
6410
  nextSteps.push(`Project: ${run.blueprintDir}`);
6353
6411
  nextSteps.push(`Guide: ${blueprint.guideUrl}`);
@@ -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