@yu_robotics/remote-cli 1.6.229 → 1.6.231
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/client/MessageHandler.d.ts +2 -0
- package/dist/client/MessageHandler.d.ts.map +1 -1
- package/dist/client/MessageHandler.js +25 -2
- package/dist/client/MessageHandler.js.map +1 -1
- package/dist/client/WebSocketClient.d.ts.map +1 -1
- package/dist/client/WebSocketClient.js +6 -0
- package/dist/client/WebSocketClient.js.map +1 -1
- package/dist/maintenance/release-notes.json +1 -1
- package/dist/output/OutputFiles.d.ts +7 -0
- package/dist/output/OutputFiles.d.ts.map +1 -1
- package/dist/output/OutputFiles.js +16 -3
- package/dist/output/OutputFiles.js.map +1 -1
- package/dist/output/OutputSnapshots.d.ts +3 -1
- package/dist/output/OutputSnapshots.d.ts.map +1 -1
- package/dist/output/OutputSnapshots.js +14 -4
- package/dist/output/OutputSnapshots.js.map +1 -1
- package/dist/output/PendingOutputFiles.d.ts +13 -0
- package/dist/output/PendingOutputFiles.d.ts.map +1 -0
- package/dist/output/PendingOutputFiles.js +67 -0
- package/dist/output/PendingOutputFiles.js.map +1 -0
- package/native/prebuilds/darwin-arm64/managed_native.node +0 -0
- package/native/prebuilds/darwin-arm64/manifest.json +1 -1
- package/native/prebuilds/darwin-x64/managed_native.node +0 -0
- package/native/prebuilds/darwin-x64/manifest.json +1 -1
- package/native/prebuilds/win32-arm64/managed_native.node +0 -0
- package/native/prebuilds/win32-arm64/manifest.json +1 -1
- package/native/prebuilds/win32-x64/managed_native.node +0 -0
- package/native/prebuilds/win32-x64/manifest.json +1 -1
- package/package.json +1 -1
|
@@ -61,6 +61,8 @@ export declare class MessageHandler {
|
|
|
61
61
|
private outputFiles?;
|
|
62
62
|
private readonly imageDeliveries;
|
|
63
63
|
private attachmentHintsSupported;
|
|
64
|
+
private pendingOutputSupported;
|
|
65
|
+
private readonly pendingOutputFiles;
|
|
64
66
|
private imageConnectionEpoch;
|
|
65
67
|
constructor(wsClient: WebSocketClient, threadPool: ThreadExecutorPool, threadManager: ThreadManager, directoryGuard: DirectoryGuard, config: ConfigManager);
|
|
66
68
|
reconcilePendingDelegatedWorkers(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../src/client/MessageHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../src/client/MessageHandler.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQpD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAgK,MAAM,UAAU,CAAC;AACzM,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAOxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA6HxD;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsBD,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,mBAAmB,CAA4B;IACvD,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,eAAe,CAA0C;IACjE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsC;IACnE,OAAO,CAA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O,IAAI,OAAO,CAAC,IAAI,CAAC;CA6B/B"}
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MessageHandler = void 0;
|
|
7
|
+
const PendingOutputFiles_1 = require("../output/PendingOutputFiles");
|
|
7
8
|
const OutputFiles_1 = require("../output/OutputFiles");
|
|
8
9
|
const OutputSnapshots_1 = require("../output/OutputSnapshots");
|
|
9
10
|
const OutputLinks_1 = require("../output/OutputLinks");
|
|
@@ -202,6 +203,8 @@ class MessageHandler {
|
|
|
202
203
|
outputFiles;
|
|
203
204
|
imageDeliveries = new Map();
|
|
204
205
|
attachmentHintsSupported = false;
|
|
206
|
+
pendingOutputSupported = false;
|
|
207
|
+
pendingOutputFiles = new PendingOutputFiles_1.PendingOutputFiles();
|
|
205
208
|
imageConnectionEpoch = 0;
|
|
206
209
|
constructor(wsClient, threadPool, threadManager, directoryGuard, config) {
|
|
207
210
|
this.wsClient = wsClient;
|
|
@@ -324,6 +327,12 @@ class MessageHandler {
|
|
|
324
327
|
this.wsClient.send(result);
|
|
325
328
|
}
|
|
326
329
|
return;
|
|
330
|
+
case 'prepare_pending_output': {
|
|
331
|
+
if (this.pendingOutputSupported && this.outputFiles?.isEnabled()) {
|
|
332
|
+
await this.pendingOutputFiles.prepare(message, this.outputFiles);
|
|
333
|
+
}
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
327
336
|
case 'output_registered':
|
|
328
337
|
case 'output_grant':
|
|
329
338
|
this.outputFiles?.handle(message);
|
|
@@ -348,6 +357,7 @@ class MessageHandler {
|
|
|
348
357
|
if (data?.success !== true)
|
|
349
358
|
return;
|
|
350
359
|
this.attachmentHintsSupported = data.capabilities?.outputAttachmentHintsV1 === true;
|
|
360
|
+
this.pendingOutputSupported = data.capabilities?.pendingOutputFilesV1 === true;
|
|
351
361
|
this.routerVersion = typeof data.routerVersion === 'string' ? data.routerVersion : undefined;
|
|
352
362
|
if (data.capabilities?.outputFilesV1 === true) {
|
|
353
363
|
try {
|
|
@@ -358,6 +368,8 @@ class MessageHandler {
|
|
|
358
368
|
await this.outputFiles.initialize();
|
|
359
369
|
}
|
|
360
370
|
this.outputFiles.connect();
|
|
371
|
+
if (this.pendingOutputSupported)
|
|
372
|
+
this.wsClient.send({ type: 'pending_outputs_ready' });
|
|
361
373
|
}
|
|
362
374
|
catch {
|
|
363
375
|
await this.outputFiles?.destroy();
|
|
@@ -2287,6 +2299,7 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
2287
2299
|
}
|
|
2288
2300
|
if (executor.hasUncertainShutdown?.())
|
|
2289
2301
|
throw new Error('Direct backend shutdown is unconfirmed. Retry /abort or /clear before sending more work.');
|
|
2302
|
+
this.pendingOutputFiles.invalidateThread(threadId);
|
|
2290
2303
|
const conversationRevision = this.conversationRevisions.get(threadId) ?? 0;
|
|
2291
2304
|
const operationToken = this.activeThreadOperations.get(threadId)?.token;
|
|
2292
2305
|
const isCurrent = () => !this.isDestroyed && (!operationToken ||
|
|
@@ -2673,9 +2686,18 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
2673
2686
|
if (names.length)
|
|
2674
2687
|
outputAttachmentHints = { generation: outputGeneration, names: [...new Set([...(outputAttachmentHints?.names ?? []), ...names])].slice(0, 16) };
|
|
2675
2688
|
}
|
|
2689
|
+
const outputContext = { messageId, threadId, taskId: messageId, owner: openId,
|
|
2690
|
+
generation: outputGeneration, cwd: imageCwd, source: 'workspace', exports: [...outputExports.values()] };
|
|
2676
2691
|
if (this.outputFiles?.isEnabled()) {
|
|
2677
|
-
await this.outputFiles.capture(outputLinks,
|
|
2678
|
-
|
|
2692
|
+
await this.outputFiles.capture(outputLinks, outputContext);
|
|
2693
|
+
}
|
|
2694
|
+
else if (this.pendingOutputSupported) {
|
|
2695
|
+
this.pendingOutputFiles.remember(outputLinks, outputContext, () => {
|
|
2696
|
+
const current = this.threadManager.getThread(threadId);
|
|
2697
|
+
return !this.isDestroyed && !!current && current.workingDirectory === imageCwd
|
|
2698
|
+
&& (current.delegationWorkspaceGeneration ?? 0) === outputGeneration
|
|
2699
|
+
&& (this.conversationRevisions.get(threadId) ?? 0) === conversationRevision;
|
|
2700
|
+
});
|
|
2679
2701
|
}
|
|
2680
2702
|
await imageDelivery?.drain();
|
|
2681
2703
|
}
|
|
@@ -3424,6 +3446,7 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
3424
3446
|
this.directoryBrowser.destroy();
|
|
3425
3447
|
this.settingsService.destroy();
|
|
3426
3448
|
this.isDestroyed = true;
|
|
3449
|
+
this.pendingOutputFiles.clear();
|
|
3427
3450
|
for (const threadId of this.activeThreadOperations.keys()) {
|
|
3428
3451
|
this.settingsAdmission.cancelRecoverable(threadId);
|
|
3429
3452
|
this.cancelThreadOperation(threadId, 'Request cancelled because the CLI is shutting down.');
|