@peer-agent/protocol 0.1.0-rc.36 → 0.1.0-rc.37
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/index.d.ts +1 -0
- package/dist/user-anchor.d.ts +17 -0
- package/dist/user-anchor.js +1 -0
- package/dist/work-coordination.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -702,6 +702,7 @@ export interface RuntimeToolCall {
|
|
|
702
702
|
readonly argumentsPreview?: unknown;
|
|
703
703
|
readonly [key: string]: unknown;
|
|
704
704
|
}
|
|
705
|
+
export type { UserAnchorResolution, UserAnchorCandidate, UserAnchorDiagnostic } from './user-anchor.ts';
|
|
705
706
|
export interface RuntimeToolResult {
|
|
706
707
|
readonly toolCallId?: string;
|
|
707
708
|
readonly status?: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Local identity provenance, never permission, Evidence identity or task completion. */
|
|
2
|
+
export interface UserAnchorResolution {
|
|
3
|
+
readonly field: 'anchorMessageIds' | 'task.anchorMessageIds' | 'replyTo';
|
|
4
|
+
readonly suppliedId: string;
|
|
5
|
+
readonly messageId: string;
|
|
6
|
+
readonly source: 'message_id' | 'input_id';
|
|
7
|
+
}
|
|
8
|
+
export interface UserAnchorCandidate {
|
|
9
|
+
readonly messageId: string;
|
|
10
|
+
/** At most 120 characters; no attachment payloads. */
|
|
11
|
+
readonly text: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UserAnchorDiagnostic {
|
|
14
|
+
readonly anchorResolutions?: readonly UserAnchorResolution[];
|
|
15
|
+
readonly availableAnchors?: readonly UserAnchorCandidate[];
|
|
16
|
+
readonly availableReplyAnchors?: readonly UserAnchorCandidate[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -79,6 +79,21 @@ export interface ProjectWorkReceipt {
|
|
|
79
79
|
readonly sessionIds: readonly string[];
|
|
80
80
|
/** Current owned technical blockers; a public progress update does not discharge them. */
|
|
81
81
|
readonly repairSessionIds?: readonly string[];
|
|
82
|
+
/** Unresolved dispatch receipts, not execution grants or permission truth. */
|
|
83
|
+
readonly delegationFollowUp?: {
|
|
84
|
+
readonly blockers: readonly {
|
|
85
|
+
readonly taskKey: string;
|
|
86
|
+
/** Task body without the anchor ids being repaired. A corrected retry clears that obligation. */
|
|
87
|
+
readonly recoveryKey?: string;
|
|
88
|
+
readonly sourceTurnId: string;
|
|
89
|
+
readonly toolCallId: string;
|
|
90
|
+
readonly action: 'parallel' | 'replace';
|
|
91
|
+
readonly error: string;
|
|
92
|
+
readonly retryable: boolean;
|
|
93
|
+
readonly operationId?: string;
|
|
94
|
+
readonly sessionId?: string;
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
82
97
|
readonly progressFacts?: readonly string[];
|
|
83
98
|
readonly state: ProjectWorkState;
|
|
84
99
|
readonly revision: number;
|