@devrouter/cli 0.0.22 → 0.0.23

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.22",
3
+ "version": "0.0.23",
4
4
  "description": "Local dev routing CLI with shared Traefik on macOS",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,7 +41,8 @@
41
41
  "test": "vitest run",
42
42
  "check:docs-policy": "./scripts/check-docs-policy.sh",
43
43
  "test:watch": "vitest",
44
- "demo:smoke": "./scripts/smoke-demo.sh",
44
+ "routing:smoke": "./scripts/smoke-routing.sh",
45
+ "devcontainer:smoke": "./scripts/smoke-devcontainer.sh",
45
46
  "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'",
46
47
  "typecheck": "tsc --noEmit",
47
48
  "bootstrap": "pnpm install && pnpm install:local",
@@ -0,0 +1,44 @@
1
+ You are upgrading a repository that uses devrouter to version 0.0.23.
2
+
3
+ Changes in this release:
4
+ - `dev setup --yes --json` is the first-run machine setup command for agents. It prepares devrouter-owned state such as router files, the shared `devnet` network, Traefik, and TLS certificates when mkcert is available. Without `--yes`, it reports the plan and diagnostics without mutating state.
5
+ - `dev doctor` remains the diagnostic command. It now reports stale host routes and orphaned workspace proxy routes without changing route files, and exits non-zero when any diagnostic is an error.
6
+ - `dev repo inspect --json` gathers repository facts for onboarding: package manager, scripts, likely ports, compose services, env variable names with values redacted, devcontainer presence, devrouter config, and agent guidance files.
7
+ - `dev repo devcontainer write --dry-run --json` and `dev repo devcontainer write --yes` provide a conservative Node/pnpm/Postgres devcontainer scaffold. The writer only handles the supported shape and refuses custom-file conflicts instead of overwriting them.
8
+ - `dev repo devcontainer verify --json` emits static onboarding evidence for PRs. `dev repo devcontainer verify --live --yes --json` registers proxy routes and probes HTTP routes after the devcontainer is running.
9
+ - The runnable examples now live under `examples/`: `examples/routing/` for no-devcontainer routing with `pnpm routing:smoke`, and `examples/devcontainer/` for a live DevPod/devcontainer app plus Postgres showcase with `pnpm devcontainer:smoke`.
10
+ - `dev doctor` includes more machine and devcontainer diagnostics for Docker Compose v2, mkcert, DevPod, Node/pnpm, devnet aliases, published devcontainer ports, and proxy upstream alias matches.
11
+
12
+ Task:
13
+ 1) Bump `.devrouter.yml` `devrouter.version` to `0.0.23`.
14
+ 2) Refresh discoverability artifacts with `dev repo agents --repo <repo>` if the repo commits devrouter-managed AGENTS.md sections or bundled skills.
15
+ 3) For agent-native onboarding of a Node/pnpm/Postgres repo, start with:
16
+ ```sh
17
+ dev setup --repo <repo> --yes --json
18
+ dev doctor --repo <repo> --json
19
+ dev repo inspect --repo <repo> --json
20
+ dev repo devcontainer write --repo <repo> --dry-run --json
21
+ dev repo devcontainer write --repo <repo> --yes
22
+ dev repo devcontainer verify --repo <repo> --json
23
+ ```
24
+ 4) After the devcontainer is running, register and probe routes with:
25
+ ```sh
26
+ dev repo devcontainer verify --repo <repo> --live --yes --json
27
+ ```
28
+ 5) If the repo previously referenced the root `demo/` fixture in local docs, scripts, or checks, update those references to `examples/routing/` and use `pnpm routing:smoke`.
29
+
30
+ Validation:
31
+ - `dev -V --repo <repo>` shows `0.0.23` as the local repo version.
32
+ - `dev setup --repo <repo> --yes --json` completes or reports actionable diagnostics.
33
+ - `dev doctor --repo <repo> --json` reports no errors after required prerequisites are installed.
34
+ - `dev repo inspect --repo <repo> --json` reports the expected package manager, likely app scripts, compose services, devcontainer state, and devrouter config.
35
+ - If using the managed devcontainer scaffold, `dev repo devcontainer verify --repo <repo> --json` reports the expected static evidence.
36
+ - After the devcontainer starts, `dev repo devcontainer verify --repo <repo> --live --yes --json` registers routes and probes HTTP routes successfully.
37
+ - For devrouter itself, run `pnpm check:docs-policy`, `pnpm test`, `pnpm typecheck`, `pnpm build`, `dev setup --repo ./examples/routing --yes --json`, `dev doctor --repo ./examples/routing`, `dev repo inspect --repo ./examples/routing --json`, `pnpm routing:smoke`, and `pnpm devcontainer:smoke`.
38
+
39
+ Report:
40
+ - `.devrouter.yml` `devrouter.version` before and after
41
+ - setup, doctor, inspect, and devcontainer verification results
42
+ - whether the managed scaffold was written or a custom setup was left untouched
43
+ - route URLs and TCP connection hints checked
44
+ - unresolved risks or manual follow-ups