@cmodjs/core 5.4.0 → 5.4.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 CHANGED
@@ -103,7 +103,7 @@ cmod publish [path] [--dry-run]
103
103
 
104
104
  Releases the mod at `path` (default: the current folder) at the version in its `plugin.json`. It refuses a `plugin.json` whose `userConfig` differs from the options `defineMod` declares, and says to run `cmod check` and commit `.claude-plugin/plugin.json`.
105
105
 
106
- 1. Builds the release from the files git does not ignore, leaving out `cli/`, `.github/`, and `.claude/`. A `"files"` list in `package.json` limits the release to the paths it lists, plus the folders of the install and uninstall steps, `.claude-plugin/`, `package.json`, `tsconfig.json`, the README, the license, and `CHANGELOG.md`, the way `npm publish` reads it. `tsconfig.json` holds the JSX settings the bundle in step 2 needs. List every folder the hooks module imports from, such as `"files": ["hooks", "src", "skills"]`, because the bundle in step 2 is built from the release.
106
+ 1. Builds the release from the files git does not ignore, leaving out `cli/`, `.github/`, and `.claude/`. A `"files"` list in `package.json` limits the release to the paths it lists, a path in those three folders included, such as `cli/bin/<launcher>`, plus the folders of the install and uninstall steps, `.claude-plugin/`, `package.json`, `tsconfig.json`, the README, the license, and `CHANGELOG.md`, the way `npm publish` reads it. `tsconfig.json` holds the JSX settings the bundle in step 2 needs. List every folder the hooks module imports from, such as `"files": ["hooks", "src", "skills"]`, because the bundle in step 2 is built from the release.
107
107
  2. Bundles the hooks module that `hooks/hooks.json` names, with the mod's source and packages, into one readable `.js` file, writes each control character in it as a `\u` escape, and points `hooks/hooks.json` at it. Anthropic's plugin directory reads a repository without installing its packages, so it can follow a mod only when all its code is in one file. Without `"approve": true` in `package.json` `"cmod"`, the bundle leaves out the code that allows and asks on Claude Code's permission check, because Anthropic's plugin directory does not list a mod that can approve Claude's tool calls ([mod.md](mod.md#register-the-mod-with-claude-code)).
108
108
  3. Checks the release's `.claude-plugin/plugin.json`, and its `.claude-plugin/marketplace.json` when it has one, with `claude plugin validate --strict`, and stops with every line the validator writes when it fails. `cmod check` builds and validates the release the same way, so it fails first.
109
109
  4. Commits the release as the `release` branch, and builds the release archive from that commit.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmodjs/core",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "description": "Build Claude Code mods: hooks, panes, checks, and an install that just works.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/records.d.ts CHANGED
@@ -96,7 +96,7 @@ export type Preferences = {
96
96
  };
97
97
  export declare function parsePreferences(value: unknown, path: string): Preferences;
98
98
  export declare function parseConsent(value: unknown, path: string): Record<string, string[]>;
99
- export declare const coreVersion = "5.4.0";
99
+ export declare const coreVersion = "5.4.1";
100
100
  export declare const oldestCmodVersion = "5.4.0";
101
101
  export declare function hotkeyCommand(mod: string, hotkey: string): string;
102
102
  export declare function hotkeyBindings(mod: string, hotkeys: Hotkeys | undefined): Record<string, string>;
package/records.js CHANGED
@@ -266,7 +266,7 @@ function readHotkeys(hotkeys) {
266
266
  throw new Error(`package.json "cmod.hotkeys" is not a map of hotkeys to their title and optional default combo. ${fix}`);
267
267
  return { hotkeys: checkHotkeys('package.json "cmod"', hotkeys) };
268
268
  }
269
- export const coreVersion = '5.4.0';
269
+ export const coreVersion = '5.4.1';
270
270
  export const oldestCmodVersion = '5.4.0';
271
271
  export function hotkeyCommand(mod, hotkey) {
272
272
  return `${mod}--${hotkey}`;
package/src/records.ts CHANGED
@@ -307,7 +307,7 @@ function readHotkeys(hotkeys: unknown): Steps {
307
307
  return { hotkeys: checkHotkeys('package.json "cmod"', hotkeys as Record<string, HotkeyInit>) }
308
308
  }
309
309
 
310
- export const coreVersion = '5.4.0'
310
+ export const coreVersion = '5.4.1'
311
311
 
312
312
  export const oldestCmodVersion = '5.4.0'
313
313