@cmodjs/core 5.13.3 → 6.0.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.
Files changed (65) hide show
  1. package/docs/commands.md +4 -4
  2. package/docs/index.md +7 -5
  3. package/docs/install-steps.md +1 -1
  4. package/docs/mod.md +17 -16
  5. package/docs/testing.md +1 -1
  6. package/docs/ui.md +27 -16
  7. package/installer.d.ts +1 -2
  8. package/installer.d.ts.map +1 -1
  9. package/mod.d.ts +13 -7
  10. package/mod.d.ts.map +1 -1
  11. package/mod.js +3 -3
  12. package/package.json +1 -1
  13. package/records.d.ts +16 -3
  14. package/records.d.ts.map +1 -1
  15. package/records.js +25 -4
  16. package/register.d.ts +5 -3
  17. package/register.d.ts.map +1 -1
  18. package/register.js +4 -0
  19. package/runtime/claude.d.ts +4 -0
  20. package/runtime/claude.d.ts.map +1 -1
  21. package/runtime/lifecycle.d.ts.map +1 -1
  22. package/runtime/lifecycle.js +8 -3
  23. package/runtime/pages.d.ts +1 -0
  24. package/runtime/pages.d.ts.map +1 -1
  25. package/runtime/pages.js +7 -1
  26. package/runtime/toaster.d.ts +1 -1
  27. package/runtime/toaster.d.ts.map +1 -1
  28. package/runtime/toaster.js +4 -4
  29. package/runtime/ui.d.ts +3 -1
  30. package/runtime/ui.d.ts.map +1 -1
  31. package/runtime/ui.js +17 -3
  32. package/runtime/web.js +3 -0
  33. package/src/installer.ts +1 -2
  34. package/src/mod.ts +21 -10
  35. package/src/records.ts +26 -4
  36. package/src/register.ts +11 -3
  37. package/src/runtime/claude.ts +4 -0
  38. package/src/runtime/lifecycle.ts +12 -3
  39. package/src/runtime/pages.ts +7 -1
  40. package/src/runtime/toaster.ts +4 -4
  41. package/src/runtime/ui.ts +18 -5
  42. package/src/runtime/web.ts +2 -0
  43. package/src/testing/fake-claude.ts +4 -0
  44. package/src/testing.ts +11 -5
  45. package/src/ui/areas.ts +1 -2
  46. package/src/ui/components.ts +10 -11
  47. package/src/ui/elements.ts +51 -3
  48. package/src/ui/panes.ts +9 -5
  49. package/src/ui/styles.ts +3 -3
  50. package/testing/fake-claude.d.ts.map +1 -1
  51. package/testing/fake-claude.js +4 -0
  52. package/testing.d.ts +2 -2
  53. package/testing.d.ts.map +1 -1
  54. package/testing.js +10 -4
  55. package/ui/areas.d.ts +1 -2
  56. package/ui/areas.d.ts.map +1 -1
  57. package/ui/components.d.ts +15 -16
  58. package/ui/components.d.ts.map +1 -1
  59. package/ui/elements.d.ts +32 -13
  60. package/ui/elements.d.ts.map +1 -1
  61. package/ui/elements.js +15 -1
  62. package/ui/panes.d.ts +7 -5
  63. package/ui/panes.d.ts.map +1 -1
  64. package/ui/styles.d.ts +3 -3
  65. package/ui/styles.d.ts.map +1 -1
package/docs/commands.md CHANGED
@@ -34,7 +34,7 @@ It loads the checkout through a marketplace cmod keeps in the checkout's parent
34
34
  3. It adds the marketplace to Claude Code with `claude plugin marketplace add <parent> --scope local`, which declares it in `<parent>/.claude/settings.local.json`, so the `settings.json` you share between computers holds no path of this one, the way `npm link` keeps a link out of the shared `package.json`. Then it installs `<mod>@<parent folder>-linked` from it, which loads the checkout's own files in every session, in any project, at the next reload.
35
35
  4. It turns off the installed copy of the mod from any other marketplace, and records it in `links.json` in the cmod store, so `cmod unlink` turns that copy back on.
36
36
 
37
- It refuses a parent folder whose `.claude-plugin/marketplace.json` cmod did not write. Once a change builds, `cmod watch` tells every session, and each one offers Reload. To test your edits without pressing Reload, start the session with `claude --plugin-dir <checkout>`: Claude Code then reloads the checkout by itself between turns, in that session only.
37
+ It refuses a parent folder whose `.claude-plugin/marketplace.json` cmod did not write. Once a change builds, `cmod watch` tells every session, and each one still running the old build offers Reload, 35 seconds after the last change and between turns. To test your edits without pressing Reload, start the session with `claude --plugin-dir <checkout>`: Claude Code then reloads the checkout by itself between turns, in that session only, and that session offers nothing for it.
38
38
 
39
39
  - `--option key=value` sets one of the mod's options through `claude plugin configure`, once per option, under the linked id, such as `my-mod@Developer-linked`. It refuses a key the mod does not declare, and names the keys it does ([options.md](options.md)).
40
40
 
