@yu_robotics/remote-cli 1.6.210 → 1.6.215

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 (63) hide show
  1. package/README.md +4 -0
  2. package/dist/client/MessageHandler.d.ts.map +1 -1
  3. package/dist/client/MessageHandler.js +6 -4
  4. package/dist/client/MessageHandler.js.map +1 -1
  5. package/dist/delegation/DelegatedWorkerLaneCleanup.d.ts.map +1 -1
  6. package/dist/delegation/DelegatedWorkerLaneCleanup.js +2 -22
  7. package/dist/delegation/DelegatedWorkerLaneCleanup.js.map +1 -1
  8. package/dist/delegation/DelegatedWorkerSessionStore.d.ts +25 -1
  9. package/dist/delegation/DelegatedWorkerSessionStore.d.ts.map +1 -1
  10. package/dist/delegation/DelegatedWorkerSessionStore.js +191 -14
  11. package/dist/delegation/DelegatedWorkerSessionStore.js.map +1 -1
  12. package/dist/delegation/DelegatedWorkspaceManager.d.ts +2 -0
  13. package/dist/delegation/DelegatedWorkspaceManager.d.ts.map +1 -1
  14. package/dist/delegation/DelegatedWorkspaceManager.js +1 -1
  15. package/dist/delegation/DelegatedWorkspaceManager.js.map +1 -1
  16. package/dist/delegation/DelegationManager.d.ts +14 -1
  17. package/dist/delegation/DelegationManager.d.ts.map +1 -1
  18. package/dist/delegation/DelegationManager.js +158 -11
  19. package/dist/delegation/DelegationManager.js.map +1 -1
  20. package/dist/delegation/KimiSessionDeletion.d.ts +20 -0
  21. package/dist/delegation/KimiSessionDeletion.d.ts.map +1 -0
  22. package/dist/delegation/KimiSessionDeletion.js +102 -0
  23. package/dist/delegation/KimiSessionDeletion.js.map +1 -0
  24. package/dist/delegation/LinuxHistoryAnchor.d.ts +24 -0
  25. package/dist/delegation/LinuxHistoryAnchor.d.ts.map +1 -0
  26. package/dist/delegation/LinuxHistoryAnchor.js +161 -0
  27. package/dist/delegation/LinuxHistoryAnchor.js.map +1 -0
  28. package/dist/delegation/NativeHistoryFiles.d.ts +89 -0
  29. package/dist/delegation/NativeHistoryFiles.d.ts.map +1 -0
  30. package/dist/delegation/NativeHistoryFiles.js +356 -0
  31. package/dist/delegation/NativeHistoryFiles.js.map +1 -0
  32. package/dist/delegation/NativeSessionDeletion.d.ts +81 -0
  33. package/dist/delegation/NativeSessionDeletion.d.ts.map +1 -0
  34. package/dist/delegation/NativeSessionDeletion.js +443 -0
  35. package/dist/delegation/NativeSessionDeletion.js.map +1 -0
  36. package/dist/executor/AcpExecutor.d.ts +14 -0
  37. package/dist/executor/AcpExecutor.d.ts.map +1 -1
  38. package/dist/executor/AcpExecutor.js +104 -5
  39. package/dist/executor/AcpExecutor.js.map +1 -1
  40. package/dist/executor/ClaudePersistentExecutor.d.ts +10 -0
  41. package/dist/executor/ClaudePersistentExecutor.d.ts.map +1 -1
  42. package/dist/executor/ClaudePersistentExecutor.js +94 -0
  43. package/dist/executor/ClaudePersistentExecutor.js.map +1 -1
  44. package/dist/executor/CodexAppServerExecutor.d.ts +6 -0
  45. package/dist/executor/CodexAppServerExecutor.d.ts.map +1 -1
  46. package/dist/executor/CodexAppServerExecutor.js +25 -0
  47. package/dist/executor/CodexAppServerExecutor.js.map +1 -1
  48. package/dist/executor/IExecutor.d.ts +3 -0
  49. package/dist/executor/IExecutor.d.ts.map +1 -1
  50. package/dist/executor/KimiExecutor.d.ts.map +1 -1
  51. package/dist/executor/KimiExecutor.js +11 -0
  52. package/dist/executor/KimiExecutor.js.map +1 -1
  53. package/dist/executor/PiExecutor.d.ts +14 -0
  54. package/dist/executor/PiExecutor.d.ts.map +1 -1
  55. package/dist/executor/PiExecutor.js +142 -5
  56. package/dist/executor/PiExecutor.js.map +1 -1
  57. package/dist/executor/acp/AcpClient.d.ts.map +1 -1
  58. package/dist/executor/acp/AcpClient.js +3 -1
  59. package/dist/executor/acp/AcpClient.js.map +1 -1
  60. package/dist/executor/pi/PiTypes.js +2 -2
  61. package/dist/executor/pi/PiTypes.js.map +1 -1
  62. package/dist/maintenance/release-notes.json +1 -1
  63. package/package.json +1 -1
