@devrouter/cli 0.5.6 → 0.6.0

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.5.6",
3
+ "version": "0.6.0",
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",
@@ -12,12 +12,17 @@
12
12
  "files": [
13
13
  "bin",
14
14
  "dist",
15
- "upgrade-prompts"
15
+ "upgrade-prompts",
16
+ "assets/preview"
16
17
  ],
17
18
  "type": "commonjs",
18
19
  "engines": {
19
20
  "node": ">=24"
20
21
  },
22
+ "exports": {
23
+ "./preview/gitlab-ingress": "./dist/devrouter-preview-gitlab-ingress.js",
24
+ "./*": "./*"
25
+ },
21
26
  "bin": {
22
27
  "devrouter": "dist/devrouter.js",
23
28
  "devrouter-process": "bin/devrouter-process"
@@ -47,6 +52,9 @@
47
52
  "dev": "tsx src/cli.ts",
48
53
  "test": "vitest run && pnpm test:process",
49
54
  "test:package": "./scripts/package-smoke.sh",
55
+ "qualify:preview-northflank": "node --import tsx scripts/qualify-preview-northflank.ts",
56
+ "qualify:preview-forge": "node --import tsx scripts/qualify-preview-forge.ts",
57
+ "qualify:preview-control": "node --import tsx scripts/qualify-preview-control.ts",
50
58
  "qualify:lifecycle": "node --import tsx scripts/qualify-lifecycle.ts",
51
59
  "qualify:capacity": "node --import tsx scripts/qualify-capacity.ts",
52
60
  "qualify:controller": "node --import tsx scripts/qualify-controller.ts",
@@ -0,0 +1,57 @@
1
+ # Upgrade to devrouter 0.6.0
2
+
3
+ This release adds experimental, opt-in remote preview planning and installed
4
+ controller integrations for GitHub and GitLab, with Northflank as the first
5
+ provider. It also invalidates controller authority across short host sleeps.
6
+ Local routing and profile configuration retain their existing behavior.
7
+
8
+ ## Task
9
+
10
+ Install the published 0.6.0 CLI and inspect `devrouter upgrade 0.6.0`.
11
+ There is no mandatory consumer schema migration. Bump `devrouter.version` only
12
+ within an authorized consumer adaptation, and refresh generated agent guidance
13
+ with `devrouter repo agents` when that repository carries it.
14
+
15
+ Remote preview adoption is separate from a CLI upgrade. `.devrouter.yml` retains
16
+ local routing and profile membership; `.devrouter.preview.yml` declares remote
17
+ resource bindings. Read `docs/PREVIEWS.md` in the release source before adopting
18
+ previews. Use `preview init` without `--write` to inspect a scaffold, or
19
+ `preview plan --list --json` and `preview plan --alias <name> --json` when a
20
+ reviewed manifest already exists. Offline planning requires no cloud credentials
21
+ or application runtime and does not authorize deployment.
22
+
23
+ Installed integrations require reviewed private policy, durable state, scoped
24
+ credentials and installation-specific qualification. GitHub integration generation
25
+ requires full immutable commit SHAs for both controller and policy references;
26
+ use the release commit SHA for the controller. GitLab callers pin the controller
27
+ commit and a controller image digest containing the reviewed policy. Before
28
+ creating or exposing a trigger, set the controller project's pipeline-variable
29
+ minimum role to `no_one_allowed` and verify it with
30
+ `preview doctor --live --installation <file>`. Installing this npm package alone
31
+ does not install a PR-comment workflow or qualify native infrastructure.
32
+ Keep admission disabled until each required native proof and acceptance check
33
+ passes. Provider output commands must be bounded, read-only and idempotent;
34
+ client timeout does not terminate the remote command.
35
+
36
+ ## Validation
37
+
38
+ 1. Run `devrouter -V` in the consumer checkout and confirm installed 0.6.0.
39
+ Inspect the adaptation prompt and run existing static configuration checks.
40
+ 2. If preview adoption is authorized and a reviewed manifest exists, run offline
41
+ alias listing and planning. Account for every selected profile member and
42
+ intentional omission; an incomplete or unbound plan cannot authorize effects.
43
+ 3. For separately authorized controller activation, verify forge-specific
44
+ controller and policy pins, scoped credentials, durable state and every native
45
+ admission proof before allocation. Source tests and a successful offline plan
46
+ establish neither cloud readiness nor viewer access.
47
+ 4. Use the consumer's focused checks for any actual source adaptation. This
48
+ metadata upgrade and offline planning do not require an application runtime.
49
+ If an authorized live check touches a runtime, stop its exact checkout and
50
+ verify provider stopped plus zero owned routes unless explicitly kept running.
51
+
52
+ ## Report
53
+
54
+ Report installed version and executable, consumer changes, offline plan results,
55
+ controller and policy pins when applicable, qualification still pending, and the
56
+ outcome of any separately authorized live checks. Distinguish CLI publication,
57
+ installation activation and working application acceptance.