@yu_robotics/remote-cli 1.6.226 → 1.6.228

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 (44) hide show
  1. package/README.md +14 -2
  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 +14 -9
  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/hooks/FeishuNotificationAdapter.d.ts +4 -18
  14. package/dist/hooks/FeishuNotificationAdapter.d.ts.map +1 -1
  15. package/dist/hooks/FeishuNotificationAdapter.js +8 -58
  16. package/dist/hooks/FeishuNotificationAdapter.js.map +1 -1
  17. package/dist/maintenance/release-notes.json +1 -1
  18. package/dist/output/OutputDiagnostics.d.ts +9 -0
  19. package/dist/output/OutputDiagnostics.d.ts.map +1 -0
  20. package/dist/output/OutputDiagnostics.js +35 -0
  21. package/dist/output/OutputDiagnostics.js.map +1 -0
  22. package/dist/output/OutputFiles.d.ts.map +1 -1
  23. package/dist/output/OutputFiles.js +6 -8
  24. package/dist/output/OutputFiles.js.map +1 -1
  25. package/dist/output/OutputLinks.d.ts +2 -1
  26. package/dist/output/OutputLinks.d.ts.map +1 -1
  27. package/dist/output/OutputLinks.js +6 -1
  28. package/dist/output/OutputLinks.js.map +1 -1
  29. package/dist/output/Protocol.d.ts +6 -0
  30. package/dist/output/Protocol.d.ts.map +1 -1
  31. package/dist/output/Protocol.js +9 -0
  32. package/dist/output/Protocol.js.map +1 -1
  33. package/dist/types/index.d.ts +3 -0
  34. package/dist/types/index.d.ts.map +1 -1
  35. package/dist/types/index.js.map +1 -1
  36. package/native/prebuilds/darwin-arm64/managed_native.node +0 -0
  37. package/native/prebuilds/darwin-arm64/manifest.json +1 -1
  38. package/native/prebuilds/darwin-x64/managed_native.node +0 -0
  39. package/native/prebuilds/darwin-x64/manifest.json +1 -1
  40. package/native/prebuilds/win32-arm64/managed_native.node +0 -0
  41. package/native/prebuilds/win32-arm64/manifest.json +1 -1
  42. package/native/prebuilds/win32-x64/managed_native.node +0 -0
  43. package/native/prebuilds/win32-x64/manifest.json +1 -1
  44. package/package.json +1 -1
package/README.md CHANGED
@@ -53,6 +53,12 @@ result barriers. Worker activity also requires `delegationProgress`. Older peers
53
53
  keep their existing behavior; no percentage, model call, or prompt is added. See
