@bivy/bivy 0.20.8 → 0.20.9-staging.10
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/README.md +6 -5
- package/bin/bivy.mjs +13 -56
- package/bin/cli-commands.mjs +2 -4
- package/bin/guides/talk-to-the-user.md +13 -24
- package/dist/agent-instructions.js +4 -10
- package/dist/agents/pi/integration.js +1 -1
- package/dist/apps/styles.css +14 -47
- package/dist/certification/generated.js +1 -1
- package/dist/ephemeral-teardown.js +11 -1
- package/dist/exec.js +4 -1
- package/dist/server.js +10 -52
- package/dist/session/event-log.js +15 -18
- package/dist/session/inline-image-fetch.js +1 -3
- package/dist/session/session-tokens.js +1 -1
- package/package.json +6 -6
- package/web/assets/AutomationsView-CqKikjyc.js +51 -0
- package/web/assets/{ChangesCard-CPnPUh6N.js → ChangesCard-C6LeCjVH.js} +1 -1
- package/web/assets/{LibraryView-CbEXd0eI.js → LibraryView-BR9OMhze.js} +1 -1
- package/web/assets/{ProviderConnect-CoqAK5Wk.js → ProviderConnect-CKYP_-dW.js} +1 -1
- package/web/assets/Settings-D9myJbO-.js +10 -0
- package/web/assets/{Sheet-DDK1zw1r.js → Sheet-CL3dk1Sa.js} +1 -1
- package/web/assets/{Terminal-1RXw5d-8.js → Terminal-DuzTWmq_.js} +1 -1
- package/web/assets/{VoiceSettings-XKgK-rHp.js → VoiceSettings-C5xiXXg-.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-mGY2XgpR.js → abnfDiagram-VCTEODGH-CiuYisMe.js} +1 -1
- package/web/assets/architecture-7GRP2DOG-CmGiKLJd.js +1 -0
- package/web/assets/{architectureDiagram-5GKGNRK7-iODllUCA.js → architectureDiagram-5GKGNRK7-DQEZKeJf.js} +1 -1
- package/web/assets/{blockDiagram-I7D4REHJ-Ge7J4mPm.js → blockDiagram-I7D4REHJ-BXifaI4s.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-f-kX3zo7.js → c4Diagram-7LVT6UL2-BUI1_QJ6.js} +1 -1
- package/web/assets/channel-GfgWPXVn.js +1 -0
- package/web/assets/{chunk-4HAMMTFA-DgLlEu-R.js → chunk-4HAMMTFA-CAqAnSt0.js} +1 -1
- package/web/assets/{chunk-75Z2AOVW-Dml242zI.js → chunk-75Z2AOVW-CmAfksq6.js} +1 -1
- package/web/assets/{chunk-DU6HZSFF-DHGHAQj_.js → chunk-DU6HZSFF-CBn3E1kV.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-DYJWgQwW.js → chunk-F27PBJKO-Cqca621p.js} +1 -1
- package/web/assets/{chunk-GMAD6QVW-Be6XrE8S.js → chunk-GMAD6QVW-DuNHDMjw.js} +1 -1
- package/web/assets/{chunk-GVQU2GXP-CrJtrbng.js → chunk-GVQU2GXP-DadmdXvU.js} +1 -1
- package/web/assets/{chunk-IMKFNOWR-BNoFxzwg.js → chunk-IMKFNOWR-D7xvXSnw.js} +1 -1
- package/web/assets/{chunk-L3NEJ4N5-8rFD5H7o.js → chunk-L3NEJ4N5-Drxtq2Z1.js} +1 -1
- package/web/assets/{chunk-OSK3NFVY-Df7-4Mnn.js → chunk-OSK3NFVY-UWX78yLv.js} +1 -1
- package/web/assets/{chunk-P2QGCYS3-rHBlhB9b.js → chunk-P2QGCYS3-D6hNBxaT.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-TtIAtZss.js → chunk-POPQ4Y6H-CmUjfAOD.js} +1 -1
- package/web/assets/{chunk-PWAF6VOD-CkwX1I_u.js → chunk-PWAF6VOD-CTJIWOj-.js} +1 -1
- package/web/assets/{chunk-SHT3W25Y-QK-L20Uq.js → chunk-SHT3W25Y-CIPO0-2c.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-r_Z2GtSi.js → chunk-SVP7TREG-DkeeA16U.js} +1 -1
- package/web/assets/{chunk-TICWLB2K-CUKfLR5q.js → chunk-TICWLB2K-CCCgUMTk.js} +1 -1
- package/web/assets/classDiagram-ZZMXUADV-AnSFdiZo.js +1 -0
- package/web/assets/classDiagram-v2-VYDZK3BY-AnSFdiZo.js +1 -0
- package/web/assets/{cynefin-OW5HDTMX-Dt3Y2U_d.js → cynefin-OW5HDTMX-lsnbNwYx.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-Y5k7qfOG.js → cynefinDiagram-5FMLGOSQ-CmT6IHRO.js} +1 -1
- package/web/assets/{dagre-GXQ25YYZ-D6uSyP7i.js → dagre-GXQ25YYZ-CaVNKxQq.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-cy3iJG3K.js → diagram-S7CK7UJ4-DOPXiiOU.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-D-Dujcue.js → diagram-UQ7AKVKN-Bxe6jYPE.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-BmI9Opjx.js → diagram-VSXAHHWV-D2IPWUER.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-Ca81_y4A.js → diagram-VX7I27RA-DPA8OR7z.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-BBMq_KK4.js → diagram-Z3DM3KII-qlgZN9mg.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-Bc-yp1-u.js → ebnfDiagram-PWID7BFC-BG3oYfMg.js} +1 -1
- package/web/assets/{erDiagram-RLTQ6QDP-C4not1_u.js → erDiagram-RLTQ6QDP-39wsY2SV.js} +1 -1
- package/web/assets/eventmodeling-NTZA5JFV-COSR-_D4.js +1 -0
- package/web/assets/flowDiagram-HODETNUW-Bv4slDx7.js +1 -0
- package/web/assets/{ganttDiagram-EL5Y4UJY-eOqP4w8u.js → ganttDiagram-EL5Y4UJY-9m79cMnC.js} +1 -1
- package/web/assets/{gitGraph-4MIJSDKK-CNyrdfwo.js → gitGraph-4MIJSDKK-B5lfxsxx.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-DWlo-lrH.js → gitGraphDiagram-WWUBYQGX-DWl1V9gk.js} +1 -1
- package/web/assets/{index-C1fVIjSt.js → index-DKaLVMgX.js} +2 -2
- package/web/assets/index-DZb12uRj.css +1 -0
- package/web/assets/{info-A6RAGUB7-CUQ_micy.js → info-A6RAGUB7-CVPplCTQ.js} +1 -1
- package/web/assets/{infoDiagram-27XIBGKW-BGpJ5FNT.js → infoDiagram-27XIBGKW-B-yaJrP2.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-BPHiUQm6.js → ishikawaDiagram-5VMMS53U-DtJ480L8.js} +1 -1
- package/web/assets/{journeyDiagram-3NMN7TZE-B4LBaWaP.js → journeyDiagram-3NMN7TZE-CsvTgPXC.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-DNVvNHrT.js → kanban-definition-UXKFOSKX-CqTcD1hf.js} +1 -1
- package/web/assets/{line-DEBH51YO.js → line-D2guJ01j.js} +1 -1
- package/web/assets/{mermaid-parser.core-DKGY5TTe.js → mermaid-parser.core-NJMkrhfu.js} +3 -3
- package/web/assets/{mermaid.core-SY5t-W54.js → mermaid.core-D-4da6CZ.js} +4 -4
- package/web/assets/{mindmap-definition-YA3MSWOX-DNzu0vrE.js → mindmap-definition-YA3MSWOX-CsHyNaAw.js} +1 -1
- package/web/assets/mount-DAtUokCH.js +31 -0
- package/web/assets/{packet-AYTQ26CC-BFmJxIPS.js → packet-AYTQ26CC-CXMWsuib.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-Cg4XSQXq.js → pegDiagram-XKGWAZYB-ByQqRbph.js} +1 -1
- package/web/assets/{pie-WAS4IAKB-BjugvaCZ.js → pie-WAS4IAKB-eRy6tqdo.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-CZUoS4VP.js → pieDiagram-E7YTZNPT-D9CMUNwI.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-Dt2ha5S3.js → quadrantDiagram-AXDQQJYC-BqrSq-tU.js} +1 -1
- package/web/assets/{radar-RG4KPBEZ-wvkY1jFj.js → radar-RG4KPBEZ-BASdVQAe.js} +1 -1
- package/web/assets/{railroad-74A4TZTK-C0urSGwW.js → railroad-74A4TZTK-MbyNUFW2.js} +1 -1
- package/web/assets/railroad-abnf-HS5TGJTU-DzZc8bRA.js +1 -0
- package/web/assets/railroad-ebnf-LZEXJU2U-d86-7YjJ.js +1 -0
- package/web/assets/railroad-peg-WCYAUIDC-yBlZPQK8.js +1 -0
- package/web/assets/{railroadDiagram-O6MQD6OU-CMPDMFEF.js → railroadDiagram-O6MQD6OU-CPhS-1_c.js} +1 -1
- package/web/assets/{requirementDiagram-BXWQKSXE-CgG1fTgc.js → requirementDiagram-BXWQKSXE-CtX1iQsg.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-CqQc0C6b.js → sankeyDiagram-P5KCCOFB-BBSZVi3s.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-CCar7eyP.js → sequenceDiagram-WJ2MYXX4-Zwj2R6Ua.js} +1 -1
- package/web/assets/{settingsRoute-D75Kl5qJ.js → settingsRoute-DYF97n3g.js} +1 -1
- package/web/assets/{stateDiagram-D77RDMKH-hZdV5Olo.js → stateDiagram-D77RDMKH-DTB9F1f2.js} +1 -1
- package/web/assets/stateDiagram-v2-MP3YSRHH-BlWD3kYd.js +1 -0
- package/web/assets/{swimlanes-42K2YHIH-BOjTGDck.js → swimlanes-42K2YHIH-Bf5m1Adz.js} +1 -1
- package/web/assets/swimlanesDiagram-VR7AAH4N-B4wYjUsJ.js +8 -0
- package/web/assets/{timeline-definition-24CTP7MA-EQ9J2i8-.js → timeline-definition-24CTP7MA-CehYDFxs.js} +1 -1
- package/web/assets/{treeView-Q6P3EWNA-C_5CbmSf.js → treeView-Q6P3EWNA-CQmjQcQJ.js} +1 -1
- package/web/assets/{treemap-WGGIJYW6-C37qSFRc.js → treemap-WGGIJYW6-DMV5jymC.js} +1 -1
- package/web/assets/useStore-DrZiS5P_.js +22 -0
- package/web/assets/{vennDiagram-4TSXK5OY-Dz_rYEly.js → vennDiagram-4TSXK5OY-CJGwwuUA.js} +1 -1
- package/web/assets/{wardley-WFR3VGLG-ByC5Xl0N.js → wardley-WFR3VGLG-S6KEgq1P.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-ZORHthei.js → wardleyDiagram-VM6X3IG4-B1eaMBr1.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-BsEewrR8.js → xychartDiagram-S5SC5T6Z-C5emgjT-.js} +1 -1
- package/web/index.html +2 -2
- package/web/sw.js +1 -1
- package/dist/ephemeral-exec.js +0 -108
- package/dist/session/suggestions.js +0 -17
- package/web/assets/AutomationsView-CI8mce5b.js +0 -51
- package/web/assets/Settings-DzwwvcJY.js +0 -10
- package/web/assets/architecture-7GRP2DOG-iTGIo6ed.js +0 -1
- package/web/assets/channel-CZ9L6iYi.js +0 -1
- package/web/assets/classDiagram-ZZMXUADV-D_pQOsdw.js +0 -1
- package/web/assets/classDiagram-v2-VYDZK3BY-D_pQOsdw.js +0 -1
- package/web/assets/eventmodeling-NTZA5JFV-kTJMsPPZ.js +0 -1
- package/web/assets/flowDiagram-HODETNUW-BKXsEnEc.js +0 -1
- package/web/assets/index-D76QD5dl.css +0 -1
- package/web/assets/mount-BAMZ2poC.js +0 -33
- package/web/assets/railroad-abnf-HS5TGJTU-D3fB8KBr.js +0 -1
- package/web/assets/railroad-ebnf-LZEXJU2U-DxtPt5hF.js +0 -1
- package/web/assets/railroad-peg-WCYAUIDC-DSr1P8IJ.js +0 -1
- package/web/assets/stateDiagram-v2-MP3YSRHH-DSUfNYnq.js +0 -1
- package/web/assets/swimlanesDiagram-VR7AAH4N-6bUIqkAR.js +0 -8
- package/web/assets/useStore-BjrbW265.js +0 -29
|
@@ -31,7 +31,6 @@ import path from "node:path";
|
|
|
31
31
|
import { normalizedIntermediateText, thinkingTextFromContent, mergeTranscript } from "./transcript-merge.js";
|
|
32
32
|
import { DELEGATION_BLOCK, isDelegationCard } from "./delegations.js";
|
|
33
33
|
import { APP_PIN_BLOCK, APP_PUBLICATION_BLOCK, APP_REVIEW_BLOCK, isAppPin, isAppReference, isAppReview } from "../apps/types.js";
|
|
34
|
-
import { SUGGESTION_BLOCK, isTaskSuggestion } from "./suggestions.js";
|
|
35
34
|
import { NOTICE_BLOCK, isAgentNotice } from "./notices.js";
|
|
36
35
|
/**
|
|
37
36
|
* Decompose a transcript message into serialization-independent "atoms": the
|
|
@@ -55,6 +54,12 @@ export function messageContentAtoms(message) {
|
|
|
55
54
|
if (text)
|
|
56
55
|
texts.push(`${role}#${text}`);
|
|
57
56
|
};
|
|
57
|
+
// Pi-shaped results carry their call id on the message (`role: "toolResult"`),
|
|
58
|
+
// not in a block. Without it a result's only atom was its text, so a second
|
|
59
|
+
// "(no output)" read as already logged and was dropped from the base.
|
|
60
|
+
const resultId = message.toolCallId;
|
|
61
|
+
if (typeof resultId === "string" && resultId)
|
|
62
|
+
toolIds.push(`tr:${resultId}`);
|
|
58
63
|
if (typeof content === "string") {
|
|
59
64
|
pushText(content);
|
|
60
65
|
return { toolIds, texts };
|
|
@@ -65,7 +70,7 @@ export function messageContentAtoms(message) {
|
|
|
65
70
|
continue;
|
|
66
71
|
const b = block;
|
|
67
72
|
const type = String(b.type || "");
|
|
68
|
-
if (type === "tool_use" && b.id)
|
|
73
|
+
if ((type === "tool_use" || type === "toolCall") && b.id)
|
|
69
74
|
toolIds.push(`tu:${String(b.id)}`);
|
|
70
75
|
else if (type === "tool_result") {
|
|
71
76
|
const id = b.tool_use_id ?? b.toolUseId;
|
|
@@ -100,6 +105,12 @@ export function messageContentAtoms(message) {
|
|
|
100
105
|
export function mergeBases(logged, runtime) {
|
|
101
106
|
if (!logged.length)
|
|
102
107
|
return runtime;
|
|
108
|
+
// A runtime that still holds every logged message verbatim is the complete,
|
|
109
|
+
// correctly ordered record. Taking it whole also repairs a base an earlier
|
|
110
|
+
// merge left out of order.
|
|
111
|
+
const runtimeKeys = new Set(runtime.map((m) => JSON.stringify(m)));
|
|
112
|
+
if (logged.every((m) => runtimeKeys.has(JSON.stringify(m))))
|
|
113
|
+
return runtime;
|
|
103
114
|
// Streaming runtimes can refine a message in place after an early completion
|
|
104
115
|
// boundary. Match those revisions by provider message id, or by the timestamp
|
|
105
116
|
// and role Bivy assigned when the message was first stored. Without this, each
|
|
@@ -321,12 +332,6 @@ function isAppPublication(value) {
|
|
|
321
332
|
const entry = value;
|
|
322
333
|
return entry.bivyKind === "app-publication" && typeof entry.id === "string" && typeof entry.createdAt === "number" && typeof entry.afterMessageCount === "number" && isAppReference(entry.app);
|
|
323
334
|
}
|
|
324
|
-
function isSuggestionEntry(value) {
|
|
325
|
-
if (!value || typeof value !== "object")
|
|
326
|
-
return false;
|
|
327
|
-
const entry = value;
|
|
328
|
-
return entry.bivyKind === "suggestion" && typeof entry.id === "string" && typeof entry.createdAt === "number" && typeof entry.afterMessageCount === "number" && isTaskSuggestion(entry.suggestion);
|
|
329
|
-
}
|
|
330
335
|
function isNoticeEntry(value) {
|
|
331
336
|
if (!value || typeof value !== "object")
|
|
332
337
|
return false;
|
|
@@ -352,7 +357,7 @@ function isAppPinEntry(value) {
|
|
|
352
357
|
return entry.bivyKind === "app-pin" && typeof entry.id === "string" && typeof entry.createdAt === "number" && typeof entry.afterMessageCount === "number" && isAppPin(entry.pin);
|
|
353
358
|
}
|
|
354
359
|
function isRecord(value) {
|
|
355
|
-
return isDelegationEntry(value) || isOverlay(value) || isBase(value) || isForkDisplay(value) || isAttachment(value) || isOutboundAttachment(value) || isInlineImage(value) || isAppPublication(value) || isAppReviewEntry(value) || isAppPinEntry(value) ||
|
|
360
|
+
return isDelegationEntry(value) || isOverlay(value) || isBase(value) || isForkDisplay(value) || isAttachment(value) || isOutboundAttachment(value) || isInlineImage(value) || isAppPublication(value) || isAppReviewEntry(value) || isAppPinEntry(value) || isNoticeEntry(value);
|
|
356
361
|
}
|
|
357
362
|
/**
|
|
358
363
|
* Fold attachment records into a text→refs list: last write wins per text (a
|
|
@@ -495,15 +500,11 @@ export function replayExtras(entries) {
|
|
|
495
500
|
role: "assistant", content: [{ type: DELEGATION_BLOCK, delegation: entry.delegation }],
|
|
496
501
|
id: `delegation-${entry.id}`, afterMessageCount: entry.afterMessageCount, createdAt: entry.createdAt,
|
|
497
502
|
}));
|
|
498
|
-
const suggestions = entries.filter((entry) => entry.bivyKind === "suggestion").map((entry) => ({
|
|
499
|
-
role: "assistant", content: [{ type: SUGGESTION_BLOCK, suggestion: entry.suggestion }],
|
|
500
|
-
id: entry.id, afterMessageCount: entry.afterMessageCount, createdAt: entry.createdAt,
|
|
501
|
-
}));
|
|
502
503
|
const notices = entries.filter((entry) => entry.bivyKind === "notice").map((entry) => ({
|
|
503
504
|
role: "assistant", content: [{ type: NOTICE_BLOCK, notice: entry.notice }],
|
|
504
505
|
id: entry.id, afterMessageCount: entry.afterMessageCount, createdAt: entry.createdAt,
|
|
505
506
|
}));
|
|
506
|
-
return [...foldIntermediate(intermediate), ...foldTool(tool), ...replayOutboundAttachments(entries), ...publications, ...cards, ...pinCards, ...delegationCards, ...
|
|
507
|
+
return [...foldIntermediate(intermediate), ...foldTool(tool), ...replayOutboundAttachments(entries), ...publications, ...cards, ...pinCards, ...delegationCards, ...notices];
|
|
507
508
|
}
|
|
508
509
|
/**
|
|
509
510
|
* Fold the outbound (agent-sent) attachment records into time-anchored synthetic
|
|
@@ -820,10 +821,6 @@ export class EventLog {
|
|
|
820
821
|
this.load(id);
|
|
821
822
|
this.enqueue(id, `pin:${entry.pin.id}`, { bivyKind: "app-pin", createdAt: entry.createdAt ?? Date.now(), afterMessageCount: entry.afterMessageCount, id: entry.pin.id, pin: structuredClone(entry.pin) });
|
|
822
823
|
}
|
|
823
|
-
appendSuggestion(id, entry) {
|
|
824
|
-
this.load(id);
|
|
825
|
-
this.enqueue(id, `suggestion:${entry.suggestion.id}`, { bivyKind: "suggestion", createdAt: Date.now(), afterMessageCount: entry.afterMessageCount, id: entry.suggestion.id, suggestion: { ...entry.suggestion } });
|
|
826
|
-
}
|
|
827
824
|
appendNotice(id, entry) {
|
|
828
825
|
this.load(id);
|
|
829
826
|
this.enqueue(id, `notice:${entry.notice.id}`, { bivyKind: "notice", createdAt: Date.now(), afterMessageCount: entry.afterMessageCount, id: entry.notice.id, notice: { ...entry.notice } });
|
|
@@ -22,9 +22,7 @@ import { sanitizeAttachmentName, sniffMime } from "./attach-to-chat.js";
|
|
|
22
22
|
* in `inline()` in packages/core/src/markdown.ts exactly. Not a shared import: the
|
|
23
23
|
* node (src/) intentionally does not depend on @bivy/core (a browser/client
|
|
24
24
|
* package — see packages/core's own description). Kept in lock-step by comment
|
|
25
|
-
* instead
|
|
26
|
-
* src/ephemeral-exec.ts for its cross-copy host allowlist. If you change one,
|
|
27
|
-
* change the other.
|
|
25
|
+
* instead: if you change one, change the other.
|
|
28
26
|
*/
|
|
29
27
|
const INLINE_IMAGE_MD_RE = /!\[[^\]]*\]\((https:\/\/[^)\s]+)\)/g;
|
|
30
28
|
/** Bound how many distinct remote images a single message can trigger a fetch
|
|
@@ -44,7 +44,7 @@ export function createSessionTokenCodec(key = randomBytes(32)) {
|
|
|
44
44
|
*/
|
|
45
45
|
export const SESSION_TOKEN_ROUTES = [
|
|
46
46
|
{ method: "GET", path: /^\/api\/session\/([^/]+)\/context$/, session: "path" },
|
|
47
|
-
{ method: "POST", path: /^\/api\/session\/([^/]+)\/(attach|
|
|
47
|
+
{ method: "POST", path: /^\/api\/session\/([^/]+)\/(attach|notify|title)$/, session: "path" },
|
|
48
48
|
{ method: "POST", path: /^\/api\/session\/([^/]+)\/ask$/, session: "path" },
|
|
49
49
|
{ method: "GET", path: /^\/api\/session\/([^/]+)\/ask\/[^/]+$/, session: "path" },
|
|
50
50
|
{ method: "POST", path: /^\/api\/session\/([^/]+)\/ask\/[^/]+\/wait$/, session: "path" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bivy/bivy",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.9-staging.10",
|
|
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.",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@lydell/node-pty": "1.2.0-beta.15",
|
|
41
|
-
"@modelcontextprotocol/sdk": "1.
|
|
41
|
+
"@modelcontextprotocol/sdk": "1.31.0",
|
|
42
42
|
"@novnc/novnc": "1.7.0",
|
|
43
43
|
"brace-expansion": "5.0.12",
|
|
44
44
|
"express": "^5.2.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"hono": "4.13.5",
|
|
56
56
|
"qs": "6.16.0",
|
|
57
57
|
"@hono/node-server": "2.0.12",
|
|
58
|
-
"@modelcontextprotocol/sdk": "1.
|
|
58
|
+
"@modelcontextprotocol/sdk": "1.31.0",
|
|
59
59
|
"@earendil-works/pi-coding-agent": {
|
|
60
60
|
"brace-expansion": "5.0.12",
|
|
61
61
|
"undici": "8.11.2"
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"lodash-es": "4.18.1",
|
|
66
66
|
"undici": "8.11.2"
|
|
67
67
|
},
|
|
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.\n\n**Just your own devices?** `bivy tailscale` serves the app from the machine\nitself at `https://<machine>.<tailnet>.ts.net`, with no account, control plane\nor relay. You get the core over your tailnet: sessions, chat, approvals,\nquestions, terminals and files. Push notifications, app previews and share\nlinks need Bivy Cloud or a self-hosted server. See [Tailscale](docs/tailscale.md)\nand [Remote access](docs/remote-access.md).\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",
|
|
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 # push to your phone so you come back\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 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.\n\n**Just your own devices?** `bivy tailscale` serves the app from the machine\nitself at `https://<machine>.<tailnet>.ts.net`, with no account, control plane\nor relay. You get the core over your tailnet: sessions, chat, approvals,\nquestions, terminals and files. Push notifications, app previews and share\nlinks need Bivy Cloud or a self-hosted server. See [Tailscale](docs/tailscale.md)\nand [Remote access](docs/remote-access.md).\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. Its plans, billing and\nmanaged-compute operations live in a separate private service behind Core's\ndeployment extension. Contributions are made under the\n[Contributor License Agreement](CLA.md). The Bivy name and logo are covered by\nthe [trademark policy](TRADEMARKS.md).\n",
|
|
69
69
|
"readmeFilename": "README.md",
|
|
70
70
|
"agentBridges": {
|
|
71
71
|
"@anthropic-ai/claude-agent-sdk": "0.3.286",
|
|
72
|
-
"@earendil-works/pi-ai": "0.
|
|
73
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
72
|
+
"@earendil-works/pi-ai": "1.0.4",
|
|
73
|
+
"@earendil-works/pi-coding-agent": "1.0.4"
|
|
74
74
|
}
|
|
75
75
|
}
|