@geohar/unbien-durable 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +52 -2
- package/dist/agent_config.d.ts +56 -0
- package/dist/agent_config.js +92 -0
- package/dist/agent_config.js.map +1 -0
- package/dist/bridge.d.ts +175 -0
- package/dist/bridge.js +921 -0
- package/dist/bridge.js.map +1 -0
- package/dist/event_source.d.ts +53 -0
- package/dist/event_source.js +124 -0
- package/dist/event_source.js.map +1 -0
- package/dist/extension.d.ts +34 -0
- package/dist/extension.js +46 -0
- package/dist/extension.js.map +1 -0
- package/dist/host.d.ts +2 -0
- package/dist/host.js +261 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/launch_wait_quit.d.ts +12 -0
- package/dist/launch_wait_quit.js +136 -0
- package/dist/launch_wait_quit.js.map +1 -0
- package/dist/mesh_delivery.d.ts +28 -0
- package/dist/mesh_delivery.js +31 -0
- package/dist/mesh_delivery.js.map +1 -0
- package/dist/mirror.d.ts +56 -0
- package/dist/mirror.js +136 -0
- package/dist/mirror.js.map +1 -0
- package/dist/ollama_cloud.d.ts +2 -0
- package/dist/ollama_cloud.js +98 -0
- package/dist/ollama_cloud.js.map +1 -0
- package/dist/pi_launch.d.ts +50 -0
- package/dist/pi_launch.js +84 -0
- package/dist/pi_launch.js.map +1 -0
- package/dist/port.d.ts +94 -0
- package/dist/port.js +121 -0
- package/dist/port.js.map +1 -0
- package/dist/registrar.d.ts +7 -0
- package/dist/registrar.js +31 -0
- package/dist/registrar.js.map +1 -0
- package/dist/thinking.d.ts +24 -0
- package/dist/thinking.js +36 -0
- package/dist/thinking.js.map +1 -0
- package/dist/view_translator.d.ts +83 -0
- package/dist/view_translator.js +317 -0
- package/dist/view_translator.js.map +1 -0
- package/package.json +63 -3
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { UN_BIEN_APP_KIND, toWire } from "./mirror.js";
|
|
2
|
+
export class ViewTranslator {
|
|
3
|
+
opts;
|
|
4
|
+
busy = false;
|
|
5
|
+
inTurn = false;
|
|
6
|
+
/** Blocks of the streaming answer already emitted, and which are closed. */
|
|
7
|
+
stream = null;
|
|
8
|
+
lastAssistant = null;
|
|
9
|
+
pendingCalls = new Set();
|
|
10
|
+
turnResults = [];
|
|
11
|
+
toolsStarted = new Set();
|
|
12
|
+
toolsEnded = new Set();
|
|
13
|
+
toolProgress = new Map();
|
|
14
|
+
runFailureTask;
|
|
15
|
+
constructor(opts) {
|
|
16
|
+
this.opts = opts;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Take the state at attachment without emitting: a run in flight sets the
|
|
20
|
+
* busy flag, and a run failure already recorded is not reported again.
|
|
21
|
+
*/
|
|
22
|
+
prime(live) {
|
|
23
|
+
this.busy = live?.run !== undefined;
|
|
24
|
+
this.inTurn = this.busy;
|
|
25
|
+
this.runFailureTask = live?.runFailure?.taskId;
|
|
26
|
+
for (const slot of live?.tools ?? []) {
|
|
27
|
+
if (slot.status !== "pending")
|
|
28
|
+
this.toolsStarted.add(slot.callId);
|
|
29
|
+
if (slot.status === "done")
|
|
30
|
+
this.toolsEnded.add(slot.callId);
|
|
31
|
+
}
|
|
32
|
+
this.opts.onBusyChange?.(this.busy);
|
|
33
|
+
}
|
|
34
|
+
/** Emit what changed: `added` are the entries new since the last call. */
|
|
35
|
+
feed(added, live) {
|
|
36
|
+
if (!this.busy && live?.run !== undefined) {
|
|
37
|
+
this.busy = true;
|
|
38
|
+
this.opts.onBusyChange?.(true);
|
|
39
|
+
this.opts.emit("agent_start", { type: "agent_start" });
|
|
40
|
+
}
|
|
41
|
+
for (const record of added)
|
|
42
|
+
this.entry(record);
|
|
43
|
+
const partial = live?.generation?.message;
|
|
44
|
+
if (partial !== undefined)
|
|
45
|
+
this.streaming(partial);
|
|
46
|
+
for (const slot of live?.tools ?? [])
|
|
47
|
+
this.slot(slot);
|
|
48
|
+
const failure = live?.runFailure;
|
|
49
|
+
if (failure !== undefined && failure.taskId !== this.runFailureTask) {
|
|
50
|
+
this.runFailureTask = failure.taskId;
|
|
51
|
+
this.opts.onRunFailure?.(failure);
|
|
52
|
+
}
|
|
53
|
+
if (this.busy && live?.run === undefined)
|
|
54
|
+
this.endRun();
|
|
55
|
+
}
|
|
56
|
+
// ── entries ──────────────────────────────────────────────────────────────
|
|
57
|
+
entry(record) {
|
|
58
|
+
const message = record.model?.[0];
|
|
59
|
+
switch (record.kind) {
|
|
60
|
+
case "pi.user":
|
|
61
|
+
if (message)
|
|
62
|
+
this.whole(message);
|
|
63
|
+
return;
|
|
64
|
+
case "pi.assistant":
|
|
65
|
+
if (message)
|
|
66
|
+
this.assistant(message);
|
|
67
|
+
return;
|
|
68
|
+
case "pi.tool-result":
|
|
69
|
+
if (message)
|
|
70
|
+
this.toolResult(message);
|
|
71
|
+
return;
|
|
72
|
+
case "pi.compaction": {
|
|
73
|
+
const wire = toWire(record)[0];
|
|
74
|
+
this.opts.emit("session_compact", {
|
|
75
|
+
type: "session_compact",
|
|
76
|
+
compactionEntry: { summary: wire.summary ?? "", tokensBefore: 0 },
|
|
77
|
+
});
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
case UN_BIEN_APP_KIND: {
|
|
81
|
+
const wire = toWire(record)[0];
|
|
82
|
+
if (wire.display === false)
|
|
83
|
+
return;
|
|
84
|
+
this.whole({
|
|
85
|
+
role: "custom",
|
|
86
|
+
customType: wire.customType,
|
|
87
|
+
content: wire.content,
|
|
88
|
+
display: true,
|
|
89
|
+
...(wire.details !== undefined ? { details: wire.details } : {}),
|
|
90
|
+
timestamp: Date.now(),
|
|
91
|
+
});
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
default:
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/** A message that arrives complete: start and end in one go. Only a run's
|
|
99
|
+
* messages open a turn; a notice written while idle (a run failure, a
|
|
100
|
+
* mesh notice) is just the message. */
|
|
101
|
+
whole(message) {
|
|
102
|
+
if (this.busy)
|
|
103
|
+
this.beginTurn();
|
|
104
|
+
this.opts.emit("message_start", { type: "message_start", message });
|
|
105
|
+
this.opts.emit("message_end", { type: "message_end", message });
|
|
106
|
+
}
|
|
107
|
+
assistant(message) {
|
|
108
|
+
this.beginTurn();
|
|
109
|
+
if (this.stream === null) {
|
|
110
|
+
this.opts.emit("message_start", { type: "message_start", message });
|
|
111
|
+
this.stream = { blocks: [], ended: new Set() };
|
|
112
|
+
}
|
|
113
|
+
// Whatever the throttled partial didn't show, then every block's end.
|
|
114
|
+
this.diffBlocks(blocksOf(message), message.usage, true);
|
|
115
|
+
this.stream = null;
|
|
116
|
+
this.opts.emit("message_end", { type: "message_end", message });
|
|
117
|
+
this.lastAssistant = message;
|
|
118
|
+
this.turnResults = [];
|
|
119
|
+
this.pendingCalls = new Set(blocksOf(message)
|
|
120
|
+
.filter((b) => b.type === "toolCall" && typeof b.id === "string")
|
|
121
|
+
.map((b) => b.id));
|
|
122
|
+
if (this.pendingCalls.size === 0)
|
|
123
|
+
this.endTurn();
|
|
124
|
+
}
|
|
125
|
+
toolResult(message) {
|
|
126
|
+
const callId = message.toolCallId ?? "";
|
|
127
|
+
this.startTool(callId, message.toolName ?? "");
|
|
128
|
+
if (!this.toolsEnded.has(callId)) {
|
|
129
|
+
this.toolsEnded.add(callId);
|
|
130
|
+
this.opts.emit("tool_execution_end", {
|
|
131
|
+
type: "tool_execution_end",
|
|
132
|
+
toolCallId: callId,
|
|
133
|
+
toolName: message.toolName,
|
|
134
|
+
result: {
|
|
135
|
+
content: message.content ?? [],
|
|
136
|
+
...(message.details !== undefined ? { details: message.details } : {}),
|
|
137
|
+
},
|
|
138
|
+
isError: message.isError === true,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
this.whole(message);
|
|
142
|
+
this.turnResults.push(message);
|
|
143
|
+
this.pendingCalls.delete(callId);
|
|
144
|
+
if (this.pendingCalls.size === 0 && this.inTurn)
|
|
145
|
+
this.endTurn();
|
|
146
|
+
}
|
|
147
|
+
// ── the streaming answer ─────────────────────────────────────────────────
|
|
148
|
+
streaming(partial) {
|
|
149
|
+
this.beginTurn();
|
|
150
|
+
if (this.stream === null) {
|
|
151
|
+
this.opts.emit("message_start", { type: "message_start", message: partial });
|
|
152
|
+
this.stream = { blocks: [], ended: new Set() };
|
|
153
|
+
}
|
|
154
|
+
this.diffBlocks(blocksOf(partial), partial.usage, false);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Emit the block events that take the emitted blocks to `blocks`. A block
|
|
158
|
+
* ends when a later one starts, or, with `final`, at the message's end.
|
|
159
|
+
*/
|
|
160
|
+
diffBlocks(blocks, usage, final) {
|
|
161
|
+
const stream = this.stream;
|
|
162
|
+
if (stream === null)
|
|
163
|
+
return;
|
|
164
|
+
const update = (event) => this.opts.emit("message_update", {
|
|
165
|
+
type: "message_update",
|
|
166
|
+
message: { usage },
|
|
167
|
+
assistantMessageEvent: event,
|
|
168
|
+
});
|
|
169
|
+
blocks.forEach((block, index) => {
|
|
170
|
+
const before = stream.blocks[index];
|
|
171
|
+
if (before === undefined) {
|
|
172
|
+
for (let open = 0; open < index; open++)
|
|
173
|
+
this.endBlock(open, blocks, update);
|
|
174
|
+
update(startEvent(block, index));
|
|
175
|
+
}
|
|
176
|
+
const field = textField(block);
|
|
177
|
+
if (field !== undefined) {
|
|
178
|
+
const was = before ? (before[field] ?? "") : "";
|
|
179
|
+
const now = block[field] ?? "";
|
|
180
|
+
if (now.length > was.length && now.startsWith(was)) {
|
|
181
|
+
update({
|
|
182
|
+
type: field === "text" ? "text_delta" : "thinking_delta",
|
|
183
|
+
contentIndex: index,
|
|
184
|
+
delta: now.slice(was.length),
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
stream.blocks[index] = { ...block };
|
|
189
|
+
});
|
|
190
|
+
if (final)
|
|
191
|
+
blocks.forEach((_, index) => this.endBlock(index, blocks, update));
|
|
192
|
+
}
|
|
193
|
+
endBlock(index, blocks, update) {
|
|
194
|
+
const stream = this.stream;
|
|
195
|
+
if (stream === null || stream.ended.has(index))
|
|
196
|
+
return;
|
|
197
|
+
const block = blocks[index] ?? stream.blocks[index];
|
|
198
|
+
if (block === undefined)
|
|
199
|
+
return;
|
|
200
|
+
stream.ended.add(index);
|
|
201
|
+
if (block.type === "toolCall") {
|
|
202
|
+
update({ type: "toolcall_end", contentIndex: index, toolCall: block });
|
|
203
|
+
}
|
|
204
|
+
else if (block.type === "text" || block.type === "thinking") {
|
|
205
|
+
update({
|
|
206
|
+
type: `${block.type}_end`,
|
|
207
|
+
contentIndex: index,
|
|
208
|
+
content: block.type === "text" ? (block.text ?? "") : (block.thinking ?? ""),
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
// ── the tool round ───────────────────────────────────────────────────────
|
|
213
|
+
slot(slot) {
|
|
214
|
+
if (slot.status === "pending")
|
|
215
|
+
return;
|
|
216
|
+
this.startTool(slot.callId, slot.name);
|
|
217
|
+
if (this.toolsEnded.has(slot.callId))
|
|
218
|
+
return;
|
|
219
|
+
if (slot.status === "done") {
|
|
220
|
+
// A done slot with an entry ends through that entry; without one the
|
|
221
|
+
// tool task faulted or was orphaned.
|
|
222
|
+
if (slot.entry !== undefined)
|
|
223
|
+
return;
|
|
224
|
+
this.toolsEnded.add(slot.callId);
|
|
225
|
+
this.opts.emit("tool_execution_end", {
|
|
226
|
+
type: "tool_execution_end",
|
|
227
|
+
toolCallId: slot.callId,
|
|
228
|
+
toolName: slot.name,
|
|
229
|
+
result: { content: [{ type: "text", text: "Tool produced no result" }] },
|
|
230
|
+
isError: true,
|
|
231
|
+
});
|
|
232
|
+
this.pendingCalls.delete(slot.callId);
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
const key = JSON.stringify([slot.output ?? "", slot.details ?? null]);
|
|
236
|
+
if (this.toolProgress.get(slot.callId) === key)
|
|
237
|
+
return;
|
|
238
|
+
this.toolProgress.set(slot.callId, key);
|
|
239
|
+
if (slot.output === undefined && slot.details === undefined)
|
|
240
|
+
return;
|
|
241
|
+
this.opts.emit("tool_execution_update", {
|
|
242
|
+
type: "tool_execution_update",
|
|
243
|
+
toolCallId: slot.callId,
|
|
244
|
+
toolName: slot.name,
|
|
245
|
+
args: this.argsOf(slot.callId),
|
|
246
|
+
partialResult: {
|
|
247
|
+
content: [{ type: "text", text: slot.output ?? "" }],
|
|
248
|
+
...(slot.details !== undefined ? { details: slot.details } : {}),
|
|
249
|
+
},
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
startTool(callId, toolName) {
|
|
253
|
+
if (this.toolsStarted.has(callId))
|
|
254
|
+
return;
|
|
255
|
+
this.toolsStarted.add(callId);
|
|
256
|
+
this.opts.emit("tool_execution_start", {
|
|
257
|
+
type: "tool_execution_start",
|
|
258
|
+
toolCallId: callId,
|
|
259
|
+
toolName,
|
|
260
|
+
args: this.argsOf(callId),
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
argsOf(callId) {
|
|
264
|
+
const call = blocksOf(this.lastAssistant ?? {}).find((b) => b.type === "toolCall" && b.id === callId);
|
|
265
|
+
return call?.arguments ?? {};
|
|
266
|
+
}
|
|
267
|
+
// ── turns and runs ───────────────────────────────────────────────────────
|
|
268
|
+
beginTurn() {
|
|
269
|
+
if (this.inTurn)
|
|
270
|
+
return;
|
|
271
|
+
this.inTurn = true;
|
|
272
|
+
this.opts.emit("turn_start", { type: "turn_start" });
|
|
273
|
+
}
|
|
274
|
+
endTurn() {
|
|
275
|
+
if (!this.inTurn)
|
|
276
|
+
return;
|
|
277
|
+
this.inTurn = false;
|
|
278
|
+
this.opts.emit("turn_end", {
|
|
279
|
+
type: "turn_end",
|
|
280
|
+
message: this.lastAssistant,
|
|
281
|
+
toolResults: this.turnResults,
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
endRun() {
|
|
285
|
+
this.stream = null;
|
|
286
|
+
this.pendingCalls.clear();
|
|
287
|
+
this.endTurn();
|
|
288
|
+
this.toolsStarted.clear();
|
|
289
|
+
this.toolsEnded.clear();
|
|
290
|
+
this.toolProgress.clear();
|
|
291
|
+
this.busy = false;
|
|
292
|
+
this.opts.onBusyChange?.(false);
|
|
293
|
+
this.opts.emit("agent_end", { type: "agent_end", messages: [], willRetry: false });
|
|
294
|
+
this.opts.emit("agent_settled", { type: "agent_settled" });
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function blocksOf(message) {
|
|
298
|
+
return Array.isArray(message.content) ? message.content : [];
|
|
299
|
+
}
|
|
300
|
+
function textField(block) {
|
|
301
|
+
if (block.type === "text")
|
|
302
|
+
return "text";
|
|
303
|
+
if (block.type === "thinking")
|
|
304
|
+
return "thinking";
|
|
305
|
+
return undefined;
|
|
306
|
+
}
|
|
307
|
+
function startEvent(block, index) {
|
|
308
|
+
if (block.type === "toolCall") {
|
|
309
|
+
// The producer's stripPartial lifts id + toolName from
|
|
310
|
+
// partial.content[contentIndex]: give it a sparse array holding the call.
|
|
311
|
+
const content = [];
|
|
312
|
+
content[index] = { id: block.id, name: block.name };
|
|
313
|
+
return { type: "toolcall_start", contentIndex: index, partial: { content } };
|
|
314
|
+
}
|
|
315
|
+
return { type: `${block.type ?? "text"}_start`, contentIndex: index };
|
|
316
|
+
}
|
|
317
|
+
//# sourceMappingURL=view_translator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view_translator.js","sourceRoot":"","sources":["../src/view_translator.ts"],"names":[],"mappings":"AAuCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AA6BtD,MAAM,OAAO,cAAc;IAaI,IAAI;IAZzB,IAAI,GAAG,KAAK,CAAA;IACZ,MAAM,GAAG,KAAK,CAAA;IACtB,4EAA4E;IACpE,MAAM,GAAmD,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|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geohar/unbien-durable",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Durable host binding for un-bien: a pi-durable Harness agent on the un-bien mesh + relay, serving the un-bien mobile app. Core ports (AgentSessionPort, EventSource, ToolRegistrar) and the mesh/relay transport come from @geohar/un-bien.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/host.js",
|
|
7
|
+
"types": "./dist/host.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"unbien-durable": "./dist/host.js"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=22.19.0"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@earendil-works/chord": "^1.5.0",
|
|
23
|
+
"@earendil-works/pi-ai": "^1.5.0",
|
|
24
|
+
"@earendil-works/pi-coding-agent": "^1.5.0",
|
|
25
|
+
"@earendil-works/pi-durable": "^1.5.0",
|
|
26
|
+
"typebox": "1.3.27",
|
|
27
|
+
"@geohar/un-bien": "0.25.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/node": "^25.8.0",
|
|
31
|
+
"tsx": "^4.22.0",
|
|
32
|
+
"typescript": "^6.0.3",
|
|
33
|
+
"vitest": "^4.1.6"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"pi",
|
|
37
|
+
"pi-durable",
|
|
38
|
+
"un-bien",
|
|
39
|
+
"unbien",
|
|
40
|
+
"durable",
|
|
41
|
+
"coding-agent",
|
|
42
|
+
"relay",
|
|
43
|
+
"agent-mesh"
|
|
44
|
+
],
|
|
45
|
+
"author": "George Harker <georgeharker@gmail.com>",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"homepage": "https://docs.georgeharker.com/un-bien",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git+https://github.com/georgeharker/un-bien.git",
|
|
51
|
+
"directory": "unbien-durable"
|
|
52
|
+
},
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/georgeharker/un-bien/issues"
|
|
55
|
+
},
|
|
56
|
+
"files": [
|
|
57
|
+
"dist",
|
|
58
|
+
"README.md"
|
|
59
|
+
],
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "tsc -p tsconfig.build.json",
|
|
62
|
+
"typecheck": "tsc --noEmit",
|
|
63
|
+
"dev": "tsx src/host.ts",
|
|
64
|
+
"test": "vitest run"
|
|
65
|
+
}
|
|
6
66
|
}
|