@peer-agent/protocol 0.1.0-rc.4 → 0.1.0-rc.40
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/acceptance-close-gate.d.ts +10 -1
- package/dist/acceptance-close-gate.js +12 -0
- package/dist/agent-supervision.d.ts +81 -0
- package/dist/agent-supervision.js +1 -0
- package/dist/attention.d.ts +44 -0
- package/dist/attention.js +1 -0
- package/dist/bot-access-policy.d.ts +29 -0
- package/dist/bot-access-policy.js +1 -0
- package/dist/bot-conversation-read.d.ts +25 -0
- package/dist/bot-conversation-read.js +9 -0
- package/dist/bot-model-selection.d.ts +13 -0
- package/dist/bot-model-selection.js +1 -0
- package/dist/browser-window.d.ts +48 -0
- package/dist/browser-window.js +23 -0
- package/dist/capability-admission.d.ts +20 -0
- package/dist/capability-admission.js +1 -0
- package/dist/delegation-coordination.d.ts +81 -0
- package/dist/delegation-coordination.js +1 -0
- package/dist/delegation.d.ts +203 -7
- package/dist/delegation.js +39 -39
- package/dist/document-reference.d.ts +83 -0
- package/dist/document-reference.js +1 -0
- package/dist/evidence-inspection.d.ts +64 -0
- package/dist/evidence-inspection.js +1 -0
- package/dist/goal.d.ts +50 -2
- package/dist/index.d.ts +56 -5
- package/dist/index.js +25 -0
- package/dist/input-prediction.d.ts +86 -0
- package/dist/input-prediction.js +48 -0
- package/dist/intent-coordination.d.ts +201 -0
- package/dist/intent-coordination.js +1 -0
- package/dist/interactive-result.d.ts +363 -0
- package/dist/interactive-result.js +215 -0
- package/dist/interactive-verification.d.ts +41 -0
- package/dist/interactive-verification.js +65 -0
- package/dist/local-git.d.ts +44 -0
- package/dist/local-git.js +3 -0
- package/dist/local-image.d.ts +53 -0
- package/dist/local-image.js +5 -0
- package/dist/model-reasoning.d.ts +13 -0
- package/dist/model-reasoning.js +18 -0
- package/dist/model-routing.d.ts +37 -3
- package/dist/model-routing.js +31 -5
- package/dist/project-agent-failure.d.ts +30 -0
- package/dist/project-agent-failure.js +44 -0
- package/dist/project-input-recovery.d.ts +65 -0
- package/dist/project-input-recovery.js +5 -0
- package/dist/project-recovery.d.ts +43 -0
- package/dist/project-recovery.js +1 -0
- package/dist/project.d.ts +63 -0
- package/dist/project.js +2 -5
- package/dist/remote-access.d.ts +15 -0
- package/dist/remote-access.js +1 -1
- package/dist/reply-delivery.d.ts +28 -0
- package/dist/reply-delivery.js +1 -0
- package/dist/resource-edit-execution.d.ts +68 -0
- package/dist/resource-edit-execution.js +96 -0
- package/dist/resource-edit.d.ts +237 -0
- package/dist/resource-edit.js +134 -0
- package/dist/resource-feedback-transport.d.ts +25 -0
- package/dist/resource-feedback-transport.js +93 -0
- package/dist/resource-feedback.d.ts +98 -0
- package/dist/resource-feedback.js +151 -0
- package/dist/resource-file-replace.d.ts +36 -0
- package/dist/resource-file-replace.js +40 -0
- package/dist/resource-reference-hints.d.ts +3 -0
- package/dist/resource-reference-hints.js +58 -0
- package/dist/resource-window.d.ts +217 -0
- package/dist/resource-window.js +245 -0
- package/dist/runtime-session-facts.d.ts +58 -0
- package/dist/runtime-session-facts.js +55 -0
- package/dist/session-control.d.ts +111 -0
- package/dist/session-control.js +34 -0
- package/dist/session-facts.d.ts +29 -0
- package/dist/session-facts.js +35 -0
- package/dist/system-context.d.ts +6 -0
- package/dist/task-overview.d.ts +90 -0
- package/dist/task-overview.js +322 -17
- package/dist/tool-activity-preview.d.ts +4 -0
- package/dist/tool-activity-preview.js +72 -0
- package/dist/usage-accounting.d.ts +1 -1
- package/dist/user-anchor.d.ts +17 -0
- package/dist/user-anchor.js +1 -0
- package/dist/work-coordination.d.ts +165 -0
- package/dist/work-coordination.js +1 -0
- package/package.json +1 -1
package/dist/delegation.d.ts
CHANGED
|
@@ -1,13 +1,48 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Project-agent delegation contracts. Pure projections only; nothing here runs a tool.
|
|
3
|
-
* The user-visible conclusion of a work session is
|
|
3
|
+
* The user-visible conclusion of a work session is `decideLifecycle`'s conclusion.
|
|
4
4
|
*/
|
|
5
5
|
import type { ModelSelectionSnapshot } from './model-routing.ts';
|
|
6
|
-
import { type GoalPlanProjectionSnapshot, type TaskOverviewItem } from './task-overview.ts';
|
|
7
|
-
export type WorkSessionStatus = 'paused' | 'queued' | 'starting' | 'running' | 'waiting_user' | 'verifying' | 'result_ready' | 'accepted' | 'failed' | 'cancelled' | 'superseded';
|
|
8
|
-
export declare const WORK_SESSION_STATUSES: readonly ["paused", "queued", "starting", "running", "waiting_user", "verifying", "result_ready", "accepted", "failed", "cancelled", "superseded"];
|
|
6
|
+
import { type ExecutionOwnership, type GoalPlanProjectionSnapshot, type TaskOverviewItem } from './task-overview.ts';
|
|
7
|
+
export type WorkSessionStatus = 'paused' | 'queued' | 'starting' | 'running' | 'waiting_user' | 'waiting_agent' | 'stopping' | 'awaiting_outcome' | 'verifying' | 'result_ready' | 'accepted' | 'failed' | 'cancelled' | 'superseded';
|
|
8
|
+
export declare const WORK_SESSION_STATUSES: readonly ["paused", "queued", "starting", "running", "waiting_user", "waiting_agent", "stopping", "awaiting_outcome", "verifying", "result_ready", "accepted", "failed", "cancelled", "superseded"];
|
|
9
9
|
export type InputSurface = 'desktop' | 'quick_chat' | 'tui' | 'remote';
|
|
10
10
|
export interface DelegationOrigin {
|
|
11
|
+
readonly capabilityAdmission?: import('./capability-admission.ts').DelegationCapabilityAdmission;
|
|
12
|
+
readonly executionGeneration?: string;
|
|
13
|
+
readonly executionControl?: import('./session-control.ts').SessionControlOperation;
|
|
14
|
+
readonly takeover?: {
|
|
15
|
+
operationId: string;
|
|
16
|
+
phase: 'stopping' | 'completed' | 'superseded' | 'rejected';
|
|
17
|
+
supersededBy?: string;
|
|
18
|
+
text: string;
|
|
19
|
+
binding: import('./delegation-coordination.ts').CoordinationExecutionBinding;
|
|
20
|
+
requestedAt: string;
|
|
21
|
+
completedAt?: string;
|
|
22
|
+
repair?: boolean;
|
|
23
|
+
};
|
|
24
|
+
readonly coordinationBinding?: import('./delegation-coordination.ts').CoordinationExecutionBinding;
|
|
25
|
+
readonly cancellation?: {
|
|
26
|
+
readonly operationId: string;
|
|
27
|
+
readonly reason: string;
|
|
28
|
+
readonly phase: 'stopping' | 'awaiting_outcome' | 'completed';
|
|
29
|
+
readonly requestedAt: string;
|
|
30
|
+
readonly completedAt?: string;
|
|
31
|
+
readonly evidenceCalls?: readonly string[];
|
|
32
|
+
readonly preserveArtifacts?: boolean;
|
|
33
|
+
readonly disposition?: 'user_withdrawn';
|
|
34
|
+
readonly withdrawal?: {
|
|
35
|
+
readonly workspaceId: string;
|
|
36
|
+
readonly parentConversationId: string;
|
|
37
|
+
readonly sessionId: string;
|
|
38
|
+
readonly planId: string;
|
|
39
|
+
readonly anchorMessageId: string;
|
|
40
|
+
readonly inputId: string;
|
|
41
|
+
readonly admittedAt: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
readonly retainedForRecovery?: boolean;
|
|
45
|
+
readonly workId?: string;
|
|
11
46
|
readonly anchorMessageId: string;
|
|
12
47
|
readonly inputId: string;
|
|
13
48
|
readonly surface: InputSurface;
|
|
@@ -28,13 +63,15 @@ export interface DelegationOrigin {
|
|
|
28
63
|
readonly depth: number;
|
|
29
64
|
}
|
|
30
65
|
export interface SessionQueueFacts {
|
|
66
|
+
readonly resourceBlocker?: import('./session-control.ts').ExecutionResourceBlocker;
|
|
31
67
|
readonly queuedBehind?: readonly {
|
|
32
68
|
readonly sessionId: string;
|
|
33
69
|
readonly title: string;
|
|
34
70
|
}[];
|
|
35
|
-
readonly queueReason?: 'dependencies' | 'dependency_missing' | 'dependency_failed' | 'read_slot' | 'write_slot' | 'disk_space' | 'isolation_failed' | null;
|
|
71
|
+
readonly queueReason?: 'dependencies' | 'dependency_missing' | 'dependency_failed' | 'read_slot' | 'write_slot' | 'disk_space' | 'isolation_failed' | 'resource_protection' | 'resource_recovery' | null;
|
|
36
72
|
}
|
|
37
73
|
export interface WorkSessionConversationMeta extends SessionQueueFacts {
|
|
74
|
+
readonly coordination?: import('./delegation-coordination.ts').CoordinationSessionFacts;
|
|
38
75
|
readonly sessionId?: string;
|
|
39
76
|
readonly conversationId?: string;
|
|
40
77
|
readonly workspaceId: string;
|
|
@@ -42,11 +79,21 @@ export interface WorkSessionConversationMeta extends SessionQueueFacts {
|
|
|
42
79
|
readonly origin: DelegationOrigin;
|
|
43
80
|
readonly supersededBy?: string;
|
|
44
81
|
readonly acceptance?: 'auto' | 'confirm';
|
|
82
|
+
readonly resultConfirmationRequired?: boolean;
|
|
45
83
|
readonly accepted?: boolean;
|
|
46
84
|
readonly verifying?: boolean;
|
|
47
85
|
readonly phase?: 'starting' | 'verifying' | 'paused';
|
|
86
|
+
/** 进程内执行所有权(runtime 采集);缺省表示该入口尚未接入所有权事实。 */
|
|
87
|
+
readonly executionOwnership?: ExecutionOwnership;
|
|
88
|
+
readonly obligationDisposition?: 'indexed' | 'suspended' | 'current';
|
|
48
89
|
}
|
|
49
90
|
export interface WorkSession extends SessionQueueFacts {
|
|
91
|
+
readonly executionOwnership?: ExecutionOwnership;
|
|
92
|
+
readonly followUp?: import('./task-overview.ts').FollowUpProjection;
|
|
93
|
+
readonly verificationProgress?: VerificationProgress;
|
|
94
|
+
readonly completionReviewRequired?: boolean;
|
|
95
|
+
readonly resultConfirmationRequired?: boolean;
|
|
96
|
+
readonly coordination?: import('./delegation-coordination.ts').CoordinationSessionFacts;
|
|
50
97
|
readonly sessionId: string;
|
|
51
98
|
readonly workspaceId: string;
|
|
52
99
|
readonly title: string;
|
|
@@ -55,6 +102,8 @@ export interface WorkSession extends SessionQueueFacts {
|
|
|
55
102
|
readonly actionRight: TaskOverviewItem['actionRight'];
|
|
56
103
|
readonly nextAction: TaskOverviewItem['nextAction'];
|
|
57
104
|
readonly statusLabel: string;
|
|
105
|
+
/** 是否可取消;由生命周期决策统一给出,renderer 不再自行推断。 */
|
|
106
|
+
readonly cancelable?: boolean;
|
|
58
107
|
readonly needsYouReason?: TaskOverviewItem['needsYouReason'];
|
|
59
108
|
readonly spawnedAt: string;
|
|
60
109
|
readonly conversationId?: string;
|
|
@@ -62,18 +111,61 @@ export interface WorkSession extends SessionQueueFacts {
|
|
|
62
111
|
readonly supersededBy?: string;
|
|
63
112
|
}
|
|
64
113
|
export interface SessionReport {
|
|
114
|
+
readonly agentSupervision?: import('./agent-supervision.ts').AgentSupervisionReport;
|
|
115
|
+
/** Current host verification, loaded with task details; never assistant prose. */
|
|
116
|
+
readonly verification?: SessionVerificationDetail;
|
|
65
117
|
readonly sessionId: string;
|
|
66
118
|
readonly planId: string | null;
|
|
67
119
|
readonly status: WorkSessionStatus;
|
|
68
120
|
readonly summary: string;
|
|
121
|
+
readonly taskBrief?: string;
|
|
69
122
|
readonly keyFindings: readonly string[];
|
|
70
123
|
readonly changedFiles: readonly {
|
|
71
124
|
readonly path: string;
|
|
72
125
|
readonly summary: string;
|
|
73
126
|
}[];
|
|
74
127
|
readonly evidenceRefs: readonly string[];
|
|
128
|
+
/** Persisted worker output is a claim; verification still comes from host Evidence. */
|
|
129
|
+
readonly contentSource?: {
|
|
130
|
+
readonly kind: 'worker_message' | 'task_results';
|
|
131
|
+
readonly conversationId?: string;
|
|
132
|
+
readonly messageId?: string;
|
|
133
|
+
readonly verification: 'unverified';
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
export type DelegationEventKind = 'agent_message' | 'session_running' | 'session_spawned' | 'session_progress' | 'session_needs_user' | 'report_available' | 'session_verified' | 'session_ended' | 'user_intervened' | 'objective_signal' | 'digest_due';
|
|
137
|
+
/** Local orchestration facts; never a human authorization or a verified result. */
|
|
138
|
+
export interface AgentMessage {
|
|
139
|
+
readonly deliveryIntent?: import('./agent-supervision.ts').AgentDeliveryIntent;
|
|
140
|
+
readonly decisionRequest?: import('./agent-supervision.ts').AgentDecisionRequest;
|
|
141
|
+
readonly decisionAnswer?: import('./agent-supervision.ts').AgentDecisionAnswer;
|
|
142
|
+
readonly goalRevision?: number;
|
|
143
|
+
readonly executionEpoch?: string;
|
|
144
|
+
readonly replyTo?: string;
|
|
145
|
+
readonly messageId: string;
|
|
146
|
+
readonly workspaceId: string;
|
|
147
|
+
readonly sessionId: string;
|
|
148
|
+
readonly senderConversationId: string;
|
|
149
|
+
readonly recipientConversationId: string;
|
|
150
|
+
readonly direction: 'parent_to_child' | 'child_to_parent';
|
|
151
|
+
readonly purpose: 'update' | 'question' | 'answer';
|
|
152
|
+
readonly text: string;
|
|
153
|
+
readonly at: string;
|
|
154
|
+
}
|
|
155
|
+
export interface VerificationProgress {
|
|
156
|
+
readonly continuationId: string;
|
|
157
|
+
readonly startedAt: string;
|
|
158
|
+
readonly lastProgressAt: string;
|
|
159
|
+
readonly observationCount: number;
|
|
160
|
+
readonly phase: 'ready' | 'requesting' | 'tools' | 'completed';
|
|
161
|
+
}
|
|
162
|
+
export interface AgentActivity {
|
|
163
|
+
readonly verificationProgress?: VerificationProgress;
|
|
164
|
+
readonly eventId: string;
|
|
165
|
+
readonly sessionId: string;
|
|
166
|
+
readonly name: string;
|
|
167
|
+
readonly state: 'queued' | 'started' | 'update' | 'question' | 'answer' | 'reported' | 'verified' | 'verifying' | 'ended' | 'cancelled' | 'blocked';
|
|
75
168
|
}
|
|
76
|
-
export type DelegationEventKind = 'session_spawned' | 'session_progress' | 'session_needs_user' | 'session_verified' | 'session_ended' | 'user_intervened' | 'objective_signal' | 'digest_due';
|
|
77
169
|
export type JsonValue = null | string | number | boolean | readonly JsonValue[] | {
|
|
78
170
|
readonly [key: string]: JsonValue;
|
|
79
171
|
};
|
|
@@ -101,6 +193,9 @@ export interface AgentReplyMeta {
|
|
|
101
193
|
readonly surfacing: 'interrupt' | 'message' | 'digest' | 'silent';
|
|
102
194
|
}
|
|
103
195
|
export interface ReplySessionState {
|
|
196
|
+
readonly sourceRevision?: string;
|
|
197
|
+
/** Stable reporting facts, including a changed verifier failure; not acceptance authority. */
|
|
198
|
+
readonly observationRevision?: string;
|
|
104
199
|
readonly sessionId: string;
|
|
105
200
|
readonly status: WorkSessionStatus;
|
|
106
201
|
}
|
|
@@ -155,6 +250,26 @@ export interface DispositionEvent {
|
|
|
155
250
|
readonly replyMessageId?: string;
|
|
156
251
|
}
|
|
157
252
|
export type VerificationOutcome = 'passed' | 'failed' | 'partial' | 'unverifiable';
|
|
253
|
+
/** Host-bound manual completion review; distinct from acceptance of a completed result. */
|
|
254
|
+
export interface SessionCompletionReview {
|
|
255
|
+
readonly sessionId: string;
|
|
256
|
+
readonly reviewToken: string;
|
|
257
|
+
readonly criteria: readonly {
|
|
258
|
+
readonly id: string;
|
|
259
|
+
readonly description: string;
|
|
260
|
+
}[];
|
|
261
|
+
readonly report: string;
|
|
262
|
+
readonly confirmed?: boolean;
|
|
263
|
+
}
|
|
264
|
+
export type SessionConfirmationInput = {
|
|
265
|
+
readonly workspaceId: string;
|
|
266
|
+
readonly sessionId: string;
|
|
267
|
+
} & ({
|
|
268
|
+
readonly stage?: 'result_acceptance';
|
|
269
|
+
} | {
|
|
270
|
+
readonly stage: 'manual_completion';
|
|
271
|
+
readonly reviewToken: string;
|
|
272
|
+
});
|
|
158
273
|
export type IndependentVerifierState = 'passed' | 'failed' | 'not_required' | 'missing';
|
|
159
274
|
export interface VerificationCheck {
|
|
160
275
|
readonly name: string;
|
|
@@ -169,6 +284,56 @@ export interface VerificationVerdict {
|
|
|
169
284
|
readonly checks: readonly VerificationCheck[];
|
|
170
285
|
readonly evidenceRefs: readonly string[];
|
|
171
286
|
}
|
|
287
|
+
export interface SessionVerificationDetail {
|
|
288
|
+
readonly sessionId: string;
|
|
289
|
+
readonly outcome: VerificationOutcome;
|
|
290
|
+
/** A host review is active. The outcome describes evidence already recorded. */
|
|
291
|
+
readonly verificationInProgress?: true;
|
|
292
|
+
/** A persisted explicit review of the current task and report. */
|
|
293
|
+
readonly explicitVerification?: {
|
|
294
|
+
readonly verdictRef: string;
|
|
295
|
+
readonly outcome: VerificationOutcome;
|
|
296
|
+
};
|
|
297
|
+
readonly checks: readonly {
|
|
298
|
+
readonly name: string;
|
|
299
|
+
readonly result: 'passed' | 'failed';
|
|
300
|
+
readonly evidenceRefs: readonly string[];
|
|
301
|
+
readonly reason?: string;
|
|
302
|
+
}[];
|
|
303
|
+
readonly workerModel: string | null;
|
|
304
|
+
readonly verifierModel: string | null;
|
|
305
|
+
readonly sameSource: boolean;
|
|
306
|
+
readonly reviewAttempts: readonly VerificationAttemptDiagnostic[];
|
|
307
|
+
readonly outputs: readonly {
|
|
308
|
+
readonly name: string;
|
|
309
|
+
readonly evidenceRef: string;
|
|
310
|
+
readonly summary: string;
|
|
311
|
+
readonly truncated: boolean;
|
|
312
|
+
}[];
|
|
313
|
+
}
|
|
314
|
+
/** Bounded persisted diagnostics, never an input to acceptance or Evidence authority. */
|
|
315
|
+
export interface VerificationAttemptDiagnostic {
|
|
316
|
+
readonly verifierRunId: string;
|
|
317
|
+
readonly status: 'passed' | 'failed';
|
|
318
|
+
readonly diagnosticOnly: true;
|
|
319
|
+
/** null means this historical run has no source-version binding. */
|
|
320
|
+
readonly matchesCurrentSource: boolean | null;
|
|
321
|
+
readonly completedAt: string;
|
|
322
|
+
readonly failureReason: string;
|
|
323
|
+
readonly failedCriteria: readonly {
|
|
324
|
+
readonly criterionId: string;
|
|
325
|
+
readonly reason: string;
|
|
326
|
+
readonly evidenceRefs: readonly string[];
|
|
327
|
+
}[];
|
|
328
|
+
readonly missingEvidence: readonly {
|
|
329
|
+
readonly taskId: string;
|
|
330
|
+
readonly reason: string;
|
|
331
|
+
readonly evidenceRefs: readonly string[];
|
|
332
|
+
}[];
|
|
333
|
+
readonly risks: readonly string[];
|
|
334
|
+
readonly recommendedNextAction: string;
|
|
335
|
+
readonly evidenceRefs: readonly string[];
|
|
336
|
+
}
|
|
172
337
|
export type AcceptancePolicy = 'auto' | 'confirm';
|
|
173
338
|
export type AcceptanceReason = 'verdict_not_passed' | 'manual_criteria_pending' | 'external_side_effects' | 'destructive_operation' | 'out_of_scope_write' | 'project_requires_confirm' | 'user_requested_review' | 'verification_below_floor';
|
|
174
339
|
export interface AcceptanceDecision {
|
|
@@ -200,6 +365,22 @@ export interface SurfacingEvent {
|
|
|
200
365
|
readonly severity: 'info' | 'notable' | 'urgent';
|
|
201
366
|
readonly deadlineImminent?: boolean;
|
|
202
367
|
}
|
|
368
|
+
/** Explicit user uploads are factual user context, never execution authority. */
|
|
369
|
+
export type ProjectInputAttachment = {
|
|
370
|
+
readonly id: string;
|
|
371
|
+
readonly name: string;
|
|
372
|
+
readonly mimeType: string;
|
|
373
|
+
readonly size: number;
|
|
374
|
+
readonly sourceKind: 'user_upload';
|
|
375
|
+
} & ({
|
|
376
|
+
readonly kind: 'image';
|
|
377
|
+
readonly dataUrl: string;
|
|
378
|
+
} | {
|
|
379
|
+
readonly kind: 'text';
|
|
380
|
+
readonly text: string;
|
|
381
|
+
} | {
|
|
382
|
+
readonly kind: 'unsupported';
|
|
383
|
+
});
|
|
203
384
|
export interface ProjectInput {
|
|
204
385
|
readonly inputId: string;
|
|
205
386
|
readonly workspaceId: string;
|
|
@@ -208,10 +389,23 @@ export interface ProjectInput {
|
|
|
208
389
|
readonly anchorRefs: readonly string[];
|
|
209
390
|
readonly quoteRefs: readonly string[];
|
|
210
391
|
readonly attachmentRefs: readonly string[];
|
|
392
|
+
readonly attachments?: readonly ProjectInputAttachment[];
|
|
393
|
+
readonly resourceFeedback?: readonly import('./resource-feedback.ts').ResourceFeedback[];
|
|
211
394
|
readonly createdAt: string;
|
|
212
395
|
}
|
|
213
|
-
|
|
396
|
+
/** Existing durable input receipt. A later handoff can fail after input was saved. */
|
|
397
|
+
export interface ProjectAgentSubmitInputResult {
|
|
398
|
+
readonly ok: boolean;
|
|
399
|
+
readonly code?: string;
|
|
400
|
+
readonly message?: string;
|
|
401
|
+
readonly input?: ProjectInput;
|
|
402
|
+
readonly delivery?: 'queued' | 'user_intervened';
|
|
403
|
+
}
|
|
404
|
+
export type PendingApprovalState = 'open' | 'approved' | 'denied' | 'expired' | 'stale' | 'cancelled';
|
|
214
405
|
export interface PendingApproval {
|
|
406
|
+
readonly policyRevision?: string;
|
|
407
|
+
readonly imageReadScope?: import('./local-image.ts').LocalImagePermissionScope;
|
|
408
|
+
readonly imageReadGrant?: import('./local-image.ts').ImageReadGrant;
|
|
215
409
|
readonly approvalId: string;
|
|
216
410
|
readonly workspaceId: string | null;
|
|
217
411
|
readonly sessionId?: string | null;
|
|
@@ -225,6 +419,8 @@ export interface PendingApproval {
|
|
|
225
419
|
readonly argsDigest: string;
|
|
226
420
|
readonly createdAt: string;
|
|
227
421
|
readonly state: PendingApprovalState;
|
|
422
|
+
readonly deadlineAt?: string;
|
|
423
|
+
readonly decisionReason?: 'permission_cancelled' | 'permission_timeout' | 'permission_unavailable' | 'local_user_denied' | 'permission_policy_changed';
|
|
228
424
|
readonly decidedAt?: string;
|
|
229
425
|
readonly decidedBy?: 'local_ui' | 'policy';
|
|
230
426
|
}
|
package/dist/delegation.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Project-agent delegation contracts. Pure projections only; nothing here runs a tool.
|
|
3
|
-
* The user-visible conclusion of a work session is
|
|
3
|
+
* The user-visible conclusion of a work session is `decideLifecycle`'s conclusion.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { controlPhasesForOrigin } from "./session-control.js";
|
|
6
|
+
import { decideLifecycle, } from "./task-overview.js";
|
|
7
|
+
export const WORK_SESSION_STATUSES = ['paused', 'queued', 'starting', 'running', 'waiting_user', 'waiting_agent', 'stopping', 'awaiting_outcome', 'verifying',
|
|
7
8
|
'result_ready', 'accepted', 'failed', 'cancelled', 'superseded'];
|
|
8
9
|
function fnv1a(text) {
|
|
9
10
|
let hash = 0x811c9dc5;
|
|
@@ -43,60 +44,59 @@ export function createDelegationEvent(input) {
|
|
|
43
44
|
payload,
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
|
-
function delegationStatus(snapshot, meta, projected) {
|
|
47
|
-
if (snapshot.status === 'failed')
|
|
48
|
-
return 'failed';
|
|
49
|
-
if (snapshot.status === 'cancelled')
|
|
50
|
-
return 'cancelled';
|
|
51
|
-
if (snapshot.status === 'completed') {
|
|
52
|
-
if (meta.verifying || meta.phase === 'verifying')
|
|
53
|
-
return 'verifying';
|
|
54
|
-
if (meta.acceptance === 'confirm' && meta.accepted !== true)
|
|
55
|
-
return 'result_ready';
|
|
56
|
-
return 'accepted';
|
|
57
|
-
}
|
|
58
|
-
if (meta.supersededBy)
|
|
59
|
-
return 'superseded';
|
|
60
|
-
if (meta.phase === 'paused')
|
|
61
|
-
return 'paused';
|
|
62
|
-
// 复核进行中盖过「需要你」。草稿、待批准、等回答的计划在独立复核时都显示 verifying。
|
|
63
|
-
if (meta.verifying || meta.phase === 'verifying')
|
|
64
|
-
return 'verifying';
|
|
65
|
-
if (projected.actionRight === 'needs_you')
|
|
66
|
-
return 'waiting_user';
|
|
67
|
-
if (snapshot.runnerStatus === 'exploring')
|
|
68
|
-
return 'verifying';
|
|
69
|
-
if (meta.phase === 'starting')
|
|
70
|
-
return 'starting';
|
|
71
|
-
if (snapshot.status === 'approved'
|
|
72
|
-
|| snapshot.status === 'accepted'
|
|
73
|
-
|| snapshot.status === 'paused'
|
|
74
|
-
|| snapshot.status === 'interrupted'
|
|
75
|
-
|| projected.actionRight === 'paused') {
|
|
76
|
-
return 'queued';
|
|
77
|
-
}
|
|
78
|
-
return 'running';
|
|
79
|
-
}
|
|
80
47
|
/**
|
|
81
48
|
* Project a GoalPlan snapshot into a work session.
|
|
82
49
|
* actionRight / nextAction / statusLabel come from projectGoalPlan, so the two projections cannot disagree.
|
|
83
50
|
* A paused plan has no delegation status of its own; it is queued, and the visible conclusion stays paused.
|
|
84
51
|
*/
|
|
85
52
|
export function projectWorkSession(plan, conversationMeta) {
|
|
86
|
-
const projected =
|
|
53
|
+
const projected = decideLifecycle(plan, {
|
|
54
|
+
...(conversationMeta.executionOwnership ? { executionOwnership: conversationMeta.executionOwnership } : {}),
|
|
55
|
+
// `delegated` 必须是真实事实;不能用"这是工作会话"反推,否则会改写非委派历史语义。
|
|
56
|
+
...(plan.delegated === true ? { delegated: true } : {}),
|
|
57
|
+
...(conversationMeta.acceptance ? { acceptance: conversationMeta.acceptance } : {}),
|
|
58
|
+
humanGate: conversationMeta.resultConfirmationRequired === true,
|
|
59
|
+
accepted: conversationMeta.accepted === true ||
|
|
60
|
+
(plan.delegated !== true &&
|
|
61
|
+
plan.status === 'completed' &&
|
|
62
|
+
conversationMeta.acceptance !== 'confirm' &&
|
|
63
|
+
conversationMeta.accepted === undefined &&
|
|
64
|
+
!conversationMeta.verifying &&
|
|
65
|
+
!plan.runnerStatus),
|
|
66
|
+
superseded: Boolean(conversationMeta.supersededBy),
|
|
67
|
+
needsUser: plan.status === 'awaiting_approval' || plan.needsUser === true,
|
|
68
|
+
verificationActive: conversationMeta.verifying === true,
|
|
69
|
+
...(conversationMeta.phase ? { phase: conversationMeta.phase } : {}),
|
|
70
|
+
blockedReason: plan.agentWaiting ? 'waiting_parent_agent' : plan.blockedReason,
|
|
71
|
+
interrupted: plan.interrupted,
|
|
72
|
+
interruptionOrigin: plan.interruptionOrigin,
|
|
73
|
+
...controlPhasesForOrigin(conversationMeta.origin),
|
|
74
|
+
...(conversationMeta.obligationDisposition ? { obligationDisposition: conversationMeta.obligationDisposition } : {}),
|
|
75
|
+
...(conversationMeta.origin.cancellation?.disposition ? { cancellationDisposition: conversationMeta.origin.cancellation.disposition } : {}),
|
|
76
|
+
...(!conversationMeta.origin.executionControl && conversationMeta.coordination?.phase === 'awaiting_outcome'
|
|
77
|
+
? { takeoverPhase: 'awaiting_outcome' }
|
|
78
|
+
: {}),
|
|
79
|
+
});
|
|
80
|
+
const status = projected.status;
|
|
87
81
|
return {
|
|
88
82
|
sessionId: conversationMeta.sessionId ?? plan.conversationId ?? plan.planId,
|
|
89
83
|
workspaceId: conversationMeta.workspaceId,
|
|
90
84
|
title: plan.title,
|
|
91
85
|
planId: plan.planId,
|
|
92
|
-
status
|
|
86
|
+
status,
|
|
87
|
+
// 直接消费同一份决策;这里再改写就等于第二套状态机。
|
|
93
88
|
actionRight: projected.actionRight,
|
|
94
89
|
nextAction: projected.nextAction,
|
|
95
90
|
statusLabel: projected.statusLabel,
|
|
91
|
+
cancelable: projected.cancelable,
|
|
92
|
+
followUp: projected.followUp,
|
|
93
|
+
...(conversationMeta.executionOwnership ? { executionOwnership: conversationMeta.executionOwnership } : {}),
|
|
96
94
|
...(projected.needsYouReason ? { needsYouReason: projected.needsYouReason } : {}),
|
|
95
|
+
...(conversationMeta.coordination ? { coordination: conversationMeta.coordination } : {}),
|
|
97
96
|
spawnedAt: conversationMeta.spawnedAt ?? plan.updatedAt ?? '',
|
|
98
97
|
...(conversationMeta.conversationId ? { conversationId: conversationMeta.conversationId } : {}),
|
|
99
98
|
origin: conversationMeta.origin,
|
|
99
|
+
...(conversationMeta.resourceBlocker ? { resourceBlocker: conversationMeta.resourceBlocker } : {}),
|
|
100
100
|
...(conversationMeta.queuedBehind ? { queuedBehind: conversationMeta.queuedBehind.map(item => ({ ...item })) } : {}),
|
|
101
101
|
...(conversationMeta.queueReason ? { queueReason: conversationMeta.queueReason } : {}),
|
|
102
102
|
...(conversationMeta.supersededBy ? { supersededBy: conversationMeta.supersededBy } : {}),
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export interface GitDocumentRevision {
|
|
2
|
+
readonly kind: 'git';
|
|
3
|
+
/** Complete immutable commit SHA only; never a branch or Git expression. */
|
|
4
|
+
readonly commit: string;
|
|
5
|
+
/** Host-confirmed device-local repository binding, not an authorization ticket. */
|
|
6
|
+
readonly repositoryId?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ConfirmedGitDocumentRevision extends GitDocumentRevision {
|
|
9
|
+
readonly repositoryId: string;
|
|
10
|
+
readonly path: string;
|
|
11
|
+
}
|
|
12
|
+
/** Human-initiated preview only. This reference never grants model/tool access. */
|
|
13
|
+
export interface BotDocumentReference {
|
|
14
|
+
readonly workspaceId: string;
|
|
15
|
+
readonly path: string;
|
|
16
|
+
readonly relativeTo?: string;
|
|
17
|
+
/** Host revalidates Session/GoalPlan ownership on every read; never a root or grant. */
|
|
18
|
+
readonly task?: {
|
|
19
|
+
readonly sessionId: string;
|
|
20
|
+
readonly planId: string;
|
|
21
|
+
};
|
|
22
|
+
/** Explicit UI navigation intent; never an authorization root. */
|
|
23
|
+
readonly kind?: 'file' | 'directory';
|
|
24
|
+
/** Resolve/stat only; never returns file contents. */
|
|
25
|
+
readonly metadataOnly?: boolean;
|
|
26
|
+
/** Conditional text/image read only; an observation never grants access. */
|
|
27
|
+
readonly expectedObservation?: {
|
|
28
|
+
readonly resourceId: string;
|
|
29
|
+
readonly contentVersion?: string;
|
|
30
|
+
};
|
|
31
|
+
readonly revision?: GitDocumentRevision;
|
|
32
|
+
}
|
|
33
|
+
/** Device-local locator identity, revalidated by the host on every access. */
|
|
34
|
+
export interface LocalDocumentIdentity {
|
|
35
|
+
readonly sourceId: string;
|
|
36
|
+
readonly resourceId: string;
|
|
37
|
+
readonly relativePath: string;
|
|
38
|
+
}
|
|
39
|
+
/** Version of the actual bytes returned by a successful read; not a saved snapshot. */
|
|
40
|
+
export interface LocalDocumentObservation extends LocalDocumentIdentity {
|
|
41
|
+
readonly contentVersion: string;
|
|
42
|
+
}
|
|
43
|
+
export interface LocalDocumentReadResult {
|
|
44
|
+
readonly metadataOnly?: boolean;
|
|
45
|
+
readonly ok: boolean;
|
|
46
|
+
readonly status: 'ok' | 'not_found' | 'not_file' | 'too_large' | 'binary' | 'invalid_path' | 'error' | 'permission_denied' | 'scope_denied' | 'ambiguous_path' | 'workspace_unavailable' | 'relative_base_required' | 'version_changed' | 'source_changed' | 'version_unavailable' | 'not_git_repo' | 'invalid_ref' | 'revision_unavailable' | 'unsupported_entry';
|
|
47
|
+
readonly content: string;
|
|
48
|
+
readonly size?: number;
|
|
49
|
+
readonly resolvedFrom?: string;
|
|
50
|
+
readonly resolvedPath?: string;
|
|
51
|
+
readonly identity?: LocalDocumentIdentity;
|
|
52
|
+
readonly observation?: LocalDocumentObservation;
|
|
53
|
+
readonly revision?: ConfirmedGitDocumentRevision;
|
|
54
|
+
/** Confirmed locations for an explicit human choice; never an authorization ticket. */
|
|
55
|
+
readonly candidates?: readonly {
|
|
56
|
+
readonly path: string;
|
|
57
|
+
readonly root: string;
|
|
58
|
+
}[];
|
|
59
|
+
/** Bot project root used when a file citation was not found. Not an authorization root. */
|
|
60
|
+
readonly attemptedRoot?: string;
|
|
61
|
+
readonly error?: string;
|
|
62
|
+
}
|
|
63
|
+
/** Bounded presentation metadata from a known local file Tool Result in the same turn.
|
|
64
|
+
* A restored hint must be re-resolved under the current Bot scope before reading. */
|
|
65
|
+
export interface BotResourceReferenceHint {
|
|
66
|
+
readonly path: string;
|
|
67
|
+
readonly tool: 'read_file' | 'write_file' | 'edit_file';
|
|
68
|
+
}
|
|
69
|
+
/** Human-initiated, bounded filename discovery; every selected hit is re-authorized on read. */
|
|
70
|
+
export interface BotResourceSearchResult {
|
|
71
|
+
readonly ok: boolean;
|
|
72
|
+
readonly status: LocalDocumentReadResult['status'] | 'not_dir';
|
|
73
|
+
readonly scoped?: boolean;
|
|
74
|
+
readonly workspacePath?: string;
|
|
75
|
+
readonly files: readonly {
|
|
76
|
+
readonly relPath: string;
|
|
77
|
+
readonly name: string;
|
|
78
|
+
readonly kind: 'file' | 'directory';
|
|
79
|
+
}[];
|
|
80
|
+
readonly truncated?: boolean;
|
|
81
|
+
readonly visited?: number;
|
|
82
|
+
readonly error?: string;
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { BotDocumentReference } from './document-reference.ts';
|
|
2
|
+
import type { InteractiveResultReference } from './interactive-result.ts';
|
|
3
|
+
/** Read-only display facts. A saved operation is not proof that its task completed. */
|
|
4
|
+
export interface EvidenceSourceDescription {
|
|
5
|
+
readonly evidenceRef: string;
|
|
6
|
+
readonly toolName?: string;
|
|
7
|
+
readonly createdAt?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ProjectAgentEvidenceReadRequest {
|
|
10
|
+
readonly context?: {
|
|
11
|
+
readonly workspaceId: string;
|
|
12
|
+
readonly task?: BotDocumentReference['task'];
|
|
13
|
+
};
|
|
14
|
+
readonly evidenceRef?: string;
|
|
15
|
+
/** Source descriptions only; at most 100 unique references, no body or artifact reads. */
|
|
16
|
+
readonly evidenceRefs?: readonly string[];
|
|
17
|
+
}
|
|
18
|
+
export interface ProjectAgentEvidenceReadResult {
|
|
19
|
+
readonly interactiveAvailability?: 'origin_only';
|
|
20
|
+
readonly deliveryStatus?: 'available' | 'scope_denied' | 'unavailable';
|
|
21
|
+
readonly deliveries?: readonly EvidenceDelivery[];
|
|
22
|
+
readonly ok: boolean;
|
|
23
|
+
readonly code?: string;
|
|
24
|
+
readonly evidenceRef?: string;
|
|
25
|
+
readonly kind?: 'file' | 'command' | 'diff' | 'screenshot' | 'observation';
|
|
26
|
+
readonly summary?: string;
|
|
27
|
+
readonly truncated?: boolean;
|
|
28
|
+
readonly availability?: 'available' | 'metadata_only' | 'not_found' | 'unavailable';
|
|
29
|
+
readonly source?: EvidenceSourceDescription;
|
|
30
|
+
readonly items?: readonly EvidenceSourceDescription[];
|
|
31
|
+
}
|
|
32
|
+
/** Navigation provenance only; revalidated against the canonical index after restore. */
|
|
33
|
+
export interface EvidenceDeliveryBinding {
|
|
34
|
+
readonly evidenceRef: string;
|
|
35
|
+
readonly artifactRef: string;
|
|
36
|
+
}
|
|
37
|
+
export interface EvidenceFileDelivery extends EvidenceDeliveryBinding {
|
|
38
|
+
readonly kind: 'file' | 'code-change' | 'image';
|
|
39
|
+
readonly label: string;
|
|
40
|
+
/** A locator, never a grant or proof of historical bytes. Read through the existing scoped service. */
|
|
41
|
+
readonly reference?: BotDocumentReference;
|
|
42
|
+
readonly savedPreview?: {
|
|
43
|
+
readonly kind: 'diff-summary';
|
|
44
|
+
readonly text: string;
|
|
45
|
+
readonly truncated: true;
|
|
46
|
+
} | {
|
|
47
|
+
readonly kind: 'image';
|
|
48
|
+
readonly dataUrl: string;
|
|
49
|
+
readonly width: number;
|
|
50
|
+
readonly height: number;
|
|
51
|
+
};
|
|
52
|
+
readonly previewUnavailable?: boolean;
|
|
53
|
+
}
|
|
54
|
+
/** A published domain reference. Never a filesystem locator or execution/verification receipt. */
|
|
55
|
+
export interface EvidenceInteractiveDelivery extends EvidenceDeliveryBinding {
|
|
56
|
+
readonly kind: 'interactive';
|
|
57
|
+
readonly label: string;
|
|
58
|
+
readonly interactiveReference: InteractiveResultReference;
|
|
59
|
+
readonly specHash: string;
|
|
60
|
+
readonly reference?: never;
|
|
61
|
+
readonly savedPreview?: never;
|
|
62
|
+
readonly previewUnavailable?: never;
|
|
63
|
+
}
|
|
64
|
+
export type EvidenceDelivery = EvidenceFileDelivery | EvidenceInteractiveDelivery;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/goal.d.ts
CHANGED
|
@@ -163,10 +163,11 @@ export interface EvidenceIndexRecord {
|
|
|
163
163
|
readonly capabilityId?: string;
|
|
164
164
|
readonly toolName?: string;
|
|
165
165
|
readonly createdAt: string;
|
|
166
|
+
readonly interactiveInspection?: import('./interactive-verification.ts').InteractiveInspectionReceipt;
|
|
166
167
|
readonly artifactRefs?: readonly string[];
|
|
167
168
|
/** Redacted, bounded execution-time snapshot of a successful local Tool Result. */
|
|
168
169
|
readonly bodyPreview?: {
|
|
169
|
-
readonly kind: 'file' | 'command';
|
|
170
|
+
readonly kind: 'file' | 'command' | 'observation';
|
|
170
171
|
readonly text: string;
|
|
171
172
|
readonly truncated: boolean;
|
|
172
173
|
};
|
|
@@ -444,14 +445,30 @@ export interface GoalRunTrace {
|
|
|
444
445
|
readonly lastCheckpointNodeId?: string;
|
|
445
446
|
readonly events: readonly GoalRunEvent[];
|
|
446
447
|
}
|
|
447
|
-
export type GoalSuccessCriterionKind = 'command' | 'test' | 'file-contains' | 'file-exists' | 'manual';
|
|
448
|
+
export type GoalSuccessCriterionKind = 'command' | 'test' | 'file-contains' | 'file-exists' | 'model_review' | 'manual';
|
|
448
449
|
export interface GoalSuccessCriterion {
|
|
450
|
+
readonly requiredCapabilities?: readonly string[];
|
|
449
451
|
readonly id: string;
|
|
450
452
|
readonly kind: GoalSuccessCriterionKind;
|
|
451
453
|
readonly description: string;
|
|
452
454
|
readonly command?: string;
|
|
453
455
|
readonly path?: string;
|
|
454
456
|
readonly expect?: string;
|
|
457
|
+
readonly authority?: {
|
|
458
|
+
readonly source: 'model' | 'user' | 'project_policy' | 'legacy_unknown';
|
|
459
|
+
readonly sourceRef?: string;
|
|
460
|
+
readonly version: number;
|
|
461
|
+
readonly verifier: 'mechanical' | 'host_model' | 'human';
|
|
462
|
+
readonly rationale: string;
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
export interface GoalModelReview {
|
|
466
|
+
readonly criterionId: string;
|
|
467
|
+
readonly sourceRevision: string;
|
|
468
|
+
readonly verifierRunId: string;
|
|
469
|
+
readonly passed: boolean;
|
|
470
|
+
readonly evidenceRefs: readonly string[];
|
|
471
|
+
readonly checkedAt: string;
|
|
455
472
|
}
|
|
456
473
|
export interface GoalCriterionResult {
|
|
457
474
|
readonly criterionId: string;
|
|
@@ -567,6 +584,33 @@ export interface GoalExecutionCheckpoint {
|
|
|
567
584
|
}
|
|
568
585
|
/** GoalPlan 内嵌的轻量 runner 状态;不代表工具执行事实,任务完成仍必须由 Evidence 回写。 */
|
|
569
586
|
export interface GoalRunnerState {
|
|
587
|
+
/** Host-owned readonly review continuity. Native messages stay in registered checkpoint storage. */
|
|
588
|
+
readonly verificationContinuation?: {
|
|
589
|
+
readonly schemaVersion: 1;
|
|
590
|
+
readonly policyVersion?: 2;
|
|
591
|
+
readonly planId: string;
|
|
592
|
+
readonly continuationId: string;
|
|
593
|
+
readonly sourceRevision: string;
|
|
594
|
+
readonly modelKey: string;
|
|
595
|
+
readonly workId?: string;
|
|
596
|
+
readonly phase: 'ready' | 'requesting' | 'tools' | 'completed';
|
|
597
|
+
/** Current slice deadline; legacy review-wide deadlines are renewed only on safe admission. */
|
|
598
|
+
readonly deadlineAt: string;
|
|
599
|
+
readonly modelRequests: number;
|
|
600
|
+
readonly toolCalls: number;
|
|
601
|
+
readonly formatAttempt: number;
|
|
602
|
+
readonly previousText?: string;
|
|
603
|
+
readonly checkpointRef?: string;
|
|
604
|
+
readonly evidenceRefs: readonly string[];
|
|
605
|
+
readonly fingerprint?: string;
|
|
606
|
+
readonly repeats?: number;
|
|
607
|
+
readonly progressFacts?: readonly string[];
|
|
608
|
+
readonly startedAt?: string;
|
|
609
|
+
readonly lastProgressAt?: string;
|
|
610
|
+
readonly observationCount?: number;
|
|
611
|
+
readonly observationFacts?: readonly string[];
|
|
612
|
+
readonly formatRequests?: number;
|
|
613
|
+
};
|
|
570
614
|
readonly enabled: boolean;
|
|
571
615
|
readonly status: GoalRunnerStatus;
|
|
572
616
|
readonly intent?: GoalRunnerIntent;
|
|
@@ -616,6 +660,7 @@ export interface GoalRunnerState {
|
|
|
616
660
|
* 中断在计划状态重派生时被误判为完成。
|
|
617
661
|
*/
|
|
618
662
|
readonly interruption?: {
|
|
663
|
+
readonly origin?: import('./agent-supervision.ts').InterruptionOrigin;
|
|
619
664
|
readonly source: string;
|
|
620
665
|
readonly reason: string;
|
|
621
666
|
readonly interruptedAt: string;
|
|
@@ -678,6 +723,9 @@ export interface GoalPlan {
|
|
|
678
723
|
readonly successCriteria: readonly GoalSuccessCriterion[];
|
|
679
724
|
readonly criterionResults: readonly GoalCriterionResult[];
|
|
680
725
|
readonly manualConfirmations?: readonly GoalManualConfirmation[];
|
|
726
|
+
readonly modelReviews?: readonly GoalModelReview[];
|
|
727
|
+
/** Host-derived current revision for checking semantic review freshness. */
|
|
728
|
+
readonly modelReviewSourceRevision?: string;
|
|
681
729
|
readonly boundaries: GoalBoundaries;
|
|
682
730
|
readonly exceptionPolicies: ExceptionPolicy[];
|
|
683
731
|
/** 顶层汇总(来源于子任务) */
|