@peer-agent/protocol 0.1.0-rc.25 → 0.1.0-rc.26
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/delegation.d.ts +30 -0
- package/dist/project.d.ts +4 -0
- package/package.json +1 -1
package/dist/delegation.d.ts
CHANGED
|
@@ -89,6 +89,8 @@ export interface WorkSession extends SessionQueueFacts {
|
|
|
89
89
|
readonly supersededBy?: string;
|
|
90
90
|
}
|
|
91
91
|
export interface SessionReport {
|
|
92
|
+
/** Current host verification, loaded with task details; never assistant prose. */
|
|
93
|
+
readonly verification?: SessionVerificationDetail;
|
|
92
94
|
readonly sessionId: string;
|
|
93
95
|
readonly planId: string | null;
|
|
94
96
|
readonly status: WorkSessionStatus;
|
|
@@ -254,6 +256,26 @@ export interface VerificationVerdict {
|
|
|
254
256
|
readonly checks: readonly VerificationCheck[];
|
|
255
257
|
readonly evidenceRefs: readonly string[];
|
|
256
258
|
}
|
|
259
|
+
export interface SessionVerificationDetail {
|
|
260
|
+
readonly sessionId: string;
|
|
261
|
+
readonly outcome: VerificationOutcome;
|
|
262
|
+
readonly checks: readonly {
|
|
263
|
+
readonly name: string;
|
|
264
|
+
readonly result: 'passed' | 'failed';
|
|
265
|
+
readonly evidenceRefs: readonly string[];
|
|
266
|
+
readonly reason?: string;
|
|
267
|
+
}[];
|
|
268
|
+
readonly workerModel: string | null;
|
|
269
|
+
readonly verifierModel: string | null;
|
|
270
|
+
readonly sameSource: boolean;
|
|
271
|
+
readonly reviewAttempts: readonly VerificationAttemptDiagnostic[];
|
|
272
|
+
readonly outputs: readonly {
|
|
273
|
+
readonly name: string;
|
|
274
|
+
readonly evidenceRef: string;
|
|
275
|
+
readonly summary: string;
|
|
276
|
+
readonly truncated: boolean;
|
|
277
|
+
}[];
|
|
278
|
+
}
|
|
257
279
|
/** Bounded persisted diagnostics, never an input to acceptance or Evidence authority. */
|
|
258
280
|
export interface VerificationAttemptDiagnostic {
|
|
259
281
|
readonly verifierRunId: string;
|
|
@@ -335,6 +357,14 @@ export interface ProjectInput {
|
|
|
335
357
|
readonly attachments?: readonly ProjectInputAttachment[];
|
|
336
358
|
readonly createdAt: string;
|
|
337
359
|
}
|
|
360
|
+
/** Existing durable input receipt. A later handoff can fail after input was saved. */
|
|
361
|
+
export interface ProjectAgentSubmitInputResult {
|
|
362
|
+
readonly ok: boolean;
|
|
363
|
+
readonly code?: string;
|
|
364
|
+
readonly message?: string;
|
|
365
|
+
readonly input?: ProjectInput;
|
|
366
|
+
readonly delivery?: 'queued' | 'user_intervened';
|
|
367
|
+
}
|
|
338
368
|
export type PendingApprovalState = 'open' | 'approved' | 'denied' | 'expired' | 'stale' | 'cancelled';
|
|
339
369
|
export interface PendingApproval {
|
|
340
370
|
readonly policyRevision?: string;
|
package/dist/project.d.ts
CHANGED
|
@@ -222,6 +222,8 @@ export interface ProjectAgentActivity {
|
|
|
222
222
|
readonly workspaceId: string;
|
|
223
223
|
readonly conversationId: string;
|
|
224
224
|
readonly turnId: string;
|
|
225
|
+
/** Existing coordination identity; several execution attempts may serve one reply. */
|
|
226
|
+
readonly workId?: string;
|
|
225
227
|
readonly revision: number;
|
|
226
228
|
readonly startedAt: string;
|
|
227
229
|
readonly finishedAt?: string;
|
|
@@ -229,6 +231,8 @@ export interface ProjectAgentActivity {
|
|
|
229
231
|
readonly replyTo: readonly string[];
|
|
230
232
|
readonly phase: 'waiting' | 'thinking' | 'responding' | 'tool' | 'awaiting_permission' | 'settling' | 'done' | 'error' | 'stopped' | 'disposed';
|
|
231
233
|
readonly replyText: string;
|
|
234
|
+
/** A factual recovery event, cleared when the next provider event arrives. */
|
|
235
|
+
readonly recovery?: 'connection' | 'provider';
|
|
232
236
|
readonly segments: readonly (({
|
|
233
237
|
readonly kind: 'text';
|
|
234
238
|
} & ProjectAgentPublicUpdate) | ProjectAgentToolActivity)[];
|