show-me-the-env 0.0.0 → 0.93.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/.claude-plugin/marketplace.json +21 -0
- package/.claude-plugin/plugin.json +12 -0
- package/LICENSE +21 -0
- package/README.md +114 -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 +39 -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 +106 -0
- package/scripts/support-table.test.mjs +54 -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,116 @@
|
|
|
1
1
|
# show-me-the-env
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`agenv` saves the agent and coding environment of one machine (the tools a person relies on and their settings files) into a folder they keep in git, and restores it on another machine. Every change is shown first as a plan with a digest, and nothing is written until the person approves that exact digest.
|
|
4
|
+
|
|
5
|
+
Status: versioned from its first commit, with a tag and a GitHub Release for every version, and published to npm with provenance from the first npm release on; the commands below may still change. This page states only what has been run and checked; [references/support.md](references/support.md) holds the support state of every tool and platform.
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
The capture above is the window as `agenv ui` draws it with its default settings, where secrets are left out of save and load. It is produced and checked by `node scripts/qa.mjs --case release-docs --variant happy`, which also starts the window and reads the same state back from it.
|
|
10
|
+
|
|
11
|
+
## Platforms
|
|
12
|
+
|
|
13
|
+
| Platform | State |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| Windows 11 x64 | verified on a clean guest restored from its base snapshot (Windows 11 Enterprise evaluation, build 26300) |
|
|
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 |
|
|
18
|
+
|
|
19
|
+
Verified here means each of these journeys passed on both guests from the installed release candidate, with no Node, Git or checkout on the guest: init, save, load, update from an older candidate, a repeated load that changes nothing, a refused approval, a follow conflict and a contribution preview (`node scripts/qa.mjs --case journey-<name> --live <guest>`).
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
With Node 22 or newer, `npx show-me-the-env doctor --gaps` runs `agenv` without installing it, and `npm install -g show-me-the-env` puts `agenv` on your PATH. [references/install.md](references/install.md) is the one place that says how to get `agenv`, the native binaries included.
|
|
24
|
+
|
|
25
|
+
## Quickstart
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
agenv doctor --gaps
|
|
29
|
+
agenv init --data-root ~/my-env --select codex
|
|
30
|
+
agenv save --data-root ~/my-env
|
|
31
|
+
agenv save --data-root ~/my-env --approve <digest>
|
|
32
|
+
agenv load --data-root ~/my-env
|
|
33
|
+
agenv load --data-root ~/my-env --approve <digest>
|
|
34
|
+
agenv ui --data-root ~/my-env
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
1. `doctor --gaps` lists every tool `agenv` knows and what it finds on this machine. It changes nothing.
|
|
38
|
+
2. `init --data-root <folder>` creates `manifest.json` there. `--select <ids>` records tools from that list together with the settings files `agenv` knows for them; for `codex` that includes `~/.codex/config.toml`.
|
|
39
|
+
3. `save` prints what it would write into the folder and a digest, and exits 3. Run it again with `--approve <digest>` to write exactly that. When nothing differs it says so and exits 0, and there is nothing to approve.
|
|
40
|
+
4. Keep a folder you named with `--data-root` in git yourself. Without `--data-root` or `AGENV_DATA_ROOT`, `save` uses the snapshot repository `~/.agenv` (`save --create` makes it, private on GitHub) and commits and pushes each approved save itself, staging only the paths it wrote. On the other machine, `load` prints the plan for that machine and its digest, and `--approve <digest>` applies it. A digest from an older plan is refused with exit 3 and nothing is written.
|
|
41
|
+
5. `ui` opens the same steps in a window served on 127.0.0.1.
|
|
42
|
+
|
|
43
|
+
Each line is run, with Codex and one Codex settings file in the first home and a second home without the settings file standing in for the other machine, by `node scripts/qa.mjs --case release-docs --variant happy` in an empty home, by the package's own `bin/agenv.mjs` or, with `--param rc=<candidate folder>`, by a release candidate's binary.
|
|
44
|
+
|
|
45
|
+
## Commands
|
|
46
|
+
|
|
47
|
+
| Command | What it does |
|
|
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
|
|
65
|
+
|
|
66
|
+
- 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 canary, and writes nothing (`node scripts/qa.mjs --case leak-canary`).
|
|
68
|
+
- A contribution draft is stored on the machine and sent nothing until `--send` with the exact preview digest (`node scripts/qa.mjs --case journey-contribution-preview`).
|
|
69
|
+
- 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
|
+
|
|
71
|
+
## Measured timings
|
|
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
|
|
86
|
+
|
|
87
|
+
Each milestone is a set of functional gates. None of them is a version number yet, and none has a date or a target count.
|
|
88
|
+
|
|
89
|
+
| Milestone | Gates | State |
|
|
90
|
+
| --- | --- | --- |
|
|
91
|
+
| v0.1 | private data boundary, the creator's own profile, one action contract for CLI and window, a measured timing baseline, source links kept | built and exercised on Windows and Linux; whether it is 0.1 is the founder's review |
|
|
92
|
+
| v0.2 | checkout-free install with PATH on clean Windows and macOS, parallel changes, recovery after an interruption | install and PATH verified on Windows and Linux; macOS unverified; parallel changes measured and kept off by default; recovery tested on fixtures only |
|
|
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
|
|
99
|
+
|
|
100
|
+
Five counts are kept apart and never added together: profile views, adoption attempts, working installs, repeat use and contributions. A repeated view is not a reach or an install. None is collected yet, and none has a source built into `agenv`.
|
|
101
|
+
|
|
102
|
+
## win-hooks
|
|
103
|
+
|
|
104
|
+
win-hooks, the repair for Claude Code and Codex plugin hooks that cannot run on Windows, ships from this repository as the plugin in [plugins/win-hooks](plugins/win-hooks/README.md). Its marketplace and plugin are named `show-me-the-env`:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
claude plugin marketplace add LilMGenius/show-me-the-env && claude plugin install show-me-the-env@show-me-the-env
|
|
108
|
+
codex plugin marketplace add LilMGenius/show-me-the-env && codex plugin add show-me-the-env@show-me-the-env
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
An install made as `win-hooks@win-hooks` before the two repositories merged keeps working: the Claude Code marketplace still lists `win-hooks` for it, so it keeps updating from here, and Codex keeps running the version it installed. To move it to the new name, run `claude plugin uninstall win-hooks@win-hooks && claude plugin marketplace remove win-hooks` or `codex plugin remove win-hooks@win-hooks && codex plugin marketplace remove win-hooks`, then the line above; with both installed, every repair runs twice.
|
|
112
|
+
|
|
113
|
+
## Author and license
|
|
114
|
+
|
|
115
|
+
Created by [LilMGenius](https://github.com/LilMGenius). MIT license, as `package.json` declares.
|
|
116
|
+
|
|
@@ -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
|
+
];
|