@bivy/bivy 0.20.2-staging.1 → 0.20.2-staging.2
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/bin/acp-shim.mjs +11 -2
- package/bin/codex-app-server-shim.mjs +13 -0
- package/bin/tui/transcript.mjs +25 -1
- package/dist/agents/claude-code/integration.js +1 -1
- package/dist/agents/codex/integration.js +1 -1
- package/dist/agents/pi/integration.js +1 -1
- package/dist/apps/styles.css +16 -0
- package/dist/certification/generated.js +3 -3
- package/dist/server.js +11 -1
- package/dist/session/handoff-seed.js +26 -0
- package/dist/session/plan.js +99 -0
- package/dist/session/transcript-normal.js +39 -1
- package/package.json +4 -4
- package/web/assets/{AutomationsView-ZC6q7HQi.js → AutomationsView-DH4CjHAF.js} +1 -1
- package/web/assets/{ChangesCard-Dlr7KHXN.js → ChangesCard-BKV0jXuy.js} +1 -1
- package/web/assets/{LibraryView-Cam6SEGz.js → LibraryView-KJfTLRWP.js} +1 -1
- package/web/assets/{ProviderConnect-Dx-oNJyx.js → ProviderConnect-C52pZY6y.js} +1 -1
- package/web/assets/{Settings-B1lmuIA6.js → Settings-DGn8E8bv.js} +3 -3
- package/web/assets/{Sheet-UqxULkz8.js → Sheet-hrs2cT7V.js} +1 -1
- package/web/assets/{Terminal-RhWJ2emc.js → Terminal-BaGyfRKo.js} +1 -1
- package/web/assets/{VoiceSettings-CAZx_vMq.js → VoiceSettings-aPof2Eda.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-DogFc2Ip.js → abnfDiagram-VCTEODGH-DjLpdzoK.js} +1 -1
- package/web/assets/architecture-7GRP2DOG-Cm8byLid.js +1 -0
- package/web/assets/{architectureDiagram-5GKGNRK7-CCi2spsd.js → architectureDiagram-5GKGNRK7-lsYBHVvd.js} +1 -1
- package/web/assets/{blockDiagram-I7D4REHJ-Bd60dkzS.js → blockDiagram-I7D4REHJ-DYYnVpdt.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-x8eoz53a.js → c4Diagram-7LVT6UL2-CoO3QRlU.js} +1 -1
- package/web/assets/channel-D6-mvlTX.js +1 -0
- package/web/assets/{chunk-4HAMMTFA-C9WAVb50.js → chunk-4HAMMTFA-BQnpHaW9.js} +1 -1
- package/web/assets/{chunk-75Z2AOVW-D0oJkYnq.js → chunk-75Z2AOVW-Dzp5kQ2r.js} +1 -1
- package/web/assets/{chunk-DU6HZSFF-Ca-TQP6q.js → chunk-DU6HZSFF-C8na3Axe.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-CqyG41Fk.js → chunk-F27PBJKO-CUcb_sN4.js} +1 -1
- package/web/assets/{chunk-GMAD6QVW-DKk3tpMU.js → chunk-GMAD6QVW-Donfspzq.js} +1 -1
- package/web/assets/{chunk-GVQU2GXP-DygrRpek.js → chunk-GVQU2GXP-DVhzW7b8.js} +1 -1
- package/web/assets/{chunk-IMKFNOWR-B3FDoEVs.js → chunk-IMKFNOWR-CGGzmqW7.js} +1 -1
- package/web/assets/{chunk-L3NEJ4N5-7qBZt1mv.js → chunk-L3NEJ4N5-rBfXTkoF.js} +1 -1
- package/web/assets/{chunk-OSK3NFVY-DofC-PJX.js → chunk-OSK3NFVY-DL_f8bf9.js} +1 -1
- package/web/assets/{chunk-P2QGCYS3-CDfH6gFX.js → chunk-P2QGCYS3-ZgqX2nEC.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-Bdd2sXCg.js → chunk-POPQ4Y6H-CBVBq1te.js} +1 -1
- package/web/assets/{chunk-PWAF6VOD-Dcm-CMNP.js → chunk-PWAF6VOD-DfFWMEam.js} +1 -1
- package/web/assets/{chunk-SHT3W25Y-DKzZ-cG3.js → chunk-SHT3W25Y-F-bhxjlv.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-skiTn2gq.js → chunk-SVP7TREG-9wn-ybWG.js} +1 -1
- package/web/assets/{chunk-TICWLB2K-DcX0Ga71.js → chunk-TICWLB2K-CT5y7hxG.js} +1 -1
- package/web/assets/classDiagram-ZZMXUADV-DIwmXFAa.js +1 -0
- package/web/assets/classDiagram-v2-VYDZK3BY-DIwmXFAa.js +1 -0
- package/web/assets/{cynefin-OW5HDTMX-5WGw29EN.js → cynefin-OW5HDTMX-BvKE30TA.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-D7BvNDK0.js → cynefinDiagram-5FMLGOSQ-DRHb-SA-.js} +1 -1
- package/web/assets/{dagre-GXQ25YYZ-Ddg0VJzE.js → dagre-GXQ25YYZ-C_tfWGUg.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-hybTm9PS.js → diagram-S7CK7UJ4-BzpQ0tXN.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-BpbDu0Op.js → diagram-UQ7AKVKN-D6AXQZcB.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-DSSIs4ee.js → diagram-VSXAHHWV-Bi1jorto.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-DnafMVgU.js → diagram-VX7I27RA-B4jcHzB8.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-lEHtjvJN.js → diagram-Z3DM3KII-CN73CF39.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-DLEKudf3.js → ebnfDiagram-PWID7BFC-C5D-3drP.js} +1 -1
- package/web/assets/{erDiagram-RLTQ6QDP-DmLBfRLX.js → erDiagram-RLTQ6QDP-CFzPXi0b.js} +1 -1
- package/web/assets/eventmodeling-NTZA5JFV-DNb8nVJ_.js +1 -0
- package/web/assets/flowDiagram-HODETNUW-CUSIzXyT.js +1 -0
- package/web/assets/{ganttDiagram-EL5Y4UJY-CDvNLAD6.js → ganttDiagram-EL5Y4UJY-C77_9sw7.js} +1 -1
- package/web/assets/{gitGraph-4MIJSDKK-DwaCMFIo.js → gitGraph-4MIJSDKK-DeYL1j8D.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-Bhkbrz4e.js → gitGraphDiagram-WWUBYQGX-gqeLlFAL.js} +1 -1
- package/web/assets/{index-OeSyz1SD.js → index-BP_AqmK7.js} +2 -2
- package/web/assets/index-DPD-O0uT.css +1 -0
- package/web/assets/{info-A6RAGUB7-cdQcV_rZ.js → info-A6RAGUB7-BacSBVPQ.js} +1 -1
- package/web/assets/{infoDiagram-27XIBGKW-CD3O4g79.js → infoDiagram-27XIBGKW-C9ZNvMBg.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-F9SF47Jw.js → ishikawaDiagram-5VMMS53U-k11JPerN.js} +1 -1
- package/web/assets/{journeyDiagram-3NMN7TZE-B903bBCS.js → journeyDiagram-3NMN7TZE-Q9nGiSOM.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-xbkF4Vtw.js → kanban-definition-UXKFOSKX-BuHRkNyH.js} +1 -1
- package/web/assets/{line-Dr1XNhY4.js → line-ti2i_lFA.js} +1 -1
- package/web/assets/{mermaid-parser.core-BuG17GLG.js → mermaid-parser.core-DBHgxCjo.js} +3 -3
- package/web/assets/{mermaid.core-yfu1-7fX.js → mermaid.core-PLa8EHqj.js} +4 -4
- package/web/assets/{mindmap-definition-YA3MSWOX-DWts0FcZ.js → mindmap-definition-YA3MSWOX-v5x6sfTb.js} +1 -1
- package/web/assets/mount-CuVcDytz.js +27 -0
- package/web/assets/{packet-AYTQ26CC-DFLO3cQP.js → packet-AYTQ26CC-Do8Sbf7F.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-CXEjb9u7.js → pegDiagram-XKGWAZYB-DAortnas.js} +1 -1
- package/web/assets/{pie-WAS4IAKB-exN7EAew.js → pie-WAS4IAKB-BGwPq7wv.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-DpSQsKn5.js → pieDiagram-E7YTZNPT-Dx_xCKsb.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-CS6OudQw.js → quadrantDiagram-AXDQQJYC-ClzfYO6A.js} +1 -1
- package/web/assets/{radar-RG4KPBEZ-C8w2HTeg.js → radar-RG4KPBEZ-C9XTCbFY.js} +1 -1
- package/web/assets/{railroad-74A4TZTK-BtX5hTzZ.js → railroad-74A4TZTK-BOQW6ymM.js} +1 -1
- package/web/assets/railroad-abnf-HS5TGJTU-28o55R1Q.js +1 -0
- package/web/assets/railroad-ebnf-LZEXJU2U-D5mWpi0G.js +1 -0
- package/web/assets/railroad-peg-WCYAUIDC-QkbSvaJo.js +1 -0
- package/web/assets/{railroadDiagram-O6MQD6OU-BWtag9RL.js → railroadDiagram-O6MQD6OU-B9cYZ1ZO.js} +1 -1
- package/web/assets/{requirementDiagram-BXWQKSXE-k6mjhRxY.js → requirementDiagram-BXWQKSXE-Duwn-KeR.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-i8eLMmkW.js → sankeyDiagram-P5KCCOFB-Dgx9nQj_.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-DNNBguEd.js → sequenceDiagram-WJ2MYXX4-b4Te4U6l.js} +1 -1
- package/web/assets/{settingsRoute-Dr39e8Yk.js → settingsRoute-YslV5P0P.js} +1 -1
- package/web/assets/{stateDiagram-D77RDMKH-DqjhSvJP.js → stateDiagram-D77RDMKH-Czwweauu.js} +1 -1
- package/web/assets/stateDiagram-v2-MP3YSRHH-C_kUTrq9.js +1 -0
- package/web/assets/{swimlanes-42K2YHIH-BkkeXpHD.js → swimlanes-42K2YHIH-LtuWqhrr.js} +1 -1
- package/web/assets/swimlanesDiagram-VR7AAH4N-C-hr2B8y.js +8 -0
- package/web/assets/{timeline-definition-24CTP7MA-aDY-21uj.js → timeline-definition-24CTP7MA-De_Lok0Y.js} +1 -1
- package/web/assets/{treeView-Q6P3EWNA-C-fQA9Vn.js → treeView-Q6P3EWNA-B5Z81Nji.js} +1 -1
- package/web/assets/{treemap-WGGIJYW6-me7Dfo-P.js → treemap-WGGIJYW6-BUKsJffK.js} +1 -1
- package/web/assets/{useStore-B9g6zeic.js → useStore-BmjW8o59.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-DV4uNgvo.js → vennDiagram-4TSXK5OY-RcsvZGDK.js} +1 -1
- package/web/assets/{wardley-WFR3VGLG-CHBCO6bM.js → wardley-WFR3VGLG-DOgEtXN8.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-DXL5Qqep.js → wardleyDiagram-VM6X3IG4-CsN3NJnF.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-CJLkXJpZ.js → xychartDiagram-S5SC5T6Z-BRJmQLkZ.js} +1 -1
- package/web/index.html +2 -2
- package/web/sw.js +1 -1
- package/web/assets/architecture-7GRP2DOG-D5mBfWIr.js +0 -1
- package/web/assets/channel-Doc8Sof_.js +0 -1
- package/web/assets/classDiagram-ZZMXUADV-BpkItEh6.js +0 -1
- package/web/assets/classDiagram-v2-VYDZK3BY-BpkItEh6.js +0 -1
- package/web/assets/eventmodeling-NTZA5JFV-DeoewfCa.js +0 -1
- package/web/assets/flowDiagram-HODETNUW-3vCeY3Nh.js +0 -1
- package/web/assets/index-D36pVYmX.css +0 -1
- package/web/assets/mount-DWvv-op6.js +0 -27
- package/web/assets/railroad-abnf-HS5TGJTU-B_uCC_JS.js +0 -1
- package/web/assets/railroad-ebnf-LZEXJU2U-BMxy5I29.js +0 -1
- package/web/assets/railroad-peg-WCYAUIDC-DguZDY2Y.js +0 -1
- package/web/assets/stateDiagram-v2-MP3YSRHH-D-ANFwgi.js +0 -1
- package/web/assets/swimlanesDiagram-VR7AAH4N-DJTu-KTr.js +0 -8
package/bin/acp-shim.mjs
CHANGED
|
@@ -219,6 +219,16 @@ function finishTurnDone() {
|
|
|
219
219
|
bivy({ type: "session.done" });
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
// ACP `plan` updates carry the agent's whole todo list with a status per entry.
|
|
223
|
+
// Forward each as a finished `plan` tool call: it persists in the turn like any
|
|
224
|
+
// tool, and clients render the latest one as a checklist (@bivy/core plan.ts).
|
|
225
|
+
let planSeq = 0;
|
|
226
|
+
function emitPlan(entries) {
|
|
227
|
+
const toolCallId = `plan-${Date.now().toString(36)}-${++planSeq}`;
|
|
228
|
+
bivy({ type: "tool.observe", toolCallId, name: "plan", input: { entries } });
|
|
229
|
+
bivy({ type: "tool.result", toolCallId, name: "plan", result: "Plan updated" });
|
|
230
|
+
}
|
|
231
|
+
|
|
222
232
|
// --- tool-call field normalization -------------------------------------------
|
|
223
233
|
// ACP's `tool_call`/`tool_call_update` carries a free-text `title` (whatever
|
|
224
234
|
// prose the agent chose) AND a small fixed `kind` enum (read/edit/delete/move/
|
|
@@ -466,8 +476,7 @@ function onSessionUpdate(params) {
|
|
|
466
476
|
break;
|
|
467
477
|
}
|
|
468
478
|
case "plan":
|
|
469
|
-
|
|
470
|
-
if (!child && Array.isArray(u.entries)) bivy({ type: "message.reasoning", text: u.entries.map((e) => `• ${e.content ?? ""}`).join("\n") });
|
|
479
|
+
if (!child && Array.isArray(u.entries)) emitPlan(u.entries);
|
|
471
480
|
break;
|
|
472
481
|
default:
|
|
473
482
|
break;
|
|
@@ -160,6 +160,16 @@ function emitToolObserved(itemId, name, input) {
|
|
|
160
160
|
bivy({ type: "tool.observe", toolCallId: itemId, name, input });
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
// `turn/plan/updated` (the update_plan tool) carries the whole plan with a
|
|
164
|
+
// status per step. Forward it as a finished `plan` tool call, which clients
|
|
165
|
+
// render as a checklist (@bivy/core plan.ts), the same as an ACP plan.
|
|
166
|
+
let planSeq = 0;
|
|
167
|
+
function emitPlan(plan, explanation) {
|
|
168
|
+
const toolCallId = `plan-${Date.now().toString(36)}-${++planSeq}`;
|
|
169
|
+
bivy({ type: "tool.observe", toolCallId, name: "plan", input: { plan, ...(explanation ? { explanation } : {}) } });
|
|
170
|
+
bivy({ type: "tool.result", toolCallId, name: "plan", result: "Plan updated" });
|
|
171
|
+
}
|
|
172
|
+
|
|
163
173
|
function emitReasoning(itemId, delta) {
|
|
164
174
|
const body = text(delta);
|
|
165
175
|
if (!body) return;
|
|
@@ -364,6 +374,9 @@ function onNotification(m) {
|
|
|
364
374
|
case "item/plan/delta":
|
|
365
375
|
if (fromCurrentThread) emitReasoning(paramsItemId(params), params.delta);
|
|
366
376
|
return;
|
|
377
|
+
case "turn/plan/updated":
|
|
378
|
+
if (fromCurrentThread && Array.isArray(params?.plan)) emitPlan(params.plan, params.explanation);
|
|
379
|
+
return;
|
|
367
380
|
case "item/reasoning/summaryTextDelta":
|
|
368
381
|
case "item/reasoning/textDelta":
|
|
369
382
|
if (fromCurrentThread) emitReasoning(paramsItemId(params), params.delta);
|
package/bin/tui/transcript.mjs
CHANGED
|
@@ -25,6 +25,22 @@ export function toolSummary(block) {
|
|
|
25
25
|
return detail ? `${name} ${detail.replace(/\s+/g, " ").trim()}` : name;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/** "plan · 2 of 4 done · <current step>" for a full plan update (the shapes
|
|
29
|
+
* @bivy/core plan.ts reads), or undefined. A partial `merge` update is skipped:
|
|
30
|
+
* the full list it amends is already shown. */
|
|
31
|
+
export function planSummary(block) {
|
|
32
|
+
const input = block?.input ?? block?.arguments ?? {};
|
|
33
|
+
if (!input || typeof input !== "object" || input.merge === true) return undefined;
|
|
34
|
+
const list = ["todos", "plan", "entries", "items", "steps", "tasks"].map((k) => input[k]).find(Array.isArray);
|
|
35
|
+
const steps = (list ?? []).filter((e) => e && typeof e === "object");
|
|
36
|
+
if (!steps.length) return undefined;
|
|
37
|
+
const status = (e) => String(e.status ?? e.state ?? "").toLowerCase().replace(/[^a-z]/g, "");
|
|
38
|
+
const text = (e) => String(e.content ?? e.step ?? e.text ?? e.title ?? e.subject ?? "").trim();
|
|
39
|
+
const done = steps.filter((e) => ["completed", "complete", "done"].includes(status(e))).length;
|
|
40
|
+
const current = steps.find((e) => ["inprogress", "active", "running"].includes(status(e)));
|
|
41
|
+
return `plan · ${done} of ${steps.length} done${current && text(current) ? ` · ${text(current)}` : ""}`;
|
|
42
|
+
}
|
|
43
|
+
|
|
28
44
|
/** `[{ role: "user"|"agent"|"tool", text }]` from `session.history` messages. */
|
|
29
45
|
export function transcriptEntries(messages = []) {
|
|
30
46
|
const entries = [];
|
|
@@ -46,7 +62,15 @@ export function transcriptEntries(messages = []) {
|
|
|
46
62
|
const id = block.id ?? block.toolCallId;
|
|
47
63
|
if (id && seenTools.has(id)) continue;
|
|
48
64
|
if (id) seenTools.add(id);
|
|
49
|
-
|
|
65
|
+
const plan = planSummary(block);
|
|
66
|
+
if (plan) {
|
|
67
|
+
// One plan line per turn, showing the latest progress.
|
|
68
|
+
const previous = entries.findLastIndex((e) => e.role === "user" || e.plan);
|
|
69
|
+
if (previous >= 0 && entries[previous].plan) entries.splice(previous, 1);
|
|
70
|
+
entries.push({ role: "tool", text: plan, plan: true });
|
|
71
|
+
} else if (!/^(plan|todo_?write|update_?plan)$/i.test(String(block.name ?? ""))) {
|
|
72
|
+
entries.push({ role: "tool", text: toolSummary(block) });
|
|
73
|
+
}
|
|
50
74
|
}
|
|
51
75
|
}
|
|
52
76
|
}
|
|
@@ -4,7 +4,7 @@ import { defineAgentIntegration } from "../definition.js";
|
|
|
4
4
|
import { withExactCapabilitySurface } from "../../runtime/types.js";
|
|
5
5
|
import { createCredentialStore } from "../../runtime/credentials.js";
|
|
6
6
|
import { ClaudeCodeRuntime, claudeRuntimeFromEnv, claudeSdkInstalled, } from "./runtime.js";
|
|
7
|
-
export const CLAUDE_TESTED_VERSION = "0.3.
|
|
7
|
+
export const CLAUDE_TESTED_VERSION = "0.3.286";
|
|
8
8
|
const CLAUDE_CAPABILITIES = withExactCapabilitySurface({
|
|
9
9
|
toolInterception: true,
|
|
10
10
|
modelSelection: true,
|
|
@@ -10,7 +10,7 @@ import { codexCredentialPreflight } from "../../runtime/codex-preflight.js";
|
|
|
10
10
|
import { deleteCodexSession, discoverNativeCodexSessions, loadCodexTranscript, writeCodexRollout, exportCodexRollout, importCodexRollout, } from "../../runtime/codex-sessions.js";
|
|
11
11
|
import { ProtocolRuntime } from "../../runtime/protocol.js";
|
|
12
12
|
import { codexSlashCommands } from "../../runtime/slash-commands.js";
|
|
13
|
-
export const CODEX_TESTED_VERSION = "0.159.
|
|
13
|
+
export const CODEX_TESTED_VERSION = "0.159.2";
|
|
14
14
|
function codexCommand() {
|
|
15
15
|
return process.env.BIVY_CODEX_BIN?.trim() || "codex";
|
|
16
16
|
}
|
|
@@ -6,7 +6,7 @@ import path from "node:path";
|
|
|
6
6
|
import { defineAgentIntegration } from "../definition.js";
|
|
7
7
|
import { PI_CAPABILITIES } from "./capabilities.js";
|
|
8
8
|
import { bridgeInstalled, enableBridgeResolution } from "../../agent-bridges.mjs";
|
|
9
|
-
export const PI_TESTED_VERSION = "0.99.
|
|
9
|
+
export const PI_TESTED_VERSION = "0.99.2";
|
|
10
10
|
export function piAgentDir() {
|
|
11
11
|
return process.env.PI_CODING_AGENT_DIR?.trim() || path.join(os.homedir(), ".pi", "agent");
|
|
12
12
|
}
|
package/dist/apps/styles.css
CHANGED
|
@@ -689,6 +689,22 @@ input, textarea, select { font-family: inherit; font-size: 16px; }
|
|
|
689
689
|
.tool-detail-value.output pre,
|
|
690
690
|
.tool-detail-value.output code { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
|
|
691
691
|
|
|
692
|
+
/* Agent plan: the work-line (progress) over a quiet checklist. */
|
|
693
|
+
.plan-chevron { transition: transform var(--dur-fast) var(--ease-standard); }
|
|
694
|
+
.plan-card .tool-group-line[aria-expanded="true"] .plan-chevron { transform: rotate(90deg); }
|
|
695
|
+
.plan-steps { list-style: none; margin: 0 0 var(--space-1); padding: 0; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
|
|
696
|
+
.plan-step { display: flex; align-items: baseline; gap: var(--space-2); color: var(--ink); }
|
|
697
|
+
.plan-mark {
|
|
698
|
+
flex: none; width: 14px; height: 14px; box-sizing: border-box; align-self: center; display: inline-flex; align-items: center; justify-content: center;
|
|
699
|
+
border: 1.5px solid var(--line-strong); border-radius: var(--radius-full); font-size: 9px; font-weight: 700; line-height: 1; color: var(--muted);
|
|
700
|
+
}
|
|
701
|
+
.plan-step.is-completed .plan-mark { border-color: var(--ok); background: var(--ok); color: var(--bg); }
|
|
702
|
+
.plan-step.is-completed .plan-mark::before { content: "\2713"; }
|
|
703
|
+
.plan-step.is-completed .plan-text { color: var(--muted); }
|
|
704
|
+
.plan-step.is-in_progress .plan-mark { border-color: var(--accent); box-shadow: inset 0 0 0 2.5px var(--bg), inset 0 0 0 7px var(--accent); }
|
|
705
|
+
.plan-step.is-in_progress .plan-text { font-weight: var(--weight-medium); }
|
|
706
|
+
.plan-step.is-cancelled .plan-text { color: var(--muted); text-decoration: line-through; }
|
|
707
|
+
|
|
692
708
|
.diff-viewer { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.45; }
|
|
693
709
|
.diff-hunk + .diff-hunk { border-top: 1px solid var(--line); }
|
|
694
710
|
.diff-hunk-title { position: sticky; top: 0; z-index: var(--z-base); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; color: var(--muted); background: var(--surface-3); border-bottom: 1px solid var(--line); font-family: inherit; font-size: 12px; font-weight: 700; }
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
export const CERTIFICATION_MATRIX = {
|
|
4
4
|
schemaVersion: 1,
|
|
5
5
|
agents: [
|
|
6
|
-
{ id: "claude-code-sdk", status: "active", executionMode: "protocol", pinnedVersion: "0.3.
|
|
7
|
-
{ id: "codex-approvals", status: "active", executionMode: "protocol", pinnedVersion: "0.159.
|
|
8
|
-
{ id: "pi", status: "active", executionMode: "protocol", pinnedVersion: "0.99.
|
|
6
|
+
{ id: "claude-code-sdk", status: "active", executionMode: "protocol", pinnedVersion: "0.3.286", capabilities: ["toolInterception", "modelSelection", "resume"] },
|
|
7
|
+
{ id: "codex-approvals", status: "active", executionMode: "protocol", pinnedVersion: "0.159.2", capabilities: ["toolInterception", "modelSelection", "resume"] },
|
|
8
|
+
{ id: "pi", status: "active", executionMode: "protocol", pinnedVersion: "0.99.2", capabilities: ["toolInterception", "modelSelection", "resume"] },
|
|
9
9
|
{ id: "opencode", status: "active", executionMode: "protocol", pinnedVersion: "1.18.33", capabilities: ["toolInterception", "modelSelection", "resume"] },
|
|
10
10
|
{ id: "grok", status: "active", executionMode: "protocol", pinnedVersion: "1.0.44", capabilities: ["toolInterception", "modelSelection", "resume"] },
|
|
11
11
|
]
|
package/dist/server.js
CHANGED
|
@@ -34,6 +34,8 @@ import { AppRegistry } from "./apps/registry.js";
|
|
|
34
34
|
import { AppGateway } from "./apps/gateway.js";
|
|
35
35
|
import { RemotePreview } from "./apps/remote-preview.js";
|
|
36
36
|
import { AppService } from "./apps/service.js";
|
|
37
|
+
import { scanListeners, scanMachineListeners } from "./apps/listeners.js";
|
|
38
|
+
import { AGENT_PROFILES } from "./agents/profiles.js";
|
|
37
39
|
import { pngSize, reviewHint } from "./apps/review.js";
|
|
38
40
|
import { createDisplayHost } from "./apps/display.js";
|
|
39
41
|
import { createAppCommands } from "./controllers/app-commands.js";
|
|
@@ -2252,6 +2254,10 @@ function createPinSink() {
|
|
|
2252
2254
|
},
|
|
2253
2255
|
};
|
|
2254
2256
|
}
|
|
2257
|
+
// An agent CLI's own server is not an app the user runs: OpenCode's ACP process
|
|
2258
|
+
// listens on :4096 in the workspace, and was offered as a preview in every session.
|
|
2259
|
+
const agentCommands = new Set(Object.values(AGENT_PROFILES).map((profile) => profile.command));
|
|
2260
|
+
const notAgentServers = (offers) => offers.filter((offer) => !agentCommands.has(offer.command.split(" ")[0]));
|
|
2255
2261
|
const appService = new AppService(appRegistry, appGateway ?? remotePreview, {
|
|
2256
2262
|
start: async (spec) => {
|
|
2257
2263
|
let failure = "Could not start the app terminal.";
|
|
@@ -2266,7 +2272,11 @@ const appService = new AppService(appRegistry, appGateway ?? remotePreview, {
|
|
|
2266
2272
|
},
|
|
2267
2273
|
has: (id) => terminals.has(id),
|
|
2268
2274
|
close: (id) => { terminals.close(id); },
|
|
2269
|
-
}, {
|
|
2275
|
+
}, {
|
|
2276
|
+
scan: async (workspace) => notAgentServers(await scanListeners(workspace)),
|
|
2277
|
+
scanMachine: async (root) => notAgentServers(await scanMachineListeners(root)),
|
|
2278
|
+
screenshots: { enabled: appScreenshotsEnabled }, displays: appDisplays, reviews: createReviewSink(), pins: createPinSink(),
|
|
2279
|
+
});
|
|
2270
2280
|
// A reviewer's note shows up in an open Apps sheet without reopening it, and
|
|
2271
2281
|
// the owner gets one push per burst of notes on a view ("2 notes on
|
|
2272
2282
|
// Storefront"), which opens the Apps sheet at that app. Counts, names and IDs
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
// Copyright (c) 2026 Petter André Sjulstad
|
|
3
|
+
//
|
|
4
|
+
// A hand-off seed is the first prompt that carries a conversation into an agent
|
|
5
|
+
// that couldn't import it natively: a cross-agent fork, or a session imported
|
|
6
|
+
// from outside Bivy. It is written for the agent, not the reader — the
|
|
7
|
+
// transcript above it already shows the same conversation — so clients render it
|
|
8
|
+
// as a compact "context handed over" line instead of a wall of user text.
|
|
9
|
+
//
|
|
10
|
+
// The node writes these (src/session/transcript-normal.ts buildSeedPrompt and
|
|
11
|
+
// src/session/native-import.ts). One row per shape; a new seed is a new row.
|
|
12
|
+
const SEEDS = [
|
|
13
|
+
{ kind: "fork", pattern: /^I am continuing an existing Bivy session \(forked from (.+?) to .+?\)\./ },
|
|
14
|
+
{ kind: "import", pattern: /^I am continuing an? (.+?) session that was started outside Bivy and imported here\./ },
|
|
15
|
+
];
|
|
16
|
+
/** The hand-off a user message carries, or undefined for an ordinary prompt. */
|
|
17
|
+
export function handoffSeedOf(text) {
|
|
18
|
+
if (!text)
|
|
19
|
+
return undefined;
|
|
20
|
+
for (const seed of SEEDS) {
|
|
21
|
+
const match = seed.pattern.exec(text);
|
|
22
|
+
if (match)
|
|
23
|
+
return { kind: seed.kind, from: match[1] };
|
|
24
|
+
}
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
// Copyright (c) 2026 Petter André Sjulstad
|
|
3
|
+
//
|
|
4
|
+
// An agent's plan (todo list) as one shape. Agents publish it three ways: a todo
|
|
5
|
+
// tool call (`todos: [{content, status}]`), Codex's `turn/plan/updated`
|
|
6
|
+
// (`plan: [{step, status}]`), and ACP's `plan` session update
|
|
7
|
+
// (`entries: [{content, status}]`). The shims forward the last two as a `plan`
|
|
8
|
+
// tool call, so every plan reaches the transcript as a tool input, and this
|
|
9
|
+
// module reads any of them. Spellings are table rows, not per-agent code.
|
|
10
|
+
const LIST_KEYS = ["todos", "plan", "entries", "items", "steps", "tasks"];
|
|
11
|
+
const TEXT_KEYS = ["content", "step", "text", "title", "subject", "description", "task"];
|
|
12
|
+
const STATUS = {
|
|
13
|
+
pending: "pending", todo: "pending", notstarted: "pending", open: "pending",
|
|
14
|
+
inprogress: "in_progress", active: "in_progress", running: "in_progress", doing: "in_progress", current: "in_progress", started: "in_progress",
|
|
15
|
+
completed: "completed", complete: "completed", done: "completed", finished: "completed", success: "completed",
|
|
16
|
+
cancelled: "cancelled", canceled: "cancelled", skipped: "cancelled", abandoned: "cancelled",
|
|
17
|
+
};
|
|
18
|
+
function planStatus(value) {
|
|
19
|
+
return STATUS[String(value ?? "").toLowerCase().replace(/[^a-z]/g, "")];
|
|
20
|
+
}
|
|
21
|
+
function firstString(o, keys) {
|
|
22
|
+
for (const key of keys) {
|
|
23
|
+
const value = o[key];
|
|
24
|
+
if (typeof value === "string" && value.trim())
|
|
25
|
+
return value.trim();
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The plan a tool input carries, or undefined when it holds no list of steps.
|
|
31
|
+
* `merge` marks a partial update (entries keyed by id, text may be missing) that
|
|
32
|
+
* applies on top of the previous plan rather than replacing it.
|
|
33
|
+
*/
|
|
34
|
+
export function planUpdateOf(input) {
|
|
35
|
+
if (!input || typeof input !== "object" || Array.isArray(input))
|
|
36
|
+
return undefined;
|
|
37
|
+
const o = input;
|
|
38
|
+
const list = LIST_KEYS.map((key) => o[key]).find(Array.isArray);
|
|
39
|
+
if (!list?.length)
|
|
40
|
+
return undefined;
|
|
41
|
+
const entries = [];
|
|
42
|
+
for (const raw of list) {
|
|
43
|
+
if (typeof raw === "string") {
|
|
44
|
+
entries.push({ text: raw, status: "pending" });
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
if (!raw || typeof raw !== "object")
|
|
48
|
+
continue;
|
|
49
|
+
const item = raw;
|
|
50
|
+
const text = firstString(item, TEXT_KEYS);
|
|
51
|
+
const status = planStatus(item.status ?? item.state);
|
|
52
|
+
const id = item.id ?? item.taskId;
|
|
53
|
+
entries.push({ ...(text ? { text } : {}), ...(status ? { status } : {}), ...(id != null && id !== "" ? { id: String(id) } : {}) });
|
|
54
|
+
}
|
|
55
|
+
const merge = o.merge === true;
|
|
56
|
+
if (!merge && !entries.some((e) => e.text))
|
|
57
|
+
return undefined;
|
|
58
|
+
return { entries, merge };
|
|
59
|
+
}
|
|
60
|
+
/** Apply one update to the previous plan: replace it, or merge entries by id. */
|
|
61
|
+
export function applyPlanUpdate(previous, update) {
|
|
62
|
+
if (!update.merge) {
|
|
63
|
+
return update.entries.filter((e) => e.text).map((e) => ({ text: e.text, status: e.status ?? "pending", ...(e.id ? { id: e.id } : {}) }));
|
|
64
|
+
}
|
|
65
|
+
const next = previous.map((e) => ({ ...e }));
|
|
66
|
+
for (const change of update.entries) {
|
|
67
|
+
const existing = change.id ? next.find((e) => e.id === change.id) : undefined;
|
|
68
|
+
if (existing) {
|
|
69
|
+
if (change.text)
|
|
70
|
+
existing.text = change.text;
|
|
71
|
+
if (change.status)
|
|
72
|
+
existing.status = change.status;
|
|
73
|
+
}
|
|
74
|
+
else if (change.text) {
|
|
75
|
+
next.push({ text: change.text, status: change.status ?? "pending", ...(change.id ? { id: change.id } : {}) });
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return next;
|
|
79
|
+
}
|
|
80
|
+
/** The plan after a sequence of plan tool inputs, oldest first. */
|
|
81
|
+
export function latestPlan(inputs) {
|
|
82
|
+
let plan = [];
|
|
83
|
+
for (const input of inputs) {
|
|
84
|
+
const update = planUpdateOf(input);
|
|
85
|
+
if (update)
|
|
86
|
+
plan = applyPlanUpdate(plan, update);
|
|
87
|
+
}
|
|
88
|
+
return plan;
|
|
89
|
+
}
|
|
90
|
+
const CHECKLIST = {
|
|
91
|
+
completed: { box: "[x]", note: "" },
|
|
92
|
+
in_progress: { box: "[ ]", note: " (in progress)" },
|
|
93
|
+
pending: { box: "[ ]", note: "" },
|
|
94
|
+
cancelled: { box: "[ ]", note: " (cancelled)" },
|
|
95
|
+
};
|
|
96
|
+
/** A plan as a Markdown checklist, for prompts and transcript files. */
|
|
97
|
+
export function planChecklist(plan) {
|
|
98
|
+
return plan.map((e) => `- ${CHECKLIST[e.status].box} ${e.text}${CHECKLIST[e.status].note}`).join("\n");
|
|
99
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { handoffSeedOf } from "./handoff-seed.js";
|
|
2
|
+
import { applyPlanUpdate, planChecklist, planUpdateOf } from "./plan.js";
|
|
1
3
|
/** Cap a tool payload down to a short, log-safe one-liner. */
|
|
2
4
|
function compactValue(value, max = 200) {
|
|
3
5
|
let s;
|
|
@@ -105,8 +107,10 @@ function toTs(value) {
|
|
|
105
107
|
*/
|
|
106
108
|
export function normalizeMessages(messages, header) {
|
|
107
109
|
const turns = [];
|
|
110
|
+
let plan = [];
|
|
108
111
|
for (const message of messages ?? []) {
|
|
109
112
|
const m = message;
|
|
113
|
+
plan = planAfter(plan, m.content);
|
|
110
114
|
const { text, tools, toolResultOnly } = readContent(m.content);
|
|
111
115
|
const role = normalizeRole(m.role, toolResultOnly);
|
|
112
116
|
const namedTool = tools.find((t) => t.name)?.name;
|
|
@@ -122,8 +126,25 @@ export function normalizeMessages(messages, header) {
|
|
|
122
126
|
...(toTs(m.timestamp ?? m.ts) !== undefined ? { ts: toTs(m.timestamp ?? m.ts) } : {}),
|
|
123
127
|
});
|
|
124
128
|
}
|
|
125
|
-
return { header, turns };
|
|
129
|
+
return { header, turns, ...(plan.length ? { plan } : {}) };
|
|
126
130
|
}
|
|
131
|
+
/** Fold a message's top-level plan updates (see @bivy/core plan.ts) into `plan`. */
|
|
132
|
+
function planAfter(plan, content) {
|
|
133
|
+
if (!Array.isArray(content))
|
|
134
|
+
return plan;
|
|
135
|
+
for (const block of content) {
|
|
136
|
+
if (block?.type !== "tool_use" || block.parentToolUseId || block.parentToolCallId)
|
|
137
|
+
continue;
|
|
138
|
+
if (block.detail?.kind && block.detail.kind !== "plan")
|
|
139
|
+
continue;
|
|
140
|
+
const update = planUpdateOf(block.input);
|
|
141
|
+
if (update)
|
|
142
|
+
plan = applyPlanUpdate(plan, update);
|
|
143
|
+
}
|
|
144
|
+
return plan;
|
|
145
|
+
}
|
|
146
|
+
/** Cap for the latest request when the seed repeats it in full. */
|
|
147
|
+
const REQUEST_CHARS = 4000;
|
|
127
148
|
function truncate(text, max) {
|
|
128
149
|
const compact = String(text || "").replace(/\s+/g, " ").trim();
|
|
129
150
|
return compact.length > max ? `${compact.slice(0, Math.max(0, max - 1))}…` : compact;
|
|
@@ -168,6 +189,14 @@ export function buildSeedPrompt(transcript, opts = {}) {
|
|
|
168
189
|
picked.reverse();
|
|
169
190
|
const omitted = formatted.length - picked.length;
|
|
170
191
|
const recent = picked.length ? picked.join("\n") : "- (no prior turns were available)";
|
|
192
|
+
// The user's latest request is what the new agent must act on. Repeat it in
|
|
193
|
+
// full when the recent block had to shorten it (or leave it out). An earlier
|
|
194
|
+
// hand-off seed is context, not a request.
|
|
195
|
+
const lastRequest = [...transcript.turns].reverse().find((t) => t.role === "user" && t.text.trim() && !handoffSeedOf(t.text))?.text.trim();
|
|
196
|
+
const requestCut = lastRequest && lastRequest.replace(/\s+/g, " ").length > perTurnChars;
|
|
197
|
+
const pinnedRequest = lastRequest && (requestCut || !picked.some((line) => line.startsWith("- user:")))
|
|
198
|
+
? (lastRequest.length > REQUEST_CHARS ? `${lastRequest.slice(0, REQUEST_CHARS - 1)}…` : lastRequest)
|
|
199
|
+
: undefined;
|
|
171
200
|
const file = opts.transcriptFile;
|
|
172
201
|
const where = file ? "the conversation file above" : opts.transcriptUrl ? "the full transcript linked above" : "the full transcript";
|
|
173
202
|
const lines = [
|
|
@@ -185,6 +214,8 @@ export function buildSeedPrompt(transcript, opts = {}) {
|
|
|
185
214
|
? `Recent conversation (most recent last; ${omitted} earlier turn${omitted === 1 ? "" : "s"} omitted — see ${where}):`
|
|
186
215
|
: "Recent conversation (most recent last):",
|
|
187
216
|
recent,
|
|
217
|
+
...(pinnedRequest ? ["", "The user's latest request, in full:", pinnedRequest] : []),
|
|
218
|
+
...(transcript.plan?.length ? ["", "The plan so far (from the previous agent):", planChecklist(transcript.plan)] : []),
|
|
188
219
|
"",
|
|
189
220
|
file
|
|
190
221
|
? "Read the conversation file above only if this summary is missing something you need; otherwise continue from here."
|
|
@@ -236,6 +267,13 @@ export function buildForkHistory(transcript) {
|
|
|
236
267
|
else
|
|
237
268
|
history.push({ role, text });
|
|
238
269
|
}
|
|
270
|
+
// The plan's latest state, in the agent's voice on its last reply, so the new
|
|
271
|
+
// agent picks up the open steps rather than re-deriving them from tool
|
|
272
|
+
// payloads. Never after a trailing user turn: that request is still open.
|
|
273
|
+
const lastReply = history.map((turn) => turn.role).lastIndexOf("assistant");
|
|
274
|
+
if (transcript.plan?.length && lastReply >= 0) {
|
|
275
|
+
history[lastReply].text += `\n\n[plan] Where the plan stands:\n${planChecklist(transcript.plan)}`;
|
|
276
|
+
}
|
|
239
277
|
return history;
|
|
240
278
|
}
|
|
241
279
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bivy/bivy",
|
|
3
|
-
"version": "0.20.2-staging.
|
|
3
|
+
"version": "0.20.2-staging.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"description": "Run coding agents on machines you own. Open-source, self-hostable agent workspace.",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"readme": "# Bivy\n\n[](https://www.npmjs.com/package/@bivy/bivy)\n[](LICENSE)\n[](https://nodejs.org)\n\n**Local coding agents that show their work. Anywhere.**\n\nBivy is the open-source workspace for coding agents. It runs Claude Code, Codex,\nPi, OpenCode and other agents on your own machine. Reach them from a browser or\nyour phone, with the live session, its terminal, its approvals, and the app\nthey're building right in the chat. Try it, mark what's wrong, and send it back.\n\n<p align=\"center\">\n <img src=\"docs/images/preview-feedback-loop.gif\" width=\"360\"\n alt=\"On a phone: open the app an agent built, circle the packed items, send a note, and compare the result before and after the agent's fix.\">\n</p>\n\nBivy is not another coding agent and not a cloud development machine. The agent\nstays local and does the coding with your model provider. Your repos, tools,\ndatabases, and services stay where they are. Bivy gives you remote access to all\nof it, plus live previews, automations, and review.\n\n- **Live previews.** The running app beside the chat. Mark it, send it back,\n share it with someone who has no Bivy account.\n- **Automations.** GitHub issues, failed CI, Linear, Slack, schedules, and\n webhooks start the work. It comes back as a preview link or a pull request.\n- **Any agent.** Hit a usage limit? Fork the session to another agent, or let\n Bivy retry when the limit resets.\n- **Your machine, anywhere.** Start at your desk, pick the session up on your\n phone. The machine dials out, so there are no ports to open, and session\n traffic is end-to-end encrypted.\n\n**[Start free on Bivy Cloud](https://app.bivy.sh)** ·\n**[Quickstart](docs/quickstart.md)** ·\n**[Documentation](docs/README.md)** ·\n**[Self-host](docs/deploy-images.md)** ·\n**[Website](https://bivy.sh)**\n\n**Recommended:** sign in at [app.bivy.sh](https://app.bivy.sh), then copy your\npersonalized **Connect a Machine** command into a terminal on your Mac or Linux\ncomputer. It installs and enrolls the machine without another Bivy login. The\nbrowser connects automatically; choose a repository and send your first task\nright there.\n\nPrefer starting from the terminal?\n\n```bash\ncurl -fsSL https://bivy.sh/install.sh | bash # install + guided setup\ncd your-repo\nbivy run claude # or codex, pi, opencode\nbivy open # continue in the web app (needs remote setup)\n```\n\nBivy Cloud hosts the app, control plane, and relay—not the machines running your\nagents. Connect a Mac, Linux computer, or existing server and bring your own\nagent subscription, model API key, or local model. You can also self-host the\nentire remote-access stack.\n\n> **Bivy is 0.x software.** Claude Code, Codex, Pi, OpenCode, and Grok are the\n> release-tested paths. Credential sync, resume, handoffs, approvals, and\n> sandboxing depend on the runtime. See the\n> [runtime support matrix](docs/runtime-support-matrix.md).\n\n## Don't just read the diff. Try the app.\n\nBivy lets you **use what the agent built and show it what to fix**, without a\nseparate deployment step.\n\n1. **Ask for a change.** The agent works in your repo with your existing tools\n and local services.\n2. **Try the app.** Bivy finds the dev server the agent starts and opens it\n beside the chat: web apps, terminals, and desktop apps. Use the running app,\n not a screenshot of what the agent says it finished.\n3. **Mark what needs work.** Press and hold anything in the preview to mark it,\n or drag to circle it, then say what you want. **Mark another** keeps\n separate notes separate. The marks go to the agent with the element and page\n context. No screenshots to paste.\n4. **Follow each note.** Every mark stays in the chat as a pin that resolves\n itself: **Changed** when a later run changes what you marked, **Element\n gone** when it leaves the page, **Done** when you say so.\n5. **Review the next version.** A new version waits on the preview pill instead\n of reloading under you. Take it when you're ready, compare before and after,\n inspect the diff and checks, and decide when the work is done.\n6. **Get a second opinion.** Share a preview link for 1 hour, 1 day, or 7 days.\n Teammates and clients try the running app and leave notes without a Bivy\n account. Make it view-only, or **Stop sharing** to end every link at once.\n\nOn Bivy Cloud, preview delivery is built in: no per-app domains, certificates,\npublic ports, or tunnels to configure. Self-hosters configure preview delivery\nonce for their Bivy deployment, not for every app. The app still needs its normal\nbuild or dev-server setup, and **the machine serving it must stay awake and\nonline**. These are development previews, not production hosting.\n\n**Share deliberately:** anyone with a preview link can use that app, including\nits live backend, until the link expires or you stop sharing.\nReviewer notes aren't sent to the agent automatically; you send them or explicitly\nallow agent access. Preview traffic uses HTTPS through the preview relay, not\nsession end-to-end encryption; the relay operator can see it.\n\n[App previews, visual feedback, and sharing →](docs/apps.md)\n\n## One workflow, from trigger to review\n\n```text\nPrompt · GitHub issue · CI failure · Linear · Slack · Schedule · Webhook\n │\n ▼\n Choose machine + agent + model\n + supported credentials\n │\n ▼\n Live agent session\n Join · steer · approve · stop\n │\n ▼\n Try app · inspect changes · checks\n │\n ▼\n Mark up · send feedback · iterate\n │\n ▼\n Share preview · review PR\n```\n\nA **Machine** is a computer or server you connect. A **Session** is live agent\nwork on that machine. A **Run** is delegated background work that creates a\nsession and tracks its outcome. An **Automation** is a reusable definition that\ncreates runs when an event matches.\n\nManual and automated work use the same kind of live session. You can join a run\nwhen it needs help rather than wait for a black-box job to finish.\n\n### Let events start the work\n\nAutomations turn recurring or incoming work into sessions you can join,\nsupervise, and review. An agent picks the task up on your machine and posts\nback a preview link or a pull request, so you try the result where the task\nlives and reply in the same session. Choose the repository, machine, agent,\nmodel, approval mode, sandbox setting, and maximum attempts.\n\n| Trigger | Example workflow |\n|---|---|\n| **GitHub issues and mentions** | Label an issue `bivy` or `bivy/<machine>`, or mention your Bivy GitHub App, to work toward a pull request. |\n| **Failed CI** | Match a failed workflow, ask the agent to reproduce it, make a fix, and run the affected checks. |\n| **Linear** | Label an issue to start work without copying its description into an agent. |\n| **Slack** | Send a request from the conversation where the work came up. |\n| **Schedules** | Run a weekly dependency review, recurring maintenance, or a one-time task. |\n| **Signed webhooks** | Connect alerts, internal tools, or your own event sources. |\n\nConfigure automations in the app or version them with your repository in\n`.bivy/automations.yaml`:\n\n```bash\nbivy automation init\n# Edit the generated definition for your repository and workflow.\nbivy automation validate\nbivy automation test --event .bivy/events/failed-ci.yaml # supply a local event fixture\nbivy automation apply\n```\n\nOr delegate a one-off job without creating an automation:\n\n```bash\nbivy runs start \"Review outdated dependencies and propose a small, tested update.\"\nbivy runs wait <id>\n```\n\nRuns keep routing and lifecycle evidence, check results, and output references\nin a reviewable Receipt. For unattended issue work, Bivy runs declared repository\nchecks after the agent's turn; failed required checks fail the run even if the\nagent reports success. A completed process alone is not proof that the task\nsucceeded.\n\n[Automation recipes →](docs/capability-recipes.md#let-events-start-runs) ·\n[Automations as code →](docs/automations-as-code.md) ·\n[Run outcomes and reliability limits →](docs/automation-runs.md)\n\n### Use every agent you pay for. Switch mid-task.\n\nRun Claude Code for one task, Codex for another, and Pi or OpenCode where they\nfit, side by side in one session list. Bivy supplies the shared session,\nremote-access, automation, and review surfaces; your chosen agent still does\nthe coding and uses your model provider.\n\n- **Hit a usage limit? Keep going.** When a turn fails on a limit, fork the\n session, with its code and conversation, to another agent and model, or let\n Bivy retry when the limit resets (the provider has to report a reset time).\n- **Get a second opinion.** `bivy delegate` hands a task to another agent, on\n the same machine or a different one, and brings back its answer, branch, and\n PR. `--to codex,claude@linux` sends one task to several agents to compare.\n- Choose an agent and, where supported, a model for each session or run.\n- Import existing Claude Code and Codex sessions.\n- Fork or move work to another agent or machine when a different setup fits\n better. Continuation fidelity varies: some paths preserve native history,\n while others replay portable turns or hand over a summary with the earlier\n transcript as a local file.\n- Use agent-native logins, Bivy-managed credentials, or local inference.\n Bivy's custom OpenAI-compatible endpoint registry currently feeds Pi;\n other agents may need their own provider configuration.\n- Register your own ACP or headless process agent with `bivy agent add`.\n\nBivy does not replace your agent, provide model inference, or make every agent's\nfeatures identical. Consult the [support matrix](docs/runtime-support-matrix.md)\nand [handoff recipes](docs/capability-recipes.md#fork-or-move-a-session).\n\n### Less signing in. Less copying secrets.\n\nBivy syncs **Bivy-managed API keys and supported OAuth credentials** across\nenrolled machines for compatible runtimes. Connect supported credentials once\nand reuse them where you run work, rather than manually distributing keys to\neach machine.\n\nFor ordinary account sync, credentials are encrypted on the node before upload.\nThe control plane stores ciphertext and wrapped-key metadata; enrolled nodes\nshare access by wrapping the vault key to one another. Bivy Cloud does not\nreceive plaintext credentials through this sync path.\n\nYou can also keep credentials local, use labeled keys and project presets, or\nreference environment variables and 1Password instead of embedding secrets in\nconfiguration:\n\n```bash\nbivy provider login\nbivy credentials add anthropic work\nbivy secrets ref github.repo-token op://Bivy/GitHub/repo-token\n```\n\n**Not every CLI login syncs.** Native agent logins may still be per-machine;\nGitHub App private-key sync is separately opt-in. If you lose every node and\ndevice able to unwrap a vault, you must sign in to providers again. Explicit\nhosted-provisioning custody grants are separate from ordinary encrypted sync.\n\n[Credential sync and runtime coverage →](docs/credential-sync.md) ·\n[Credentials guide →](docs/credentials-guide.md) ·\n[Key storage →](docs/key-management.md)\n\n### Work in the environment you already have\n\nA clean cloud sandbox isn't always enough. Your agent may need the database\nrunning on localhost, an uncommitted change, an internal API behind your VPN,\nor a model running on your GPU. Bivy runs the agent where those things already\nexist, subject to that machine's permissions and the runtime's protection.\n\nConnect several machines to the same account: a laptop for interactive work,\na Linux server for background jobs, or a GPU box for local inference. Choose\nthe machine for each session or pin it in an automation. Repository runs can\nuse isolated Git worktrees without rebuilding the whole development environment.\n\n**The execution machine must stay awake and online.** To close your laptop and\nleave work running, run the agent on a different, always-on machine.\n\n[Environment and multi-machine recipes →](docs/capability-recipes.md)\n\n### Start at your desk. Continue anywhere.\n\nOpen the same session in the browser, phone PWA, or terminal. Watch work live,\nanswer questions, approve supported tool calls, or stop the agent.\n\n- Send screenshots, images, logs, and other files from your phone.\n- Download reports and artifacts the agent creates.\n- Open [session apps](docs/apps.md) from chat or the **Apps** menu: live web\n previews, desktop app views, and CLI/TUI tools. Agents can publish views with\n `bivy app publish bivy.app.json` and create share links with `bivy app share`.\n- Use voice input and read-aloud where supported; provider-backed voice may\n send audio or text to the selected provider.\n- Keep a native terminal workflow or use structured chat, depending on the agent.\n\n```bash\nbivy run claude --no-follow # start without attaching\nbivy open # open the web app\nbivy resume # return to the session in your terminal\nbivy link # pair a device directly via QR\n```\n\nNo phone app installation is required. Open [app.bivy.sh](https://app.bivy.sh)\nin your browser; adding it to your home screen is optional.\n\n[Remote access →](docs/remote-access.md) ·\n[Voice, files, and terminal recipes →](docs/capability-recipes.md)\n\n### Agents can reach you, too\n\nEvery session gets the `bivy` CLI, so any agent with a shell can talk back\nthrough the app, not only agents with their own built-in tools:\n\n```bash\nbivy notify \"Tests are green, PR is up\" # chat card + phone push when you're away\nbivy ask \"Ship to staging?\" --option Yes --option No # waits for your answer\nbivy attach report.png --caption \"Before/after\" # show a file in the chat\nbivy suggest \"Add a dark theme to settings\" # a next task you start in one tap\nbivy context --json # session, workspace, machine, apps\n```\n\n`bivy help --json` lists every command, and with `BIVY_OUTPUT=json` failures\ncome back as structured errors with distinct exit codes, so an agent can tell\nwhat went wrong and what to run next. `bivy guide` prints short playbooks for\nagents, and the same commands are served as MCP tools for agents that prefer\nthem. Add your own standing instructions for\nevery session in **Settings → Agent instructions**.\n\n[Commands for agents inside a session →](docs/cli-reference.md#inside-an-agent-session) ·\n[Agent instructions →](docs/agent-instructions.md)\n\n## Get started\n\n### Install\n\nBivy supports **macOS and Linux with Node.js 20+**. The installer installs the\n`@bivy/bivy` package, runs guided setup, and starts a launchd or systemd service:\n\n```bash\ncurl -fsSL https://bivy.sh/install.sh | bash\n```\n\nSetup helps you choose an agent and configure remote access. Existing agents\nkeep their command, login, and configuration. The installer may use `sudo` to\ninstall a missing Node.js, but never for `npm install`. To inspect it first,\ndownload it with `curl -fsSL https://bivy.sh/install.sh -o install.sh`.\n\nAlready have Node.js and want to avoid sudo?\n\n```bash\nnpm install -g @bivy/bivy\nbivy setup\n```\n\nThen try one small task:\n\n```bash\ncd your-repo\nbivy run claude\n# Ask: \"Explain this repo and make one small, safe improvement. Run the relevant checks.\"\nbivy open\n```\n\nOpen that same session on your phone while it runs. For a web app, ask the agent\nto start its dev server, then open **Apps → Running in this workspace → Preview**.\nTry a page, point to something you'd change, and send the feedback back to the\nagent. No separate preview deployment needed.\n\nOnce that works, share a preview for review, connect another machine, or add\nyour first automation.\n\n**Local-only works too.** `bivy run`, `bivy resume`, and `bivy sessions` need no\naccount or server. Choose **local only for now** during setup; use `bivy login`\nlater. Browser and phone access need a hosted or self-hosted control plane;\nthe node itself does not serve a web UI.\n\n[Full quickstart →](docs/quickstart.md) ·\n[Installer options, service management, and uninstall →](docs/install.md)\n\n### Choose hosted or self-hosted\n\n| Option | What you get |\n|---|---|\n| **Free Cloud — $0** | Every launch feature, including automations; 10 new remote sessions per rolling seven days. No credit card required. |\n| **Cloud — $15/month** | The same features with unlimited remote sessions. |\n| **Self-hosted Core** | Operate the app, control plane, and relay yourself, with no Bivy usage limits. |\n\nManual and automated sessions share the Cloud allowance. Resuming existing\nsessions and viewing history do not consume it. Agent subscriptions and model\nprovider charges are separate. See [current pricing](https://bivy.sh#pricing).\n\n**Self-host anywhere:** deploy the public control-plane (including the web app)\nand relay images with Postgres and [a small set of environment variables](docs/deploy-images.md).\nYour server or container platform handles HTTPS. Set up owner access in the\nbrowser—no SSH, external authentication provider, or Bivy Cloud account required.\nFor a bare VPS, the [Compose installer](docs/self-host-quickstart.md) automates the\nsame stack. These onboarding features require a release containing them.\n\nStart on Cloud and self-host later if you prefer. Deploy the stack, reconnect\nmachines with `bivy relay:setup`, and pair devices to your server. This is not a\none-click migration of your Cloud account; your local repos and agent\nconfiguration stay in place.\n\n```bash\nbivy relay:setup \\\n --control-plane https://bivy.example.com \\\n --relay wss://relay.example.com\n```\n\nSelf-hosting is community-supported: you own TLS, backups, upgrades, and\nhardening. Public multi-architecture images are available as\n`ghcr.io/bivysh/bivy-control-plane` and `ghcr.io/bivysh/bivy-relay`; pin a release\nversion or full commit SHA.\n\n[Deploy the images anywhere →](docs/deploy-images.md) ·\n[Optional VPS installer →](docs/self-host-quickstart.md) ·\n[Operations reference →](docs/self-host.md)\n\n## Architecture\n\nYour environment, with clear security boundaries:\n\n```text\nYour machine Hosted or self-hosted\n┌──────────────────────┐ ┌──────────────────────┐\n│ Node daemon │──outbound──▶│ Relay │\n│ Agents, repos, tools │ │ Encrypted frames │\n│ Local credentials │ └──────────┬───────────┘\n└──────────────────────┘ │\n Browser / phone\n + control plane\n (app, accounts, metadata)\n```\n\n- **Execution stays on your machine.** Bivy Cloud does not run your agents.\n Your model provider still sees whatever the agent sends it.\n- **Interactive session traffic is end-to-end encrypted** between the node and\n paired devices. The relay forwards opaque session frames; your node dials out,\n so no inbound public port is required.\n- **App previews have a separate security boundary.** Preview traffic uses HTTPS\n and an outbound tunnel, not session E2E encryption. The preview ingress/relay\n operator can see it. Public preview links grant anyone holding them access to\n that view and its live backend until expiry or revocation. See\n [preview security and sharing](docs/apps.md#runtime-and-security-boundaries).\n- **Ordinary credential sync uploads ciphertext, not plaintext keys.**\n Supported credentials and recovery limits are documented separately.\n- **Encryption is not universal across integrations.** Slack commands and\n generic webhook instructions reach the control plane in plaintext. Do not\n put secrets in them. Routing and bounded run metadata are also visible there.\n- **Device authorization matters.** QR pairing authorizes a device directly\n through the node. Hosted account pairing trusts the control plane to authorize\n devices and serve the web app that holds client keys.\n- **Bivy is not an OS-level sandbox.** The default approval mode is\n `autonomous`; protection depends on the runtime. Some agents enforce sandbox\n tiers, while process agents may run with your full user permissions.\n Heuristic tool checks help prevent accidents but are not isolation.\n\nReview the runtime's Protection label and configure approval/sandbox settings\nfor the task, especially before enabling unattended work.\n\n[Security model and known limitations →](docs/security-model.md) ·\n[Runtime protection matrix →](docs/runtime-support-matrix.md) ·\n[Configuration →](docs/configuration.md)\n\n## Agents and everyday commands\n\n**Claude Code, Codex, Pi, OpenCode, and Grok are release-tested.** Additional\nadapters include Gemini CLI, Qwen Code, Goose, Aider, Cline, Crush, Cursor, GitHub\nCopilot, Amp, Auggie, Droid, Continue, Kilo Code, and Rovo Dev. Installation,\nresume, model selection, and tool protection vary—see the\n[support matrix](docs/runtime-support-matrix.md) and [agent guides](docs/agents/README.md).\n\nRun an arbitrary command with `bivy run -- ./your-agent --flags`, register a\nreusable entry with `bivy agent add`, or package a declarative integration with\nexperimental [plugins](docs/plugins.md).\n\n```bash\nbivy run claude # launch a durable session; also codex, pi, opencode\nbivy sessions # list live and saved sessions\nbivy resume # resume the most recent session\nbivy open # open the web app (requires remote setup)\nbivy nodes # list connected account machines\nbivy runs list # inspect delegated work\nbivy automation init # scaffold repo-owned automations\nbivy provider login # connect supported model credentials\nbivy agent add # register an ACP or process agent\nbivy doctor # check installation and connectivity\nbivy logs -f # follow node logs\nbivy update # update and restart the service\n```\n\n`bivy update` uses your original installation method and waits for an active\nturn to finish before restarting. Use `--force` to skip that wait.\n\n[CLI reference →](docs/cli-reference.md) ·\n[Node and project configuration →](docs/config-as-code.md) ·\n[GitHub setup →](docs/github-setup.md) ·\n[Linear setup →](docs/linear-work-queue.md)\n\n## Development and contributions\n\n```bash\npnpm install\npnpm run dev # node daemon on http://localhost:4317\npnpm run dev:web # web client dev server\n```\n\n| Directory | Contents |\n|---|---|\n| `src/`, `bin/` | Node daemon, CLI, runtime adapters, sessions, approvals, secrets |\n| `packages/core/` | Shared protocol, pairing, and wire format |\n| `packages/web/`, `packages/ui/` | React PWA and shared design system |\n| `services/relay/` | Self-hostable encrypted relay |\n| `services/control-plane/` | Self-hostable control plane |\n| `deploy/` | Deployment examples |\n\n```bash\npnpm run typecheck\npnpm run typecheck:web\npnpm run lint\npnpm run test:unit\npnpm run test:core\npnpm run check:licenses\npnpm run check:secrets\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for the development workflow. Releases\nare published from CI with provenance attestations; see\n[release verification](docs/releasing.md).\n\n**Found a security issue?** Use\n[GitHub private vulnerability reporting](https://github.com/bivysh/bivy/security/advisories/new),\nnot a public issue. See [SECURITY.md](SECURITY.md).\n\n### In development—not available at launch\n\nAutomatically provisioned, short-lived **ephemeral machines** are in development\nfor hosted and bring-your-own-cloud deployments. Neither path is ready or\nsupported for this launch. Use an existing computer or server you operate.\nExperimental provisioning has different credential-custody and encryption\nboundaries; see the [provisioning trust model](docs/hosted-provisioning-trust-model.md).\n\n## License\n\nEverything in this repository—node, CLI, web/PWA, relay, and control plane—is\nfree and open-source **AGPL-3.0-only Core**, with no Bivy usage limits. You may\nuse, modify, and self-host it under that license. If users interact with your\nmodified version over a network, section 13 requires you to offer its\ncorresponding source. See [LICENSE](LICENSE).\n\nBivy Cloud is the hosted operation of that stack plus billing and plans, in a\nseparate private repository. Contributions use the\n[DCO](CONTRIBUTING.md#certificate-of-origin); there is no CLA.\n",
|
|
69
69
|
"readmeFilename": "README.md",
|
|
70
70
|
"agentBridges": {
|
|
71
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
72
|
-
"@earendil-works/pi-ai": "0.99.
|
|
73
|
-
"@earendil-works/pi-coding-agent": "0.99.
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.286",
|
|
72
|
+
"@earendil-works/pi-ai": "0.99.2",
|
|
73
|
+
"@earendil-works/pi-coding-agent": "0.99.2"
|
|
74
74
|
}
|
|
75
75
|
}
|