@myagentroam/node 0.10.2 → 0.10.3
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
|
@@ -1684,7 +1684,7 @@ export class NodeConnector {
|
|
|
1684
1684
|
nodeGeneration: () => this.nodeGeneration,
|
|
1685
1685
|
send: (type, payload) => this.send(type, payload),
|
|
1686
1686
|
terminalManager: this.terminalManager,
|
|
1687
|
-
sendTerminalReady: (directSessionId) => this.send('terminal.direct.ready', { directSessionId }),
|
|
1687
|
+
sendTerminalReady: (directSessionId, phase) => this.send('terminal.direct.ready', { directSessionId, ...(phase ? { phase } : {}) }),
|
|
1688
1688
|
udpPortRange: () => directTransferUdpPortRange(this.config),
|
|
1689
1689
|
openUpload: async (descriptor) => {
|
|
1690
1690
|
if (descriptor.direction !== 'UPLOAD' || descriptor.resource.kind !== 'WORKSPACE_FILE')
|
package/dist/main.js
CHANGED
|
@@ -23,11 +23,6 @@ if (command === 'run') {
|
|
|
23
23
|
for (const signal of ['SIGINT', 'SIGTERM']) {
|
|
24
24
|
process.once(signal, shutdown);
|
|
25
25
|
}
|
|
26
|
-
if (args.includes('--managed-parent')) {
|
|
27
|
-
if (process.send === undefined || !process.connected)
|
|
28
|
-
throw new Error('NODE_MANAGED_PARENT_UNAVAILABLE');
|
|
29
|
-
process.once('disconnect', shutdown);
|
|
30
|
-
}
|
|
31
26
|
await connector.start();
|
|
32
27
|
}
|
|
33
28
|
else if (command === 'supervise') {
|
|
@@ -47,7 +47,7 @@ export class DirectTransferService {
|
|
|
47
47
|
this.leaseGraceMs = options.leaseGraceMs ?? LEASE_GRACE_MS;
|
|
48
48
|
this.leaseCheckMs = options.leaseCheckMs ?? LEASE_CHECK_MS;
|
|
49
49
|
if (options.terminalManager !== undefined)
|
|
50
|
-
this.terminalDirect = new TerminalDirectService(options.terminalManager, (id) => options.sendTerminalReady?.(id), (command, peer) => {
|
|
50
|
+
this.terminalDirect = new TerminalDirectService(options.terminalManager, (id, phase) => options.sendTerminalReady?.(id, phase), (command, peer) => {
|
|
51
51
|
const transport = this.transports.get(command.transportSessionId);
|
|
52
52
|
return (transport?.peer === peer &&
|
|
53
53
|
transport.command.workbenchConnectionId === command.workbenchConnectionId &&
|
|
@@ -114,6 +114,9 @@ export class TerminalDirectService {
|
|
|
114
114
|
this.sendFrame(session, frame);
|
|
115
115
|
channel.onmessage = (event) => this.accept(session, event.data);
|
|
116
116
|
this.manager.startCommand(session.command.terminalId);
|
|
117
|
+
void Promise.resolve()
|
|
118
|
+
.then(() => this.sendReady(session.command.directSessionId, 'ATTACHED'))
|
|
119
|
+
.catch(() => console.warn('AUDIT_RECEIPT_UNAVAILABLE'));
|
|
117
120
|
}
|
|
118
121
|
catch (error) {
|
|
119
122
|
this.remove(session, error instanceof Error && error.message === 'TERMINAL_ATTACH_CONFLICT'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
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.3",
|
|
41
41
|
"@myagentroam/code-navigation": "0.10.1",
|
|
42
42
|
"@myagentroam/marctl": "0.10.1",
|
|
43
|
-
"@myagentroam/protocol": "0.10.
|
|
43
|
+
"@myagentroam/protocol": "0.10.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/ws": "^8.18.1"
|