show-me-the-env 0.92.0 → 0.93.1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "show-me-the-env",
|
|
3
3
|
"owner": {
|
|
4
4
|
"name": "LilMGenius"
|
|
5
5
|
},
|
|
@@ -8,10 +8,14 @@
|
|
|
8
8
|
},
|
|
9
9
|
"plugins": [
|
|
10
10
|
{
|
|
11
|
-
"name": "
|
|
11
|
+
"name": "show-me-the-env",
|
|
12
12
|
"source": "./plugins/win-hooks",
|
|
13
13
|
"description": "Windows auto-patcher for vibe coders.",
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.18.0"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "win-hooks",
|
|
18
|
+
"source": "./plugins/win-hooks"
|
|
15
19
|
}
|
|
16
20
|
]
|
|
17
21
|
}
|
package/README.md
CHANGED
|
@@ -1,29 +1,46 @@
|
|
|
1
1
|
# show-me-the-env
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
### Show me the env: `agenv` shows what your AI coding environment is made of, keeps it in a git repository you own, and brings it back on the next machine.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
`agenv` sets up a new Windows or Linux machine with the agent CLIs, settings, plugins and skills your last one had. Every change is shown first as a plan with a short hash, its digest, and nothing is written until you approve that digest.
|
|
6
|
+
|
|
7
|
+
Status: 0.x and still changing; every version is tagged, released and published to npm as `show-me-the-env`, verified on fresh Windows 11 and Ubuntu 24.04 virtual machines, not yet verified on macOS.
|
|
6
8
|
|
|
7
9
|