54
54
  [Public Activity](../../README.md#public-activity) for provider coverage limits.
55
55
 
56
+ ### Background Task Notifications
57
+
58
+ From CLI and Router 1.6.228, standalone native background-task terminal cards are retired. The CLI no longer publishes Claude Code hook or Codex callback completions as `task_notification` frames, including with legacy notification settings or explicit enable calls. The Router quietly discards these frames from older clients without creating cards, text fallbacks, or new reply associations. Existing main replies and their thread routing continue normally; no new setting or migration is required.
59
+
60
+ Native background work and internal completion processing continue. Codex still consumes and deduplicates terminal items so late background output does not enter another turn. Authorization and waiting-for-input prompts, device/file approval, maintenance cards, managed worker progress and closeout, and inline attachment retrieval retain their existing behavior. This change does not delete native history, task results, or previously published messages.
61
+
56
62
  ## Maintenance Notices
57
63
 
58
64
  From CLI and Router 1.6.127, upgrade notices use concise Chinese summaries from `RELEASE_NOTES_ZH.md`, with one short title and bounded user-visible changes per release. `CHANGELOG.md` remains the English technical record. The CLI build requires matching current-version entries in both documents and bundles both, without online translation or model calls. New Routers show summaries directly and collapse technical details. Earlier maintenance-capable Routers show the summary in their existing collapsed panels; new Routers keep older CLI notes collapsed when no technical-details field is present. Cumulative ranges, silent first adoption, delivery acknowledgements, and protocol version 1 are unchanged.
@@ -871,9 +877,15 @@ See the project [CHANGELOG.md](../../CHANGELOG.md) for release notes and user-vi
871
877
 
872
878
  ## Retrieve Output Files
873
879
 
874
- 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. Missing or denied deliberate attachments can still produce bounded notices. Upgrade the CLI to activate selection; the existing Router capability and text/image presentation remain unchanged.
880
+ 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.
881
+
882
+ 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.
883
+
884
+ 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.
885
+
886
+ 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.
875
887
 
876
- 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. Failures for explicitly attached coordinator files 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.
888
+ 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.
877
889
 
878
890
  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.
879
891
 
@@ -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;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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wBAAwB;IAatC;;;;;;;;;;;;;OAaG;YACW,mBAAmB;IAiEjC;;;OAGG;YACW,uBAAuB;IA2ErC;;OAEG;YACW,cAAc;IAwc5B,gGAAgG;YAClF,0BAA0B;YAU1B,sBAAsB;IAoBpC,OAAO,CAAC,4BAA4B;IAOpC,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,sBAAsB;IAuB9B,iFAAiF;IACjF,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,sBAAsB;IAyB9B,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,oBAAoB;IAe5B,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,SAAS;IAiBjB,OAAO,CAAC,qBAAqB;IAmB7B,OAAO,CAAC,YAAY;IA6DpB,OAAO,CAAC,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"}
@@ -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 {
@@ -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;
@@ -2446,13 +2449,9 @@ You can also use natural language commands to control Claude Code CLI.`,
2446
2449
  else if (thread?.delegationBackends?.includes(this.threadPool.getBackendKey(threadId)) && executor.configureDelegation) {
2447
2450
  await executor.configureDelegation(undefined);
2448
2451
  }
2449
- const onTaskNotification = (notification) => {
2450
- if (this.isDestroyed || !this.threadManager.getThread(threadId)
2451
- || (this.conversationRevisions.get(threadId) ?? 0) !== conversationRevision
2452
- || (this.threadManager.getThread(threadId)?.delegationWorkspaceGeneration ?? 0) !== (thread?.delegationWorkspaceGeneration ?? 0))
2453
- return;
2454
- this.notificationAdapter.sendTaskNotification({ ...notification, threadId }, openId);
2455
- };
2452
+ // Retain the callback so native completion tracking consumes late items
2453
+ // and deduplicates them without adding background output to another turn.
2454
+ const onTaskNotification = (_notification) => { };
2456
2455
  const outputLinks = new OutputLinks_1.OutputLinks();
2457
2456
  const imageCwd = thread?.workingDirectory ?? executor.getCurrentWorkingDirectory();
2458
2457
  const imageGeneration = thread?.delegationWorkspaceGeneration ?? 0;
@@ -2646,7 +2645,7 @@ You can also use natural language commands to control Claude Code CLI.`,
2646
2645
  this.pendingGoalActivations.delete(threadId);
2647
2646
  }
2648
2647
  // Reapply guidance to every request, including native continuations. Never persist it in user config.
2649
- const attachments = this.outputFiles?.isEnabled();
2648
+ const attachments = this.outputFiles?.isEnabled() || this.attachmentHintsSupported;
2650
2649
  const guidedPrompt = attachments ? `${prompt}\n\n${OutputLinks_1.ATTACHMENT_GUIDANCE}` : prompt;
2651
2650
  const guidedGoal = goalRequest && attachments && goalRequest.objective
2652
2651
  ? { ...goalRequest, objective: `${goalRequest.objective}\n\n${OutputLinks_1.ATTACHMENT_GUIDANCE}` } : goalRequest;
@@ -2669,6 +2668,11 @@ You can also use natural language commands to control Claude Code CLI.`,
2669
2668
  const visibleResult = imageTextDropped || this.imageConnectionEpoch !== imageEpoch
2670
2669
  || (scope && (suppressed || scope.hasPendingResults())) ? '' : result.output ?? '';
2671
2670
  queueLocalImages(visibleResult);
2671
+ if (this.attachmentHintsSupported) {
2672
+ const names = outputLinks.attachmentNames();
2673
+ if (names.length)
2674
+ outputAttachmentHints = { generation: outputGeneration, names: [...new Set([...(outputAttachmentHints?.names ?? []), ...names])].slice(0, 16) };
2675
+ }
2672
2676
  if (this.outputFiles?.isEnabled()) {
2673
2677
  await this.outputFiles.capture(outputLinks, { messageId, threadId, taskId: messageId, owner: openId,
2674
2678
  generation: outputGeneration, cwd: imageCwd, source: 'workspace', exports: [...outputExports.values()] });
@@ -3086,6 +3090,7 @@ You can also use natural language commands to control Claude Code CLI.`,
3086
3090
  threads: result.threads,
3087
3091
  queueConfirmation: result.queueConfirmation,
3088
3092
  ...(result.executionMetadata ? { executionMetadata: result.executionMetadata } : {}),
3093
+ ...(this.attachmentHintsSupported && result.attachmentHints ? { attachmentHints: result.attachmentHints } : {}),
3089
3094
  ...(this.settingsCardsSupported && result.settingsMenu
3090
3095
  && (result.settingsMenu.kind !== 'delegation' || this.delegationCardsSupported)
3091
3096
  && (result.settingsMenu.kind !== 'directory' || this.directoryCardsSupported) ? { settingsMenu: result.settingsMenu } : {}),