@devrouter/cli 0.0.25 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrouter/cli",
3
- "version": "0.0.25",
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",
@@ -26,8 +26,10 @@
26
26
  "yaml": "^2.5.1"
27
27
  },
28
28
  "devDependencies": {
29
+ "@biomejs/biome": "2.5.3",
29
30
  "@types/dockerode": "^3.3.35",
30
31
  "@types/node": "^22.10.1",
32
+ "knip": "6.26.0",
31
33
  "tsup": "^8.3.5",
32
34
  "tsx": "^4.19.2",
33
35
  "typescript": "^5.7.2",
@@ -41,7 +43,12 @@
41
43
  "build": "tsup",
42
44
  "dev": "tsx src/cli.ts",
43
45
  "test": "vitest run",
46
+ "check": "biome check .",
47
+ "check:fix": "biome check --write .",
44
48
  "check:docs-policy": "./scripts/check-docs-policy.sh",
49
+ "format": "biome format --write .",
50
+ "knip": "knip",
51
+ "lint": "biome lint .",
45
52
  "test:watch": "vitest",
46
53
  "routing:smoke": "./scripts/smoke-routing.sh",
47
54
  "devcontainer:smoke": "./scripts/smoke-devcontainer.sh",
@@ -0,0 +1,27 @@
1
+ You are upgrading a repository that uses devrouter to version 0.0.26.
2
+
3
+ Changes in this release:
4
+ - Added `devrouter workspace ensure [path]` as the canonical command for starting or reconciling an existing linked worktree. It persists one stable identity, starts the exact worktree with DevPod, validates the runtime, and registers routes only after proof succeeds.
5
+ - Workspace startup now requires `.devcontainer/docker-compose.devrouter.yml` and a `devcontainer.json` compose overlay selected by `DEVCONTAINER_COMPOSE_OVERLAY`. The overlay passes `WORKSPACE` and `DEVROUTER_WORKSPACE` into the app and bind-mounts `${DEVROUTER_GIT_COMMON_DIR}` to the same absolute path so linked-worktree Git commands work.
6
+ - Workspace lifecycle now fails closed on ambiguous DevPod ownership, identity conflicts, invalid mounts/aliases, unhealthy containers, and unreachable routes. A stale existing DevPod is recreated once automatically.
7
+ - Managed Node/pnpm/Postgres devcontainer scaffolds include the required default and devrouter overlays.
8
+
9
+ Task:
10
+ 1) Bump `.devrouter.yml` `devrouter.version` to `0.0.26`.
11
+ 2) Add `.devcontainer/docker-compose.default.yml` containing `services: {}` and make `.devcontainer/devcontainer.json` select it through `${localEnv:DEVCONTAINER_COMPOSE_OVERLAY:docker-compose.default.yml}` after the base compose file.
12
+ 3) Add `.devcontainer/docker-compose.devrouter.yml` with an app-service bind mount whose source and target are both `${DEVROUTER_GIT_COMMON_DIR}`.
13
+ 4) Use `devrouter workspace ensure .` from existing linked worktrees. Keep `devrouter workspace up <branch>` for creating a new worktree and `workspace down` for teardown.
14
+ 5) Keep `trees/` ignored in each repository; new worktrees now default to `trees/<workspace>` unless `--path` is supplied.
15
+ 6) Refresh discoverability artifacts with `devrouter repo agents --repo <repo>`.
16
+
17
+ Validation:
18
+ - `devrouter -V --repo <repo>` shows `0.0.26` as the local repo version.
19
+ - From a linked worktree, `devrouter workspace ensure .` reports the exact DevPod ready and prints its routes.
20
+ - Inside that DevPod, `git rev-parse --is-inside-work-tree` succeeds.
21
+ - `devrouter workspace ls --repo <repo>` shows one persisted identity and the expected route count for the exact worktree.
22
+
23
+ Report:
24
+ - `.devrouter.yml` version before and after
25
+ - overlay and Git common-directory mount added
26
+ - ensure/runtime/route proof results
27
+ - unresolved risks or manual follow-ups
@@ -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