@yu_robotics/remote-cli 1.6.193 → 1.6.195
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 +34 -2
- package/dist/client/MessageHandler.d.ts +9 -0
- package/dist/client/MessageHandler.d.ts.map +1 -1
- package/dist/client/MessageHandler.js +243 -83
- package/dist/client/MessageHandler.js.map +1 -1
- package/dist/delegation/DelegatedWorkerSessionStore.d.ts +7 -2
- package/dist/delegation/DelegatedWorkerSessionStore.d.ts.map +1 -1
- package/dist/delegation/DelegatedWorkerSessionStore.js +77 -12
- package/dist/delegation/DelegatedWorkerSessionStore.js.map +1 -1
- package/dist/delegation/DelegatedWorkspaceManager.d.ts.map +1 -1
- package/dist/delegation/DelegatedWorkspaceManager.js +16 -7
- package/dist/delegation/DelegatedWorkspaceManager.js.map +1 -1
- package/dist/delegation/DelegationManager.d.ts +8 -1
- package/dist/delegation/DelegationManager.d.ts.map +1 -1
- package/dist/delegation/DelegationManager.js +112 -30
- package/dist/delegation/DelegationManager.js.map +1 -1
- package/dist/delegation/DelegationOwnership.d.ts +2 -0
- package/dist/delegation/DelegationOwnership.d.ts.map +1 -1
- package/dist/delegation/DelegationOwnership.js +35 -0
- package/dist/delegation/DelegationOwnership.js.map +1 -1
- package/dist/delegation/LfsCheckout.d.ts +11 -0
- package/dist/delegation/LfsCheckout.d.ts.map +1 -0
- package/dist/delegation/LfsCheckout.js +135 -0
- package/dist/delegation/LfsCheckout.js.map +1 -0
- package/dist/maintenance/release-notes.json +1 -1
- package/dist/settings/SettingsAdmission.d.ts +5 -1
- package/dist/settings/SettingsAdmission.d.ts.map +1 -1
- package/dist/settings/SettingsAdmission.js +26 -5
- package/dist/settings/SettingsAdmission.js.map +1 -1
- package/dist/thread/ThreadContextReset.d.ts +5 -0
- package/dist/thread/ThreadContextReset.d.ts.map +1 -1
- package/dist/thread/ThreadContextReset.js +64 -1
- package/dist/thread/ThreadContextReset.js.map +1 -1
- package/dist/thread/ThreadExecutorPool.d.ts +2 -0
- package/dist/thread/ThreadExecutorPool.d.ts.map +1 -1
- package/dist/thread/ThreadExecutorPool.js +9 -10
- package/dist/thread/ThreadExecutorPool.js.map +1 -1
- package/dist/thread/ThreadManager.d.ts.map +1 -1
- package/dist/thread/ThreadManager.js +8 -3
- package/dist/thread/ThreadManager.js.map +1 -1
- package/dist/thread/types.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -464,6 +464,18 @@ is never sufficient. It covers members of that group;
|
|
|
464
464
|
background processes that escape using `setsid` or `setpgid` are not covered and
|
|
465
465
|
must not write into disposable worker checkouts.
|
|
466
466
|
|
|
467
|
+
From CLI 1.6.194, disposable worker finalization verifies supported Git LFS
|
|
468
|
+
files against their saved pointers and locally available payloads outside the
|
|
469
|
+
worker checkout. Unchanged LFS files no longer fail solely because they use
|
|
470
|
+
`filter=lfs`. The same byte checks support conservative checkout reclamation
|
|
471
|
+
without changing its stricter cleanup policy. Missing or mismatched payloads,
|
|
472
|
+
unsafe storage paths and unsupported
|
|
473
|
+
transformations retain the checkout for recovery. Verification does not download
|
|
474
|
+
LFS objects or automatically repair previously failed worker records. Keep the
|
|
475
|
+
shared local LFS objects needed for recovery: private Git artifact refs are not
|
|
476
|
+
a separate payload backup, and external LFS pruning can remove those objects.
|
|
477
|
+
Upgrade the local CLI to use this behavior; a Router-only upgrade does not enable it.
|
|
478
|
+
|
|
467
479
|
Cleanup uses durable intent and receipt records. Failed removals are retried on
|
|
468
480
|
startup and while idle; cleanup failure does not undo integration or turn a
|
|
469
481
|
successful task into a failed task. Failed/retained receipts support reconstruction
|
|
@@ -652,8 +664,9 @@ managed worker conversation, across backends and parallel worker lanes. The
|
|
|
652
664
|
working directory, files, Git artifacts, archived native transcripts, login,
|
|
653
665
|
backend/model/effort selections, delegation preference, and sandbox grants are
|
|
654
666
|
preserved. Other threads are unaffected. A later backend switch starts fresh
|
|
655
|
-
instead of restoring a pre-clear binding.
|
|
656
|
-
|
|
667
|
+
instead of restoring a pre-clear binding. Direct-backend shutdown must be
|
|
668
|
+
confirmed before clearing; managed-worker recovery follows the rules below.
|
|
669
|
+
Reset intent is saved
|
|
657
670
|
before any session binding changes. A persisted reset intent blocks old
|
|
658
671
|
conversations until clearing succeeds, including after a CLI restart. If
|
|
659
672
|
clearing fails, resolve the reported problem and retry `/clear` or `/new`.
|
|
@@ -661,6 +674,25 @@ Service shutdown waits for retained cleanup and reports unconfirmed native exits
|
|
|
661
674
|
before acknowledging completion.
|
|
662
675
|
Single-worker **Clear context** controls still reset only the selected worker.
|
|
663
676
|
|
|
677
|
+
From CLI 1.6.195, `/clear` and `/new` separate conversation recovery from
|
|
678
|
+
managed-worker cleanup. A fresh worker conversation generation excludes old
|
|
679
|
+
worker contexts and artifact obligations from subsequent turns. Old files,
|
|
680
|
+
artifacts, native history, and pending cleanup records remain available for
|
|
681
|
+
recovery; an uncertain worker is never treated as stopped or made reusable.
|
|
682
|
+
Worker cleanup may continue after cancellation without holding the conversation
|
|
683
|
+
open. Conflicting execution remains restricted while a worker may still write,
|
|
684
|
+
including when delegation is disabled. Missing or unreadable legacy process
|
|
685
|
+
evidence can still block execution after clearing; recovery commands remain
|
|
686
|
+
available, and offline recovery must establish that old writers have stopped.
|
|
687
|
+
Direct-backend shutdown and durable reset storage must succeed before clearing
|
|
688
|
+
is acknowledged. Upgrade the local CLI; a Router-only upgrade does not enable
|
|
689
|
+
this recovery path.
|
|
690
|
+
|
|
691
|
+
Shutting down an active request reports cancellation once.
|
|
692
|
+
Unsupported native commands return their backend-specific error even while
|
|
693
|
+
worker recovery is pending. Commands that execute backend work still honor
|
|
694
|
+
the worker shutdown and workspace checks.
|
|
695
|
+
|
|
664
696
|
## Session Resume
|
|
665
697
|
|
|
666
698
|
CLI 1.6.164 supports confirmed Pi native session connections and read-only Pi/Codex/Claude Code discovery. Adopted Pi history reloads before every remote turn; `/session detach` preserves it and `/session release` is removed. Foreground Pi `/new` and `/clear` also preserve old history and start independent IDs; new default names use native session IDs and persisted names are not overwritten on reopen. Worker/metadata cleanup is unchanged. Resume drafts keep ordinary messages in the current conversation until confirmation succeeds. Use only one side at a time. Local Pi windows may stay open but must use native `/resume` before their next local turn; automatic local refresh and writer locking are not provided. Existing Router command/response envelopes support the text workflow without a new wire capability. See the [session resume specification](../../SESSION_RESUME_SPEC.md).
|
|
@@ -33,6 +33,9 @@ export declare class MessageHandler {
|
|
|
33
33
|
/** `/resume` and `/session`: read-only listing plus confirmed, strict native adoption. */
|
|
34
34
|
private readonly sessionControl;
|
|
35
35
|
private readonly activeThreadOperations;
|
|
36
|
+
private readonly conversationRevisions;
|
|
37
|
+
private readonly cancelledOperations;
|
|
38
|
+
private readonly coordinatorPreparations;
|
|
36
39
|
private readonly abortOperations;
|
|
37
40
|
private readonly pendingGoalActivations;
|
|
38
41
|
private automaticUpdateInProgress;
|
|
@@ -80,6 +83,7 @@ export declare class MessageHandler {
|
|
|
80
83
|
private handleStatusQuery;
|
|
81
84
|
private isValidMessage;
|
|
82
85
|
private handleWorkerContextReset;
|
|
86
|
+
private detachDelegationBridge;
|
|
83
87
|
private clearThreadConversation;
|
|
84
88
|
/**
|
|
85
89
|
* Handle built-in commands (thread-scoped).
|
|
@@ -93,6 +97,7 @@ export declare class MessageHandler {
|
|
|
93
97
|
private handleQueueCommand;
|
|
94
98
|
private startNextQueuedCommand;
|
|
95
99
|
private pauseQueueAfterFailure;
|
|
100
|
+
private cancelThreadOperation;
|
|
96
101
|
private beginThreadOperation;
|
|
97
102
|
private finishThreadOperation;
|
|
98
103
|
private hasThreadQueueState;
|
|
@@ -145,6 +150,8 @@ export declare class MessageHandler {
|
|
|
145
150
|
* Which backend slash commands should be forwarded to for a thread.
|
|
146
151
|
*/
|
|
147
152
|
private resolveSlashBackend;
|
|
153
|
+
/** Native commands can execute model tools and must honor the same recovery barriers as chat. */
|
|
154
|
+
private assertNativeCommandReady;
|
|
148
155
|
/**
|
|
149
156
|
* Execute passthrough slash command on the active backend's CLI.
|
|
150
157
|
*
|
|
@@ -169,6 +176,8 @@ export declare class MessageHandler {
|
|
|
169
176
|
* Execute AI command on a specific executor
|
|
170
177
|
*/
|
|
171
178
|
private executeCommand;
|
|
179
|
+
/** Native retry/configuration work may outlive cancellation and still write stable pointers. */
|
|
180
|
+
private withCoordinatorPreparation;
|
|
172
181
|
private clearInvalidCodexModel;
|
|
173
182
|
private isUnavailableCodexModelError;
|
|
174
183
|
private getMessageOpenId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../src/client/MessageHandler.ts"],"names":[],"mappings":"AACA,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;
|
|
1
|
+
{"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../src/client/MessageHandler.ts"],"names":[],"mappings":"AACA,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,CAA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