@bridgebrew/point 0.0.3 → 0.0.5
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/browser/browser.tsx +7 -1
- package/package.json +15 -3
package/browser/browser.tsx
CHANGED
|
@@ -214,7 +214,7 @@ let openStream: Context['streams']['open'];
|
|
|
214
214
|
|
|
215
215
|
/** A session's conversation, watched: messages, tool calls, and the running turn's text; open decisions answered here. */
|
|
216
216
|
/** The session's history and live turn; `onRunning` follows whether a turn runs (the prompt's Stop and queue). */
|
|
217
|
-
function Conversation({
|
|
217
|
+
export function Conversation({
|
|
218
218
|
started,
|
|
219
219
|
onRunning,
|
|
220
220
|
}: {
|
|
@@ -245,6 +245,12 @@ function Conversation({
|
|
|
245
245
|
};
|
|
246
246
|
// On the page carrier, persistent: reopened from 0 after a drop, `add` keeps only what is new.
|
|
247
247
|
return openStream(`${api(started.slug)}/watch?id=${encodeURIComponent(started.id)}&after=0`, {
|
|
248
|
+
// Each (re)open reads the whole history again, in place of the lines held: a restart may have numbered other
|
|
249
|
+
// lines as the ones shown before it (lines it had not stored yet).
|
|
250
|
+
onOpen: () => {
|
|
251
|
+
last = 0;
|
|
252
|
+
setEvents([]);
|
|
253
|
+
},
|
|
248
254
|
onItem: (value) => {
|
|
249
255
|
const data = value as Watched;
|
|
250
256
|
if (data.type === 'snapshot') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridgebrew/point",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Point, then ask: hold Option+Shift to select anything on the page, then talk to the agent about it in a session where its code lives.",
|
|
6
6
|
"keywords": [
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
],
|
|
16
16
|
"bridge": {
|
|
17
17
|
"kind": "extension",
|
|
18
|
+
"contracts": {
|
|
19
|
+
"uses": {
|
|
20
|
+
"sessions": {
|
|
21
|
+
"version": "1.0",
|
|
22
|
+
"optional": true
|
|
23
|
+
},
|
|
24
|
+
"project": {
|
|
25
|
+
"version": "1.0",
|
|
26
|
+
"optional": true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
18
30
|
"placement": "host",
|
|
19
31
|
"category": "standard",
|
|
20
32
|
"title": "Point",
|
|
@@ -45,7 +57,7 @@
|
|
|
45
57
|
"react": "19.3.0"
|
|
46
58
|
},
|
|
47
59
|
"dependencies": {
|
|
48
|
-
"@bridgebrew/session-ui": "0.0.
|
|
60
|
+
"@bridgebrew/session-ui": "0.0.2"
|
|
49
61
|
},
|
|
50
62
|
"releaseStage": "dev",
|
|
51
63
|
"scripts": {
|
|
@@ -53,6 +65,6 @@
|
|
|
53
65
|
"typecheck": "bridge plugin check ."
|
|
54
66
|
},
|
|
55
67
|
"engines": {
|
|
56
|
-
"bridge": ">=0.0.1-nightly.
|
|
68
|
+
"bridge": ">=0.0.1-nightly.20261120.1"
|
|
57
69
|
}
|
|
58
70
|
}
|