@yu_robotics/remote-cli 1.6.225 → 1.6.227

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.
Files changed (51) hide show
  1. package/README.md +9 -1
  2. package/dist/client/MessageHandler.d.ts +1 -0
  3. package/dist/client/MessageHandler.d.ts.map +1 -1
  4. package/dist/client/MessageHandler.js +21 -7
  5. package/dist/client/MessageHandler.js.map +1 -1
  6. package/dist/client/TaskRecovery.d.ts +2 -1
  7. package/dist/client/TaskRecovery.d.ts.map +1 -1
  8. package/dist/client/TaskRecovery.js +13 -3
  9. package/dist/client/TaskRecovery.js.map +1 -1
  10. package/dist/client/WebSocketClient.d.ts.map +1 -1
  11. package/dist/client/WebSocketClient.js +2 -1
  12. package/dist/client/WebSocketClient.js.map +1 -1
  13. package/dist/executor/AgyExecutor.d.ts.map +1 -1
  14. package/dist/executor/AgyExecutor.js +2 -0
  15. package/dist/executor/AgyExecutor.js.map +1 -1
  16. package/dist/executor/ClaudePersistentExecutor.d.ts +1 -0
  17. package/dist/executor/ClaudePersistentExecutor.d.ts.map +1 -1
  18. package/dist/executor/ClaudePersistentExecutor.js +17 -7
  19. package/dist/executor/ClaudePersistentExecutor.js.map +1 -1
  20. package/dist/executor/CodexAppServerExecutor.d.ts.map +1 -1
  21. package/dist/executor/CodexAppServerExecutor.js +16 -2
  22. package/dist/executor/CodexAppServerExecutor.js.map +1 -1
  23. package/dist/maintenance/release-notes.json +1 -1
  24. package/dist/output/OutputDiagnostics.d.ts +9 -0
  25. package/dist/output/OutputDiagnostics.d.ts.map +1 -0
  26. package/dist/output/OutputDiagnostics.js +35 -0
  27. package/dist/output/OutputDiagnostics.js.map +1 -0
  28. package/dist/output/OutputFiles.d.ts +3 -0
  29. package/dist/output/OutputFiles.d.ts.map +1 -1
  30. package/dist/output/OutputFiles.js +13 -10
  31. package/dist/output/OutputFiles.js.map +1 -1
  32. package/dist/output/OutputLinks.d.ts +4 -2
  33. package/dist/output/OutputLinks.d.ts.map +1 -1
  34. package/dist/output/OutputLinks.js +30 -8
  35. package/dist/output/OutputLinks.js.map +1 -1
  36. package/dist/output/Protocol.d.ts +6 -0
  37. package/dist/output/Protocol.d.ts.map +1 -1
  38. package/dist/output/Protocol.js +9 -0
  39. package/dist/output/Protocol.js.map +1 -1
  40. package/dist/types/index.d.ts +3 -0
  41. package/dist/types/index.d.ts.map +1 -1
  42. package/dist/types/index.js.map +1 -1
  43. package/native/prebuilds/darwin-arm64/managed_native.node +0 -0
  44. package/native/prebuilds/darwin-arm64/manifest.json +1 -1
  45. package/native/prebuilds/darwin-x64/managed_native.node +0 -0
  46. package/native/prebuilds/darwin-x64/manifest.json +1 -1
  47. package/native/prebuilds/win32-arm64/managed_native.node +0 -0
  48. package/native/prebuilds/win32-arm64/manifest.json +1 -1
  49. package/native/prebuilds/win32-x64/managed_native.node +0 -0
  50. package/native/prebuilds/win32-x64/manifest.json +1 -1
  51. package/package.json +1 -1
package/README.md CHANGED
@@ -871,7 +871,15 @@ See the project [CHANGELOG.md](../../CHANGELOG.md) for release notes and user-vi
871
871
 
872
872
  ## Retrieve Output Files
873
873
 
