@botlearn-course/daemon 0.0.20-beta.1 → 0.0.20-beta.3
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/agent-service-sandbox.d.ts +6 -1
- package/dist/agent-service-sandbox.js +398 -28
- package/dist/agent-service-ws-protocol.d.ts +3 -3
- package/dist/agent-service-ws-protocol.js +5 -2
- package/dist/cli.js +19 -1
- package/dist/file-candidates.js +46 -39
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/run-dispatcher.d.ts +1 -1
- package/dist/run-dispatcher.js +1 -1
- package/dist/runtime-env.js +4 -4
- package/dist/runtime-quiescence.d.ts +19 -0
- package/dist/runtime-quiescence.js +110 -0
- package/dist/tool-observation.d.ts +6 -5
- package/dist/tool-observation.js +6 -5
- package/dist/trace-projection.d.ts +1 -1
- package/dist/trace-projection.js +1 -1
- package/dist/workspace-quota.d.ts +4 -0
- package/dist/workspace-quota.js +42 -0
- package/dist/workspace-restore.d.ts +9 -1
- package/dist/workspace-restore.js +30 -16
- package/dist/workspace-snapshot-control.d.ts +29 -0
- package/dist/workspace-snapshot-control.js +169 -0
- package/dist/workspace-snapshot-policy.d.ts +24 -0
- package/dist/workspace-snapshot-policy.js +45 -0
- package/dist/workspace-snapshot-staging.d.ts +2 -9
- package/dist/workspace-snapshot-staging.js +59 -25
- package/package.json +1 -1
|
@@ -39,6 +39,7 @@ export declare class AgentServiceSandboxClient implements RunReportingClient, Pe
|
|
|
39
39
|
private readonly sessionProfiles;
|
|
40
40
|
/** activation-scoped 模型短凭据;只保存在内存中,绝不进入 state.json。 */
|
|
41
41
|
private readonly activationContexts;
|
|
42
|
+
private readonly activationCleanupTasks;
|
|
42
43
|
private readonly pendingAcks;
|
|
43
44
|
private readonly pendingFileReports;
|
|
44
45
|
private readonly inflightCommands;
|
|
@@ -70,11 +71,13 @@ export declare class AgentServiceSandboxClient implements RunReportingClient, Pe
|
|
|
70
71
|
constructor(options: AgentServiceSandboxOptions);
|
|
71
72
|
prepareTurn(payload: RunStartPayload): PreparedPersistentTurn;
|
|
72
73
|
persistNativeSession(nativeSessionId: string): void;
|
|
73
|
-
finishTurn(payload: RunStartPayload): void
|
|
74
|
+
finishTurn(payload: RunStartPayload): Promise<void>;
|
|
74
75
|
private completePendingActivationCleanup;
|
|
76
|
+
private runPendingActivationCleanup;
|
|
75
77
|
private recoverPendingActivationCleanups;
|
|
76
78
|
run(): Promise<void>;
|
|
77
79
|
stop(): void;
|
|
80
|
+
stopGracefully(): Promise<void>;
|
|
78
81
|
postEvent(agentRunId: string, event: RunEvent): Promise<RunEventReceipt>;
|
|
79
82
|
postFile(agentRunId: string, file: RunFileCandidate): Promise<RunFileRecord>;
|
|
80
83
|
recordWorkspaceScanMeasurement(agentRunId: string, measurement: WorkspaceScanMeasurement): Promise<void>;
|
|
@@ -88,6 +91,7 @@ export declare class AgentServiceSandboxClient implements RunReportingClient, Pe
|
|
|
88
91
|
/** sandbox.sync 只做对账:重放 spool、关闭待关 session、应用 drain/shutdown。 */
|
|
89
92
|
private applySync;
|
|
90
93
|
private handleSessionOpen;
|
|
94
|
+
private handleWorkspaceCheckpoint;
|
|
91
95
|
private handleSessionActivate;
|
|
92
96
|
private handleTurnStart;
|
|
93
97
|
private handleTurnCancel;
|
|
@@ -105,6 +109,7 @@ export declare class AgentServiceSandboxClient implements RunReportingClient, Pe
|
|
|
105
109
|
private isCurrentLifecycleFence;
|
|
106
110
|
private runIdsForSession;
|
|
107
111
|
private deactivateSession;
|
|
112
|
+
private terminateSessionWriters;
|
|
108
113
|
private sameTurnScope;
|
|
109
114
|
private matchesTurnScope;
|
|
110
115
|
private assertTurnScope;
|