show-me-the-env 0.92.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "win-hooks",
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": "win-hooks",
11
+ "name": "show-me-the-env",
12
12
  "source": "./plugins/win-hooks",
13
13
  "description": "Windows auto-patcher for vibe coders.",
14
- "version": "1.17.0"
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
@@ -101,14 +101,14 @@ Five counts are kept apart and never added together: profile views, adoption att
101
101
 
102
102
  ## win-hooks
103
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 keep the name `win-hooks`:
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
105
 
106
106
  ```bash
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
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
109
  ```
110
110
 
111
- A marketplace added as `LilMGenius/win-hooks` before the two repositories merged keeps updating from here.
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
112
 
113
113
  ## Author and license
114
114
 
@@ -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."win-hooks@win-hooks"] table in
76
- // Codex config.toml. Nothing else in either file is read.
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?.['win-hooks@win-hooks'] === true;
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."win-hooks@win-hooks"' && /^enabled\s*=\s*true\b/.test(line)) codex = true;
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', 'win-hooks@win-hooks'] });
124
- else steps.push({ run: ['codex', 'plugin', 'marketplace', 'add', REPO] }, { run: ['codex', 'plugin', 'add', 'win-hooks@win-hooks'] });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "show-me-the-env",
3
- "version": "0.92.0",
3
+ "version": "0.93.0",
4
4
  "description": "Save and restore your whole agent and coding environment as one versioned .agenv repository.",
5
5
  "type": "module",
6
6
  "keywords": [