|
|
8
10
|
|
|
9
|
-
The capture
|
|
11
|
+
The capture is the window `agenv ui` opens with its default settings.
|
|
10
12
|
|
|
11
|
-
##
|
|
13
|
+
## Install
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
| Linux x64 | verified on a clean guest restored from its base snapshot (Ubuntu 24.04.5 LTS); the native binary needs the `libatomic1` package first |
|
|
17
|
-
| macOS | unverified: macOS may only be virtualized on Apple hardware under Apple's license, and the validation lab is Hyper-V on a Windows host, so no macOS guest exists |
|
|
15
|
+
```sh
|
|
16
|
+
npx show-me-the-env doctor --gaps
|
|
17
|
+
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
That runs the package's one command, `agenv`, with Node 22 or newer, and changes nothing.
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
- `npm install -g show-me-the-env` keeps `agenv` on your PATH for the Quickstart below.
|
|
22
|
+
- `npx -y skills@latest add LilMGenius/show-me-the-env --global --agent '*' --skill '*' -y` (bash or PowerShell) copies the skills below into the global skill folder of every coding agent the skills CLI finds, Claude Code and Codex among them.
|
|
23
|
+
- [references/install.md](references/install.md) lists the native binaries and every other route, or hand your agent `https://github.com/LilMGenius/show-me-the-env` and ask it to set this up.
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
## Skills
|
|
26
|
+
|
|
27
|
+
A skill is a set of instructions your coding agent loads; each of these drives `agenv` for you, so you can ask in plain words instead of typing commands.
|
|
28
|
+
|
|
29
|
+
| Skill | What it does |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| `agenv:init` | Starts a profile, or lists what this machine lacks with a suggested tool per role |
|
|
32
|
+
| `agenv:save` | Previews what a save would change and writes only the plan whose digest you approve |
|
|
33
|
+
| `agenv:load` | Brings this machine to your profile, previewing every change first |
|
|
34
|
+
| `agenv:contribute` | Turns what `agenv` could not install, configure or detect into an issue or pull request, sent once you approve its preview |
|
|
35
|
+
| `agenv:attach` | Attaches another computer you own so it can take this machine's long jobs; see [docs/MACHINES.md](docs/MACHINES.md) |
|
|
36
|
+
| `/show-me-the-env:patch` | Repairs Claude Code and Codex plugin hooks that fail on Windows, from the [plugin below](#plugin-hooks-on-windows) |
|
|
37
|
+
|
|
38
|
+
The command is `agenv`, and the five profile skills install under its name, `agenv:*`.
|
|
24
39
|
|
|
25
40
|
## Quickstart
|
|
26
41
|
|
|
42
|
+
These lines assume `npm install -g show-me-the-env`; with npx, write `npx show-me-the-env` where they say `agenv`.
|
|
43
|
+
|
|
27
44
|
```sh
|
|
28
45
|
agenv doctor --gaps
|
|
29
46
|
agenv init --data-root ~/my-env --select codex
|
|
@@ -34,83 +51,90 @@ agenv load --data-root ~/my-env --approve <digest>
|
|
|
34
51
|
agenv ui --data-root ~/my-env
|
|
35
52
|
```
|
|
36
53
|
|
|
37
|
-
1. `doctor --gaps` lists every tool `agenv` knows and what it finds
|
|
38
|
-
2. `
|
|
39
|
-
3. `
|
|
40
|
-
4.
|
|
41
|
-
|
|
54
|
+
1. `doctor --gaps` lists every tool `agenv` knows and what it finds here. `init --data-root <folder>` creates `manifest.json` there, and `--select <ids>` records the tools you name by the ids `doctor` prints, with the settings files `agenv` knows for them (for `codex`, `~/.codex/config.toml`).
|
|
55
|
+
2. `save` and `load` print a plan and its digest, then exit 3, which means they wait for your approval. The same command with `--approve <digest>` applies exactly that plan; a digest from an older plan is refused.
|
|
56
|
+
3. Keep the `--data-root` folder in git yourself and clone it on the other machine, then run the two `load` lines there. Leave `--data-root` out and `save` uses `~/.agenv` instead, committing and pushing each approved save; `save --create` makes it a private GitHub repository in your account.
|
|
57
|
+
4. `ui` opens the same steps in a window served on 127.0.0.1.
|
|
58
|
+
|
|
59
|
+
`agenv --help` lists every command with its options and exit codes, catalog, adopt, follow, contribute, ignored, run and machine among them. [docs/MACHINES.md](docs/MACHINES.md) explains run and machine, [docs/QUEUE.md](docs/QUEUE.md) the queued agent sessions of run, and [docs/IGNORED.md](docs/IGNORED.md) ignored.
|
|
60
|
+
|
|
61
|
+
## Supported programs
|
|
62
|
+
|
|
63
|
+
✅ Full: settings and lists are saved, restored and checked against the machine. 🟡 Partial: some of the program's state is saved. 👀 Detected: found on the maintainer's reference machine, nothing saved yet. 🗓️ Planned: not built yet. A blank cell is zero. Each category links to its rows in [the support matrix](docs/SUPPORT-MATRIX.md), and [references/support.md](references/support.md) says which operations a fresh machine verified on each platform.
|
|
64
|
+
|
|
65
|
+
<!-- support-summary:start -->
|
|
66
|
+
|
|
67
|
+
| Category | ✅ Full | 🟡 Partial | 👀 Detected | 🗓️ Planned |
|
|
68
|
+
| --- | ---: | ---: | ---: | ---: |
|
|
69
|
+
| [Agent CLI](docs/SUPPORT-MATRIX.md#agent-cli) | 2 | 7 | 2 | 8 |
|
|
70
|
+
| [AI desktop app](docs/SUPPORT-MATRIX.md#ai-desktop-app) | 1 | | 1 | 5 |
|
|
71
|
+
| [Proxy](docs/SUPPORT-MATRIX.md#proxy) | 2 | | | 1 |
|
|
72
|
+
| [Local model runner](docs/SUPPORT-MATRIX.md#local-model-runner) | | | | 9 |
|
|
73
|
+
| [Editor agent extension](docs/SUPPORT-MATRIX.md#editor-agent-extension) | 2 | | | 5 |
|
|
74
|
+
| [IDE](docs/SUPPORT-MATRIX.md#ide) | 1 | 1 | 2 | 8 |
|
|
75
|
+
| [Agent workspace](docs/SUPPORT-MATRIX.md#agent-workspace) | | | | 2 |
|
|
76
|
+
| [Editor](docs/SUPPORT-MATRIX.md#editor) | | | 3 | 5 |
|
|
77
|
+
| [Terminal](docs/SUPPORT-MATRIX.md#terminal) | 1 | | | 10 |
|
|
78
|
+
| [Shell and prompt](docs/SUPPORT-MATRIX.md#shell-and-prompt) | 1 | | | 7 |
|
|
79
|
+
| [Runtime and package manager](docs/SUPPORT-MATRIX.md#runtime-and-package-manager) | 4 | 1 | 7 | 10 |
|
|
80
|
+
| [Tooling](docs/SUPPORT-MATRIX.md#tooling) | 2 | 2 | 6 | 13 |
|
|
81
|
+
| [Cloud CLI](docs/SUPPORT-MATRIX.md#cloud-cli) | | 1 | | 10 |
|
|
82
|
+
| [Secret manager](docs/SUPPORT-MATRIX.md#secret-manager) | | | | 2 |
|
|
83
|
+
| [API and database client](docs/SUPPORT-MATRIX.md#api-and-database-client) | | | | 7 |
|
|
84
|
+
| [Browser](docs/SUPPORT-MATRIX.md#browser) | | | 4 | 6 |
|
|
85
|
+
| [Collaboration](docs/SUPPORT-MATRIX.md#collaboration) | | 2 | 1 | 2 |
|
|
86
|
+
| [Desktop utility](docs/SUPPORT-MATRIX.md#desktop-utility) | | | 1 | 5 |
|
|
87
|
+
| [Creative tool](docs/SUPPORT-MATRIX.md#creative-tool) | | 1 | 2 | 2 |
|
|
88
|
+
| [Game engine](docs/SUPPORT-MATRIX.md#game-engine) | | | 5 | 1 |
|
|
89
|
+
|
|
90
|
+
<!-- support-summary:end -->
|
|
42
91
|
|
|
43
|
-
|
|
92
|
+
| Platform | State |
|
|
93
|
+
| --- | --- |
|
|
94
|
+
| Windows 11 x64 | verified on a fresh virtual machine restored from its base snapshot (Windows 11 Enterprise evaluation, build 26300) |
|
|
95
|
+
| Linux x64 | verified on a fresh virtual machine restored from its base snapshot (Ubuntu 24.04.5 LTS); the native binary needs the `libatomic1` package first |
|
|
96
|
+
| macOS | unverified: macOS may only be virtualized on Apple hardware under Apple's license, and the validation lab is Hyper-V on a Windows host, so no macOS virtual machine exists to verify on |
|
|
44
97
|
|
|
45
|
-
|
|
98
|
+
Verified means init, save, load, an update, a repeated load, a refused approval, a conflict while following a catalog profile and a contribution preview each passed on both virtual machines from the installed release candidate, with no Node, Git or checkout there.
|
|
46
99
|
|
|
47
|
-
|
|
48
|
-
| --- | --- |
|
|
49
|
-
| `init` | Starts a profile in `--data-root`, or lists missing prerequisites when none is given |
|
|
50
|
-
| `save` | Shows what would be saved from this machine; `--approve <digest>` writes it |
|
|
51
|
-
| `load` | Shows what this machine lacks from the profile; `--approve <digest>` applies it |
|
|
52
|
-
| `doctor` | Reports tools, orphaned installers, commit signing and pending saves; changes nothing |
|
|
53
|
-
| `catalog` | Lists the creator profiles `agenv` ships, with what each installs and the permissions it asks for |
|
|
54
|
-
| `adopt` | Shows what adopting a catalog profile would change; `--approve <digest>` applies it |
|
|
55
|
-
| `follow` | Checks an adopted profile for a newer revision; a setting you changed since is kept and reported as a conflict (exit 4) |
|
|
56
|
-
| `contribute` | Drafts an issue or pull request from a finding with home paths and tokens redacted; only `--send <id> --approve <preview>` sends it |
|
|
57
|
-
| `ignored` | Copies the ledgers, evidence and notes your repositories ignore into your private profile, and puts them back on another machine; see [docs/IGNORED.md](docs/IGNORED.md) |
|
|
58
|
-
| `ui` | Opens a local window for status, recommendations, save, load, history, profiles and contributions |
|
|
59
|
-
| `run` | Runs a command at your commit on another machine you can reach over SSH and keeps a receipt; see [docs/MACHINES.md](docs/MACHINES.md). With `--queue` it starts queued agent sessions on your runners whenever a slot is free there; see [docs/QUEUE.md](docs/QUEUE.md) |
|
|
60
|
-
| `machine` | Attaches another computer so it can take work: `bootstrap` writes its setup script and `serve` hands it over on your network for a bounded time, and `specs` and `register` read the machine and keep its row in your own register of machines; see [docs/MACHINES.md](docs/MACHINES.md) |
|
|
61
|
-
|
|
62
|
-
Exit codes: 0 done or nothing to do, 2 invalid input, 3 your approval is needed, 4 something changed since the plan, 5 a step failed, 130 cancelled.
|
|
63
|
-
|
|
64
|
-
## Secrets and private data
|
|
100
|
+
## Safe defaults
|
|
65
101
|
|
|
102
|
+
- Nothing is written until you approve the digest of the plan you saw, and every install `load` runs is an action in that plan (`node scripts/qa.mjs --case journey-denied-consent`).
|
|
66
103
|
- Entries under `secrets/` in a profile are left out of save and load unless `--include-secrets` is given (`node scripts/qa.mjs --case save`).
|
|
67
|
-
- A save stops when a file it would write carries a token, a private key or a planted
|
|
68
|
-
- A contribution draft
|
|
104
|
+
- A save stops when a file it would write carries a token, a private key or a planted test secret, and writes nothing (`node scripts/qa.mjs --case leak-canary`).
|
|
105
|
+
- A contribution draft stays on the machine until `--send <id> --approve <preview>` names its exact preview (`node scripts/qa.mjs --case journey-contribution-preview`).
|
|
69
106
|
- The window listens on 127.0.0.1 only, requires a per-launch secret on every request and refuses requests from other origins (`node scripts/qa.mjs --case desktop-ui`).
|
|
70
107
|
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
From [packaging/benchmark-decision.json](packaging/benchmark-decision.json): a full init, save and load journey over a 24-file profile, 30 runs per cohort on each clean guest. Median on Ubuntu 24.04.5 (2 vCPU) was 2647 ms cold and 2988 ms warm; on Windows 11 (4 vCPU) 7968 ms cold and 6924 ms warm. Running four independent changes at once was not faster on every cohort, so `--jobs` stays 1 by default. Launch time, memory and size of the native binary are in [references/architecture.md](references/architecture.md), measured as recorded in [packaging/architecture-decision.json](packaging/architecture-decision.json).
|
|
74
|
-
|
|
75
|
-
## Limitations
|
|
76
|
-
|
|
77
|
-
- macOS is unverified (see Platforms).
|
|
78
|
-
- Most tool cells are unverified or experimental; [references/support.md](references/support.md) lists them per tool, operation and platform.
|
|
79
|
-
- On Windows the first launch of the native binary unpacks its payload and is slower than later launches (measured in [references/architecture.md](references/architecture.md)).
|
|
80
|
-
- The native Linux binary needs `libatomic1`, which Ubuntu cloud images leave out.
|
|
81
|
-
- `load` installs a missing tool only at the version the profile pins. `init --select` pins a tool that is not installed at the version its adapter names; where an adapter names none, `init` says so, and `load` reports that install as unsupported (exit 5) until a version is added to `manifest.json`.
|
|
82
|
-
- There is no rollback command yet; the window's History view is read-only.
|
|
83
|
-
- A follow conflict is detected for tool settings a profile sets; profile files are not compared against the adopted revision.
|
|
84
|
-
|
|
85
|
-
## Milestones
|
|
108
|
+
## Plugin hooks on Windows
|
|
86
109
|
|
|
87
|
-
|
|
110
|
+
The show-me-the-env plugin repairs Claude Code and Codex plugin hooks that cannot run on Windows; it was published as win-hooks until that repository merged into this one.
|
|
88
111
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
| v0.3 | support matrix per tool, operation and platform, inventory-to-gap contributions, verification per revision | built; contributions are drafted and sent only on approval |
|
|
94
|
-
| v0.5 | a desktop window over the same actions, browse, adopt and contribute, a measured decision on a native rewrite | window built in the browser; rewrite decided against on measurement |
|
|
95
|
-
| v1.0 | stable contracts, update and rollback, signed distribution where possible, owned support | not met: no rollback command, no signed distribution |
|
|
96
|
-
| Sustained | compatibility kept, a support load the maintainers can carry, adapters from contributors | not started |
|
|
97
|
-
|
|
98
|
-
## How adoption will be counted
|
|
112
|
+
```bash
|
|
113
|
+
claude plugin marketplace add LilMGenius/show-me-the-env && claude plugin install show-me-the-env@show-me-the-env
|
|
114
|
+
codex plugin marketplace add LilMGenius/show-me-the-env && codex plugin add show-me-the-env@show-me-the-env
|
|
115
|
+
```
|
|
99
116
|
|
|
100
|
-
|
|
117
|
+
If you already have `win-hooks@win-hooks`, it keeps working; [plugins/win-hooks](plugins/win-hooks/README.md) says what the plugin fixes and how to move that install to the new name.
|
|
101
118
|
|
|
102
|
-
##
|
|
119
|
+
## Limitations
|
|
103
120
|
|
|
104
|
-
|
|
121
|
+
- Most tool cells are unverified or experimental; [references/support.md](references/support.md) lists them per tool, operation and platform.
|
|
122
|
+
- On Windows the native binary's first launch unpacks its payload and is slower than later launches, as [references/architecture.md](references/architecture.md) measures.
|
|
123
|
+
- `load` installs a missing tool only at the version the profile pins. `init --select` pins a tool that is not installed at the version its adapter (the module that knows that tool) names; where the adapter names none, `init` says so and `load` reports that install as unsupported (exit 5) until `manifest.json` names a version.
|
|
124
|
+
- There is no rollback command yet, and while you follow a catalog profile, a conflict is found only for the tool settings that profile sets.
|
|
105
125
|
|
|
106
|
-
|
|
107
|
-
claude plugin marketplace add LilMGenius/show-me-the-env && claude plugin install win-hooks@win-hooks
|
|
108
|
-
codex plugin marketplace add LilMGenius/show-me-the-env && codex plugin add win-hooks@win-hooks
|
|
109
|
-
```
|
|
126
|
+
## Source of truth
|
|
110
127
|
|
|
111
|
-
|
|
128
|
+
- [manifest.json](manifest.json): the product manifest, its profile layout and the tools `agenv` knows
|
|
129
|
+
- [support.json](support.json): every program and its support level, rendered into [docs/SUPPORT-MATRIX.md](docs/SUPPORT-MATRIX.md) and the table above
|
|
130
|
+
- [references/support.md](references/support.md): verified, experimental and unsupported cells per adapter and platform
|
|
131
|
+
- [references/install.md](references/install.md): every way to get `agenv`
|
|
132
|
+
- [docs/CONTRACT.md](docs/CONTRACT.md): the restore, snapshot and verification procedure
|
|
133
|
+
- [docs/ROADMAP.md](docs/ROADMAP.md): restore levels, coverage, milestones and how adoption is counted
|
|
134
|
+
- [test/cases/release-docs.mjs](test/cases/release-docs.mjs): runs this page's Quickstart in an empty home and retakes the capture (`node scripts/qa.mjs --case release-docs --variant happy`, or on a release candidate's binary with `--param rc=<candidate folder>`); the journeys behind "verified" run with `node scripts/qa.mjs --case journey-<name> --live <guest>`
|
|
135
|
+
- [AGENTS.md](AGENTS.md): the contract for agents working in this repository
|
|
112
136
|
|
|
113
137
|
## Author and license
|
|
114
138
|
|
|
115
|
-
Created by [LilMGenius](https://github.com/LilMGenius). MIT
|
|
139
|
+
Created by [LilMGenius](https://github.com/LilMGenius). [MIT](LICENSE).
|
|
116
140
|
|
|
@@ -19,6 +19,11 @@ import { probe, run } from '../../src/runtime.mjs';
|
|
|
19
19
|
|
|
20
20
|
export const PACKAGE = '@lilmgenius/win-hooks';
|
|
21
21
|
export const REPO = 'LilMGenius/show-me-the-env';
|
|
22
|
+
// The plugin and the marketplace it ships in are both named show-me-the-env, as the founder ruled on 2026-12-03
|
|
23
|
+
// when win-hooks became this repository; win-hooks@win-hooks was the name before.
|
|
24
|
+
export const PLUGIN = 'show-me-the-env@show-me-the-env';
|
|
25
|
+
// An install made under the earlier name runs the same plugin, and the Claude Code marketplace still lists it.
|
|
26
|
+
const LEGACY_PLUGIN = 'win-hooks@win-hooks';
|
|
22
27
|
export const SOURCES = Object.freeze({ readme: 'https://github.com/LilMGenius/show-me-the-env/blob/main/plugins/win-hooks/README.md', npm: 'https://www.npmjs.com/package/@lilmgenius/win-hooks' });
|
|
23
28
|
export const NOT_WINDOWS = 'win-hooks repairs plugin hooks that cannot run on Windows; on macOS and Linux they run natively, and its package installs on win32 only';
|
|
24
29
|
const HOSTS = Object.freeze({ claude: 'claude-code', codex: 'codex' });
|
|
@@ -72,8 +77,9 @@ export async function detect(ctx) {
|
|
|
72
77
|
const ONLY_WINDOWS = (op) => unsupported(NOT_WINDOWS, SOURCES.readme, { os: ['macos', 'linux'] });
|
|
73
78
|
|
|
74
79
|
// Whether each host has the plugin switched on, read from the files the host itself reads:
|
|
75
|
-
// enabledPlugins in ~/.claude/settings.json and the [plugins."
|
|
76
|
-
// Codex config.toml
|
|
80
|
+
// enabledPlugins in ~/.claude/settings.json and the [plugins."show-me-the-env@show-me-the-env"] table in
|
|
81
|
+
// Codex config.toml, or the win-hooks@win-hooks entries an install under the earlier name made, so a
|
|
82
|
+
// host that has either never gets a second copy. Nothing else in either file is read.
|
|
77
83
|
export function activation(ctx) {
|
|
78
84
|
const env = ctx.env ?? process.env;
|
|
79
85
|
const home = ctx.home ?? '';
|
|
@@ -81,7 +87,7 @@ export function activation(ctx) {
|
|
|
81
87
|
// cannot be read or parsed is an error with its cause, so detection never reports a silent "off".
|
|
82
88
|
const present = (file) => { try { return readFileSync(file, 'utf8'); } catch (e) { if (e.code === 'ENOENT') return null; throw e; } };
|
|
83
89
|
const settings = present(path.join(env.CLAUDE_CONFIG_DIR || path.join(home, '.claude'), 'settings.json'));
|
|
84
|
-
const claude = settings !== null && JSON.parse(settings).enabledPlugins?.[
|
|
90
|
+
const claude = settings !== null && [PLUGIN, LEGACY_PLUGIN].some((id) => JSON.parse(settings).enabledPlugins?.[id] === true);
|
|
85
91
|
let codex = false;
|
|
86
92
|
const toml = present(path.join(env.CODEX_HOME || path.join(home, '.codex'), 'config.toml'));
|
|
87
93
|
if (toml !== null) {
|
|
@@ -90,7 +96,7 @@ export function activation(ctx) {
|
|
|
90
96
|
const line = raw.trim();
|
|
91
97
|
const h = line.match(/^\[(.+)\]$/);
|
|
92
98
|
if (h) { table = h[1]; continue; }
|
|
93
|
-
if (table === 'plugins."
|
|
99
|
+
if ([PLUGIN, LEGACY_PLUGIN].some((id) => table === 'plugins."' + id + '"') && /^enabled\s*=\s*true\b/.test(line)) codex = true;
|
|
94
100
|
}
|
|
95
101
|
}
|
|
96
102
|
return { claude, codex };
|
|
@@ -120,8 +126,8 @@ export function activationSteps(hosts) {
|
|
|
120
126
|
const steps = [];
|
|
121
127
|
for (const host of hosts) {
|
|
122
128
|
if (!HOSTS[host]) throw new Error('win-hooks repairs claude and codex only, not ' + host);
|
|
123
|
-
if (host === 'claude') steps.push({ run: ['claude', 'plugin', 'marketplace', 'add', REPO] }, { run: ['claude', 'plugin', 'install',
|
|
124
|
-
else steps.push({ run: ['codex', 'plugin', 'marketplace', 'add', REPO] }, { run: ['codex', 'plugin', 'add',
|
|
129
|
+
if (host === 'claude') steps.push({ run: ['claude', 'plugin', 'marketplace', 'add', REPO] }, { run: ['claude', 'plugin', 'install', PLUGIN] });
|
|
130
|
+
else steps.push({ run: ['codex', 'plugin', 'marketplace', 'add', REPO] }, { run: ['codex', 'plugin', 'add', PLUGIN] });
|
|
125
131
|
}
|
|
126
132
|
return steps;
|
|
127
133
|
}
|
package/package.json
CHANGED
|
@@ -34,6 +34,10 @@ The founder's order is the web frontend first, so agenv opens its window in the
|
|
|
34
34
|
|
|
35
35
|
Tauri's binary is a hundredth of Electron's and its slowest start is a quarter of Electron's, while memory and median start are close because both draw with a Chromium engine (WebView2 on Windows). Tauri v2 is therefore where a shell starts, with the Node engine as its sidecar. It was not measured on Linux, where it needs WebKitGTK development headers this build host lacks, so the Linux side of that choice stays open until a Linux Tauri build is measured on the Ubuntu guest.
|
|
36
36
|
|
|
37
|
+
## Journey timings
|
|
38
|
+
|
|
39
|
+
From [packaging/benchmark-decision.json](../packaging/benchmark-decision.json): a full init, save and load journey over a 24-file profile, 30 runs per cohort on each clean guest. Median on Ubuntu 24.04.5 (2 vCPU) was 2647 ms cold and 2988 ms warm; on Windows 11 (4 vCPU) 7968 ms cold and 6924 ms warm. Running four independent changes at once was not faster on every cohort, so `--jobs` stays 1 by default.
|
|
40
|
+
|
|
37
41
|
## How the numbers were taken
|
|
38
42
|
|
|
39
43
|
`bench/measure.mjs` runs on each guest after a restore from its base snapshot, under the pinned Node used only as the timer. Launch time is wall clock from process start to the first complete line of output (cold empties the extraction cache first). Memory is the resident set of the process and every descendant after 10 seconds idle (Windows working set, Linux RSS). Window start is from process start to the page's load event. On Windows the windows open in the guest's signed-in desktop session through an interactive scheduled task, because a remote session has no desktop; on Ubuntu they open under a virtual X display with Electron's setuid sandbox installed as its package would install it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Renders support.json as docs/SUPPORT-MATRIX.md
|
|
3
|
-
// counts, and checks that
|
|
2
|
+
// Renders support.json as docs/SUPPORT-MATRIX.md, the README's counts per category
|
|
3
|
+
// and the roadmap's coverage counts, and checks that
|
|
4
4
|
// every captures entry names something the product manifest really declares (a
|
|
5
5
|
// profile layout file, directory or key, or a product key such as a task), so the
|
|
6
6
|
// table cannot claim support the scripts do not give.
|
|
@@ -13,6 +13,8 @@ const START = '<!-- support-table:start -->';
|
|
|
13
13
|
const END = '<!-- support-table:end -->';
|
|
14
14
|
const PROGRESS_START = '<!-- support-progress:start -->';
|
|
15
15
|
const PROGRESS_END = '<!-- support-progress:end -->';
|
|
16
|
+
const SUMMARY_START = '<!-- support-summary:start -->';
|
|
17
|
+
const SUMMARY_END = '<!-- support-summary:end -->';
|
|
16
18
|
const LABEL = { full: '✅ Full', partial: '🟡 Partial', detect: '👀 Detected', planned: '🗓️ Planned' };
|
|
17
19
|
|
|
18
20
|
function lookup(obj, dotted) {
|
|
@@ -79,6 +81,16 @@ export function progress(registry) {
|
|
|
79
81
|
'| ' + registry.levels.map(count).join(' | ') + ' | ' + count('full') + ' of ' + installed + ' (' + share + '%) |'].join('\n');
|
|
80
82
|
}
|
|
81
83
|
|
|
84
|
+
// One row per category with its count at each level (blank for none), each category linked to its section of the matrix.
|
|
85
|
+
export function summary(registry) {
|
|
86
|
+
const anchor = (category) => category.toLowerCase().replace(/[^a-z0-9 -]/g, '').replaceAll(' ', '-');
|
|
87
|
+
const rows = registry.categories.map((category) => {
|
|
88
|
+
const counts = registry.levels.map((l) => registry.programs.filter((p) => p.category === category && p.level === l).length);
|
|
89
|
+
return '| [' + category + '](docs/SUPPORT-MATRIX.md#' + anchor(category) + ') | ' + counts.map((n) => (n ? String(n) : '')).join(' | ') + ' |';
|
|
90
|
+
});
|
|
91
|
+
return ['| Category | ' + registry.levels.map((l) => LABEL[l]).join(' | ') + ' |', '| --- | ' + registry.levels.map(() => '---:').join(' | ') + ' |', ...rows].join('\n');
|
|
92
|
+
}
|
|
93
|
+
|
|
82
94
|
function fill(text, start, end, body, name) {
|
|
83
95
|
const a = text.indexOf(start);
|
|
84
96
|
const b = text.indexOf(end);
|
|
@@ -88,12 +100,13 @@ function fill(text, start, end, body, name) {
|
|
|
88
100
|
|
|
89
101
|
export const render = (doc, registry) => fill(doc, START, END, table(registry), 'docs/SUPPORT-MATRIX.md');
|
|
90
102
|
export const renderProgress = (roadmap, registry) => fill(roadmap, PROGRESS_START, PROGRESS_END, progress(registry), 'docs/ROADMAP.md');
|
|
103
|
+
export const renderSummary = (readme, registry) => fill(readme, SUMMARY_START, SUMMARY_END, summary(registry), 'README.md');
|
|
91
104
|
|
|
92
105
|
if (realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url))) {
|
|
93
106
|
const registry = JSON.parse(readFileSync(join(root, 'support.json'), 'utf8'));
|
|
94
107
|
const product = JSON.parse(readFileSync(join(root, 'manifest.json'), 'utf8'));
|
|
95
108
|
const found = problems(registry, product);
|
|
96
|
-
for (const [rel, draw] of [['docs/SUPPORT-MATRIX.md', render], ['docs/ROADMAP.md', renderProgress]]) {
|
|
109
|
+
for (const [rel, draw] of [['docs/SUPPORT-MATRIX.md', render], ['docs/ROADMAP.md', renderProgress], ['README.md', renderSummary]]) {
|
|
97
110
|
const path = join(root, rel);
|
|
98
111
|
const current = readFileSync(path, 'utf8');
|
|
99
112
|
const next = draw(current, registry);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test } from 'node:test';
|
|
2
2
|
import assert from 'node:assert/strict';
|
|
3
|
-
import { problems, progress, render } from './support-table.mjs';
|
|
3
|
+
import { problems, progress, render, renderSummary } from './support-table.mjs';
|
|
4
4
|
|
|
5
5
|
const manifest = { profileLayout: { files: [{ repo: 'configs/a.json' }], dirs: [], keys: ['vscodeExtensions', 'git'] }, tasks: { omoShims: {} } };
|
|
6
6
|
const reg = (programs) => ({ levels: ['full', 'partial', 'detect', 'planned'], categories: ['IDE'], programs });
|
|
@@ -52,3 +52,15 @@ test('progress counts each level and the full share among installed programs', (
|
|
|
52
52
|
]));
|
|
53
53
|
assert.match(out, /\| 1 \| 0 \| 1 \| 1 \| 1 of 2 \(50%\) \|$/);
|
|
54
54
|
});
|
|
55
|
+
|
|
56
|
+
test('the README summary counts each level per category, links the matrix section and leaves a zero blank', () => {
|
|
57
|
+
const two = { levels: ['full', 'partial', 'detect', 'planned'], categories: ['IDE', 'Shell and prompt'], programs: [
|
|
58
|
+
{ name: 'A', category: 'IDE', level: 'full', what: '', captures: [] },
|
|
59
|
+
{ name: 'B', category: 'IDE', level: 'full', what: '', captures: [] },
|
|
60
|
+
{ name: 'C', category: 'Shell and prompt', level: 'planned', what: '', captures: [] },
|
|
61
|
+
] };
|
|
62
|
+
const out = renderSummary('a\n<!-- support-summary:start -->\nold\n<!-- support-summary:end -->\nb\n', two);
|
|
63
|
+
assert.match(out, /\| \[IDE\]\(docs\/SUPPORT-MATRIX\.md#ide\) \| 2 \| \| \| \|/);
|
|
64
|
+
assert.match(out, /\| \[Shell and prompt\]\(docs\/SUPPORT-MATRIX\.md#shell-and-prompt\) \| \| \| \| 1 \|/);
|
|
65
|
+
assert.doesNotMatch(out, /old/);
|
|
66
|
+
});
|