@mininglamp-oss/octo-runtime-client 0.0.0-stage → 1.1.11
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/LICENSE +190 -0
- package/README.md +38 -2
- package/build-info.json +5 -0
- package/dist/async-question-reply.d.ts +30 -0
- package/dist/async-question-reply.js +199 -0
- package/dist/browser.d.ts +1 -0
- package/dist/browser.js +1 -0
- package/dist/client.d.ts +10 -0
- package/dist/client.js +465 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/internal.d.ts +4 -0
- package/dist/internal.js +5 -0
- package/dist/invocation-lifecycle.d.ts +59 -0
- package/dist/invocation-lifecycle.js +287 -0
- package/dist/notification.d.ts +1 -0
- package/dist/notification.js +1 -0
- package/dist/protocol.d.ts +1 -0
- package/dist/protocol.js +1 -0
- package/dist/runtime-path.d.ts +21 -0
- package/dist/runtime-path.js +138 -0
- package/dist/startup-catalog.d.ts +8 -0
- package/dist/startup-catalog.js +65 -0
- package/dist/startup-diagnostics.d.ts +82 -0
- package/dist/startup-diagnostics.js +371 -0
- package/dist/submission-error.d.ts +10 -0
- package/dist/submission-error.js +23 -0
- package/dist/types.d.ts +72 -0
- package/dist/types.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.js +36 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.d.ts +11 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +33 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.d.ts +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.js +58 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-hash.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-hash.js +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +29 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +566 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.js +80 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/experience.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/experience.js +166 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +82 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +562 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +3022 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.js +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +124 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +709 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +129 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +177 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-size.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-size.js +11 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/json-size.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/json-size.js +91 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.js +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.d.ts +15 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +166 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/notification.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/notification.js +137 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/questions.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/questions.js +84 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +20 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +294 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.js +68 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.d.ts +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +65 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/stream-limits.d.ts +27 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/stream-limits.js +56 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +15 -0
- package/package.json +55 -4
- package/schema/context-configuration-fixtures.json +1219 -0
- package/schema/context-fixtures.json +5988 -0
- package/schema/kernel-client.behavior.json +56 -0
- package/schema/kernel-ipc-fixtures.json +53 -0
- package/schema/kernel-ipc.schema.json +538 -0
- package/schema/native-invoke-fixtures.json +116 -0
- package/schema/protocol.schema.json +4525 -0
- package/schema/run-protocol-fixtures.json +761 -0
- package/schema/runtime-selection-fixtures.json +663 -0
- package/schema/session-name-fixtures.json +191 -0
|
@@ -0,0 +1,3022 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/gen-types.mjs from schema/protocol.schema.json.
|
|
3
|
+
* Do not edit directly; update the schema and run `pnpm gen`.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
7
|
+
* via the `definition` "ProtocolMode".
|
|
8
|
+
*/
|
|
9
|
+
export type ProtocolMode = "native" | "canonical";
|
|
10
|
+
/**
|
|
11
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
12
|
+
* via the `definition` "HostFrame".
|
|
13
|
+
*/
|
|
14
|
+
export type HostFrame = NativeHostFrame | CanonicalHostFrame | ControlHostFrame;
|
|
15
|
+
/**
|
|
16
|
+
* Provider-neutral assistant output channel. analysis is reasoning-class content gated by exposure; commentary is public in-run progress; final is answer content delivered only after the Run reaches a completed terminal state.
|
|
17
|
+
*
|
|
18
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
19
|
+
* via the `definition` "MessageChannel".
|
|
20
|
+
*/
|
|
21
|
+
export type MessageChannel = "analysis" | "commentary" | "final";
|
|
22
|
+
/**
|
|
23
|
+
* Adapter-authenticated classification of analysis content. public_reasoning, public_summary, and public_plan may enter a public Presentation; missing values are unknown.
|
|
24
|
+
*
|
|
25
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
26
|
+
* via the `definition` "MessageExposure".
|
|
27
|
+
*/
|
|
28
|
+
export type MessageExposure = "public_reasoning" | "public_summary" | "public_plan" | "private_reasoning" | "unknown";
|
|
29
|
+
/**
|
|
30
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
31
|
+
* via the `definition` "HostControl".
|
|
32
|
+
*/
|
|
33
|
+
export type HostControl = {
|
|
34
|
+
type: "evidence";
|
|
35
|
+
name: "execution";
|
|
36
|
+
payload: ExecutionEvidence;
|
|
37
|
+
} | {
|
|
38
|
+
type: "evidence";
|
|
39
|
+
name: "session";
|
|
40
|
+
payload: {
|
|
41
|
+
[k: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
type: "state";
|
|
45
|
+
state: "running" | "completed" | "failed" | "cancelled" | "lost";
|
|
46
|
+
} | {
|
|
47
|
+
type: "error";
|
|
48
|
+
code: RunProtocolErrorCode;
|
|
49
|
+
message: string;
|
|
50
|
+
failure?: FailureEnvelope;
|
|
51
|
+
} | {
|
|
52
|
+
type: "interaction";
|
|
53
|
+
requestId: string | number;
|
|
54
|
+
status: "pending" | "resolved" | "expired" | "invalidated";
|
|
55
|
+
/**
|
|
56
|
+
* Whether an external response is required. Omission means required; false does not imply resolution or completion.
|
|
57
|
+
*/
|
|
58
|
+
responseRequired?: boolean;
|
|
59
|
+
expiresAt?: number;
|
|
60
|
+
} | {
|
|
61
|
+
type: "gap";
|
|
62
|
+
requested_after_seq: number;
|
|
63
|
+
oldest_seq: number;
|
|
64
|
+
latest_seq: number;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
68
|
+
* via the `definition` "RunProtocolErrorCode".
|
|
69
|
+
*/
|
|
70
|
+
export type RunProtocolErrorCode = "PROTOCOL_MODE_INVALID" | "PROTOCOL_MODE_UNSUPPORTED" | "EXECUTION_PROTOCOL_MISMATCH" | "EXECUTION_IDENTITY_CONFLICT" | "NATIVE_METHOD_UNSUPPORTED" | "NATIVE_RESPONSE_INVALID" | "INTERACTION_NOT_ACTIVE" | "INVALID_QUESTION_RESPONSE" | "ASYNC_ANSWER_REJECTED" | "OPERATION_OUTCOME_UNKNOWN" | "HOST_EXECUTION_FAILED" | "HOST_ENDED_WITHOUT_TERMINAL" | "PROVIDER_MESSAGE_TOO_LARGE" | "HOST_FRAME_TOO_LARGE" | "STREAM_QUEUE_ITEM_TOO_LARGE" | "STREAM_QUEUE_BYTES_EXCEEDED" | "STREAM_QUEUE_ITEMS_EXCEEDED" | "STREAM_GAP" | "STREAM_EXPIRED" | "REMOTE_NATIVE_UNSUPPORTED" | "HOST_FRAME_INVALID" | "HOST_CONTROL_INVALID" | "HOST_RECEIPT_INVALID" | "PROTOCOL_SUPPORT_INVALID";
|
|
71
|
+
export type ProtocolMode1 = "native" | "canonical";
|
|
72
|
+
/**
|
|
73
|
+
* Public, channel-neutral project notification. No runtime context, reasoning, credentials, or tool payloads belong in this envelope.
|
|
74
|
+
*
|
|
75
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
76
|
+
* via the `definition` "NotificationMessage".
|
|
77
|
+
*/
|
|
78
|
+
export type NotificationMessage = NotificationMessage1;
|
|
79
|
+
/**
|
|
80
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
81
|
+
* via the `definition` "ApprovalMode".
|
|
82
|
+
*/
|
|
83
|
+
export type ApprovalMode = "ask" | "assisted" | "full_access";
|
|
84
|
+
/**
|
|
85
|
+
* Open Context item. Built-in types retain their payload contracts; unknown optional types are preserved and ignored by unsupported consumers.
|
|
86
|
+
*
|
|
87
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
88
|
+
* via the `definition` "ContextItem".
|
|
89
|
+
*/
|
|
90
|
+
export type ContextItem = {
|
|
91
|
+
namespace: string;
|
|
92
|
+
name: string;
|
|
93
|
+
guidance?: string;
|
|
94
|
+
data_format?: "text";
|
|
95
|
+
payload: Record<string, unknown>;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
99
|
+
* via the `definition` "PersistentContextEnvelope".
|
|
100
|
+
*/
|
|
101
|
+
export type PersistentContextEnvelope = ContextEnvelope;
|
|
102
|
+
/**
|
|
103
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
104
|
+
* via the `definition` "PublicObjectMaterial".
|
|
105
|
+
*/
|
|
106
|
+
export type PublicObjectMaterial = {
|
|
107
|
+
resource_ref: string;
|
|
108
|
+
object_type: "task" | "discussion" | "discussion_comment" | "discussion_reply" | "local_file" | "drive_file";
|
|
109
|
+
object_id?: string;
|
|
110
|
+
origin: "mention" | "attachment" | "object_action" | "source_entity";
|
|
111
|
+
revision?: string;
|
|
112
|
+
byte_size: number;
|
|
113
|
+
digest: string;
|
|
114
|
+
object_scope?: {
|
|
115
|
+
type: "user" | "teamspace";
|
|
116
|
+
id: string;
|
|
117
|
+
};
|
|
118
|
+
selector?: {
|
|
119
|
+
mode: "core" | "content" | "history" | "chain" | "metadata";
|
|
120
|
+
start?: number;
|
|
121
|
+
end?: number;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
126
|
+
* via the `definition` "ContextModelSelectionPayload".
|
|
127
|
+
*/
|
|
128
|
+
export type ContextModelSelectionPayload = {
|
|
129
|
+
id?: string;
|
|
130
|
+
use_provider_default?: true;
|
|
131
|
+
} & ContextModelSelectionPayload1;
|
|
132
|
+
export type ContextModelSelectionPayload1 = {
|
|
133
|
+
[k: string]: unknown;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
137
|
+
* via the `definition` "ContextReasoningPayload".
|
|
138
|
+
*/
|
|
139
|
+
export type ContextReasoningPayload = {
|
|
140
|
+
effort?: string;
|
|
141
|
+
use_provider_default?: true;
|
|
142
|
+
} & ContextReasoningPayload1;
|
|
143
|
+
export type ContextReasoningPayload1 = {
|
|
144
|
+
[k: string]: unknown;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* fixed uses the supplied path; random creates a workspace on the AgentSession's first run and reuses it for subsequent runs; none delegates workspace ownership to a preset Agent.
|
|
148
|
+
*
|
|
149
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
150
|
+
* via the `definition` "ContextWorkspacePayload".
|
|
151
|
+
*/
|
|
152
|
+
export type ContextWorkspacePayload = {
|
|
153
|
+
mode: "fixed";
|
|
154
|
+
path: string;
|
|
155
|
+
} | {
|
|
156
|
+
mode: "random";
|
|
157
|
+
} | {
|
|
158
|
+
mode: "none";
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
162
|
+
* via the `definition` "ContextRuntimeSelectionPayload".
|
|
163
|
+
*/
|
|
164
|
+
export type ContextRuntimeSelectionPayload = {
|
|
165
|
+
mode: "candidates" | "explicit";
|
|
166
|
+
runtime_id?: string;
|
|
167
|
+
/**
|
|
168
|
+
* @minItems 1
|
|
169
|
+
* @maxItems 64
|
|
170
|
+
*/
|
|
171
|
+
runtime_ids?: [string, ...string[]];
|
|
172
|
+
strategy?: "preferred_failover";
|
|
173
|
+
offline_behavior?: "wait" | "fail";
|
|
174
|
+
failover?: "candidates" | "none";
|
|
175
|
+
} & ContextRuntimeSelectionPayload1;
|
|
176
|
+
export type ContextRuntimeSelectionPayload1 = {
|
|
177
|
+
mode?: "candidates";
|
|
178
|
+
} | {
|
|
179
|
+
mode?: "explicit";
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* A channel continuity descriptor. The x-octo-matching-trigger-fields keyword requires trigger_fact.message_id == trigger_message_id and matching presence/value of trigger_fact.message_seq and trigger_seq.
|
|
183
|
+
*
|
|
184
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
185
|
+
* via the `definition` "ContextContinuityPayload".
|
|
186
|
+
*/
|
|
187
|
+
export type ContextContinuityPayload = ChannelContextDescriptor & {
|
|
188
|
+
session_generation?: {
|
|
189
|
+
[k: string]: unknown;
|
|
190
|
+
};
|
|
191
|
+
trigger_seq?: {
|
|
192
|
+
[k: string]: unknown;
|
|
193
|
+
};
|
|
194
|
+
trigger_fact?: {
|
|
195
|
+
message_seq?: {
|
|
196
|
+
[k: string]: unknown;
|
|
197
|
+
};
|
|
198
|
+
occurred_at_ms?: {
|
|
199
|
+
[k: string]: unknown;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Worker-frozen Context runtime candidates. Explicit selection cannot fail over.
|
|
205
|
+
*
|
|
206
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
207
|
+
* via the `definition` "ResolvedRuntimeSelection".
|
|
208
|
+
*/
|
|
209
|
+
export type ResolvedRuntimeSelection = ResolvedRuntimeSelection1;
|
|
210
|
+
/**
|
|
211
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
212
|
+
* via the `definition` "ResolvedExecutionPlan".
|
|
213
|
+
*/
|
|
214
|
+
export type ResolvedExecutionPlan = ResolvedExecutionPlan1;
|
|
215
|
+
/**
|
|
216
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
217
|
+
* via the `definition` "AgentSource".
|
|
218
|
+
*/
|
|
219
|
+
export type AgentSource = "preset" | "provisioned";
|
|
220
|
+
/**
|
|
221
|
+
* Dynamic server-name map. No business-specific names are enumerated. Each value must match one closed transport variant.
|
|
222
|
+
*
|
|
223
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
224
|
+
* via the `definition` "McpServers".
|
|
225
|
+
*/
|
|
226
|
+
export type McpServers = Record<string, McpServer>;
|
|
227
|
+
/**
|
|
228
|
+
* Provider-neutral interaction. Omitted delivery retains synchronous blocking semantics; async questions allow continued work. Only Adapter-owned automatic approvals may omit external responses; this does not imply completion.
|
|
229
|
+
*
|
|
230
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
231
|
+
* via the `definition` "InteractionRequestedPayload".
|
|
232
|
+
*/
|
|
233
|
+
export type InteractionRequestedPayload = InteractionRequestedPayload1;
|
|
234
|
+
/**
|
|
235
|
+
* Display-only fields permitted by assertApprovalRequest. Values remain inert provider metadata and do not redefine commands, permissions or grant scope.
|
|
236
|
+
*
|
|
237
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
238
|
+
* via the `definition` "ApprovalDisplayDetails".
|
|
239
|
+
*/
|
|
240
|
+
export type ApprovalDisplayDetails = Record<string, unknown>;
|
|
241
|
+
/**
|
|
242
|
+
* Bounded history result. complete means only that the requested window was returned, not that the local journal is authoritative.
|
|
243
|
+
*
|
|
244
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
245
|
+
* via the `definition` "ContextSyncResult".
|
|
246
|
+
*/
|
|
247
|
+
export type ContextSyncResult = ContextSyncResult1;
|
|
248
|
+
/**
|
|
249
|
+
* Provider-neutral per-invocation MCP server definition.
|
|
250
|
+
*
|
|
251
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
252
|
+
* via the `definition` "McpServer".
|
|
253
|
+
*/
|
|
254
|
+
export type McpServer = McpStdioServer | McpStreamableHttpServer;
|
|
255
|
+
/**
|
|
256
|
+
* Ordered provider-native user input. Image bytes are materialized only for the invocation, never used as a text fallback.
|
|
257
|
+
*
|
|
258
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
259
|
+
* via the `definition` "ModelInputPart".
|
|
260
|
+
*/
|
|
261
|
+
export type ModelInputPart = {
|
|
262
|
+
id?: string;
|
|
263
|
+
type: "text";
|
|
264
|
+
text: string;
|
|
265
|
+
} | {
|
|
266
|
+
id?: string;
|
|
267
|
+
type: "image";
|
|
268
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp";
|
|
269
|
+
data: string;
|
|
270
|
+
byteSize: number;
|
|
271
|
+
sha256: string;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
275
|
+
* via the `definition` "ActivitySubject".
|
|
276
|
+
*/
|
|
277
|
+
export type ActivitySubject = {
|
|
278
|
+
type: "run";
|
|
279
|
+
} | {
|
|
280
|
+
type: "message";
|
|
281
|
+
id: string;
|
|
282
|
+
} | {
|
|
283
|
+
type: "tool";
|
|
284
|
+
id: string;
|
|
285
|
+
} | {
|
|
286
|
+
type: "interaction";
|
|
287
|
+
id: string;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Declarative MCP resource operation. Only deployed scoped operations may execute; schema validation does not authorize access.
|
|
291
|
+
*
|
|
292
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
293
|
+
* via the `definition` "ContextReferenceEntry".
|
|
294
|
+
*/
|
|
295
|
+
export type ContextReferenceEntry = {
|
|
296
|
+
locator?: ContextMcpLocator;
|
|
297
|
+
} & {
|
|
298
|
+
resource_ref: string;
|
|
299
|
+
resolver: "mcp";
|
|
300
|
+
locator: {};
|
|
301
|
+
/**
|
|
302
|
+
* Frozen non-secret JSON parameters supplied by the authenticated resolver plan, not model-generated commands.
|
|
303
|
+
*/
|
|
304
|
+
params?: Record<string, unknown>;
|
|
305
|
+
authorization_ref?: string;
|
|
306
|
+
revision?: string;
|
|
307
|
+
};
|
|
308
|
+
/**
|
|
309
|
+
* @minItems 1
|
|
310
|
+
* @maxItems 128
|
|
311
|
+
*
|
|
312
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
313
|
+
* via the `definition` "ModelInputParts".
|
|
314
|
+
*/
|
|
315
|
+
export type ModelInputParts = [ModelInputPart, ...ModelInputPart[]];
|
|
316
|
+
/**
|
|
317
|
+
* Serializable data shapes for the Octo Runtime NDJSON protocol. Runtime behavior remains hand-written in src/index.ts, and this schema is the source of truth for generated TypeScript types. The x-octo-unicode-scalar-strings semantic keyword requires every JSON string value and object member name to contain Unicode scalar values only: unpaired UTF-16 surrogates are rejected, not repaired or normalized. Consumers must enforce this protocol-wide rule even when validating a definition directly.
|
|
318
|
+
*/
|
|
319
|
+
export interface OctoRuntimeProtocolSchema {
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
323
|
+
* via the `definition` "KernelLookupKey".
|
|
324
|
+
*/
|
|
325
|
+
export interface KernelLookupKey {
|
|
326
|
+
run_id: string;
|
|
327
|
+
invocation_id: string;
|
|
328
|
+
agent_session_id: string;
|
|
329
|
+
session_generation: number;
|
|
330
|
+
protocol_mode: ProtocolMode;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
334
|
+
* via the `definition` "KernelRunRef".
|
|
335
|
+
*/
|
|
336
|
+
export interface KernelRunRef {
|
|
337
|
+
kernel_instance_id: string;
|
|
338
|
+
run_id: string;
|
|
339
|
+
invocation_id: string;
|
|
340
|
+
stream_id: string;
|
|
341
|
+
agent_session_id: string;
|
|
342
|
+
session_generation: number;
|
|
343
|
+
protocol_mode: ProtocolMode;
|
|
344
|
+
protocol: string;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
348
|
+
* via the `definition` "KernelRunSnapshot".
|
|
349
|
+
*/
|
|
350
|
+
export interface KernelRunSnapshot {
|
|
351
|
+
ref: KernelRunRef;
|
|
352
|
+
oldest_seq: number;
|
|
353
|
+
latest_seq: number;
|
|
354
|
+
terminal?: HostFrame;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
358
|
+
* via the `definition` "NativeHostFrame".
|
|
359
|
+
*/
|
|
360
|
+
export interface NativeHostFrame {
|
|
361
|
+
run_id: string;
|
|
362
|
+
invocation_id: string;
|
|
363
|
+
stream_id: string;
|
|
364
|
+
agent_session_id: string;
|
|
365
|
+
session_generation: number;
|
|
366
|
+
seq: number;
|
|
367
|
+
protocol_mode: "native";
|
|
368
|
+
protocol: string;
|
|
369
|
+
kind: "native";
|
|
370
|
+
messageKind: "response" | "notification" | "request" | "message";
|
|
371
|
+
payload: {
|
|
372
|
+
[k: string]: unknown;
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
377
|
+
* via the `definition` "CanonicalHostFrame".
|
|
378
|
+
*/
|
|
379
|
+
export interface CanonicalHostFrame {
|
|
380
|
+
run_id: string;
|
|
381
|
+
invocation_id: string;
|
|
382
|
+
stream_id: string;
|
|
383
|
+
agent_session_id: string;
|
|
384
|
+
session_generation: number;
|
|
385
|
+
seq: number;
|
|
386
|
+
protocol_mode: "canonical";
|
|
387
|
+
protocol: string;
|
|
388
|
+
kind: "canonical";
|
|
389
|
+
event: CanonicalEventWire;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
393
|
+
* via the `definition` "CanonicalEventWire".
|
|
394
|
+
*/
|
|
395
|
+
export interface CanonicalEventWire {
|
|
396
|
+
protocolVersion: 2;
|
|
397
|
+
type: "session.update" | "execution.update" | "usage.update" | "model_step.started" | "model_step.finished" | "message.create" | "message.delta" | "message.update" | "tool_call.create" | "tool_call.delta" | "tool_call.update" | "activity.started" | "activity.updated" | "activity.finished" | "plan.updated" | "tool_call.progress" | "run.notice" | "interaction.requested" | "interaction.resolved" | "run.queued" | "run.started" | "run.completed" | "run.failed" | "run.cancelled";
|
|
398
|
+
payload: CanonicalEventPayload;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Shared canonical event payload. The open dictionary carries structured tool, surface, and usage fields while common lifecycle fields remain explicit.
|
|
402
|
+
*
|
|
403
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
404
|
+
* via the `definition` "CanonicalEventPayload".
|
|
405
|
+
*/
|
|
406
|
+
export interface CanonicalEventPayload {
|
|
407
|
+
/**
|
|
408
|
+
* Async questions do not block provider work. Omitted for existing synchronous interactions.
|
|
409
|
+
*/
|
|
410
|
+
delivery?: "async";
|
|
411
|
+
/**
|
|
412
|
+
* Message snapshot only; an active interaction.requested authorizes submission.
|
|
413
|
+
*
|
|
414
|
+
* @maxItems 50
|
|
415
|
+
*/
|
|
416
|
+
questions?: AsyncUserInputQuestion[];
|
|
417
|
+
providerSession?: ProviderSession;
|
|
418
|
+
channel?: MessageChannel;
|
|
419
|
+
exposure?: MessageExposure;
|
|
420
|
+
provenance?: MessageProvenance;
|
|
421
|
+
/**
|
|
422
|
+
* Stable message identifier.
|
|
423
|
+
*/
|
|
424
|
+
messageId?: string;
|
|
425
|
+
/**
|
|
426
|
+
* Stable model-step identifier used to associate messages and tool calls with one provider turn.
|
|
427
|
+
*/
|
|
428
|
+
stepId?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Message role, such as assistant.
|
|
431
|
+
*/
|
|
432
|
+
role?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Tool call or run status identifier.
|
|
435
|
+
*/
|
|
436
|
+
status?: string;
|
|
437
|
+
/**
|
|
438
|
+
* Text delta or complete text.
|
|
439
|
+
*/
|
|
440
|
+
text?: string;
|
|
441
|
+
/**
|
|
442
|
+
* Termination or error reason.
|
|
443
|
+
*/
|
|
444
|
+
reason?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Human-readable diagnostic message.
|
|
447
|
+
*/
|
|
448
|
+
message?: string;
|
|
449
|
+
failure?: FailureEnvelope;
|
|
450
|
+
[k: string]: unknown;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
454
|
+
* via the `definition` "AsyncUserInputQuestion".
|
|
455
|
+
*/
|
|
456
|
+
export interface AsyncUserInputQuestion {
|
|
457
|
+
title: string;
|
|
458
|
+
/**
|
|
459
|
+
* @maxItems 50
|
|
460
|
+
*/
|
|
461
|
+
options: string[] | null;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Provider-owned session resume data. Core treats sessionId and adapter extension fields as opaque.
|
|
465
|
+
*
|
|
466
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
467
|
+
* via the `definition` "ProviderSession".
|
|
468
|
+
*/
|
|
469
|
+
export interface ProviderSession {
|
|
470
|
+
/**
|
|
471
|
+
* Opaque provider session identifier.
|
|
472
|
+
*/
|
|
473
|
+
sessionId: string;
|
|
474
|
+
/**
|
|
475
|
+
* Whether the provider declares that later invocations can resume this session.
|
|
476
|
+
*/
|
|
477
|
+
resumable?: boolean;
|
|
478
|
+
/**
|
|
479
|
+
* Require the original provider session; adapters must reject rather than start a fresh fallback. Currently implemented by Codex.
|
|
480
|
+
*/
|
|
481
|
+
requireResume?: boolean;
|
|
482
|
+
/**
|
|
483
|
+
* Continuity outcome for this session update. Compaction applies to the next turn; fresh fallback applies to the current turn.
|
|
484
|
+
*/
|
|
485
|
+
resumeOutcome?: "new" | "resumed" | "fresh_fallback" | "compacted";
|
|
486
|
+
/**
|
|
487
|
+
* Low-cardinality reason for a fresh resume fallback.
|
|
488
|
+
*/
|
|
489
|
+
resumeFallback?: string;
|
|
490
|
+
/**
|
|
491
|
+
* Frozen context input variant actually selected for the current provider turn.
|
|
492
|
+
*/
|
|
493
|
+
contextInputVariant?: "primary" | "recovery";
|
|
494
|
+
[k: string]: unknown;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Provider-native provenance written by the adapter. Audience projectors use it to audit public exposure and clients cannot override it.
|
|
498
|
+
*
|
|
499
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
500
|
+
* via the `definition` "MessageProvenance".
|
|
501
|
+
*/
|
|
502
|
+
export interface MessageProvenance {
|
|
503
|
+
/**
|
|
504
|
+
* Adapter or provider type that produced the message.
|
|
505
|
+
*/
|
|
506
|
+
provider: string;
|
|
507
|
+
/**
|
|
508
|
+
* Provider-native event type that was normalized.
|
|
509
|
+
*/
|
|
510
|
+
nativeEvent: string;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Versioned, safe failure fact shared by Runtime, Worker, and channel projectors. Public codes are immutable catalog identifiers; dynamic diagnostics stay outside this object.
|
|
514
|
+
*
|
|
515
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
516
|
+
* via the `definition` "FailureEnvelope".
|
|
517
|
+
*/
|
|
518
|
+
export interface FailureEnvelope {
|
|
519
|
+
schemaVersion: 1;
|
|
520
|
+
code: string;
|
|
521
|
+
reasonCode: string;
|
|
522
|
+
category: string;
|
|
523
|
+
stage: string;
|
|
524
|
+
messageKey: string;
|
|
525
|
+
/**
|
|
526
|
+
* Catalog-allowlisted presentation parameters only.
|
|
527
|
+
*/
|
|
528
|
+
params: {
|
|
529
|
+
[k: string]: string | number | boolean;
|
|
530
|
+
};
|
|
531
|
+
retryable: boolean;
|
|
532
|
+
retryAfterMs?: number;
|
|
533
|
+
action: FailureAction;
|
|
534
|
+
diagnosticId: string;
|
|
535
|
+
source: FailureSource;
|
|
536
|
+
cause?: FailureCause;
|
|
537
|
+
occurredAt: string;
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* A catalog-controlled recovery action. Clients render labelKey and must not execute arbitrary commands from this object.
|
|
541
|
+
*
|
|
542
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
543
|
+
* via the `definition` "FailureAction".
|
|
544
|
+
*/
|
|
545
|
+
export interface FailureAction {
|
|
546
|
+
type: "retry" | "retry_later" | "update_credentials" | "change_model" | "check_runtime" | "install_dependency" | "fix_permissions" | "contact_admin";
|
|
547
|
+
labelKey: string;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Low-cardinality component identity. It intentionally excludes hostnames, paths, accounts, and tenant data.
|
|
551
|
+
*
|
|
552
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
553
|
+
* via the `definition` "FailureSource".
|
|
554
|
+
*/
|
|
555
|
+
export interface FailureSource {
|
|
556
|
+
component: "octo-runtime" | "octo-agent-worker";
|
|
557
|
+
adapter?: string;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Sanitized machine-readable root cause. Raw stderr, response bodies, paths, and credentials are forbidden.
|
|
561
|
+
*
|
|
562
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
563
|
+
* via the `definition` "FailureCause".
|
|
564
|
+
*/
|
|
565
|
+
export interface FailureCause {
|
|
566
|
+
reasonCode: string;
|
|
567
|
+
httpStatus?: number;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
571
|
+
* via the `definition` "ControlHostFrame".
|
|
572
|
+
*/
|
|
573
|
+
export interface ControlHostFrame {
|
|
574
|
+
run_id: string;
|
|
575
|
+
invocation_id: string;
|
|
576
|
+
stream_id: string;
|
|
577
|
+
agent_session_id: string;
|
|
578
|
+
session_generation: number;
|
|
579
|
+
seq: number;
|
|
580
|
+
protocol_mode: ProtocolMode;
|
|
581
|
+
protocol: string;
|
|
582
|
+
kind: "control";
|
|
583
|
+
control: HostControl;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
587
|
+
* via the `definition` "ExecutionEvidence".
|
|
588
|
+
*/
|
|
589
|
+
export interface ExecutionEvidence {
|
|
590
|
+
actmode: {
|
|
591
|
+
requested: "default" | "plan";
|
|
592
|
+
effective: "default" | "plan" | null;
|
|
593
|
+
status: "applied" | "fallback" | "unknown";
|
|
594
|
+
nativeMode?: string;
|
|
595
|
+
reason?: "provider_unsupported" | "adapter_unmapped" | "provider_unconfirmed";
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
600
|
+
* via the `definition` "ServiceProcessSnapshot".
|
|
601
|
+
*/
|
|
602
|
+
export interface ServiceProcessSnapshot {
|
|
603
|
+
scope_id: string;
|
|
604
|
+
service_id: string;
|
|
605
|
+
incarnation: number;
|
|
606
|
+
provider: string;
|
|
607
|
+
owner_pid: number;
|
|
608
|
+
pid?: number;
|
|
609
|
+
state: "not_started" | "starting" | "ready" | "recovering" | "degraded" | "closing" | "closed" | "cleanup_incomplete";
|
|
610
|
+
observation: "alive" | "exited" | "unknown";
|
|
611
|
+
ownership: "owned";
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
615
|
+
* via the `definition` "KernelStatus".
|
|
616
|
+
*/
|
|
617
|
+
export interface KernelStatus {
|
|
618
|
+
ipc_version: 1;
|
|
619
|
+
kernel_instance_id: string;
|
|
620
|
+
pid: number;
|
|
621
|
+
execution_ready: boolean;
|
|
622
|
+
/**
|
|
623
|
+
* @maxItems 256
|
|
624
|
+
*/
|
|
625
|
+
service_processes?: ServiceProcessSnapshot[];
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
629
|
+
* via the `definition` "HostInvokeOptions".
|
|
630
|
+
*/
|
|
631
|
+
export interface HostInvokeOptions {
|
|
632
|
+
protocolMode?: ProtocolMode1;
|
|
633
|
+
protocol?: string;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
637
|
+
* via the `definition` "HostRunReceipt".
|
|
638
|
+
*/
|
|
639
|
+
export interface HostRunReceipt {
|
|
640
|
+
run_id: string;
|
|
641
|
+
invocation_id: string;
|
|
642
|
+
stream_id: string;
|
|
643
|
+
agent_session_id: string;
|
|
644
|
+
session_generation: number;
|
|
645
|
+
protocol_mode: ProtocolMode;
|
|
646
|
+
protocol: string;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
650
|
+
* via the `definition` "AdapterProtocolSupport".
|
|
651
|
+
*/
|
|
652
|
+
export interface AdapterProtocolSupport {
|
|
653
|
+
protocol: string;
|
|
654
|
+
/**
|
|
655
|
+
* @minItems 1
|
|
656
|
+
*/
|
|
657
|
+
modes: [ProtocolMode, ...ProtocolMode[]];
|
|
658
|
+
nativeMethods: string[];
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
662
|
+
* via the `definition` "NativeInteractionResponse".
|
|
663
|
+
*/
|
|
664
|
+
export interface NativeInteractionResponse {
|
|
665
|
+
requestId: string | number;
|
|
666
|
+
payload: {
|
|
667
|
+
[k: string]: unknown;
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
export interface NotificationMessage1 {
|
|
671
|
+
schema: "octo.notification.v2";
|
|
672
|
+
eventId: string;
|
|
673
|
+
event: "task.event" | "execution.succeeded" | "execution.failed" | "notification.test";
|
|
674
|
+
occurredAt: string;
|
|
675
|
+
projectId: string;
|
|
676
|
+
sourceId: string;
|
|
677
|
+
title: string;
|
|
678
|
+
text: string;
|
|
679
|
+
evt_type?: number;
|
|
680
|
+
task?: {
|
|
681
|
+
id: string;
|
|
682
|
+
title: string;
|
|
683
|
+
status: "backlog" | "todo" | "in_progress" | "done" | "cancelled";
|
|
684
|
+
row_version: number;
|
|
685
|
+
handler_epoch: number;
|
|
686
|
+
responsible_party?: {} | null;
|
|
687
|
+
current_handler?: {} | null;
|
|
688
|
+
};
|
|
689
|
+
taskEvent?: {
|
|
690
|
+
id: string;
|
|
691
|
+
sequence: number;
|
|
692
|
+
evt_type: number;
|
|
693
|
+
actor: {};
|
|
694
|
+
task_conversation_id?: string;
|
|
695
|
+
source_run_id?: string;
|
|
696
|
+
summary: string;
|
|
697
|
+
payload: {};
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* @maxItems 20
|
|
701
|
+
*/
|
|
702
|
+
timeline?: [] | [
|
|
703
|
+
{
|
|
704
|
+
eventId: string;
|
|
705
|
+
sequence: number;
|
|
706
|
+
evt_type: number;
|
|
707
|
+
summary: string;
|
|
708
|
+
}
|
|
709
|
+
] | [
|
|
710
|
+
{
|
|
711
|
+
eventId: string;
|
|
712
|
+
sequence: number;
|
|
713
|
+
evt_type: number;
|
|
714
|
+
summary: string;
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
eventId: string;
|
|
718
|
+
sequence: number;
|
|
719
|
+
evt_type: number;
|
|
720
|
+
summary: string;
|
|
721
|
+
}
|
|
722
|
+
] | [
|
|
723
|
+
{
|
|
724
|
+
eventId: string;
|
|
725
|
+
sequence: number;
|
|
726
|
+
evt_type: number;
|
|
727
|
+
summary: string;
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
eventId: string;
|
|
731
|
+
sequence: number;
|
|
732
|
+
evt_type: number;
|
|
733
|
+
summary: string;
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
eventId: string;
|
|
737
|
+
sequence: number;
|
|
738
|
+
evt_type: number;
|
|
739
|
+
summary: string;
|
|
740
|
+
}
|
|
741
|
+
] | [
|
|
742
|
+
{
|
|
743
|
+
eventId: string;
|
|
744
|
+
sequence: number;
|
|
745
|
+
evt_type: number;
|
|
746
|
+
summary: string;
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
eventId: string;
|
|
750
|
+
sequence: number;
|
|
751
|
+
evt_type: number;
|
|
752
|
+
summary: string;
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
eventId: string;
|
|
756
|
+
sequence: number;
|
|
757
|
+
evt_type: number;
|
|
758
|
+
summary: string;
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
eventId: string;
|
|
762
|
+
sequence: number;
|
|
763
|
+
evt_type: number;
|
|
764
|
+
summary: string;
|
|
765
|
+
}
|
|
766
|
+
] | [
|
|
767
|
+
{
|
|
768
|
+
eventId: string;
|
|
769
|
+
sequence: number;
|
|
770
|
+
evt_type: number;
|
|
771
|
+
summary: string;
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
eventId: string;
|
|
775
|
+
sequence: number;
|
|
776
|
+
evt_type: number;
|
|
777
|
+
summary: string;
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
eventId: string;
|
|
781
|
+
sequence: number;
|
|
782
|
+
evt_type: number;
|
|
783
|
+
summary: string;
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
eventId: string;
|
|
787
|
+
sequence: number;
|
|
788
|
+
evt_type: number;
|
|
789
|
+
summary: string;
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
eventId: string;
|
|
793
|
+
sequence: number;
|
|
794
|
+
evt_type: number;
|
|
795
|
+
summary: string;
|
|
796
|
+
}
|
|
797
|
+
] | [
|
|
798
|
+
{
|
|
799
|
+
eventId: string;
|
|
800
|
+
sequence: number;
|
|
801
|
+
evt_type: number;
|
|
802
|
+
summary: string;
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
eventId: string;
|
|
806
|
+
sequence: number;
|
|
807
|
+
evt_type: number;
|
|
808
|
+
summary: string;
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
eventId: string;
|
|
812
|
+
sequence: number;
|
|
813
|
+
evt_type: number;
|
|
814
|
+
summary: string;
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
eventId: string;
|
|
818
|
+
sequence: number;
|
|
819
|
+
evt_type: number;
|
|
820
|
+
summary: string;
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
eventId: string;
|
|
824
|
+
sequence: number;
|
|
825
|
+
evt_type: number;
|
|
826
|
+
summary: string;
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
eventId: string;
|
|
830
|
+
sequence: number;
|
|
831
|
+
evt_type: number;
|
|
832
|
+
summary: string;
|
|
833
|
+
}
|
|
834
|
+
] | [
|
|
835
|
+
{
|
|
836
|
+
eventId: string;
|
|
837
|
+
sequence: number;
|
|
838
|
+
evt_type: number;
|
|
839
|
+
summary: string;
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
eventId: string;
|
|
843
|
+
sequence: number;
|
|
844
|
+
evt_type: number;
|
|
845
|
+
summary: string;
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
eventId: string;
|
|
849
|
+
sequence: number;
|
|
850
|
+
evt_type: number;
|
|
851
|
+
summary: string;
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
eventId: string;
|
|
855
|
+
sequence: number;
|
|
856
|
+
evt_type: number;
|
|
857
|
+
summary: string;
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
eventId: string;
|
|
861
|
+
sequence: number;
|
|
862
|
+
evt_type: number;
|
|
863
|
+
summary: string;
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
eventId: string;
|
|
867
|
+
sequence: number;
|
|
868
|
+
evt_type: number;
|
|
869
|
+
summary: string;
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
eventId: string;
|
|
873
|
+
sequence: number;
|
|
874
|
+
evt_type: number;
|
|
875
|
+
summary: string;
|
|
876
|
+
}
|
|
877
|
+
] | [
|
|
878
|
+
{
|
|
879
|
+
eventId: string;
|
|
880
|
+
sequence: number;
|
|
881
|
+
evt_type: number;
|
|
882
|
+
summary: string;
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
eventId: string;
|
|
886
|
+
sequence: number;
|
|
887
|
+
evt_type: number;
|
|
888
|
+
summary: string;
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
eventId: string;
|
|
892
|
+
sequence: number;
|
|
893
|
+
evt_type: number;
|
|
894
|
+
summary: string;
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
eventId: string;
|
|
898
|
+
sequence: number;
|
|
899
|
+
evt_type: number;
|
|
900
|
+
summary: string;
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
eventId: string;
|
|
904
|
+
sequence: number;
|
|
905
|
+
evt_type: number;
|
|
906
|
+
summary: string;
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
eventId: string;
|
|
910
|
+
sequence: number;
|
|
911
|
+
evt_type: number;
|
|
912
|
+
summary: string;
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
eventId: string;
|
|
916
|
+
sequence: number;
|
|
917
|
+
evt_type: number;
|
|
918
|
+
summary: string;
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
eventId: string;
|
|
922
|
+
sequence: number;
|
|
923
|
+
evt_type: number;
|
|
924
|
+
summary: string;
|
|
925
|
+
}
|
|
926
|
+
] | [
|
|
927
|
+
{
|
|
928
|
+
eventId: string;
|
|
929
|
+
sequence: number;
|
|
930
|
+
evt_type: number;
|
|
931
|
+
summary: string;
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
eventId: string;
|
|
935
|
+
sequence: number;
|
|
936
|
+
evt_type: number;
|
|
937
|
+
summary: string;
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
eventId: string;
|
|
941
|
+
sequence: number;
|
|
942
|
+
evt_type: number;
|
|
943
|
+
summary: string;
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
eventId: string;
|
|
947
|
+
sequence: number;
|
|
948
|
+
evt_type: number;
|
|
949
|
+
summary: string;
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
eventId: string;
|
|
953
|
+
sequence: number;
|
|
954
|
+
evt_type: number;
|
|
955
|
+
summary: string;
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
eventId: string;
|
|
959
|
+
sequence: number;
|
|
960
|
+
evt_type: number;
|
|
961
|
+
summary: string;
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
eventId: string;
|
|
965
|
+
sequence: number;
|
|
966
|
+
evt_type: number;
|
|
967
|
+
summary: string;
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
eventId: string;
|
|
971
|
+
sequence: number;
|
|
972
|
+
evt_type: number;
|
|
973
|
+
summary: string;
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
eventId: string;
|
|
977
|
+
sequence: number;
|
|
978
|
+
evt_type: number;
|
|
979
|
+
summary: string;
|
|
980
|
+
}
|
|
981
|
+
] | [
|
|
982
|
+
{
|
|
983
|
+
eventId: string;
|
|
984
|
+
sequence: number;
|
|
985
|
+
evt_type: number;
|
|
986
|
+
summary: string;
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
eventId: string;
|
|
990
|
+
sequence: number;
|
|
991
|
+
evt_type: number;
|
|
992
|
+
summary: string;
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
eventId: string;
|
|
996
|
+
sequence: number;
|
|
997
|
+
evt_type: number;
|
|
998
|
+
summary: string;
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
eventId: string;
|
|
1002
|
+
sequence: number;
|
|
1003
|
+
evt_type: number;
|
|
1004
|
+
summary: string;
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
eventId: string;
|
|
1008
|
+
sequence: number;
|
|
1009
|
+
evt_type: number;
|
|
1010
|
+
summary: string;
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
eventId: string;
|
|
1014
|
+
sequence: number;
|
|
1015
|
+
evt_type: number;
|
|
1016
|
+
summary: string;
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
eventId: string;
|
|
1020
|
+
sequence: number;
|
|
1021
|
+
evt_type: number;
|
|
1022
|
+
summary: string;
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
eventId: string;
|
|
1026
|
+
sequence: number;
|
|
1027
|
+
evt_type: number;
|
|
1028
|
+
summary: string;
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
eventId: string;
|
|
1032
|
+
sequence: number;
|
|
1033
|
+
evt_type: number;
|
|
1034
|
+
summary: string;
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
eventId: string;
|
|
1038
|
+
sequence: number;
|
|
1039
|
+
evt_type: number;
|
|
1040
|
+
summary: string;
|
|
1041
|
+
}
|
|
1042
|
+
] | [
|
|
1043
|
+
{
|
|
1044
|
+
eventId: string;
|
|
1045
|
+
sequence: number;
|
|
1046
|
+
evt_type: number;
|
|
1047
|
+
summary: string;
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
eventId: string;
|
|
1051
|
+
sequence: number;
|
|
1052
|
+
evt_type: number;
|
|
1053
|
+
summary: string;
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
eventId: string;
|
|
1057
|
+
sequence: number;
|
|
1058
|
+
evt_type: number;
|
|
1059
|
+
summary: string;
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
eventId: string;
|
|
1063
|
+
sequence: number;
|
|
1064
|
+
evt_type: number;
|
|
1065
|
+
summary: string;
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
eventId: string;
|
|
1069
|
+
sequence: number;
|
|
1070
|
+
evt_type: number;
|
|
1071
|
+
summary: string;
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
eventId: string;
|
|
1075
|
+
sequence: number;
|
|
1076
|
+
evt_type: number;
|
|
1077
|
+
summary: string;
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
eventId: string;
|
|
1081
|
+
sequence: number;
|
|
1082
|
+
evt_type: number;
|
|
1083
|
+
summary: string;
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
eventId: string;
|
|
1087
|
+
sequence: number;
|
|
1088
|
+
evt_type: number;
|
|
1089
|
+
summary: string;
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
eventId: string;
|
|
1093
|
+
sequence: number;
|
|
1094
|
+
evt_type: number;
|
|
1095
|
+
summary: string;
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
eventId: string;
|
|
1099
|
+
sequence: number;
|
|
1100
|
+
evt_type: number;
|
|
1101
|
+
summary: string;
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
eventId: string;
|
|
1105
|
+
sequence: number;
|
|
1106
|
+
evt_type: number;
|
|
1107
|
+
summary: string;
|
|
1108
|
+
}
|
|
1109
|
+
] | [
|
|
1110
|
+
{
|
|
1111
|
+
eventId: string;
|
|
1112
|
+
sequence: number;
|
|
1113
|
+
evt_type: number;
|
|
1114
|
+
summary: string;
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
eventId: string;
|
|
1118
|
+
sequence: number;
|
|
1119
|
+
evt_type: number;
|
|
1120
|
+
summary: string;
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
eventId: string;
|
|
1124
|
+
sequence: number;
|
|
1125
|
+
evt_type: number;
|
|
1126
|
+
summary: string;
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
eventId: string;
|
|
1130
|
+
sequence: number;
|
|
1131
|
+
evt_type: number;
|
|
1132
|
+
summary: string;
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
eventId: string;
|
|
1136
|
+
sequence: number;
|
|
1137
|
+
evt_type: number;
|
|
1138
|
+
summary: string;
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
eventId: string;
|
|
1142
|
+
sequence: number;
|
|
1143
|
+
evt_type: number;
|
|
1144
|
+
summary: string;
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
eventId: string;
|
|
1148
|
+
sequence: number;
|
|
1149
|
+
evt_type: number;
|
|
1150
|
+
summary: string;
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
eventId: string;
|
|
1154
|
+
sequence: number;
|
|
1155
|
+
evt_type: number;
|
|
1156
|
+
summary: string;
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
eventId: string;
|
|
1160
|
+
sequence: number;
|
|
1161
|
+
evt_type: number;
|
|
1162
|
+
summary: string;
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
eventId: string;
|
|
1166
|
+
sequence: number;
|
|
1167
|
+
evt_type: number;
|
|
1168
|
+
summary: string;
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
eventId: string;
|
|
1172
|
+
sequence: number;
|
|
1173
|
+
evt_type: number;
|
|
1174
|
+
summary: string;
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
eventId: string;
|
|
1178
|
+
sequence: number;
|
|
1179
|
+
evt_type: number;
|
|
1180
|
+
summary: string;
|
|
1181
|
+
}
|
|
1182
|
+
] | [
|
|
1183
|
+
{
|
|
1184
|
+
eventId: string;
|
|
1185
|
+
sequence: number;
|
|
1186
|
+
evt_type: number;
|
|
1187
|
+
summary: string;
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
eventId: string;
|
|
1191
|
+
sequence: number;
|
|
1192
|
+
evt_type: number;
|
|
1193
|
+
summary: string;
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
eventId: string;
|
|
1197
|
+
sequence: number;
|
|
1198
|
+
evt_type: number;
|
|
1199
|
+
summary: string;
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
eventId: string;
|
|
1203
|
+
sequence: number;
|
|
1204
|
+
evt_type: number;
|
|
1205
|
+
summary: string;
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
eventId: string;
|
|
1209
|
+
sequence: number;
|
|
1210
|
+
evt_type: number;
|
|
1211
|
+
summary: string;
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
eventId: string;
|
|
1215
|
+
sequence: number;
|
|
1216
|
+
evt_type: number;
|
|
1217
|
+
summary: string;
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
eventId: string;
|
|
1221
|
+
sequence: number;
|
|
1222
|
+
evt_type: number;
|
|
1223
|
+
summary: string;
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
eventId: string;
|
|
1227
|
+
sequence: number;
|
|
1228
|
+
evt_type: number;
|
|
1229
|
+
summary: string;
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
eventId: string;
|
|
1233
|
+
sequence: number;
|
|
1234
|
+
evt_type: number;
|
|
1235
|
+
summary: string;
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
eventId: string;
|
|
1239
|
+
sequence: number;
|
|
1240
|
+
evt_type: number;
|
|
1241
|
+
summary: string;
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
eventId: string;
|
|
1245
|
+
sequence: number;
|
|
1246
|
+
evt_type: number;
|
|
1247
|
+
summary: string;
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
eventId: string;
|
|
1251
|
+
sequence: number;
|
|
1252
|
+
evt_type: number;
|
|
1253
|
+
summary: string;
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
eventId: string;
|
|
1257
|
+
sequence: number;
|
|
1258
|
+
evt_type: number;
|
|
1259
|
+
summary: string;
|
|
1260
|
+
}
|
|
1261
|
+
] | [
|
|
1262
|
+
{
|
|
1263
|
+
eventId: string;
|
|
1264
|
+
sequence: number;
|
|
1265
|
+
evt_type: number;
|
|
1266
|
+
summary: string;
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
eventId: string;
|
|
1270
|
+
sequence: number;
|
|
1271
|
+
evt_type: number;
|
|
1272
|
+
summary: string;
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
eventId: string;
|
|
1276
|
+
sequence: number;
|
|
1277
|
+
evt_type: number;
|
|
1278
|
+
summary: string;
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
eventId: string;
|
|
1282
|
+
sequence: number;
|
|
1283
|
+
evt_type: number;
|
|
1284
|
+
summary: string;
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
eventId: string;
|
|
1288
|
+
sequence: number;
|
|
1289
|
+
evt_type: number;
|
|
1290
|
+
summary: string;
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
eventId: string;
|
|
1294
|
+
sequence: number;
|
|
1295
|
+
evt_type: number;
|
|
1296
|
+
summary: string;
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
eventId: string;
|
|
1300
|
+
sequence: number;
|
|
1301
|
+
evt_type: number;
|
|
1302
|
+
summary: string;
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
eventId: string;
|
|
1306
|
+
sequence: number;
|
|
1307
|
+
evt_type: number;
|
|
1308
|
+
summary: string;
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
eventId: string;
|
|
1312
|
+
sequence: number;
|
|
1313
|
+
evt_type: number;
|
|
1314
|
+
summary: string;
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
eventId: string;
|
|
1318
|
+
sequence: number;
|
|
1319
|
+
evt_type: number;
|
|
1320
|
+
summary: string;
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
eventId: string;
|
|
1324
|
+
sequence: number;
|
|
1325
|
+
evt_type: number;
|
|
1326
|
+
summary: string;
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
eventId: string;
|
|
1330
|
+
sequence: number;
|
|
1331
|
+
evt_type: number;
|
|
1332
|
+
summary: string;
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
eventId: string;
|
|
1336
|
+
sequence: number;
|
|
1337
|
+
evt_type: number;
|
|
1338
|
+
summary: string;
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
eventId: string;
|
|
1342
|
+
sequence: number;
|
|
1343
|
+
evt_type: number;
|
|
1344
|
+
summary: string;
|
|
1345
|
+
}
|
|
1346
|
+
] | [
|
|
1347
|
+
{
|
|
1348
|
+
eventId: string;
|
|
1349
|
+
sequence: number;
|
|
1350
|
+
evt_type: number;
|
|
1351
|
+
summary: string;
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
eventId: string;
|
|
1355
|
+
sequence: number;
|
|
1356
|
+
evt_type: number;
|
|
1357
|
+
summary: string;
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
eventId: string;
|
|
1361
|
+
sequence: number;
|
|
1362
|
+
evt_type: number;
|
|
1363
|
+
summary: string;
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
eventId: string;
|
|
1367
|
+
sequence: number;
|
|
1368
|
+
evt_type: number;
|
|
1369
|
+
summary: string;
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
eventId: string;
|
|
1373
|
+
sequence: number;
|
|
1374
|
+
evt_type: number;
|
|
1375
|
+
summary: string;
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
eventId: string;
|
|
1379
|
+
sequence: number;
|
|
1380
|
+
evt_type: number;
|
|
1381
|
+
summary: string;
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
eventId: string;
|
|
1385
|
+
sequence: number;
|
|
1386
|
+
evt_type: number;
|
|
1387
|
+
summary: string;
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
eventId: string;
|
|
1391
|
+
sequence: number;
|
|
1392
|
+
evt_type: number;
|
|
1393
|
+
summary: string;
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
eventId: string;
|
|
1397
|
+
sequence: number;
|
|
1398
|
+
evt_type: number;
|
|
1399
|
+
summary: string;
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
eventId: string;
|
|
1403
|
+
sequence: number;
|
|
1404
|
+
evt_type: number;
|
|
1405
|
+
summary: string;
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
eventId: string;
|
|
1409
|
+
sequence: number;
|
|
1410
|
+
evt_type: number;
|
|
1411
|
+
summary: string;
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
eventId: string;
|
|
1415
|
+
sequence: number;
|
|
1416
|
+
evt_type: number;
|
|
1417
|
+
summary: string;
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
eventId: string;
|
|
1421
|
+
sequence: number;
|
|
1422
|
+
evt_type: number;
|
|
1423
|
+
summary: string;
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
eventId: string;
|
|
1427
|
+
sequence: number;
|
|
1428
|
+
evt_type: number;
|
|
1429
|
+
summary: string;
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
eventId: string;
|
|
1433
|
+
sequence: number;
|
|
1434
|
+
evt_type: number;
|
|
1435
|
+
summary: string;
|
|
1436
|
+
}
|
|
1437
|
+
] | [
|
|
1438
|
+
{
|
|
1439
|
+
eventId: string;
|
|
1440
|
+
sequence: number;
|
|
1441
|
+
evt_type: number;
|
|
1442
|
+
summary: string;
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
eventId: string;
|
|
1446
|
+
sequence: number;
|
|
1447
|
+
evt_type: number;
|
|
1448
|
+
summary: string;
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
eventId: string;
|
|
1452
|
+
sequence: number;
|
|
1453
|
+
evt_type: number;
|
|
1454
|
+
summary: string;
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
eventId: string;
|
|
1458
|
+
sequence: number;
|
|
1459
|
+
evt_type: number;
|
|
1460
|
+
summary: string;
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
eventId: string;
|
|
1464
|
+
sequence: number;
|
|
1465
|
+
evt_type: number;
|
|
1466
|
+
summary: string;
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
eventId: string;
|
|
1470
|
+
sequence: number;
|
|
1471
|
+
evt_type: number;
|
|
1472
|
+
summary: string;
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
eventId: string;
|
|
1476
|
+
sequence: number;
|
|
1477
|
+
evt_type: number;
|
|
1478
|
+
summary: string;
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
eventId: string;
|
|
1482
|
+
sequence: number;
|
|
1483
|
+
evt_type: number;
|
|
1484
|
+
summary: string;
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
eventId: string;
|
|
1488
|
+
sequence: number;
|
|
1489
|
+
evt_type: number;
|
|
1490
|
+
summary: string;
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
eventId: string;
|
|
1494
|
+
sequence: number;
|
|
1495
|
+
evt_type: number;
|
|
1496
|
+
summary: string;
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
eventId: string;
|
|
1500
|
+
sequence: number;
|
|
1501
|
+
evt_type: number;
|
|
1502
|
+
summary: string;
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
eventId: string;
|
|
1506
|
+
sequence: number;
|
|
1507
|
+
evt_type: number;
|
|
1508
|
+
summary: string;
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
eventId: string;
|
|
1512
|
+
sequence: number;
|
|
1513
|
+
evt_type: number;
|
|
1514
|
+
summary: string;
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
eventId: string;
|
|
1518
|
+
sequence: number;
|
|
1519
|
+
evt_type: number;
|
|
1520
|
+
summary: string;
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
eventId: string;
|
|
1524
|
+
sequence: number;
|
|
1525
|
+
evt_type: number;
|
|
1526
|
+
summary: string;
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
eventId: string;
|
|
1530
|
+
sequence: number;
|
|
1531
|
+
evt_type: number;
|
|
1532
|
+
summary: string;
|
|
1533
|
+
}
|
|
1534
|
+
] | [
|
|
1535
|
+
{
|
|
1536
|
+
eventId: string;
|
|
1537
|
+
sequence: number;
|
|
1538
|
+
evt_type: number;
|
|
1539
|
+
summary: string;
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
eventId: string;
|
|
1543
|
+
sequence: number;
|
|
1544
|
+
evt_type: number;
|
|
1545
|
+
summary: string;
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
eventId: string;
|
|
1549
|
+
sequence: number;
|
|
1550
|
+
evt_type: number;
|
|
1551
|
+
summary: string;
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
eventId: string;
|
|
1555
|
+
sequence: number;
|
|
1556
|
+
evt_type: number;
|
|
1557
|
+
summary: string;
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
eventId: string;
|
|
1561
|
+
sequence: number;
|
|
1562
|
+
evt_type: number;
|
|
1563
|
+
summary: string;
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
eventId: string;
|
|
1567
|
+
sequence: number;
|
|
1568
|
+
evt_type: number;
|
|
1569
|
+
summary: string;
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
eventId: string;
|
|
1573
|
+
sequence: number;
|
|
1574
|
+
evt_type: number;
|
|
1575
|
+
summary: string;
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
eventId: string;
|
|
1579
|
+
sequence: number;
|
|
1580
|
+
evt_type: number;
|
|
1581
|
+
summary: string;
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
eventId: string;
|
|
1585
|
+
sequence: number;
|
|
1586
|
+
evt_type: number;
|
|
1587
|
+
summary: string;
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
eventId: string;
|
|
1591
|
+
sequence: number;
|
|
1592
|
+
evt_type: number;
|
|
1593
|
+
summary: string;
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
eventId: string;
|
|
1597
|
+
sequence: number;
|
|
1598
|
+
evt_type: number;
|
|
1599
|
+
summary: string;
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
eventId: string;
|
|
1603
|
+
sequence: number;
|
|
1604
|
+
evt_type: number;
|
|
1605
|
+
summary: string;
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
eventId: string;
|
|
1609
|
+
sequence: number;
|
|
1610
|
+
evt_type: number;
|
|
1611
|
+
summary: string;
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
eventId: string;
|
|
1615
|
+
sequence: number;
|
|
1616
|
+
evt_type: number;
|
|
1617
|
+
summary: string;
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
eventId: string;
|
|
1621
|
+
sequence: number;
|
|
1622
|
+
evt_type: number;
|
|
1623
|
+
summary: string;
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
eventId: string;
|
|
1627
|
+
sequence: number;
|
|
1628
|
+
evt_type: number;
|
|
1629
|
+
summary: string;
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
eventId: string;
|
|
1633
|
+
sequence: number;
|
|
1634
|
+
evt_type: number;
|
|
1635
|
+
summary: string;
|
|
1636
|
+
}
|
|
1637
|
+
] | [
|
|
1638
|
+
{
|
|
1639
|
+
eventId: string;
|
|
1640
|
+
sequence: number;
|
|
1641
|
+
evt_type: number;
|
|
1642
|
+
summary: string;
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
eventId: string;
|
|
1646
|
+
sequence: number;
|
|
1647
|
+
evt_type: number;
|
|
1648
|
+
summary: string;
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
eventId: string;
|
|
1652
|
+
sequence: number;
|
|
1653
|
+
evt_type: number;
|
|
1654
|
+
summary: string;
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
eventId: string;
|
|
1658
|
+
sequence: number;
|
|
1659
|
+
evt_type: number;
|
|
1660
|
+
summary: string;
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
eventId: string;
|
|
1664
|
+
sequence: number;
|
|
1665
|
+
evt_type: number;
|
|
1666
|
+
summary: string;
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
eventId: string;
|
|
1670
|
+
sequence: number;
|
|
1671
|
+
evt_type: number;
|
|
1672
|
+
summary: string;
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
eventId: string;
|
|
1676
|
+
sequence: number;
|
|
1677
|
+
evt_type: number;
|
|
1678
|
+
summary: string;
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
eventId: string;
|
|
1682
|
+
sequence: number;
|
|
1683
|
+
evt_type: number;
|
|
1684
|
+
summary: string;
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
eventId: string;
|
|
1688
|
+
sequence: number;
|
|
1689
|
+
evt_type: number;
|
|
1690
|
+
summary: string;
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
eventId: string;
|
|
1694
|
+
sequence: number;
|
|
1695
|
+
evt_type: number;
|
|
1696
|
+
summary: string;
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
eventId: string;
|
|
1700
|
+
sequence: number;
|
|
1701
|
+
evt_type: number;
|
|
1702
|
+
summary: string;
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
eventId: string;
|
|
1706
|
+
sequence: number;
|
|
1707
|
+
evt_type: number;
|
|
1708
|
+
summary: string;
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
eventId: string;
|
|
1712
|
+
sequence: number;
|
|
1713
|
+
evt_type: number;
|
|
1714
|
+
summary: string;
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
eventId: string;
|
|
1718
|
+
sequence: number;
|
|
1719
|
+
evt_type: number;
|
|
1720
|
+
summary: string;
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
eventId: string;
|
|
1724
|
+
sequence: number;
|
|
1725
|
+
evt_type: number;
|
|
1726
|
+
summary: string;
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
eventId: string;
|
|
1730
|
+
sequence: number;
|
|
1731
|
+
evt_type: number;
|
|
1732
|
+
summary: string;
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
eventId: string;
|
|
1736
|
+
sequence: number;
|
|
1737
|
+
evt_type: number;
|
|
1738
|
+
summary: string;
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
eventId: string;
|
|
1742
|
+
sequence: number;
|
|
1743
|
+
evt_type: number;
|
|
1744
|
+
summary: string;
|
|
1745
|
+
}
|
|
1746
|
+
] | [
|
|
1747
|
+
{
|
|
1748
|
+
eventId: string;
|
|
1749
|
+
sequence: number;
|
|
1750
|
+
evt_type: number;
|
|
1751
|
+
summary: string;
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
eventId: string;
|
|
1755
|
+
sequence: number;
|
|
1756
|
+
evt_type: number;
|
|
1757
|
+
summary: string;
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
eventId: string;
|
|
1761
|
+
sequence: number;
|
|
1762
|
+
evt_type: number;
|
|
1763
|
+
summary: string;
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
eventId: string;
|
|
1767
|
+
sequence: number;
|
|
1768
|
+
evt_type: number;
|
|
1769
|
+
summary: string;
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
eventId: string;
|
|
1773
|
+
sequence: number;
|
|
1774
|
+
evt_type: number;
|
|
1775
|
+
summary: string;
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
eventId: string;
|
|
1779
|
+
sequence: number;
|
|
1780
|
+
evt_type: number;
|
|
1781
|
+
summary: string;
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
eventId: string;
|
|
1785
|
+
sequence: number;
|
|
1786
|
+
evt_type: number;
|
|
1787
|
+
summary: string;
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
eventId: string;
|
|
1791
|
+
sequence: number;
|
|
1792
|
+
evt_type: number;
|
|
1793
|
+
summary: string;
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
eventId: string;
|
|
1797
|
+
sequence: number;
|
|
1798
|
+
evt_type: number;
|
|
1799
|
+
summary: string;
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
eventId: string;
|
|
1803
|
+
sequence: number;
|
|
1804
|
+
evt_type: number;
|
|
1805
|
+
summary: string;
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
eventId: string;
|
|
1809
|
+
sequence: number;
|
|
1810
|
+
evt_type: number;
|
|
1811
|
+
summary: string;
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
eventId: string;
|
|
1815
|
+
sequence: number;
|
|
1816
|
+
evt_type: number;
|
|
1817
|
+
summary: string;
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
eventId: string;
|
|
1821
|
+
sequence: number;
|
|
1822
|
+
evt_type: number;
|
|
1823
|
+
summary: string;
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
eventId: string;
|
|
1827
|
+
sequence: number;
|
|
1828
|
+
evt_type: number;
|
|
1829
|
+
summary: string;
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
eventId: string;
|
|
1833
|
+
sequence: number;
|
|
1834
|
+
evt_type: number;
|
|
1835
|
+
summary: string;
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
eventId: string;
|
|
1839
|
+
sequence: number;
|
|
1840
|
+
evt_type: number;
|
|
1841
|
+
summary: string;
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
eventId: string;
|
|
1845
|
+
sequence: number;
|
|
1846
|
+
evt_type: number;
|
|
1847
|
+
summary: string;
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
eventId: string;
|
|
1851
|
+
sequence: number;
|
|
1852
|
+
evt_type: number;
|
|
1853
|
+
summary: string;
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
eventId: string;
|
|
1857
|
+
sequence: number;
|
|
1858
|
+
evt_type: number;
|
|
1859
|
+
summary: string;
|
|
1860
|
+
}
|
|
1861
|
+
] | [
|
|
1862
|
+
{
|
|
1863
|
+
eventId: string;
|
|
1864
|
+
sequence: number;
|
|
1865
|
+
evt_type: number;
|
|
1866
|
+
summary: string;
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
eventId: string;
|
|
1870
|
+
sequence: number;
|
|
1871
|
+
evt_type: number;
|
|
1872
|
+
summary: string;
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
eventId: string;
|
|
1876
|
+
sequence: number;
|
|
1877
|
+
evt_type: number;
|
|
1878
|
+
summary: string;
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
eventId: string;
|
|
1882
|
+
sequence: number;
|
|
1883
|
+
evt_type: number;
|
|
1884
|
+
summary: string;
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
eventId: string;
|
|
1888
|
+
sequence: number;
|
|
1889
|
+
evt_type: number;
|
|
1890
|
+
summary: string;
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
eventId: string;
|
|
1894
|
+
sequence: number;
|
|
1895
|
+
evt_type: number;
|
|
1896
|
+
summary: string;
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
eventId: string;
|
|
1900
|
+
sequence: number;
|
|
1901
|
+
evt_type: number;
|
|
1902
|
+
summary: string;
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
eventId: string;
|
|
1906
|
+
sequence: number;
|
|
1907
|
+
evt_type: number;
|
|
1908
|
+
summary: string;
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
eventId: string;
|
|
1912
|
+
sequence: number;
|
|
1913
|
+
evt_type: number;
|
|
1914
|
+
summary: string;
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
eventId: string;
|
|
1918
|
+
sequence: number;
|
|
1919
|
+
evt_type: number;
|
|
1920
|
+
summary: string;
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
eventId: string;
|
|
1924
|
+
sequence: number;
|
|
1925
|
+
evt_type: number;
|
|
1926
|
+
summary: string;
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
eventId: string;
|
|
1930
|
+
sequence: number;
|
|
1931
|
+
evt_type: number;
|
|
1932
|
+
summary: string;
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
eventId: string;
|
|
1936
|
+
sequence: number;
|
|
1937
|
+
evt_type: number;
|
|
1938
|
+
summary: string;
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
eventId: string;
|
|
1942
|
+
sequence: number;
|
|
1943
|
+
evt_type: number;
|
|
1944
|
+
summary: string;
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
eventId: string;
|
|
1948
|
+
sequence: number;
|
|
1949
|
+
evt_type: number;
|
|
1950
|
+
summary: string;
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
eventId: string;
|
|
1954
|
+
sequence: number;
|
|
1955
|
+
evt_type: number;
|
|
1956
|
+
summary: string;
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
eventId: string;
|
|
1960
|
+
sequence: number;
|
|
1961
|
+
evt_type: number;
|
|
1962
|
+
summary: string;
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
eventId: string;
|
|
1966
|
+
sequence: number;
|
|
1967
|
+
evt_type: number;
|
|
1968
|
+
summary: string;
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
eventId: string;
|
|
1972
|
+
sequence: number;
|
|
1973
|
+
evt_type: number;
|
|
1974
|
+
summary: string;
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
eventId: string;
|
|
1978
|
+
sequence: number;
|
|
1979
|
+
evt_type: number;
|
|
1980
|
+
summary: string;
|
|
1981
|
+
}
|
|
1982
|
+
];
|
|
1983
|
+
timelineTruncated?: boolean;
|
|
1984
|
+
timelineThroughSequence?: number;
|
|
1985
|
+
}
|
|
1986
|
+
/**
|
|
1987
|
+
* In addition to draft-07 validation, every consumer must enforce the x-octo semantic keywords: unique ordered namespace/name tuples, compact UTF-8 JSON byte budget, JSON nesting depth with the envelope at depth zero, and Unicode scalar strings in every nested value and object key. Canonical hashing uses ECMAScript JSON number serialization, including -0 becoming 0 and normalized exponent notation; object keys are sorted by UTF-16 code units before ECMAScript integer-index enumeration. U+2028/U+2029 and non-ASCII scalar values are not escaped or Unicode-normalized.
|
|
1988
|
+
*
|
|
1989
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
1990
|
+
* via the `definition` "ContextEnvelope".
|
|
1991
|
+
*/
|
|
1992
|
+
export interface ContextEnvelope {
|
|
1993
|
+
schema: "octo.context-envelope/v3";
|
|
1994
|
+
/**
|
|
1995
|
+
* @maxItems 32
|
|
1996
|
+
*/
|
|
1997
|
+
items: ContextItem[];
|
|
1998
|
+
}
|
|
1999
|
+
/**
|
|
2000
|
+
* Agent defaults and mandatory constraints, stored under one external configuration version. Authorized configuration writers may persist system instructions in mandatory with text-only entries. Ephemeral business content and default-layer instructions are forbidden; callers cannot submit trusted control instructions.
|
|
2001
|
+
*
|
|
2002
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2003
|
+
* via the `definition` "ContextConfiguration".
|
|
2004
|
+
*/
|
|
2005
|
+
export interface ContextConfiguration {
|
|
2006
|
+
defaults: ContextEnvelope;
|
|
2007
|
+
mandatory: PersistentContextEnvelope;
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* Public Context facts. Preparation is distinct from Adapter application or invocation. This projection excludes resource files, trusted instruction text, credentials and Runtime paths.
|
|
2011
|
+
*
|
|
2012
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2013
|
+
* via the `definition` "RunContextProjection".
|
|
2014
|
+
*/
|
|
2015
|
+
export interface RunContextProjection {
|
|
2016
|
+
run_id: string;
|
|
2017
|
+
context_hash: string;
|
|
2018
|
+
actual_runtime_id?: string;
|
|
2019
|
+
preparation_status: "unknown" | "prepared";
|
|
2020
|
+
application_status: "unknown" | "applied";
|
|
2021
|
+
invocation_status: "unknown";
|
|
2022
|
+
model_uses_provider_default: boolean;
|
|
2023
|
+
effort_uses_provider_default: boolean;
|
|
2024
|
+
/**
|
|
2025
|
+
* Frozen inline object facts proven by a matching preparation receipt. Source fields are provenance claims, not access grants. No contents, local handles, paths or credentials are exposed; application is separately evidenced by application_status.
|
|
2026
|
+
*
|
|
2027
|
+
* @maxItems 32
|
|
2028
|
+
*/
|
|
2029
|
+
object_materials?: PublicObjectMaterial[];
|
|
2030
|
+
execution: {
|
|
2031
|
+
adapter_type: string;
|
|
2032
|
+
model?: string;
|
|
2033
|
+
effort?: string;
|
|
2034
|
+
approval_mode: "ask" | "assisted" | "full_access";
|
|
2035
|
+
workspace_mode: "fixed" | "random" | "none";
|
|
2036
|
+
};
|
|
2037
|
+
}
|
|
2038
|
+
/**
|
|
2039
|
+
* Workspace preparation for the current Run lease and frozen execution Context; it does not prove Provider use of model context.
|
|
2040
|
+
*
|
|
2041
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2042
|
+
* via the `definition` "ContextPreparationReceipt".
|
|
2043
|
+
*/
|
|
2044
|
+
export interface ContextPreparationReceipt {
|
|
2045
|
+
context_hash: string;
|
|
2046
|
+
run_id: string;
|
|
2047
|
+
lease_id: string;
|
|
2048
|
+
fencing_token: number;
|
|
2049
|
+
workspace_mode: "fixed" | "random" | "none";
|
|
2050
|
+
workspace_path: string;
|
|
2051
|
+
provider_state_dir: string;
|
|
2052
|
+
/**
|
|
2053
|
+
* @maxItems 256
|
|
2054
|
+
*/
|
|
2055
|
+
warnings: string[];
|
|
2056
|
+
}
|
|
2057
|
+
/**
|
|
2058
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2059
|
+
* via the `definition` "ContextAdapterPayload".
|
|
2060
|
+
*/
|
|
2061
|
+
export interface ContextAdapterPayload {
|
|
2062
|
+
type: string;
|
|
2063
|
+
provider_agent_id?: string;
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2067
|
+
* via the `definition` "ContextActmodePayload".
|
|
2068
|
+
*/
|
|
2069
|
+
export interface ContextActmodePayload {
|
|
2070
|
+
mode: "default" | "plan";
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2074
|
+
* via the `definition` "ContextModelPayload".
|
|
2075
|
+
*/
|
|
2076
|
+
export interface ContextModelPayload {
|
|
2077
|
+
selection?: ContextModelSelectionPayload;
|
|
2078
|
+
reasoning?: ContextReasoningPayload;
|
|
2079
|
+
}
|
|
2080
|
+
/**
|
|
2081
|
+
* Snake-case frozen watchdog limits, with the same bounds as RuntimeLimits. Legacy enforcement=observe cannot be combined with v2 settings.
|
|
2082
|
+
*
|
|
2083
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2084
|
+
* via the `definition` "ContextLimitsPayload".
|
|
2085
|
+
*/
|
|
2086
|
+
export interface ContextLimitsPayload {
|
|
2087
|
+
first_frame_timeout_ms?: number;
|
|
2088
|
+
model_idle_timeout_ms?: number;
|
|
2089
|
+
model_idle_warning_ms?: number;
|
|
2090
|
+
model_idle_policy?: "enforce" | "observe";
|
|
2091
|
+
tool_timeout_ms?: number;
|
|
2092
|
+
tool_wall_timeout_ms?: number;
|
|
2093
|
+
run_timeout_ms?: number;
|
|
2094
|
+
cancel_grace_ms?: number;
|
|
2095
|
+
enforcement?: "enforce" | "observe";
|
|
2096
|
+
}
|
|
2097
|
+
/**
|
|
2098
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2099
|
+
* via the `definition` "ContextApprovalPolicyPayload".
|
|
2100
|
+
*/
|
|
2101
|
+
export interface ContextApprovalPolicyPayload {
|
|
2102
|
+
mode: ApprovalMode;
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Untrusted inline selection text with optional resource reference, source metadata and summary. Source metadata is not an authorization claim.
|
|
2106
|
+
*
|
|
2107
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2108
|
+
* via the `definition` "ContextSelectionEntry".
|
|
2109
|
+
*/
|
|
2110
|
+
export interface ContextSelectionEntry {
|
|
2111
|
+
text: string;
|
|
2112
|
+
resource_ref?: string;
|
|
2113
|
+
source?: {
|
|
2114
|
+
[k: string]: unknown;
|
|
2115
|
+
} | string;
|
|
2116
|
+
summary?: string;
|
|
2117
|
+
}
|
|
2118
|
+
/**
|
|
2119
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2120
|
+
* via the `definition` "ContextMcpLocator".
|
|
2121
|
+
*/
|
|
2122
|
+
export interface ContextMcpLocator {
|
|
2123
|
+
server_ref: string;
|
|
2124
|
+
tool: string;
|
|
2125
|
+
}
|
|
2126
|
+
export interface ContextResourceEntry {
|
|
2127
|
+
resource_ref: string;
|
|
2128
|
+
resolver: "mcp";
|
|
2129
|
+
locator: {};
|
|
2130
|
+
/**
|
|
2131
|
+
* Frozen non-secret JSON parameters supplied by the authenticated resolver plan, not model-generated commands.
|
|
2132
|
+
*/
|
|
2133
|
+
params?: Record<string, unknown>;
|
|
2134
|
+
authorization_ref?: string;
|
|
2135
|
+
revision?: string;
|
|
2136
|
+
}
|
|
2137
|
+
/**
|
|
2138
|
+
* Control instruction containing only non-empty text. Authorization belongs to the authenticated upstream boundary, not to a caller-supplied source label.
|
|
2139
|
+
*
|
|
2140
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2141
|
+
* via the `definition` "ContextInstructionEntry".
|
|
2142
|
+
*/
|
|
2143
|
+
export interface ContextInstructionEntry {
|
|
2144
|
+
text: string;
|
|
2145
|
+
}
|
|
2146
|
+
/**
|
|
2147
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2148
|
+
* via the `definition` "ContextInstructionsPayload".
|
|
2149
|
+
*/
|
|
2150
|
+
export interface ContextInstructionsPayload {
|
|
2151
|
+
entries: ContextInstructionEntry[];
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* Snapshot selection descriptor in ExecutionEnvelope. Scope, consumer_key, and session_generation isolate the consumption cursor.
|
|
2155
|
+
*
|
|
2156
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2157
|
+
* via the `definition` "ChannelContextDescriptor".
|
|
2158
|
+
*/
|
|
2159
|
+
export interface ChannelContextDescriptor {
|
|
2160
|
+
scope: ChannelScope;
|
|
2161
|
+
consumer_key: string;
|
|
2162
|
+
session_generation: number;
|
|
2163
|
+
trigger_message_id: string;
|
|
2164
|
+
trigger_seq?: number;
|
|
2165
|
+
trigger_fact: ChannelMessageFact;
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2168
|
+
* Platform-neutral channel isolation key. account_id may be null but remains explicit; an absent thread_id selects the conversation root.
|
|
2169
|
+
*
|
|
2170
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2171
|
+
* via the `definition` "ChannelScope".
|
|
2172
|
+
*/
|
|
2173
|
+
export interface ChannelScope {
|
|
2174
|
+
tenant_id: string;
|
|
2175
|
+
endpoint_id: string;
|
|
2176
|
+
channel: string;
|
|
2177
|
+
account_id: string | null;
|
|
2178
|
+
bot_id: string;
|
|
2179
|
+
conversation_id: string;
|
|
2180
|
+
thread_id?: string | null;
|
|
2181
|
+
}
|
|
2182
|
+
/**
|
|
2183
|
+
* A platform-neutral message fact in the rebuildable channel journal. Message content is always untrusted external input.
|
|
2184
|
+
*
|
|
2185
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2186
|
+
* via the `definition` "ChannelMessageFact".
|
|
2187
|
+
*/
|
|
2188
|
+
export interface ChannelMessageFact {
|
|
2189
|
+
message_id: string;
|
|
2190
|
+
message_seq?: number;
|
|
2191
|
+
sender: ChannelMessageSender;
|
|
2192
|
+
occurred_at_ms: number;
|
|
2193
|
+
/**
|
|
2194
|
+
* @minItems 1
|
|
2195
|
+
*/
|
|
2196
|
+
parts: [ChannelMessagePart, ...ChannelMessagePart[]];
|
|
2197
|
+
flags?: ChannelMessageFlags;
|
|
2198
|
+
}
|
|
2199
|
+
/**
|
|
2200
|
+
* Normalized sender fact without platform credentials.
|
|
2201
|
+
*
|
|
2202
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2203
|
+
* via the `definition` "ChannelMessageSender".
|
|
2204
|
+
*/
|
|
2205
|
+
export interface ChannelMessageSender {
|
|
2206
|
+
id: string;
|
|
2207
|
+
label?: string;
|
|
2208
|
+
kind: string;
|
|
2209
|
+
}
|
|
2210
|
+
/**
|
|
2211
|
+
* Normalized platform message part. type and text are common fields; connector extensions remain untrusted external data.
|
|
2212
|
+
*
|
|
2213
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2214
|
+
* via the `definition` "ChannelMessagePart".
|
|
2215
|
+
*/
|
|
2216
|
+
export interface ChannelMessagePart {
|
|
2217
|
+
type: string;
|
|
2218
|
+
text?: string;
|
|
2219
|
+
[k: string]: unknown;
|
|
2220
|
+
}
|
|
2221
|
+
/**
|
|
2222
|
+
* Common message flags that affect context projection. Self and control messages are excluded from provider-visible context.
|
|
2223
|
+
*
|
|
2224
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2225
|
+
* via the `definition` "ChannelMessageFlags".
|
|
2226
|
+
*/
|
|
2227
|
+
export interface ChannelMessageFlags {
|
|
2228
|
+
self?: boolean;
|
|
2229
|
+
control?: boolean;
|
|
2230
|
+
}
|
|
2231
|
+
export interface ResolvedRuntimeSelection1 {
|
|
2232
|
+
schema: "octo.runtime-selection/v2";
|
|
2233
|
+
selection_mode: "explicit" | "candidates";
|
|
2234
|
+
explicit_runtime_id?: string;
|
|
2235
|
+
/**
|
|
2236
|
+
* @minItems 1
|
|
2237
|
+
* @maxItems 64
|
|
2238
|
+
*/
|
|
2239
|
+
authorized_candidates: [
|
|
2240
|
+
{
|
|
2241
|
+
runtime_id: string;
|
|
2242
|
+
priority: number;
|
|
2243
|
+
owner_subject_type: "user" | "teamspace";
|
|
2244
|
+
owner_subject_id: string;
|
|
2245
|
+
},
|
|
2246
|
+
...{
|
|
2247
|
+
runtime_id: string;
|
|
2248
|
+
priority: number;
|
|
2249
|
+
owner_subject_type: "user" | "teamspace";
|
|
2250
|
+
owner_subject_id: string;
|
|
2251
|
+
}[]
|
|
2252
|
+
];
|
|
2253
|
+
offline_behavior: "wait" | "fail";
|
|
2254
|
+
failover: "candidates" | "none";
|
|
2255
|
+
}
|
|
2256
|
+
export interface ResolvedExecutionPlan1 {
|
|
2257
|
+
actmode?: "default" | "plan";
|
|
2258
|
+
adapter_type: string;
|
|
2259
|
+
workdir: string;
|
|
2260
|
+
workspace?: ContextWorkspacePayload;
|
|
2261
|
+
model?: string;
|
|
2262
|
+
effort?: string;
|
|
2263
|
+
approval_mode: ApprovalMode;
|
|
2264
|
+
runtime_limits?: ContextLimitsPayload;
|
|
2265
|
+
provider_agent_id?: string;
|
|
2266
|
+
agent_source: AgentSource;
|
|
2267
|
+
envs?: ContextEnvsPayload;
|
|
2268
|
+
mcp?: ContextMcpPayload;
|
|
2269
|
+
}
|
|
2270
|
+
/**
|
|
2271
|
+
* Run 级环境变量列表;以 key 标识变量,按 key 合并,不进入模型输入。
|
|
2272
|
+
*
|
|
2273
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2274
|
+
* via the `definition` "ContextEnvsPayload".
|
|
2275
|
+
*/
|
|
2276
|
+
export interface ContextEnvsPayload {
|
|
2277
|
+
/**
|
|
2278
|
+
* @maxItems 128
|
|
2279
|
+
*/
|
|
2280
|
+
env_variables: {
|
|
2281
|
+
key: string;
|
|
2282
|
+
value: string;
|
|
2283
|
+
}[];
|
|
2284
|
+
}
|
|
2285
|
+
/**
|
|
2286
|
+
* Run-scoped MCP connection templates. Server names are dynamic keys; values are validated by transport. Variables resolve only in the execution environment, never in the model context.
|
|
2287
|
+
*
|
|
2288
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2289
|
+
* via the `definition` "ContextMcpPayload".
|
|
2290
|
+
*/
|
|
2291
|
+
export interface ContextMcpPayload {
|
|
2292
|
+
mcpServers: McpServers;
|
|
2293
|
+
}
|
|
2294
|
+
/**
|
|
2295
|
+
* Runtime-owned phase-aware invocation watchdog budgets.
|
|
2296
|
+
*
|
|
2297
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2298
|
+
* via the `definition` "RuntimeLimits".
|
|
2299
|
+
*/
|
|
2300
|
+
export interface RuntimeLimits {
|
|
2301
|
+
firstFrameTimeoutMs?: number;
|
|
2302
|
+
modelIdleTimeoutMs?: number;
|
|
2303
|
+
modelIdleWarningMs?: number;
|
|
2304
|
+
modelIdlePolicy?: "observe" | "enforce";
|
|
2305
|
+
toolTimeoutMs?: number;
|
|
2306
|
+
toolWallTimeoutMs?: number;
|
|
2307
|
+
runTimeoutMs?: number;
|
|
2308
|
+
cancelGraceMs?: number;
|
|
2309
|
+
enforcement?: "observe" | "enforce";
|
|
2310
|
+
}
|
|
2311
|
+
/**
|
|
2312
|
+
* Adapter-internal configuration derived from the resolved execution plan, not a public source of run model or approval choices. Legacy permission and thinking fields are forbidden.
|
|
2313
|
+
*
|
|
2314
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2315
|
+
* via the `definition` "AgentConfig".
|
|
2316
|
+
*/
|
|
2317
|
+
export interface AgentConfig {
|
|
2318
|
+
/**
|
|
2319
|
+
* Default provider CLI working directory. It is a cwd, not a filesystem security boundary.
|
|
2320
|
+
*/
|
|
2321
|
+
workdir?: string;
|
|
2322
|
+
/**
|
|
2323
|
+
* Model identifier.
|
|
2324
|
+
*/
|
|
2325
|
+
model?: string;
|
|
2326
|
+
/**
|
|
2327
|
+
* Provider sandbox mode identifier.
|
|
2328
|
+
*/
|
|
2329
|
+
sandbox?: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* Provider-side agent identifier.
|
|
2332
|
+
*/
|
|
2333
|
+
providerAgentId?: string;
|
|
2334
|
+
/**
|
|
2335
|
+
* Optional provider reasoning effort identifier. Provider adapters may define an explicit default.
|
|
2336
|
+
*/
|
|
2337
|
+
effort?: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* Invocation timeout in seconds.
|
|
2340
|
+
*/
|
|
2341
|
+
timeoutSeconds?: number;
|
|
2342
|
+
/**
|
|
2343
|
+
* OpenClaw configuration path.
|
|
2344
|
+
*/
|
|
2345
|
+
openclawConfigPath?: string;
|
|
2346
|
+
/**
|
|
2347
|
+
* OpenClaw state directory.
|
|
2348
|
+
*/
|
|
2349
|
+
openclawStateDir?: string;
|
|
2350
|
+
/**
|
|
2351
|
+
* Provider-specific extension options passed through unchanged by Core.
|
|
2352
|
+
*/
|
|
2353
|
+
providerOptions?: Record<string, unknown>;
|
|
2354
|
+
[k: string]: unknown;
|
|
2355
|
+
}
|
|
2356
|
+
/**
|
|
2357
|
+
* Non-blocking question batch. IDs are positions scoped to this interaction, not provider-native question IDs.
|
|
2358
|
+
*
|
|
2359
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2360
|
+
* via the `definition` "QuestionRequest".
|
|
2361
|
+
*/
|
|
2362
|
+
export interface QuestionRequest {
|
|
2363
|
+
schema: "octo.question-request/v1";
|
|
2364
|
+
messageId: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* @minItems 1
|
|
2367
|
+
* @maxItems 50
|
|
2368
|
+
*/
|
|
2369
|
+
questions: [
|
|
2370
|
+
{
|
|
2371
|
+
id: string;
|
|
2372
|
+
title: string;
|
|
2373
|
+
/**
|
|
2374
|
+
* @maxItems 50
|
|
2375
|
+
*/
|
|
2376
|
+
options: string[] | null;
|
|
2377
|
+
allowCustom: true;
|
|
2378
|
+
},
|
|
2379
|
+
...{
|
|
2380
|
+
id: string;
|
|
2381
|
+
title: string;
|
|
2382
|
+
/**
|
|
2383
|
+
* @maxItems 50
|
|
2384
|
+
*/
|
|
2385
|
+
options: string[] | null;
|
|
2386
|
+
allowCustom: true;
|
|
2387
|
+
}[]
|
|
2388
|
+
];
|
|
2389
|
+
}
|
|
2390
|
+
/**
|
|
2391
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2392
|
+
* via the `definition` "QuestionResponse".
|
|
2393
|
+
*/
|
|
2394
|
+
export interface QuestionResponse {
|
|
2395
|
+
schema: "octo.question-response/v1";
|
|
2396
|
+
/**
|
|
2397
|
+
* @minItems 1
|
|
2398
|
+
* @maxItems 50
|
|
2399
|
+
*/
|
|
2400
|
+
answers: [
|
|
2401
|
+
{
|
|
2402
|
+
questionId: string;
|
|
2403
|
+
text: string;
|
|
2404
|
+
},
|
|
2405
|
+
...{
|
|
2406
|
+
questionId: string;
|
|
2407
|
+
text: string;
|
|
2408
|
+
}[]
|
|
2409
|
+
];
|
|
2410
|
+
}
|
|
2411
|
+
/**
|
|
2412
|
+
* Host-owned supplement state, never stored by Kernel. Submitting or unknown records cannot be replayed.
|
|
2413
|
+
*
|
|
2414
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2415
|
+
* via the `definition` "AsyncQuestionReplySnapshot".
|
|
2416
|
+
*/
|
|
2417
|
+
export interface AsyncQuestionReplySnapshot {
|
|
2418
|
+
schema: "octo.async-question-reply/v1";
|
|
2419
|
+
ref: KernelRunRef;
|
|
2420
|
+
question: InteractionRequestedPayload;
|
|
2421
|
+
providerSession: ProviderSession;
|
|
2422
|
+
providerEpoch?: number;
|
|
2423
|
+
completed: boolean;
|
|
2424
|
+
phase: "pending" | "submitting" | "answered" | "cancelled" | "invalidated" | "unknown";
|
|
2425
|
+
}
|
|
2426
|
+
export interface InteractionRequestedPayload1 {
|
|
2427
|
+
delivery?: "async";
|
|
2428
|
+
executionInstanceId: string;
|
|
2429
|
+
expiresAt?: string;
|
|
2430
|
+
/**
|
|
2431
|
+
* Stable invocation-scoped interaction identifier.
|
|
2432
|
+
*/
|
|
2433
|
+
interactionId: string;
|
|
2434
|
+
kind: "approval" | "question" | "elicitation";
|
|
2435
|
+
/**
|
|
2436
|
+
* Whether an external response is required. Omission means required; only an Adapter-owned automatic approval may set false.
|
|
2437
|
+
*/
|
|
2438
|
+
responseRequired?: boolean;
|
|
2439
|
+
/**
|
|
2440
|
+
* Display-safe provider request projected for the responding product.
|
|
2441
|
+
*/
|
|
2442
|
+
request: Record<string, unknown>;
|
|
2443
|
+
}
|
|
2444
|
+
/**
|
|
2445
|
+
* Supported profile: original native request approval with requestedPermissions=[] only. Non-empty permission instances fail with APPROVAL_PERMISSION_UNSUPPORTED; consumers must not fabricate them. Details are allowlisted inert metadata. The compact UTF-8 JSON budget is enforced by x-octo-max-json-bytes.
|
|
2446
|
+
*
|
|
2447
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2448
|
+
* via the `definition` "ApprovalRequest".
|
|
2449
|
+
*/
|
|
2450
|
+
export interface ApprovalRequest {
|
|
2451
|
+
schema: "octo.approval-request/v1";
|
|
2452
|
+
policy: {
|
|
2453
|
+
mode: ApprovalMode;
|
|
2454
|
+
hash: string;
|
|
2455
|
+
};
|
|
2456
|
+
operation: ApprovalOperation;
|
|
2457
|
+
/**
|
|
2458
|
+
* @maxItems 0
|
|
2459
|
+
*/
|
|
2460
|
+
requestedPermissions: never[];
|
|
2461
|
+
reason?: string;
|
|
2462
|
+
/**
|
|
2463
|
+
* @minItems 1
|
|
2464
|
+
*/
|
|
2465
|
+
allowedOutcomes: ["accepted" | "declined" | "cancelled", ...("accepted" | "declined" | "cancelled")[]];
|
|
2466
|
+
grantScope: "request" | "provider";
|
|
2467
|
+
providerDetails?: ApprovalDisplayDetails;
|
|
2468
|
+
}
|
|
2469
|
+
/**
|
|
2470
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2471
|
+
* via the `definition` "ApprovalOperation".
|
|
2472
|
+
*/
|
|
2473
|
+
export interface ApprovalOperation {
|
|
2474
|
+
kind: "command_execution" | "file_change" | "tool_execution" | "permission_grant" | "context_access";
|
|
2475
|
+
summary: string;
|
|
2476
|
+
toolCallId?: string;
|
|
2477
|
+
details?: ApprovalDisplayDetails;
|
|
2478
|
+
}
|
|
2479
|
+
/**
|
|
2480
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2481
|
+
* via the `definition` "InteractionResolvedPayload".
|
|
2482
|
+
*/
|
|
2483
|
+
export interface InteractionResolvedPayload {
|
|
2484
|
+
interactionId: string;
|
|
2485
|
+
executionInstanceId: string;
|
|
2486
|
+
status: "resolved" | "expired" | "invalidated";
|
|
2487
|
+
outcome?: "accepted" | "declined" | "cancelled" | "answered";
|
|
2488
|
+
reasonCode?: string;
|
|
2489
|
+
}
|
|
2490
|
+
/**
|
|
2491
|
+
* Starts one provider model round. A round may contain public reasoning, tool calls, and text output.
|
|
2492
|
+
*
|
|
2493
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2494
|
+
* via the `definition` "ModelStepStartedPayload".
|
|
2495
|
+
*/
|
|
2496
|
+
export interface ModelStepStartedPayload {
|
|
2497
|
+
/**
|
|
2498
|
+
* Stable identifier reused by model_step.finished and child events.
|
|
2499
|
+
*/
|
|
2500
|
+
stepId: string;
|
|
2501
|
+
/**
|
|
2502
|
+
* Provider-observed round content-start timestamp in Unix milliseconds.
|
|
2503
|
+
*/
|
|
2504
|
+
startedAtMs?: number;
|
|
2505
|
+
[k: string]: unknown;
|
|
2506
|
+
}
|
|
2507
|
+
/**
|
|
2508
|
+
* Finishes one provider model round and records why control returned to the harness.
|
|
2509
|
+
*
|
|
2510
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2511
|
+
* via the `definition` "ModelStepFinishedPayload".
|
|
2512
|
+
*/
|
|
2513
|
+
export interface ModelStepFinishedPayload {
|
|
2514
|
+
/**
|
|
2515
|
+
* Stable identifier from model_step.started.
|
|
2516
|
+
*/
|
|
2517
|
+
stepId: string;
|
|
2518
|
+
status: "completed" | "failed" | "cancelled";
|
|
2519
|
+
/**
|
|
2520
|
+
* Provider-normalized reason such as tool-calls or stop.
|
|
2521
|
+
*/
|
|
2522
|
+
finishReason?: string;
|
|
2523
|
+
/**
|
|
2524
|
+
* Provider-observed round finish timestamp in Unix milliseconds.
|
|
2525
|
+
*/
|
|
2526
|
+
endedAtMs?: number;
|
|
2527
|
+
[k: string]: unknown;
|
|
2528
|
+
}
|
|
2529
|
+
/**
|
|
2530
|
+
* Formal tool_call.create payload. args preserves the original structured input, including args.command for shell tools.
|
|
2531
|
+
*
|
|
2532
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2533
|
+
* via the `definition` "ToolCallCreatePayload".
|
|
2534
|
+
*/
|
|
2535
|
+
export interface ToolCallCreatePayload {
|
|
2536
|
+
/**
|
|
2537
|
+
* Stable tool call identifier reused by later delta and update events.
|
|
2538
|
+
*/
|
|
2539
|
+
id: string;
|
|
2540
|
+
/**
|
|
2541
|
+
* Tool name normalized across providers.
|
|
2542
|
+
*/
|
|
2543
|
+
name: string;
|
|
2544
|
+
/**
|
|
2545
|
+
* Original structured input known when the tool call starts. Streaming providers may begin empty and append argsDelta.
|
|
2546
|
+
*/
|
|
2547
|
+
args: Record<string, unknown>;
|
|
2548
|
+
status: "running";
|
|
2549
|
+
[k: string]: unknown;
|
|
2550
|
+
}
|
|
2551
|
+
/**
|
|
2552
|
+
* Formal tool_call.delta payload. argsDelta is an ordered raw JSON fragment and must be concatenated before parsing.
|
|
2553
|
+
*
|
|
2554
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2555
|
+
* via the `definition` "ToolCallDeltaPayload".
|
|
2556
|
+
*/
|
|
2557
|
+
export interface ToolCallDeltaPayload {
|
|
2558
|
+
/**
|
|
2559
|
+
* Stable identifier from the corresponding tool_call.create event.
|
|
2560
|
+
*/
|
|
2561
|
+
id: string;
|
|
2562
|
+
/**
|
|
2563
|
+
* Raw JSON argument fragment; do not parse fragments independently.
|
|
2564
|
+
*/
|
|
2565
|
+
argsDelta?: string;
|
|
2566
|
+
/**
|
|
2567
|
+
* Tool output text fragment.
|
|
2568
|
+
*/
|
|
2569
|
+
outputDelta?: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* Full replacement of a provider rolling output snapshot; never an activity or a terminal status.
|
|
2572
|
+
*/
|
|
2573
|
+
outputSnapshot?: string;
|
|
2574
|
+
[k: string]: unknown;
|
|
2575
|
+
}
|
|
2576
|
+
/**
|
|
2577
|
+
* Formal tool_call.update payload that closes the tool lifecycle and carries its final result.
|
|
2578
|
+
*
|
|
2579
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2580
|
+
* via the `definition` "ToolCallUpdatePayload".
|
|
2581
|
+
*/
|
|
2582
|
+
export interface ToolCallUpdatePayload {
|
|
2583
|
+
/**
|
|
2584
|
+
* Stable identifier from the corresponding tool_call.create event.
|
|
2585
|
+
*/
|
|
2586
|
+
id: string;
|
|
2587
|
+
status: "completed" | "failed" | "cancelled";
|
|
2588
|
+
/**
|
|
2589
|
+
* Final tool output as text or structured JSON.
|
|
2590
|
+
*/
|
|
2591
|
+
output?: unknown;
|
|
2592
|
+
/**
|
|
2593
|
+
* Structured error details.
|
|
2594
|
+
*/
|
|
2595
|
+
error?: Record<string, unknown>;
|
|
2596
|
+
/**
|
|
2597
|
+
* Process exit code for command tools.
|
|
2598
|
+
*/
|
|
2599
|
+
exitCode?: number;
|
|
2600
|
+
durationMs?: number;
|
|
2601
|
+
[k: string]: unknown;
|
|
2602
|
+
}
|
|
2603
|
+
/**
|
|
2604
|
+
* Stable run identity used by envelopes without requiring the complete domain object.
|
|
2605
|
+
*
|
|
2606
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2607
|
+
* via the `definition` "RunIdentity".
|
|
2608
|
+
*/
|
|
2609
|
+
export interface RunIdentity {
|
|
2610
|
+
/**
|
|
2611
|
+
* Run identifier.
|
|
2612
|
+
*/
|
|
2613
|
+
id: string;
|
|
2614
|
+
/**
|
|
2615
|
+
* Owning Agent Worker session identifier.
|
|
2616
|
+
*/
|
|
2617
|
+
agentSessionId: string;
|
|
2618
|
+
}
|
|
2619
|
+
/**
|
|
2620
|
+
* Idempotent context-only batch appended by agent-worker to its bound daemon.
|
|
2621
|
+
*
|
|
2622
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2623
|
+
* via the `definition` "ChannelContextAppend".
|
|
2624
|
+
*/
|
|
2625
|
+
export interface ChannelContextAppend {
|
|
2626
|
+
agent_id: string;
|
|
2627
|
+
scope: ChannelScope;
|
|
2628
|
+
/**
|
|
2629
|
+
* @minItems 1
|
|
2630
|
+
* @maxItems 100
|
|
2631
|
+
*/
|
|
2632
|
+
facts: [ChannelMessageFact, ...ChannelMessageFact[]];
|
|
2633
|
+
gap_after_seq?: number;
|
|
2634
|
+
}
|
|
2635
|
+
/**
|
|
2636
|
+
* Bounded backfill requested by the daemon after cold start or gap detection. It never carries platform tokens.
|
|
2637
|
+
*
|
|
2638
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2639
|
+
* via the `definition` "ContextSyncRequest".
|
|
2640
|
+
*/
|
|
2641
|
+
export interface ContextSyncRequest {
|
|
2642
|
+
request_id: string;
|
|
2643
|
+
run_id: string;
|
|
2644
|
+
scope: ChannelScope;
|
|
2645
|
+
trigger_message_id: string;
|
|
2646
|
+
trigger_seq?: number;
|
|
2647
|
+
after_seq?: number;
|
|
2648
|
+
limit: number;
|
|
2649
|
+
}
|
|
2650
|
+
export interface ContextSyncResult1 {
|
|
2651
|
+
request_id: string;
|
|
2652
|
+
scope: ChannelScope;
|
|
2653
|
+
/**
|
|
2654
|
+
* @maxItems 100
|
|
2655
|
+
*/
|
|
2656
|
+
facts: ChannelMessageFact[];
|
|
2657
|
+
completeness: "complete" | "partial" | "unavailable";
|
|
2658
|
+
through_seq?: number;
|
|
2659
|
+
}
|
|
2660
|
+
/**
|
|
2661
|
+
* Result of advancing the consumer cursor with version CAS after terminal durability.
|
|
2662
|
+
*
|
|
2663
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2664
|
+
* via the `definition` "ContextCommitResult".
|
|
2665
|
+
*/
|
|
2666
|
+
export interface ContextCommitResult {
|
|
2667
|
+
snapshot_id: string;
|
|
2668
|
+
committed: boolean;
|
|
2669
|
+
reason?: "already_committed" | "snapshot_not_found" | "snapshot_not_submitted" | "consumer_advanced" | "snapshot_failed";
|
|
2670
|
+
}
|
|
2671
|
+
/**
|
|
2672
|
+
* A per-invocation MCP server launched as a child process by the provider.
|
|
2673
|
+
*
|
|
2674
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2675
|
+
* via the `definition` "McpStdioServer".
|
|
2676
|
+
*/
|
|
2677
|
+
export interface McpStdioServer {
|
|
2678
|
+
type: "stdio";
|
|
2679
|
+
command: string;
|
|
2680
|
+
/**
|
|
2681
|
+
* @maxItems 128
|
|
2682
|
+
*/
|
|
2683
|
+
args?: string[];
|
|
2684
|
+
env?: Record<string, string>;
|
|
2685
|
+
cwd?: string;
|
|
2686
|
+
required?: boolean;
|
|
2687
|
+
startupTimeoutMs?: number;
|
|
2688
|
+
toolTimeoutMs?: number;
|
|
2689
|
+
}
|
|
2690
|
+
/**
|
|
2691
|
+
* A per-invocation Streamable HTTP MCP endpoint. Header values are sensitive and must never enter logs or canonical events.
|
|
2692
|
+
*
|
|
2693
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2694
|
+
* via the `definition` "McpStreamableHttpServer".
|
|
2695
|
+
*/
|
|
2696
|
+
export interface McpStreamableHttpServer {
|
|
2697
|
+
type: "streamable_http";
|
|
2698
|
+
/**
|
|
2699
|
+
* Absolute HTTP(S) endpoint or environment template; the resolved endpoint is validated again before connecting.
|
|
2700
|
+
*/
|
|
2701
|
+
url: string;
|
|
2702
|
+
headers?: Record<string, string>;
|
|
2703
|
+
required?: boolean;
|
|
2704
|
+
startupTimeoutMs?: number;
|
|
2705
|
+
toolTimeoutMs?: number;
|
|
2706
|
+
}
|
|
2707
|
+
/**
|
|
2708
|
+
* Serializable execution request sent from Core to Adapter Host. AbortSignal is added in src/index.ts because it cannot cross a process boundary.
|
|
2709
|
+
*
|
|
2710
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2711
|
+
* via the `definition` "InvokeRequestWire".
|
|
2712
|
+
*/
|
|
2713
|
+
export interface InvokeRequestWire {
|
|
2714
|
+
executionEnvOverrides?: ContextEnvsPayload1;
|
|
2715
|
+
/**
|
|
2716
|
+
* Active Adapter Host invocation identifier and cancellation target.
|
|
2717
|
+
*/
|
|
2718
|
+
invocationId: string;
|
|
2719
|
+
/**
|
|
2720
|
+
* Long-lived Agent Worker session identifier for this execution context.
|
|
2721
|
+
*/
|
|
2722
|
+
agentSessionId: string;
|
|
2723
|
+
/**
|
|
2724
|
+
* Caller-owned nonblank display name of 1-256 Unicode code points, without C0/DEL/C1 controls; independent of business identity and opaque provider recovery handles.
|
|
2725
|
+
*/
|
|
2726
|
+
sessionName?: string;
|
|
2727
|
+
/**
|
|
2728
|
+
* Run identifier for this execution.
|
|
2729
|
+
*/
|
|
2730
|
+
runId: string;
|
|
2731
|
+
/**
|
|
2732
|
+
* Worker-owned AgentSession generation that fences stale continuity updates.
|
|
2733
|
+
*/
|
|
2734
|
+
sessionGeneration?: number;
|
|
2735
|
+
/**
|
|
2736
|
+
* Worker-owned provider binding epoch for this Run.
|
|
2737
|
+
*/
|
|
2738
|
+
providerEpoch?: number;
|
|
2739
|
+
/**
|
|
2740
|
+
* Caller continuity intent. Fresh invocations must not carry providerSession.
|
|
2741
|
+
*/
|
|
2742
|
+
continuityMode?: "continue" | "fresh";
|
|
2743
|
+
/**
|
|
2744
|
+
* Display-safe current request or task description. It excludes hidden channel context and provider control parameters.
|
|
2745
|
+
*/
|
|
2746
|
+
prompt: string;
|
|
2747
|
+
/**
|
|
2748
|
+
* Required exact provider-visible user turn.
|
|
2749
|
+
*/
|
|
2750
|
+
modelInput: string;
|
|
2751
|
+
/**
|
|
2752
|
+
* @minItems 1
|
|
2753
|
+
* @maxItems 128
|
|
2754
|
+
*/
|
|
2755
|
+
modelInputParts?: ModelInputPart[];
|
|
2756
|
+
/**
|
|
2757
|
+
* @minItems 1
|
|
2758
|
+
* @maxItems 128
|
|
2759
|
+
*/
|
|
2760
|
+
freshFallbackModelInputParts?: ModelInputPart[];
|
|
2761
|
+
/**
|
|
2762
|
+
* Recovery includes historical images whose bytes are unavailable. Adapters must fail before sending a fresh prompt.
|
|
2763
|
+
*/
|
|
2764
|
+
freshFallbackImagesUnavailable?: boolean;
|
|
2765
|
+
/**
|
|
2766
|
+
* Frozen alternate user turn for the first turn of a fresh provider session after resume fails.
|
|
2767
|
+
*/
|
|
2768
|
+
freshFallbackModelInput?: string;
|
|
2769
|
+
/**
|
|
2770
|
+
* Provider process cwd. Sandboxing, containers, or host permissions provide the actual access boundary.
|
|
2771
|
+
*/
|
|
2772
|
+
workdir: string;
|
|
2773
|
+
/**
|
|
2774
|
+
* Trusted session instructions. Adapters inject them only when starting a provider session; resuming an existing session must not inject or clear them.
|
|
2775
|
+
*/
|
|
2776
|
+
controlInstructions: string;
|
|
2777
|
+
context: ContextEnvelope;
|
|
2778
|
+
runMetadata?: Record<string, unknown>;
|
|
2779
|
+
approvalMode: ApprovalMode;
|
|
2780
|
+
providerSession?: ProviderSession;
|
|
2781
|
+
runtimeLimits?: RuntimeLimits;
|
|
2782
|
+
agentConfig: AgentConfig;
|
|
2783
|
+
protocolVersion: 2;
|
|
2784
|
+
agentSource: AgentSource;
|
|
2785
|
+
}
|
|
2786
|
+
/**
|
|
2787
|
+
* Run 级环境变量列表;以 key 标识变量,按 key 合并,不进入模型输入。
|
|
2788
|
+
*/
|
|
2789
|
+
export interface ContextEnvsPayload1 {
|
|
2790
|
+
/**
|
|
2791
|
+
* @maxItems 128
|
|
2792
|
+
*/
|
|
2793
|
+
env_variables: {
|
|
2794
|
+
key: string;
|
|
2795
|
+
value: string;
|
|
2796
|
+
}[];
|
|
2797
|
+
}
|
|
2798
|
+
/**
|
|
2799
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2800
|
+
* via the `definition` "ActivityInfo".
|
|
2801
|
+
*/
|
|
2802
|
+
export interface ActivityInfo {
|
|
2803
|
+
messageKey?: string;
|
|
2804
|
+
params?: {
|
|
2805
|
+
[k: string]: string | number | boolean;
|
|
2806
|
+
};
|
|
2807
|
+
attempt?: number;
|
|
2808
|
+
retryAfterMs?: number;
|
|
2809
|
+
}
|
|
2810
|
+
/**
|
|
2811
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2812
|
+
* via the `definition` "ActivityStartedPayload".
|
|
2813
|
+
*/
|
|
2814
|
+
export interface ActivityStartedPayload {
|
|
2815
|
+
activityId: string;
|
|
2816
|
+
kind: "starting" | "thinking" | "executing_tool" | "responding" | "waiting_approval" | "waiting_input" | "compacting" | "retrying" | "working";
|
|
2817
|
+
subject: ActivitySubject;
|
|
2818
|
+
source: "provider" | "harness";
|
|
2819
|
+
info: ActivityInfo;
|
|
2820
|
+
startedAtMs?: number;
|
|
2821
|
+
}
|
|
2822
|
+
/**
|
|
2823
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2824
|
+
* via the `definition` "ActivityUpdatedPayload".
|
|
2825
|
+
*/
|
|
2826
|
+
export interface ActivityUpdatedPayload {
|
|
2827
|
+
activityId: string;
|
|
2828
|
+
info: ActivityInfo;
|
|
2829
|
+
}
|
|
2830
|
+
/**
|
|
2831
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2832
|
+
* via the `definition` "ActivityFinishedPayload".
|
|
2833
|
+
*/
|
|
2834
|
+
export interface ActivityFinishedPayload {
|
|
2835
|
+
activityId: string;
|
|
2836
|
+
status: "completed" | "failed" | "cancelled" | "superseded";
|
|
2837
|
+
endedAtMs?: number;
|
|
2838
|
+
}
|
|
2839
|
+
/**
|
|
2840
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2841
|
+
* via the `definition` "PlanUpdatedPayload".
|
|
2842
|
+
*/
|
|
2843
|
+
export interface PlanUpdatedPayload {
|
|
2844
|
+
planId: string;
|
|
2845
|
+
revision: number;
|
|
2846
|
+
explanation: string | null;
|
|
2847
|
+
/**
|
|
2848
|
+
* @maxItems 200
|
|
2849
|
+
*/
|
|
2850
|
+
steps: {
|
|
2851
|
+
text: string;
|
|
2852
|
+
status: "pending" | "in_progress" | "completed" | "blocked" | "cancelled";
|
|
2853
|
+
}[];
|
|
2854
|
+
}
|
|
2855
|
+
/**
|
|
2856
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2857
|
+
* via the `definition` "ToolProgressPayload".
|
|
2858
|
+
*/
|
|
2859
|
+
export interface ToolProgressPayload {
|
|
2860
|
+
id: string;
|
|
2861
|
+
progress: {
|
|
2862
|
+
message?: string;
|
|
2863
|
+
completed?: number;
|
|
2864
|
+
total?: number;
|
|
2865
|
+
unit?: "items" | "bytes" | "steps";
|
|
2866
|
+
};
|
|
2867
|
+
}
|
|
2868
|
+
/**
|
|
2869
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2870
|
+
* via the `definition` "RunNoticePayload".
|
|
2871
|
+
*/
|
|
2872
|
+
export interface RunNoticePayload {
|
|
2873
|
+
noticeId: string;
|
|
2874
|
+
code: "retry_scheduled" | "context_compacted" | "model_rerouted" | "config_warning" | "provider_diagnostic";
|
|
2875
|
+
severity: "info" | "warning";
|
|
2876
|
+
params: {
|
|
2877
|
+
[k: string]: string | number | boolean;
|
|
2878
|
+
};
|
|
2879
|
+
relatedActivityId?: string;
|
|
2880
|
+
relatedItemId?: string;
|
|
2881
|
+
}
|
|
2882
|
+
/**
|
|
2883
|
+
* Untrusted inline selection text with optional resource reference, source metadata and summary. Source metadata is not an authorization claim.
|
|
2884
|
+
*
|
|
2885
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2886
|
+
* via the `definition` "ContextInlineEntry".
|
|
2887
|
+
*/
|
|
2888
|
+
export interface ContextInlineEntry {
|
|
2889
|
+
text: string;
|
|
2890
|
+
resource_ref?: string;
|
|
2891
|
+
source?: {
|
|
2892
|
+
[k: string]: unknown;
|
|
2893
|
+
} | string;
|
|
2894
|
+
summary?: string;
|
|
2895
|
+
}
|
|
2896
|
+
/**
|
|
2897
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2898
|
+
* via the `definition` "ContextInlinePayload".
|
|
2899
|
+
*/
|
|
2900
|
+
export interface ContextInlinePayload {
|
|
2901
|
+
/**
|
|
2902
|
+
* @minItems 1
|
|
2903
|
+
*/
|
|
2904
|
+
entries: [ContextInlineEntry, ...ContextInlineEntry[]];
|
|
2905
|
+
}
|
|
2906
|
+
/**
|
|
2907
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2908
|
+
* via the `definition` "ContextReferencesPayload".
|
|
2909
|
+
*/
|
|
2910
|
+
export interface ContextReferencesPayload {
|
|
2911
|
+
/**
|
|
2912
|
+
* @minItems 1
|
|
2913
|
+
*/
|
|
2914
|
+
entries: [ContextReferenceEntry, ...ContextReferenceEntry[]];
|
|
2915
|
+
}
|
|
2916
|
+
/**
|
|
2917
|
+
* Business authorization intent; never a tool installation definition.
|
|
2918
|
+
*
|
|
2919
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2920
|
+
* via the `definition` "ToolAuthorization".
|
|
2921
|
+
*/
|
|
2922
|
+
export interface ToolAuthorization {
|
|
2923
|
+
service_subject_id: string;
|
|
2924
|
+
/**
|
|
2925
|
+
* @minItems 1
|
|
2926
|
+
* @maxItems 128
|
|
2927
|
+
*/
|
|
2928
|
+
allowed_tools: [string, ...string[]];
|
|
2929
|
+
/**
|
|
2930
|
+
* @minItems 1
|
|
2931
|
+
* @maxItems 128
|
|
2932
|
+
*/
|
|
2933
|
+
resource_refs: [string, ...string[]];
|
|
2934
|
+
}
|
|
2935
|
+
/**
|
|
2936
|
+
* Run lease-bound credentials delivered over the authenticated Runtime channel. Never enter provider configuration, prompts or logs.
|
|
2937
|
+
*
|
|
2938
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2939
|
+
* via the `definition` "IssuedToolAuthorization".
|
|
2940
|
+
*/
|
|
2941
|
+
export interface IssuedToolAuthorization {
|
|
2942
|
+
service_subject_id: string;
|
|
2943
|
+
/**
|
|
2944
|
+
* @minItems 1
|
|
2945
|
+
* @maxItems 128
|
|
2946
|
+
*/
|
|
2947
|
+
allowed_tools: [string, ...string[]];
|
|
2948
|
+
/**
|
|
2949
|
+
* @minItems 1
|
|
2950
|
+
* @maxItems 128
|
|
2951
|
+
*/
|
|
2952
|
+
resource_refs: [string, ...string[]];
|
|
2953
|
+
token: string;
|
|
2954
|
+
octo_space_id: string;
|
|
2955
|
+
namespace: string;
|
|
2956
|
+
expires_at: string;
|
|
2957
|
+
}
|
|
2958
|
+
export interface InvokeInputWire {
|
|
2959
|
+
/**
|
|
2960
|
+
* Optional caller-owned nonblank display name of 1-256 Unicode code points, without C0/DEL/C1 controls; Core supplies a random UUID default without business naming policy.
|
|
2961
|
+
*/
|
|
2962
|
+
sessionName?: string;
|
|
2963
|
+
sessionId?: string;
|
|
2964
|
+
invocationId?: string;
|
|
2965
|
+
runId?: string;
|
|
2966
|
+
prompt?: string;
|
|
2967
|
+
modelInput?: string;
|
|
2968
|
+
freshFallbackModelInput?: string;
|
|
2969
|
+
workdir?: string;
|
|
2970
|
+
controlInstructions?: string;
|
|
2971
|
+
inputs: ModelInputParts;
|
|
2972
|
+
contexts: ContextEnvelope;
|
|
2973
|
+
protocol_mode?: ProtocolMode;
|
|
2974
|
+
agentSource?: AgentSource;
|
|
2975
|
+
approvalMode?: ApprovalMode;
|
|
2976
|
+
agentConfig?: AgentConfig;
|
|
2977
|
+
runtimeLimits?: RuntimeLimits;
|
|
2978
|
+
providerSession?: ProviderSession;
|
|
2979
|
+
sessionGeneration?: number;
|
|
2980
|
+
providerEpoch?: number;
|
|
2981
|
+
runMetadata?: {
|
|
2982
|
+
[k: string]: unknown;
|
|
2983
|
+
};
|
|
2984
|
+
continuityMode?: "fresh" | "continue";
|
|
2985
|
+
freshFallbackModelInputParts?: ModelInputParts;
|
|
2986
|
+
freshFallbackImagesUnavailable?: boolean;
|
|
2987
|
+
[k: string]: unknown;
|
|
2988
|
+
}
|
|
2989
|
+
/**
|
|
2990
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2991
|
+
* via the `definition` "KernelInvokeEnvironmentWire".
|
|
2992
|
+
*/
|
|
2993
|
+
export interface KernelInvokeEnvironmentWire {
|
|
2994
|
+
executionEnvOverrides?: ContextEnvsPayload;
|
|
2995
|
+
}
|
|
2996
|
+
/**
|
|
2997
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
2998
|
+
* via the `definition` "InteractionResponseWire".
|
|
2999
|
+
*/
|
|
3000
|
+
export interface InteractionResponseWire {
|
|
3001
|
+
interactionId: string;
|
|
3002
|
+
outcome: "accepted" | "declined" | "answered" | "cancelled";
|
|
3003
|
+
value?: unknown;
|
|
3004
|
+
[k: string]: unknown;
|
|
3005
|
+
}
|
|
3006
|
+
/**
|
|
3007
|
+
* This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
|
|
3008
|
+
* via the `definition` "HostedAdapterMetadataWire".
|
|
3009
|
+
*/
|
|
3010
|
+
export interface HostedAdapterMetadataWire {
|
|
3011
|
+
type: string;
|
|
3012
|
+
agentSources: AgentSource[];
|
|
3013
|
+
workspace?: boolean;
|
|
3014
|
+
protocolSupport?: AdapterProtocolSupport;
|
|
3015
|
+
processModel?: string;
|
|
3016
|
+
transport?: string;
|
|
3017
|
+
providerVersion?: string | null;
|
|
3018
|
+
providerPath?: string | null;
|
|
3019
|
+
available?: boolean;
|
|
3020
|
+
unavailableReason?: string | null;
|
|
3021
|
+
[k: string]: unknown;
|
|
3022
|
+
}
|