@peer-agent/protocol 0.1.0-rc.5 → 0.1.0-rc.50
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 +67 -0
- package/dist/bot-conversation-read.js +9 -0
- package/dist/bot-direct-step.d.ts +11 -0
- package/dist/bot-direct-step.js +1 -0
- package/dist/bot-git.d.ts +55 -0
- package/dist/bot-git.js +1 -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/compaction-history-selection.d.ts +15 -0
- package/dist/compaction-history-selection.js +30 -0
- package/dist/compaction.d.ts +5 -0
- package/dist/compaction.js +6 -0
- package/dist/context-accounting.d.ts +3 -0
- package/dist/conversation-execution.d.ts +68 -0
- package/dist/conversation-execution.js +222 -0
- package/dist/delegation-coordination.d.ts +81 -0
- package/dist/delegation-coordination.js +1 -0
- package/dist/delegation.d.ts +260 -7
- package/dist/delegation.js +97 -39
- package/dist/document-reference.d.ts +111 -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/gemini-standard-pricing.json +105 -0
- package/dist/goal.d.ts +50 -2
- package/dist/hook-observation.d.ts +2 -0
- package/dist/hook-observation.js +19 -0
- package/dist/index.d.ts +109 -25
- package/dist/index.js +38 -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/local-read.d.ts +9 -0
- package/dist/local-read.js +1 -0
- package/dist/memory.d.ts +71 -11
- package/dist/memory.js +12 -0
- package/dist/model-reasoning.d.ts +16 -0
- package/dist/model-reasoning.js +25 -0
- package/dist/model-routing.d.ts +39 -3
- package/dist/model-routing.js +31 -5
- package/dist/native-process.d.ts +21 -0
- package/dist/native-process.js +51 -0
- package/dist/parent-coordination.d.ts +104 -0
- package/dist/parent-coordination.js +2 -0
- package/dist/project-agent-failure.d.ts +30 -0
- package/dist/project-agent-failure.js +44 -0
- package/dist/project-input-recovery.d.ts +83 -0
- package/dist/project-input-recovery.js +25 -0
- package/dist/project-matter.d.ts +225 -0
- package/dist/project-matter.js +1 -0
- package/dist/project-recovery.d.ts +43 -0
- package/dist/project-recovery.js +1 -0
- package/dist/project.d.ts +136 -0
- package/dist/project.js +130 -5
- package/dist/quiet-reply.d.ts +9 -0
- package/dist/quiet-reply.js +43 -0
- 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 +26 -0
- package/dist/resource-feedback-transport.js +94 -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 +222 -0
- package/dist/resource-window.js +252 -0
- package/dist/runtime-session-facts.d.ts +58 -0
- package/dist/runtime-session-facts.js +57 -0
- package/dist/session-control.d.ts +211 -0
- package/dist/session-control.js +48 -0
- package/dist/session-facts.d.ts +29 -0
- package/dist/session-facts.js +35 -0
- package/dist/skill-marketplace.d.ts +39 -4
- package/dist/spend-budget.d.ts +69 -0
- package/dist/spend-budget.js +1 -0
- package/dist/system-context.d.ts +7 -0
- package/dist/task-overview.d.ts +91 -0
- package/dist/task-overview.js +325 -17
- package/dist/tool-activity-preview.d.ts +4 -0
- package/dist/tool-activity-preview.js +72 -0
- package/dist/updater.d.ts +13 -3
- package/dist/usage-accounting.d.ts +42 -1
- package/dist/user-anchor.d.ts +17 -0
- package/dist/user-anchor.js +1 -0
- package/dist/work-coordination.d.ts +188 -0
- package/dist/work-coordination.js +1 -0
- package/dist/work-hook.d.ts +3 -0
- package/dist/work-hook.js +76 -0
- package/dist/working-plan.d.ts +18 -0
- package/dist/working-plan.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** Suggestions are ephemeral presentation data, never input receipts or grants. */
|
|
2
|
+
export type InputPredictionMode = 'next_turn' | 'continuation';
|
|
3
|
+
export type InputPredictionSurface = 'desktop_bot' | 'desktop_classic';
|
|
4
|
+
export interface InputPredictionSettings {
|
|
5
|
+
readonly schemaVersion: 1;
|
|
6
|
+
readonly enabled: boolean;
|
|
7
|
+
readonly continuationEnabled: boolean;
|
|
8
|
+
readonly disabledWorkspaceIds: readonly string[];
|
|
9
|
+
readonly dailyRequestLimit: number;
|
|
10
|
+
readonly dailyTokenLimit: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const INPUT_PREDICTION_LIMITS: Readonly<{
|
|
13
|
+
inputTokens: 4096;
|
|
14
|
+
outputTokens: 256;
|
|
15
|
+
draftLength: 2048;
|
|
16
|
+
candidateLength: 240;
|
|
17
|
+
candidateGraphemes: 120;
|
|
18
|
+
timeoutMs: 6000;
|
|
19
|
+
validationMs: 150;
|
|
20
|
+
ttlMs: 60000;
|
|
21
|
+
requestIntervalMs: 3000;
|
|
22
|
+
requestsPerMinute: 12;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function normalizeInputPredictionSettings(value: unknown): InputPredictionSettings;
|
|
25
|
+
export interface InputPredictionRequest {
|
|
26
|
+
readonly requestId: string;
|
|
27
|
+
readonly workspaceId: string;
|
|
28
|
+
readonly conversationId: string;
|
|
29
|
+
readonly composerInstanceId: string;
|
|
30
|
+
readonly surface: InputPredictionSurface;
|
|
31
|
+
readonly mode: InputPredictionMode;
|
|
32
|
+
readonly draftVersion: number;
|
|
33
|
+
readonly draftText: string;
|
|
34
|
+
readonly selectionStart: number;
|
|
35
|
+
readonly selectionEnd: number;
|
|
36
|
+
readonly quoteMessageId?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface InputCandidate {
|
|
39
|
+
readonly candidateId: string;
|
|
40
|
+
readonly requestId: string;
|
|
41
|
+
readonly workspaceId: string;
|
|
42
|
+
readonly conversationId: string;
|
|
43
|
+
readonly composerInstanceId: string;
|
|
44
|
+
readonly mode: InputPredictionMode;
|
|
45
|
+
readonly insertionText: string;
|
|
46
|
+
readonly draftVersion: number;
|
|
47
|
+
/** Host context identity only. This conveys no permission. */
|
|
48
|
+
readonly contextToken: string;
|
|
49
|
+
readonly expiresAt: string;
|
|
50
|
+
}
|
|
51
|
+
export type InputPredictionResult = {
|
|
52
|
+
readonly kind: 'candidate';
|
|
53
|
+
readonly candidate: InputCandidate;
|
|
54
|
+
} | {
|
|
55
|
+
readonly kind: 'none';
|
|
56
|
+
readonly reason: string;
|
|
57
|
+
} | {
|
|
58
|
+
readonly kind: 'unavailable';
|
|
59
|
+
readonly reason: string;
|
|
60
|
+
} | {
|
|
61
|
+
readonly kind: 'cancelled';
|
|
62
|
+
} | {
|
|
63
|
+
readonly kind: 'error';
|
|
64
|
+
readonly code: string;
|
|
65
|
+
};
|
|
66
|
+
export interface InputPredictionReference {
|
|
67
|
+
readonly composerInstanceId: string;
|
|
68
|
+
readonly requestId: string;
|
|
69
|
+
readonly candidateId?: string;
|
|
70
|
+
}
|
|
71
|
+
export type InputPredictionValidation = {
|
|
72
|
+
readonly kind: 'valid' | 'stale' | 'expired' | 'unavailable';
|
|
73
|
+
};
|
|
74
|
+
export interface InputPredictionPort {
|
|
75
|
+
request(request: InputPredictionRequest): Promise<InputPredictionResult>;
|
|
76
|
+
cancel(reference: InputPredictionReference): Promise<unknown>;
|
|
77
|
+
validate(reference: InputPredictionReference): Promise<InputPredictionValidation>;
|
|
78
|
+
}
|
|
79
|
+
export interface InputPredictionStatus {
|
|
80
|
+
readonly reason: 'ready' | 'disabled' | 'model_unconfigured' | 'budget' | 'usage_unavailable' | 'provider_error';
|
|
81
|
+
readonly requests: number;
|
|
82
|
+
readonly tokens: number;
|
|
83
|
+
readonly estimated: boolean;
|
|
84
|
+
}
|
|
85
|
+
export declare function isInputPredictionRequest(value: unknown): value is InputPredictionRequest;
|
|
86
|
+
export declare function isInputPredictionReference(value: unknown): value is InputPredictionReference;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const INPUT_PREDICTION_LIMITS = Object.freeze({
|
|
2
|
+
inputTokens: 4096, outputTokens: 256, draftLength: 2048,
|
|
3
|
+
candidateLength: 240, candidateGraphemes: 120,
|
|
4
|
+
timeoutMs: 6000, validationMs: 150, ttlMs: 60_000,
|
|
5
|
+
requestIntervalMs: 3000, requestsPerMinute: 12,
|
|
6
|
+
});
|
|
7
|
+
export function normalizeInputPredictionSettings(value) {
|
|
8
|
+
const raw = value && typeof value === 'object' && !Array.isArray(value) ? value : {};
|
|
9
|
+
const supported = (value == null || value === raw)
|
|
10
|
+
&& (raw.schemaVersion === undefined || raw.schemaVersion === 1);
|
|
11
|
+
const input = supported ? raw : {};
|
|
12
|
+
const enabled = supported && (input.enabled === undefined || input.enabled === true);
|
|
13
|
+
const limit = (value, fallback) => typeof value === 'number'
|
|
14
|
+
&& Number.isSafeInteger(value) && value >= 0 ? value : fallback;
|
|
15
|
+
return {
|
|
16
|
+
schemaVersion: 1,
|
|
17
|
+
enabled,
|
|
18
|
+
// Preserve an existing explicit refusal until the user enables or selects a model again.
|
|
19
|
+
continuationEnabled: enabled && (input.continuationEnabled === undefined || input.continuationEnabled === true),
|
|
20
|
+
disabledWorkspaceIds: Array.isArray(input.disabledWorkspaceIds)
|
|
21
|
+
? [...new Set(input.disabledWorkspaceIds.filter((id) => typeof id === 'string' && id.length > 0 && id.length <= 200))] : [],
|
|
22
|
+
dailyRequestLimit: limit(input.dailyRequestLimit, 100),
|
|
23
|
+
dailyTokenLimit: limit(input.dailyTokenLimit, 100_000),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function isInputPredictionRequest(value) {
|
|
27
|
+
if (!value || typeof value !== 'object')
|
|
28
|
+
return false;
|
|
29
|
+
const row = value;
|
|
30
|
+
const id = (key) => typeof row[key] === 'string' && row[key].length > 0 && row[key].length <= 200;
|
|
31
|
+
return ['requestId', 'workspaceId', 'conversationId', 'composerInstanceId'].every(id)
|
|
32
|
+
&& ['desktop_bot', 'desktop_classic'].includes(String(row.surface))
|
|
33
|
+
&& ['next_turn', 'continuation'].includes(String(row.mode))
|
|
34
|
+
&& Number.isSafeInteger(row.draftVersion) && Number(row.draftVersion) >= 0
|
|
35
|
+
&& typeof row.draftText === 'string' && row.draftText.length <= INPUT_PREDICTION_LIMITS.draftLength
|
|
36
|
+
&& Number.isSafeInteger(row.selectionStart) && Number.isSafeInteger(row.selectionEnd)
|
|
37
|
+
&& Number(row.selectionStart) >= 0 && Number(row.selectionStart) === Number(row.selectionEnd)
|
|
38
|
+
&& Number(row.selectionEnd) === row.draftText.length
|
|
39
|
+
&& (row.mode === 'next_turn' ? row.draftText === '' : row.draftText.length > 0)
|
|
40
|
+
&& (row.quoteMessageId === undefined || id('quoteMessageId'));
|
|
41
|
+
}
|
|
42
|
+
export function isInputPredictionReference(value) {
|
|
43
|
+
if (!value || typeof value !== 'object')
|
|
44
|
+
return false;
|
|
45
|
+
const row = value;
|
|
46
|
+
return ['composerInstanceId', 'requestId'].every(key => typeof row[key] === 'string' && row[key].length > 0 && row[key].length <= 200)
|
|
47
|
+
&& (row.candidateId === undefined || typeof row.candidateId === 'string' && row.candidateId.length > 0 && row.candidateId.length <= 200);
|
|
48
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/** ADR 117: model interpretations are continuity facts, never permissions or task acceptance. */
|
|
2
|
+
export type InputDispositionKind = 'discuss' | 'answer' | 'delegate' | 'augment' | 'revise' | 'withdraw';
|
|
3
|
+
export interface InputDisposition {
|
|
4
|
+
readonly inputId: string;
|
|
5
|
+
readonly kind: InputDispositionKind;
|
|
6
|
+
readonly reason: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IntentRequirement {
|
|
9
|
+
readonly requirementId: string;
|
|
10
|
+
readonly text: string;
|
|
11
|
+
readonly sourceInputIds: readonly string[];
|
|
12
|
+
}
|
|
13
|
+
export interface IntentInterpretation {
|
|
14
|
+
readonly outcome: string;
|
|
15
|
+
readonly constraints: readonly string[];
|
|
16
|
+
readonly nonGoals: readonly string[];
|
|
17
|
+
readonly openQuestions: readonly string[];
|
|
18
|
+
readonly requirements: readonly IntentRequirement[];
|
|
19
|
+
}
|
|
20
|
+
export interface GoalCoverageItem {
|
|
21
|
+
readonly requirementId: string;
|
|
22
|
+
readonly status: 'remaining' | 'covered' | 'uncertain';
|
|
23
|
+
readonly explanation: string;
|
|
24
|
+
readonly sources: readonly {
|
|
25
|
+
readonly sessionId: string;
|
|
26
|
+
readonly sourceRevision: string;
|
|
27
|
+
readonly evidenceRefs: readonly string[];
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
30
|
+
export type WorkDisposition = {
|
|
31
|
+
readonly kind: 'continue';
|
|
32
|
+
readonly operationRefs: readonly string[];
|
|
33
|
+
} | {
|
|
34
|
+
readonly kind: 'wait';
|
|
35
|
+
readonly waitFor: readonly {
|
|
36
|
+
readonly kind: 'session' | 'human_request' | 'resource' | 'recovery';
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly revision: string;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
/** Host-reserved reply reference; local bindings resolve the actual canonical message or digest. */
|
|
42
|
+
| {
|
|
43
|
+
readonly kind: 'return';
|
|
44
|
+
readonly replyRef: string;
|
|
45
|
+
} | {
|
|
46
|
+
readonly kind: 'blocked_system';
|
|
47
|
+
readonly code: string;
|
|
48
|
+
readonly recoveryRef: string;
|
|
49
|
+
} | {
|
|
50
|
+
readonly kind: 'withdraw';
|
|
51
|
+
readonly controlRef: string;
|
|
52
|
+
};
|
|
53
|
+
export interface IntentAssessment {
|
|
54
|
+
readonly operationId: string;
|
|
55
|
+
readonly workId: string;
|
|
56
|
+
/** Semantic coordination revision, independent of budget writes and journal sequence. */
|
|
57
|
+
readonly expectedWorkRevision: number;
|
|
58
|
+
readonly expectedGoalRevision: number;
|
|
59
|
+
readonly sourceInputIds: readonly string[];
|
|
60
|
+
readonly sourceEventIds: readonly string[];
|
|
61
|
+
readonly sourceDecisionRef?: string;
|
|
62
|
+
readonly inputs: readonly InputDisposition[];
|
|
63
|
+
readonly interpretation?: IntentInterpretation;
|
|
64
|
+
readonly coverage: readonly GoalCoverageItem[];
|
|
65
|
+
readonly disposition: WorkDisposition;
|
|
66
|
+
readonly reason: string;
|
|
67
|
+
}
|
|
68
|
+
export interface IntentCoordination {
|
|
69
|
+
readonly schemaVersion: 1;
|
|
70
|
+
readonly revision: number;
|
|
71
|
+
readonly goalRevision: number;
|
|
72
|
+
readonly interpretation: IntentInterpretation;
|
|
73
|
+
readonly inputs: Readonly<Record<string, InputDisposition>>;
|
|
74
|
+
readonly coverage: readonly GoalCoverageItem[];
|
|
75
|
+
readonly decision: IntentAssessment;
|
|
76
|
+
readonly decisionTurnId?: string;
|
|
77
|
+
readonly lifecycle: 'active' | 'fulfilled' | 'cancelled';
|
|
78
|
+
readonly updatedAt: string;
|
|
79
|
+
readonly review?: {
|
|
80
|
+
readonly reviewRef: string;
|
|
81
|
+
readonly passed: boolean;
|
|
82
|
+
readonly goalRevision: number;
|
|
83
|
+
readonly intentRevision: number;
|
|
84
|
+
readonly coverageDigest: string;
|
|
85
|
+
readonly sources: readonly {
|
|
86
|
+
readonly sessionId: string;
|
|
87
|
+
readonly sourceRevision: string;
|
|
88
|
+
readonly observationRevision: string;
|
|
89
|
+
}[];
|
|
90
|
+
readonly evidenceRefs: readonly string[];
|
|
91
|
+
readonly at: string;
|
|
92
|
+
};
|
|
93
|
+
readonly closure?: {
|
|
94
|
+
readonly operationId: string;
|
|
95
|
+
readonly replyRef?: string;
|
|
96
|
+
readonly replyRefs?: readonly string[];
|
|
97
|
+
readonly intentReplyRef?: string;
|
|
98
|
+
readonly reviewRef?: string;
|
|
99
|
+
readonly at: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface IntentClosureRequest {
|
|
103
|
+
readonly operationId: string;
|
|
104
|
+
readonly workId: string;
|
|
105
|
+
readonly expectedWorkRevision: number;
|
|
106
|
+
readonly expectedGoalRevision: number;
|
|
107
|
+
readonly lifecycle: 'fulfilled' | 'cancelled';
|
|
108
|
+
}
|
|
109
|
+
export interface IntentDecisionReceipt {
|
|
110
|
+
readonly operationId: string;
|
|
111
|
+
readonly workId: string;
|
|
112
|
+
readonly workRevision: number;
|
|
113
|
+
readonly goalRevision: number;
|
|
114
|
+
readonly at: string;
|
|
115
|
+
readonly turnId?: string;
|
|
116
|
+
readonly continuation?: boolean;
|
|
117
|
+
}
|
|
118
|
+
export type IntentCoordinationRequest = {
|
|
119
|
+
readonly action: 'query';
|
|
120
|
+
readonly workId: string;
|
|
121
|
+
readonly expectedRevision?: number;
|
|
122
|
+
readonly expectedWorkRevision?: number;
|
|
123
|
+
readonly afterSessionId?: string;
|
|
124
|
+
readonly afterInputId?: string;
|
|
125
|
+
readonly inputId?: string;
|
|
126
|
+
readonly eventId?: string;
|
|
127
|
+
readonly payloadOffset?: number;
|
|
128
|
+
} | {
|
|
129
|
+
readonly action: 'assess';
|
|
130
|
+
readonly assessment: Omit<IntentAssessment, 'operationId'>;
|
|
131
|
+
};
|
|
132
|
+
/** Bounded host projection. Available actions are a snapshot, not grants. */
|
|
133
|
+
export interface CoordinationDecisionFrame {
|
|
134
|
+
readonly resourceWaits?: readonly import('./runtime-session-facts.ts').ResourceWaitFact[];
|
|
135
|
+
readonly resourceWaitError?: string;
|
|
136
|
+
readonly workId: string;
|
|
137
|
+
readonly workRevision: number;
|
|
138
|
+
readonly goalRevision: number;
|
|
139
|
+
readonly sourceInputIds: readonly string[];
|
|
140
|
+
readonly sourceEventIds: readonly string[];
|
|
141
|
+
readonly sourceDecisionRef?: string;
|
|
142
|
+
readonly intent: {
|
|
143
|
+
readonly lifecycle: IntentCoordination['lifecycle'];
|
|
144
|
+
readonly outcome: string;
|
|
145
|
+
readonly constraints: readonly string[];
|
|
146
|
+
readonly nonGoals: readonly string[];
|
|
147
|
+
readonly openQuestions: readonly string[];
|
|
148
|
+
readonly openQuestionCount: number;
|
|
149
|
+
readonly remainingRequirementCount: number;
|
|
150
|
+
readonly inputDispositions: readonly InputDisposition[];
|
|
151
|
+
readonly requirements: readonly (IntentRequirement & {
|
|
152
|
+
readonly status: GoalCoverageItem['status'];
|
|
153
|
+
})[];
|
|
154
|
+
readonly disposition: WorkDisposition['kind'];
|
|
155
|
+
readonly review?: {
|
|
156
|
+
readonly reviewRef: string;
|
|
157
|
+
readonly passed: boolean;
|
|
158
|
+
readonly current: boolean;
|
|
159
|
+
readonly goalRevision: number;
|
|
160
|
+
} | null;
|
|
161
|
+
} | null;
|
|
162
|
+
readonly sessions: readonly {
|
|
163
|
+
readonly sessionId: string;
|
|
164
|
+
readonly title: string;
|
|
165
|
+
readonly status: string;
|
|
166
|
+
readonly sourceRevision?: string;
|
|
167
|
+
readonly observationRevision?: string;
|
|
168
|
+
readonly humanGate: boolean;
|
|
169
|
+
}[];
|
|
170
|
+
readonly events: readonly {
|
|
171
|
+
readonly eventId: string;
|
|
172
|
+
readonly kind: string;
|
|
173
|
+
readonly sessionId?: string;
|
|
174
|
+
readonly payload: Readonly<Record<string, unknown>>;
|
|
175
|
+
}[];
|
|
176
|
+
readonly questions: readonly Readonly<Record<string, unknown>>[];
|
|
177
|
+
readonly operations: readonly Readonly<Record<string, unknown>>[];
|
|
178
|
+
readonly unknownEffects: readonly Readonly<Record<string, unknown>>[];
|
|
179
|
+
readonly controls: Readonly<Record<string, unknown>>;
|
|
180
|
+
readonly omitted: Readonly<Record<string, number | boolean>>;
|
|
181
|
+
readonly retrieval: {
|
|
182
|
+
readonly tool: 'coordinate_work';
|
|
183
|
+
readonly action: 'query';
|
|
184
|
+
readonly workId: string;
|
|
185
|
+
readonly expectedRevision: number;
|
|
186
|
+
readonly afterSessionId?: string;
|
|
187
|
+
};
|
|
188
|
+
readonly availableActions: readonly {
|
|
189
|
+
readonly action: string;
|
|
190
|
+
readonly allowed: boolean;
|
|
191
|
+
readonly reason?: string;
|
|
192
|
+
}[];
|
|
193
|
+
readonly truncated: boolean;
|
|
194
|
+
}
|
|
195
|
+
export interface ProgressObservation {
|
|
196
|
+
readonly kind: 'observed' | 'admitted' | 'advanced';
|
|
197
|
+
readonly fingerprint: string;
|
|
198
|
+
readonly failure: boolean;
|
|
199
|
+
/** Host-normalized facts; this record is neither Evidence nor an execution/permission receipt. */
|
|
200
|
+
readonly fact: Readonly<Record<string, unknown>>;
|
|
201
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|