show-me-the-env 0.0.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.
- package/.claude-plugin/marketplace.json +21 -0
- package/.claude-plugin/plugin.json +12 -0
- package/LICENSE +21 -0
- package/README.md +138 -1
- package/adapters/agent-desktop/adapter.mjs +165 -0
- package/adapters/agent-desktop/support.json +527 -0
- package/adapters/aside/adapter.mjs +85 -0
- package/adapters/aside/support.json +257 -0
- package/adapters/catalog.json +23 -0
- package/adapters/claude-code/adapter.mjs +182 -0
- package/adapters/claude-code/support.json +234 -0
- package/adapters/cli-proxy-api/adapter.mjs +362 -0
- package/adapters/cli-proxy-api/support.json +359 -0
- package/adapters/codex/adapter.mjs +170 -0
- package/adapters/codex/support.json +234 -0
- package/adapters/cursor/adapter.mjs +116 -0
- package/adapters/cursor/support.json +514 -0
- package/adapters/gajae-code/adapter.mjs +73 -0
- package/adapters/gajae-code/support.json +267 -0
- package/adapters/gemini/adapter.mjs +48 -0
- package/adapters/gemini/support.json +264 -0
- package/adapters/gh/adapter.mjs +61 -0
- package/adapters/gh/support.json +224 -0
- package/adapters/ghostty/adapter.mjs +60 -0
- package/adapters/ghostty/support.json +224 -0
- package/adapters/git/adapter.mjs +69 -0
- package/adapters/git/support.json +236 -0
- package/adapters/grok-build/adapter.mjs +69 -0
- package/adapters/grok-build/support.json +257 -0
- package/adapters/hermes/adapter.mjs +153 -0
- package/adapters/hermes/support.json +520 -0
- package/adapters/kiro/adapter.mjs +62 -0
- package/adapters/kiro/support.json +270 -0
- package/adapters/lazycodex/adapter.mjs +175 -0
- package/adapters/lazycodex/support.json +311 -0
- package/adapters/node/adapter.mjs +75 -0
- package/adapters/node/support.json +246 -0
- package/adapters/npm-global.mjs +16 -0
- package/adapters/openclaw/adapter.mjs +84 -0
- package/adapters/openclaw/support.json +271 -0
- package/adapters/opencode/adapter.mjs +47 -0
- package/adapters/opencode/support.json +264 -0
- package/adapters/opencodex/adapter.mjs +122 -0
- package/adapters/opencodex/support.json +288 -0
- package/adapters/pc-shell/support.json +117 -0
- package/adapters/probes.mjs +33 -0
- package/adapters/profile-files.json +288 -0
- package/adapters/pwsh/adapter.mjs +40 -0
- package/adapters/pwsh/support.json +225 -0
- package/adapters/recommendations.json +35 -0
- package/adapters/rhwp/adapter.mjs +32 -0
- package/adapters/rhwp/support.json +221 -0
- package/adapters/settings-files.mjs +23 -0
- package/adapters/support.json +39 -0
- package/adapters/tmux/adapter.mjs +39 -0
- package/adapters/tmux/support.json +234 -0
- package/adapters/vscode/adapter.mjs +165 -0
- package/adapters/vscode/support.json +463 -0
- package/adapters/win-hooks/adapter.mjs +168 -0
- package/adapters/win-hooks/support.json +234 -0
- package/adapters/windows-terminal/adapter.mjs +64 -0
- package/adapters/windows-terminal/support.json +250 -0
- package/adapters/wsl/adapter.mjs +60 -0
- package/adapters/wsl/support.json +243 -0
- package/bin/agenv.mjs +144 -0
- package/launchers/cli-proxy-api-quota.cmd +68 -0
- package/launchers/cli-proxy-api-quota.command +47 -0
- package/launchers/cli-proxy-api-restart.cmd +48 -0
- package/launchers/cli-proxy-api-restart.command +25 -0
- package/launchers/cli-proxy-api-service-launcher.vbs +8 -0
- package/launchers/cli-proxy-api-start.cmd +14 -0
- package/launchers/cli-proxy-api-start.command +14 -0
- package/manifest.json +199 -0
- package/package.json +58 -3
- package/profiles/index.json +30 -0
- package/profiles/lilmgenius-agent-setup/profile.json +70 -0
- package/references/architecture.md +43 -0
- package/references/install.md +16 -0
- package/references/support.md +52 -0
- package/references/window.jpg +0 -0
- package/references/window.json +7 -0
- package/schemas/action.schema.json +49 -0
- package/schemas/common.schema.json +124 -0
- package/schemas/plan.schema.json +198 -0
- package/schemas/private-save.schema.json +109 -0
- package/schemas/profile-manifest.schema.json +165 -0
- package/schemas/profile.schema.json +108 -0
- package/schemas/result.schema.json +126 -0
- package/scripts/benchmark.mjs +237 -0
- package/scripts/bootstrap.ps1 +369 -0
- package/scripts/bootstrap.sh +69 -0
- package/scripts/broken-skill-links.mjs +37 -0
- package/scripts/browser-priority.ps1 +31 -0
- package/scripts/browser-priority.test.ps1 +26 -0
- package/scripts/build-native.mjs +186 -0
- package/scripts/check-capability.mjs +23 -0
- package/scripts/common.ps1 +345 -0
- package/scripts/copy-desktop-launchers.ps1 +101 -0
- package/scripts/export-profile.mjs +42 -0
- package/scripts/link-skills.mjs +270 -0
- package/scripts/link-skills.test.mjs +252 -0
- package/scripts/local-marketplace-drift.mjs +92 -0
- package/scripts/maintain.ps1 +184 -0
- package/scripts/manifest-list.test.ps1 +48 -0
- package/scripts/measure-codex-hook-bundle.mjs +73 -0
- package/scripts/omo-shims.ps1 +114 -0
- package/scripts/omo-shims.test.ps1 +83 -0
- package/scripts/openness-baseline.json +15 -0
- package/scripts/openness-check.mjs +107 -0
- package/scripts/package-check.mjs +108 -0
- package/scripts/package-check.test.mjs +75 -0
- package/scripts/qa-report.mjs +146 -0
- package/scripts/qa-scope.mjs +93 -0
- package/scripts/qa.mjs +96 -0
- package/scripts/quota-guard.mjs +261 -0
- package/scripts/release-candidate.mjs +205 -0
- package/scripts/repair-omo-shim-task.ps1 +59 -0
- package/scripts/repair-quota-guard-task.ps1 +74 -0
- package/scripts/repair-runner-skills-task.ps1 +63 -0
- package/scripts/repair-service.ps1 +67 -0
- package/scripts/repair-skill-links-task.ps1 +65 -0
- package/scripts/restart-guard.ps1 +44 -0
- package/scripts/restart-guard.test.ps1 +28 -0
- package/scripts/runner-skills.mjs +100 -0
- package/scripts/skill-bundle.mjs +224 -0
- package/scripts/skill-bundle.test.mjs +124 -0
- package/scripts/skill-meta.test.mjs +50 -0
- package/scripts/skill-twins.mjs +94 -0
- package/scripts/skill-twins.test.mjs +118 -0
- package/scripts/snapshot.ps1 +238 -0
- package/scripts/support-doc.mjs +72 -0
- package/scripts/support-table.mjs +119 -0
- package/scripts/support-table.test.mjs +66 -0
- package/scripts/ui-logs.mjs +52 -0
- package/scripts/unlisted-skill-checkouts.mjs +117 -0
- package/scripts/user-env.test.ps1 +42 -0
- package/scripts/verify-skill-sources.mjs +31 -0
- package/scripts/verify.ps1 +620 -0
- package/skills/attach/SKILL.md +25 -0
- package/skills/attach/agents/openai.yaml +4 -0
- package/skills/contribute/SKILL.md +68 -0
- package/skills/contribute/agents/openai.yaml +4 -0
- package/skills/init/SKILL.md +15 -0
- package/skills/init/agents/openai.yaml +4 -0
- package/skills/load/SKILL.md +97 -0
- package/skills/load/agents/openai.yaml +4 -0
- package/skills/save/SKILL.md +34 -0
- package/skills/save/agents/openai.yaml +4 -0
- package/src/adapters.mjs +205 -0
- package/src/canonical.mjs +44 -0
- package/src/collect.mjs +116 -0
- package/src/commands/adopt.mjs +64 -0
- package/src/commands/catalog.mjs +28 -0
- package/src/commands/context.mjs +87 -0
- package/src/commands/contribute.mjs +69 -0
- package/src/commands/desktop.mjs +56 -0
- package/src/commands/doctor.mjs +45 -0
- package/src/commands/ignored.mjs +87 -0
- package/src/commands/init.mjs +69 -0
- package/src/commands/load.mjs +62 -0
- package/src/commands/machine-lanes.mjs +52 -0
- package/src/commands/machine.mjs +226 -0
- package/src/commands/run.mjs +147 -0
- package/src/commands/save.mjs +132 -0
- package/src/contribute.mjs +131 -0
- package/src/diagnostics.mjs +67 -0
- package/src/download.mjs +94 -0
- package/src/executor.mjs +151 -0
- package/src/git.mjs +15 -0
- package/src/ignored/classes.mjs +30 -0
- package/src/ignored/scan.mjs +87 -0
- package/src/ignored/store.mjs +97 -0
- package/src/inventory.mjs +87 -0
- package/src/journal.mjs +67 -0
- package/src/lifecycle.mjs +554 -0
- package/src/lists.mjs +686 -0
- package/src/load.mjs +188 -0
- package/src/locks.mjs +40 -0
- package/src/machines/bootstrap/add-key.ps1 +7 -0
- package/src/machines/bootstrap/main.ps1 +21 -0
- package/src/machines/bootstrap/passwords-off.ps1 +19 -0
- package/src/machines/bootstrap-script.mjs +49 -0
- package/src/machines/bootstrap-server.mjs +43 -0
- package/src/machines/browserskill/check.ps1 +13 -0
- package/src/machines/browserskill/daemon.ps1 +17 -0
- package/src/machines/browserskill/install.ps1 +13 -0
- package/src/machines/browserskill/shortcut.ps1 +15 -0
- package/src/machines/browserskill.mjs +59 -0
- package/src/machines/carry.mjs +46 -0
- package/src/machines/detach.mjs +58 -0
- package/src/machines/firewall.mjs +48 -0
- package/src/machines/handback.mjs +47 -0
- package/src/machines/lanes/sample.ps1 +10 -0
- package/src/machines/lanes.mjs +102 -0
- package/src/machines/model-pick.mjs +154 -0
- package/src/machines/queue.mjs +566 -0
- package/src/machines/register.mjs +31 -0
- package/src/machines/remote-run.mjs +118 -0
- package/src/machines/routes.mjs +244 -0
- package/src/machines/runner-guard.sh +18 -0
- package/src/machines/runner-job.mjs +196 -0
- package/src/machines/session-run.mjs +349 -0
- package/src/machines/session.mjs +428 -0
- package/src/machines/snapshot-commit.mjs +95 -0
- package/src/machines/specs/read.ps1 +29 -0
- package/src/machines/specs.mjs +69 -0
- package/src/machines/subnet.mjs +62 -0
- package/src/machines/transport.mjs +72 -0
- package/src/managers.mjs +75 -0
- package/src/migrate.mjs +39 -0
- package/src/pending.mjs +56 -0
- package/src/planner.mjs +97 -0
- package/src/platform/own-user.mjs +55 -0
- package/src/platform/posix-path.mjs +136 -0
- package/src/platform/startup.mjs +181 -0
- package/src/platform/windows-path.mjs +80 -0
- package/src/platform/windows-path.ps1 +100 -0
- package/src/portable.mjs +30 -0
- package/src/profiles/catalog.mjs +105 -0
- package/src/profiles/export.mjs +81 -0
- package/src/profiles/files.mjs +123 -0
- package/src/profiles/follow.mjs +139 -0
- package/src/profiles/parity.mjs +45 -0
- package/src/recommend.mjs +57 -0
- package/src/redact.mjs +46 -0
- package/src/rollback.mjs +101 -0
- package/src/runtime.mjs +306 -0
- package/src/save.mjs +250 -0
- package/src/schema.mjs +91 -0
- package/src/signing.mjs +83 -0
- package/src/snapshot.mjs +107 -0
- package/src/ui/command.mjs +44 -0
- package/src/ui/engine.mjs +84 -0
- package/src/ui/server.mjs +180 -0
- package/support.json +1487 -0
- package/ui/dist/assets/index-CW25sFFx.css +1 -0
- package/ui/dist/assets/index-D2SD8nUP.js +1 -0
- package/ui/dist/index.html +15 -0
- package/ui/dist/licenses.md +27 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "show-me-the-env",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "LilMGenius"
|
|
5
|
+
},
|
|
6
|
+
"metadata": {
|
|
7
|
+
"description": "Windows auto-patcher for vibe coders."
|
|
8
|
+
},
|
|
9
|
+
"plugins": [
|
|
10
|
+
{
|
|
11
|
+
"name": "show-me-the-env",
|
|
12
|
+
"source": "./plugins/win-hooks",
|
|
13
|
+
"description": "Windows auto-patcher for vibe coders.",
|
|
14
|
+
"version": "1.18.0"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "win-hooks",
|
|
18
|
+
"source": "./plugins/win-hooks"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agenv",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Save and restore your whole agent and coding environment as one versioned .agenv repository.",
|
|
5
|
+
"skills": [
|
|
6
|
+
"./skills/init",
|
|
7
|
+
"./skills/save",
|
|
8
|
+
"./skills/load",
|
|
9
|
+
"./skills/contribute",
|
|
10
|
+
"./skills/attach"
|
|
11
|
+
]
|
|
12
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 LilMGenius
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,140 @@
|
|
|
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
|
+
|
|
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.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
The capture is the window `agenv ui` opens with its default settings.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npx show-me-the-env doctor --gaps
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
That runs the package's one command, `agenv`, with Node 22 or newer, and changes nothing.
|
|
20
|
+
|
|
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.
|
|
24
|
+
|
|
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:*`.
|
|
39
|
+
|
|
40
|
+
## Quickstart
|
|
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
|
+
|
|
44
|
+
```sh
|
|
45
|
+
agenv doctor --gaps
|
|
46
|
+
agenv init --data-root ~/my-env --select codex
|
|
47
|
+
agenv save --data-root ~/my-env
|
|
48
|
+
agenv save --data-root ~/my-env --approve <digest>
|
|
49
|
+
agenv load --data-root ~/my-env
|
|
50
|
+
agenv load --data-root ~/my-env --approve <digest>
|
|
51
|
+
agenv ui --data-root ~/my-env
|
|
52
|
+
```
|
|
53
|
+
|
|
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 -->
|
|
91
|
+
|
|
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 |
|
|
97
|
+
|
|
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.
|
|
99
|
+
|
|
100
|
+
## Safe defaults
|
|
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`).
|
|
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`).
|
|
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`).
|
|
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`).
|
|
107
|
+
|
|
108
|
+
## Plugin hooks on Windows
|
|
109
|
+
|
|
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.
|
|
111
|
+
|
|
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
|
+
```
|
|
116
|
+
|
|
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.
|
|
118
|
+
|
|
119
|
+
## Limitations
|
|
120
|
+
|
|
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.
|
|
125
|
+
|
|
126
|
+
## Source of truth
|
|
127
|
+
|
|
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
|
|
136
|
+
|
|
137
|
+
## Author and license
|
|
138
|
+
|
|
139
|
+
Created by [LilMGenius](https://github.com/LilMGenius). [MIT](LICENSE).
|
|
140
|
+
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// The Claude and ChatGPT (Codex) desktop apps, each its own adapter and each separate from its CLI
|
|
2
|
+
// (claude-code, codex): an app's presence never marks a CLI's lifecycle, and a CLI on PATH never
|
|
3
|
+
// marks an app installed. Readiness is read from the app's own install record (the MSIX package on
|
|
4
|
+
// Windows, the app bundle on macOS, the dpkg record on Linux), never from a command name: Windows
|
|
5
|
+
// adds execution aliases such as claude-desktop.exe and chatgpt-desktop.exe, which are app
|
|
6
|
+
// launchers and not the claude or codex CLIs (observed 2026-11-03 under WindowsApps).
|
|
7
|
+
// Claude Desktop (https://support.claude.com/en/articles/10065433-install-claude-desktop): an
|
|
8
|
+
// interactive download on macOS and Windows; on Linux Anthropic's apt repository, which agenv
|
|
9
|
+
// configures with the published key (pinned by sha256; Anthropic publishes the fingerprint
|
|
10
|
+
// 31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE) and installs at an exact package version.
|
|
11
|
+
// ChatGPT desktop app, where Codex runs (https://learn.chatgpt.com/docs/windows/windows-app): on
|
|
12
|
+
// Windows the Microsoft Store package (winget install --id 9PLM9XGG6VKS -s msstore), which installs
|
|
13
|
+
// the Store's current build and cannot be pinned, so it stays the person's step; macOS is an
|
|
14
|
+
// interactive download. Sessions, sign-in and settings live in each app's user data, which agenv
|
|
15
|
+
// never writes or removes.
|
|
16
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
17
|
+
import path from 'node:path';
|
|
18
|
+
import { LifecycleError, lifecycleAdapter, notApplicable, route, runArgv, unsupported, userAction, userAuth } from '../../src/lifecycle.mjs';
|
|
19
|
+
import { APT_HINT, asRoot } from '../../src/managers.mjs';
|
|
20
|
+
import { powershellProbe, probeExists, probeFailed, readIfPresent } from '../probes.mjs';
|
|
21
|
+
|
|
22
|
+
export const SOURCES = Object.freeze({
|
|
23
|
+
claude: 'https://support.claude.com/en/articles/10065433-install-claude-desktop',
|
|
24
|
+
claudeKey: 'https://downloads.claude.ai/claude-desktop/key.asc',
|
|
25
|
+
chatgptWindows: 'https://learn.chatgpt.com/docs/windows/windows-app',
|
|
26
|
+
chatgptApp: 'https://learn.chatgpt.com/docs/app',
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const CLAUDE_KEY = Object.freeze({ url: SOURCES.claudeKey, sha256: 'bd70a5e4a268002704024ceba7f8446024114e94f3f0bdd11c23a9e592be81c6' });
|
|
30
|
+
const CLAUDE_REPO = 'deb [signed-by=/usr/share/keyrings/claude-desktop-archive-keyring.asc] https://downloads.claude.ai/claude-desktop/apt/stable stable main';
|
|
31
|
+
|
|
32
|
+
// Per app: MSIX package name, macOS bundle, Linux dpkg package and launcher.
|
|
33
|
+
const APPS = Object.freeze({
|
|
34
|
+
'claude-desktop': { msix: 'Claude', bundle: 'Claude.app', deb: 'claude-desktop', alias: 'claude-desktop.exe' },
|
|
35
|
+
'chatgpt-desktop': { msix: 'OpenAI.Codex', bundle: 'ChatGPT.app', deb: null, alias: 'chatgpt-desktop.exe' },
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// The PowerShell of the environment the adapter acts in (ctx.env), so a probe reads that machine.
|
|
39
|
+
const ps = (ctx, script) => [path.join((ctx.env ?? process.env).SystemRoot ?? process.env.SystemRoot ?? 'C:\\Windows', 'System32', 'WindowsPowerShell', 'v1.0', 'powershell.exe'), '-NoProfile', '-NonInteractive', '-EncodedCommand', Buffer.from(script, 'utf16le').toString('base64')];
|
|
40
|
+
|
|
41
|
+
function parseAppx(stdout) {
|
|
42
|
+
const j = JSON.parse(String(stdout).trim() || 'null');
|
|
43
|
+
return j ? [].concat(j) : [];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function plistVersion(file) {
|
|
47
|
+
return readIfPresent(() => readFileSync(file, 'utf8'), '').match(/<key>CFBundleShortVersionString<\/key>\s*<string>([^<]+)<\/string>/)?.[1] ?? null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function parseDpkg(stdout) {
|
|
51
|
+
const [status, version] = String(stdout).trim().split('\t');
|
|
52
|
+
return /install ok installed/.test(status ?? '') ? version ?? null : null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// The OS's own install records, read-only. ctx.appRecords replaces them in fixtures.
|
|
56
|
+
const records = {
|
|
57
|
+
async msix(ctx, name) {
|
|
58
|
+
const argv = ps(ctx, "Get-AppxPackage -Name '" + name + "' | Select-Object Name,Version,InstallLocation,PackageFamilyName | ConvertTo-Json -Compress");
|
|
59
|
+
if (!probeExists(argv[0])) return null;
|
|
60
|
+
// Get-AppxPackage loads the Appx module in a fresh Windows PowerShell; a cold CI runner once took
|
|
61
|
+
// over 60 s (verify run 41748356045), so the limit leaves room before a silence counts as no answer.
|
|
62
|
+
const r = await runArgv(argv, powershellProbe(ctx), { timeoutMs: 180_000 });
|
|
63
|
+
if (r.status !== 'satisfied') throw probeFailed('Get-AppxPackage ' + name, r);
|
|
64
|
+
return parseAppx(r.stdout.text)[0] ?? null;
|
|
65
|
+
},
|
|
66
|
+
async dpkg(ctx, pkg) {
|
|
67
|
+
// No dpkg-query means no Debian package database, so the package is absent; dpkg-query exits 1
|
|
68
|
+
// for a package it does not know. A query that timed out answered nothing.
|
|
69
|
+
const r = await runArgv(['dpkg-query', '-W', '-f', '${Status}\t${Version}', pkg], ctx, { timeoutMs: 30_000 }).catch((e) => { if (e.code === 'command-missing') return null; throw e; });
|
|
70
|
+
if (r?.timedOut) throw probeFailed('dpkg-query ' + pkg, r);
|
|
71
|
+
return r?.exit === 0 ? parseDpkg(r.stdout.text) : null;
|
|
72
|
+
},
|
|
73
|
+
bundle: (ctx, file) => (existsSync(file) ? { version: plistVersion(path.join(file, 'Contents', 'Info.plist')) } : null),
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export async function detectApp(id, ctx) {
|
|
77
|
+
const app = APPS[id];
|
|
78
|
+
const rec = { ...records, ...(ctx.appRecords ?? {}) };
|
|
79
|
+
const obs = { id, installed: false, executable: null, reachable: null, authenticated: null, inferenceVerified: null, route: null, candidates: [], ambiguities: [] };
|
|
80
|
+
if (ctx.platform === 'win32') {
|
|
81
|
+
const pkg = await rec.msix(ctx, app.msix);
|
|
82
|
+
if (pkg) obs.route = { path: pkg.InstallLocation, realPath: pkg.InstallLocation, manager: 'msix', ownership: 'user', version: pkg.Version, architecture: null, packageFamily: pkg.PackageFamilyName };
|
|
83
|
+
} else if (ctx.platform === 'darwin') {
|
|
84
|
+
for (const dir of ['/Applications', ...(ctx.home ? [path.join(ctx.home, 'Applications')] : [])]) {
|
|
85
|
+
const b = path.join(dir, app.bundle);
|
|
86
|
+
const hit = await rec.bundle(ctx, b);
|
|
87
|
+
if (hit) { obs.route = { path: b, realPath: b, manager: 'vendor-installer', ownership: dir === '/Applications' ? 'system' : 'user', version: hit.version, architecture: null }; break; }
|
|
88
|
+
}
|
|
89
|
+
} else if (app.deb) {
|
|
90
|
+
const version = await rec.dpkg(ctx, app.deb);
|
|
91
|
+
if (version) obs.route = { path: '/usr/bin/' + app.deb, realPath: '/usr/bin/' + app.deb, manager: 'system-package', ownership: 'system', version, architecture: null };
|
|
92
|
+
}
|
|
93
|
+
obs.installed = obs.route !== null;
|
|
94
|
+
return obs;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Linux Claude Desktop: the key, checked against its pin, and the source line are written into the
|
|
98
|
+
// owned root first and then installed into place by root, then apt installs the exact version.
|
|
99
|
+
function claudeAptSteps(ctx, { version }) {
|
|
100
|
+
if (!/^\d+\.\d+\.\d+$/.test(version ?? '')) throw new LifecycleError('unpinned', 'Claude Desktop installs need an exact package version, got ' + version, null, 'failed');
|
|
101
|
+
if (!ctx.installRoot) throw new LifecycleError('no-owned-root', 'the Claude Desktop apt route stages its key and source under ctx.installRoot');
|
|
102
|
+
const key = path.join(ctx.installRoot, 'claude-desktop-archive-keyring.asc');
|
|
103
|
+
const list = path.join(ctx.installRoot, 'claude-desktop.list');
|
|
104
|
+
const env = { DEBIAN_FRONTEND: 'noninteractive' };
|
|
105
|
+
return [
|
|
106
|
+
{ fetch: { ...CLAUDE_KEY, to: key } },
|
|
107
|
+
{ write: { path: list, text: CLAUDE_REPO + '\n' } },
|
|
108
|
+
{ run: asRoot(ctx, ['install', '-m', '0644', key, '/usr/share/keyrings/claude-desktop-archive-keyring.asc']) },
|
|
109
|
+
{ run: asRoot(ctx, ['install', '-m', '0644', list, '/etc/apt/sources.list.d/claude-desktop.list']) },
|
|
110
|
+
{ run: asRoot(ctx, ['apt-get', 'update']), env },
|
|
111
|
+
{ run: asRoot(ctx, ['apt-get', 'install', '-y', '--no-install-recommends', 'claude-desktop=' + version]), env },
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export const adapters = [
|
|
116
|
+
lifecycleAdapter({
|
|
117
|
+
id: 'claude-desktop',
|
|
118
|
+
surface: 'app',
|
|
119
|
+
commands: ['claude-desktop'],
|
|
120
|
+
detect: (ctx) => detectApp('claude-desktop', ctx),
|
|
121
|
+
sources: [SOURCES.claude, SOURCES.claudeKey],
|
|
122
|
+
defaultVersion: '4.4212.0',
|
|
123
|
+
operations: {
|
|
124
|
+
install: [
|
|
125
|
+
route({ os: ['linux'], manager: 'apt-get', managerHint: APT_HINT, owner: 'system-package', pin: 'exact', permissions: ['network', 'elevate'], installRoot: '/usr, for every user', integrity: 'the repository key is pinned by sha256; apt checks packages against the signed index', source: SOURCES.claude, plan: claudeAptSteps, verify: (d, { version }) => d.installed === true && d.route?.version === version }),
|
|
126
|
+
userAction({ os: ['windows', 'macos'], instruction: 'download Claude Desktop from https://claude.com/download and open the installer yourself', source: SOURCES.claude }),
|
|
127
|
+
],
|
|
128
|
+
update: [
|
|
129
|
+
route({ os: ['linux'], manager: 'apt-get', managerHint: APT_HINT, owner: 'system-package', pin: 'exact', permissions: ['network', 'elevate'], source: SOURCES.claude, plan: claudeAptSteps, verify: (d, { version }) => d.route?.version === version }),
|
|
130
|
+
notApplicable('Claude Desktop updates itself on macOS and Windows', SOURCES.claude),
|
|
131
|
+
],
|
|
132
|
+
configure: notApplicable('claude_desktop_config.json and app settings are profile data, which load restores; agenv never writes the app\'s user data', SOURCES.claude),
|
|
133
|
+
repair: unsupported('Anthropic documents no repair; reinstall the app', SOURCES.claude),
|
|
134
|
+
auth: userAuth({ instruction: 'sign in inside Claude Desktop yourself; this is separate from the claude CLI sign-in', source: SOURCES.claude }),
|
|
135
|
+
service: unsupported('Claude Desktop runs no background service agenv manages', SOURCES.claude),
|
|
136
|
+
uninstall: [
|
|
137
|
+
route({ os: ['linux'], manager: 'apt-get', permissions: ['elevate'], source: SOURCES.claude, plan: (ctx) => [{ run: asRoot(ctx, ['apt-get', 'remove', '-y', 'claude-desktop']), env: { DEBIAN_FRONTEND: 'noninteractive' } }] }),
|
|
138
|
+
userAction({ os: ['windows', 'macos'], instruction: 'remove Claude through Installed apps (Windows) or by moving it to the Trash (macOS) yourself', source: SOURCES.claude }),
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
}),
|
|
142
|
+
lifecycleAdapter({
|
|
143
|
+
id: 'chatgpt-desktop',
|
|
144
|
+
surface: 'app',
|
|
145
|
+
commands: ['chatgpt-desktop'],
|
|
146
|
+
detect: (ctx) => detectApp('chatgpt-desktop', ctx),
|
|
147
|
+
sources: [SOURCES.chatgptApp, SOURCES.chatgptWindows],
|
|
148
|
+
operations: {
|
|
149
|
+
install: [
|
|
150
|
+
userAction({ os: ['windows'], instruction: 'install the ChatGPT desktop app yourself from the Microsoft Store (winget install --id 9PLM9XGG6VKS -s msstore); the Store installs its current build, which agenv cannot pin', source: SOURCES.chatgptWindows }),
|
|
151
|
+
userAction({ os: ['macos'], instruction: 'download the ChatGPT desktop app for macOS from https://learn.chatgpt.com/docs/app yourself', source: SOURCES.chatgptApp }),
|
|
152
|
+
unsupported('the docs name a Linux build, but its install page (learn.chatgpt.com/docs/app/linux) answered 404 on 2026-11-03, so agenv records no Linux route', SOURCES.chatgptApp),
|
|
153
|
+
],
|
|
154
|
+
update: notApplicable('the ChatGPT desktop app updates through the Microsoft Store or itself', SOURCES.chatgptWindows),
|
|
155
|
+
configure: notApplicable('the app keeps its settings and sessions in its own user data; Codex settings are CODEX_HOME files load restores', SOURCES.chatgptApp),
|
|
156
|
+
repair: unsupported('OpenAI documents no repair for the desktop app; reinstall it', SOURCES.chatgptWindows),
|
|
157
|
+
auth: userAuth({ instruction: 'sign in inside the ChatGPT desktop app yourself; the codex CLI keeps its own sign-in', source: SOURCES.chatgptApp }),
|
|
158
|
+
service: unsupported('the desktop app runs no background service agenv manages', SOURCES.chatgptApp),
|
|
159
|
+
uninstall: [
|
|
160
|
+
userAction({ os: ['windows', 'macos'], instruction: 'remove the ChatGPT desktop app through Installed apps (Windows) or the Trash (macOS) yourself', source: SOURCES.chatgptWindows }),
|
|
161
|
+
unsupported('agenv records no Linux route for the ChatGPT desktop app', SOURCES.chatgptApp),
|
|
162
|
+
],
|
|
163
|
+
},
|
|
164
|
+
}),
|
|
165
|
+
];
|