@devrouter/cli 0.0.24 → 0.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrouter/cli",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
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,11 +43,16 @@
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",
48
- "bench:startup": "zsh -lc 'set -euo pipefail; echo \"=== dev --help (x5) ===\"; for i in {1..5}; do /usr/bin/time -p node dist/dev.js --help >/dev/null; done; echo \"=== dev app add --help (x5) ===\"; for i in {1..5}; do /usr/bin/time -p node dist/dev.js app add --help >/dev/null; done; echo \"=== dev status --json (x3, best effort) ===\"; for i in {1..3}; do /usr/bin/time -p node dist/dev.js status --json >/dev/null || true; done'",
55
+ "bench:startup": "zsh -lc 'set -euo pipefail; echo \"=== dev --help (x5) ===\"; for i in {1..5}; do /usr/bin/time -p node dist/devrouter.js --help >/dev/null; done; echo \"=== dev app add --help (x5) ===\"; for i in {1..5}; do /usr/bin/time -p node dist/devrouter.js app add --help >/dev/null; done; echo \"=== dev status --json (x3, best effort) ===\"; for i in {1..3}; do /usr/bin/time -p node dist/devrouter.js status --json >/dev/null || true; done'",
49
56
  "typecheck": "tsc --noEmit",
50
57
  "bootstrap": "pnpm install && pnpm install:local",
51
58
  "install:local": "pnpm build && ./scripts/install-local.sh",
@@ -0,0 +1,10 @@
1
+ You are upgrading a repository that uses devrouter to version 0.0.24.
2
+
3
+ Changes in this release:
4
+ - Automatically inject `DEVCONTAINER_COMPOSE_OVERLAY` environment variable to workspace execution contexts when active.
5
+
6
+ Task:
7
+ 1) Bump `.devrouter.yml` `devrouter.version` to `0.0.24`.
8
+
9
+ Validation:
10
+ - `devrouter -V --repo <repo>` shows `0.0.24` as the local repo version.
@@ -0,0 +1,20 @@
1
+ You are upgrading a repository that uses devrouter to version 0.0.25.
2
+
3
+ Changes in this release:
4
+ - Removed all Linear workflow integrations, templates, and flags (`--with-linear`).
5
+ - Added real-time outdated CLI detection. When a repository config `.devrouter.yml` requires a version newer than the installed CLI version, devrouter prints a stderr warning on config load.
6
+ - Added a diagnostic check `repo.cli-outdated` in `devrouter doctor` to flag when the installed CLI is older than the required version.
7
+ - Cleaned up leftover `dev` / `dist/dev.js` CLI commands references in validation scripts and workspace examples.
8
+
9
+ Task:
10
+ 1) Bump `.devrouter.yml` `devrouter.version` to `0.0.25`.
11
+ 2) Refresh discoverability artifacts with `devrouter repo agents --repo <repo>`.
12
+
13
+ Validation:
14
+ - `devrouter -V --repo <repo>` shows `0.0.25` as the local repo version.
15
+ - `devrouter doctor --repo <repo>` runs successfully and reports no `repo.cli-outdated` errors if the installed CLI version is compatible.
16
+
17
+ Report:
18
+ - `.devrouter.yml` `devrouter.version` before and after
19
+ - setup, doctor, and devcontainer verification results
20
+ - unresolved risks or manual follow-ups
@@ -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