@myagentroam/node 0.9.103 → 0.9.104
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
|
@@ -56,7 +56,7 @@ import { ContinuousRunCoordinator } from './service/continuous-run-coordinator.j
|
|
|
56
56
|
import { SessionIdentityService } from './service/session-identity-service.js';
|
|
57
57
|
import { NativeSessionProjectionService } from './service/native-session-projection-service.js';
|
|
58
58
|
import { composeConversationRuntimePage, ConversationHistoryService, convergeConversationWatchPage, hasManagedActiveRun } from './service/conversation-history-service.js';
|
|
59
|
-
import { ConversationSegmentService
|
|
59
|
+
import { ConversationSegmentService } from './service/conversation-segment-service.js';
|
|
60
60
|
import { RunnerInteractionService } from './service/runner-interaction-service.js';
|
|
61
61
|
import { SessionLifecycleService } from './service/session-lifecycle-service.js';
|
|
62
62
|
import { ExternalSessionResumeService } from './service/external-session-resume-service.js';
|
|
@@ -1799,8 +1799,7 @@ export class NodeConnector {
|
|
|
1799
1799
|
this.runEventBridge.emitConversationItem(runId, item);
|
|
1800
1800
|
};
|
|
1801
1801
|
emitConversationTurn = (turn) => {
|
|
1802
|
-
|
|
1803
|
-
this.emitWorkbenchEvent('conversation', { turn, segments });
|
|
1802
|
+
this.emitWorkbenchEvent('conversation', { turn });
|
|
1804
1803
|
};
|
|
1805
1804
|
publishWorkbenchEvent = (category, payload) => {
|
|
1806
1805
|
if (category === 'session') {
|
|
@@ -96,9 +96,13 @@ export class NodeRunEventBridge {
|
|
|
96
96
|
else {
|
|
97
97
|
if (payload.event.eventType !== 'run.started' && payload.event.eventType !== 'run.running')
|
|
98
98
|
return;
|
|
99
|
-
payload = { turn
|
|
99
|
+
payload = { turn };
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
+
if (category === 'conversation' &&
|
|
103
|
+
isPlainRecord(payload) &&
|
|
104
|
+
isNodeConversationTurn(payload.turn))
|
|
105
|
+
return { ...payload, segments: conversationSegments(payload.turn) };
|
|
102
106
|
return payload;
|
|
103
107
|
}
|
|
104
108
|
emitConversationItem(runId, item) {
|
|
@@ -3,6 +3,7 @@ import { lstat, mkdir, open, readFile, rename, rm } from 'node:fs/promises';
|
|
|
3
3
|
import { dirname, join, posix, resolve } from 'node:path';
|
|
4
4
|
import { parseComposerAttachmentUpload, validComposerAttachmentName } from '../util/node-operation-parsers.js';
|
|
5
5
|
import { preflightWorkspaceUpload, workspaceUploadTemporaryName } from '../workspace.js';
|
|
6
|
+
import { ensureWorkspaceGitExclude } from './workspace-git-exclude-service.js';
|
|
6
7
|
const CHUNK_BYTES = 512 * 1024;
|
|
7
8
|
const TTL_MS = 60 * 60_000;
|
|
8
9
|
const MAX_ATTACHMENT_BYTES = 5 * 1024 * 1024;
|
|
@@ -258,6 +259,7 @@ export class WorkspaceUploadService {
|
|
|
258
259
|
await rm(dirname(attachment.targetPath), { recursive: true, force: true }).catch(() => undefined);
|
|
259
260
|
}
|
|
260
261
|
async attachmentTarget(workspacePath, id, name) {
|
|
262
|
+
await ensureWorkspaceGitExclude(workspacePath);
|
|
261
263
|
const mar = resolve(workspacePath, '.mar');
|
|
262
264
|
await mkdir(mar, { recursive: true, mode: 0o700 });
|
|
263
265
|
await safeDirectory(mar);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.104",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"license": "Apache-2.0 AND GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"npm": "11.12.1",
|
|
31
31
|
"ws": "^8.21.3",
|
|
32
32
|
"zod": "4.4.3",
|
|
33
|
-
"@myagentroam/agent": "0.9.
|
|
34
|
-
"@myagentroam/
|
|
35
|
-
"@myagentroam/
|
|
33
|
+
"@myagentroam/agent": "0.9.104",
|
|
34
|
+
"@myagentroam/protocol": "0.9.104",
|
|
35
|
+
"@myagentroam/code-navigation": "0.9.104"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/ws": "^8.18.1"
|