c8ctl-plugin-nano 1.15.0 → 1.16.0

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.
Files changed (2) hide show
  1. package/c8ctl-plugin.js +9 -35
  2. package/package.json +8 -8
package/c8ctl-plugin.js CHANGED
@@ -120,15 +120,6 @@ const PROCESSOS_STATE_FILE = 'processos.json';
120
120
  const PROCESSOS_DEFAULT_PORT = 8090;
121
121
  const DEFAULT_NANO_URL = 'http://localhost:8080';
122
122
 
123
- // Guided-journey deep links (ADR 0049 §2). The console renders a first-run tour
124
- // chosen by `…/console?tour=<journeyId>`, and the *command the user ran* already
125
- // encodes the persona — so the CLI bakes the journey into the console URL it
126
- // prints rather than making the console guess. These ids are a contract with the
127
- // console (`console/src/lib/tour`): an unknown id is silently ignored, so they
128
- // are asserted verbatim in the tests.
129
- const JOURNEY_LOCALDEV = 'localdev';
130
- const JOURNEY_AGENTIC_AUTHOR = 'agentic-author';
131
-
132
123
  // Passive update notifier (npm-style): refresh the latest published version
133
124
  // from the registry in a detached background process at most once per day, and
134
125
  // surface a one-line "update available" notice at most once per day. Never
@@ -459,27 +450,15 @@ function liveNodeCount(state) {
459
450
  }
460
451
 
461
452
  /**
462
- * Compose a web-console URL for a node's base URL, optionally carrying a guided
463
- * journey (`?tour=<id>`, ADR 0049 §2). Never hardcodes a port: `baseUrl` is the
464
- * real address the node came up on.
465
- */
466
- function webConsoleUrl(baseUrl, journey) {
467
- const base = `${baseUrl}/console`;
468
- return journey ? `${base}?tour=${encodeURIComponent(journey)}` : base;
469
- }
470
-
471
- /**
472
- * Base URL of the running cluster the user would actually open: the first
473
- * still-alive node, falling back to the first recorded node, then to the default
474
- * gateway URL when no cluster has been started. Used by hire/work, which surface
475
- * a console link for the agentic-SDLC journey.
453
+ * Compose a web-console URL for a node's base URL. Never hardcodes a port:
454
+ * `baseUrl` is the real address the node came up on.
455
+ *
456
+ * No longer carries a `?tour=<id>` deep link: onboarding is chosen in the
457
+ * console's own startup persona panel (nano-bpm #464), not sprayed across every
458
+ * command's output.
476
459
  */
477
- function runningConsoleBaseUrl(state = readState()) {
478
- if (state && Array.isArray(state.nodes) && state.nodes.length > 0) {
479
- const alive = state.nodes.find((n) => isPidAlive(n.pid));
480
- return (alive || state.nodes[0]).url;
481
- }
482
- return DEFAULT_NANO_URL;
460
+ function webConsoleUrl(baseUrl) {
461
+ return `${baseUrl}/console`;
483
462
  }
484
463
 
485
464
  /** Probe a node's always-on GET /v2/topology endpoint for reachability. */
@@ -861,7 +840,7 @@ async function printSummary(state) {
861
840
  console.log(` REST API ${entry.url}/v2`);
862
841
  console.log(` Topology ${entry.url}/v2/topology`);
863
842
  if (hasConsole) {
864
- console.log(` Web console ${webConsoleUrl(entry.url, JOURNEY_LOCALDEV)}`);
843
+ console.log(` Web console ${webConsoleUrl(entry.url)}`);
865
844
  console.log(` User guide ${entry.url}/docs`);
866
845
  }
867
846
  if (state.workspaceDir) {
@@ -1662,7 +1641,6 @@ async function hireWorker(req, flags) {
1662
1641
  if (envKeys.length > 0) logger.info(` env: ${envKeys.join(', ')}`);
1663
1642
  logger.info(` job types (${matrix.length}): ${matrix.join(' ')}`);
1664
1643
  logger.info(`Put it to work with: c8ctl nano work ${name}`);
1665
- logger.info(`Open the console: ${webConsoleUrl(runningConsoleBaseUrl(), JOURNEY_AGENTIC_AUTHOR)}`);
1666
1644
  }
1667
1645
 
1668
1646
  /**
@@ -2707,7 +2685,6 @@ async function workAgent(req, flags) {
2707
2685
  const extraNote = extraJobTypes.length > 0 ? ` (${extraJobTypes.length} via --job-type)` : '';
2708
2686
  logger.info(` listening on ${jobTypes.length} job type(s)${extraNote}: ${jobTypes.join(' ')}`);
2709
2687
  logger.info(` max parallel: ${maxParallelJobs}; job timeout: ${jobTimeoutMs}ms`);
2710
- logger.info(` console: ${webConsoleUrl(runningConsoleBaseUrl(), JOURNEY_AGENTIC_AUTHOR)}`);
2711
2688
  logger.info('Polling for work — press Ctrl-C to stop.');
2712
2689
 
2713
2690
  const workers = jobTypes.map((jobType) =>
@@ -4240,10 +4217,7 @@ export { resolveBinary, findBinary, launcherEnvMarkers };
4240
4217
  export { buildNpmInvocation };
4241
4218
  export {
4242
4219
  webConsoleUrl,
4243
- runningConsoleBaseUrl,
4244
4220
  hireWorker,
4245
- JOURNEY_LOCALDEV,
4246
- JOURNEY_AGENTIC_AUTHOR,
4247
4221
  };
4248
4222
  export {
4249
4223
  normalizeTaskEnvelope,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c8ctl-plugin-nano",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "type": "module",
5
5
  "description": "c8ctl plugin to start, inspect, and stop a local Nano BPM (nanobpmn) cluster",
6
6
  "main": "c8ctl-plugin.js",
@@ -49,12 +49,12 @@
49
49
  "semantic-release": "^25.0.3"
50
50
  },
51
51
  "optionalDependencies": {
52
- "@nanobpm/c8ctl-plugin-nano-darwin-arm64": "1.15.0",
53
- "@nanobpm/c8ctl-plugin-nano-darwin-x64": "1.15.0",
54
- "@nanobpm/c8ctl-plugin-nano-linux-x64": "1.15.0",
55
- "@nanobpm/c8ctl-plugin-nano-linux-arm64": "1.15.0",
56
- "@nanobpm/c8ctl-plugin-nano-linux-armv7": "1.15.0",
57
- "@nanobpm/c8ctl-plugin-nano-linux-armv6": "1.15.0",
58
- "@nanobpm/c8ctl-plugin-nano-win32-x64": "1.15.0"
52
+ "@nanobpm/c8ctl-plugin-nano-darwin-arm64": "1.16.0",
53
+ "@nanobpm/c8ctl-plugin-nano-darwin-x64": "1.16.0",
54
+ "@nanobpm/c8ctl-plugin-nano-linux-x64": "1.16.0",
55
+ "@nanobpm/c8ctl-plugin-nano-linux-arm64": "1.16.0",
56
+ "@nanobpm/c8ctl-plugin-nano-linux-armv7": "1.16.0",
57
+ "@nanobpm/c8ctl-plugin-nano-linux-armv6": "1.16.0",
58
+ "@nanobpm/c8ctl-plugin-nano-win32-x64": "1.16.0"
59
59
  }
60
60
  }