@yu_robotics/remote-cli 1.6.220 → 1.6.222
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/README.md +5 -1
- package/dist/client/MessageHandler.d.ts +1 -0
- package/dist/client/MessageHandler.d.ts.map +1 -1
- package/dist/client/MessageHandler.js +46 -0
- package/dist/client/MessageHandler.js.map +1 -1
- package/dist/client/WebSocketClient.d.ts.map +1 -1
- package/dist/client/WebSocketClient.js +9 -0
- package/dist/client/WebSocketClient.js.map +1 -1
- package/dist/delegation/DelegationManager.d.ts +4 -0
- package/dist/delegation/DelegationManager.d.ts.map +1 -1
- package/dist/delegation/DelegationManager.js +17 -0
- package/dist/delegation/DelegationManager.js.map +1 -1
- package/dist/executor/ManagedProcessGroups.d.ts +3 -3
- package/dist/executor/ManagedProcessGroups.d.ts.map +1 -1
- package/dist/executor/ManagedProcessGroups.js +24 -7
- package/dist/executor/ManagedProcessGroups.js.map +1 -1
- package/dist/maintenance/release-notes.json +1 -1
- package/dist/native/NativeBindings.d.ts +2 -0
- package/dist/native/NativeBindings.d.ts.map +1 -1
- package/dist/native/NativeBindings.js.map +1 -1
- package/dist/output/Durable.d.ts +4 -0
- package/dist/output/Durable.d.ts.map +1 -0
- package/dist/output/Durable.js +59 -0
- package/dist/output/Durable.js.map +1 -0
- package/dist/output/OutputFiles.d.ts +26 -0
- package/dist/output/OutputFiles.d.ts.map +1 -0
- package/dist/output/OutputFiles.js +128 -0
- package/dist/output/OutputFiles.js.map +1 -0
- package/dist/output/OutputLinks.d.ts +12 -0
- package/dist/output/OutputLinks.d.ts.map +1 -0
- package/dist/output/OutputLinks.js +76 -0
- package/dist/output/OutputLinks.js.map +1 -0
- package/dist/output/OutputSnapshots.d.ts +50 -0
- package/dist/output/OutputSnapshots.d.ts.map +1 -0
- package/dist/output/OutputSnapshots.js +278 -0
- package/dist/output/OutputSnapshots.js.map +1 -0
- package/dist/output/PrivateOutputRoot.d.ts +16 -0
- package/dist/output/PrivateOutputRoot.d.ts.map +1 -0
- package/dist/output/PrivateOutputRoot.js +96 -0
- package/dist/output/PrivateOutputRoot.js.map +1 -0
- package/dist/output/Protocol.d.ts +28 -0
- package/dist/output/Protocol.d.ts.map +1 -0
- package/dist/output/Protocol.js +19 -0
- package/dist/output/Protocol.js.map +1 -0
- package/dist/types/config.d.ts +4 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js.map +1 -1
- 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/linux-arm64/managed_native.node +0 -0
- package/native/prebuilds/linux-arm64/manifest.json +1 -0
- package/native/prebuilds/linux-x64/managed_native.node +0 -0
- package/native/prebuilds/linux-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 +5 -3
package/README.md
CHANGED
|
@@ -168,7 +168,7 @@ From CLI 1.6.211, `/clear` and `/new` request permanent deletion of managed work
|
|
|
168
168
|
|
|
169
169
|
Only sessions with recorded creation ownership and confirmed process-group exit are eligible. Adopted or pre-upgrade histories without receipts, conflicting identities, changed storage roots, unsupported protocols/layouts, and oversized manifests remain held or unsupported. Deletion failures retain their recovery state. OpenCode, AGY, DSH, and ZCode managed-history adapters are available from CLI 1.6.217. Pi compatibility is based on its version-3 JSONL session format, not a native Pi installation version check. The adapters have synthetic fixture coverage. Codex 0.165.0 list/read/delete and exact missing-target retries were also checked with synthetic histories in an isolated native home, without model calls or real user histories. Authenticated native-backend acceptance on macOS/Windows remains separate from fixture validation. Task results, code artifacts, exports, and recovery records are retained. Cleanup removes resumable native history; it does not promise forensic erasure of shared diagnostic logs or caches. This is local CLI behavior; updating only the Router does not enable it.
|
|
170
170
|
|
|
171
|
-
From CLI 1.6.219, managed child-session cleanup uses bundled Node-API helpers on Windows and macOS. Windows starts the backend only after a private Job admits its launcher, and deletion waits for the retained Job to report zero processes. macOS verifies the managed process group with native process identities and kernel absence checks. History deletion and artifact reads use held directory/file handles instead of re-resolving absolute paths. The package includes x64/arm64 helpers for Windows/macOS
|
|
171
|
+
From CLI 1.6.219, managed child-session cleanup uses bundled Node-API helpers on Windows and macOS. Windows starts the backend only after a private Job admits its launcher, and deletion waits for the retained Job to report zero processes. macOS verifies the managed process group with native process identities and kernel absence checks. History deletion and artifact reads use held directory/file handles instead of re-resolving absolute paths. The package includes x64/arm64 helpers for Windows/macOS and Linux x64. From CLI 1.6.222 it also includes Linux arm64, enabling native output-file snapshots on that architecture. Installation does not compile or download helpers. Native Windows arm64 requires Node.js 22 or newer; other bundled targets retain Node.js 18 compatibility. Building helpers from source uses Node.js 24 and the platform C toolchain. Missing helpers, incompatible history layouts, unresolved writers, and interrupted launches without exit evidence retain their history. Existing Linux behavior is preserved. macOS/Linux process groups do not contain deliberate group escape or writers launched through external services. Workspace disposal is a separate feature and retains its existing platform policy. Native fixture CI executes deletion, writer shutdown, recovery, and artifact preservation on Linux x64/arm64, macOS x64/arm64, and Windows x64/arm64. A separate packaging job verifies all six required platform/architecture helpers before publication, including their source and binary hashes. Real backend authentication and live messaging acceptance are separate from native fixture CI.
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
| Command | Description |
|
|
@@ -839,3 +839,7 @@ MIT
|
|
|
839
839
|
## Changelog
|
|
840
840
|
|
|
841
841
|
See the project [CHANGELOG.md](../../CHANGELOG.md) for release notes and user-visible changes.
|
|
842
|
+
|
|
843
|
+
## Retrieve Output Files
|
|
844
|
+
|
|
845
|
+
CLI and Router 1.6.221 add explicit local Markdown link retrieval using immutable 20 MiB snapshots with a fixed 24-hour expiry. A stable file entry opens a separate transfer task card, followed by a native Feishu file message. Progress, safe retries, offline waiting, original-device ownership, restart receipts, and unknown-send handling are independent of the assistant reply and model task. Approved device enrollment and HTTPS are required; Router `files.enabled` also gates retrieval. CLI `outputFiles.allowedRoots` adds specific export roots, and `outputFiles.maxBytes` can lower the limit. Existing 16 MiB delegated exports and incoming attachments retain their contracts. See [Retrieve Output Files](../../README.md#retrieve-output-files) for permissions, limits, proxy configuration, and failure behavior.
|
|
@@ -58,6 +58,7 @@ export declare class MessageHandler {
|
|
|
58
58
|
private readonly delegation;
|
|
59
59
|
private readonly delegationBridges;
|
|
60
60
|
private fileInbox?;
|
|
61
|
+
private outputFiles?;
|
|
61
62
|
private readonly imageDeliveries;
|
|
62
63
|
private imageConnectionEpoch;
|
|
63
64
|
constructor(wsClient: WebSocketClient, threadPool: ThreadExecutorPool, threadManager: ThreadManager, directoryGuard: DirectoryGuard, config: ConfigManager);
|
|
@@ -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":"AAKA,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;IAC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C,qBAAqB;IAI7B,8EAA8E;YAChE,sBAAsB;IAcpC,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,gBAAgB;IAYxB,uFAAuF;YACzE,sBAAsB;IAsBpC,mFAAmF;YACrE,eAAe;YAuDf,mBAAmB;IA0BjC,OAAO,CAAC,YAAY;YAUN,cAAc;YAuBd,oBAAoB;IAgHlC;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CA4B/B"}
|
|
@@ -4,6 +4,9 @@ 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 OutputFiles_1 = require("../output/OutputFiles");
|
|
8
|
+
const OutputSnapshots_1 = require("../output/OutputSnapshots");
|
|
9
|
+
const OutputLinks_1 = require("../output/OutputLinks");
|
|
7
10
|
const DelegatedWorkspaceManager_1 = require("../delegation/DelegatedWorkspaceManager");
|
|
8
11
|
const FileInbox_1 = require("../files/FileInbox");
|
|
9
12
|
const DeviceIdentity_1 = require("../files/DeviceIdentity");
|
|
@@ -196,6 +199,7 @@ class MessageHandler {
|
|
|
196
199
|
delegation;
|
|
197
200
|
delegationBridges = new Map();
|
|
198
201
|
fileInbox;
|
|
202
|
+
outputFiles;
|
|
199
203
|
imageDeliveries = new Map();
|
|
200
204
|
imageConnectionEpoch = 0;
|
|
201
205
|
constructor(wsClient, threadPool, threadManager, directoryGuard, config) {
|
|
@@ -208,6 +212,7 @@ class MessageHandler {
|
|
|
208
212
|
this.imageConnectionEpoch++;
|
|
209
213
|
this.routerVersion = undefined;
|
|
210
214
|
this.fileInbox?.disconnect();
|
|
215
|
+
this.outputFiles?.disconnect();
|
|
211
216
|
for (const delivery of this.imageDeliveries.values())
|
|
212
217
|
delivery.invalidatePending();
|
|
213
218
|
});
|
|
@@ -318,6 +323,10 @@ class MessageHandler {
|
|
|
318
323
|
this.wsClient.send(result);
|
|
319
324
|
}
|
|
320
325
|
return;
|
|
326
|
+
case 'output_registered':
|
|
327
|
+
case 'output_grant':
|
|
328
|
+
this.outputFiles?.handle(message);
|
|
329
|
+
return;
|
|
321
330
|
case 'file_pending':
|
|
322
331
|
if (this.fileInbox)
|
|
323
332
|
await this.fileInbox.accept(message);
|
|
@@ -338,6 +347,24 @@ class MessageHandler {
|
|
|
338
347
|
if (data?.success !== true)
|
|
339
348
|
return;
|
|
340
349
|
this.routerVersion = typeof data.routerVersion === 'string' ? data.routerVersion : undefined;
|
|
350
|
+
if (data.capabilities?.outputFilesV1 === true) {
|
|
351
|
+
try {
|
|
352
|
+
if (!this.outputFiles) {
|
|
353
|
+
const server = this.config.get('serverUrl');
|
|
354
|
+
const namespace = (0, crypto_1.createHash)('sha256').update((0, DeviceIdentity_1.fileOrigin)(server)).digest('hex');
|
|
355
|
+
this.outputFiles = new OutputFiles_1.OutputFiles(new OutputSnapshots_1.OutputSnapshots(path_1.default.join(this.config.getConfigDir(), 'output-files', namespace), this.config.get('outputFiles')), server, value => this.wsClient.send(value));
|
|
356
|
+
await this.outputFiles.initialize();
|
|
357
|
+
}
|
|
358
|
+
this.outputFiles.connect();
|
|
359
|
+
}
|
|
360
|
+
catch {
|
|
361
|
+
await this.outputFiles?.destroy();
|
|
362
|
+
this.outputFiles = undefined;
|
|
363
|
+
console.error('[OutputFiles] Snapshot storage is unavailable.');
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
else
|
|
367
|
+
this.outputFiles?.disconnect();
|
|
341
368
|
if (data.capabilities?.fileTransferV1 === true && !this.fileInbox) {
|
|
342
369
|
try {
|
|
343
370
|
const fileServer = this.config.get('serverUrl');
|
|
@@ -2278,6 +2305,7 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
2278
2305
|
let executionMetadata;
|
|
2279
2306
|
let requestFinished = false;
|
|
2280
2307
|
let imageDelivery;
|
|
2308
|
+
const outputExports = new Map();
|
|
2281
2309
|
let executionActive = false;
|
|
2282
2310
|
let lastProgramState;
|
|
2283
2311
|
const activity = new ActivityProgress_1.ActivityProgress(snapshot => {
|
|
@@ -2384,6 +2412,15 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
2384
2412
|
onApproval: (request, child) => isCurrent() && this.forwardApproval(request, child, messageId, threadId, true),
|
|
2385
2413
|
onApprovalResolved: (id, status) => { if (isCurrent())
|
|
2386
2414
|
this.resolveApprovalCard(id, status); },
|
|
2415
|
+
onVerifiedExports: exports => {
|
|
2416
|
+
for (const entry of exports)
|
|
2417
|
+
if (outputExports.size < 100)
|
|
2418
|
+
outputExports.set(entry.file, entry);
|
|
2419
|
+
},
|
|
2420
|
+
onOutputFiles: this.outputFiles ? async (links, cwd, taskId, final) => {
|
|
2421
|
+
await this.outputFiles.capture(links, { messageId, threadId, taskId,
|
|
2422
|
+
generation: thread?.delegationWorkspaceGeneration ?? 0, cwd, source: 'worker' }, final);
|
|
2423
|
+
} : undefined,
|
|
2387
2424
|
isWorkspaceBusy: cwd => this.threadManager.listThreads().some(other => {
|
|
2388
2425
|
if (other.id === threadId && isCurrent() || !this.threadPool.isThreadBusy(other.id))
|
|
2389
2426
|
return false;
|
|
@@ -2415,6 +2452,7 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
2415
2452
|
return;
|
|
2416
2453
|
this.notificationAdapter.sendTaskNotification({ ...notification, threadId }, openId);
|
|
2417
2454
|
};
|
|
2455
|
+
const outputLinks = new OutputLinks_1.OutputLinks();
|
|
2418
2456
|
const imageCwd = thread?.workingDirectory ?? executor.getCurrentWorkingDirectory();
|
|
2419
2457
|
const imageGeneration = thread?.delegationWorkspaceGeneration ?? 0;
|
|
2420
2458
|
const imageBackend = this.threadPool.getBackendKey(threadId);
|
|
@@ -2462,6 +2500,7 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
2462
2500
|
onApprovalResolved: (requestId, status) => { if (isCurrent())
|
|
2463
2501
|
this.resolveApprovalCard(requestId, status); },
|
|
2464
2502
|
onTaskNotification,
|
|
2503
|
+
onDisplayText: (chunk) => outputLinks.append(chunk),
|
|
2465
2504
|
onStream: (chunk) => {
|
|
2466
2505
|
streamedAny = true;
|
|
2467
2506
|
if (this.sendStreamChunk(messageId, threadId, chunk))
|
|
@@ -2541,6 +2580,8 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
2541
2580
|
const canPublish = () => isCurrent() && active && (!scope || (!scope.isClosed() && !scope.hasPendingResults()));
|
|
2542
2581
|
const guardedOptions = {
|
|
2543
2582
|
...options,
|
|
2583
|
+
onDisplayText: text => { if (canPublish())
|
|
2584
|
+
options.onDisplayText?.(text); },
|
|
2544
2585
|
onActivity: options.onActivity ? snapshot => {
|
|
2545
2586
|
if (!isCurrent() || !active || requestFinished || this.isDestroyed || this.abortOperations.has(threadId))
|
|
2546
2587
|
return;
|
|
@@ -2622,6 +2663,10 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
2622
2663
|
const visibleResult = imageTextDropped || this.imageConnectionEpoch !== imageEpoch
|
|
2623
2664
|
|| (scope && (suppressed || scope.hasPendingResults())) ? '' : result.output ?? '';
|
|
2624
2665
|
queueLocalImages(visibleResult);
|
|
2666
|
+
if (this.outputFiles) {
|
|
2667
|
+
await this.outputFiles.capture(outputLinks, { messageId, threadId, taskId: messageId,
|
|
2668
|
+
generation: imageGeneration, cwd: imageCwd, source: 'workspace', exports: [...outputExports.values()] }, visibleResult);
|
|
2669
|
+
}
|
|
2625
2670
|
await imageDelivery?.drain();
|
|
2626
2671
|
}
|
|
2627
2672
|
assertCoordinatorActive();
|
|
@@ -3376,6 +3421,7 @@ You can also use natural language commands to control Claude Code CLI.`,
|
|
|
3376
3421
|
delivery.cancel();
|
|
3377
3422
|
this.imageDeliveries.clear();
|
|
3378
3423
|
await this.fileInbox?.destroy();
|
|
3424
|
+
await this.outputFiles?.destroy();
|
|
3379
3425
|
this.notificationAdapter.unregister();
|
|
3380
3426
|
try {
|
|
3381
3427
|
const results = await Promise.allSettled([
|