@phren/cli 0.3.56 → 0.3.57
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/dist/bridge/claude-suggestion.d.ts +9 -0
- package/dist/bridge/claude-suggestion.js +30 -4
- package/dist/bridge/dispatch-command.js +3 -3
- package/dist/bridge/hand-off.d.ts +1 -0
- package/dist/bridge/hand-off.js +5 -1
- package/dist/bridge/pair.d.ts +22 -0
- package/dist/bridge/pair.js +74 -1
- package/dist/bridge/prompt-deliveries.d.ts +9 -0
- package/dist/bridge/prompt-deliveries.js +67 -4
- package/dist/bridge/server-launch.d.ts +4 -0
- package/dist/bridge/server-launch.js +4 -1
- package/dist/bridge/server-pane-routes.d.ts +12 -0
- package/dist/bridge/server-pane-routes.js +112 -0
- package/dist/bridge/server-routes.d.ts +1 -0
- package/dist/bridge/server-routes.js +1 -1
- package/dist/bridge/server.js +2 -1
- package/dist/bridge/session-move.d.ts +25 -0
- package/dist/bridge/session-move.js +128 -9
- package/dist/bridge/speech-transcribe.js +28 -3
- package/dist/bridge/terminal-herdr.js +28 -8
- package/dist/bridge-hook.mjs +2210 -1930
- package/dist/cli-registry.js +2 -2
- package/dist/modules/registry.js +1 -1
- package/dist/tools/dispatch.js +3 -2
- package/package.json +1 -1
- package/starter/global/skills/conductor/SKILL.md +7 -0
package/dist/cli-registry.js
CHANGED
|
@@ -203,8 +203,8 @@ export const REGISTRY = [
|
|
|
203
203
|
run: async (args) => (await import("./bridge/dispatch-command.js")).runHandOff(args),
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
name: "move", topic: "core", usage: "phren move <session-or-pane> --to <claude|codex|opencode|copilot> [--model <model>] [--effort <effort>] [--account <id>] [--computer <name>] [--no-wait]",
|
|
207
|
-
summary: "Move a live agent session to another harness: it writes a hand-off and exits, and the new agent continues in its pane",
|
|
206
|
+
name: "move", topic: "core", usage: "phren move <session-or-pane> --to <claude|codex|opencode|copilot> [--model <model>] [--effort <effort>] [--account <id> [--resume]] [--computer <name>] [--no-wait]",
|
|
207
|
+
summary: "Move a live agent session to another harness: it writes a hand-off and exits, and the new agent continues in its pane; --resume switches a Claude chat to another account with no hand-off",
|
|
208
208
|
run: async (args) => (await import("./bridge/dispatch-command.js")).runMove(args),
|
|
209
209
|
},
|
|
210
210
|
{
|
package/dist/modules/registry.js
CHANGED
|
@@ -98,7 +98,7 @@ export const BUILTIN_MODULES = [
|
|
|
98
98
|
capabilities: [
|
|
99
99
|
"hook", "transcript", "progress", "images", "prompt", "stop", "terminal", "shell", "paneTerminal", "paneLayout", "deskPresence", "herdr",
|
|
100
100
|
"webServers", "webPreview", "activity", "approvals", "questions", "accountUsage", "providers",
|
|
101
|
-
"files", "repositoryFiles", "fileResolution", "subagents", "sideQuestions", "approvalPush", "simulators", "overviewStream", "speech", "speechTimestamps", "speechTimestampStream", "speechLive", "speechVoices", "speechFormats", "transcribe", "promptOnce", "promptStatus", "deliveryFrames", "resources", "sessionRename", "sudo", "sudoOutcome", "previewDeltas", "quickChat", "agentFolder", "launchPermissionMode", "sessionMove", "moveNewChat", "moveConductor", "moveToComputer", "claudeAccountAdd", "workerRelocation",
|
|
101
|
+
"files", "repositoryFiles", "fileResolution", "subagents", "sideQuestions", "approvalPush", "simulators", "overviewStream", "speech", "speechTimestamps", "speechTimestampStream", "speechLive", "speechVoices", "speechFormats", "transcribe", "promptOnce", "promptStatus", "deliveryFrames", "resources", "sessionRename", "sudo", "sudoOutcome", "previewDeltas", "quickChat", "agentFolder", "launchPermissionMode", "sessionMove", "moveNewChat", "moveConductor", "moveToComputer", "moveResume", "claudeAccountAdd", "workerRelocation",
|
|
102
102
|
],
|
|
103
103
|
storeFiles: [".runtime/sessions/opencode-*.events.jsonl", ".runtime/approvals/opencode-*.json"],
|
|
104
104
|
localFiles: ["<bridge>/gitboy-webhooks.json", "<bridge>/installed.json", "<bridge>/versions/**", "<bridge>/current", "<bridge>/dispatch", "<bridge>/askpass", "<bridge>/computer-id", "<bridge>/move-intents/*.json", "<bridge>/canary.json", "<bridge>/canary-daily", "<bridge>/moves/*.json", "<bridge>/move-launches/*.json"],
|
package/dist/tools/dispatch.js
CHANGED
|
@@ -138,13 +138,14 @@ export function register(server) {
|
|
|
138
138
|
});
|
|
139
139
|
server.registerTool("move_session", {
|
|
140
140
|
title: "◆ phren · move session",
|
|
141
|
-
description: "Move a live session to another agent on its own computer: the agent writes a structured hand-off (goal, done, current state, decisions, next steps, open questions, key files), exits with its own exit command, and the target harness (claude with an optional account, codex, opencode or copilot, with an optional model and effort) starts in the same pane and folder with that hand-off as its first prompt. If the agent writes no hand-off in time, Phren builds one from the end of its transcript, the git state and the original brief. Nothing is committed; the hand-off lists the uncommitted changes. Only harnesses signed in and usable on that computer are accepted. A dispatched worker keeps its dispatch: its receipt follows the new agent and records the move under moves. Waits up to five minutes; pass id with status:true to check a move later.",
|
|
141
|
+
description: "Move a live session to another agent on its own computer: the agent writes a structured hand-off (goal, done, current state, decisions, next steps, open questions, key files), exits with its own exit command, and the target harness (claude with an optional account, codex, opencode or copilot, with an optional model and effort) starts in the same pane and folder with that hand-off as its first prompt. If the agent writes no hand-off in time, Phren builds one from the end of its transcript, the git state and the original brief. Nothing is committed; the hand-off lists the uncommitted changes. Only harnesses signed in and usable on that computer are accepted. A dispatched worker keeps its dispatch: its receipt follows the new agent and records the move under moves. With resume:true (Claude to another Claude account on the same computer) there is no hand-off: the transcript is copied into the target account's home and the same conversation resumes, so an exhausted account can still switch. Waits up to five minutes; pass id with status:true to check a move later.",
|
|
142
142
|
inputSchema: moveSessionSchema,
|
|
143
143
|
}, async (input) => {
|
|
144
144
|
try {
|
|
145
145
|
const result = await moveSession(input, { agent: true });
|
|
146
146
|
const move = result.move;
|
|
147
|
-
const message = move.state === "moved" ? `
|
|
147
|
+
const message = move.state === "moved" ? move.continuation === "resume" ? `Switched to Claude account ${String(object(move.to).account)} (${String(move.placement)}); the same conversation resumed.`
|
|
148
|
+
: `Moved to ${String(object(move.to).harness)} (${String(move.placement)}); hand-off at ${String(object(move.handoff).path)}.`
|
|
148
149
|
: move.state === "failed" ? `Move failed: ${String(move.error ?? "unknown error")}` : `Move ${String(move.id)} is ${String(move.state)}; check again with status:true.`;
|
|
149
150
|
return mcpResponse({ ok: result.ok, data: result, message });
|
|
150
151
|
}
|
package/package.json
CHANGED
|
@@ -212,6 +212,13 @@ A `stalled` return or `live_sessions` row with `stalled:true` means both the
|
|
|
212
212
|
screen and transcript have stopped changing while working. Check it and report
|
|
213
213
|
what is known; do not launch a duplicate or interrupt it just because of the flag.
|
|
214
214
|
|
|
215
|
+
Never submit, clear or relay text you read in a Claude pane's input box as the
|
|
216
|
+
owner's words. After a turn Claude draws its own guess at the owner's next
|
|
217
|
+
message there, dim; a plain screen read shows it as if typed, and Enter does not
|
|
218
|
+
send it. The Hook keeps a delivery record for each phone message, so an owner
|
|
219
|
+
message never needs rescuing from a pane. Ask the owner instead. The Hook
|
|
220
|
+
refuses a hand-off that repeats a pane's suggestion (`prompt-suggestion`).
|
|
221
|
+
|
|
215
222
|
An uncertain delivery is never retried automatically. Inspect its known target
|
|
216
223
|
or status before deciding with the owner whether a replacement is needed. Keep
|
|
217
224
|
unavailable workers visible instead of giving their work to another agent
|