@myagentroam/node 0.10.62 → 0.10.63
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/dist/connector.js
CHANGED
|
@@ -898,6 +898,9 @@ export class NodeConnector {
|
|
|
898
898
|
emitSession: (session) => this.publishWorkbenchEvent('session', {
|
|
899
899
|
session: this.sessionPresentationService.present(session)
|
|
900
900
|
}),
|
|
901
|
+
invalidateWorkspaceSessions: (workspaceId) => {
|
|
902
|
+
void this.workspaceWorkbenchService?.invalidateTopic(workspaceId, 'sessions');
|
|
903
|
+
},
|
|
901
904
|
execute: (operation, data) => this.modelUsage.withGrant(isPlainRecord(data) ? data.__usageGrant : undefined, () => this.executeNodeOperation(operation, data)),
|
|
902
905
|
interceptedSessionId: (clientMessageId) => this.fakeRunner === undefined ? undefined : `fake:${clientMessageId}`
|
|
903
906
|
});
|
package/dist/database.js
CHANGED
|
@@ -363,13 +363,14 @@ export class NodeDatabase {
|
|
|
363
363
|
if (current === undefined || current['pin_order'] === null)
|
|
364
364
|
throw new Error('SESSION_NOT_PINNED');
|
|
365
365
|
const order = numberValue(current, 'pin_order');
|
|
366
|
+
const workspaceId = stringValue(current, 'workspace_id');
|
|
366
367
|
const adjacent = this.raw
|
|
367
368
|
.prepare(direction === 'up'
|
|
368
369
|
? 'SELECT id, pin_order FROM agent_sessions WHERE workspace_id = ? AND pin_order < ? ORDER BY pin_order DESC LIMIT 1'
|
|
369
370
|
: 'SELECT id, pin_order FROM agent_sessions WHERE workspace_id = ? AND pin_order > ? ORDER BY pin_order ASC LIMIT 1')
|
|
370
|
-
.get(
|
|
371
|
+
.get(workspaceId, order);
|
|
371
372
|
if (adjacent === undefined)
|
|
372
|
-
return;
|
|
373
|
+
return workspaceId;
|
|
373
374
|
this.raw.exec('BEGIN IMMEDIATE');
|
|
374
375
|
try {
|
|
375
376
|
this.raw
|
|
@@ -384,6 +385,7 @@ export class NodeDatabase {
|
|
|
384
385
|
this.raw.exec('ROLLBACK');
|
|
385
386
|
throw error;
|
|
386
387
|
}
|
|
388
|
+
return workspaceId;
|
|
387
389
|
}
|
|
388
390
|
deleteSessionRecord(sessionId) {
|
|
389
391
|
this.raw.exec('BEGIN IMMEDIATE');
|
|
@@ -69,7 +69,9 @@ export class SessionLifecycleService {
|
|
|
69
69
|
const next = nativeCodexRename
|
|
70
70
|
? this.options.runtime.setRunnerTitleFromNative(updated.id, input.customTitle ?? '')
|
|
71
71
|
: updated;
|
|
72
|
-
if (sessionPrompt !== undefined
|
|
72
|
+
if (sessionPrompt !== undefined ||
|
|
73
|
+
input.customTitle !== undefined ||
|
|
74
|
+
input.pinned !== undefined)
|
|
73
75
|
this.options.emitSession(next);
|
|
74
76
|
return { session: this.options.present(next) };
|
|
75
77
|
}
|
|
@@ -77,7 +79,8 @@ export class SessionLifecycleService {
|
|
|
77
79
|
if (typeof input.sessionId !== 'string' ||
|
|
78
80
|
(input.direction !== 'up' && input.direction !== 'down'))
|
|
79
81
|
throw new Error('SESSION_PIN_MOVE_INVALID');
|
|
80
|
-
this.options.database().movePinnedSession(input.sessionId, input.direction);
|
|
82
|
+
const workspaceId = this.options.database().movePinnedSession(input.sessionId, input.direction);
|
|
83
|
+
this.options.invalidateWorkspaceSessions(workspaceId);
|
|
81
84
|
return { moved: true };
|
|
82
85
|
}
|
|
83
86
|
create(input) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.63",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"license": "Apache-2.0 AND GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"playwright": "1.62.1",
|
|
38
38
|
"ws": "^8.21.3",
|
|
39
39
|
"zod": "4.4.3",
|
|
40
|
-
"@myagentroam/agent": "0.10.
|
|
40
|
+
"@myagentroam/agent": "0.10.63",
|
|
41
41
|
"@myagentroam/code-navigation": "0.10.1",
|
|
42
|
-
"@myagentroam/
|
|
43
|
-
"@myagentroam/
|
|
42
|
+
"@myagentroam/protocol": "0.10.63",
|
|
43
|
+
"@myagentroam/marctl": "0.10.12"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/ws": "^8.18.1"
|