@cmodjs/core 8.7.0 → 8.7.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/ui.md CHANGED
@@ -240,11 +240,11 @@ It shows the session of the focused terminal: the terminal's foreground process,
240
240
 
241
241
  It never docks itself, because Herdr writes a dock into whichever layout file shows when it first sees the mod, once per Herdr home, and a layout another mod rewrites loses it for good. Herdr shows it in two ways. `mod.open` with `{ "name": "cmod" }` opens the dock as a window over any layout, Herdr's own included, and closes it when run again: from `herdr-app do mod.open:cmod`, a `keys.json` binding such as `"ctrl-shift-m": "mod.open:cmod"`, or another mod's `run`. The window takes no keyboard, so the dock keeps following the focused terminal, and Herdr remembers where it was dragged. A layout author places it anywhere a mod goes instead, with the `props` that say what it shows:
242
242
 
243
- - `{ "mod": "cmod" }`, or `{ "show": "views" }`, shows the focused session's views as tabs, and hosts the focused session, in a layout and in the `mod.open` window alike: its `show` carries `isHost`, so the session opens no Sidebar of its own. An `Open` with `isAsked` selects the view's tab, and a dock in a layout also shows its own block: it selects the block's branch of each stack above it and shows each hidden node on the way, with `layout.select` and `layout.show`, wherever the layout puts it. It shows the views in the order `views` lists them, the cmod plugin's own `history` and `settings` among them, with `dashboard` only while a widget is on the Dashboard, each label starting with a capital, and the session's open pages after them in the same row, which scrolls. It draws every view the session lists and draws each again on its `Redraw`, so a switch of tab shows its drawing at once, and a `Redraw` that comes while that view's drawing is on its way draws it once more after it lands. A page opens as a Herdr tab, `tab.new` with `{ "show": "page", "session", "mod", "id", "title" }`. A page a mod opens itself opens the same way on `Open`, and its tab closes on `Close`. A view a mod opens becomes the shown tab, and a `Close` of the shown view goes back to the first one, as the Sidebar takes a closed view away.
243
+ - `{ "mod": "cmod" }`, or `{ "show": "views" }`, shows the focused session's views as tabs, and hosts the focused session, in a layout and in the `mod.open` window alike: its `show` carries `isHost`, so the session opens no Sidebar of its own. An `Open` with `isAsked` selects the view's tab, and a dock in a layout also shows its own block: it selects the block's branch of each stack above it and shows each hidden node on the way, with `layout.select` and `layout.show`, wherever the layout puts it. It shows the views in the order `views` lists them, the cmod plugin's own `history` and `settings` among them, with `dashboard` only while a widget is on the Dashboard, each label starting with a capital, and the session's open pages after them in the same row, which scrolls. It draws every view the session lists once, then draws again only the view it shows, on its `Redraw` and each time its tab is chosen, so a switch of tab shows the view's last drawing at once and a fresh one behind it, and a view out of sight costs Herdr nothing. A `Redraw` that comes while the shown view's drawing is on its way draws it once more after it lands. Every redraw of a Herdr mod redraws Herdr's whole window, so the dock redraws only when what it shows changed. A page opens as a Herdr tab, `tab.new` with `{ "show": "page", "session", "mod", "id", "title" }`. A page a mod opens itself opens the same way on `Open`, and its tab closes on `Close`. A view a mod opens becomes the shown tab, and a `Close` of the shown view goes back to the first one, as the Sidebar takes a closed view away.
244
244
  - `{ "show": "widgets", "area": "belowPrompt" }` draws in a row each widget that lists that area, drawn for that area, for a status bar block. `area` is the value of an area constant: `abovePrompt`, `belowPrompt`, `working`, `turnEnd`, or `dashboard`, the default. In a pane header Herdr gives `props().terminal`, so each pane's header draws its own session's widgets.
245
245
  - `{ "show": "page", "session": "<id>", "mod": "<mod>", "id": "<page>" }` draws one page of one session, as a page in the dock's row opens it.
246
246
 
247
- Each dock and page tab tells `show` the views or page it draws, under a client name it makes once: a dock tells every view of the session, so each counts as `isShown` and keeps its state while Herdr shows the session. It tells again when its focused session changes, renews the list every 5 seconds, and clears it when its focused session changes or the placement closes. A `{ "show": "widgets" }` block tells nothing, because `isShown` is about views and pages.
247
+ Each dock and page tab tells `show` the views or page it draws, under a client name it makes once: a dock tells the one view it shows. It tells again when its tab or its focused session changes, renews the list every 5 seconds, and clears it when its focused session changes or the placement closes. A `{ "show": "widgets" }` block tells nothing, because `isShown` is about views and pages.
248
248
 
249
249
  ```json
250
250
  { "id": "cmod", "type": "block", "size": { "px": 360 }, "content": { "mod": "cmod", "props": { "show": "views" } } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmodjs/core",
3
- "version": "8.7.0",
3
+ "version": "8.7.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
@@ -194,7 +194,7 @@ export declare function newestLog(entries: readonly LogEntry[]): LogEntry[];
194
194
  export declare function versionsLine({ mod, core, cmod, program, claudeCode }: LogVersions): string;
195
195
  export declare function logReport(entry: LogEntry): string;
196
196
  export declare function parseConsent(value: unknown, path: string): Record<string, string[]>;
197
- export declare const coreVersion = "8.7.0";
197
+ export declare const coreVersion = "8.7.1";
198
198
  export declare const oldestCmodVersion = "8.0.0";
199
199
  export declare function hotkeyCommand(mod: string, hotkey: string): string;
200
200
  export declare function hotkeyBindings(mod: string, hotkeys: Hotkeys | undefined): Record<string, string>;
package/records.js CHANGED
@@ -405,7 +405,7 @@ function readHotkeys(hotkeys) {
405
405
  throw new Error(`package.json "cmod.hotkeys" is not a map of hotkeys to their title and optional default combo. ${fix}`);
406
406
  return { hotkeys: checkHotkeys('package.json "cmod"', hotkeys) };
407
407
  }
408
- export const coreVersion = '8.7.0';
408
+ export const coreVersion = '8.7.1';
409
409
  export const oldestCmodVersion = '8.0.0';
410
410
  export function hotkeyCommand(mod, hotkey) {
411
411
  return `${mod}--${hotkey}`;
package/src/records.ts CHANGED
@@ -499,7 +499,7 @@ function readHotkeys(hotkeys: unknown): Steps {
499
499
  return { hotkeys: checkHotkeys('package.json "cmod"', hotkeys as Record<string, HotkeyInit>) }
500
500
  }
501
501
 
502
- export const coreVersion = '8.7.0'
502
+ export const coreVersion = '8.7.1'
503
503
 
504
504
  export const oldestCmodVersion = '8.0.0'
505
505