@cmodjs/core 8.8.0 → 8.8.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/session.md +1 -1
- package/package.json +1 -1
- package/records.d.ts +1 -1
- package/records.js +1 -1
- package/src/records.ts +1 -1
package/docs/session.md
CHANGED
|
@@ -280,7 +280,7 @@ Every action works on the current session and on every other running session, on
|
|
|
280
280
|
- A `Prompt` is the next prompt, so the agent answers it as a turn of its own. Claude Code holds it until the session is idle, so it never cuts into a turn, and frames it as `The <mod> plugin sent a message:`. With `as: Person`, the agent reads it bare, as the person's own words, while every hook still sees that the mod sent it. It rejects with `<mod>: Claude Code dropped the prompt: <reason>` when a plugin drops it.
|
|
281
281
|
- `as: Session` sends it to another session as a message from this one, which Claude Code shows as one session writing to another.
|
|
282
282
|
- To a task's owner, `send` delivers the text to that running subagent.
|
|
283
|
-
- To a session that has ended, a `Prompt` resumes it in a new background Claude Code session, as `claude --bg --resume` does, which answers it. A session Claude Code still runs is never resumed, so a message never starts a second copy of it: when no cmod plugin in it reaches `cmod serve`, `send` rejects with `Session <id> runs, but no cmod plugin in it reaches cmod serve, so
|
|
283
|
+
- To a session that has ended, a `Prompt` resumes it in a new background Claude Code session, as `claude --bg --resume` does, which answers it. A session Claude Code still runs is never resumed, so a message never starts a second copy of it: when no cmod plugin in it reaches `cmod serve`, `send` rejects with `Session <id> runs, but no cmod plugin in it reaches cmod serve, so it takes no send, and cmod starts no copy of it. Run /reload-plugins in it.`
|
|
284
284
|
- `startTask` starts a task in the session, the way the Agent tool starts one, and resolves the `Task` once it started. It does not wait for the task to finish. `title` is the task's title, `agentType` names the owner's agent type, such as `Explore`, `name` is the address a teammate's `SendMessage` reaches it by, and `model` and `cwd` change what it runs on and where. It rejects with `<mod>: Claude Code refused the task: <reason>` when a hook refuses it.
|
|
285
285
|
- With `isBackground: true`, the owner is a new background Claude Code session, as `claude --bg` starts, which starts fresh on the prompt and keeps running after this session ends. It takes no `name`, and rejects with `<mod>: a background task takes no name.` for one.
|
|
286
286
|
- `device` names the device the background session runs on, by its name or its cmod device id. A `device` other than this computer starts through the sessions provider that serves it ([Sessions providers](#sessions-providers)): cmod asks the `startTask` of each provider on that device, its `cmod serve` among them, or of every provider when none runs there, in turn, with the whole task, `device` included, and the first that does not answer not-held starts the session there and answers its task. A device's `cmod serve` starts it in the task's `cwd`, or the project of this session when the task names none, and rejects with `<device> has no folder <cwd>, so the task did not start. Give the task a cwd on <device>.` when that device lacks the folder. With no such provider, the call rejects with `<mod>: no mod starts sessions on <device>, so the task did not start. Leave device out to start it on <this computer>.`
|
package/package.json
CHANGED
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.8.
|
|
197
|
+
export declare const coreVersion = "8.8.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.8.
|
|
408
|
+
export const coreVersion = '8.8.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.8.
|
|
502
|
+
export const coreVersion = '8.8.1'
|
|
503
503
|
|
|
504
504
|
export const oldestCmodVersion = '8.0.0'
|
|
505
505
|
|