package/README.md CHANGED
@@ -162,6 +162,10 @@ From CLI 1.6.119, Linux and macOS startup append deterministic backend installat
162
162
 
163
163
  ## Commands
164
164
 
165
+ From CLI 1.6.211, `/clear` and `/new` request permanent deletion of managed worker native sessions from the previous parent conversation. Worker context reuse remains available until that reset. Cleanup waits for confirmed worker shutdown and never substitutes archiving. From CLI 1.6.212, the Linux cleanup queue also supports newly recorded Kimi, Claude, and Pi sessions with the audited version-3 JSONL format. Kimi uses its native ACP deletion capability; Claude and Pi remove exact owned history paths using durable deletion manifests and verified directory descriptors; Linux procfs must be available. Parent-directory replacement cannot redirect those deletion operations. This is not an OS sandbox, and leaf identity checks and deletion are not atomic against another process running as the same user. New managed Pi lanes use separate session directories. From CLI 1.6.214, Codex cleanup checks the native list/read/delete protocol and returned metadata instead of requiring one CLI version. Compatible releases retain the same ownership, confirmed-exit, and no-native-descendants checks; unavailable methods and incompatible responses leave cleanup pending. Saved cleanup receipts remain usable after an upgrade. From CLI 1.6.215, Kimi cleanup checks ACP protocol and deletion capabilities, while Claude cleanup validates the owned history layout and session identity instead of requiring an exact installed backend version. Unsupported protocols or history formats remain held; existing deletion receipts remain immutable and retryable.
166
+
167
+ 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. The other four backends and non-Linux exit confirmation remain unsupported. 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. Other native backend deletion and macOS/Windows acceptance remain unverified. 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.
168
+
165
169
  | Command | Description |
166
170
  |---------|-------------|
167
171
  | `remote-cli init -s <url>` | Initialize and generate binding code |
@@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AgBtB,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;IA2DpB,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;CA2B/B"}
@@ -1022,12 +1022,14 @@ class MessageHandler {
1022
1022
  }
1023
1023
  const active = this.cancelThreadOperation(threadId);
1024
1024
  this.detachDelegationBridge(threadId);
1025
- // Closing the worker scope is synchronous; its cleanup remains manager-owned.
1026
- const workers = this.delegation.cancelThread(threadId);
1027
- void workers.catch(() => undefined);
1025
+ // Persist deletion intent before closing workers or detaching their context.
1026
+ let workers = Promise.resolve();
1028
1027
  try {
1029
1028
  await this.threadManager.contextResets.begin(threadId);
1030
1029
  const thread = this.threadManager.getThread(threadId);
1030
+ await this.delegation.requestNativeSessionDeletion(threadId, this.threadManager.contextResets.generation(threadId, thread.delegationWorkspaceGeneration ?? 0));
1031
+ workers = this.delegation.cancelThread(threadId);
1032
+ void workers.catch(() => undefined);
1031
1033
  await this.threadManager.contextResets.advanceGeneration(threadId, thread.delegationWorkspaceGeneration);
1032
1034
  const aborting = this.abortOperations.get(threadId);
1033
1035
  if (aborting)
@@ -1048,7 +1050,7 @@ class MessageHandler {
1048
1050
  this.threadPool.setThreadBusy(threadId, false);
1049
1051
  await workers;
1050
1052
  this.sendResponse(messageId, threadId, { success: true,
1051
- output: 'Started a fresh conversation for direct backends and managed workers. Historical worker contexts and artifacts are retained for explicit recovery. Pending native writers still block conflicting execution.' }, true);
1053
+ output: 'Started a fresh conversation for direct backends and managed workers. Permanent deletion of old managed child native sessions is queued. Verified Codex, Kimi, Pi, and Claude child sessions are supported on Linux; unsupported versions, layouts, backends, platforms, and unconfirmed targets remain pending. Task artifacts and recovery evidence are retained. Pending native writers still block conflicting execution.' }, true);
1052
1054
  }
1053
1055
  catch (error) {
1054
1056
  const detail = error instanceof Error ? error.message : 'Local context storage is unavailable';