@cmodjs/core 5.10.0 → 5.11.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/docs/commands.md CHANGED
@@ -231,6 +231,14 @@ Reads every conversation Claude Code saved, as the sessions, contexts, turns, ta
231
231
  - `--json` prints JSON instead of one line each.
232
232
  - `index` reads every saved conversation into the index at `~/.local/share/cmod/history-12.sqlite`, which holds where each message is in its transcript, not a copy of it, and each conversation's turns, with the device each ran on, contexts, and tasks. While cmod has set up a mod other than cmod, the cmod plugin runs it in the background at each session's start, and a second run while one is running exits at once. The index forgets a conversation whose transcript is deleted.
233
233
 
234
+ ### cmod web
235
+
236
+ ```text
237
+ cmod web
238
+ ```
239
+
240
+ Opens the browser app at `http://127.0.0.1:<port>/` and prints that address. The browser app lists every Claude Code session that runs on the computer, in every project, in four groups: Needs you (a permission prompt, a question, or a turn that failed or was stopped), Replied (an answer the person has not opened), Working, and Idle. A session opens its conversation with a prompt box under it, which sends the text as the person's own prompt in that session, a Stop button while it works, and a tab for each Sidebar page its cmod plugin draws, where a press, a text, or a pick runs the mod's handler in that session. `j` and `k` move between sessions, `Enter` opens one and puts the cursor in its prompt box, `Esc` returns to the list, `e` marks a reply done, and `u` marks it unread. A permission prompt or a question is answered in the session's terminal. The browser app runs while `Show the Sidebar in your browser` is on in Settings, under cmod, Preferences, which `open in browser` on the Sidebar's key bar turns on and runs this command. When it does not run, `cmod web` exits 1 and says so. When `open` or `xdg-open` fails, it exits 1 after it printed the address.
241
+
234
242
  ## Run in an install script
235
243
 
236
244
  ### cmod watch
@@ -293,7 +301,7 @@ Refuses a machine the `os` and `cpu` keys of the mod's `package.json` leave out.
293
301
  cmod teardown <plugin-name> [--events]
