@phren/cli 0.3.56 → 0.3.58

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 (36) hide show
  1. package/dist/bridge/claude-suggestion.d.ts +9 -0
  2. package/dist/bridge/claude-suggestion.js +30 -4
  3. package/dist/bridge/computer-identity.d.ts +4 -2
  4. package/dist/bridge/computer-identity.js +7 -3
  5. package/dist/bridge/conductor-group.d.ts +1 -1
  6. package/dist/bridge/conductor-group.js +2 -2
  7. package/dist/bridge/conductor-sets.d.ts +6 -0
  8. package/dist/bridge/conductor-sets.js +8 -2
  9. package/dist/bridge/dispatch-command.js +3 -3
  10. package/dist/bridge/hand-off.d.ts +1 -0
  11. package/dist/bridge/hand-off.js +5 -1
  12. package/dist/bridge/pair.d.ts +22 -0
  13. package/dist/bridge/pair.js +74 -1
  14. package/dist/bridge/prompt-deliveries.d.ts +9 -0
  15. package/dist/bridge/prompt-deliveries.js +67 -4
  16. package/dist/bridge/server-launch.d.ts +4 -0
  17. package/dist/bridge/server-launch.js +4 -1
  18. package/dist/bridge/server-pane-routes.d.ts +12 -0
  19. package/dist/bridge/server-pane-routes.js +112 -0
  20. package/dist/bridge/server-routes.d.ts +2 -0
  21. package/dist/bridge/server-routes.js +1 -1
  22. package/dist/bridge/server.js +8 -2
  23. package/dist/bridge/session-move.d.ts +25 -0
  24. package/dist/bridge/session-move.js +128 -9
  25. package/dist/bridge/simulator-stream.d.ts +118 -0
  26. package/dist/bridge/simulator-stream.js +284 -0
  27. package/dist/bridge/simulators.d.ts +12 -0
  28. package/dist/bridge/simulators.js +32 -26
  29. package/dist/bridge/speech-transcribe.js +28 -3
  30. package/dist/bridge/terminal-herdr.js +28 -8
  31. package/dist/bridge-hook.mjs +1941 -1289
  32. package/dist/cli-registry.js +2 -2
  33. package/dist/modules/registry.js +2 -2
  34. package/dist/tools/dispatch.js +3 -2
  35. package/package.json +1 -1
  36. package/starter/global/skills/conductor/SKILL.md +7 -0
@@ -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
  {
@@ -93,12 +93,12 @@ export const BUILTIN_MODULES = [
93
93
  "/v1/approvals/answer", "/v1/questions/answer", "/v1/subagents/resume", "/v1/subagents/archive-finished", "/v1/canary",
94
94
  "/v1/speech", "/v1/sudo/answer", "/v1/jobs/cleanup",
95
95
  ]),
96
- ...routes("WS", ["/v1/transcripts", "/v1/status", "/v1/overview", "/v1/speech/transcribe", "/v1/speech/live"]),
96
+ ...routes("WS", ["/v1/transcripts", "/v1/status", "/v1/overview", "/v1/speech/transcribe", "/v1/speech/live", "/v1/simulators/stream"]),
97
97
  ],
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", "simulatorStream", "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"],
@@ -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" ? `Moved to ${String(object(move.to).harness)} (${String(move.placement)}); hand-off at ${String(object(move.handoff).path)}.`
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phren/cli",
3
- "version": "0.3.56",
3
+ "version": "0.3.58",
4
4
  "description": "Knowledge layer for AI agents - CLI, MCP server, and data layer",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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