874
- Worker file links are captured as private snapshots before temporary workspaces are reclaimed. Worker output does not directly create file cards or export-failure notices. A file becomes visible only when the coordinator explicitly selects it in its reply; selection uses the existing snapshot or a verified export instead of rereading a removed worker path. Unselected worker snapshots stay hidden across timers, reconnects and restarts, and retain the same quotas and expiry. Direct coordinator-file failures still produce a notice. Previously published receipts remain usable so existing file cards are not withdrawn. New worker receipts use a private filename format that older clients do not load; a hidden snapshot does not become public merely by downgrading the CLI.
874
+ From CLI and Router 1.6.227, new attachments use a compact Files panel inside the original assistant execution card, with four rows per page when space allows. All selections remain reachable through pagination. Retrieval starts only on a manual Get file click; transfer state and valid retries update that same card. The Router binds controls to the actual final card in a long reply and privately journals the complete body and owner/device/thread boundary for late offers and restart recovery (100 parents, 8 MiB total). Hint-only parents expire 24 hours after admission. A parent with verified owned references is retained through their latest fixed snapshot expiry, measured from capture; clicks and restarts never renew that expiry. Recovery checks durable source/reference ownership, and only a matching unpublished pending binding may move to a recovery card. Orphaned references with a missing parent journal stay held rather than being attached to a replacement card. Capacity pressure evicts dormant reply bodies without verified file references first. If the complete body or binding cannot be recovered safely, controls remain held; no replacement standalone file card is created. Existing published standalone cards and transfer receipts remain usable without retargeting. Unknown send outcomes never trigger blind replay.
875
+
876
+ A negotiated display-only hint can show a grey unavailable control when file retrieval is disabled, approval is pending, or the CLI lacks file support. Hints contain sanitized basenames only, do not prove file existence, and never authorize file reads. The CLI does not snapshot candidate files while file capability is disabled. Approved offline references can still queue or use a verified Router copy. Preparation failures stay quiet rather than producing standalone count-only alerts; an unprepared attachment remains unavailable rather than being marked delivered. Internal diagnostics contain bounded reason codes and hashed request/path correlations, without filenames, paths, contents, or raw errors.
877
+
878
+ Prepare intended deliverables in a visible path within the current approved workspace, such as `output/report.csv`, or an already explicitly authorized export root. Continue using the exact Markdown title `attachment`. Hidden directories, application state, and unapproved temporary locations retain their existing guards; do not copy protected files elsewhere to bypass them. Ordinary citations and private worker discoveries remain silent.
879
+
880
+ From CLI 1.6.226, a newly offered attachment requires a trusted assistant link with the exact Markdown title `attachment`, for example `[Report](./report.md "attachment")`. Ordinary untitled source citations, line-position links, tools, thinking, stderr, web links, and code examples create neither Get file offers nor unavailable notices. Attachments select whole files without fragments or line positions; source files can be deliberate attachments too. Capability-enabled coordinator requests receive this syntax as per-request guidance, including continuations, without modifying saved settings. Worker links remain private snapshots even when marked; only explicit coordinator selection promotes an authorized snapshot or verified export after reclamation. Existing published cards and receipts retain their permissions, transfer behavior, and expiry. In CLI 1.6.226, missing or denied deliberate attachments could still produce bounded notices; 1.6.227 suppresses these preparation alerts. Upgrade the CLI to activate selection; the existing Router capability and text/image presentation remain unchanged.
881
+
882
+ Worker file links are captured as private snapshots before temporary workspaces are reclaimed. Worker output does not directly create file cards or export-failure notices. A file becomes visible only when the coordinator explicitly selects it in its reply; selection uses the existing snapshot or a verified export instead of rereading a removed worker path. Unselected worker snapshots stay hidden across timers, reconnects and restarts, and retain the same quotas and expiry. Preparation failures now remain quiet; unavailable attachment hints do not claim delivery. Previously published receipts remain usable so existing file cards are not withdrawn. New worker receipts use a private filename format that older clients do not load; a hidden snapshot does not become public merely by downgrading the CLI.
875
883
 
876
884
  From CLI and Router 1.6.224, existing initialized devices automatically request file-key approval over a supported HTTPS connection when Router files are enabled. Feishu sends the existing bound owner one approval card; no terminal enrollment command or copied binding code is needed. Devices that already authenticate with an approved key do not show another card. Preparing a local key alone does not approve it. Text operation remains available while approval is pending; successful approval reconnects the CLI with its saved key.
877
885
 
