@yu_robotics/remote-cli 1.6.253 → 1.6.255
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/dist/client/WebSocketClient.d.ts +0 -3
- package/dist/client/WebSocketClient.d.ts.map +1 -1
- package/dist/client/WebSocketClient.js +1 -3
- package/dist/client/WebSocketClient.js.map +1 -1
- package/dist/commands/start.d.ts +0 -5
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +0 -25
- package/dist/commands/start.js.map +1 -1
- package/dist/executor/AgyExecutor.js +3 -3
- package/dist/executor/AgyExecutor.js.map +1 -1
- package/dist/executor/IExecutor.d.ts +1 -1
- package/dist/executor/IExecutor.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/maintenance/release-notes.json +1 -1
- package/dist/scheduling/ScheduleService.d.ts +0 -15
- package/dist/scheduling/ScheduleService.d.ts.map +1 -1
- package/dist/scheduling/ScheduleService.js +8 -92
- package/dist/scheduling/ScheduleService.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/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 +1 -1
- package/dist/service/SessionHostSupervisor.d.ts +0 -63
- package/dist/service/SessionHostSupervisor.d.ts.map +0 -1
- package/dist/service/SessionHostSupervisor.js +0 -323
- package/dist/service/SessionHostSupervisor.js.map +0 -1
- package/dist/sessionHost/HostClient.d.ts +0 -49
- package/dist/sessionHost/HostClient.d.ts.map +0 -1
- package/dist/sessionHost/HostClient.js +0 -101
- package/dist/sessionHost/HostClient.js.map +0 -1
- package/dist/sessionHost/HostProtocol.d.ts +0 -65
- package/dist/sessionHost/HostProtocol.d.ts.map +0 -1
- package/dist/sessionHost/HostProtocol.js +0 -78
- package/dist/sessionHost/HostProtocol.js.map +0 -1
- package/dist/sessionHost/HostServer.d.ts +0 -52
- package/dist/sessionHost/HostServer.d.ts.map +0 -1
- package/dist/sessionHost/HostServer.js +0 -413
- package/dist/sessionHost/HostServer.js.map +0 -1
- package/dist/sessionHost/HostStore.d.ts +0 -43
- package/dist/sessionHost/HostStore.d.ts.map +0 -1
- package/dist/sessionHost/HostStore.js +0 -206
- package/dist/sessionHost/HostStore.js.map +0 -1
- package/dist/sessionHost/RetainedFrontend.d.ts +0 -63
- package/dist/sessionHost/RetainedFrontend.d.ts.map +0 -1
- package/dist/sessionHost/RetainedFrontend.js +0 -244
- package/dist/sessionHost/RetainedFrontend.js.map +0 -1
- package/dist/sessionHost/RetainedHostLauncher.d.ts +0 -25
- package/dist/sessionHost/RetainedHostLauncher.d.ts.map +0 -1
- package/dist/sessionHost/RetainedHostLauncher.js +0 -132
- package/dist/sessionHost/RetainedHostLauncher.js.map +0 -1
- package/dist/sessionHost/RetainedRuntime.d.ts +0 -62
- package/dist/sessionHost/RetainedRuntime.d.ts.map +0 -1
- package/dist/sessionHost/RetainedRuntime.js +0 -478
- package/dist/sessionHost/RetainedRuntime.js.map +0 -1
- package/dist/sessionHost/RuntimeJournal.d.ts +0 -47
- package/dist/sessionHost/RuntimeJournal.d.ts.map +0 -1
- package/dist/sessionHost/RuntimeJournal.js +0 -103
- package/dist/sessionHost/RuntimeJournal.js.map +0 -1
- package/dist/sessionHost/entry.d.ts +0 -13
- package/dist/sessionHost/entry.d.ts.map +0 -1
- package/dist/sessionHost/entry.js +0 -107
- package/dist/sessionHost/entry.js.map +0 -1
- package/dist/update/PinnedHostBundle.d.ts +0 -49
- package/dist/update/PinnedHostBundle.d.ts.map +0 -1
- package/dist/update/PinnedHostBundle.js +0 -309
- package/dist/update/PinnedHostBundle.js.map +0 -1
|
@@ -108,8 +108,6 @@ export declare class ScheduleService {
|
|
|
108
108
|
private suspending;
|
|
109
109
|
private handoffUnresolved;
|
|
110
110
|
private suspension?;
|
|
111
|
-
private hostRetirement?;
|
|
112
|
-
private hostsRetired;
|
|
113
111
|
constructor(options: ScheduleServiceOptions);
|
|
114
112
|
initialize(): Promise<void>;
|
|
115
113
|
/** Sequential startup/reconnect reconciliation. Never drives the native schedule clock. */
|
|
@@ -148,19 +146,6 @@ export declare class ScheduleService {
|
|
|
148
146
|
hasPendingResults(): boolean;
|
|
149
147
|
/** Includes terminal jobs whose native process exit is still unconfirmed. */
|
|
150
148
|
hasActiveSchedules(threadId?: string): boolean;
|
|
151
|
-
/** Admission to explicit process retirement, NOT proof of native exit or queue
|
|
152
|
-
* reconstruction. Only the original live handles can supply deletion receipts.
|
|
153
|
-
*/
|
|
154
|
-
canRetireDrainedHosts(): boolean;
|
|
155
|
-
/** Synchronous fence: no asynchronous gap between checking and revoking new
|
|
156
|
-
* schedule operations. Retain exact pre-exit deletion receipts for finalization.
|
|
157
|
-
*/
|
|
158
|
-
beginDrainedHostRetirement(): void;
|
|
159
|
-
/** Called only after the owner joined its original executor groups and drained
|
|
160
|
-
* native callback ingestion. Never calls stop/cancel/releaseForRestart on a
|
|
161
|
-
* provider. Failure preserves the same retirement fence, handles and catalog.
|
|
162
|
-
*/
|
|
163
|
-
finishDrainedHostRetirement(): Promise<void>;
|
|
164
149
|
/** Card eligibility includes retryable cleanup even for a terminal catalog record. */
|
|
165
150
|
canCancel(owner: ScheduleOwner, id: string): boolean;
|
|
166
151
|
/** Newly observed cleanup facts never supply historical recovery proof. The optional
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleService.d.ts","sourceRoot":"","sources":["../../src/scheduling/ScheduleService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,sBAAsB,EAAsB,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAO/I,OAAO,KAAK,EAA6C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class ScheduleService {
|
|
|
144
144
|
suspending = false;
|
|
145
145
|
handoffUnresolved = false;
|
|
146
146
|
suspension;
|
|
147
|
-
hostRetirement;
|
|
148
|
-
hostsRetired = false;
|
|
149
147
|
constructor(options) {
|
|
150
148
|
this.options = { ...options };
|
|
151
149
|
this.now = options.now ?? Date.now;
|
|
@@ -608,7 +606,7 @@ class ScheduleService {
|
|
|
608
606
|
if (record.state !== 'failed' || record.creationRefused !== true || record.nativeId !== undefined
|
|
609
607
|
|| record.cancelRequested || record.cleanupConfirmed || record.completedOccurrences?.length || record.skippedOccurrences?.length
|
|
610
608
|
|| this.records.get(id) !== record || this.cleanup.has(id) || this.purged.has(id)
|
|
611
|
-
|| this.fault || this.closing || this.suspending || this.
|
|
609
|
+
|| this.fault || this.closing || this.suspending || this.recoveryRun || this.refreshes
|
|
612
610
|
|| this.recordOperations.has(id) || this.retainedCancellations.has(id) || this.purges.has(id)
|
|
613
611
|
|| this.delivering.has(id) || [...this.pending.values()].some(item => item.scheduleId === id)
|
|
614
612
|
|| this.options.isNativeMutationPending?.(ownerOf(record))
|
|
@@ -973,80 +971,6 @@ class ScheduleService {
|
|
|
973
971
|
return [...this.records.values()].some(record => (!threadId || record.threadId === threadId)
|
|
974
972
|
&& (LIVE.has(record.state) || recoveryOwnsWork(record) || (this.runtimes.has(record.id) && !this.runtimes.get(record.id).stopped)));
|
|
975
973
|
}
|
|
976
|
-
/** Admission to explicit process retirement, NOT proof of native exit or queue
|
|
977
|
-
* reconstruction. Only the original live handles can supply deletion receipts.
|
|
978
|
-
*/
|
|
979
|
-
canRetireDrainedHosts() {
|
|
980
|
-
if (!this.initialized || this.closing || this.fault || this.hostRetirement || this.suspending
|
|
981
|
-
|| this.handoffUnresolved || this.recoveryRun || this.operations.size || this.tasks.size
|
|
982
|
-
|| this.recordOperations.size || this.pending.size || this.delivering.size || this.refreshes
|
|
983
|
-
|| this.retainedCancellations.size || this.purges.size || this.cleanup.size)
|
|
984
|
-
return false;
|
|
985
|
-
try {
|
|
986
|
-
this.catalogGate?.verify();
|
|
987
|
-
return [...this.records.values()].every(record => {
|
|
988
|
-
if (record.error || record.recovery || !this.current(record) || this.options.isNativeMutationPending?.(ownerOf(record)))
|
|
989
|
-
return false;
|
|
990
|
-
const runtime = this.runtimes.get(record.id);
|
|
991
|
-
if (!runtime)
|
|
992
|
-
return record.state === 'cancelled' && record.cancelRequested === true && record.cleanupConfirmed === true;
|
|
993
|
-
if (!runtime.handle || runtime.running.size || runtime.heldDeliveries.size || runtime.cancelling || runtime.releasing)
|
|
994
|
-
return false;
|
|
995
|
-
if (record.state === 'completed')
|
|
996
|
-
return record.rule.kind === 'once' && runtime.completed.size > 0;
|
|
997
|
-
return record.state === 'cancelled' && record.cancelRequested === true && runtime.removalConfirmed === true
|
|
998
|
-
&& (runtime.handle.nativeDefinitionAbsent === true || runtime.stopped && record.cleanupConfirmed === true);
|
|
999
|
-
});
|
|
1000
|
-
}
|
|
1001
|
-
catch {
|
|
1002
|
-
return false;
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
/** Synchronous fence: no asynchronous gap between checking and revoking new
|
|
1006
|
-
* schedule operations. Retain exact pre-exit deletion receipts for finalization.
|
|
1007
|
-
*/
|
|
1008
|
-
beginDrainedHostRetirement() {
|
|
1009
|
-
if (this.hostRetirement)
|
|
1010
|
-
return;
|
|
1011
|
-
if (!this.canRetireDrainedHosts())
|
|
1012
|
-
throw new Error('Native schedules are not drained for explicit host retirement.');
|
|
1013
|
-
this.hostRetirement = new Map([...this.runtimes].map(([id, runtime]) => [id,
|
|
1014
|
-
{ runtime, cancelled: this.records.get(id)?.cancelRequested === true && runtime.removalConfirmed === true }]));
|
|
1015
|
-
}
|
|
1016
|
-
/** Called only after the owner joined its original executor groups and drained
|
|
1017
|
-
* native callback ingestion. Never calls stop/cancel/releaseForRestart on a
|
|
1018
|
-
* provider. Failure preserves the same retirement fence, handles and catalog.
|
|
1019
|
-
*/
|
|
1020
|
-
async finishDrainedHostRetirement() {
|
|
1021
|
-
if (!this.hostRetirement)
|
|
1022
|
-
throw new Error('Explicit host retirement was not admitted.');
|
|
1023
|
-
while (this.tasks.size)
|
|
1024
|
-
await Promise.allSettled([...this.tasks]);
|
|
1025
|
-
await this.deliveryTail;
|
|
1026
|
-
await this.serial(async () => {
|
|
1027
|
-
if (this.fault)
|
|
1028
|
-
throw this.fault;
|
|
1029
|
-
if (this.pending.size || this.operations.size || this.recordOperations.size || this.delivering.size)
|
|
1030
|
-
throw new Error('Native retirement still owns pending work or output.');
|
|
1031
|
-
for (const [id, proof] of this.hostRetirement) {
|
|
1032
|
-
const runtime = this.runtimes.get(id), record = this.records.get(id);
|
|
1033
|
-
if (runtime !== proof.runtime || !record || runtime.running.size || runtime.heldDeliveries.size
|
|
1034
|
-
|| !(runtime.stopped || runtime.handle?.retirementConfirmed === true))
|
|
1035
|
-
throw new Error('Exact native host retirement is unconfirmed.');
|
|
1036
|
-
}
|
|
1037
|
-
for (const [id, proof] of this.hostRetirement) {
|
|
1038
|
-
proof.runtime.stopped = true;
|
|
1039
|
-
proof.runtime.releaseAdmission?.();
|
|
1040
|
-
proof.runtime.releaseAdmission = undefined;
|
|
1041
|
-
// AGY invalidates its inventory view after exit. Preserve the exact
|
|
1042
|
-
// deletion receipt captured BEFORE exit rather than querying a new host.
|
|
1043
|
-
if (proof.cancelled)
|
|
1044
|
-
this.records.get(id).cleanupConfirmed = true;
|
|
1045
|
-
}
|
|
1046
|
-
await this.persist();
|
|
1047
|
-
this.hostsRetired = true;
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
974
|
/** Card eligibility includes retryable cleanup even for a terminal catalog record. */
|
|
1051
975
|
canCancel(owner, id) {
|
|
1052
976
|
this.checkReady();
|
|
@@ -1280,7 +1204,7 @@ class ScheduleService {
|
|
|
1280
1204
|
}
|
|
1281
1205
|
/** Snapshot eligibility is only admission to a handoff, never permission to install. */
|
|
1282
1206
|
canSuspendForRestart() {
|
|
1283
|
-
if (!this.initialized || this.closing || this.
|
|
1207
|
+
if (!this.initialized || this.closing || this.fault || this.suspending || this.recoveryRun || this.operations.size || this.pending.size)
|
|
1284
1208
|
return false;
|
|
1285
1209
|
return [...this.records.values()].filter(record => LIVE.has(record.state) || recoveryOwnsWork(record)
|
|
1286
1210
|
|| !!this.runtimes.get(record.id) && !this.runtimes.get(record.id).stopped).every(record => {
|
|
@@ -1423,8 +1347,6 @@ class ScheduleService {
|
|
|
1423
1347
|
&& (!(record.state === 'failed' && record.recovery.futureOnly) || !!this.runtimes.get(record.id) && !this.runtimes.get(record.id).stopped));
|
|
1424
1348
|
}
|
|
1425
1349
|
destroy() {
|
|
1426
|
-
if (this.hostRetirement && !this.hostsRetired)
|
|
1427
|
-
return Promise.reject(new Error('Explicit native host retirement remains unresolved.'));
|
|
1428
1350
|
if (this.destruction)
|
|
1429
1351
|
return this.destruction;
|
|
1430
1352
|
const preserve = !this.closing && this.hasActiveSchedules() && this.canSuspendForRestart();
|
|
@@ -1567,10 +1489,6 @@ class ScheduleService {
|
|
|
1567
1489
|
if (this.fault)
|
|
1568
1490
|
throw this.fault;
|
|
1569
1491
|
const record = this.records.get(id);
|
|
1570
|
-
if (this.hostRetirement && (event.type === 'started' || event.type === 'rebound'
|
|
1571
|
-
|| (event.type === 'completed' || event.type === 'skipped') && !runtime.completed.has(event.occurrenceId))) {
|
|
1572
|
-
throw new Error('Unexpected native work during explicit retirement; retain the native event journal.');
|
|
1573
|
-
}
|
|
1574
1492
|
if (this.suspending && event.type === 'stopped') {
|
|
1575
1493
|
if (event.exitConfirmed === false)
|
|
1576
1494
|
throw new Error('Native handoff exit unconfirmed.');
|
|
@@ -1832,7 +1750,7 @@ class ScheduleService {
|
|
|
1832
1750
|
}
|
|
1833
1751
|
canAdmitOccurrence(id, runtime) {
|
|
1834
1752
|
const record = this.records.get(id);
|
|
1835
|
-
return !!record && this.runtimes.get(id) === runtime && !this.closing && !this.
|
|
1753
|
+
return !!record && this.runtimes.get(id) === runtime && !this.closing && !this.fault
|
|
1836
1754
|
&& !runtime.stopped && !runtime.cancelling && !runtime.recoveryAbort?.signal.aborted && !record.cancelRequested
|
|
1837
1755
|
&& LIVE.has(record.state) && this.current(record);
|
|
1838
1756
|
}
|
|
@@ -1846,9 +1764,8 @@ class ScheduleService {
|
|
|
1846
1764
|
void task.catch(error => {
|
|
1847
1765
|
// Persistence/protocol failures fail closed and stop native producers.
|
|
1848
1766
|
this.fault ??= error instanceof Error ? error : new Error('Schedule service failed.');
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
void this.stop(id, runtime).catch(() => { });
|
|
1767
|
+
for (const [id, runtime] of this.runtimes)
|
|
1768
|
+
void this.stop(id, runtime).catch(() => { });
|
|
1852
1769
|
}).finally(() => this.tasks.delete(task));
|
|
1853
1770
|
}
|
|
1854
1771
|
operation(task) {
|
|
@@ -1888,7 +1805,7 @@ class ScheduleService {
|
|
|
1888
1805
|
checkReady() {
|
|
1889
1806
|
if (this.fault)
|
|
1890
1807
|
throw this.fault;
|
|
1891
|
-
if (!this.initialized || this.closing || this.
|
|
1808
|
+
if (!this.initialized || this.closing || this.suspending)
|
|
1892
1809
|
throw new Error('Schedule service is not initialized or is closed.');
|
|
1893
1810
|
}
|
|
1894
1811
|
serial(operation) {
|
|
@@ -2122,9 +2039,8 @@ class ScheduleService {
|
|
|
2122
2039
|
}
|
|
2123
2040
|
catch (error) {
|
|
2124
2041
|
this.fault = error instanceof Error ? error : new Error('Schedule catalog write failed.');
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
void this.stop(id, runtime).catch(() => { });
|
|
2042
|
+
for (const [id, runtime] of this.runtimes)
|
|
2043
|
+
void this.stop(id, runtime).catch(() => { });
|
|
2128
2044
|
throw this.fault;
|
|
2129
2045
|
}
|
|
2130
2046
|
finally {
|