@devrouter/cli 0.0.26 → 0.0.27

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/dist/devrouter.js CHANGED
@@ -1769,7 +1769,7 @@ function loadRepoConfig(repoPath) {
1769
1769
  const config = parseConfig(parsed ?? {}, configPath);
1770
1770
  const requiredVersion = config.devrouter?.version;
1771
1771
  if (requiredVersion && !hasWarnedVersionMismatch) {
1772
- const cliVersion = true ? "0.0.26" : "0.0.0-dev";
1772
+ const cliVersion = true ? "0.0.27" : "0.0.0-dev";
1773
1773
  if (cliVersion !== "0.0.0-dev" && compareSemver(requiredVersion, cliVersion) > 0) {
1774
1774
  hasWarnedVersionMismatch = true;
1775
1775
  process.stderr.write(
@@ -2873,8 +2873,11 @@ function resolvePromptDirectory(explicitPath) {
2873
2873
  }
2874
2874
  const entryFile = process.argv[1] ? import_node_path6.default.resolve(process.argv[1]) : __filename;
2875
2875
  const entryDir = import_node_path6.default.dirname(entryFile);
2876
+ const resolvedEntryDir = import_node_fs7.default.existsSync(entryFile) ? import_node_path6.default.dirname(import_node_fs7.default.realpathSync(entryFile)) : entryDir;
2876
2877
  const candidates = [
2878
+ import_node_path6.default.resolve(resolvedEntryDir, "..", UPGRADE_PROMPTS_DIR),
2877
2879
  import_node_path6.default.resolve(entryDir, "..", UPGRADE_PROMPTS_DIR),
2880
+ import_node_path6.default.resolve(__dirname, "..", UPGRADE_PROMPTS_DIR),
2878
2881
  import_node_path6.default.resolve(__dirname, "..", "..", UPGRADE_PROMPTS_DIR),
2879
2882
  import_node_path6.default.resolve(process.cwd(), UPGRADE_PROMPTS_DIR)
2880
2883
  ];
@@ -4369,7 +4372,7 @@ async function buildDoctorReport(options = {}) {
4369
4372
  const config = runtimeConfig.config;
4370
4373
  loadedConfig = config;
4371
4374
  loadedWorkspace = runtimeConfig.workspace;
4372
- const cliVersion = true ? "0.0.26" : "0.0.0-dev";
4375
+ const cliVersion = true ? "0.0.27" : "0.0.0-dev";
4373
4376
  const configVersion = config.devrouter?.version;
4374
4377
  if (configVersion && cliVersion !== "0.0.0-dev" && compareSemver(configVersion, cliVersion) > 0) {
4375
4378
  addCheck(checks, {
@@ -8532,7 +8535,7 @@ var init_version = __esm({
8532
8535
 
8533
8536
  // src/cli.ts
8534
8537
  var import_commander = require("commander");
8535
- var CLI_VERSION = true ? "0.0.26" : "0.0.0-dev";
8538
+ var CLI_VERSION = true ? "0.0.27" : "0.0.0-dev";
8536
8539
  var VERSION_FLAGS = /* @__PURE__ */ new Set(["-V", "--version"]);
8537
8540
  function withErrorHandling(action2) {
8538
8541
  return async (...args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrouter/cli",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "Local dev routing CLI with shared Traefik reverse proxy",
5
5
  "author": "Roland Schlaefli",
6
6
  "homepage": "https://github.com/rschlaefli/devrouter#readme",
@@ -0,0 +1,21 @@
1
+ You are upgrading a repository that uses devrouter to version 0.0.27.
2
+
3
+ Changes in this release:
4
+ - Fixed bundled `upgrade-prompts/` discovery when the installed CLI is launched through npm's `.bin` symlink.
5
+ - No CLI flags, configuration schema, or workspace lifecycle behavior changed from 0.0.26.
6
+
7
+ Task:
8
+ 1) Bump `.devrouter.yml` `devrouter.version` to `0.0.27`.
9
+ 2) Keep the 0.0.26 worktree lifecycle integration unchanged.
10
+ 3) Refresh discoverability artifacts with `devrouter repo agents --repo <repo>`.
11
+
12
+ Validation:
13
+ - `devrouter -V --repo <repo>` shows installed and local version `0.0.27` without a missing `upgrade-prompts` error.
14
+ - `devrouter upgrade --repo <repo>` reads the bundled prompt catalog without an error.
15
+ - Existing `devrouter workspace ensure .` runtime and route proof still pass from a linked worktree.
16
+
17
+ Report:
18
+ - `.devrouter.yml` version before and after
19
+ - version and upgrade command results
20
+ - workspace ensure result
21
+ - unresolved risks or manual follow-ups