294
302
  ```
295
303
 
296
- Runs a removed mod's saved uninstall step, then deletes its install record, the saved step, every version of its program, its data folder, and `instances/<plugin-name>/`, where its `singleInstance` and `isService` programs keep their addresses, stops and deletes each service of the computer it runs a program as, with its record in `services/<plugin-name>/` ([cmod program](#cmod-program)), takes out each Claude Code setting it changed that still has the value it set, deletes its secrets ([cmod secret](#cmod-secret)), and deletes its entry in `consent.json`. It keeps the mod's config folder, `~/.claude/cmods/<plugin-name>`. A failed uninstall step keeps the record, so `cmod teardown` can run again.
304
+ Runs a removed mod's saved uninstall step, then deletes its install record, the saved step, every version of its program, its data folder, and `instances/<plugin-name>/`, where its `singleInstance` and `isService` programs keep their addresses, stops and deletes each service of the computer it runs a program as, with its record and log in `services/<plugin-name>/` ([cmod program](#cmod-program)), takes out each Claude Code setting it changed that still has the value it set, deletes its secrets ([cmod secret](#cmod-secret)), and deletes its entry in `consent.json`. It keeps the mod's config folder, `~/.claude/cmods/<plugin-name>`. A failed uninstall step keeps the record, so `cmod teardown` can run again.
297
305
 
298
306
  ### cmod hotkey
299
307
 
@@ -347,9 +355,17 @@ cmod program <mod> [--no-wait | --service [--env <name>]... | --remove-service]
347
355
 
348
356
  Runs one copy of a mod's program for the whole computer, for a `program` job with `singleInstance` ([jobs.md](jobs.md#program)). The first one takes `instances/<mod>/<program>.json.lock` in the cmod store, runs the command without `CLAUDE_CODE_SESSION_ID`, because the copy serves every session, writes its first line on standard output, its address, with the copy's process to `instances/<mod>/<program>.json`, and prints it. It touches its file in the lock every 5 seconds. With `--no-wait`, which a mod's session passes, another one touches the holder's file, prints `held`, and exits 0, and the session reads the address from `instances/<mod>/<program>.json` and runs `cmod program` again once that file is gone or the holder's file is 15 seconds old. Without it, as a mod built on `@cmodjs/core` before 5.3.0 runs it, another one prints the address in that file, then each new one as it changes, and tries the lock again whenever that folder changes and every 5 seconds, so it takes over once the holder exits. A lock whose process is gone counts as free. The holder stops its copy and gives up the lock on SIGTERM, SIGINT, or SIGHUP, and when the session that started it exits, which it checks every 5 seconds. When the copy exits on its own, the holder exits with the copy's exit code, and the copy's standard error passes through. A new holder that finds a copy an earlier holder left running sends it SIGTERM, then SIGKILL after 5 seconds, and starts its own copy only once that one is gone, so two copies never run at once.
349
357
 
350
- With `--service`, which a session passes for a `program` job with `isService`, it makes the holder a service of the computer named `com.claudemodmanager.<mod>.<program>`: a launchd agent in `~/Library/LaunchAgents` on macOS, loaded into the person's login session, and a systemd user service in `~/.config/systemd/user` on Linux, enabled for `default.target`. Its file is mode 600, because it holds the program's environment. The service runs `cmod program <mod> -- <command…>` through the cmod store's `programs/cmod` at login and again whenever it exits, launchd at most once every 10 seconds and systemd 10 seconds after the exit, with `HOME`, `XDG_DATA_HOME`, and `CLAUDE_CONFIG_DIR` as the session has them, a `PATH` of the cmod store's `programs` folder, `/usr/local/bin`, `/opt/homebrew/bin`, `/usr/bin`, `/bin`, `/usr/sbin`, and `/sbin`, and each `--env` variable, which the job passes for each key of its `environment`, `PATH` included. The `PATH` is fixed, because sessions started from different shells hold different ones, and a service rewritten for each would restart at every session start. cmod records it in `services/<mod>/<program>.json` in the cmod store. It loads the service when it is new, changed, or not loaded, waits up to 15 seconds for a holder of `instances/<mod>/<program>.json.lock`, prints `held`, and exits 0, so the session follows the instance file as with `--no-wait`. A service that holds nothing after 15 seconds fails with the command that shows why, `launchctl print gui/<uid>/<label>` or `journalctl --user -u <label>.service`. When the computer does not take the service, such as a Linux machine without a systemd user session, it deletes what it wrote, says why on standard error, and runs as `--no-wait` does. `cmod setup` restarts each service of a mod it sets up, so the service runs the new program, and `cmod teardown` stops and deletes each one.
358
+ With `--service`, which a session passes for a `program` job with `isService`, it makes the holder a service of the computer named `com.claudemodmanager.<mod>.<program>`: a launchd agent in `~/Library/LaunchAgents` on macOS, loaded into the person's login session, and a systemd user service in `~/.config/systemd/user` on Linux, enabled for `default.target`. Its file is mode 600, because it holds the program's environment. The service runs `cmod program <mod> -- <command…>` through the cmod store's `programs/cmod` at login and again whenever it exits, launchd at most once every 10 seconds and systemd 10 seconds after the exit, with `HOME`, `XDG_DATA_HOME`, and `CLAUDE_CONFIG_DIR` as the session has them, a `PATH` of the cmod store's `programs` folder, `/usr/local/bin`, `/opt/homebrew/bin`, `/usr/bin`, `/bin`, `/usr/sbin`, and `/sbin`, `CLAUDE_CODE_EXECPATH`, and each `--env` variable, which the job passes for each key of its `environment`, `PATH` included. The `PATH` is fixed, because sessions started from different shells hold different ones, and a service rewritten for each would restart at every session start. `CLAUDE_CODE_EXECPATH` names the Claude Code of the session that wrote the service, so a `cmod` command the program runs finds Claude Code though the `PATH` holds none. It names the path Claude Code's updates keep, `~/.local/bin/claude` when that launcher runs the same install, because the updater deletes old versions and a service rewritten for each version would restart at every update. cmod records it in `services/<mod>/<program>.json` in the cmod store. On macOS the launchd agent writes the service's standard error, the program's and cmod's own, to `services/<mod>/<program>.log` beside that record, because launchd keeps no output of its own. Each holder that starts the program first cuts a log over 1 MiB to the whole lines of its last 512 KiB, so a program that fails at every restart, which launchd starts again every 10 seconds, never fills the disk. Linux keeps the program's output in the systemd journal, so the systemd user service writes no log. It holds the mod's lock in the cmod store while it writes and loads the service and waits for it, so sessions that start the mod at once, as every session does after an update, never load it beside each other or beside `cmod setup` or `cmod teardown` of the mod. It loads the service when it is new, changed, or not loaded, waits up to 15 seconds for the program to write its address to `instances/<mod>/<program>.json`, prints `held`, and exits 0, so the session follows the instance file as with `--no-wait`. A program that has written no address after 15 seconds still counts as started while a holder holds `instances/<mod>/<program>.json.lock`, so a program slow to listen keeps its service. A service with neither, such as a program that exits at once and whose holder therefore held the lock only for a moment, is stopped, disabled, and deleted with its record, as `cmod remove` does, and it fails with what shows why: on macOS the service's log in the cmod store, which the removal keeps, and on Linux `journalctl --user -u <label>.service`. When the computer does not take the service, such as a Linux machine without a systemd user session, it deletes what it wrote, says why on standard error, and runs as `--no-wait` does. When the computer took the service, a loaded launchd agent or an enabled systemd user service, and starting it still failed, such as systemd refusing a program that exited too often, it stops, disables, and deletes the service and its record as `cmod remove` does, and fails with the service manager's error and what shows why, because the program fails and the person needs that error. `cmod setup` restarts each service of a mod it sets up, so the service runs the new program, and `cmod teardown` stops and deletes each one.
359
+
360
+ With `--remove-service`, it stops the program's service, deletes its file, its record in `services/<mod>/<program>.json`, and its log, and exits 0, holding the mod's lock in the cmod store so it never runs beside `cmod setup` or `cmod teardown` of the mod. A program with no service changes nothing. A session that starts a mod runs it for each record in `services/<mod>/` whose program the mod's setup no longer adds as an `isService` program, so a new version that dropped `isService` or renamed the program leaves no service of the old one. A session reads that folder without a process, so a mod with no `services/<mod>/` folder runs nothing for it.
361
+
362
+ ### cmod web serve
363
+
364
+ ```text
365
+ cmod web serve
366
+ ```
351
367
 
352
- With `--remove-service`, it stops the program's service, deletes its file and its record in `services/<mod>/<program>.json`, and exits 0, holding the mod's lock in the cmod store so it never runs beside `cmod setup` or `cmod teardown` of the mod. A program with no service changes nothing. A session that starts a mod runs it for each record in `services/<mod>/` whose program the mod's setup no longer adds as an `isService` program, so a new version that dropped `isService` or renamed the program leaves no service of the old one. A session reads that folder without a process, so a mod with no `services/<mod>/` folder runs nothing for it.
368
+ Serves the browser app that [`cmod web`](#cmod-web) opens, on 127.0.0.1 only. The cmod plugin of each session an app shows runs it through `cmod program` while `Show the Sidebar in your browser` is on, so one copy serves every session. It reads every running session itself: Claude Code's `sessions/<pid>.json` records, a process counting as running only while its pid runs with the start time Claude Code recorded, and leaving out each `sdk-cli` process, then each session's transcript through the conversation index, as [`cmod history`](#cmod-history) does. A session Claude Code records as waiting on a permission prompt or a question moves to Needs you as soon as the dialog opens, and a turn stopped while a command it ran keeps running in the background says so. Each session's cmod plugin adds what only its own hooks hear: the permission prompt or question it waits on, how its last turn ended, and its context fill, and long-polls for the tabs a browser shows, the presses there, and the prompts and Stops the browser sends it. A session whose cmod plugin is older shows only what its transcript says. It keeps `web.json` in the cmod store with its port, listens on that port again while it is free, so a browser tab left open reconnects after a restart, and prints `127.0.0.1:<port>` once it listens. It keeps which replies the person read or marked done in `web-read.json` beside it. It refuses a request for any host but `127.0.0.1` and `localhost` with its port, and a change from any other page. It exits once the preference is off or a newer cmod is in the cmod store. A session that already ran it then starts it again through `cmod program` with the newest cmod, and that copy waits without listening while the preference is off.
353
369
 
354
370
  ### cmod option
355
371
 
package/docs/jobs.md CHANGED
@@ -333,7 +333,7 @@ type Program = {
333
333
  - In an interactive session the program starts with the mod. Otherwise it starts at the first `ready()`.
334
334
  - When the program exits, cmod starts it again after 1, 2, 4, 8, and 16 seconds. After 5 failed tries, or a first line that is not an address, the state is `fatal`, `ready()` rejects, and cmod logs `<mod>: the <program> program stopped: <reason>`.
335
335
  - `singleInstance: true` runs one copy on the computer, however many sessions load the mod, such as a server that is the only writer of its data. The first session starts the copy through [`cmod program`](commands.md#cmod-program), every other session reads the copy's address from the cmod store and runs no process of its own, and every session's `ready()` resolves that copy's address. When the session running the copy ends, another open session starts a new copy within a few seconds, or within 20 seconds when the copy's session was killed with its `cmod program`, and from then on `ready()` resolves the new address in every session, so ask `ready()` before each use rather than keeping its answer. A copy a killed session left running is stopped before the new one starts. Two `singleInstance` programs with the same program name in one mod throw at `mod.use`.
336
- - `isService: true` makes the program a service of the computer, so it runs whenever the person is logged in, with no Claude Code open, such as a program that records sessions Claude Code never sees. The first session that starts the mod has [`cmod program`](commands.md#cmod-program) write a launchd agent on macOS, or a systemd user service on Linux, which starts the program at login and again whenever it exits, with `environment`. The service's `PATH` is cmod's programs folder, `/usr/local/bin`, `/opt/homebrew/bin`, and the system folders, unless `environment` sets `PATH`. Every session reads the service's address from the cmod store, as a `singleInstance` program's sessions do, and `ready()` resolves it. The service runs one copy, so `isService` needs no `singleInstance` beside it. The mod writes no service file: cmod restarts the service when it sets up a new version of the mod, and stops and deletes it when the mod is removed. When a new version's setup no longer adds the `isService` program, because it dropped `isService` or renamed the program, the first session that starts that version stops and deletes the old service, so the computer stops running a program the mod no longer ships. Settings shows `Runs as a service of this computer` on the mod's page, and [`cmod list`](commands.md#cmod-list) names the program. On a computer that does not take the service, such as a Linux machine without a systemd user session, the program runs as a `singleInstance` program does. Two `isService` programs with the same program name in one mod throw at `mod.use`.
336
+ - `isService: true` makes the program a service of the computer, so it runs whenever the person is logged in, with no Claude Code open, such as a program that records sessions Claude Code never sees. The first session that starts the mod has [`cmod program`](commands.md#cmod-program) write a launchd agent on macOS, or a systemd user service on Linux, which starts the program at login and again whenever it exits, with `environment`. The service's `PATH` is cmod's programs folder, `/usr/local/bin`, `/opt/homebrew/bin`, and the system folders, unless `environment` sets `PATH`, and its `CLAUDE_CODE_EXECPATH` names the session's Claude Code by the path its updates keep, so a `cmod` command the program runs, such as `cmod options`, finds Claude Code. Every session reads the service's address from the cmod store, as a `singleInstance` program's sessions do, and `ready()` resolves it. The service runs one copy, so `isService` needs no `singleInstance` beside it. The mod writes no service file: cmod restarts the service when it sets up a new version of the mod, and stops and deletes it when the mod is removed. When a new version's setup no longer adds the `isService` program, because it dropped `isService` or renamed the program, the first session that starts that version stops and deletes the old service, so the computer stops running a program the mod no longer ships. Settings shows `Runs as a service of this computer` on the mod's page, and [`cmod list`](commands.md#cmod-list) names the program. On a computer that does not take the service, such as a Linux machine without a systemd user session, the program runs as a `singleInstance` program does. A service the computer took but could not start is removed, and the program fails with the service manager's error, as an exiting program does. A service whose program printed no address within 15 seconds and no longer runs is removed the same way. On macOS the program's standard error goes to `services/<mod>/<program>.log` in the cmod store, which that error names, and on Linux to the systemd journal. Two `isService` programs with the same program name in one mod throw at `mod.use`.
337
337
  - A program that ships with the mod gets onto `PATH` through the `program` key of the mod's `package.json` ([install-steps.md](install-steps.md)). A program an install step fetched with `cmod download` is not on `PATH`, so `command` names it by its full path, `${mod.dataFolder}/bin/<program>`.
338
338
 
339
339
  ```ts
