agentgui 1.0.858 → 1.0.859
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/lib/jsonl-watcher.js +0 -13
- package/lib/routes-tools.js +1 -1
- package/package.json +1 -1
package/lib/jsonl-watcher.js
CHANGED
|
@@ -3,11 +3,6 @@ import { JsonlWatcher as CCFWatcher } from 'ccfollow';
|
|
|
3
3
|
import { JsonlParser } from './jsonl-parser.js';
|
|
4
4
|
|
|
5
5
|
export class JsonlWatcher extends CCFWatcher {
|
|
6
|
-
<<<<<<< HEAD
|
|
7
|
-
constructor({ broadcastSync, queries, ownedSessionIds }) {
|
|
8
|
-
super();
|
|
9
|
-
this._parser = new JsonlParser({ broadcastSync, queries, ownedSessionIds });
|
|
10
|
-
=======
|
|
11
6
|
constructor({ broadcastSync, queries }) {
|
|
12
7
|
super();
|
|
13
8
|
this._parser = new JsonlParser({ broadcastSync, queries });
|
|
@@ -19,7 +14,6 @@ export class JsonlWatcher extends CCFWatcher {
|
|
|
19
14
|
this._currentFp = fp;
|
|
20
15
|
super._read(fp);
|
|
21
16
|
this._currentFp = null;
|
|
22
|
-
>>>>>>> 6bfde951cbeb65ec72b73da9c23b9c8c0ba0bbc1
|
|
23
17
|
}
|
|
24
18
|
|
|
25
19
|
_line(line) {
|
|
@@ -28,12 +22,6 @@ export class JsonlWatcher extends CCFWatcher {
|
|
|
28
22
|
let e;
|
|
29
23
|
try { e = JSON.parse(line); } catch (_) { return; }
|
|
30
24
|
if (!e || !e.sessionId) return;
|
|
31
|
-
<<<<<<< HEAD
|
|
32
|
-
const cid = this._parser._conv(e.sessionId, e);
|
|
33
|
-
if (cid) this._parser._route(cid, e.sessionId, e);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
=======
|
|
37
25
|
const cid = this._parser._conv(e.sessionId, e, this._currentFp);
|
|
38
26
|
if (cid) this._parser._route(cid, e.sessionId, e);
|
|
39
27
|
}
|
|
@@ -47,7 +35,6 @@ export class JsonlWatcher extends CCFWatcher {
|
|
|
47
35
|
this._parser.registerSession(claudeSessionId, convId, dbSessionId);
|
|
48
36
|
}
|
|
49
37
|
|
|
50
|
-
>>>>>>> 6bfde951cbeb65ec72b73da9c23b9c8c0ba0bbc1
|
|
51
38
|
stop() {
|
|
52
39
|
super.stop();
|
|
53
40
|
this._parser.endAllStreaming();
|
package/lib/routes-tools.js
CHANGED
|
@@ -33,7 +33,7 @@ export function register(deps) {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
routes['POST /api/tools/update'] = async (req, res) => {
|
|
36
|
-
const allToolIds = ['cli-claude', 'cli-opencode', 'cli-gemini', 'cli-kilo', 'cli-codex', 'gm-cc', 'gm-oc', 'gm-gc', 'gm-kilo'];
|
|
36
|
+
const allToolIds = ['cli-claude', 'cli-opencode', 'cli-gemini', 'cli-kilo', 'cli-codex', 'cli-agent-browser', 'gm-cc', 'gm-oc', 'gm-gc', 'gm-kilo', 'gm-codex'];
|
|
37
37
|
sendJSON(req, res, 200, { updating: true, toolCount: allToolIds.length });
|
|
38
38
|
broadcastSync({ type: 'tools_update_started', tools: allToolIds });
|
|
39
39
|
setImmediate(async () => {
|