@cmodjs/core 6.1.0 → 6.1.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/docs/commands.md +2 -2
- package/docs/install-steps.md +2 -1
- package/package.json +1 -1
- package/records.d.ts +1 -1
- package/records.js +1 -1
- package/src/records.ts +1 -1
package/docs/commands.md
CHANGED
|
@@ -44,7 +44,7 @@ It refuses a parent folder whose `.claude-plugin/marketplace.json` cmod did not
|
|
|
44
44
|
cmod unlink [path]
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
Stops loading the checkout at `path` (default: the current folder) in every Claude Code session. Uninstalls it through Claude Code and takes it out of the marketplace in its parent folder. Once that marketplace lists no checkout, it uninstalls the cmod plugin the marketplace installed, removes the marketplace and its declaration in `<parent>/.claude/settings.local.json` from Claude Code, and deletes its file and its line in `.git/info/exclude`. The line for `settings.local.json` stays while that file does, because Claude Code leaves it behind, empty. Then it turns back on the copy of the mod `cmod link` turned off,
|
|
47
|
+
Stops loading the checkout at `path` (default: the current folder) in every Claude Code session. Uninstalls it through Claude Code and takes it out of the marketplace in its parent folder. Once that marketplace lists no checkout, it uninstalls the cmod plugin the marketplace installed, removes the marketplace and its declaration in `<parent>/.claude/settings.local.json` from Claude Code, and deletes its file and its line in `.git/info/exclude`. The line for `settings.local.json` stays while that file does, because Claude Code leaves it behind, empty. Then it turns back on the copy of the mod `cmod link` turned off, removes the program `cmod link` built, with its links, and sets up the copy of the mod Claude Code still has, which keeps the mod's data and secrets. Only when Claude Code has no other copy does it run the checkout's uninstall step and remove what cmod set up.
|
|
48
48
|
|
|
49
49
|
### cmod check
|
|
50
50
|
|
|
@@ -175,7 +175,7 @@ Updates the named plugin, or every plugin Claude Code has installed, through Cla
|
|
|
175
175
|
cmod remove <name>
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
-
Uninstalls the plugin through Claude Code. When cmod set the plugin up as a mod, it
|
|
178
|
+
Uninstalls the plugin through Claude Code. When cmod set the plugin up as a mod and Claude Code still has another copy of it, such as one from another marketplace or a linked checkout, it sets that copy up, which keeps the mod's data and secrets. When no copy is left, it runs the uninstall step cmod saved and removes what cmod set up.
|
|
179
179
|
|
|
180
180
|
### cmod enable and cmod disable
|
|
181
181
|
|
package/docs/install-steps.md
CHANGED
|
@@ -134,6 +134,7 @@ When the install step succeeds, cmod saves a copy of every script folder the uni
|
|
|
134
134
|
|
|
135
135
|
- After the person removes the mod with `/plugin uninstall`, the cmod plugin runs the uninstall step at the next session start or prompt.
|
|
136
136
|
- `cmod remove <mod>` uninstalls the mod and runs the step at once.
|
|
137
|
+
- The step runs only once Claude Code has no copy of the mod left. When `cmod remove`, `cmod unlink`, or `/plugin uninstall` takes away one copy and another stays, such as an installed copy beside a linked checkout, cmod sets up the copy that stays and keeps the mod's data and secrets.
|
|
137
138
|
- In the copy, `CMOD_PLUGIN_ROOT` is the copy's folder, and `CMOD_DATA` and `CMOD_VERSION` are the same as at install.
|
|
138
139
|
- After the step, cmod deletes the mod's install record, its program, its data folder, and the approvals of its scripts. It keeps the mod's config folders, because the files there are the person's.
|
|
139
140
|
- A failed uninstall step keeps the record. `cmod teardown <mod>` runs it again.
|
|
@@ -234,4 +235,4 @@ Claude Code itself has no field for this, and installs the mod on any machine.
|
|
|
234
235
|
|
|
235
236
|
The cmod repository ships the `cmod` program this way. Its `package.json` holds `"cmod": { "program": "cmod" }`, and its `cli/package.json` holds `"cmod": { "build": "bun run build", "output": "dist" }`.
|
|
236
237
|
|
|
237
|
-
Its `build` script passes `--no-compile-autoload-dotenv --no-compile-autoload-bunfig` to `bun build --compile`, because a compiled Bun program otherwise loads the `.env` and `bunfig.toml` of the folder it runs in, and runs that `bunfig.toml`'s `preload` scripts inside itself. It starts with `trap 'rm -f .*.bun-build' EXIT;`, because Bun 1.4.4 leaves an 89 MB `.<hash>-00000000.bun-build` file beside every compile.
|
|
238
|
+
Its `build` script passes `--no-compile-autoload-dotenv --no-compile-autoload-bunfig` to `bun build --compile`, because a compiled Bun program otherwise loads the `.env` and `bunfig.toml` of the folder it runs in, and runs that `bunfig.toml`'s `preload` scripts inside itself. It starts with `trap 'rm -f .*.bun-build' EXIT;`, because Bun 1.4.4 leaves an 89 MB `.<hash>-00000000.bun-build` file beside every compile, so a build run by hand leaves none either. cmod deletes each such file a build it runs leaves in `cli/`, whatever the build script does.
|
package/package.json
CHANGED
package/records.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ export declare function newestLog(entries: readonly LogEntry[]): LogEntry[];
|
|
|
174
174
|
export declare function versionsLine({ mod, core, cmod, program, claudeCode }: LogVersions): string;
|
|
175
175
|
export declare function logReport(entry: LogEntry): string;
|
|
176
176
|
export declare function parseConsent(value: unknown, path: string): Record<string, string[]>;
|
|
177
|
-
export declare const coreVersion = "6.1.
|
|
177
|
+
export declare const coreVersion = "6.1.1";
|
|
178
178
|
export declare const oldestCmodVersion = "6.1.0";
|
|
179
179
|
export declare function hotkeyCommand(mod: string, hotkey: string): string;
|
|
180
180
|
export declare function hotkeyBindings(mod: string, hotkeys: Hotkeys | undefined): Record<string, string>;
|
package/records.js
CHANGED
|
@@ -378,7 +378,7 @@ function readHotkeys(hotkeys) {
|
|
|
378
378
|
throw new Error(`package.json "cmod.hotkeys" is not a map of hotkeys to their title and optional default combo. ${fix}`);
|
|
379
379
|
return { hotkeys: checkHotkeys('package.json "cmod"', hotkeys) };
|
|
380
380
|
}
|
|
381
|
-
export const coreVersion = '6.1.
|
|
381
|
+
export const coreVersion = '6.1.1';
|
|
382
382
|
export const oldestCmodVersion = '6.1.0';
|
|
383
383
|
export function hotkeyCommand(mod, hotkey) {
|
|
384
384
|
return `${mod}--${hotkey}`;
|
package/src/records.ts
CHANGED
|
@@ -458,7 +458,7 @@ function readHotkeys(hotkeys: unknown): Steps {
|
|
|
458
458
|
return { hotkeys: checkHotkeys('package.json "cmod"', hotkeys as Record<string, HotkeyInit>) }
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
export const coreVersion = '6.1.
|
|
461
|
+
export const coreVersion = '6.1.1'
|
|
462
462
|
|
|
463
463
|
export const oldestCmodVersion = '6.1.0'
|
|
464
464
|
|