package/docs/mod.md CHANGED
@@ -537,7 +537,7 @@ type Device = { id: string; name: string; os: 'darwin' | 'linux'; arch: 'arm64'
537
537
  ```
538
538
 
539
539
  - `id` is the same on one computer for every session, mod, and reinstall, and differs between computers. cmod reads it from the operating system and stores nothing: the IOPlatformUUID on macOS, and on Linux `/etc/machine-id`, or `/var/lib/dbus/machine-id` when that holds none, as systemd and D-Bus read them, hashed for cmod the way systemd's `sd_id128_get_machine_app_specific` hashes a machine id for an app, so the id never shows the computer's own.
540
- - `name` is the name the computer goes by on its network: its LocalHostName on macOS, such as `Jordans-Mac-mini`, and its hostname on Linux.
540
+ - `name` is the name the computer goes by on its network: its LocalHostName on macOS, such as `Office-Mac-mini`, and its hostname on Linux.
541
541
  - `os` and `arch` are the names cmod's builds use, such as `darwin` and `arm64`.
542
542
  - `read` reads the computer the first time the mod calls it, and answers the same device after that. It rejects on a computer other than macOS or Linux on arm64 or x64. It also rejects on a Linux computer where neither `/etc/machine-id` nor `/var/lib/dbus/machine-id` holds a machine id, as in many containers, with a sentence that names both files.
543
543
  - A mod's program that runs with no session, such as over `ssh`, reads the same device with `cmod device --json` ([commands.md](commands.md#cmod-device)).
package/docs/ui.md CHANGED
@@ -145,6 +145,8 @@ type Page<Params = undefined> = {
145
145
  - A `render` that throws draws `The <title> page could not draw: <error>` in the page, and cmod shows the error toast `The <title> page could not draw` once, until the page draws again.
146
146
  - A press on a `Button` from an older drawing, such as one drawn before the mod reloaded, runs nothing. cmod shows the toast `The <mod> button was from an older drawing, so nothing ran` and draws the page again.
147
147
 
148
+ The person can run their sessions from the browser app too, which `open in browser` on the Sidebar's key bar opens and Settings, under cmod, turns off. It lists every running session, and an open session shows its Dashboard, pages, and Settings in tabs beside its conversation, as in the Sidebar. A page needs no change: the browser draws the same `render`, with `props.columns` the browser's width in characters and `props.isFocused` true. A `Button`, `Input`, `Select`, or Markdown link pressed there runs the same handler, with `surface: 'desktop'`, and the page redraws in the browser and in the Sidebar. A page the browser shows counts as `isShown`. The browser draws an `Image` from a file or shared memory as its `alt` text, and `Code` without syntax colors.
149
+
148
150
  A hotkey is the usual way in:
149
151
 
150
152
  ```tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmodjs/core",
3
- "version": "5.10.0",
3
+ "version": "5.11.0",
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
@@ -86,6 +86,7 @@ export declare function instanceFolder(store: string, mod: string): string;
86
86
  export declare function instancePath(store: string, mod: string, executable: string): string;
87
87
  export declare function serviceFolder(store: string, mod: string): string;
88
88
  export declare function servicePath(store: string, mod: string, executable: string): string;
89
+ export declare function serviceLogPath(store: string, mod: string, executable: string): string;
89
90
  export type Links = {
90
91
  readonly marketplaces: Readonly<Record<string, string>>;
91
92
  readonly turnedOff: Readonly<Record<string, readonly string[]>>;
@@ -97,8 +98,14 @@ export declare function widgetsPath(store: string): string;
97
98
  export declare function preferencesPath(store: string): string;
98
99
  export type Preferences = {
99
100
  readonly showsInstalledModErrors: boolean;
101
+ readonly servesWebUi: boolean;
100
102
  };
101
103
  export declare function parsePreferences(value: unknown, path: string): Preferences;
104
+ export declare function webPath(store: string): string;
105
+ export type WebUi = {
106
+ readonly port: number;
107
+ };
108
+ export declare function parseWebUi(value: unknown, path: string): WebUi | undefined;
102
109
  export type Contact = {
103
110
  readonly kind: 'github';
104
111
  readonly repository: string;
@@ -135,7 +142,7 @@ export declare function newestLog(entries: readonly LogEntry[]): LogEntry[];
135
142
  export declare function versionsLine({ mod, core, cmod, program, claudeCode }: LogVersions): string;
136
143
  export declare function logReport(entry: LogEntry): string;
137
144
  export declare function parseConsent(value: unknown, path: string): Record<string, string[]>;
138
- export declare const coreVersion = "5.10.0";
145
+ export declare const coreVersion = "5.11.0";
139
146
  export declare const oldestCmodVersion = "5.10.0";
140
147
  export declare function hotkeyCommand(mod: string, hotkey: string): string;
141
148
  export declare function hotkeyBindings(mod: string, hotkeys: Hotkeys | undefined): Record<string, string>;
package/records.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"records.d.ts","sourceRoot":"","sources":["src/records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAG1E,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;I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E,OAAO,EAAE,MAAM,GAAG,OAAO,CAQnE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE"}
package/records.js CHANGED
@@ -232,6 +232,9 @@ export function serviceFolder(store, mod) {
232
232
  export function servicePath(store, mod, executable) {
233
233
  return `${serviceFolder(store, mod)}/${checkedName(executable)}.json`;
234
234
  }
235
+ export function serviceLogPath(store, mod, executable) {
236
+ return `${serviceFolder(store, mod)}/${checkedName(executable)}.log`;
237
+ }
235
238
  export function parseLinks(value, path) {
236
239
  if (value === undefined)
237
240
  return { marketplaces: {}, turnedOff: {} };
@@ -255,12 +258,22 @@ export function widgetsPath(store) {
255
258
  export function preferencesPath(store) {
256
259
  return `${store}/preferences.json`;
257
260
  }
261
+ const preferenceKeys = ['showsInstalledModErrors', 'servesWebUi'];
258
262
  export function parsePreferences(value, path) {
259
- if (value === undefined)
260
- return { showsInstalledModErrors: false };
261
- if (!isObject(value) || (value['showsInstalledModErrors'] !== undefined && typeof value['showsInstalledModErrors'] !== 'boolean'))
263
+ if (value !== undefined && (!isObject(value) || preferenceKeys.some((key) => value[key] !== undefined && typeof value[key] !== 'boolean')))
262
264
  throw new Error(`${path} is not a map of cmod's preferences to true or false. Delete it, and cmod uses its defaults.`);
263
- return { showsInstalledModErrors: value['showsInstalledModErrors'] === true };
265
+ const saved = isObject(value) ? value : {};
266
+ return { showsInstalledModErrors: saved['showsInstalledModErrors'] === true, servesWebUi: saved['servesWebUi'] === true };
267
+ }
268
+ export function webPath(store) {
269
+ return `${store}/web.json`;
270
+ }
271
+ export function parseWebUi(value, path) {
272
+ if (value === undefined)
273
+ return undefined;
274
+ if (!isObject(value) || !Number.isInteger(value['port']))
275
+ throw new Error(`${path} is not the web UI's port. Delete it, and cmod web serve writes it again.`);
276
+ return { port: value['port'] };
264
277
  }
265
278
  export const loggedFailures = 100;
266
279
  export function logFolder(store) {
@@ -308,7 +321,7 @@ function readHotkeys(hotkeys) {
308
321
  throw new Error(`package.json "cmod.hotkeys" is not a map of hotkeys to their title and optional default combo. ${fix}`);
309
322
  return { hotkeys: checkHotkeys('package.json "cmod"', hotkeys) };
310
323
  }
311
- export const coreVersion = '5.10.0';
324
+ export const coreVersion = '5.11.0';
312
325
  export const oldestCmodVersion = '5.10.0';
313
326
  export function hotkeyCommand(mod, hotkey) {
314
327
  return `${mod}--${hotkey}`;
@@ -2,6 +2,7 @@ import type { HookStream, ProcessSpawnChunk, ProcessSpawnResult } from 'claude-c
2
2
  import type { Claude } from './claude.js';
3
3
  import type { Pages } from './pages.js';
4
4
  import type { Router } from './router.js';
5
+ import type { Subscription } from '../utils/subscription.js';
5
6
  import type { Failure } from './toaster.js';
6
7
  import type { ToolCalls } from './tool-calls.js';
7
8
  import type { Watches } from './watches.js';
@@ -15,6 +16,7 @@ export type Engine = {
15
16
  readonly answerInput: <Answer>(run: () => Promise<Answer>, passOn: () => Promise<unknown>) => Promise<Answer>;
16
17
  readonly spawnCmod: (args: readonly string[], env?: Readonly<Record<string, string>>) => HookStream<ProcessSpawnChunk, ProcessSpawnResult>;
17
18
  readonly watches: Watches;
19
+ readonly onRedraw: (listener: () => void) => Subscription;
18
20
  readonly widgets?: Widgets;
19
21
  readonly pages?: Pages;
20
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../src/runtime/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACpF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,SAA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Q,EAAE,MAAM,IAAI,KAAK,YAAY,CAAA;IACzD,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CACvB,CAAA;AAID,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAE5D;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI5C"}
@@ -658,7 +658,15 @@ export function createLifecycle(definition, permissionRoutes = () => undefined,
658
658
  async function createMod(definition, runtime) {
659
659
  const { router, toaster } = runtime;
660
660
  const report = (failure) => void toaster.fail(failure);
661
- const claude = answeringOwnCalls(withBareRefusals(runtime.claude), router);
661
+ const redraws = new Set();
662
+ const calling = answeringOwnCalls(withBareRefusals(runtime.claude), router);
663
+ const invalidate = (event) => {
664
+ calling.ui.invalidate(event);
665
+ if (event === 'ui.render')
666
+ for (const redraw of redraws)
667
+ redraw();
668
+ };
669
+ const claude = { ...calling, ui: { ...calling.ui, invalidate } };
662
670
  const added = [];
663
671
  const announce = (feature) => {
664
672
  added.push(feature);
@@ -1036,6 +1044,10 @@ async function createMod(definition, runtime) {
1036
1044
  answerInput: area.answerInput,
1037
1045
  spawnCmod: (args, env) => spawnCmod(claude, args, session, env),
1038
1046
  watches,
1047
+ onRedraw(listener) {
1048
+ redraws.add(listener);
1049
+ return { remove: () => void redraws.delete(listener) };
1050
+ },
1039
1051
  ...(widgets === undefined ? {} : { widgets }),
1040
1052
  ...(pages === undefined ? {} : { pages }),
1041
1053
  });
@@ -0,0 +1,82 @@
1
+ export type SidebarTab = {
2
+ readonly key: string;
3
+ readonly label: string;
4
+ readonly isClosable: boolean;
5
+ };
6
+ export type ClosedPage = {
7
+ readonly mod: string;
8
+ readonly page: string;
9
+ readonly title: string;
10
+ };
11
+ export type SessionWait = {
12
+ readonly kind: 'permission';
13
+ readonly tool: string;
14
+ readonly input: Readonly<Record<string, unknown>>;
15
+ } | {
16
+ readonly kind: 'question';
17
+ readonly question: string;
18
+ };
19
+ export type TurnOutcome = {
20
+ readonly reason: 'answered' | 'stopped' | 'failed';
21
+ readonly at: string;
22
+ readonly failure?: string;
23
+ };
24
+ export type SessionAbout = {
25
+ readonly tabs: readonly SidebarTab[];
26
+ readonly pages: readonly ClosedPage[];
27
+ readonly isWorking?: boolean;
28
+ readonly waiting?: SessionWait;
29
+ readonly lastTurn?: TurnOutcome;
30
+ readonly contextPercent?: number;
31
+ };
32
+ export type WebView = {
33
+ readonly id: string;
34
+ readonly tab: string;
35
+ readonly columns: number;
36
+ };
37
+ export type WebInput = {
38
+ readonly draw: number;
39
+ readonly handler: number;
40
+ readonly key: string;
41
+ readonly kind: 'press' | 'change' | 'submit' | 'select' | 'link';
42
+ readonly value?: string;
43
+ readonly href?: string;
44
+ };
45
+ export type WebAction = ({
46
+ readonly type: 'press';
47
+ readonly view: string;
48
+ } & WebInput) | {
49
+ readonly type: 'open';
50
+ readonly mod: string;
51
+ readonly page: string;
52
+ } | {
53
+ readonly type: 'close';
54
+ readonly tab: string;
55
+ } | {
56
+ readonly type: 'prompt';
57
+ readonly text: string;
58
+ } | {
59
+ readonly type: 'stop';
60
+ };
61
+ export type ElementData = {
62
+ readonly $cmodElement: string;
63
+ readonly props: Readonly<Record<string, unknown>>;
64
+ };
65
+ export type HandlerData = {
66
+ readonly $cmodHandler: number;
67
+ };
68
+ export type SessionEvents = {
69
+ readonly views: readonly WebView[];
70
+ readonly actions: readonly WebAction[];
71
+ };
72
+ export type WebDrawing = {
73
+ readonly view: string;
74
+ readonly draw: number;
75
+ readonly tree: unknown;
76
+ };
77
+ export type SessionPost = {
78
+ readonly about?: SessionAbout;
79
+ readonly drawings?: readonly WebDrawing[];
80
+ };
81
+ export declare function htmlOf(tree: unknown): string;
82
+ //# sourceMappingURL=web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/runtime/web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