@@ -60,6 +60,7 @@ export declare class MessageHandler {
60
60
  private fileInbox?;
61
61
  private outputFiles?;
62
62
  private readonly imageDeliveries;
63
+ private attachmentHintsSupported;
63
64
  private imageConnectionEpoch;
64
65
  constructor(wsClient: WebSocketClient, threadPool: ThreadExecutorPool, threadManager: ThreadManager, directoryGuard: DirectoryGuard, config: ConfigManager);
65
66
  reconcilePendingDelegatedWorkers(): Promise<void>;
@@ -1 +1 @@
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;CAC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OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CA4B/B"}
@@ -201,6 +201,7 @@ class MessageHandler {
201
201
  fileInbox;
202
202
  outputFiles;
203
203
  imageDeliveries = new Map();
204
+ attachmentHintsSupported = false;
204
205
  imageConnectionEpoch = 0;
205
206
  constructor(wsClient, threadPool, threadManager, directoryGuard, config) {
206
207
  this.wsClient = wsClient;
@@ -346,6 +347,7 @@ class MessageHandler {
346
347
  const data = message.data;
347
348
  if (data?.success !== true)
348
349
  return;
350
+ this.attachmentHintsSupported = data.capabilities?.outputAttachmentHintsV1 === true;
349
351
  this.routerVersion = typeof data.routerVersion === 'string' ? data.routerVersion : undefined;
350
352
  if (data.capabilities?.outputFilesV1 === true) {
351
353
  try {
@@ -364,7 +366,7 @@ class MessageHandler {
364
366
  }
365
367
  }
366
368
  else
367
- this.outputFiles?.disconnect();
369
+ this.outputFiles?.disable();
368
370
  if (data.capabilities?.fileTransferV1 === true && !this.fileInbox) {
369
371
  try {
370
372
  const fileServer = this.config.get('serverUrl');
@@ -2305,6 +2307,7 @@ You can also use natural language commands to control Claude Code CLI.`,
2305
2307
  let executionMetadata;
2306
2308
  let requestFinished = false;
2307
2309
  let imageDelivery;
2310
+ let outputAttachmentHints;
2308
2311
  const outputExports = new Map();
2309
2312
  let executionActive = false;
2310
2313
  let lastProgramState;
@@ -2366,7 +2369,7 @@ You can also use natural language commands to control Claude Code CLI.`,
2366
2369
  }
2367
2370
  const responseError = fromQueue && !success
2368
2371
  ? this.pauseQueueAfterFailure(threadId, error || 'Queued command failed') : error;
2369
- this.sendResponse(messageId, threadId, { success, error: responseError, threads: this.threadPool.getSummaries(), executionMetadata });
2372
+ this.sendResponse(messageId, threadId, { success, error: responseError, threads: this.threadPool.getSummaries(), executionMetadata, attachmentHints: outputAttachmentHints });
2370
2373
  if (fromQueue)
2371
2374
  console.log(`[MessageHandler] Finished queued message ${messageId} in thread ${threadId}: success=${success}, remaining=${this.threadQueues.get(threadId)?.length ?? 0}, paused=${this.pausedQueues.has(threadId)}`);
2372
2375
  return success;
@@ -2645,9 +2648,14 @@ You can also use natural language commands to control Claude Code CLI.`,
2645
2648
  if (goalActivation && this.pendingGoalActivations.get(threadId) === goalActivation) {
2646
2649
  this.pendingGoalActivations.delete(threadId);
2647
2650
  }
2648
- const result = goalRequest
2649
- ? await executor.executeGoal(goalRequest, guardedOptions)
2650
- : await executor.execute(prompt, guardedOptions);
2651
+ // Reapply guidance to every request, including native continuations. Never persist it in user config.
2652
+ const attachments = this.outputFiles?.isEnabled() || this.attachmentHintsSupported;
2653
+ const guidedPrompt = attachments ? `${prompt}\n\n${OutputLinks_1.ATTACHMENT_GUIDANCE}` : prompt;
2654
+ const guidedGoal = goalRequest && attachments && goalRequest.objective
2655
+ ? { ...goalRequest, objective: `${goalRequest.objective}\n\n${OutputLinks_1.ATTACHMENT_GUIDANCE}` } : goalRequest;
2656
+ const result = guidedGoal
2657
+ ? await executor.executeGoal(guidedGoal, guardedOptions)
2658
+ : await executor.execute(guidedPrompt, guardedOptions);
2651
2659
  if (goalRequest && !streamedAny && result.output)
2652
2660
  guardedOptions.onStream?.(result.output);
2653
2661
  executionMetadata = (0, ExecutionMetadata_1.mergeReportedExecutionMetadata)(launchMetadata, (0, ExecutionMetadata_1.captureExecutionMetadata)(executor, backend));
@@ -2664,9 +2672,14 @@ You can also use natural language commands to control Claude Code CLI.`,
2664
2672
  const visibleResult = imageTextDropped || this.imageConnectionEpoch !== imageEpoch
2665
2673
  || (scope && (suppressed || scope.hasPendingResults())) ? '' : result.output ?? '';
2666
2674
  queueLocalImages(visibleResult);
2667
- if (this.outputFiles) {
2675
+ if (this.attachmentHintsSupported) {
2676
+ const names = outputLinks.attachmentNames();
2677
+ if (names.length)
2678
+ outputAttachmentHints = { generation: outputGeneration, names: [...new Set([...(outputAttachmentHints?.names ?? []), ...names])].slice(0, 16) };
2679
+ }
2680
+ if (this.outputFiles?.isEnabled()) {
2668
2681
  await this.outputFiles.capture(outputLinks, { messageId, threadId, taskId: messageId, owner: openId,
2669
- generation: outputGeneration, cwd: imageCwd, source: 'workspace', exports: [...outputExports.values()] }, visibleResult);
2682
+ generation: outputGeneration, cwd: imageCwd, source: 'workspace', exports: [...outputExports.values()] });
2670
2683
  }
2671
2684
  await imageDelivery?.drain();
2672
2685
  }
@@ -3081,6 +3094,7 @@ You can also use natural language commands to control Claude Code CLI.`,
3081
3094
  threads: result.threads,
3082
3095
  queueConfirmation: result.queueConfirmation,
3083
3096
  ...(result.executionMetadata ? { executionMetadata: result.executionMetadata } : {}),
3097
+ ...(this.attachmentHintsSupported && result.attachmentHints ? { attachmentHints: result.attachmentHints } : {}),
3084
3098
  ...(this.settingsCardsSupported && result.settingsMenu
3085
3099
  && (result.settingsMenu.kind !== 'delegation' || this.delegationCardsSupported)
3086
3100
  && (result.settingsMenu.kind !== 'directory' || this.directoryCardsSupported) ? { settingsMenu: result.settingsMenu } : {}),