@@ -62,7 +62,7 @@ Runs every check this machine can run on the mod at `path` (default: the current
62
62
  6. Reads the metadata of every file in the mod, and names each file whose metadata cmod cannot read.
63
63
  7. Writes the options `defineMod` declares into `.claude-plugin/plugin.json` `userConfig`, and its hotkeys into `package.json` `"cmod"` `hotkeys`, keeping each file's own formatting, so Claude Code shows the options in `/config` ([options.md](options.md)). It loads `hooks/register.ts` to read them, without starting the mod.
64
64
  8. Writes the `cmod` dependency in `.claude-plugin/plugin.json` as `>=` the oldest cmod the `@cmodjs/core` the mod installed runs on, `oldestCmodVersion` in its `records.js`, such as `>=5.2.0`, so every newer cmod runs the mod. When the mod needs a newer cmod than that, such as one whose cmod plugin carries out a call the mod makes, write that minimum yourself as `>=` its version, such as `>=5.6.0`, and `cmod check` keeps it. It raises only a minimum below that oldest cmod, and writes any other range as `>=` that oldest cmod. A `@cmodjs/core` that does not export `oldestCmodVersion` runs on the cmod of its own version, so the range is `>=` that version, such as `>=4.3.4`. A mod still on `@cmodjs/core` 3 keeps its own range ([dependencies.md](dependencies.md#call-the-methods-mod-dependencies)). Claude Code turns a mod off when its cmod is older than that dependency, so `cmod check` first compares it with every cmod plugin Claude Code installed on this machine. When an installed copy is older, it updates them as `cmod update cmod` does. When one is still older, as when your `@cmodjs/core` needs a cmod newer than every published one, the check fails, keeps the old dependency, and names the `@cmodjs/core` to install instead. When a cmod linked from a checkout is older, the check fails the same way and says to pull that checkout, because no update reaches it. On a machine without Claude Code or without a cmod plugin, such as CI, it writes the dependency at once.
65
- 9. Checks its imports.
65
+ 9. Checks its imports. It fails a file that imports the `claude-code` module, because every type a mod writes comes from `@cmodjs/core` ([index.md](index.md#what-a-mod-is)). A provider's types file adds to that module with `declare module 'claude-code'`, which imports nothing, so the check keeps it.
66
66
  10. Looks for prebuilt binaries outside `cli/`.
67
67
  11. Builds the release in a temporary folder as `cmod publish` builds it, with its `"files"` list and its bundled hooks module, and validates the release with Claude Code, `claude plugin validate --strict`. So it fails on a path `plugin.json` names that `"files"` leaves out, a `"files"` path that matches no file in the mod, and each reason a bundle fails, and prints every line the validator writes. Then it deletes the folder.
68
68
  12. Compiles it against Claude Code's API with `tsc`, with `tsconfig.json`, and then with `tests/tsconfig.json` when it exists. `cmod new` writes both: the root config leaves Bun out of `src/`, which runs inside Claude Code, and the tests config adds `bun-types`, so a test can run a real program with `Bun.spawn` or read files with `node:fs`. When `.claude-plugin/types/` is missing, as in a fresh clone or in CI, Claude Code writes it first: cmod loads the mod in one `claude -p` run with a config folder of its own and no model to reach, so the run sends nothing.
@@ -237,7 +237,7 @@ Reads every conversation Claude Code saved, as the sessions, contexts, turns, ta
237
237
  cmod web
238
238
  ```
239
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.
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. It opens the address by the rule a `Button` with `href` follows ([ui.md](ui.md#a-button-opens-a-web-page-with-href)): with the program `BROWSER` names, else `open` on macOS and `xdg-open` on Linux. Over ssh, on Linux with no display, or with `BROWSER` set to `true`, it opens nothing, prints the address, and exits 1 with `this computer has no browser to open, so open the address above yourself.` When the opener fails, it exits 1 after it printed the address.
241
241
 
242
242
  ## Run in an install script
243
243
 
@@ -247,7 +247,7 @@ Opens the browser app at `http://127.0.0.1:<port>/` and prints that address. The
247
247
  cmod watch
248
248
  ```
249
249
 
250
- Tells every running session once a checkout `cmod link` linked builds after a change, so each one offers Reload. It watches each linked folder, outside `node_modules` and `.git`, and skips a change to a file git ignores, such as the `.claude-plugin/types/` Claude Code writes each time it loads the mod, a change inside the program's `output` folder, and a change to a file that is gone again and git does not track, such as a build's temporary file. Once a folder has had no change for 2 seconds, it bundles the mod's hooks module as `cmod publish` does. When a changed file is one the program's build reads, a file in `cli/` or one the JavaScript or TypeScript file `cli/package.json` `bin` names imports, such as the mod's own `src/`, it also builds the program `cli/` declares and links it as `cmod link` does, so the program in cmod's programs folder is never older than the mod. A change no program build reads builds no program. A program whose build failed builds again at the next change, whatever it changed. A build that changes the program stops its running copy, so a `singleInstance` or `isService` program restarts on the new build ([cmod program](#cmod-program)), and a build that writes the same program leaves the file and the copy as they are. A mod that builds marks `plugins-changed`, so every session shows the `Plugins changed` toast, and no session reloads by itself. A bundle or program build that still fails 10 seconds after the last change shows `<mod> does not build` with the error as one toast in each session working inside the checkout, the last program that built keeps running, and the toast goes once the mod builds. So an agent's half-written file offers nothing and shows nothing. At its start it bundles again each mod whose failure it finds in `build-failures.json`, so a failure an older cmod wrote goes once the mod builds. The cmod plugin starts one only in a session that an app shows, once a mod is linked, at the session's start or later, so a machine with no linked mod runs none. The first holds `watch.lock` in the cmod store, watches, and touches its file there every 5 seconds. Another one exits at once while it runs, and the cmod plugin of each such session starts one again once that file is gone or 15 seconds old, so a machine runs one watcher however many sessions it has open. Before each touch it reads the newest cmod in the cmod store, the newest version folder of `bin/cmod` that the launcher runs. A `cmod watch` older than that exits and lets go of `watch.lock`, so after a cmod update the new cmod's watcher judges the linked mods by its own rules within 15 seconds. It also exits once the process that started it ends, so a session that crashed leaves no watcher behind.
250
+ Tells every running session once a checkout `cmod link` linked builds after a change, so each one still running the old build offers Reload. It watches each linked folder, outside `node_modules` and `.git`, and skips a change to a file git ignores, such as the `.claude-plugin/types/` Claude Code writes each time it loads the mod, a change inside the program's `output` folder, and a change to a file that is gone again and git does not track, such as a build's temporary file. Once a folder has had no change for 2 seconds, it bundles the mod's hooks module as `cmod publish` does. When a changed file is one the program's build reads, a file in `cli/` or one the JavaScript or TypeScript file `cli/package.json` `bin` names imports, such as the mod's own `src/`, it also builds the program `cli/` declares and links it as `cmod link` does, so the program in cmod's programs folder is never older than the mod. A change no program build reads builds no program. A program whose build failed builds again at the next change, whatever it changed. A build that changes the program stops its running copy, so a `singleInstance` or `isService` program restarts on the new build ([cmod program](#cmod-program)), and a build that writes the same program leaves the file and the copy as they are. A mod that builds writes the time of its last change to `plugins-changed`. A session that has not started the mod since then shows the `Plugins changed` toast once 35 seconds passed since the change and no turn runs, the time Claude Code takes at most to restart a `--plugin-dir` copy by itself, and no session reloads by itself. A bundle or program build that still fails 10 seconds after the last change shows `<mod> does not build` with the error as one toast in each session working inside the checkout, the last program that built keeps running, and the toast goes once the mod builds. So an agent's half-written file offers nothing and shows nothing. At its start it bundles again each mod whose failure it finds in `build-failures.json`, so a failure an older cmod wrote goes once the mod builds. The cmod plugin starts one only in a session that an app shows, once a mod is linked, at the session's start or later, so a machine with no linked mod runs none. The first holds `watch.lock` in the cmod store, watches, and touches its file there every 5 seconds. Another one exits at once while it runs, and the cmod plugin of each such session starts one again once that file is gone or 15 seconds old, so a machine runs one watcher however many sessions it has open. Before each touch it reads the newest cmod in the cmod store, the newest version folder of `bin/cmod` that the launcher runs. A `cmod watch` older than that exits and lets go of `watch.lock`, so after a cmod update the new cmod's watcher judges the linked mods by its own rules within 15 seconds. It also exits once the process that started it ends, so a session that crashed leaves no watcher behind.
251
251
 
252
252
  A cmod before 4.1.0 linked a checkout by writing it into `CLAUDE_CODE_PLUGIN_DIRS` in the `env` block of Claude Code's `settings.json`. `cmod watch` at its start, and `cmod setup`, link each folder still in that list as `cmod link` does now and take it out of the list. A folder that fails to link stays in the list, and its error prints on stderr.
253
253
 
package/docs/index.md CHANGED
@@ -32,7 +32,7 @@ my-mod/
32
32
 
33
33
  The template is a working example to replace. It counts the prompts of the session in `state.session.prompts`, shows the count below the prompt and in a Sidebar page that the `alt+shift+p` hotkey shows or hides, and tests all three. Replace the counter, the page, the widget, the component, the Skill, the rule, and the tests with the mod's own.
34
34
 
35
- A mod imports `@cmodjs/core` by path, such as `../node_modules/@cmodjs/core/mod.js`, because Claude Code loads a plugin's own files only. Types such as `RenderElement` and `On` come from the `claude-code` module.
35
+ A mod imports `@cmodjs/core` by path, such as `../node_modules/@cmodjs/core/mod.js`, because Claude Code loads a plugin's own files only. Every type a mod writes comes from `@cmodjs/core` too, never from the `claude-code` module. A component returns `JSX.Element` and takes `JSX.Children`, which need no import. Element props, such as `BoxProps` and `Color`, come from `ui/elements.js`. The two types of `register`'s parameters, `AddHook` and `PluginOptions`, come from `register.js`, and the rest from `mod.js`.
36
36
 
37
37
  ## Claude Code's API description
38
38
 
@@ -48,6 +48,7 @@ Mod code runs inside Claude Code's hooks environment, not in Node or Bun. It has
48
48
 
49
49
  - a file in `src/` that imports a Node module, `bun`, or a `bun:` module. Tests in `tests/` run under `bun test` and may import `bun:test`.
50
50
  - a file that imports from `cli/`, which the release leaves out
51
+ - a file that imports the `claude-code` module. A provider's types file adds to that module with `declare module 'claude-code'` ([dependencies.md](dependencies.md)), which imports nothing.
51
52
  - `devDependencies` in `package.json`. Claude Code installs them for every person, so move each into `dependencies` or drop it.
52
53
  - a `bin/` or `target/` folder at the mod's root
53
54
  - a prebuilt binary in the mod, outside `cli/`, `node_modules/`, `.git/`, `target/`, `.target/`, and `.claude-plugin/types/`
@@ -87,22 +88,23 @@ A mod imports from the files below, and every other file in this package is inte
87
88
  | --- | --- | --- |
88
89
  | `mod.js` | `defineMod`, `ModDefinition`, `Mod`, `Subscription`, `Timer`, `Reservation`, `JobContext`, `Job`, `SlashCommand`, `Tool`, `Step`, `longestMs`, `messageOf` | [mod.md](mod.md), [jobs.md](jobs.md), [install-steps.md](install-steps.md#steps-in-claude-code) |
89
90
  | `mod.js` | `Hotkey`, `HotkeyInit`, `Combo`, `Key` | [mod.md](mod.md#hotkeys) |
90
- | `mod.js` | `settings`, `SettingsFile`, `SettingsFileChange`, `SettingsFileChangeListener`, `config`, `ConfigRow`, `commands`, `CommandInfo`, `CommandRun`, `CommandRunAnswer`, `CommandRunResult`, `model`, `fs`, `Entry`, `Stat`, `FileMatch`, `FileChange`, `metadata`, `Metadata`, `process`, `http`, `clipboard`, `Imports` | [mod.md](mod.md) |
91
+ | `mod.js` | `settings`, `Settings`, `SettingsFile`, `SettingsFileChange`, `SettingsFileChangeListener`, `config`, `ConfigRow`, `commands`, `CommandInfo`, `CommandRun`, `CommandRunAnswer`, `CommandRunResult`, `model`, `ModelCompleteRequest`, `ModelCompleteOptions`, `ModelCompleteResult`, `fs`, `Entry`, `Stat`, `StatOptions`, `FileMatch`, `FileChange`, `metadata`, `Metadata`, `process`, `ProcessRunOptions`, `ProcessRunResult`, `ProcessSpawnOptions`, `Subprocess`, `http`, `HttpOptions`, `HttpResponse`, `clipboard`, `AskOptions`, `Imports` | [mod.md](mod.md) |
91
92
  | `mod.js` | `sessions`, `Sessions`, `Session`, `CurrentSession`, `TaskOwner`, `RecordPart`, `OnMethods`, `BeforeMethods`, `Listener`, `ListenerTime`, `ReadOptions`, `AnswerOptions`, `Refusal`, `SearchOptions`, `SessionScope`, `SessionSend`, `TaskStartArgs`, `ToolCallArgs`, `Usage`, `RateLimit`, `TaskStatus`, `Surface`, `Matcher` | [session.md](session.md) |
92
93
  | `mod.js` | `Placement`, `ProjectSetup`, `SessionStartAsked`, `SessionStarted`, `SessionEnded`, `ModelChange`, `CwdChange`, `DirectoryAdd`, `Worktree`, `Notification`, `Elicitation`, `ElicitationResponse`, `McpServer`, `PermissionUpdate`, `PermissionCheck`, `PermissionRequest`, `PermissionDenial`, `BatchedCall`, `ToolBatch`, `Todo`, `ReplyDisplay` | [session.md](session.md#the-session-s-own-events) |
93
94
  | `mod.js` | `Message`, `MessageType`, `Prompt`, `Note`, `Reply`, `ToolCall`, `ToolResult`, `Skill`, `InstructionFile`, `AttachedFile`, `AttachmentType`, `Notice`, `Sender`, `SenderType`, `Person`, `Mod`, `Schedule`, `Channel`, `Sdk`, `Engine` | [session.md](session.md#message) |
94
95
  | `mod.js` | `Context`, `Turn`, `Goal`, `Task` | [session.md](session.md#turn-context-goal-and-task) |
95
96
  | `mod.js` | `Toast`, `ToastId`, `ToastType`, `ToastOptions` | [ui.md](ui.md#toasts) |
96
- | `mod.js` | `PageInit`, `Page`, `PageProps`, `PaneInit`, `Pane`, `PaneProps`, `OpenOptions`, `ScrollTarget`, `ScrollOptions` | [ui.md](ui.md#the-sidebar-and-its-pages) |
97
+ | `mod.js` | `PageInit`, `Page`, `PageProps`, `PaneInit`, `Pane`, `PaneProps`, `PaneScroll`, `PaneClose`, `OpenOptions`, `ScrollTarget`, `ScrollOptions` | [ui.md](ui.md#the-sidebar-and-its-pages) |
97
98
  | `mod.js` | `WidgetInit`, `Widget`, `WidgetContext`, `Area`, `AbovePrompt`, `BelowPrompt`, `Working`, `TurnEnd`, `Dashboard` | [ui.md](ui.md#widgets) |
98
99
  | `mod.js` | `StyleInit`, `Style`, `StyleProps`, `Kind`, `Row`, `Block`, `ToolGroup`, `ToolProgress`, `CommandOutput`, `AskUserQuestion` | [ui.md](ui.md#styles-change-how-claude-code-draws) |
99
100
  | `mod.js` | `notInstalled` | [dependencies.md](dependencies.md) |
100
- | `register.js` | `registerMod`, `registerPermissionCheck`, `registeredMod` | [mod.md](mod.md) |
101
+ | `register.js` | `registerMod`, `registerPermissionCheck`, `registeredMod`, `AddHook`, `PluginOptions` | [mod.md](mod.md) |
101
102
  | `options.js` | `option`, `Option`, `Options`, `OptionValues`, `OptionValue`, `OptionType`, `UserConfigField`, `userConfigOf` | [options.md](options.md) |
102
103
  | `shell.js` | `parseShell`, `ParsedShell`, `ShellCommand` | [mod.md](mod.md#shell-js-and-path-js-read-a-command-line) |
103
104
  | `path.js` | `resolve`, `join`, `dirname`, `basename`, `extname`, `relative`, `isAbsolute`, `normalize` | [mod.md](mod.md#shell-js-and-path-js-read-a-command-line) |
104
105
  | `testing.js` | `testMod`, `TestOptions`, `TestedMod`, `Raise`, `Fakes`, `Shown`, `ShownToast`, `TestCall`, `FakeSession`, `MessageDraft`, `RoutedEvent` | [testing.md](testing.md) |
105
- | `ui/elements.js` | `Box`, `Text`, `Button`, `Link`, `Code`, `Markdown`, `Input`, `Select`, `Image`, `Raster`, `Svg`, `Client`, `drawWith` | [ui.md](ui.md) |
106
+ | `ui/elements.js` | `Box`, `Text`, `Button`, `Code`, `Markdown`, `Input`, `Select`, `Image`, `Raster`, `Svg`, `Client`, `drawWith` | [ui.md](ui.md) |
107
+ | `ui/elements.js` | `BoxProps`, `TextProps`, `ButtonProps`, `CodeProps`, `MarkdownProps`, `InputProps`, `SelectProps`, `ImageProps`, `RasterProps`, `SvgProps`, `ClientProps`, `Color`, `Press` | [ui.md](ui.md#elements) |
106
108
  | `ui/components.js` | `Tabs`, `Tab`, `Split`, `Panel`, `Toggle`, `Tooltip`, `Help`, `Dialog`, `Pagination`, `Progress` | [ui.md](ui.md) |
107
109
  | `ui/markdown.js` | `Heading`, `Paragraph`, `CodeBlock`, `BlockQuote`, `List`, `Table`, `ThematicBreak`, `HtmlBlock`, `Block`, `markdownBlocks`, `BlockProps`, `MarkdownReader`, `MarkdownPiece` | [ui.md](ui.md#markdown-blocks) |
108
110
  | `jobs/slash-command.js` | `slashCommand`, `CommandReply` | [jobs.md](jobs.md) |
@@ -72,7 +72,7 @@ export const ciWatch = defineMod({ name: 'ci-watch', installer: [signIn], setup(
72
72
  type Step<State> = {
73
73
  readonly id: string
74
74
  readonly title: string
75
- render(mod: Mod<State>, props: PageProps): RenderElement
75
+ render(mod: Mod<State>, props: PageProps): JSX.Element
76
76
  isDone(mod: Mod<State>): boolean | Promise<boolean>
77
77
  }
78
78
  ```
package/docs/mod.md CHANGED
@@ -109,27 +109,28 @@ A mod's `CHANGELOG.md`, at its root, holds what changed in each version, written
109
109
  `hooks/hooks.json` names `hooks/register.ts` as the plugin's hooks module. `register.ts` calls `registerMod` and does nothing else:
110
110
 
111
111
  ```ts
112
- import type { On, PluginOptions } from 'claude-code'
113
- import { registerMod } from '../node_modules/@cmodjs/core/register.js'
112
+ import { registerMod, type AddHook, type PluginOptions } from '../node_modules/@cmodjs/core/register.js'
114
113
  import { greeter } from '../src/mod.js'
115
114
 
116
- export function register(addHook: On, options: PluginOptions): void {
115
+ export function register(addHook: AddHook, options: PluginOptions): void {
117
116
  registerMod(addHook, greeter, options)
118
117
  }
119
118
  ```
120
119
 
121
120
  ```ts
122
- registerMod<State, Options>(addHook: On, definition: ModDefinition<State, string, Options>, options: PluginOptions): void
123
- registerPermissionCheck(addHook: On): void
121
+ registerMod<State, Options>(addHook: AddHook, definition: ModDefinition<State, string, Options>, options: PluginOptions): void
122
+ registerPermissionCheck(addHook: AddHook): void
124
123
  registeredMod(): ModDefinition | undefined
125
124
  ```
126
125
 
126
+ `AddHook` is the function Claude Code passes `register` to add each hook, and `PluginOptions` the values it passes with it.
127
+
127
128
  `registerMod` registers one handler per Claude Code event the mod can use, and routes each event to the mod. `options` is what Claude Code passes `register`: the values of the mod's options ([options.md](options.md)). `registeredMod` returns the definition `registerMod` got, for `cmod check` to read the mod's options without starting it. `registerMod` leaves out Claude Code's permission check, the events `tool.check` and `PermissionRequest`.
128
129
 
129
130
  A mod that hears permissions calls `registerPermissionCheck` after `registerMod`. That covers `sessions.current.onPermissionCheck`, `beforePermissionCheck`, `onPermissionRequest`, `beforePermissionRequest`, and the `permissions` job:
130
131
 
131
132
  ```ts
132
- export function register(addHook: On, options: PluginOptions): void {
133
+ export function register(addHook: AddHook, options: PluginOptions): void {
133
134
  registerMod(addHook, guard, options)
134
135
  registerPermissionCheck(addHook)
135
136
  }
@@ -381,7 +382,7 @@ type ConfigRow = { key: string; label: string; description?: string; kind: 'bool
381
382
  ## model: one question outside the conversation
382
383
 
383
384
  ```ts
384
- model.complete(request: ModelCompleteRequest, options?: { signal?: AbortSignal }): Promise<ModelCompleteResult>
385
+ model.complete(request: ModelCompleteRequest, options?: ModelCompleteOptions): Promise<ModelCompleteResult>
385
386
  ```
386
387
 
387
388
  `complete` asks a model one question through Claude Code's own login, outside the conversation, so the answer costs no context and the person sees no turn. The request names the `model`, such as `'haiku'`, and the `prompt`, and takes `system`, `maxTokens`, `effort`, and `timeoutMs`. `timeoutMs` stops a model that is slow or down, so the listener that waits on it still answers in time. `options.signal` stops the call when its `AbortController` aborts.
@@ -400,19 +401,19 @@ sessions.current.beforeTurnEnd(async (turn, { signal }) => {
400
401
  ## process: run a program
401
402
 
402
403
  ```ts
403
- process.run(argv: readonly string[], init?: ProcessRunInit): Promise<ProcessRunResult>
404
- process.spawn(argv: readonly string[], init?: { cwd?, env?, input? }): HookStream<ProcessSpawnChunk, ProcessSpawnResult>
404
+ process.run(argv: readonly string[], options?: ProcessRunOptions): Promise<ProcessRunResult>
405
+ process.spawn(argv: readonly string[], options?: ProcessSpawnOptions): Subprocess
405
406
  ```
406
407
 
407
408
  Both run a program without a shell. `argv[0]` is the program and the rest are its arguments. A bare name that cmod installed, such as `trace`, runs from cmod's programs folder ([install-steps.md](install-steps.md#run-a-program-by-its-name)), and any other name runs through Claude Code's `PATH`.
408
409
 
409
- - `init.cwd` is the program's folder, absolute or relative to the session's working folder. Without it the program runs in the session's working folder.
410
- - `init.env` sets variables over Claude Code's own environment.
410
+ - `options.cwd` is the program's folder, absolute or relative to the session's working folder. Without it the program runs in the session's working folder.
411
+ - `options.env` sets variables over Claude Code's own environment.
411
412
  - `run` takes `stdin`, and `spawn` takes `input`: text written to standard input, which then closes.
412
413
  - `run` takes `timeoutMs`: Claude Code kills the program after it, 30 seconds by default and 10 minutes at most. `longestMs`, exported from `mod.js`, is those 10 minutes in milliseconds, `600000`.
413
414
  - `run` resolves `{ exitCode, stdout, stderr, isStdoutTruncated, isStderrTruncated }` once the program exits, whatever its exit code. It keeps the first 4 MiB of each stream. A program ended by a signal has `exitCode` 1.
414
415
  - `run` rejects when the program cannot start, and when it is still running at `timeoutMs`. It reads the whole output, so a background process the program leaves writing holds the call until the timeout.
415
- - `spawn` streams `{ stream: 'stdout' | 'stderr', text }` pieces as the program writes them. Its `result` resolves `{ code, signal }` once the stream is read to its end. Its first pull rejects when the program cannot start.
416
+ - `spawn` answers a `Subprocess`, which streams `{ stream: 'stdout' | 'stderr', text }` pieces as the program writes them. Its `result` resolves `{ code, signal }` once the stream is read to its end. Its first pull rejects when the program cannot start.
416
417
  - The `for await` loop over a `spawn` is the program's life. Leaving the loop, or calling `return()` on the stream, kills the program, and so does unloading the mod. Returning from the listener does not.
417
418
 
418
419
  A job's deadline bounds the whole callback that makes these calls ([jobs.md](jobs.md#deadlines)).
@@ -439,7 +440,7 @@ fs.read(path: string): Promise<string>
439
440
  fs.write(path: string, text: string): Promise<void>
440
441
  fs.list(path?: string): Promise<Entry[]>
441
442
  fs.exists(path: string): Promise<boolean>
442
- fs.stat(path: string, options?: { resolve: boolean }): Promise<Stat>
443
+ fs.stat(path: string, options?: StatOptions): Promise<Stat>
443
444
  fs.find(glob: string | readonly string[]): Promise<readonly FileMatch[]>
444
445
  fs.onChange({ path: string | readonly string[] }, listener: (change: FileChange) => unknown): Subscription
445
446
  ```
@@ -455,7 +456,7 @@ type Stat = { isFile: boolean; isFolder: boolean; isLink: boolean; size: number;
455
456
  - `write` writes the whole file and creates its folders.
456
457
  - `list` lists a folder, the working folder without a path. A symbolic link is neither a file nor a folder, with `isLink` true. `modifiedAt` is the time it last changed, in milliseconds since 1970.
457
458
  - `exists` answers whether the path leads to a file or a folder.
458
- - `stat` answers what the path leads to, following a symbolic link, and rejects a missing path. With `{ resolve: true }` it also answers `realPath`: the absolute path, every symbolic link followed.
459
+ - `stat` answers what the path leads to, following a symbolic link, and rejects a missing path. With `StatOptions` `{ resolve: true }` it also answers `realPath`: the absolute path, every symbolic link followed.
459
460
  - `onChange` hears each file that changes, appears, or goes at a path or under a folder, the mod's own saves included. cmod checks the paths twice a second, and at most 2000 files under one call's folders. A call over more stops, with an error toast that names its paths. It works from `setup` or any time later, and for a path that does not exist yet. A relative path is under the session's working folder. `path` takes strings only, unlike other matchers:
460
461
 
461
462
  ```ts
@@ -527,10 +528,10 @@ await metadata.update('.claude/skills/plan/SKILL.md', (keys) => {
527
528
  ## http: fetch a URL
528
529
 
529
530
  ```ts
530
- http.fetch(url: string, init?: HttpInit): Promise<HttpResponse>
531
+ http.fetch(url: string, options?: HttpOptions): Promise<HttpResponse>
531
532
  ```
532
533
 
533
- - `init` takes `method` (`GET` by default), `headers`, `body` as text, and `socketPath`, the absolute path of a Unix socket the request goes over.
534
+ - `options` takes `method` (`GET` by default), `headers`, `body` as text, and `socketPath`, the absolute path of a Unix socket the request goes over.
534
535
  - The response is `{ status, ok, headers, text }`. `ok` is true for a 2xx status. Header names are lower case.
535
536
  - A mod reaches the address its own `program` job answers on the same way ([jobs.md](jobs.md#program)).
536
537
 
package/docs/testing.md CHANGED
@@ -259,7 +259,7 @@ test('the hotkey shows the prompt count in the Sidebar', async () => {
259
259
 
260
260
  `shown.page` and `shown.pane` act on an element of what shows as the person does, and await its handler. Each rejects when it does not draw the element: `The pane "<pane>" of <mod> draws no <Element> with the key "<key>".`, or the same for a page.
261
261
 
262
- - `press(key)` presses the `Button` whose `key` or `label` is `key`, and runs its `onPress`.
262
+ - `press(key)` presses the `Button` whose `key` or `label` is `key`, and runs its `onPress`. A `Button` with `href` opens its page as a press in the terminal does ([ui.md](ui.md#a-button-opens-a-web-page-with-href)): it runs `uname -s` and the opener through `fakes.process.run`, or copies the link through `ui.copy` on a Linux with no display.
263
263
  - `press(key, link)` presses the link `link` in the `Markdown` whose `key` is `key`, and runs its `onLinkPress`.
264
264
  - `input(key, text)` types `text` into the `Input` whose `key` is `key` and presses Enter, which runs its `onSubmit`. With a third argument `'change'` it runs `onInput` instead, as one edit does.
265
265
  - `select(key, value)` picks the option `value` of the `Select` whose `key` is `key`, and runs its `onSelect`. It rejects an option the `Select` does not have.
package/docs/ui.md CHANGED
@@ -23,12 +23,11 @@ A mod never asks the person to type a command. When a toast, a page, or a pane n
23
23
 
24
24
  ## Elements
25
25
 
26
- `ui/elements.js` exports the elements a render draws with. Each takes the props Claude Code types in the `claude-code` module:
26
+ `ui/elements.js` exports the elements a render draws with, and the type of each one's props. A `color` prop takes a `Color`, Claude Code's theme names such as `'claude'` or any CSS color:
27
27
 
28
28
  - `Box`, with `BoxProps`, draws a flex container: `flexDirection`, `gap`, `padding`, `margin`, `minWidth`, and the rest.
29
29
  - `Text`, with `TextProps`, draws text: `bold`, `dimColor`, `color`, `wrap`, and the rest.
30
- - `Button`, with `ButtonProps`, draws a button: `label` or one string child, `onPress`, `hotkey`, `key`, `variant`.
31
- - `Link`, with `LinkProps`, draws a link.
30
+ - `Button`, with `ButtonProps`, draws a button: `label` or one string child, `hotkey`, `key`, `variant`, and either `onPress` or `href`. `onPress` gets a `Press`, which names the `surface` the press came from.
32
31
  - `Code`, with `CodeProps`, draws highlighted code.
33
32
  - `Markdown`, with `MarkdownProps`, draws markdown text, as Claude Code draws a reply.
34
33
  - `Input`, with `InputProps`, draws a text input. It is one line tall unless `rows` says more: `rows: 4` draws four lines that wrap, as a `<textarea>`, for a note or a comment.
@@ -40,13 +39,26 @@ A mod never asks the person to type a command. When a toast, a page, or a pane n
40
39
 
41
40
  Claude Code refuses a whole drawing that holds an element its app does not draw, and draws its own instead. A style reads `surface` to pick what to draw, and a pane reads it from its props.
42
41
 
43
- Write them as JSX in a `.tsx` file. The template's `tsconfig.json` sets `jsx: react` with `jsxFactory: h` and `jsxFragmentFactory: Fragment`. Claude Code declares `h` and `Fragment` as globals, and `testMod` supplies them in tests. Never declare, import, or name anything `h` or `Fragment` in a file that writes JSX. A component is a function that returns a `RenderElement`:
42
+ ### A Button opens a web page with href
43
+
44
+ A `Button` with `href` in place of `onPress` opens that page on the person's own device, so every control a mod draws is a `Button`, and works the same in every terminal. A link inside prose is a `Markdown` link.
45
+
46
+ ```tsx
47
+ <Button key="sign-in" href={signInUrl} label="Sign in" />
48
+ ```
49
+
50
+ Where the person presses it decides how it opens:
51
+
52
+ - In the terminal, cmod opens the page by the rule Claude Code uses for its own links. It runs the program `BROWSER` names, unless `BROWSER` is `true`. Over ssh, or on Linux with neither `DISPLAY` nor `WAYLAND_DISPLAY`, the browser is on another computer, so cmod copies the link to the person's clipboard and shows `Copied the link` with `Paste it in your browser.` under it. Anywhere else it runs `open` on macOS and `xdg-open` on Linux.
53
+ - The desktop, phone, and VS Code apps draw an `https:` link as their own link, which the app opens. They draw any other link as a button whose press copies it there, because they open only `https:`.
54
+ - The browser app draws it as a link styled as a button, which the browser opens in a new tab.
55
+
56
+ Write them as JSX in a `.tsx` file. The template's `tsconfig.json` sets `jsx: react` with `jsxFactory: h` and `jsxFragmentFactory: Fragment`. Claude Code declares `h` and `Fragment` as globals, and `testMod` supplies them in tests. Never declare, import, or name anything `h` or `Fragment` in a file that writes JSX. A component is a function that returns a `JSX.Element`, and takes its children as `JSX.Children`. Both are global, so a component imports only the elements it draws:
44
57
 
45
58
  ```tsx
46
- import type { RenderElement } from 'claude-code'
47
59
  import { Box, Text } from '../node_modules/@cmodjs/core/ui/elements.js'
48
60
 
49
- export function Count({ label, count }: { readonly label: string; readonly count: number }): RenderElement {
61
+ export function Count({ label, count }: { readonly label: string; readonly count: number }): JSX.Element {
50
62
  return (
51
63
  <Box gap={1}>
52
64
  <Text bold>{label}</Text>
@@ -66,7 +78,7 @@ An element built outside a render, at module load or in a hook, holds its props
66
78
 
67
79
  ```ts
68
80
  Tabs(props: { tabs: readonly { key: string; label: string; hotkey?: string }[]; selected: string; onSelect(key: string): void; children? })
69
- Split(props: { children: readonly RenderElement[] })
81
+ Split(props: { children: readonly JSX.Element[] })
70
82
  Panel(props: { title: string; children? })
71
83
  Toggle(props: { label: string; checked: boolean; onChange(checked: boolean): void })
72
84
  Tooltip(props: { text: string; children? })
@@ -114,7 +126,7 @@ export const notesPage: PageInit<NotesState> = {
114
126
  type PageInit<State, Params = undefined> = {
115
127
  readonly id: string
116
128
  readonly title: string
117
- render(mod: Mod<State>, props: { readonly params: Params; readonly isFocused: boolean; readonly columns: number }): RenderElement
129
+ render(mod: Mod<State>, props: { readonly params: Params; readonly isFocused: boolean; readonly columns: number }): JSX.Element
118
130
  }
119
131
 
120
132
  type Page<Params = undefined> = {
@@ -184,9 +196,9 @@ type PaneInit<State, Params = undefined> = {
184
196
  readonly rows?: number | ((state: State) => number | undefined)
185
197
  readonly closeOnEscape?: true
186
198
  readonly holdToasts?: true
187
- render(mod: Mod<State>, props: PaneProps<Params>): RenderElement
188
- onScroll?(mod: Mod<State>, e: Frozen<UiScrollInput>): void | Promise<void>
189
- onClose?(mod: Mod<State>, e: Frozen<PaneCloseInput>): void | Promise<void>
199
+ render(mod: Mod<State>, props: PaneProps<Params>): JSX.Element
200
+ onScroll?(mod: Mod<State>, scroll: PaneScroll): void | Promise<void>
201
+ onClose?(mod: Mod<State>, close: PaneClose): void | Promise<void>
190
202
  }
191
203
  ```
192
204
 
@@ -198,7 +210,7 @@ type PaneInit<State, Params = undefined> = {
198
210
  - `closeOnEscape` closes the pane when the person presses Escape while it holds the keyboard. Left out, Escape gives the keyboard back to the prompt and the pane stays.
199
211
  - `holdToasts` holds every toast back while the pane is shown, the toasts of other plugins and of Claude Code included. Use it for a pane the person answers and closes, never for one that stays open.
200
212
  - `render` draws the pane's body. `props` holds `params`, `surface`, the app that draws it, `title`, `isFocused`, `bodyColumns`, `placement` (`'dock'` or `'inline'`), `scroll`, and `view`, which transcript is on screen beside the pane.
201
- - `onScroll` runs after this pane's window moved. `onClose` runs after the pane closed, by the person or by `close()`, and `e.origin.kind` is `'person'` or `'plugin'`. A handler that throws shows the error toast `The <title> pane's <handler> threw`.
213
+ - `onScroll` runs after this pane's window moved, with a `PaneScroll`. `onClose` runs after the pane closed, by the person or by `close()`, with a `PaneClose`, whose `origin.kind` is `'person'` or `'plugin'`. A handler that throws shows the error toast `The <title> pane's <handler> threw`.
202
214
  - `open` asks Claude Code to show the pane, and `isOpen` turns true once Claude Code places it. A pane opened from what the person did shows at any width, and one opened from anything else only at 144 columns, or 110 for a pane the person opened before.
203
215
  - `focus` moves the keyboard once to the `Button`, `Input`, or `Select` the pane drew with that `key`, while the pane holds the keyboard. It resolves once the keyboard moved, and rejects with `<mod>: Claude Code did not focus "<key>" in the <title> pane: <reason>` when it did not.
204
216
  - Adding two panes with one id throws `<mod>: the pane "<id>" is already added. Give each pane its own id.`
@@ -253,7 +265,7 @@ type WidgetInit<State> = {
253
265
  readonly title: string
254
266
  readonly areas: readonly [Area, ...Area[]]
255
267
  readonly place?: { readonly side?: 'left' | 'right'; readonly size?: 'fit' | 'fill' }
256
- render(mod: Mod<State>, context: WidgetContext): RenderElement | undefined
268
+ render(mod: Mod<State>, context: WidgetContext): JSX.Element | undefined
257
269
  }
258
270
 
259
271
  type WidgetContext =
@@ -395,12 +407,11 @@ A markdown style draws wherever markdown shows: in Claude's replies and in every
395
407
  Claude Code refuses a whole drawing in which two `Input`, `Select`, `Markdown`, `Client`, `Raster`, or `Image` elements share a key. So cmod puts each block's place in front of every key its style draws, and the keys a style draws need be unique only within the one block it draws, as a component's keys are in React. The place is the block's number in its markdown, from `0`, after the `key` of the `Markdown` element that holds it, or that element's number among the ones drawn without a key. A block that draws again in its place keeps its keys, so Claude Code keeps what the person typed in its `Input`.
396
408
 
397
409
  ```tsx
398
- import type { RenderElement } from 'claude-code'
399
410
  import { defineMod, type StyleProps } from '../node_modules/@cmodjs/core/mod.js'
400
411
  import { CodeBlock } from '../node_modules/@cmodjs/core/ui/markdown.js'
401
412
  import { Text } from '../node_modules/@cmodjs/core/ui/elements.js'
402
413
 
403
- function MermaidBlock({ lang, value, Default }: StyleProps<typeof CodeBlock>): RenderElement {
414
+ function MermaidBlock({ lang, value, Default }: StyleProps<typeof CodeBlock>): JSX.Element {
404
415
  return lang === 'mermaid' ? <Text>{`diagram: ${value}`}</Text> : <Default />
405
416
  }
406
417
 
@@ -432,7 +443,7 @@ mod.toast.dismiss(id?: ToastId): void
432
443
 
433
444
  type ToastOptions = {
434
445
  id?: ToastId
435
- description?: string | RenderElement
446
+ description?: string | JSX.Element
436
447
  action?: { label: string; onClick(): unknown }
437
448
  duration?: number
438
449
  }
package/installer.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- import type { RenderElement } from 'claude-code';
2
1
  import type { Mod } from './mod.js';
3
2
  import type { PageProps } from './ui/panes.js';
4
3
  export type Step<State extends object = Record<never, never>> = {
5
4
  readonly id: string;
6
5
  readonly title: string;
7
- render(mod: Mod<State>, props: PageProps<undefined>): RenderElement;
6
+ render(mod: Mod<State>, props: PageProps<undefined>): JSX.Element;
8
7
  isDone(mod: Mod<State>): boolean | Promise<boolean>;
9
8
  };
10
9
  export declare function checkSteps(name: string, steps: readonly Step<never>[]): void;
@@ -1 +1 @@
1
- {"version":3,"file":"installer.d.ts","sourceRoot":"","sources":["src/installer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,MAAM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E"}
package/mod.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { AskOptions, CmodDependencies, ConfigRow as ClaudeConfigRow, FsStatOptions, HookStream, HttpInit, HttpResponse, ModelCompleteOptions, ModelCompleteRequest, ModelCompleteResult, ProcessRunInit, ProcessRunResult, ProcessSpawnChunk, ProcessSpawnRequest, ProcessSpawnResult, RenderElement, Settings } from 'claude-code';
1
+ import type { AskOptions, CmodDependencies, ConfigRow as ClaudeConfigRow, FsStatOptions, HookStream, HttpInit, HttpResponse, ModelCompleteOptions, ModelCompleteRequest, ModelCompleteResult, ProcessRunInit, ProcessRunResult, ProcessSpawnChunk, ProcessSpawnRequest, ProcessSpawnResult, Settings } from 'claude-code';
2
2
  import { type Hotkey, type HotkeyInit, type Hotkeys } from './hotkeys.js';
3
3
  import { type Step } from './installer.js';
4
4
  import { type Option, type Options, type OptionValues } from './options.js';
@@ -10,6 +10,12 @@ import type { Kind, Style, StyleInit } from './ui/styles.js';
10
10
  import type { Matcher } from './utils/matcher.js';
11
11
  import type { Subscription } from './utils/subscription.js';
12
12
  export type { Subscription };
13
+ export type { AskOptions, HttpResponse, ModelCompleteOptions, ModelCompleteRequest, ModelCompleteResult, ProcessRunResult, Settings };
14
+ export type ProcessRunOptions = ProcessRunInit;
15
+ export type ProcessSpawnOptions = Omit<ProcessSpawnRequest, 'argv'>;
16
+ export type Subprocess = HookStream<ProcessSpawnChunk, ProcessSpawnResult>;
17
+ export type HttpOptions = HttpInit;
18
+ export type StatOptions = FsStatOptions;
13
19
  export type Timer = {
14
20
  readonly isRunning: boolean;
15
21
  stop(): void;
@@ -21,7 +27,7 @@ export type ToastId = string | number;
21
27
  export type ToastType = 'default' | 'success' | 'info' | 'warning' | 'error' | 'loading';
22
28
  export type ToastOptions = {
23
29
  readonly id?: ToastId;
24
- readonly description?: string | RenderElement;
30
+ readonly description?: string | JSX.Element;
25
31
  readonly action?: {
26
32
  readonly label: string;
27
33
  readonly onClick: () => unknown;
@@ -122,7 +128,7 @@ export type Imports = {
122
128
  exists(path: string): Promise<boolean>;
123
129
  find(glob: string | readonly string[]): Promise<readonly FileMatch[]>;
124
130
  list(path?: string): Promise<Entry[]>;
125
- stat(path: string, options?: FsStatOptions): Promise<Stat>;
131
+ stat(path: string, options?: StatOptions): Promise<Stat>;
126
132
  onChange(matcher: {
127
133
  readonly path: string | readonly string[];
128
134
  }, listener: (change: FileChange) => unknown): Subscription;
@@ -132,11 +138,11 @@ export type Imports = {
132
138
  update(path: string, change: (metadata: Record<string, string>) => void): Promise<void>;
133
139
  };
134
140
  readonly process: {
135
- run(argv: readonly string[], init?: ProcessRunInit): Promise<ProcessRunResult>;
136
- spawn(argv: readonly string[], init?: Omit<ProcessSpawnRequest, 'argv'>): HookStream<ProcessSpawnChunk, ProcessSpawnResult>;
141
+ run(argv: readonly string[], options?: ProcessRunOptions): Promise<ProcessRunResult>;
142
+ spawn(argv: readonly string[], options?: ProcessSpawnOptions): Subprocess;
137
143
  };
138
144
  readonly http: {
139
- fetch(url: string, init?: HttpInit): Promise<HttpResponse>;
145
+ fetch(url: string, options?: HttpOptions): Promise<HttpResponse>;
140
146
  };
141
147
  readonly device: {
142
148
  read(): Promise<Device>;
@@ -231,7 +237,7 @@ export type Job<Handle, State extends object = Record<never, never>> = (context:
231
237
  export declare function defineMod<State extends StateGroups = Record<never, never>, Name extends string = string, const Declared extends Options = Record<never, Option>, const Keys extends Hotkeys = Record<never, HotkeyInit>>(definition: ModDefinition<State, Name, Declared, Keys>): ModDefinition<State, Name, Declared, Keys>;
232
238
  export type { Matcher } from './utils/matcher.js';
233
239
  export type { Combo, Hotkey, HotkeyInit, Key } from './hotkeys.js';
234
- export type { OpenOptions, Page, PageInit, PageProps, Pane, PaneInit, PaneProps, ScrollOptions, ScrollTarget } from './ui/panes.js';
240
+ export type { OpenOptions, Page, PageInit, PageProps, Pane, PaneClose, PaneInit, PaneProps, PaneScroll, ScrollOptions, ScrollTarget } from './ui/panes.js';
235
241
  export type { Kind, Row, Style, StyleInit, StyleProps } from './ui/styles.js';
236
242
  export type { Block } from './ui/markdown.js';
237
243
  export { AskUserQuestion, CommandOutput, ToolGroup, ToolProgress } from './ui/styles.js';
package/mod.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,SAAS,IAAI,eAAe,EAC5B,aAAa,EACb,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACT,MAAM,aAAa,CAAA;AACpB,OAAO,EAAgB,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AACvF,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAgB,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AAEzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAE9D,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,QAAQ,EAAkB,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC7J,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,KA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 export const metadata = {
44
44
  update: (path, change) => bound().metadata.update(path, change),
45
45
  };
46
46
  export const process = {
47
- run: (argv, init) => bound().process.run(argv, init),
48
- spawn: (argv, init) => bound().process.spawn(argv, init),
47
+ run: (argv, options) => bound().process.run(argv, options),
48
+ spawn: (argv, options) => bound().process.spawn(argv, options),
49
49
  };
50
50
  export const http = {
51
- fetch: (url, init) => bound().http.fetch(url, init),
51
+ fetch: (url, options) => bound().http.fetch(url, options),
52
52
  };
53
53
  export const device = {
54
54
  read: () => bound().device.read(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmodjs/core",
3
- "version": "5.13.3",
3
+ "version": "6.0.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
@@ -77,7 +77,12 @@ export declare function marketplaceOf(root: string, name: string): string | unde
77
77
  export declare function updatesToTurnOn(marketplace: string | undefined, settings: unknown, known: unknown): string | undefined;
78
78
  export declare function consentPath(store: string): string;
79
79
  export declare function pluginsChangedPath(store: string): string;
80
- export declare function pluginsChangedMark(at: number, pid: number): string;
80
+ export type PluginsChanged = {
81
+ readonly command: string;
82
+ readonly linked: ReadonlyMap<string, number>;
83
+ };
84
+ export declare function parsePluginsChanged(text: string): PluginsChanged;
85
+ export declare function pluginsChangedText({ command, linked }: PluginsChanged): string;
81
86
  export declare function storeChangedPath(store: string): string;
82
87
  export declare function buildFailuresPath(store: string): string;
83
88
  export declare function linksPath(store: string): string;
@@ -111,6 +116,14 @@ export type WebUi = {
111
116
  readonly port: number;
112
117
  };
113
118
  export declare function parseWebUi(value: unknown, path: string): WebUi | undefined;
119
+ export type BrowserEnv = {
120
+ readonly os: string;
121
+ readonly browser?: string | undefined;
122
+ readonly sshConnection?: string | undefined;
123
+ readonly display?: string | undefined;
124
+ readonly waylandDisplay?: string | undefined;
125
+ };
126
+ export declare function browserCommand(env: BrowserEnv, href: string): readonly string[] | undefined;
114
127
  export type Contact = {
115
128
  readonly kind: 'github';
116
129
  readonly repository: string;
@@ -147,8 +160,8 @@ export declare function newestLog(entries: readonly LogEntry[]): LogEntry[];
147
160
  export declare function versionsLine({ mod, core, cmod, program, claudeCode }: LogVersions): string;
148
161
  export declare function logReport(entry: LogEntry): string;
149
162
  export declare function parseConsent(value: unknown, path: string): Record<string, string[]>;
150
- export declare const coreVersion = "5.13.3";
151
- export declare const oldestCmodVersion = "5.10.0";
163
+ export declare const coreVersion = "6.0.0";
164
+ export declare const oldestCmodVersion = "6.0.0";
152
165
  export declare function hotkeyCommand(mod: string, hotkey: string): string;
153
166
  export declare function hotkeyBindings(mod: string, hotkeys: Hotkeys | undefined): Record<string, string>;
154
167
  export declare function boundCombos(keybindings: unknown): Map<string, string>;