@devrouter/cli 0.0.50 → 0.0.52

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.50",
3
+ "version": "0.0.52",
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,40 @@
1
+ # Upgrade to devrouter 0.0.51
2
+
3
+ Devrouter can now turn an exact profile selection into repository-owned literal
4
+ bindings for CI or other automation without touching a runtime.
5
+
6
+ 1. Install `@devrouter/cli@0.0.51` on the host and bump `.devrouter.yml` to
7
+ `devrouter.version: 0.0.51`.
8
+ 2. Keep using `devrouter profile resolve` when automation only needs exact
9
+ selected resources. No consumer change is required for that command.
10
+ 3. When automation needs build arguments, readiness URLs, or other literals,
11
+ add a separate version-1 contract inside the repository and invoke
12
+ `devrouter profile plan --contract <repo-relative-yaml>`. Map every selectable
13
+ app, constrain dependency and service registries, and set the exact managed
14
+ process list for that workload.
15
+ 4. Treat bindings as data. Validate the keys expected by the consumer and pass
16
+ each value as a literal argument or input. Do not evaluate the values through
17
+ a shell or template engine.
18
+ 5. Refresh generated guidance with `devrouter repo agents` when the repository
19
+ stores Devrouter's generated `AGENTS.md` section or bundled skill.
20
+
21
+ Verification:
22
+
23
+ - Run `devrouter -V --repo <checkout>` and confirm the installed CLI and local
24
+ repository report `0.0.51`.
25
+ - With no workspace running, run `devrouter profile plan --repo <checkout>
26
+ --profile <selection> --contract <repo-relative-yaml> --output <plan.json>
27
+ --json` and require exit status zero.
28
+ - Require stdout and `<plan.json>` to contain the same schema-version-1 profile,
29
+ repository-relative `contractPath`, and expected literal `bindings`. Require
30
+ the file mode to be `0600`.
31
+ - Reject unknown schema versions, missing mappings, unexpected binding keys, and
32
+ any resource selection outside the contract instead of widening the profile.
33
+
34
+ Report template:
35
+
36
+ - CLI/config version: `0.0.51`
37
+ - Profile and contract: `<selection and repository-relative path>`
38
+ - Literal binding plan: `<passed, not used, or details>`
39
+ - Runtime side effects: `none`
40
+ - Remaining blockers: `<none or details>`
@@ -0,0 +1,34 @@
1
+ # Upgrade to devrouter 0.0.52
2
+
3
+ Managed process ownership now handles large environments correctly. Explicit
4
+ `ensure --repair` recovers a retained degraded runtime without deleting its data
5
+ or invoking provider bootstrap. Ordinary `ensure` retains its degraded-state guard.
6
+
7
+ ## Task
8
+
9
+ 1. Install the published CLI with `npm install -g @devrouter/cli@0.0.52`.
10
+ 2. Bump `devrouter.version` in the consumer `.devrouter.yml` to `0.0.52`.
11
+ 3. For an approved exact workspace recovery, inspect status and run
12
+ `devrouter ensure <checkout> --repair --json`. Omit the profile to reuse the
13
+ recorded profile. Preserve required non-secret Compose interpolation settings.
14
+ 4. Stop at ownership or configuration drift. Repair requires retained containers;
15
+ it never creates missing resources or changes the recorded profile.
16
+
17
+ ## Validation
18
+
19
+ Verify installed/configured versions with `devrouter -V --repo <checkout>`.
20
+ Repair accepts a stopped primary only with every project container explicitly
21
+ stopped and no checkout routes. It starts retained IDs, including their existing
22
+ entrypoints, then replays the current repository adapter. Owned processes may
23
+ restart when fingerprints change. Failure can leave owned resources running.
24
+
25
+ Require zero command exit status, ready services/processes, exact active route
26
+ rules and targets, and no managed drift. Check the application separately.
27
+ No live recovery is implied by installing the CLI. No schema migration or manual
28
+ state-file edit is required.
29
+
30
+ ## Report
31
+
32
+ Report installed/configured versions, exact checkout/profile, repair exit status,
33
+ managed state, application check, and remaining blockers. Distinguish source
34
+ checks from live runtime proof. Data deletion remains a separate explicit action.