@yu_robotics/remote-cli 1.6.128 → 1.6.133
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 +15 -2
- package/dist/client/MessageHandler.d.ts.map +1 -1
- package/dist/client/MessageHandler.js +37 -3
- package/dist/client/MessageHandler.js.map +1 -1
- package/dist/client/TaskRecovery.d.ts.map +1 -1
- package/dist/client/TaskRecovery.js +5 -0
- package/dist/client/TaskRecovery.js.map +1 -1
- package/dist/delegation/DelegatedWorkerSessionStore.d.ts +4 -1
- package/dist/delegation/DelegatedWorkerSessionStore.d.ts.map +1 -1
- package/dist/delegation/DelegatedWorkerSessionStore.js +6 -7
- package/dist/delegation/DelegatedWorkerSessionStore.js.map +1 -1
- package/dist/delegation/DelegatedWorkspaceManager.d.ts +91 -0
- package/dist/delegation/DelegatedWorkspaceManager.d.ts.map +1 -0
- package/dist/delegation/DelegatedWorkspaceManager.js +377 -0
- package/dist/delegation/DelegatedWorkspaceManager.js.map +1 -0
- package/dist/delegation/DelegationManager.d.ts +13 -4
- package/dist/delegation/DelegationManager.d.ts.map +1 -1
- package/dist/delegation/DelegationManager.js +388 -114
- package/dist/delegation/DelegationManager.js.map +1 -1
- package/dist/delegation/DelegationNotice.d.ts.map +1 -1
- package/dist/delegation/DelegationNotice.js +2 -0
- package/dist/delegation/DelegationNotice.js.map +1 -1
- package/dist/delegation/DelegationStore.d.ts +6 -2
- package/dist/delegation/DelegationStore.d.ts.map +1 -1
- package/dist/delegation/DelegationStore.js +12 -5
- package/dist/delegation/DelegationStore.js.map +1 -1
- package/dist/delegation/GitCheckpoint.d.ts +27 -0
- package/dist/delegation/GitCheckpoint.d.ts.map +1 -0
- package/dist/delegation/GitCheckpoint.js +226 -0
- package/dist/delegation/GitCheckpoint.js.map +1 -0
- package/dist/delegation/contract.d.ts +18 -4
- package/dist/delegation/contract.d.ts.map +1 -1
- package/dist/delegation/contract.js +13 -4
- package/dist/delegation/contract.js.map +1 -1
- package/dist/executor/AcpExecutor.d.ts +2 -0
- package/dist/executor/AcpExecutor.d.ts.map +1 -1
- package/dist/executor/AcpExecutor.js +22 -2
- package/dist/executor/AcpExecutor.js.map +1 -1
- package/dist/executor/AgyExecutor.d.ts +1 -0
- package/dist/executor/AgyExecutor.d.ts.map +1 -1
- package/dist/executor/AgyExecutor.js +4 -0
- package/dist/executor/AgyExecutor.js.map +1 -1
- package/dist/executor/ClaudePersistentExecutor.d.ts +2 -0
- package/dist/executor/ClaudePersistentExecutor.d.ts.map +1 -1
- package/dist/executor/ClaudePersistentExecutor.js +19 -0
- package/dist/executor/ClaudePersistentExecutor.js.map +1 -1
- package/dist/executor/CodexAppServerExecutor.d.ts +4 -0
- package/dist/executor/CodexAppServerExecutor.d.ts.map +1 -1
- package/dist/executor/CodexAppServerExecutor.js +32 -0
- package/dist/executor/CodexAppServerExecutor.js.map +1 -1
- package/dist/executor/ExecutionMetadata.d.ts +9 -0
- package/dist/executor/ExecutionMetadata.d.ts.map +1 -0
- package/dist/executor/ExecutionMetadata.js +57 -0
- package/dist/executor/ExecutionMetadata.js.map +1 -0
- package/dist/executor/IExecutor.d.ts +4 -1
- package/dist/executor/IExecutor.d.ts.map +1 -1
- package/dist/executor/PiExecutor.d.ts +3 -0
- package/dist/executor/PiExecutor.d.ts.map +1 -1
- package/dist/executor/PiExecutor.js +36 -0
- package/dist/executor/PiExecutor.js.map +1 -1
- package/dist/maintenance/release-notes.json +1 -1
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DirectoryGuard } from '../security/DirectoryGuard';
|
|
2
2
|
import type { BackendKey, ExecutorConfig } from '../types/config';
|
|
3
3
|
import type { Thread } from '../thread/types';
|
|
4
4
|
import type { IExecutor } from '../executor/IExecutor';
|
|
5
|
-
import type { ApprovalRequestInfo, ApprovalStatus, DelegationProgressInfo, ToolUseInfo, ToolResultInfo } from '../types';
|
|
5
|
+
import type { ApprovalRequestInfo, ApprovalStatus, DelegationProgressInfo, ExecutionMetadata, ToolUseInfo, ToolResultInfo } from '../types';
|
|
6
6
|
import { createExecutor } from '../executor';
|
|
7
7
|
import { BackendRegistry } from './BackendRegistry';
|
|
8
8
|
import { DelegationStore, type DelegatedTaskRecord } from './DelegationStore';
|
|
9
9
|
import { DelegatedWorkerSessionStore } from './DelegatedWorkerSessionStore';
|
|
10
10
|
import { type DelegationBackend, type DelegationHandler } from './contract';
|
|
11
|
+
import { DelegatedWorkspaceManager, type DelegatedArtifactView } from './DelegatedWorkspaceManager';
|
|
11
12
|
export declare const DELEGATION_LIMITS: {
|
|
12
13
|
readonly launches: 12;
|
|
13
|
-
readonly concurrent:
|
|
14
|
+
readonly concurrent: 5;
|
|
14
15
|
readonly idleTimeoutMs: number;
|
|
15
16
|
readonly toolIdleTimeoutMs: number;
|
|
17
|
+
readonly queueTimeoutMs: number;
|
|
16
18
|
readonly resultBytes: number;
|
|
17
19
|
readonly continuationBytes: number;
|
|
18
20
|
readonly storageTimeoutMs: 10000;
|
|
@@ -27,6 +29,7 @@ export declare const DELEGATION_TEXT_PROGRESS: {
|
|
|
27
29
|
export interface DelegationTimeoutPolicy {
|
|
28
30
|
idleTimeoutMs: number;
|
|
29
31
|
toolIdleTimeoutMs: number;
|
|
32
|
+
queueTimeoutMs?: number;
|
|
30
33
|
}
|
|
31
34
|
type TimeoutPolicyInput = DelegationTimeoutPolicy | number;
|
|
32
35
|
export declare function workspacesOverlap(first: string, second: string): boolean;
|
|
@@ -54,6 +57,8 @@ export interface DelegatedTaskResult {
|
|
|
54
57
|
output?: string;
|
|
55
58
|
error?: string;
|
|
56
59
|
truncated: boolean;
|
|
60
|
+
artifact?: Pick<DelegatedArtifactView, 'taskId' | 'disposition' | 'outputCommit'>;
|
|
61
|
+
executionMetadata?: ExecutionMetadata;
|
|
57
62
|
}
|
|
58
63
|
export interface DelegationScope {
|
|
59
64
|
invoke: DelegationHandler;
|
|
@@ -67,6 +72,7 @@ export interface DelegationScope {
|
|
|
67
72
|
collectPendingResults(): Promise<DelegatedTaskResult[]>;
|
|
68
73
|
close(): Promise<void>;
|
|
69
74
|
waitingExecutor(): IExecutor | undefined;
|
|
75
|
+
waitingInputCount(): number;
|
|
70
76
|
}
|
|
71
77
|
/** Owns children independently of the user-thread queue and primary executor pool. */
|
|
72
78
|
export declare class DelegationManager {
|
|
@@ -76,13 +82,16 @@ export declare class DelegationManager {
|
|
|
76
82
|
readonly registry: BackendRegistry;
|
|
77
83
|
readonly store: DelegationStore;
|
|
78
84
|
readonly laneStore: DelegatedWorkerSessionStore;
|
|
85
|
+
readonly workspaceManager: DelegatedWorkspaceManager;
|
|
79
86
|
private running;
|
|
80
87
|
private workspaces;
|
|
88
|
+
private pumps;
|
|
81
89
|
private scopes;
|
|
82
90
|
private readonly timeouts;
|
|
83
|
-
constructor(guard: DirectoryGuard, factory?: typeof createExecutor, registry?: BackendRegistry, store?: DelegationStore, timeoutInput?: TimeoutPolicyInput, cleanupMs?: number, laneStore?: DelegatedWorkerSessionStore);
|
|
91
|
+
constructor(guard: DirectoryGuard, factory?: typeof createExecutor, registry?: BackendRegistry, store?: DelegationStore, timeoutInput?: TimeoutPolicyInput, cleanupMs?: number, laneStore?: DelegatedWorkerSessionStore, workspaceManager?: DelegatedWorkspaceManager);
|
|
84
92
|
begin(parent: DelegationParent): DelegationScope;
|
|
85
93
|
waitingExecutor(threadId: string): IExecutor | undefined;
|
|
94
|
+
hasAmbiguousInput(threadId: string): boolean;
|
|
86
95
|
hasActiveTasks(threadId: string): boolean;
|
|
87
96
|
/** Retry previously confirmed cleanup requests without touching uncertain interrupted workers. */
|
|
88
97
|
reconcilePendingWorkerLanes(): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DelegationManager.d.ts","sourceRoot":"","sources":["../../src/delegation/DelegationManager.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
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