@factory/droid-sdk 0.2.0 → 0.3.0

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.
Files changed (39) hide show
  1. package/README.md +214 -82
  2. package/dist/index.cjs +734 -611
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +1649 -206
  5. package/dist/index.d.ts +1649 -206
  6. package/dist/index.js +729 -624
  7. package/dist/index.js.map +1 -1
  8. package/docs/sdk-usage-guide.md +678 -0
  9. package/examples/abort-session-stream.ts +19 -55
  10. package/examples/droid-dev-structured-output.ts +4 -5
  11. package/examples/fork-session.ts +25 -6
  12. package/examples/hook-execution.ts +62 -0
  13. package/examples/init-metadata.ts +9 -66
  14. package/examples/interrupt-session.ts +19 -54
  15. package/examples/list-sessions.ts +9 -55
  16. package/examples/multi-turn-session.ts +21 -53
  17. package/examples/permission-handler.ts +26 -84
  18. package/examples/readme-structured-output.ts +25 -0
  19. package/examples/result-metadata.ts +1 -1
  20. package/examples/run.ts +1 -1
  21. package/examples/sdk-mcp-tool.ts +11 -7
  22. package/examples/session-stream.ts +54 -0
  23. package/examples/spec-mode-new-session.ts +38 -99
  24. package/examples/spec-mode-same-session.ts +49 -111
  25. package/examples/structured-output.ts +16 -10
  26. package/examples/test-compact.ts +5 -3
  27. package/examples/test-rewind.ts +49 -117
  28. package/examples/tool-controls.ts +22 -55
  29. package/package.json +1 -1
  30. package/docs/examples/init-metadata.md +0 -79
  31. package/docs/examples/list-sessions.md +0 -64
  32. package/docs/examples/multi-turn-session.md +0 -77
  33. package/docs/examples/one-shot-query.md +0 -73
  34. package/docs/examples/permission-handler.md +0 -102
  35. package/docs/examples/run.md +0 -52
  36. package/docs/examples/spec-mode.md +0 -101
  37. package/docs/examples/tool-controls.md +0 -90
  38. package/docs/typescript-sdk-reference.md +0 -372
  39. package/examples/simple-query.ts +0 -53
package/dist/index.d.cts CHANGED
@@ -1,19 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
3
3
 
4
- /**
5
- * All protocol enums for the Factory Droid SDK.
6
- *
7
- * - packages/common/src/droid/enums.ts
8
- * - packages/common/src/shared/enums.ts
9
- * - packages/common/src/llm/enums.ts
10
- * - packages/common/src/settings/enums.ts
11
- */
12
4
  /** Droid server methods (client → server communication). */
13
5
  declare enum DroidServerMethod {
14
6
  INITIALIZE_SESSION = "droid.initialize_session",
15
7
  LOAD_SESSION = "droid.load_session",
16
8
  ADD_USER_MESSAGE = "droid.add_user_message",
9
+ CLOSE_SESSION = "droid.close_session",
17
10
  INTERRUPT_SESSION = "droid.interrupt_session",
18
11
  KILL_WORKER_SESSION = "droid.kill_worker_session",
19
12
  UPDATE_SESSION_SETTINGS = "droid.update_session_settings",
@@ -44,7 +37,6 @@ declare enum DroidClientMethod {
44
37
  REQUEST_PERMISSION = "droid.request_permission",
45
38
  ASK_USER = "droid.ask_user"
46
39
  }
47
- /** Session notification types. */
48
40
  declare enum SessionNotificationType {
49
41
  TOOL_RESULT = "tool_result",
50
42
  TOOL_PROGRESS_UPDATE = "tool_progress_update",
@@ -56,7 +48,10 @@ declare enum SessionNotificationType {
56
48
  SESSION_TITLE_UPDATED = "session_title_updated",
57
49
  MCP_STATUS_CHANGED = "mcp_status_changed",
58
50
  ASSISTANT_TEXT_DELTA = "assistant_text_delta",
51
+ ASSISTANT_TEXT_COMPLETE = "assistant_text_complete",
59
52
  THINKING_TEXT_DELTA = "thinking_text_delta",
53
+ THINKING_TEXT_COMPLETE = "thinking_text_complete",
54
+ TOOL_CALL = "tool_call",
60
55
  SESSION_TOKEN_USAGE_CHANGED = "session_token_usage_changed",
61
56
  MISSION_STATE_CHANGED = "mission_state_changed",
62
57
  MISSION_FEATURES_CHANGED = "mission_features_changed",
@@ -65,7 +60,10 @@ declare enum SessionNotificationType {
65
60
  MISSION_WORKER_STARTED = "mission_worker_started",
66
61
  MISSION_WORKER_COMPLETED = "mission_worker_completed",
67
62
  MCP_AUTH_REQUIRED = "mcp_auth_required",
68
- MCP_AUTH_COMPLETED = "mcp_auth_completed"
63
+ MCP_AUTH_COMPLETED = "mcp_auth_completed",
64
+ HOOK_EXECUTION_STARTED = "hook_execution_started",
65
+ HOOK_EXECUTION_COMPLETED = "hook_execution_completed",
66
+ STRUCTURED_OUTPUT = "structured_output"
69
67
  }
70
68
  /** Tool confirmation outcome options (possible user responses to permission requests). */
71
69
  declare enum ToolConfirmationOutcome {
@@ -94,7 +92,6 @@ declare enum ToolConfirmationType {
94
92
  ApplyPatch = "apply_patch",
95
93
  McpTool = "mcp_tool"
96
94
  }
97
- /** Droid working state (represents what the agent is currently doing). */
98
95
  declare enum DroidWorkingState {
99
96
  Idle = "idle",
100
97
  StreamingAssistantMessage = "streaming_assistant_message",
@@ -102,12 +99,10 @@ declare enum DroidWorkingState {
102
99
  ExecutingTool = "executing_tool",
103
100
  CompactingConversation = "compacting_conversation"
104
101
  }
105
- /** Accuracy of reported context stats. */
106
102
  declare enum ContextStatsAccuracy {
107
103
  Exact = "exact",
108
104
  Estimated = "estimated"
109
105
  }
110
- /** Error types for error notifications. */
111
106
  declare enum DroidErrorType {
112
107
  CONNECTION_ERROR = "ConnectionError",
113
108
  PROTOCOL_ERROR = "ProtocolError",
@@ -117,7 +112,6 @@ declare enum DroidErrorType {
117
112
  PROCESS_EXIT_ERROR = "ProcessExitError",
118
113
  ERROR = "Error"
119
114
  }
120
- /** MCP server connection status. */
121
115
  declare enum McpServerStatus {
122
116
  Connecting = "connecting",
123
117
  Connected = "connected",
@@ -125,13 +119,11 @@ declare enum McpServerStatus {
125
119
  Failed = "failed",
126
120
  Disabled = "disabled"
127
121
  }
128
- /** MCP server transport type. */
129
122
  declare enum McpServerType {
130
123
  Stdio = "stdio",
131
124
  Http = "http",
132
125
  Sse = "sse"
133
126
  }
134
- /** Overall MCP initialization status. */
135
127
  declare enum McpStatus {
136
128
  NotInitialized = "not-initialized",
137
129
  Initializing = "initializing",
@@ -139,7 +131,6 @@ declare enum McpStatus {
139
131
  NoServers = "no-servers",
140
132
  Failed = "failed"
141
133
  }
142
- /** MCP authentication outcome. */
143
134
  declare enum McpAuthOutcome {
144
135
  Success = "success",
145
136
  Cancelled = "cancelled",
@@ -233,7 +224,6 @@ declare enum AutonomyMode {
233
224
  AutoMedium = "auto-medium",
234
225
  AutoHigh = "auto-high"
235
226
  }
236
- /** Reasoning effort levels for LLMs. */
237
227
  declare enum ReasoningEffort {
238
228
  None = "none",
239
229
  Dynamic = "dynamic",
@@ -245,7 +235,6 @@ declare enum ReasoningEffort {
245
235
  ExtraHigh = "xhigh",
246
236
  Max = "max"
247
237
  }
248
- /** Model provider identifiers. */
249
238
  declare enum ModelProvider {
250
239
  ANTHROPIC = "anthropic",
251
240
  OPENAI = "openai",
@@ -266,7 +255,6 @@ declare enum JsonRpcErrorCode {
266
255
  ENTITY_NOT_FOUND = -32004,
267
256
  SESSION_DISCONNECTED = -32005
268
257
  }
269
- /** JSON-RPC message type discriminator. */
270
258
  declare enum JsonRpcMessageType {
271
259
  Request = "request",
272
260
  Response = "response",
@@ -285,7 +273,6 @@ declare enum SettingsLevel {
285
273
  Dynamic = "dynamic",
286
274
  BuiltIn = "builtin"
287
275
  }
288
- /** Skill file location type. */
289
276
  declare enum SkillLocation {
290
277
  Project = "project",
291
278
  Personal = "personal",
@@ -295,8 +282,9 @@ declare enum SkillLocation {
295
282
  /** JSON-RPC protocol version. */
296
283
  declare const JSONRPC_VERSION: "2.0";
297
284
  /**
298
- * Legacy Factory API version for backward compatibility.
299
- * @deprecated Use FACTORY_PROTOCOL_VERSION for runtime compatibility instead.
285
+ * Frozen Factory API version embedded in every JSON-RPC envelope.
286
+ * This value is required by the wire protocol and must not be changed.
287
+ * For version negotiation, use FACTORY_PROTOCOL_VERSION instead.
300
288
  */
301
289
  declare const LEGACY_FACTORY_API_VERSION: "1.0.0";
302
290
  /** Current Factory protocol version. */
@@ -943,6 +931,122 @@ declare const JsonRpcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
943
931
  } | undefined;
944
932
  }>]>;
945
933
  type JsonRpcMessage = z.infer<typeof JsonRpcMessageSchema>;
934
+ /** Creates a JSON-RPC response schema (success | failure) for a given result schema. */
935
+ declare function createResponseSchema<T extends z.ZodTypeAny>(resultSchema: T): z.ZodUnion<[z.ZodObject<{
936
+ jsonrpc: z.ZodLiteral<"2.0">;
937
+ factoryApiVersion: z.ZodLiteral<"1.0.0">;
938
+ factoryProtocolVersion: z.ZodOptional<z.ZodString>;
939
+ _meta: z.ZodOptional<z.ZodObject<{
940
+ traceparent: z.ZodOptional<z.ZodString>;
941
+ tracestate: z.ZodOptional<z.ZodString>;
942
+ }, "strip", z.ZodTypeAny, {
943
+ traceparent?: string | undefined;
944
+ tracestate?: string | undefined;
945
+ }, {
946
+ traceparent?: string | undefined;
947
+ tracestate?: string | undefined;
948
+ }>>;
949
+ type: z.ZodLiteral<"response">;
950
+ id: z.ZodString;
951
+ } & {
952
+ result: T;
953
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
954
+ jsonrpc: z.ZodLiteral<"2.0">;
955
+ factoryApiVersion: z.ZodLiteral<"1.0.0">;
956
+ factoryProtocolVersion: z.ZodOptional<z.ZodString>;
957
+ _meta: z.ZodOptional<z.ZodObject<{
958
+ traceparent: z.ZodOptional<z.ZodString>;
959
+ tracestate: z.ZodOptional<z.ZodString>;
960
+ }, "strip", z.ZodTypeAny, {
961
+ traceparent?: string | undefined;
962
+ tracestate?: string | undefined;
963
+ }, {
964
+ traceparent?: string | undefined;
965
+ tracestate?: string | undefined;
966
+ }>>;
967
+ type: z.ZodLiteral<"response">;
968
+ id: z.ZodString;
969
+ } & {
970
+ result: T;
971
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
972
+ jsonrpc: z.ZodLiteral<"2.0">;
973
+ factoryApiVersion: z.ZodLiteral<"1.0.0">;
974
+ factoryProtocolVersion: z.ZodOptional<z.ZodString>;
975
+ _meta: z.ZodOptional<z.ZodObject<{
976
+ traceparent: z.ZodOptional<z.ZodString>;
977
+ tracestate: z.ZodOptional<z.ZodString>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ traceparent?: string | undefined;
980
+ tracestate?: string | undefined;
981
+ }, {
982
+ traceparent?: string | undefined;
983
+ tracestate?: string | undefined;
984
+ }>>;
985
+ type: z.ZodLiteral<"response">;
986
+ id: z.ZodString;
987
+ } & {
988
+ result: T;
989
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>, z.ZodObject<{
990
+ jsonrpc: z.ZodLiteral<"2.0">;
991
+ factoryApiVersion: z.ZodLiteral<"1.0.0">;
992
+ factoryProtocolVersion: z.ZodOptional<z.ZodString>;
993
+ _meta: z.ZodOptional<z.ZodObject<{
994
+ traceparent: z.ZodOptional<z.ZodString>;
995
+ tracestate: z.ZodOptional<z.ZodString>;
996
+ }, "strip", z.ZodTypeAny, {
997
+ traceparent?: string | undefined;
998
+ tracestate?: string | undefined;
999
+ }, {
1000
+ traceparent?: string | undefined;
1001
+ tracestate?: string | undefined;
1002
+ }>>;
1003
+ } & {
1004
+ type: z.ZodLiteral<"response">;
1005
+ id: z.ZodNullable<z.ZodString>;
1006
+ error: z.ZodObject<{
1007
+ code: z.ZodNativeEnum<typeof JsonRpcErrorCode>;
1008
+ message: z.ZodString;
1009
+ data: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ code: JsonRpcErrorCode;
1012
+ message: string;
1013
+ data?: JsonValue | undefined;
1014
+ }, {
1015
+ code: JsonRpcErrorCode;
1016
+ message: string;
1017
+ data?: JsonValue | undefined;
1018
+ }>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ error: {
1021
+ code: JsonRpcErrorCode;
1022
+ message: string;
1023
+ data?: JsonValue | undefined;
1024
+ };
1025
+ type: "response";
1026
+ jsonrpc: "2.0";
1027
+ factoryApiVersion: "1.0.0";
1028
+ id: string | null;
1029
+ factoryProtocolVersion?: string | undefined;
1030
+ _meta?: {
1031
+ traceparent?: string | undefined;
1032
+ tracestate?: string | undefined;
1033
+ } | undefined;
1034
+ }, {
1035
+ error: {
1036
+ code: JsonRpcErrorCode;
1037
+ message: string;
1038
+ data?: JsonValue | undefined;
1039
+ };
1040
+ type: "response";
1041
+ jsonrpc: "2.0";
1042
+ factoryApiVersion: "1.0.0";
1043
+ id: string | null;
1044
+ factoryProtocolVersion?: string | undefined;
1045
+ _meta?: {
1046
+ traceparent?: string | undefined;
1047
+ tracestate?: string | undefined;
1048
+ } | undefined;
1049
+ }>]>;
946
1050
 
947
1051
  /**
948
1052
  * Session metadata returned by {@link listSessions}.
@@ -1090,6 +1194,200 @@ interface ListSessionsOptions {
1090
1194
  sessionsDir?: string;
1091
1195
  }
1092
1196
 
1197
+ declare const DroidHookEventSchema: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
1198
+ type DroidHookEvent = z.infer<typeof DroidHookEventSchema>;
1199
+ declare const DroidHookSpecificOutputSchema: z.ZodObject<{
1200
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1201
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1202
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1203
+ additionalContext: z.ZodOptional<z.ZodString>;
1204
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1205
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1206
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1207
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1208
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1209
+ additionalContext: z.ZodOptional<z.ZodString>;
1210
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1211
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1212
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1213
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1214
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1215
+ additionalContext: z.ZodOptional<z.ZodString>;
1216
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1217
+ }, z.ZodTypeAny, "passthrough">>;
1218
+ declare const DroidHookOutputSchema: z.ZodObject<{
1219
+ continue: z.ZodOptional<z.ZodBoolean>;
1220
+ stopReason: z.ZodOptional<z.ZodString>;
1221
+ suppressOutput: z.ZodOptional<z.ZodBoolean>;
1222
+ systemMessage: z.ZodOptional<z.ZodString>;
1223
+ decision: z.ZodOptional<z.ZodEnum<["block", "approve"]>>;
1224
+ reason: z.ZodOptional<z.ZodString>;
1225
+ hookSpecificOutput: z.ZodOptional<z.ZodObject<{
1226
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1227
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1228
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1229
+ additionalContext: z.ZodOptional<z.ZodString>;
1230
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1231
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1232
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1233
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1234
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1235
+ additionalContext: z.ZodOptional<z.ZodString>;
1236
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1237
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1238
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1239
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1240
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1241
+ additionalContext: z.ZodOptional<z.ZodString>;
1242
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1243
+ }, z.ZodTypeAny, "passthrough">>>;
1244
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1245
+ continue: z.ZodOptional<z.ZodBoolean>;
1246
+ stopReason: z.ZodOptional<z.ZodString>;
1247
+ suppressOutput: z.ZodOptional<z.ZodBoolean>;
1248
+ systemMessage: z.ZodOptional<z.ZodString>;
1249
+ decision: z.ZodOptional<z.ZodEnum<["block", "approve"]>>;
1250
+ reason: z.ZodOptional<z.ZodString>;
1251
+ hookSpecificOutput: z.ZodOptional<z.ZodObject<{
1252
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1253
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1254
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1255
+ additionalContext: z.ZodOptional<z.ZodString>;
1256
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1257
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1258
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1259
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1260
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1261
+ additionalContext: z.ZodOptional<z.ZodString>;
1262
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1263
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1264
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1265
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1266
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1267
+ additionalContext: z.ZodOptional<z.ZodString>;
1268
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1269
+ }, z.ZodTypeAny, "passthrough">>>;
1270
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1271
+ continue: z.ZodOptional<z.ZodBoolean>;
1272
+ stopReason: z.ZodOptional<z.ZodString>;
1273
+ suppressOutput: z.ZodOptional<z.ZodBoolean>;
1274
+ systemMessage: z.ZodOptional<z.ZodString>;
1275
+ decision: z.ZodOptional<z.ZodEnum<["block", "approve"]>>;
1276
+ reason: z.ZodOptional<z.ZodString>;
1277
+ hookSpecificOutput: z.ZodOptional<z.ZodObject<{
1278
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1279
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1280
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1281
+ additionalContext: z.ZodOptional<z.ZodString>;
1282
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1283
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1284
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1285
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1286
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1287
+ additionalContext: z.ZodOptional<z.ZodString>;
1288
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1289
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1290
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1291
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1292
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1293
+ additionalContext: z.ZodOptional<z.ZodString>;
1294
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1295
+ }, z.ZodTypeAny, "passthrough">>>;
1296
+ }, z.ZodTypeAny, "passthrough">>;
1297
+ type DroidHookOutput = z.infer<typeof DroidHookOutputSchema>;
1298
+ declare const DroidHookExecutionResultSchema: z.ZodObject<{
1299
+ continue: z.ZodOptional<z.ZodBoolean>;
1300
+ stopReason: z.ZodOptional<z.ZodString>;
1301
+ suppressOutput: z.ZodOptional<z.ZodBoolean>;
1302
+ systemMessage: z.ZodOptional<z.ZodString>;
1303
+ decision: z.ZodOptional<z.ZodEnum<["block", "approve"]>>;
1304
+ reason: z.ZodOptional<z.ZodString>;
1305
+ hookSpecificOutput: z.ZodOptional<z.ZodObject<{
1306
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1307
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1308
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1309
+ additionalContext: z.ZodOptional<z.ZodString>;
1310
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1311
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1312
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1313
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1314
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1315
+ additionalContext: z.ZodOptional<z.ZodString>;
1316
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1317
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1318
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1319
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1320
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1321
+ additionalContext: z.ZodOptional<z.ZodString>;
1322
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1323
+ }, z.ZodTypeAny, "passthrough">>>;
1324
+ } & {
1325
+ exitCode: z.ZodNumber;
1326
+ stdout: z.ZodString;
1327
+ stderr: z.ZodString;
1328
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1329
+ continue: z.ZodOptional<z.ZodBoolean>;
1330
+ stopReason: z.ZodOptional<z.ZodString>;
1331
+ suppressOutput: z.ZodOptional<z.ZodBoolean>;
1332
+ systemMessage: z.ZodOptional<z.ZodString>;
1333
+ decision: z.ZodOptional<z.ZodEnum<["block", "approve"]>>;
1334
+ reason: z.ZodOptional<z.ZodString>;
1335
+ hookSpecificOutput: z.ZodOptional<z.ZodObject<{
1336
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1337
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1338
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1339
+ additionalContext: z.ZodOptional<z.ZodString>;
1340
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1341
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1342
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1343
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1344
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1345
+ additionalContext: z.ZodOptional<z.ZodString>;
1346
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1347
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1348
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1349
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1350
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1351
+ additionalContext: z.ZodOptional<z.ZodString>;
1352
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1353
+ }, z.ZodTypeAny, "passthrough">>>;
1354
+ } & {
1355
+ exitCode: z.ZodNumber;
1356
+ stdout: z.ZodString;
1357
+ stderr: z.ZodString;
1358
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1359
+ continue: z.ZodOptional<z.ZodBoolean>;
1360
+ stopReason: z.ZodOptional<z.ZodString>;
1361
+ suppressOutput: z.ZodOptional<z.ZodBoolean>;
1362
+ systemMessage: z.ZodOptional<z.ZodString>;
1363
+ decision: z.ZodOptional<z.ZodEnum<["block", "approve"]>>;
1364
+ reason: z.ZodOptional<z.ZodString>;
1365
+ hookSpecificOutput: z.ZodOptional<z.ZodObject<{
1366
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1367
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1368
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1369
+ additionalContext: z.ZodOptional<z.ZodString>;
1370
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1371
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1372
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1373
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1374
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1375
+ additionalContext: z.ZodOptional<z.ZodString>;
1376
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1377
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1378
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
1379
+ permissionDecision: z.ZodOptional<z.ZodEnum<["allow", "deny", "ask"]>>;
1380
+ permissionDecisionReason: z.ZodOptional<z.ZodString>;
1381
+ additionalContext: z.ZodOptional<z.ZodString>;
1382
+ updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1383
+ }, z.ZodTypeAny, "passthrough">>>;
1384
+ } & {
1385
+ exitCode: z.ZodNumber;
1386
+ stdout: z.ZodString;
1387
+ stderr: z.ZodString;
1388
+ }, z.ZodTypeAny, "passthrough">>;
1389
+ type DroidHookExecutionResult = z.infer<typeof DroidHookExecutionResultSchema>;
1390
+
1093
1391
  /** Text content block. */
1094
1392
  declare const TextBlockSchema: z.ZodObject<{
1095
1393
  type: z.ZodLiteral<"text">;
@@ -1878,7 +2176,6 @@ declare const DocumentSourceSchema: z.ZodObject<{
1878
2176
  }, z.ZodTypeAny, "passthrough">>;
1879
2177
  type DocumentSource = z.infer<typeof DocumentSourceSchema>;
1880
2178
 
1881
- /** Stdio MCP server configuration fields. */
1882
2179
  declare const McpStdioServerConfigFieldsSchema: z.ZodObject<{
1883
2180
  command: z.ZodOptional<z.ZodString>;
1884
2181
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1890,7 +2187,6 @@ declare const McpStdioServerConfigFieldsSchema: z.ZodObject<{
1890
2187
  args?: string[] | undefined;
1891
2188
  }>;
1892
2189
  type McpStdioServerConfigFields = z.infer<typeof McpStdioServerConfigFieldsSchema>;
1893
- /** HTTP MCP server configuration fields. */
1894
2190
  declare const McpHttpServerConfigFieldsSchema: z.ZodObject<{
1895
2191
  url: z.ZodOptional<z.ZodString>;
1896
2192
  }, "strip", z.ZodTypeAny, {
@@ -1899,7 +2195,6 @@ declare const McpHttpServerConfigFieldsSchema: z.ZodObject<{
1899
2195
  url?: string | undefined;
1900
2196
  }>;
1901
2197
  type McpHttpServerConfigFields = z.infer<typeof McpHttpServerConfigFieldsSchema>;
1902
- /** SSE MCP server configuration fields. */
1903
2198
  declare const McpSseServerConfigFieldsSchema: z.ZodObject<{
1904
2199
  url: z.ZodString;
1905
2200
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1911,7 +2206,6 @@ declare const McpSseServerConfigFieldsSchema: z.ZodObject<{
1911
2206
  headers?: Record<string, string> | undefined;
1912
2207
  }>;
1913
2208
  type McpSseServerConfigFields = z.infer<typeof McpSseServerConfigFieldsSchema>;
1914
- /** MCP server status information. */
1915
2209
  declare const McpServerStatusInfoSchema: z.ZodObject<{
1916
2210
  name: z.ZodString;
1917
2211
  status: z.ZodNativeEnum<typeof McpServerStatus>;
@@ -1941,7 +2235,6 @@ declare const McpServerStatusInfoSchema: z.ZodObject<{
1941
2235
  hasAuthTokens: z.ZodOptional<z.ZodBoolean>;
1942
2236
  }, z.ZodTypeAny, "passthrough">>;
1943
2237
  type McpServerStatusInfo = z.infer<typeof McpServerStatusInfoSchema>;
1944
- /** MCP status summary. */
1945
2238
  declare const McpStatusSummarySchema: z.ZodObject<{
1946
2239
  total: z.ZodNumber;
1947
2240
  connected: z.ZodNumber;
@@ -1962,7 +2255,6 @@ declare const McpStatusSummarySchema: z.ZodObject<{
1962
2255
  disabled: z.ZodOptional<z.ZodNumber>;
1963
2256
  }, z.ZodTypeAny, "passthrough">>;
1964
2257
  type McpStatusSummary = z.infer<typeof McpStatusSummarySchema>;
1965
- /** MCP registry server entity. */
1966
2258
  declare const McpRegistryServerSchema: z.ZodObject<{
1967
2259
  name: z.ZodString;
1968
2260
  description: z.ZodString;
@@ -2007,7 +2299,6 @@ declare const McpToolInputSchemaSchema: z.ZodObject<{
2007
2299
  required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2008
2300
  }, z.ZodTypeAny, "passthrough">>;
2009
2301
  type McpToolInputSchema = z.infer<typeof McpToolInputSchemaSchema>;
2010
- /** MCP tool information entity. */
2011
2302
  declare const McpToolInfoSchema: z.ZodObject<{
2012
2303
  serverName: z.ZodString;
2013
2304
  name: z.ZodString;
@@ -2067,7 +2358,6 @@ declare const McpToolInfoSchema: z.ZodObject<{
2067
2358
  }, z.ZodTypeAny, "passthrough">>>;
2068
2359
  }, z.ZodTypeAny, "passthrough">>;
2069
2360
  type McpToolInfo = z.infer<typeof McpToolInfoSchema>;
2070
- /** Selectable list item for tool confirmation prompts. */
2071
2361
  declare const ToolConfirmationListItemSchema: z.ZodObject<{
2072
2362
  label: z.ZodString;
2073
2363
  value: z.ZodNativeEnum<typeof ToolConfirmationOutcome>;
@@ -8485,7 +8775,6 @@ declare const ProgressLogEntrySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
8485
8775
  }, z.ZodTypeAny, "passthrough">>]>;
8486
8776
  type ProgressLogEntry = z.infer<typeof ProgressLogEntrySchema>;
8487
8777
 
8488
- /** Session tag metadata. */
8489
8778
  declare const SessionTagSchema: z.ZodObject<{
8490
8779
  name: z.ZodString;
8491
8780
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -8497,7 +8786,6 @@ declare const SessionTagSchema: z.ZodObject<{
8497
8786
  metadata?: Record<string, string> | undefined;
8498
8787
  }>;
8499
8788
  type SessionTag = z.infer<typeof SessionTagSchema>;
8500
- /** Session source information. */
8501
8789
  declare const SessionSourceSchema: z.ZodObject<{
8502
8790
  platform: z.ZodString;
8503
8791
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -8506,7 +8794,6 @@ declare const SessionSourceSchema: z.ZodObject<{
8506
8794
  platform: z.ZodString;
8507
8795
  }, z.ZodTypeAny, "passthrough">>;
8508
8796
  type SessionSource = z.infer<typeof SessionSourceSchema>;
8509
- /** Stdio MCP server configuration for initialization. */
8510
8797
  declare const StdioMcpConfigSchema: z.ZodObject<{
8511
8798
  name: z.ZodString;
8512
8799
  command: z.ZodString;
@@ -8524,7 +8811,6 @@ declare const StdioMcpConfigSchema: z.ZodObject<{
8524
8811
  env?: Record<string, string> | undefined;
8525
8812
  }>;
8526
8813
  type StdioMcpConfig = z.infer<typeof StdioMcpConfigSchema>;
8527
- /** HTTP header for MCP server configuration. */
8528
8814
  declare const HttpHeaderSchema: z.ZodObject<{
8529
8815
  name: z.ZodString;
8530
8816
  value: z.ZodString;
@@ -8536,7 +8822,6 @@ declare const HttpHeaderSchema: z.ZodObject<{
8536
8822
  name: string;
8537
8823
  }>;
8538
8824
  type HttpHeader = z.infer<typeof HttpHeaderSchema>;
8539
- /** HTTP MCP server configuration for initialization. */
8540
8825
  declare const HttpMcpConfigSchema: z.ZodObject<{
8541
8826
  type: z.ZodLiteral<"http">;
8542
8827
  name: z.ZodString;
@@ -8569,7 +8854,6 @@ declare const HttpMcpConfigSchema: z.ZodObject<{
8569
8854
  }[] | undefined;
8570
8855
  }>;
8571
8856
  type HttpMcpConfig = z.infer<typeof HttpMcpConfigSchema>;
8572
- /** SSE MCP server configuration for initialization. */
8573
8857
  declare const SseMcpConfigSchema: z.ZodObject<{
8574
8858
  type: z.ZodLiteral<"sse">;
8575
8859
  name: z.ZodString;
@@ -8602,7 +8886,6 @@ declare const SseMcpConfigSchema: z.ZodObject<{
8602
8886
  }[] | undefined;
8603
8887
  }>;
8604
8888
  type SseMcpConfig = z.infer<typeof SseMcpConfigSchema>;
8605
- /** Union of MCP server configs. */
8606
8889
  declare const McpServerConfigSchema: z.ZodUnion<[z.ZodObject<{
8607
8890
  name: z.ZodString;
8608
8891
  command: z.ZodString;
@@ -8713,7 +8996,6 @@ declare const SessionSettingsSchema: z.ZodObject<{
8713
8996
  specModeReasoningEffort: z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>;
8714
8997
  }, z.ZodTypeAny, "passthrough">>;
8715
8998
  type SessionSettings = z.infer<typeof SessionSettingsSchema>;
8716
- /** Git repository information. */
8717
8999
  declare const GitRepoInfoSchema: z.ZodObject<{
8718
9000
  owner: z.ZodOptional<z.ZodString>;
8719
9001
  repoName: z.ZodString;
@@ -8776,7 +9058,6 @@ declare const AvailableModelConfigSchema: z.ZodObject<{
8776
9058
  usesUSBasedInference: z.ZodOptional<z.ZodBoolean>;
8777
9059
  }, z.ZodTypeAny, "passthrough">>;
8778
9060
  type AvailableModelConfig = z.infer<typeof AvailableModelConfigSchema>;
8779
- /** Token usage information for a session. */
8780
9061
  declare const TokenUsageSchema: z.ZodObject<{
8781
9062
  inputTokens: z.ZodNumber;
8782
9063
  outputTokens: z.ZodNumber;
@@ -8818,7 +9099,6 @@ declare const ContextStatsSchema: z.ZodObject<{
8818
9099
  updatedAt: z.ZodString;
8819
9100
  }, z.ZodTypeAny, "passthrough">>;
8820
9101
  type ContextStats = z.infer<typeof ContextStatsSchema>;
8821
- /** Worker state information for mission snapshots. */
8822
9102
  declare const WorkerStateInfoSchema: z.ZodObject<{
8823
9103
  startedAt: z.ZodString;
8824
9104
  completedAt: z.ZodOptional<z.ZodString>;
@@ -8833,7 +9113,6 @@ declare const WorkerStateInfoSchema: z.ZodObject<{
8833
9113
  exitCode: z.ZodOptional<z.ZodNumber>;
8834
9114
  }, z.ZodTypeAny, "passthrough">>;
8835
9115
  type WorkerStateInfo = z.infer<typeof WorkerStateInfoSchema>;
8836
- /** Skill resource file in a skill folder. */
8837
9116
  declare const SkillResourceSchema: z.ZodObject<{
8838
9117
  name: z.ZodString;
8839
9118
  path: z.ZodString;
@@ -8848,7 +9127,6 @@ declare const SkillResourceSchema: z.ZodObject<{
8848
9127
  type: z.ZodEnum<["reference", "asset"]>;
8849
9128
  }, z.ZodTypeAny, "passthrough">>;
8850
9129
  type SkillResource = z.infer<typeof SkillResourceSchema>;
8851
- /** Skill information returned by list_skills. */
8852
9130
  declare const SkillInfoSchema: z.ZodObject<{
8853
9131
  name: z.ZodString;
8854
9132
  description: z.ZodOptional<z.ZodString>;
@@ -8917,7 +9195,6 @@ declare const SkillInfoSchema: z.ZodObject<{
8917
9195
  }, z.ZodTypeAny, "passthrough">>, "many">>;
8918
9196
  }, z.ZodTypeAny, "passthrough">>;
8919
9197
  type SkillInfo = z.infer<typeof SkillInfoSchema>;
8920
- /** Parameters for droid.initialize_session request. */
8921
9198
  declare const InitializeSessionRequestParamsSchema: z.ZodObject<{
8922
9199
  sessionLocation: z.ZodOptional<z.ZodString>;
8923
9200
  sessionSource: z.ZodOptional<z.ZodObject<{
@@ -9128,7 +9405,6 @@ declare const InitializeSessionRequestParamsSchema: z.ZodObject<{
9128
9405
  mcpOAuthCallbackUri?: string | undefined;
9129
9406
  }>;
9130
9407
  type InitializeSessionRequestParams = z.infer<typeof InitializeSessionRequestParamsSchema>;
9131
- /** Parameters for droid.load_session request. */
9132
9408
  declare const LoadSessionRequestParamsSchema: z.ZodObject<{
9133
9409
  sessionId: z.ZodString;
9134
9410
  mcpServers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -9260,12 +9536,10 @@ declare const LoadSessionRequestParamsSchema: z.ZodObject<{
9260
9536
  mcpOAuthCallbackUri?: string | undefined;
9261
9537
  }>;
9262
9538
  type LoadSessionRequestParams = z.infer<typeof LoadSessionRequestParamsSchema>;
9263
- /** Structured output format type names. */
9264
9539
  declare const OutputFormatType: {
9265
9540
  readonly JsonSchema: "json_schema";
9266
9541
  };
9267
9542
  type OutputFormatType = (typeof OutputFormatType)[keyof typeof OutputFormatType];
9268
- /** Structured output format for droid.add_user_message request. */
9269
9543
  declare const OutputFormatSchema: z.ZodObject<{
9270
9544
  type: z.ZodLiteral<"json_schema">;
9271
9545
  schema: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
@@ -9277,7 +9551,6 @@ declare const OutputFormatSchema: z.ZodObject<{
9277
9551
  schema: JsonObject;
9278
9552
  }>;
9279
9553
  type OutputFormat = z.infer<typeof OutputFormatSchema>;
9280
- /** Parameters for droid.add_user_message request. */
9281
9554
  declare const AddUserMessageRequestParamsSchema: z.ZodObject<{
9282
9555
  messageId: z.ZodOptional<z.ZodString>;
9283
9556
  text: z.ZodString;
@@ -9363,10 +9636,16 @@ declare const AddUserMessageRequestParamsSchema: z.ZodObject<{
9363
9636
  } | undefined;
9364
9637
  }>;
9365
9638
  type AddUserMessageRequestParams = z.infer<typeof AddUserMessageRequestParamsSchema>;
9366
- /** Parameters for droid.interrupt_session request (empty). */
9367
9639
  declare const InterruptSessionRequestParamsSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
9368
9640
  type InterruptSessionRequestParams = z.infer<typeof InterruptSessionRequestParamsSchema>;
9369
- /** Parameters for droid.kill_worker_session request. */
9641
+ declare const CloseSessionRequestParamsSchema: z.ZodObject<{
9642
+ reason: z.ZodOptional<z.ZodEnum<["clear", "logout", "prompt_input_exit", "other"]>>;
9643
+ }, "strict", z.ZodTypeAny, {
9644
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
9645
+ }, {
9646
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
9647
+ }>;
9648
+ type CloseSessionRequestParams = z.infer<typeof CloseSessionRequestParamsSchema>;
9370
9649
  declare const KillWorkerSessionRequestParamsSchema: z.ZodObject<{
9371
9650
  workerSessionId: z.ZodString;
9372
9651
  }, "strict", z.ZodTypeAny, {
@@ -9375,7 +9654,6 @@ declare const KillWorkerSessionRequestParamsSchema: z.ZodObject<{
9375
9654
  workerSessionId: string;
9376
9655
  }>;
9377
9656
  type KillWorkerSessionRequestParams = z.infer<typeof KillWorkerSessionRequestParamsSchema>;
9378
- /** Parameters for droid.update_session_settings request. */
9379
9657
  declare const UpdateSessionSettingsRequestParamsSchema: z.ZodObject<{
9380
9658
  enabledToolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9381
9659
  disabledToolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -9408,7 +9686,6 @@ declare const UpdateSessionSettingsRequestParamsSchema: z.ZodObject<{
9408
9686
  specModeReasoningEffort?: ReasoningEffort | null | undefined;
9409
9687
  }>;
9410
9688
  type UpdateSessionSettingsRequestParams = z.infer<typeof UpdateSessionSettingsRequestParamsSchema>;
9411
- /** Parameters for droid.toggle_mcp_server request. */
9412
9689
  declare const ToggleMcpServerRequestParamsSchema: z.ZodObject<{
9413
9690
  serverName: z.ZodString;
9414
9691
  enabled: z.ZodBoolean;
@@ -9423,7 +9700,6 @@ declare const ToggleMcpServerRequestParamsSchema: z.ZodObject<{
9423
9700
  settingsLevel: SettingsLevel.User;
9424
9701
  }>;
9425
9702
  type ToggleMcpServerRequestParams = z.infer<typeof ToggleMcpServerRequestParamsSchema>;
9426
- /** Parameters for droid.authenticate_mcp_server request. */
9427
9703
  declare const AuthenticateMcpServerRequestParamsSchema: z.ZodObject<{
9428
9704
  serverName: z.ZodString;
9429
9705
  }, "strict", z.ZodTypeAny, {
@@ -9432,7 +9708,6 @@ declare const AuthenticateMcpServerRequestParamsSchema: z.ZodObject<{
9432
9708
  serverName: string;
9433
9709
  }>;
9434
9710
  type AuthenticateMcpServerRequestParams = z.infer<typeof AuthenticateMcpServerRequestParamsSchema>;
9435
- /** Parameters for droid.cancel_mcp_auth request. */
9436
9711
  declare const CancelMcpAuthRequestParamsSchema: z.ZodObject<{
9437
9712
  serverName: z.ZodString;
9438
9713
  }, "strict", z.ZodTypeAny, {
@@ -9441,7 +9716,6 @@ declare const CancelMcpAuthRequestParamsSchema: z.ZodObject<{
9441
9716
  serverName: string;
9442
9717
  }>;
9443
9718
  type CancelMcpAuthRequestParams = z.infer<typeof CancelMcpAuthRequestParamsSchema>;
9444
- /** Parameters for droid.clear_mcp_auth request. */
9445
9719
  declare const ClearMcpAuthRequestParamsSchema: z.ZodObject<{
9446
9720
  serverName: z.ZodString;
9447
9721
  }, "strict", z.ZodTypeAny, {
@@ -9450,7 +9724,6 @@ declare const ClearMcpAuthRequestParamsSchema: z.ZodObject<{
9450
9724
  serverName: string;
9451
9725
  }>;
9452
9726
  type ClearMcpAuthRequestParams = z.infer<typeof ClearMcpAuthRequestParamsSchema>;
9453
- /** Parameters for droid.submit_mcp_auth_code request. */
9454
9727
  declare const SubmitMcpAuthCodeRequestParamsSchema: z.ZodObject<{
9455
9728
  serverName: z.ZodString;
9456
9729
  code: z.ZodString;
@@ -9465,7 +9738,6 @@ declare const SubmitMcpAuthCodeRequestParamsSchema: z.ZodObject<{
9465
9738
  state: string;
9466
9739
  }>;
9467
9740
  type SubmitMcpAuthCodeRequestParams = z.infer<typeof SubmitMcpAuthCodeRequestParamsSchema>;
9468
- /** Parameters for droid.add_mcp_server request. */
9469
9741
  declare const AddMcpServerRequestParamsSchema: z.ZodObject<{
9470
9742
  name: z.ZodString;
9471
9743
  type: z.ZodNativeEnum<typeof McpServerType>;
@@ -9492,7 +9764,6 @@ declare const AddMcpServerRequestParamsSchema: z.ZodObject<{
9492
9764
  env?: Record<string, string> | undefined;
9493
9765
  }>;
9494
9766
  type AddMcpServerRequestParams = z.infer<typeof AddMcpServerRequestParamsSchema>;
9495
- /** Parameters for droid.remove_mcp_server request. */
9496
9767
  declare const RemoveMcpServerRequestParamsSchema: z.ZodObject<{
9497
9768
  serverName: z.ZodString;
9498
9769
  settingsLevel: z.ZodLiteral<SettingsLevel.User>;
@@ -9504,13 +9775,10 @@ declare const RemoveMcpServerRequestParamsSchema: z.ZodObject<{
9504
9775
  settingsLevel: SettingsLevel.User;
9505
9776
  }>;
9506
9777
  type RemoveMcpServerRequestParams = z.infer<typeof RemoveMcpServerRequestParamsSchema>;
9507
- /** Parameters for droid.list_mcp_registry request (empty). */
9508
9778
  declare const ListMcpRegistryRequestParamsSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
9509
9779
  type ListMcpRegistryRequestParams = z.infer<typeof ListMcpRegistryRequestParamsSchema>;
9510
- /** Parameters for droid.list_mcp_tools request (empty). */
9511
9780
  declare const ListMcpToolsRequestParamsSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
9512
9781
  type ListMcpToolsRequestParams = z.infer<typeof ListMcpToolsRequestParamsSchema>;
9513
- /** Tool catalog entry returned by droid.list_tools. */
9514
9782
  declare const ExecToolInfoSchema: z.ZodObject<{
9515
9783
  id: z.ZodString;
9516
9784
  llmId: z.ZodString;
@@ -9537,7 +9805,6 @@ declare const ExecToolInfoSchema: z.ZodObject<{
9537
9805
  currentlyAllowed: z.ZodBoolean;
9538
9806
  }, z.ZodTypeAny, "passthrough">>;
9539
9807
  type ExecToolInfo = z.infer<typeof ExecToolInfoSchema>;
9540
- /** Parameters for droid.list_tools. */
9541
9808
  declare const ListToolsRequestParamsSchema: z.ZodObject<{
9542
9809
  depth: z.ZodOptional<z.ZodNumber>;
9543
9810
  enabledToolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -9570,10 +9837,8 @@ declare const ListToolsRequestParamsSchema: z.ZodObject<{
9570
9837
  depth?: number | undefined;
9571
9838
  }>;
9572
9839
  type ListToolsRequestParams = z.infer<typeof ListToolsRequestParamsSchema>;
9573
- /** Parameters for droid.list_mcp_servers request (empty). */
9574
9840
  declare const ListMcpServersRequestParamsSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
9575
9841
  type ListMcpServersRequestParams = z.infer<typeof ListMcpServersRequestParamsSchema>;
9576
- /** Parameters for droid.toggle_mcp_tool request. */
9577
9842
  declare const ToggleMcpToolRequestParamsSchema: z.ZodObject<{
9578
9843
  serverName: z.ZodString;
9579
9844
  toolName: z.ZodString;
@@ -9588,10 +9853,8 @@ declare const ToggleMcpToolRequestParamsSchema: z.ZodObject<{
9588
9853
  toolName: string;
9589
9854
  }>;
9590
9855
  type ToggleMcpToolRequestParams = z.infer<typeof ToggleMcpToolRequestParamsSchema>;
9591
- /** Parameters for droid.list_skills request (empty). */
9592
9856
  declare const ListSkillsRequestParamsSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
9593
9857
  type ListSkillsRequestParams = z.infer<typeof ListSkillsRequestParamsSchema>;
9594
- /** Parameters for droid.submit_bug_report request. */
9595
9858
  declare const SubmitBugReportRequestParamsSchema: z.ZodObject<{
9596
9859
  userComment: z.ZodString;
9597
9860
  clientLogs: z.ZodOptional<z.ZodString>;
@@ -9603,7 +9866,6 @@ declare const SubmitBugReportRequestParamsSchema: z.ZodObject<{
9603
9866
  clientLogs?: string | undefined;
9604
9867
  }>;
9605
9868
  type SubmitBugReportRequestParams = z.infer<typeof SubmitBugReportRequestParamsSchema>;
9606
- /** File snapshot for rewind operations. */
9607
9869
  declare const RewindFileSnapshotSchema: z.ZodObject<{
9608
9870
  filePath: z.ZodString;
9609
9871
  contentHash: z.ZodString;
@@ -9618,7 +9880,6 @@ declare const RewindFileSnapshotSchema: z.ZodObject<{
9618
9880
  size: z.ZodNumber;
9619
9881
  }, z.ZodTypeAny, "passthrough">>;
9620
9882
  type RewindFileSnapshot = z.infer<typeof RewindFileSnapshotSchema>;
9621
- /** File creation record for rewind operations. */
9622
9883
  declare const RewindFileCreationSchema: z.ZodObject<{
9623
9884
  filePath: z.ZodString;
9624
9885
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -9627,7 +9888,6 @@ declare const RewindFileCreationSchema: z.ZodObject<{
9627
9888
  filePath: z.ZodString;
9628
9889
  }, z.ZodTypeAny, "passthrough">>;
9629
9890
  type RewindFileCreation = z.infer<typeof RewindFileCreationSchema>;
9630
- /** Evicted file record for rewind operations. */
9631
9891
  declare const RewindEvictedFileSchema: z.ZodObject<{
9632
9892
  filePath: z.ZodString;
9633
9893
  reason: z.ZodString;
@@ -9639,7 +9899,6 @@ declare const RewindEvictedFileSchema: z.ZodObject<{
9639
9899
  reason: z.ZodString;
9640
9900
  }, z.ZodTypeAny, "passthrough">>;
9641
9901
  type RewindEvictedFile = z.infer<typeof RewindEvictedFileSchema>;
9642
- /** Parameters for droid.get_rewind_info request. */
9643
9902
  declare const GetRewindInfoRequestParamsSchema: z.ZodObject<{
9644
9903
  messageId: z.ZodString;
9645
9904
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -9648,7 +9907,6 @@ declare const GetRewindInfoRequestParamsSchema: z.ZodObject<{
9648
9907
  messageId: z.ZodString;
9649
9908
  }, z.ZodTypeAny, "passthrough">>;
9650
9909
  type GetRewindInfoRequestParams = z.infer<typeof GetRewindInfoRequestParamsSchema>;
9651
- /** Parameters for droid.execute_rewind request. */
9652
9910
  declare const ExecuteRewindRequestParamsSchema: z.ZodObject<{
9653
9911
  messageId: z.ZodString;
9654
9912
  filesToRestore: z.ZodArray<z.ZodObject<{
@@ -9720,7 +9978,6 @@ declare const ExecuteRewindRequestParamsSchema: z.ZodObject<{
9720
9978
  forkTitle: z.ZodString;
9721
9979
  }, z.ZodTypeAny, "passthrough">>;
9722
9980
  type ExecuteRewindRequestParams = z.infer<typeof ExecuteRewindRequestParamsSchema>;
9723
- /** Parameters for droid.compact_session request. */
9724
9981
  declare const CompactSessionRequestParamsSchema: z.ZodObject<{
9725
9982
  customInstructions: z.ZodOptional<z.ZodString>;
9726
9983
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -9729,7 +9986,6 @@ declare const CompactSessionRequestParamsSchema: z.ZodObject<{
9729
9986
  customInstructions: z.ZodOptional<z.ZodString>;
9730
9987
  }, z.ZodTypeAny, "passthrough">>;
9731
9988
  type CompactSessionRequestParams = z.infer<typeof CompactSessionRequestParamsSchema>;
9732
- /** Parameters for droid.rename_session request. */
9733
9989
  declare const RenameSessionRequestParamsSchema: z.ZodObject<{
9734
9990
  title: z.ZodString;
9735
9991
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -9738,10 +9994,8 @@ declare const RenameSessionRequestParamsSchema: z.ZodObject<{
9738
9994
  title: z.ZodString;
9739
9995
  }, z.ZodTypeAny, "passthrough">>;
9740
9996
  type RenameSessionRequestParams = z.infer<typeof RenameSessionRequestParamsSchema>;
9741
- /** Parameters for droid.fork_session request (empty). */
9742
9997
  declare const ForkSessionRequestParamsSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
9743
9998
  type ForkSessionRequestParams = z.infer<typeof ForkSessionRequestParamsSchema>;
9744
- /** Parameters for droid.get_context_stats request (empty). */
9745
9999
  declare const GetContextStatsRequestParamsSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
9746
10000
  type GetContextStatsRequestParams = z.infer<typeof GetContextStatsRequestParamsSchema>;
9747
10001
  declare const InitializeSessionRequestSchema: z.ZodObject<{
@@ -10528,6 +10782,61 @@ declare const InterruptSessionRequestSchema: z.ZodObject<{
10528
10782
  } | undefined;
10529
10783
  }>;
10530
10784
  type InterruptSessionRequest = z.infer<typeof InterruptSessionRequestSchema>;
10785
+ declare const CloseSessionRequestSchema: z.ZodObject<{
10786
+ jsonrpc: z.ZodLiteral<"2.0">;
10787
+ factoryApiVersion: z.ZodLiteral<"1.0.0">;
10788
+ factoryProtocolVersion: z.ZodOptional<z.ZodString>;
10789
+ _meta: z.ZodOptional<z.ZodObject<{
10790
+ traceparent: z.ZodOptional<z.ZodString>;
10791
+ tracestate: z.ZodOptional<z.ZodString>;
10792
+ }, "strip", z.ZodTypeAny, {
10793
+ traceparent?: string | undefined;
10794
+ tracestate?: string | undefined;
10795
+ }, {
10796
+ traceparent?: string | undefined;
10797
+ tracestate?: string | undefined;
10798
+ }>>;
10799
+ type: z.ZodLiteral<"request">;
10800
+ id: z.ZodString;
10801
+ } & {
10802
+ method: z.ZodLiteral<DroidServerMethod.CLOSE_SESSION>;
10803
+ params: z.ZodObject<{
10804
+ reason: z.ZodOptional<z.ZodEnum<["clear", "logout", "prompt_input_exit", "other"]>>;
10805
+ }, "strict", z.ZodTypeAny, {
10806
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
10807
+ }, {
10808
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
10809
+ }>;
10810
+ }, "strip", z.ZodTypeAny, {
10811
+ params: {
10812
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
10813
+ };
10814
+ type: "request";
10815
+ jsonrpc: "2.0";
10816
+ factoryApiVersion: "1.0.0";
10817
+ id: string;
10818
+ method: DroidServerMethod.CLOSE_SESSION;
10819
+ factoryProtocolVersion?: string | undefined;
10820
+ _meta?: {
10821
+ traceparent?: string | undefined;
10822
+ tracestate?: string | undefined;
10823
+ } | undefined;
10824
+ }, {
10825
+ params: {
10826
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
10827
+ };
10828
+ type: "request";
10829
+ jsonrpc: "2.0";
10830
+ factoryApiVersion: "1.0.0";
10831
+ id: string;
10832
+ method: DroidServerMethod.CLOSE_SESSION;
10833
+ factoryProtocolVersion?: string | undefined;
10834
+ _meta?: {
10835
+ traceparent?: string | undefined;
10836
+ tracestate?: string | undefined;
10837
+ } | undefined;
10838
+ }>;
10839
+ type CloseSessionRequest = z.infer<typeof CloseSessionRequestSchema>;
10531
10840
  declare const KillWorkerSessionRequestSchema: z.ZodObject<{
10532
10841
  jsonrpc: z.ZodLiteral<"2.0">;
10533
10842
  factoryApiVersion: z.ZodLiteral<"1.0.0">;
@@ -12683,6 +12992,59 @@ declare const ClientRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObjec
12683
12992
  }>>;
12684
12993
  type: z.ZodLiteral<"request">;
12685
12994
  id: z.ZodString;
12995
+ } & {
12996
+ method: z.ZodLiteral<DroidServerMethod.CLOSE_SESSION>;
12997
+ params: z.ZodObject<{
12998
+ reason: z.ZodOptional<z.ZodEnum<["clear", "logout", "prompt_input_exit", "other"]>>;
12999
+ }, "strict", z.ZodTypeAny, {
13000
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
13001
+ }, {
13002
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
13003
+ }>;
13004
+ }, "strip", z.ZodTypeAny, {
13005
+ params: {
13006
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
13007
+ };
13008
+ type: "request";
13009
+ jsonrpc: "2.0";
13010
+ factoryApiVersion: "1.0.0";
13011
+ id: string;
13012
+ method: DroidServerMethod.CLOSE_SESSION;
13013
+ factoryProtocolVersion?: string | undefined;
13014
+ _meta?: {
13015
+ traceparent?: string | undefined;
13016
+ tracestate?: string | undefined;
13017
+ } | undefined;
13018
+ }, {
13019
+ params: {
13020
+ reason?: "clear" | "logout" | "prompt_input_exit" | "other" | undefined;
13021
+ };
13022
+ type: "request";
13023
+ jsonrpc: "2.0";
13024
+ factoryApiVersion: "1.0.0";
13025
+ id: string;
13026
+ method: DroidServerMethod.CLOSE_SESSION;
13027
+ factoryProtocolVersion?: string | undefined;
13028
+ _meta?: {
13029
+ traceparent?: string | undefined;
13030
+ tracestate?: string | undefined;
13031
+ } | undefined;
13032
+ }>, z.ZodObject<{
13033
+ jsonrpc: z.ZodLiteral<"2.0">;
13034
+ factoryApiVersion: z.ZodLiteral<"1.0.0">;
13035
+ factoryProtocolVersion: z.ZodOptional<z.ZodString>;
13036
+ _meta: z.ZodOptional<z.ZodObject<{
13037
+ traceparent: z.ZodOptional<z.ZodString>;
13038
+ tracestate: z.ZodOptional<z.ZodString>;
13039
+ }, "strip", z.ZodTypeAny, {
13040
+ traceparent?: string | undefined;
13041
+ tracestate?: string | undefined;
13042
+ }, {
13043
+ traceparent?: string | undefined;
13044
+ tracestate?: string | undefined;
13045
+ }>>;
13046
+ type: z.ZodLiteral<"request">;
13047
+ id: z.ZodString;
12686
13048
  } & {
12687
13049
  method: z.ZodLiteral<DroidServerMethod.INTERRUPT_SESSION>;
12688
13050
  params: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
@@ -14073,7 +14435,6 @@ declare const ClientRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObjec
14073
14435
  } | undefined;
14074
14436
  }>]>;
14075
14437
  type ClientRequest = z.infer<typeof ClientRequestSchema>;
14076
- /** Mission state snapshot (for orchestrator sessions). */
14077
14438
  declare const MissionSnapshotSchema: z.ZodObject<{
14078
14439
  state: z.ZodNativeEnum<typeof MissionState>;
14079
14440
  features: z.ZodArray<z.ZodObject<{
@@ -22128,7 +22489,6 @@ declare const MissionSnapshotSchema: z.ZodObject<{
22128
22489
  }, z.ZodTypeAny, "passthrough">>>>;
22129
22490
  }, z.ZodTypeAny, "passthrough">>;
22130
22491
  type MissionSnapshot = z.infer<typeof MissionSnapshotSchema>;
22131
- /** Result for droid.initialize_session response. */
22132
22492
  declare const InitializeSessionResultSchema: z.ZodObject<{
22133
22493
  sessionId: z.ZodString;
22134
22494
  session: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
@@ -22638,7 +22998,6 @@ declare const InitializeSessionResultSchema: z.ZodObject<{
22638
22998
  }, z.ZodTypeAny, "passthrough">>, "many">>;
22639
22999
  }, z.ZodTypeAny, "passthrough">>;
22640
23000
  type InitializeSessionResult = z.infer<typeof InitializeSessionResultSchema>;
22641
- /** Result for droid.load_session response. */
22642
23001
  declare const LoadSessionResultSchema: z.ZodObject<{
22643
23002
  session: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
22644
23003
  mcpServers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -47385,19 +47744,16 @@ declare const LoadSessionResultSchema: z.ZodObject<{
47385
47744
  decompSessionType: z.ZodOptional<z.ZodNativeEnum<typeof DecompSessionType>>;
47386
47745
  }, z.ZodTypeAny, "passthrough">>;
47387
47746
  type LoadSessionResult = z.infer<typeof LoadSessionResultSchema>;
47388
- /** Result for droid.add_user_message response (empty). */
47389
47747
  declare const AddUserMessageResultSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
47390
47748
  type AddUserMessageResult = z.infer<typeof AddUserMessageResultSchema>;
47391
- /** Result for droid.interrupt_session response (empty). */
47392
47749
  declare const InterruptSessionResultSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
47393
47750
  type InterruptSessionResult = z.infer<typeof InterruptSessionResultSchema>;
47394
- /** Result for droid.kill_worker_session response (empty). */
47751
+ declare const CloseSessionResultSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
47752
+ type CloseSessionResult = z.infer<typeof CloseSessionResultSchema>;
47395
47753
  declare const KillWorkerSessionResultSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
47396
47754
  type KillWorkerSessionResult = z.infer<typeof KillWorkerSessionResultSchema>;
47397
- /** Result for droid.update_session_settings response (empty). */
47398
47755
  declare const UpdateSessionSettingsResultSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
47399
47756
  type UpdateSessionSettingsResult = z.infer<typeof UpdateSessionSettingsResultSchema>;
47400
- /** Result for droid.toggle_mcp_server response. */
47401
47757
  declare const ToggleMcpServerResultSchema: z.ZodObject<{
47402
47758
  success: z.ZodBoolean;
47403
47759
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -47406,7 +47762,6 @@ declare const ToggleMcpServerResultSchema: z.ZodObject<{
47406
47762
  success: z.ZodBoolean;
47407
47763
  }, z.ZodTypeAny, "passthrough">>;
47408
47764
  type ToggleMcpServerResult = z.infer<typeof ToggleMcpServerResultSchema>;
47409
- /** Result for droid.authenticate_mcp_server response. */
47410
47765
  declare const AuthenticateMcpServerResultSchema: z.ZodObject<{
47411
47766
  success: z.ZodBoolean;
47412
47767
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -47415,7 +47770,6 @@ declare const AuthenticateMcpServerResultSchema: z.ZodObject<{
47415
47770
  success: z.ZodBoolean;
47416
47771
  }, z.ZodTypeAny, "passthrough">>;
47417
47772
  type AuthenticateMcpServerResult = z.infer<typeof AuthenticateMcpServerResultSchema>;
47418
- /** Result for droid.cancel_mcp_auth response. */
47419
47773
  declare const CancelMcpAuthResultSchema: z.ZodObject<{
47420
47774
  success: z.ZodBoolean;
47421
47775
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -47424,7 +47778,6 @@ declare const CancelMcpAuthResultSchema: z.ZodObject<{
47424
47778
  success: z.ZodBoolean;
47425
47779
  }, z.ZodTypeAny, "passthrough">>;
47426
47780
  type CancelMcpAuthResult = z.infer<typeof CancelMcpAuthResultSchema>;
47427
- /** Result for droid.clear_mcp_auth response. */
47428
47781
  declare const ClearMcpAuthResultSchema: z.ZodObject<{
47429
47782
  success: z.ZodBoolean;
47430
47783
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -47433,7 +47786,6 @@ declare const ClearMcpAuthResultSchema: z.ZodObject<{
47433
47786
  success: z.ZodBoolean;
47434
47787
  }, z.ZodTypeAny, "passthrough">>;
47435
47788
  type ClearMcpAuthResult = z.infer<typeof ClearMcpAuthResultSchema>;
47436
- /** Result for droid.submit_mcp_auth_code response. */
47437
47789
  declare const SubmitMcpAuthCodeResultSchema: z.ZodObject<{
47438
47790
  success: z.ZodBoolean;
47439
47791
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -47442,7 +47794,6 @@ declare const SubmitMcpAuthCodeResultSchema: z.ZodObject<{
47442
47794
  success: z.ZodBoolean;
47443
47795
  }, z.ZodTypeAny, "passthrough">>;
47444
47796
  type SubmitMcpAuthCodeResult = z.infer<typeof SubmitMcpAuthCodeResultSchema>;
47445
- /** Result for droid.add_mcp_server response. */
47446
47797
  declare const AddMcpServerResultSchema: z.ZodObject<{
47447
47798
  success: z.ZodBoolean;
47448
47799
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -47451,7 +47802,6 @@ declare const AddMcpServerResultSchema: z.ZodObject<{
47451
47802
  success: z.ZodBoolean;
47452
47803
  }, z.ZodTypeAny, "passthrough">>;
47453
47804
  type AddMcpServerResult = z.infer<typeof AddMcpServerResultSchema>;
47454
- /** Result for droid.remove_mcp_server response. */
47455
47805
  declare const RemoveMcpServerResultSchema: z.ZodObject<{
47456
47806
  success: z.ZodBoolean;
47457
47807
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -47460,7 +47810,6 @@ declare const RemoveMcpServerResultSchema: z.ZodObject<{
47460
47810
  success: z.ZodBoolean;
47461
47811
  }, z.ZodTypeAny, "passthrough">>;
47462
47812
  type RemoveMcpServerResult = z.infer<typeof RemoveMcpServerResultSchema>;
47463
- /** Result for droid.list_mcp_registry response. */
47464
47813
  declare const ListMcpRegistryResultSchema: z.ZodObject<{
47465
47814
  servers: z.ZodArray<z.ZodObject<{
47466
47815
  name: z.ZodString;
@@ -47550,7 +47899,6 @@ declare const ListMcpRegistryResultSchema: z.ZodObject<{
47550
47899
  }, z.ZodTypeAny, "passthrough">>, "many">;
47551
47900
  }, z.ZodTypeAny, "passthrough">>;
47552
47901
  type ListMcpRegistryResult = z.infer<typeof ListMcpRegistryResultSchema>;
47553
- /** Result for droid.list_mcp_tools response. */
47554
47902
  declare const ListMcpToolsResultSchema: z.ZodObject<{
47555
47903
  tools: z.ZodArray<z.ZodObject<{
47556
47904
  serverName: z.ZodString;
@@ -47730,7 +48078,6 @@ declare const ListMcpToolsResultSchema: z.ZodObject<{
47730
48078
  }, z.ZodTypeAny, "passthrough">>, "many">;
47731
48079
  }, z.ZodTypeAny, "passthrough">>;
47732
48080
  type ListMcpToolsResult = z.infer<typeof ListMcpToolsResultSchema>;
47733
- /** Result for droid.list_tools response. */
47734
48081
  declare const ListToolsResultSchema: z.ZodObject<{
47735
48082
  tools: z.ZodArray<z.ZodObject<{
47736
48083
  id: z.ZodString;
@@ -47811,7 +48158,6 @@ declare const ListToolsResultSchema: z.ZodObject<{
47811
48158
  }, z.ZodTypeAny, "passthrough">>, "many">;
47812
48159
  }, z.ZodTypeAny, "passthrough">>;
47813
48160
  type ListToolsResult = z.infer<typeof ListToolsResultSchema>;
47814
- /** Result for droid.list_mcp_servers response. */
47815
48161
  declare const ListMcpServersResultSchema: z.ZodObject<{
47816
48162
  servers: z.ZodArray<z.ZodObject<{
47817
48163
  name: z.ZodString;
@@ -47958,7 +48304,6 @@ declare const ListMcpServersResultSchema: z.ZodObject<{
47958
48304
  }, z.ZodTypeAny, "passthrough">>;
47959
48305
  }, z.ZodTypeAny, "passthrough">>;
47960
48306
  type ListMcpServersResult = z.infer<typeof ListMcpServersResultSchema>;
47961
- /** Result for droid.toggle_mcp_tool response. */
47962
48307
  declare const ToggleMcpToolResultSchema: z.ZodObject<{
47963
48308
  success: z.ZodBoolean;
47964
48309
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -47967,7 +48312,6 @@ declare const ToggleMcpToolResultSchema: z.ZodObject<{
47967
48312
  success: z.ZodBoolean;
47968
48313
  }, z.ZodTypeAny, "passthrough">>;
47969
48314
  type ToggleMcpToolResult = z.infer<typeof ToggleMcpToolResultSchema>;
47970
- /** Result for droid.list_skills response. */
47971
48315
  declare const ListSkillsResultSchema: z.ZodObject<{
47972
48316
  skills: z.ZodArray<z.ZodObject<{
47973
48317
  name: z.ZodString;
@@ -48174,7 +48518,6 @@ declare const ListSkillsResultSchema: z.ZodObject<{
48174
48518
  }, z.ZodTypeAny, "passthrough">>, "many">;
48175
48519
  }, z.ZodTypeAny, "passthrough">>;
48176
48520
  type ListSkillsResult = z.infer<typeof ListSkillsResultSchema>;
48177
- /** Result for droid.submit_bug_report response. */
48178
48521
  declare const SubmitBugReportResultSchema: z.ZodObject<{
48179
48522
  bugReportId: z.ZodString;
48180
48523
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -48183,7 +48526,6 @@ declare const SubmitBugReportResultSchema: z.ZodObject<{
48183
48526
  bugReportId: z.ZodString;
48184
48527
  }, z.ZodTypeAny, "passthrough">>;
48185
48528
  type SubmitBugReportResult = z.infer<typeof SubmitBugReportResultSchema>;
48186
- /** Result for droid.get_rewind_info response. */
48187
48529
  declare const GetRewindInfoResultSchema: z.ZodObject<{
48188
48530
  availableFiles: z.ZodArray<z.ZodObject<{
48189
48531
  filePath: z.ZodString;
@@ -48279,7 +48621,6 @@ declare const GetRewindInfoResultSchema: z.ZodObject<{
48279
48621
  }, z.ZodTypeAny, "passthrough">>, "many">;
48280
48622
  }, z.ZodTypeAny, "passthrough">>;
48281
48623
  type GetRewindInfoResult = z.infer<typeof GetRewindInfoResultSchema>;
48282
- /** Result for droid.execute_rewind response. */
48283
48624
  declare const ExecuteRewindResultSchema: z.ZodObject<{
48284
48625
  newSessionId: z.ZodString;
48285
48626
  restoredCount: z.ZodNumber;
@@ -48300,7 +48641,6 @@ declare const ExecuteRewindResultSchema: z.ZodObject<{
48300
48641
  failedDeleteCount: z.ZodNumber;
48301
48642
  }, z.ZodTypeAny, "passthrough">>;
48302
48643
  type ExecuteRewindResult = z.infer<typeof ExecuteRewindResultSchema>;
48303
- /** Result for droid.compact_session response. */
48304
48644
  declare const CompactSessionResultSchema: z.ZodObject<{
48305
48645
  newSessionId: z.ZodString;
48306
48646
  removedCount: z.ZodNumber;
@@ -48312,7 +48652,6 @@ declare const CompactSessionResultSchema: z.ZodObject<{
48312
48652
  removedCount: z.ZodNumber;
48313
48653
  }, z.ZodTypeAny, "passthrough">>;
48314
48654
  type CompactSessionResult = z.infer<typeof CompactSessionResultSchema>;
48315
- /** Result for droid.fork_session response. */
48316
48655
  declare const ForkSessionResultSchema: z.ZodObject<{
48317
48656
  newSessionId: z.ZodString;
48318
48657
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -48321,7 +48660,6 @@ declare const ForkSessionResultSchema: z.ZodObject<{
48321
48660
  newSessionId: z.ZodString;
48322
48661
  }, z.ZodTypeAny, "passthrough">>;
48323
48662
  type ForkSessionResult = z.infer<typeof ForkSessionResultSchema>;
48324
- /** Result for droid.get_context_stats response. */
48325
48663
  declare const GetContextStatsResultSchema: z.ZodObject<{
48326
48664
  used: z.ZodNumber;
48327
48665
  remaining: z.ZodNumber;
@@ -48342,7 +48680,6 @@ declare const GetContextStatsResultSchema: z.ZodObject<{
48342
48680
  updatedAt: z.ZodString;
48343
48681
  }, z.ZodTypeAny, "passthrough">>;
48344
48682
  type GetContextStatsResult = z.infer<typeof GetContextStatsResultSchema>;
48345
- /** Result for droid.rename_session response. */
48346
48683
  declare const RenameSessionResultSchema: z.ZodObject<{
48347
48684
  success: z.ZodBoolean;
48348
48685
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -49299,7 +49636,7 @@ declare const InterruptSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
49299
49636
  } | undefined;
49300
49637
  }>]>;
49301
49638
  type InterruptSessionResponse = z.infer<typeof InterruptSessionResponseSchema>;
49302
- declare const KillWorkerSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
49639
+ declare const CloseSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
49303
49640
  jsonrpc: z.ZodLiteral<"2.0">;
49304
49641
  factoryApiVersion: z.ZodLiteral<"1.0.0">;
49305
49642
  factoryProtocolVersion: z.ZodOptional<z.ZodString>;
@@ -49404,8 +49741,8 @@ declare const KillWorkerSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
49404
49741
  tracestate?: string | undefined;
49405
49742
  } | undefined;
49406
49743
  }>]>;
49407
- type KillWorkerSessionResponse = z.infer<typeof KillWorkerSessionResponseSchema>;
49408
- declare const UpdateSessionSettingsResponseSchema: z.ZodUnion<[z.ZodObject<{
49744
+ type CloseSessionResponse = z.infer<typeof CloseSessionResponseSchema>;
49745
+ declare const KillWorkerSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
49409
49746
  jsonrpc: z.ZodLiteral<"2.0">;
49410
49747
  factoryApiVersion: z.ZodLiteral<"1.0.0">;
49411
49748
  factoryProtocolVersion: z.ZodOptional<z.ZodString>;
@@ -49510,8 +49847,8 @@ declare const UpdateSessionSettingsResponseSchema: z.ZodUnion<[z.ZodObject<{
49510
49847
  tracestate?: string | undefined;
49511
49848
  } | undefined;
49512
49849
  }>]>;
49513
- type UpdateSessionSettingsResponse = z.infer<typeof UpdateSessionSettingsResponseSchema>;
49514
- declare const ToggleMcpServerResponseSchema: z.ZodUnion<[z.ZodObject<{
49850
+ type KillWorkerSessionResponse = z.infer<typeof KillWorkerSessionResponseSchema>;
49851
+ declare const UpdateSessionSettingsResponseSchema: z.ZodUnion<[z.ZodObject<{
49515
49852
  jsonrpc: z.ZodLiteral<"2.0">;
49516
49853
  factoryApiVersion: z.ZodLiteral<"1.0.0">;
49517
49854
  factoryProtocolVersion: z.ZodOptional<z.ZodString>;
@@ -49528,21 +49865,13 @@ declare const ToggleMcpServerResponseSchema: z.ZodUnion<[z.ZodObject<{
49528
49865
  type: z.ZodLiteral<"response">;
49529
49866
  id: z.ZodString;
49530
49867
  } & {
49531
- result: z.ZodObject<{
49532
- success: z.ZodBoolean;
49533
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
49534
- success: z.ZodBoolean;
49535
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
49536
- success: z.ZodBoolean;
49537
- }, z.ZodTypeAny, "passthrough">>;
49868
+ result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
49538
49869
  }, "strip", z.ZodTypeAny, {
49539
49870
  type: "response";
49540
49871
  jsonrpc: "2.0";
49541
49872
  factoryApiVersion: "1.0.0";
49542
49873
  id: string;
49543
- result: {
49544
- success: boolean;
49545
- } & {
49874
+ result: {} & {
49546
49875
  [k: string]: unknown;
49547
49876
  };
49548
49877
  factoryProtocolVersion?: string | undefined;
@@ -49555,9 +49884,123 @@ declare const ToggleMcpServerResponseSchema: z.ZodUnion<[z.ZodObject<{
49555
49884
  jsonrpc: "2.0";
49556
49885
  factoryApiVersion: "1.0.0";
49557
49886
  id: string;
49558
- result: {
49559
- success: boolean;
49560
- } & {
49887
+ result: {} & {
49888
+ [k: string]: unknown;
49889
+ };
49890
+ factoryProtocolVersion?: string | undefined;
49891
+ _meta?: {
49892
+ traceparent?: string | undefined;
49893
+ tracestate?: string | undefined;
49894
+ } | undefined;
49895
+ }>, z.ZodObject<{
49896
+ jsonrpc: z.ZodLiteral<"2.0">;
49897
+ factoryApiVersion: z.ZodLiteral<"1.0.0">;
49898
+ factoryProtocolVersion: z.ZodOptional<z.ZodString>;
49899
+ _meta: z.ZodOptional<z.ZodObject<{
49900
+ traceparent: z.ZodOptional<z.ZodString>;
49901
+ tracestate: z.ZodOptional<z.ZodString>;
49902
+ }, "strip", z.ZodTypeAny, {
49903
+ traceparent?: string | undefined;
49904
+ tracestate?: string | undefined;
49905
+ }, {
49906
+ traceparent?: string | undefined;
49907
+ tracestate?: string | undefined;
49908
+ }>>;
49909
+ } & {
49910
+ type: z.ZodLiteral<"response">;
49911
+ id: z.ZodNullable<z.ZodString>;
49912
+ error: z.ZodObject<{
49913
+ code: z.ZodNativeEnum<typeof JsonRpcErrorCode>;
49914
+ message: z.ZodString;
49915
+ data: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
49916
+ }, "strip", z.ZodTypeAny, {
49917
+ code: JsonRpcErrorCode;
49918
+ message: string;
49919
+ data?: JsonValue | undefined;
49920
+ }, {
49921
+ code: JsonRpcErrorCode;
49922
+ message: string;
49923
+ data?: JsonValue | undefined;
49924
+ }>;
49925
+ }, "strip", z.ZodTypeAny, {
49926
+ error: {
49927
+ code: JsonRpcErrorCode;
49928
+ message: string;
49929
+ data?: JsonValue | undefined;
49930
+ };
49931
+ type: "response";
49932
+ jsonrpc: "2.0";
49933
+ factoryApiVersion: "1.0.0";
49934
+ id: string | null;
49935
+ factoryProtocolVersion?: string | undefined;
49936
+ _meta?: {
49937
+ traceparent?: string | undefined;
49938
+ tracestate?: string | undefined;
49939
+ } | undefined;
49940
+ }, {
49941
+ error: {
49942
+ code: JsonRpcErrorCode;
49943
+ message: string;
49944
+ data?: JsonValue | undefined;
49945
+ };
49946
+ type: "response";
49947
+ jsonrpc: "2.0";
49948
+ factoryApiVersion: "1.0.0";
49949
+ id: string | null;
49950
+ factoryProtocolVersion?: string | undefined;
49951
+ _meta?: {
49952
+ traceparent?: string | undefined;
49953
+ tracestate?: string | undefined;
49954
+ } | undefined;
49955
+ }>]>;
49956
+ type UpdateSessionSettingsResponse = z.infer<typeof UpdateSessionSettingsResponseSchema>;
49957
+ declare const ToggleMcpServerResponseSchema: z.ZodUnion<[z.ZodObject<{
49958
+ jsonrpc: z.ZodLiteral<"2.0">;
49959
+ factoryApiVersion: z.ZodLiteral<"1.0.0">;
49960
+ factoryProtocolVersion: z.ZodOptional<z.ZodString>;
49961
+ _meta: z.ZodOptional<z.ZodObject<{
49962
+ traceparent: z.ZodOptional<z.ZodString>;
49963
+ tracestate: z.ZodOptional<z.ZodString>;
49964
+ }, "strip", z.ZodTypeAny, {
49965
+ traceparent?: string | undefined;
49966
+ tracestate?: string | undefined;
49967
+ }, {
49968
+ traceparent?: string | undefined;
49969
+ tracestate?: string | undefined;
49970
+ }>>;
49971
+ type: z.ZodLiteral<"response">;
49972
+ id: z.ZodString;
49973
+ } & {
49974
+ result: z.ZodObject<{
49975
+ success: z.ZodBoolean;
49976
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
49977
+ success: z.ZodBoolean;
49978
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
49979
+ success: z.ZodBoolean;
49980
+ }, z.ZodTypeAny, "passthrough">>;
49981
+ }, "strip", z.ZodTypeAny, {
49982
+ type: "response";
49983
+ jsonrpc: "2.0";
49984
+ factoryApiVersion: "1.0.0";
49985
+ id: string;
49986
+ result: {
49987
+ success: boolean;
49988
+ } & {
49989
+ [k: string]: unknown;
49990
+ };
49991
+ factoryProtocolVersion?: string | undefined;
49992
+ _meta?: {
49993
+ traceparent?: string | undefined;
49994
+ tracestate?: string | undefined;
49995
+ } | undefined;
49996
+ }, {
49997
+ type: "response";
49998
+ jsonrpc: "2.0";
49999
+ factoryApiVersion: "1.0.0";
50000
+ id: string;
50001
+ result: {
50002
+ success: boolean;
50003
+ } & {
49561
50004
  [k: string]: unknown;
49562
50005
  };
49563
50006
  factoryProtocolVersion?: string | undefined;
@@ -52818,7 +53261,6 @@ declare const ToolUseSchema: z.ZodObject<{
52818
53261
  name: z.ZodString;
52819
53262
  thoughtSignature: z.ZodOptional<z.ZodString>;
52820
53263
  }, z.ZodTypeAny, "passthrough">>;
52821
- /** Error detail object within an ErrorNotification. */
52822
53264
  declare const ErrorDetailSchema: z.ZodObject<{
52823
53265
  name: z.ZodString;
52824
53266
  message: z.ZodString;
@@ -52830,7 +53272,6 @@ declare const ErrorDetailSchema: z.ZodObject<{
52830
53272
  message: z.ZodString;
52831
53273
  }, z.ZodTypeAny, "passthrough">>;
52832
53274
  type ErrorDetail = z.infer<typeof ErrorDetailSchema>;
52833
- /** Streaming update from subagent tool calls. */
52834
53275
  declare const ToolProgressUpdateSchema: z.ZodObject<{
52835
53276
  type: z.ZodEnum<["tool_call", "tool_result", "error", "status", "message"]>;
52836
53277
  toolName: z.ZodOptional<z.ZodString>;
@@ -52866,7 +53307,6 @@ declare const ToolProgressUpdateSchema: z.ZodObject<{
52866
53307
  subagentSessionId: z.ZodOptional<z.ZodString>;
52867
53308
  }, z.ZodTypeAny, "passthrough">>;
52868
53309
  type ToolProgressUpdate = z.infer<typeof ToolProgressUpdateSchema>;
52869
- /** Settings payload within SettingsUpdatedNotification. */
52870
53310
  declare const SettingsUpdatedPayloadSchema: z.ZodObject<{
52871
53311
  enabledToolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52872
53312
  disabledToolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -52899,7 +53339,6 @@ declare const SettingsUpdatedPayloadSchema: z.ZodObject<{
52899
53339
  specModeReasoningEffort: z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>;
52900
53340
  }, z.ZodTypeAny, "passthrough">>;
52901
53341
  type SettingsUpdatedPayload = z.infer<typeof SettingsUpdatedPayloadSchema>;
52902
- /** Tool result notification. */
52903
53342
  declare const ToolResultNotificationSchema: z.ZodObject<{
52904
53343
  type: z.ZodLiteral<SessionNotificationType.TOOL_RESULT>;
52905
53344
  messageId: z.ZodString;
@@ -52923,7 +53362,6 @@ declare const ToolResultNotificationSchema: z.ZodObject<{
52923
53362
  id: z.ZodOptional<z.ZodString>;
52924
53363
  }, z.ZodTypeAny, "passthrough">>;
52925
53364
  type ToolResultNotification = z.infer<typeof ToolResultNotificationSchema>;
52926
- /** Tool progress update notification. */
52927
53365
  declare const ToolProgressUpdateNotificationSchema: z.ZodObject<{
52928
53366
  type: z.ZodLiteral<SessionNotificationType.TOOL_PROGRESS_UPDATE>;
52929
53367
  toolUseId: z.ZodString;
@@ -53040,7 +53478,6 @@ declare const ToolProgressUpdateNotificationSchema: z.ZodObject<{
53040
53478
  }, z.ZodTypeAny, "passthrough">>;
53041
53479
  }, z.ZodTypeAny, "passthrough">>;
53042
53480
  type ToolProgressUpdateNotification = z.infer<typeof ToolProgressUpdateNotificationSchema>;
53043
- /** Create message notification. */
53044
53481
  declare const CreateMessageNotificationSchema: z.ZodObject<{
53045
53482
  type: z.ZodLiteral<SessionNotificationType.CREATE_MESSAGE>;
53046
53483
  message: z.ZodObject<{
@@ -54381,7 +54818,6 @@ declare const CreateMessageNotificationSchema: z.ZodObject<{
54381
54818
  requestId: z.ZodOptional<z.ZodString>;
54382
54819
  }, z.ZodTypeAny, "passthrough">>;
54383
54820
  type CreateMessageNotification = z.infer<typeof CreateMessageNotificationSchema>;
54384
- /** Error notification. */
54385
54821
  declare const ErrorNotificationSchema: z.ZodObject<{
54386
54822
  type: z.ZodLiteral<SessionNotificationType.ERROR>;
54387
54823
  message: z.ZodString;
@@ -54429,7 +54865,6 @@ declare const ErrorNotificationSchema: z.ZodObject<{
54429
54865
  }, z.ZodTypeAny, "passthrough">>>;
54430
54866
  }, z.ZodTypeAny, "passthrough">>;
54431
54867
  type ErrorNotification = z.infer<typeof ErrorNotificationSchema>;
54432
- /** Droid working state changed notification. */
54433
54868
  declare const DroidWorkingStateChangedNotificationSchema: z.ZodObject<{
54434
54869
  type: z.ZodLiteral<SessionNotificationType.DROID_WORKING_STATE_CHANGED>;
54435
54870
  newState: z.ZodNativeEnum<typeof DroidWorkingState>;
@@ -54441,7 +54876,6 @@ declare const DroidWorkingStateChangedNotificationSchema: z.ZodObject<{
54441
54876
  newState: z.ZodNativeEnum<typeof DroidWorkingState>;
54442
54877
  }, z.ZodTypeAny, "passthrough">>;
54443
54878
  type DroidWorkingStateChangedNotification = z.infer<typeof DroidWorkingStateChangedNotificationSchema>;
54444
- /** Permission resolved notification. */
54445
54879
  declare const PermissionResolvedNotificationSchema: z.ZodObject<{
54446
54880
  type: z.ZodLiteral<SessionNotificationType.PERMISSION_RESOLVED>;
54447
54881
  requestId: z.ZodString;
@@ -54459,7 +54893,6 @@ declare const PermissionResolvedNotificationSchema: z.ZodObject<{
54459
54893
  selectedOption: z.ZodNativeEnum<typeof ToolConfirmationOutcome>;
54460
54894
  }, z.ZodTypeAny, "passthrough">>;
54461
54895
  type PermissionResolvedNotification = z.infer<typeof PermissionResolvedNotificationSchema>;
54462
- /** Settings updated notification. */
54463
54896
  declare const SettingsUpdatedNotificationSchema: z.ZodObject<{
54464
54897
  type: z.ZodLiteral<SessionNotificationType.SETTINGS_UPDATED>;
54465
54898
  settings: z.ZodObject<{
@@ -54561,7 +54994,6 @@ declare const SettingsUpdatedNotificationSchema: z.ZodObject<{
54561
54994
  }, z.ZodTypeAny, "passthrough">>;
54562
54995
  }, z.ZodTypeAny, "passthrough">>;
54563
54996
  type SettingsUpdatedNotification = z.infer<typeof SettingsUpdatedNotificationSchema>;
54564
- /** Session title updated notification. */
54565
54997
  declare const SessionTitleUpdatedNotificationSchema: z.ZodObject<{
54566
54998
  type: z.ZodLiteral<SessionNotificationType.SESSION_TITLE_UPDATED>;
54567
54999
  title: z.ZodString;
@@ -54573,7 +55005,6 @@ declare const SessionTitleUpdatedNotificationSchema: z.ZodObject<{
54573
55005
  title: z.ZodString;
54574
55006
  }, z.ZodTypeAny, "passthrough">>;
54575
55007
  type SessionTitleUpdatedNotification = z.infer<typeof SessionTitleUpdatedNotificationSchema>;
54576
- /** MCP status changed notification. */
54577
55008
  declare const McpStatusChangedNotificationSchema: z.ZodObject<{
54578
55009
  type: z.ZodLiteral<SessionNotificationType.MCP_STATUS_CHANGED>;
54579
55010
  servers: z.ZodArray<z.ZodObject<{
@@ -54741,7 +55172,21 @@ declare const AssistantTextDeltaNotificationSchema: z.ZodObject<{
54741
55172
  textDelta: z.ZodString;
54742
55173
  }, z.ZodTypeAny, "passthrough">>;
54743
55174
  type AssistantTextDeltaNotification = z.infer<typeof AssistantTextDeltaNotificationSchema>;
54744
- /** Thinking text delta notification (streaming thinking token). */
55175
+ /** Assistant text complete notification (streaming block finished). */
55176
+ declare const AssistantTextCompleteNotificationSchema: z.ZodObject<{
55177
+ type: z.ZodLiteral<SessionNotificationType.ASSISTANT_TEXT_COMPLETE>;
55178
+ messageId: z.ZodString;
55179
+ blockIndex: z.ZodNumber;
55180
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
55181
+ type: z.ZodLiteral<SessionNotificationType.ASSISTANT_TEXT_COMPLETE>;
55182
+ messageId: z.ZodString;
55183
+ blockIndex: z.ZodNumber;
55184
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
55185
+ type: z.ZodLiteral<SessionNotificationType.ASSISTANT_TEXT_COMPLETE>;
55186
+ messageId: z.ZodString;
55187
+ blockIndex: z.ZodNumber;
55188
+ }, z.ZodTypeAny, "passthrough">>;
55189
+ type AssistantTextCompleteNotification = z.infer<typeof AssistantTextCompleteNotificationSchema>;
54745
55190
  declare const ThinkingTextDeltaNotificationSchema: z.ZodObject<{
54746
55191
  type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_DELTA>;
54747
55192
  messageId: z.ZodString;
@@ -54759,7 +55204,88 @@ declare const ThinkingTextDeltaNotificationSchema: z.ZodObject<{
54759
55204
  textDelta: z.ZodString;
54760
55205
  }, z.ZodTypeAny, "passthrough">>;
54761
55206
  type ThinkingTextDeltaNotification = z.infer<typeof ThinkingTextDeltaNotificationSchema>;
54762
- /** Session token usage changed notification. */
55207
+ declare const ThinkingTextCompleteNotificationSchema: z.ZodObject<{
55208
+ type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_COMPLETE>;
55209
+ messageId: z.ZodString;
55210
+ blockIndex: z.ZodNumber;
55211
+ durationMs: z.ZodOptional<z.ZodNumber>;
55212
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
55213
+ type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_COMPLETE>;
55214
+ messageId: z.ZodString;
55215
+ blockIndex: z.ZodNumber;
55216
+ durationMs: z.ZodOptional<z.ZodNumber>;
55217
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
55218
+ type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_COMPLETE>;
55219
+ messageId: z.ZodString;
55220
+ blockIndex: z.ZodNumber;
55221
+ durationMs: z.ZodOptional<z.ZodNumber>;
55222
+ }, z.ZodTypeAny, "passthrough">>;
55223
+ type ThinkingTextCompleteNotification = z.infer<typeof ThinkingTextCompleteNotificationSchema>;
55224
+ declare const ToolCallNotificationSchema: z.ZodObject<{
55225
+ type: z.ZodLiteral<SessionNotificationType.TOOL_CALL>;
55226
+ toolUse: z.ZodObject<{
55227
+ type: z.ZodLiteral<"tool_use">;
55228
+ id: z.ZodString;
55229
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
55230
+ name: z.ZodString;
55231
+ thoughtSignature: z.ZodOptional<z.ZodString>;
55232
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
55233
+ type: z.ZodLiteral<"tool_use">;
55234
+ id: z.ZodString;
55235
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
55236
+ name: z.ZodString;
55237
+ thoughtSignature: z.ZodOptional<z.ZodString>;
55238
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
55239
+ type: z.ZodLiteral<"tool_use">;
55240
+ id: z.ZodString;
55241
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
55242
+ name: z.ZodString;
55243
+ thoughtSignature: z.ZodOptional<z.ZodString>;
55244
+ }, z.ZodTypeAny, "passthrough">>;
55245
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
55246
+ type: z.ZodLiteral<SessionNotificationType.TOOL_CALL>;
55247
+ toolUse: z.ZodObject<{
55248
+ type: z.ZodLiteral<"tool_use">;
55249
+ id: z.ZodString;
55250
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
55251
+ name: z.ZodString;
55252
+ thoughtSignature: z.ZodOptional<z.ZodString>;
55253
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
55254
+ type: z.ZodLiteral<"tool_use">;
55255
+ id: z.ZodString;
55256
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
55257
+ name: z.ZodString;
55258
+ thoughtSignature: z.ZodOptional<z.ZodString>;
55259
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
55260
+ type: z.ZodLiteral<"tool_use">;
55261
+ id: z.ZodString;
55262
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
55263
+ name: z.ZodString;
55264
+ thoughtSignature: z.ZodOptional<z.ZodString>;
55265
+ }, z.ZodTypeAny, "passthrough">>;
55266
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
55267
+ type: z.ZodLiteral<SessionNotificationType.TOOL_CALL>;
55268
+ toolUse: z.ZodObject<{
55269
+ type: z.ZodLiteral<"tool_use">;
55270
+ id: z.ZodString;
55271
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
55272
+ name: z.ZodString;
55273
+ thoughtSignature: z.ZodOptional<z.ZodString>;
55274
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
55275
+ type: z.ZodLiteral<"tool_use">;
55276
+ id: z.ZodString;
55277
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
55278
+ name: z.ZodString;
55279
+ thoughtSignature: z.ZodOptional<z.ZodString>;
55280
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
55281
+ type: z.ZodLiteral<"tool_use">;
55282
+ id: z.ZodString;
55283
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
55284
+ name: z.ZodString;
55285
+ thoughtSignature: z.ZodOptional<z.ZodString>;
55286
+ }, z.ZodTypeAny, "passthrough">>;
55287
+ }, z.ZodTypeAny, "passthrough">>;
55288
+ type ToolCallNotification = z.infer<typeof ToolCallNotificationSchema>;
54763
55289
  declare const SessionTokenUsageChangedNotificationSchema: z.ZodObject<{
54764
55290
  type: z.ZodLiteral<SessionNotificationType.SESSION_TOKEN_USAGE_CHANGED>;
54765
55291
  sessionId: z.ZodString;
@@ -54828,7 +55354,6 @@ declare const SessionTokenUsageChangedNotificationSchema: z.ZodObject<{
54828
55354
  }, z.ZodTypeAny, "passthrough">>;
54829
55355
  }, z.ZodTypeAny, "passthrough">>;
54830
55356
  type SessionTokenUsageChangedNotification = z.infer<typeof SessionTokenUsageChangedNotificationSchema>;
54831
- /** Mission state changed notification. */
54832
55357
  declare const MissionStateChangedNotificationSchema: z.ZodObject<{
54833
55358
  type: z.ZodLiteral<SessionNotificationType.MISSION_STATE_CHANGED>;
54834
55359
  state: z.ZodNativeEnum<typeof MissionState>;
@@ -54840,7 +55365,6 @@ declare const MissionStateChangedNotificationSchema: z.ZodObject<{
54840
55365
  state: z.ZodNativeEnum<typeof MissionState>;
54841
55366
  }, z.ZodTypeAny, "passthrough">>;
54842
55367
  type MissionStateChangedNotification = z.infer<typeof MissionStateChangedNotificationSchema>;
54843
- /** Mission features changed notification. */
54844
55368
  declare const MissionFeaturesChangedNotificationSchema: z.ZodObject<{
54845
55369
  type: z.ZodLiteral<SessionNotificationType.MISSION_FEATURES_CHANGED>;
54846
55370
  features: z.ZodArray<z.ZodObject<{
@@ -54969,7 +55493,6 @@ declare const MissionFeaturesChangedNotificationSchema: z.ZodObject<{
54969
55493
  }, z.ZodTypeAny, "passthrough">>, "many">;
54970
55494
  }, z.ZodTypeAny, "passthrough">>;
54971
55495
  type MissionFeaturesChangedNotification = z.infer<typeof MissionFeaturesChangedNotificationSchema>;
54972
- /** Mission progress entry notification. */
54973
55496
  declare const MissionProgressEntryNotificationSchema: z.ZodObject<{
54974
55497
  type: z.ZodLiteral<SessionNotificationType.MISSION_PROGRESS_ENTRY>;
54975
55498
  progressLog: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -62748,7 +63271,6 @@ declare const MissionProgressEntryNotificationSchema: z.ZodObject<{
62748
63271
  }, z.ZodTypeAny, "passthrough">>]>, "many">;
62749
63272
  }, z.ZodTypeAny, "passthrough">>;
62750
63273
  type MissionProgressEntryNotification = z.infer<typeof MissionProgressEntryNotificationSchema>;
62751
- /** Mission heartbeat notification. */
62752
63274
  declare const MissionHeartbeatNotificationSchema: z.ZodObject<{
62753
63275
  type: z.ZodLiteral<SessionNotificationType.MISSION_HEARTBEAT>;
62754
63276
  timestamp: z.ZodString;
@@ -62760,7 +63282,6 @@ declare const MissionHeartbeatNotificationSchema: z.ZodObject<{
62760
63282
  timestamp: z.ZodString;
62761
63283
  }, z.ZodTypeAny, "passthrough">>;
62762
63284
  type MissionHeartbeatNotification = z.infer<typeof MissionHeartbeatNotificationSchema>;
62763
- /** Mission worker started notification. */
62764
63285
  declare const MissionWorkerStartedNotificationSchema: z.ZodObject<{
62765
63286
  type: z.ZodLiteral<SessionNotificationType.MISSION_WORKER_STARTED>;
62766
63287
  workerSessionId: z.ZodString;
@@ -62772,7 +63293,6 @@ declare const MissionWorkerStartedNotificationSchema: z.ZodObject<{
62772
63293
  workerSessionId: z.ZodString;
62773
63294
  }, z.ZodTypeAny, "passthrough">>;
62774
63295
  type MissionWorkerStartedNotification = z.infer<typeof MissionWorkerStartedNotificationSchema>;
62775
- /** Mission worker completed notification. */
62776
63296
  declare const MissionWorkerCompletedNotificationSchema: z.ZodObject<{
62777
63297
  type: z.ZodLiteral<SessionNotificationType.MISSION_WORKER_COMPLETED>;
62778
63298
  workerSessionId: z.ZodString;
@@ -62787,7 +63307,6 @@ declare const MissionWorkerCompletedNotificationSchema: z.ZodObject<{
62787
63307
  exitCode: z.ZodNumber;
62788
63308
  }, z.ZodTypeAny, "passthrough">>;
62789
63309
  type MissionWorkerCompletedNotification = z.infer<typeof MissionWorkerCompletedNotificationSchema>;
62790
- /** MCP authentication required notification. */
62791
63310
  declare const McpAuthRequiredNotificationSchema: z.ZodObject<{
62792
63311
  type: z.ZodLiteral<SessionNotificationType.MCP_AUTH_REQUIRED>;
62793
63312
  serverName: z.ZodString;
@@ -62808,7 +63327,6 @@ declare const McpAuthRequiredNotificationSchema: z.ZodObject<{
62808
63327
  state: z.ZodString;
62809
63328
  }, z.ZodTypeAny, "passthrough">>;
62810
63329
  type McpAuthRequiredNotification = z.infer<typeof McpAuthRequiredNotificationSchema>;
62811
- /** MCP authentication completed notification. */
62812
63330
  declare const McpAuthCompletedNotificationSchema: z.ZodObject<{
62813
63331
  type: z.ZodLiteral<SessionNotificationType.MCP_AUTH_COMPLETED>;
62814
63332
  serverName: z.ZodString;
@@ -62826,6 +63344,242 @@ declare const McpAuthCompletedNotificationSchema: z.ZodObject<{
62826
63344
  message: z.ZodString;
62827
63345
  }, z.ZodTypeAny, "passthrough">>;
62828
63346
  type McpAuthCompletedNotification = z.infer<typeof McpAuthCompletedNotificationSchema>;
63347
+ declare const HookCommandSchema: z.ZodObject<{
63348
+ command: z.ZodString;
63349
+ timeout: z.ZodOptional<z.ZodNumber>;
63350
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63351
+ command: z.ZodString;
63352
+ timeout: z.ZodOptional<z.ZodNumber>;
63353
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63354
+ command: z.ZodString;
63355
+ timeout: z.ZodOptional<z.ZodNumber>;
63356
+ }, z.ZodTypeAny, "passthrough">>;
63357
+ type HookCommand = z.infer<typeof HookCommandSchema>;
63358
+ declare const HookResultSchema: z.ZodObject<{
63359
+ exitCode: z.ZodNumber;
63360
+ stdout: z.ZodString;
63361
+ stderr: z.ZodString;
63362
+ command: z.ZodOptional<z.ZodString>;
63363
+ timeout: z.ZodOptional<z.ZodNumber>;
63364
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63365
+ exitCode: z.ZodNumber;
63366
+ stdout: z.ZodString;
63367
+ stderr: z.ZodString;
63368
+ command: z.ZodOptional<z.ZodString>;
63369
+ timeout: z.ZodOptional<z.ZodNumber>;
63370
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63371
+ exitCode: z.ZodNumber;
63372
+ stdout: z.ZodString;
63373
+ stderr: z.ZodString;
63374
+ command: z.ZodOptional<z.ZodString>;
63375
+ timeout: z.ZodOptional<z.ZodNumber>;
63376
+ }, z.ZodTypeAny, "passthrough">>;
63377
+ type HookResult = z.infer<typeof HookResultSchema>;
63378
+ declare const HookExecutionStartedNotificationSchema: z.ZodObject<{
63379
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_STARTED>;
63380
+ hookId: z.ZodString;
63381
+ hookEventName: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
63382
+ hookMatcher: z.ZodOptional<z.ZodString>;
63383
+ hookCommands: z.ZodArray<z.ZodObject<{
63384
+ command: z.ZodString;
63385
+ timeout: z.ZodOptional<z.ZodNumber>;
63386
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63387
+ command: z.ZodString;
63388
+ timeout: z.ZodOptional<z.ZodNumber>;
63389
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63390
+ command: z.ZodString;
63391
+ timeout: z.ZodOptional<z.ZodNumber>;
63392
+ }, z.ZodTypeAny, "passthrough">>, "many">;
63393
+ hookToolCallId: z.ZodOptional<z.ZodString>;
63394
+ isParallelExecution: z.ZodOptional<z.ZodBoolean>;
63395
+ parallelGroupId: z.ZodOptional<z.ZodString>;
63396
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63397
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_STARTED>;
63398
+ hookId: z.ZodString;
63399
+ hookEventName: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
63400
+ hookMatcher: z.ZodOptional<z.ZodString>;
63401
+ hookCommands: z.ZodArray<z.ZodObject<{
63402
+ command: z.ZodString;
63403
+ timeout: z.ZodOptional<z.ZodNumber>;
63404
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63405
+ command: z.ZodString;
63406
+ timeout: z.ZodOptional<z.ZodNumber>;
63407
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63408
+ command: z.ZodString;
63409
+ timeout: z.ZodOptional<z.ZodNumber>;
63410
+ }, z.ZodTypeAny, "passthrough">>, "many">;
63411
+ hookToolCallId: z.ZodOptional<z.ZodString>;
63412
+ isParallelExecution: z.ZodOptional<z.ZodBoolean>;
63413
+ parallelGroupId: z.ZodOptional<z.ZodString>;
63414
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63415
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_STARTED>;
63416
+ hookId: z.ZodString;
63417
+ hookEventName: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
63418
+ hookMatcher: z.ZodOptional<z.ZodString>;
63419
+ hookCommands: z.ZodArray<z.ZodObject<{
63420
+ command: z.ZodString;
63421
+ timeout: z.ZodOptional<z.ZodNumber>;
63422
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63423
+ command: z.ZodString;
63424
+ timeout: z.ZodOptional<z.ZodNumber>;
63425
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63426
+ command: z.ZodString;
63427
+ timeout: z.ZodOptional<z.ZodNumber>;
63428
+ }, z.ZodTypeAny, "passthrough">>, "many">;
63429
+ hookToolCallId: z.ZodOptional<z.ZodString>;
63430
+ isParallelExecution: z.ZodOptional<z.ZodBoolean>;
63431
+ parallelGroupId: z.ZodOptional<z.ZodString>;
63432
+ }, z.ZodTypeAny, "passthrough">>;
63433
+ type HookExecutionStartedNotification = z.infer<typeof HookExecutionStartedNotificationSchema>;
63434
+ declare const HookExecutionCompletedNotificationSchema: z.ZodObject<{
63435
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_COMPLETED>;
63436
+ hookId: z.ZodString;
63437
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
63438
+ hookMatcher: z.ZodOptional<z.ZodString>;
63439
+ hookToolCallId: z.ZodOptional<z.ZodString>;
63440
+ hookStatus: z.ZodEnum<["completed", "error"]>;
63441
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
63442
+ exitCode: z.ZodNumber;
63443
+ stdout: z.ZodString;
63444
+ stderr: z.ZodString;
63445
+ command: z.ZodOptional<z.ZodString>;
63446
+ timeout: z.ZodOptional<z.ZodNumber>;
63447
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63448
+ exitCode: z.ZodNumber;
63449
+ stdout: z.ZodString;
63450
+ stderr: z.ZodString;
63451
+ command: z.ZodOptional<z.ZodString>;
63452
+ timeout: z.ZodOptional<z.ZodNumber>;
63453
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63454
+ exitCode: z.ZodNumber;
63455
+ stdout: z.ZodString;
63456
+ stderr: z.ZodString;
63457
+ command: z.ZodOptional<z.ZodString>;
63458
+ timeout: z.ZodOptional<z.ZodNumber>;
63459
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
63460
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63461
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_COMPLETED>;
63462
+ hookId: z.ZodString;
63463
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
63464
+ hookMatcher: z.ZodOptional<z.ZodString>;
63465
+ hookToolCallId: z.ZodOptional<z.ZodString>;
63466
+ hookStatus: z.ZodEnum<["completed", "error"]>;
63467
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
63468
+ exitCode: z.ZodNumber;
63469
+ stdout: z.ZodString;
63470
+ stderr: z.ZodString;
63471
+ command: z.ZodOptional<z.ZodString>;
63472
+ timeout: z.ZodOptional<z.ZodNumber>;
63473
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63474
+ exitCode: z.ZodNumber;
63475
+ stdout: z.ZodString;
63476
+ stderr: z.ZodString;
63477
+ command: z.ZodOptional<z.ZodString>;
63478
+ timeout: z.ZodOptional<z.ZodNumber>;
63479
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63480
+ exitCode: z.ZodNumber;
63481
+ stdout: z.ZodString;
63482
+ stderr: z.ZodString;
63483
+ command: z.ZodOptional<z.ZodString>;
63484
+ timeout: z.ZodOptional<z.ZodNumber>;
63485
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
63486
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63487
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_COMPLETED>;
63488
+ hookId: z.ZodString;
63489
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
63490
+ hookMatcher: z.ZodOptional<z.ZodString>;
63491
+ hookToolCallId: z.ZodOptional<z.ZodString>;
63492
+ hookStatus: z.ZodEnum<["completed", "error"]>;
63493
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
63494
+ exitCode: z.ZodNumber;
63495
+ stdout: z.ZodString;
63496
+ stderr: z.ZodString;
63497
+ command: z.ZodOptional<z.ZodString>;
63498
+ timeout: z.ZodOptional<z.ZodNumber>;
63499
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63500
+ exitCode: z.ZodNumber;
63501
+ stdout: z.ZodString;
63502
+ stderr: z.ZodString;
63503
+ command: z.ZodOptional<z.ZodString>;
63504
+ timeout: z.ZodOptional<z.ZodNumber>;
63505
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63506
+ exitCode: z.ZodNumber;
63507
+ stdout: z.ZodString;
63508
+ stderr: z.ZodString;
63509
+ command: z.ZodOptional<z.ZodString>;
63510
+ timeout: z.ZodOptional<z.ZodNumber>;
63511
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
63512
+ }, z.ZodTypeAny, "passthrough">>;
63513
+ type HookExecutionCompletedNotification = z.infer<typeof HookExecutionCompletedNotificationSchema>;
63514
+ /** Structured output validation error emitted by Droid. */
63515
+ declare const StructuredOutputErrorSchema: z.ZodObject<{
63516
+ code: z.ZodString;
63517
+ message: z.ZodString;
63518
+ details: z.ZodOptional<z.ZodUnknown>;
63519
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63520
+ code: z.ZodString;
63521
+ message: z.ZodString;
63522
+ details: z.ZodOptional<z.ZodUnknown>;
63523
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63524
+ code: z.ZodString;
63525
+ message: z.ZodString;
63526
+ details: z.ZodOptional<z.ZodUnknown>;
63527
+ }, z.ZodTypeAny, "passthrough">>;
63528
+ type StructuredOutputError = z.infer<typeof StructuredOutputErrorSchema>;
63529
+ /** Backend-validated structured output for the completed turn. */
63530
+ declare const StructuredOutputNotificationSchema: z.ZodObject<{
63531
+ type: z.ZodLiteral<SessionNotificationType.STRUCTURED_OUTPUT>;
63532
+ messageId: z.ZodString;
63533
+ structuredOutput: z.ZodNullable<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
63534
+ structuredOutputError: z.ZodNullable<z.ZodObject<{
63535
+ code: z.ZodString;
63536
+ message: z.ZodString;
63537
+ details: z.ZodOptional<z.ZodUnknown>;
63538
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63539
+ code: z.ZodString;
63540
+ message: z.ZodString;
63541
+ details: z.ZodOptional<z.ZodUnknown>;
63542
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63543
+ code: z.ZodString;
63544
+ message: z.ZodString;
63545
+ details: z.ZodOptional<z.ZodUnknown>;
63546
+ }, z.ZodTypeAny, "passthrough">>>;
63547
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63548
+ type: z.ZodLiteral<SessionNotificationType.STRUCTURED_OUTPUT>;
63549
+ messageId: z.ZodString;
63550
+ structuredOutput: z.ZodNullable<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
63551
+ structuredOutputError: z.ZodNullable<z.ZodObject<{
63552
+ code: z.ZodString;
63553
+ message: z.ZodString;
63554
+ details: z.ZodOptional<z.ZodUnknown>;
63555
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63556
+ code: z.ZodString;
63557
+ message: z.ZodString;
63558
+ details: z.ZodOptional<z.ZodUnknown>;
63559
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63560
+ code: z.ZodString;
63561
+ message: z.ZodString;
63562
+ details: z.ZodOptional<z.ZodUnknown>;
63563
+ }, z.ZodTypeAny, "passthrough">>>;
63564
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63565
+ type: z.ZodLiteral<SessionNotificationType.STRUCTURED_OUTPUT>;
63566
+ messageId: z.ZodString;
63567
+ structuredOutput: z.ZodNullable<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
63568
+ structuredOutputError: z.ZodNullable<z.ZodObject<{
63569
+ code: z.ZodString;
63570
+ message: z.ZodString;
63571
+ details: z.ZodOptional<z.ZodUnknown>;
63572
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63573
+ code: z.ZodString;
63574
+ message: z.ZodString;
63575
+ details: z.ZodOptional<z.ZodUnknown>;
63576
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63577
+ code: z.ZodString;
63578
+ message: z.ZodString;
63579
+ details: z.ZodOptional<z.ZodUnknown>;
63580
+ }, z.ZodTypeAny, "passthrough">>>;
63581
+ }, z.ZodTypeAny, "passthrough">>;
63582
+ type StructuredOutputNotification = z.infer<typeof StructuredOutputNotificationSchema>;
62829
63583
  /** List of all session notification schemas (for discriminatedUnion). */
62830
63584
  declare const SessionNotificationSchemaList: readonly [z.ZodObject<{
62831
63585
  type: z.ZodLiteral<SessionNotificationType.TOOL_RESULT>;
@@ -64639,6 +65393,18 @@ declare const SessionNotificationSchemaList: readonly [z.ZodObject<{
64639
65393
  messageId: z.ZodString;
64640
65394
  blockIndex: z.ZodNumber;
64641
65395
  textDelta: z.ZodString;
65396
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
65397
+ type: z.ZodLiteral<SessionNotificationType.ASSISTANT_TEXT_COMPLETE>;
65398
+ messageId: z.ZodString;
65399
+ blockIndex: z.ZodNumber;
65400
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65401
+ type: z.ZodLiteral<SessionNotificationType.ASSISTANT_TEXT_COMPLETE>;
65402
+ messageId: z.ZodString;
65403
+ blockIndex: z.ZodNumber;
65404
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
65405
+ type: z.ZodLiteral<SessionNotificationType.ASSISTANT_TEXT_COMPLETE>;
65406
+ messageId: z.ZodString;
65407
+ blockIndex: z.ZodNumber;
64642
65408
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
64643
65409
  type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_DELTA>;
64644
65410
  messageId: z.ZodString;
@@ -64654,6 +65420,84 @@ declare const SessionNotificationSchemaList: readonly [z.ZodObject<{
64654
65420
  messageId: z.ZodString;
64655
65421
  blockIndex: z.ZodNumber;
64656
65422
  textDelta: z.ZodString;
65423
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
65424
+ type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_COMPLETE>;
65425
+ messageId: z.ZodString;
65426
+ blockIndex: z.ZodNumber;
65427
+ durationMs: z.ZodOptional<z.ZodNumber>;
65428
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65429
+ type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_COMPLETE>;
65430
+ messageId: z.ZodString;
65431
+ blockIndex: z.ZodNumber;
65432
+ durationMs: z.ZodOptional<z.ZodNumber>;
65433
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
65434
+ type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_COMPLETE>;
65435
+ messageId: z.ZodString;
65436
+ blockIndex: z.ZodNumber;
65437
+ durationMs: z.ZodOptional<z.ZodNumber>;
65438
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
65439
+ type: z.ZodLiteral<SessionNotificationType.TOOL_CALL>;
65440
+ toolUse: z.ZodObject<{
65441
+ type: z.ZodLiteral<"tool_use">;
65442
+ id: z.ZodString;
65443
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
65444
+ name: z.ZodString;
65445
+ thoughtSignature: z.ZodOptional<z.ZodString>;
65446
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65447
+ type: z.ZodLiteral<"tool_use">;
65448
+ id: z.ZodString;
65449
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
65450
+ name: z.ZodString;
65451
+ thoughtSignature: z.ZodOptional<z.ZodString>;
65452
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
65453
+ type: z.ZodLiteral<"tool_use">;
65454
+ id: z.ZodString;
65455
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
65456
+ name: z.ZodString;
65457
+ thoughtSignature: z.ZodOptional<z.ZodString>;
65458
+ }, z.ZodTypeAny, "passthrough">>;
65459
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65460
+ type: z.ZodLiteral<SessionNotificationType.TOOL_CALL>;
65461
+ toolUse: z.ZodObject<{
65462
+ type: z.ZodLiteral<"tool_use">;
65463
+ id: z.ZodString;
65464
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
65465
+ name: z.ZodString;
65466
+ thoughtSignature: z.ZodOptional<z.ZodString>;
65467
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65468
+ type: z.ZodLiteral<"tool_use">;
65469
+ id: z.ZodString;
65470
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
65471
+ name: z.ZodString;
65472
+ thoughtSignature: z.ZodOptional<z.ZodString>;
65473
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
65474
+ type: z.ZodLiteral<"tool_use">;
65475
+ id: z.ZodString;
65476
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
65477
+ name: z.ZodString;
65478
+ thoughtSignature: z.ZodOptional<z.ZodString>;
65479
+ }, z.ZodTypeAny, "passthrough">>;
65480
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
65481
+ type: z.ZodLiteral<SessionNotificationType.TOOL_CALL>;
65482
+ toolUse: z.ZodObject<{
65483
+ type: z.ZodLiteral<"tool_use">;
65484
+ id: z.ZodString;
65485
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
65486
+ name: z.ZodString;
65487
+ thoughtSignature: z.ZodOptional<z.ZodString>;
65488
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65489
+ type: z.ZodLiteral<"tool_use">;
65490
+ id: z.ZodString;
65491
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
65492
+ name: z.ZodString;
65493
+ thoughtSignature: z.ZodOptional<z.ZodString>;
65494
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
65495
+ type: z.ZodLiteral<"tool_use">;
65496
+ id: z.ZodString;
65497
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
65498
+ name: z.ZodString;
65499
+ thoughtSignature: z.ZodOptional<z.ZodString>;
65500
+ }, z.ZodTypeAny, "passthrough">>;
64657
65501
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
64658
65502
  type: z.ZodLiteral<SessionNotificationType.SESSION_TOKEN_USAGE_CHANGED>;
64659
65503
  sessionId: z.ZodString;
@@ -72694,8 +73538,191 @@ declare const SessionNotificationSchemaList: readonly [z.ZodObject<{
72694
73538
  serverName: z.ZodString;
72695
73539
  outcome: z.ZodNativeEnum<typeof McpAuthOutcome>;
72696
73540
  message: z.ZodString;
73541
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
73542
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_STARTED>;
73543
+ hookId: z.ZodString;
73544
+ hookEventName: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
73545
+ hookMatcher: z.ZodOptional<z.ZodString>;
73546
+ hookCommands: z.ZodArray<z.ZodObject<{
73547
+ command: z.ZodString;
73548
+ timeout: z.ZodOptional<z.ZodNumber>;
73549
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73550
+ command: z.ZodString;
73551
+ timeout: z.ZodOptional<z.ZodNumber>;
73552
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73553
+ command: z.ZodString;
73554
+ timeout: z.ZodOptional<z.ZodNumber>;
73555
+ }, z.ZodTypeAny, "passthrough">>, "many">;
73556
+ hookToolCallId: z.ZodOptional<z.ZodString>;
73557
+ isParallelExecution: z.ZodOptional<z.ZodBoolean>;
73558
+ parallelGroupId: z.ZodOptional<z.ZodString>;
73559
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73560
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_STARTED>;
73561
+ hookId: z.ZodString;
73562
+ hookEventName: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
73563
+ hookMatcher: z.ZodOptional<z.ZodString>;
73564
+ hookCommands: z.ZodArray<z.ZodObject<{
73565
+ command: z.ZodString;
73566
+ timeout: z.ZodOptional<z.ZodNumber>;
73567
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73568
+ command: z.ZodString;
73569
+ timeout: z.ZodOptional<z.ZodNumber>;
73570
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73571
+ command: z.ZodString;
73572
+ timeout: z.ZodOptional<z.ZodNumber>;
73573
+ }, z.ZodTypeAny, "passthrough">>, "many">;
73574
+ hookToolCallId: z.ZodOptional<z.ZodString>;
73575
+ isParallelExecution: z.ZodOptional<z.ZodBoolean>;
73576
+ parallelGroupId: z.ZodOptional<z.ZodString>;
73577
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73578
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_STARTED>;
73579
+ hookId: z.ZodString;
73580
+ hookEventName: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
73581
+ hookMatcher: z.ZodOptional<z.ZodString>;
73582
+ hookCommands: z.ZodArray<z.ZodObject<{
73583
+ command: z.ZodString;
73584
+ timeout: z.ZodOptional<z.ZodNumber>;
73585
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73586
+ command: z.ZodString;
73587
+ timeout: z.ZodOptional<z.ZodNumber>;
73588
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73589
+ command: z.ZodString;
73590
+ timeout: z.ZodOptional<z.ZodNumber>;
73591
+ }, z.ZodTypeAny, "passthrough">>, "many">;
73592
+ hookToolCallId: z.ZodOptional<z.ZodString>;
73593
+ isParallelExecution: z.ZodOptional<z.ZodBoolean>;
73594
+ parallelGroupId: z.ZodOptional<z.ZodString>;
73595
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
73596
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_COMPLETED>;
73597
+ hookId: z.ZodString;
73598
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
73599
+ hookMatcher: z.ZodOptional<z.ZodString>;
73600
+ hookToolCallId: z.ZodOptional<z.ZodString>;
73601
+ hookStatus: z.ZodEnum<["completed", "error"]>;
73602
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
73603
+ exitCode: z.ZodNumber;
73604
+ stdout: z.ZodString;
73605
+ stderr: z.ZodString;
73606
+ command: z.ZodOptional<z.ZodString>;
73607
+ timeout: z.ZodOptional<z.ZodNumber>;
73608
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73609
+ exitCode: z.ZodNumber;
73610
+ stdout: z.ZodString;
73611
+ stderr: z.ZodString;
73612
+ command: z.ZodOptional<z.ZodString>;
73613
+ timeout: z.ZodOptional<z.ZodNumber>;
73614
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73615
+ exitCode: z.ZodNumber;
73616
+ stdout: z.ZodString;
73617
+ stderr: z.ZodString;
73618
+ command: z.ZodOptional<z.ZodString>;
73619
+ timeout: z.ZodOptional<z.ZodNumber>;
73620
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
73621
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73622
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_COMPLETED>;
73623
+ hookId: z.ZodString;
73624
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
73625
+ hookMatcher: z.ZodOptional<z.ZodString>;
73626
+ hookToolCallId: z.ZodOptional<z.ZodString>;
73627
+ hookStatus: z.ZodEnum<["completed", "error"]>;
73628
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
73629
+ exitCode: z.ZodNumber;
73630
+ stdout: z.ZodString;
73631
+ stderr: z.ZodString;
73632
+ command: z.ZodOptional<z.ZodString>;
73633
+ timeout: z.ZodOptional<z.ZodNumber>;
73634
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73635
+ exitCode: z.ZodNumber;
73636
+ stdout: z.ZodString;
73637
+ stderr: z.ZodString;
73638
+ command: z.ZodOptional<z.ZodString>;
73639
+ timeout: z.ZodOptional<z.ZodNumber>;
73640
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73641
+ exitCode: z.ZodNumber;
73642
+ stdout: z.ZodString;
73643
+ stderr: z.ZodString;
73644
+ command: z.ZodOptional<z.ZodString>;
73645
+ timeout: z.ZodOptional<z.ZodNumber>;
73646
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
73647
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73648
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_COMPLETED>;
73649
+ hookId: z.ZodString;
73650
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
73651
+ hookMatcher: z.ZodOptional<z.ZodString>;
73652
+ hookToolCallId: z.ZodOptional<z.ZodString>;
73653
+ hookStatus: z.ZodEnum<["completed", "error"]>;
73654
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
73655
+ exitCode: z.ZodNumber;
73656
+ stdout: z.ZodString;
73657
+ stderr: z.ZodString;
73658
+ command: z.ZodOptional<z.ZodString>;
73659
+ timeout: z.ZodOptional<z.ZodNumber>;
73660
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73661
+ exitCode: z.ZodNumber;
73662
+ stdout: z.ZodString;
73663
+ stderr: z.ZodString;
73664
+ command: z.ZodOptional<z.ZodString>;
73665
+ timeout: z.ZodOptional<z.ZodNumber>;
73666
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73667
+ exitCode: z.ZodNumber;
73668
+ stdout: z.ZodString;
73669
+ stderr: z.ZodString;
73670
+ command: z.ZodOptional<z.ZodString>;
73671
+ timeout: z.ZodOptional<z.ZodNumber>;
73672
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
73673
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
73674
+ type: z.ZodLiteral<SessionNotificationType.STRUCTURED_OUTPUT>;
73675
+ messageId: z.ZodString;
73676
+ structuredOutput: z.ZodNullable<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
73677
+ structuredOutputError: z.ZodNullable<z.ZodObject<{
73678
+ code: z.ZodString;
73679
+ message: z.ZodString;
73680
+ details: z.ZodOptional<z.ZodUnknown>;
73681
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73682
+ code: z.ZodString;
73683
+ message: z.ZodString;
73684
+ details: z.ZodOptional<z.ZodUnknown>;
73685
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73686
+ code: z.ZodString;
73687
+ message: z.ZodString;
73688
+ details: z.ZodOptional<z.ZodUnknown>;
73689
+ }, z.ZodTypeAny, "passthrough">>>;
73690
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73691
+ type: z.ZodLiteral<SessionNotificationType.STRUCTURED_OUTPUT>;
73692
+ messageId: z.ZodString;
73693
+ structuredOutput: z.ZodNullable<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
73694
+ structuredOutputError: z.ZodNullable<z.ZodObject<{
73695
+ code: z.ZodString;
73696
+ message: z.ZodString;
73697
+ details: z.ZodOptional<z.ZodUnknown>;
73698
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73699
+ code: z.ZodString;
73700
+ message: z.ZodString;
73701
+ details: z.ZodOptional<z.ZodUnknown>;
73702
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73703
+ code: z.ZodString;
73704
+ message: z.ZodString;
73705
+ details: z.ZodOptional<z.ZodUnknown>;
73706
+ }, z.ZodTypeAny, "passthrough">>>;
73707
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73708
+ type: z.ZodLiteral<SessionNotificationType.STRUCTURED_OUTPUT>;
73709
+ messageId: z.ZodString;
73710
+ structuredOutput: z.ZodNullable<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
73711
+ structuredOutputError: z.ZodNullable<z.ZodObject<{
73712
+ code: z.ZodString;
73713
+ message: z.ZodString;
73714
+ details: z.ZodOptional<z.ZodUnknown>;
73715
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73716
+ code: z.ZodString;
73717
+ message: z.ZodString;
73718
+ details: z.ZodOptional<z.ZodUnknown>;
73719
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73720
+ code: z.ZodString;
73721
+ message: z.ZodString;
73722
+ details: z.ZodOptional<z.ZodUnknown>;
73723
+ }, z.ZodTypeAny, "passthrough">>>;
72697
73724
  }, z.ZodTypeAny, "passthrough">>];
72698
- /** Discriminated union over all 20 session notification types. */
73725
+ /** Discriminated union over all session notification types. */
72699
73726
  declare const SessionNotificationPayloadSchema: z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
72700
73727
  type: z.ZodLiteral<SessionNotificationType.TOOL_RESULT>;
72701
73728
  messageId: z.ZodString;
@@ -74508,6 +75535,18 @@ declare const SessionNotificationPayloadSchema: z.ZodDiscriminatedUnion<"type",
74508
75535
  messageId: z.ZodString;
74509
75536
  blockIndex: z.ZodNumber;
74510
75537
  textDelta: z.ZodString;
75538
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
75539
+ type: z.ZodLiteral<SessionNotificationType.ASSISTANT_TEXT_COMPLETE>;
75540
+ messageId: z.ZodString;
75541
+ blockIndex: z.ZodNumber;
75542
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
75543
+ type: z.ZodLiteral<SessionNotificationType.ASSISTANT_TEXT_COMPLETE>;
75544
+ messageId: z.ZodString;
75545
+ blockIndex: z.ZodNumber;
75546
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
75547
+ type: z.ZodLiteral<SessionNotificationType.ASSISTANT_TEXT_COMPLETE>;
75548
+ messageId: z.ZodString;
75549
+ blockIndex: z.ZodNumber;
74511
75550
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
74512
75551
  type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_DELTA>;
74513
75552
  messageId: z.ZodString;
@@ -74523,6 +75562,84 @@ declare const SessionNotificationPayloadSchema: z.ZodDiscriminatedUnion<"type",
74523
75562
  messageId: z.ZodString;
74524
75563
  blockIndex: z.ZodNumber;
74525
75564
  textDelta: z.ZodString;
75565
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
75566
+ type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_COMPLETE>;
75567
+ messageId: z.ZodString;
75568
+ blockIndex: z.ZodNumber;
75569
+ durationMs: z.ZodOptional<z.ZodNumber>;
75570
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
75571
+ type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_COMPLETE>;
75572
+ messageId: z.ZodString;
75573
+ blockIndex: z.ZodNumber;
75574
+ durationMs: z.ZodOptional<z.ZodNumber>;
75575
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
75576
+ type: z.ZodLiteral<SessionNotificationType.THINKING_TEXT_COMPLETE>;
75577
+ messageId: z.ZodString;
75578
+ blockIndex: z.ZodNumber;
75579
+ durationMs: z.ZodOptional<z.ZodNumber>;
75580
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
75581
+ type: z.ZodLiteral<SessionNotificationType.TOOL_CALL>;
75582
+ toolUse: z.ZodObject<{
75583
+ type: z.ZodLiteral<"tool_use">;
75584
+ id: z.ZodString;
75585
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
75586
+ name: z.ZodString;
75587
+ thoughtSignature: z.ZodOptional<z.ZodString>;
75588
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
75589
+ type: z.ZodLiteral<"tool_use">;
75590
+ id: z.ZodString;
75591
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
75592
+ name: z.ZodString;
75593
+ thoughtSignature: z.ZodOptional<z.ZodString>;
75594
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
75595
+ type: z.ZodLiteral<"tool_use">;
75596
+ id: z.ZodString;
75597
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
75598
+ name: z.ZodString;
75599
+ thoughtSignature: z.ZodOptional<z.ZodString>;
75600
+ }, z.ZodTypeAny, "passthrough">>;
75601
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
75602
+ type: z.ZodLiteral<SessionNotificationType.TOOL_CALL>;
75603
+ toolUse: z.ZodObject<{
75604
+ type: z.ZodLiteral<"tool_use">;
75605
+ id: z.ZodString;
75606
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
75607
+ name: z.ZodString;
75608
+ thoughtSignature: z.ZodOptional<z.ZodString>;
75609
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
75610
+ type: z.ZodLiteral<"tool_use">;
75611
+ id: z.ZodString;
75612
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
75613
+ name: z.ZodString;
75614
+ thoughtSignature: z.ZodOptional<z.ZodString>;
75615
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
75616
+ type: z.ZodLiteral<"tool_use">;
75617
+ id: z.ZodString;
75618
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
75619
+ name: z.ZodString;
75620
+ thoughtSignature: z.ZodOptional<z.ZodString>;
75621
+ }, z.ZodTypeAny, "passthrough">>;
75622
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
75623
+ type: z.ZodLiteral<SessionNotificationType.TOOL_CALL>;
75624
+ toolUse: z.ZodObject<{
75625
+ type: z.ZodLiteral<"tool_use">;
75626
+ id: z.ZodString;
75627
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
75628
+ name: z.ZodString;
75629
+ thoughtSignature: z.ZodOptional<z.ZodString>;
75630
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
75631
+ type: z.ZodLiteral<"tool_use">;
75632
+ id: z.ZodString;
75633
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
75634
+ name: z.ZodString;
75635
+ thoughtSignature: z.ZodOptional<z.ZodString>;
75636
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
75637
+ type: z.ZodLiteral<"tool_use">;
75638
+ id: z.ZodString;
75639
+ input: z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>;
75640
+ name: z.ZodString;
75641
+ thoughtSignature: z.ZodOptional<z.ZodString>;
75642
+ }, z.ZodTypeAny, "passthrough">>;
74526
75643
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
74527
75644
  type: z.ZodLiteral<SessionNotificationType.SESSION_TOKEN_USAGE_CHANGED>;
74528
75645
  sessionId: z.ZodString;
@@ -82563,6 +83680,189 @@ declare const SessionNotificationPayloadSchema: z.ZodDiscriminatedUnion<"type",
82563
83680
  serverName: z.ZodString;
82564
83681
  outcome: z.ZodNativeEnum<typeof McpAuthOutcome>;
82565
83682
  message: z.ZodString;
83683
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
83684
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_STARTED>;
83685
+ hookId: z.ZodString;
83686
+ hookEventName: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
83687
+ hookMatcher: z.ZodOptional<z.ZodString>;
83688
+ hookCommands: z.ZodArray<z.ZodObject<{
83689
+ command: z.ZodString;
83690
+ timeout: z.ZodOptional<z.ZodNumber>;
83691
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83692
+ command: z.ZodString;
83693
+ timeout: z.ZodOptional<z.ZodNumber>;
83694
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83695
+ command: z.ZodString;
83696
+ timeout: z.ZodOptional<z.ZodNumber>;
83697
+ }, z.ZodTypeAny, "passthrough">>, "many">;
83698
+ hookToolCallId: z.ZodOptional<z.ZodString>;
83699
+ isParallelExecution: z.ZodOptional<z.ZodBoolean>;
83700
+ parallelGroupId: z.ZodOptional<z.ZodString>;
83701
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83702
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_STARTED>;
83703
+ hookId: z.ZodString;
83704
+ hookEventName: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
83705
+ hookMatcher: z.ZodOptional<z.ZodString>;
83706
+ hookCommands: z.ZodArray<z.ZodObject<{
83707
+ command: z.ZodString;
83708
+ timeout: z.ZodOptional<z.ZodNumber>;
83709
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83710
+ command: z.ZodString;
83711
+ timeout: z.ZodOptional<z.ZodNumber>;
83712
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83713
+ command: z.ZodString;
83714
+ timeout: z.ZodOptional<z.ZodNumber>;
83715
+ }, z.ZodTypeAny, "passthrough">>, "many">;
83716
+ hookToolCallId: z.ZodOptional<z.ZodString>;
83717
+ isParallelExecution: z.ZodOptional<z.ZodBoolean>;
83718
+ parallelGroupId: z.ZodOptional<z.ZodString>;
83719
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83720
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_STARTED>;
83721
+ hookId: z.ZodString;
83722
+ hookEventName: z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>;
83723
+ hookMatcher: z.ZodOptional<z.ZodString>;
83724
+ hookCommands: z.ZodArray<z.ZodObject<{
83725
+ command: z.ZodString;
83726
+ timeout: z.ZodOptional<z.ZodNumber>;
83727
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83728
+ command: z.ZodString;
83729
+ timeout: z.ZodOptional<z.ZodNumber>;
83730
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83731
+ command: z.ZodString;
83732
+ timeout: z.ZodOptional<z.ZodNumber>;
83733
+ }, z.ZodTypeAny, "passthrough">>, "many">;
83734
+ hookToolCallId: z.ZodOptional<z.ZodString>;
83735
+ isParallelExecution: z.ZodOptional<z.ZodBoolean>;
83736
+ parallelGroupId: z.ZodOptional<z.ZodString>;
83737
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
83738
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_COMPLETED>;
83739
+ hookId: z.ZodString;
83740
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
83741
+ hookMatcher: z.ZodOptional<z.ZodString>;
83742
+ hookToolCallId: z.ZodOptional<z.ZodString>;
83743
+ hookStatus: z.ZodEnum<["completed", "error"]>;
83744
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
83745
+ exitCode: z.ZodNumber;
83746
+ stdout: z.ZodString;
83747
+ stderr: z.ZodString;
83748
+ command: z.ZodOptional<z.ZodString>;
83749
+ timeout: z.ZodOptional<z.ZodNumber>;
83750
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83751
+ exitCode: z.ZodNumber;
83752
+ stdout: z.ZodString;
83753
+ stderr: z.ZodString;
83754
+ command: z.ZodOptional<z.ZodString>;
83755
+ timeout: z.ZodOptional<z.ZodNumber>;
83756
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83757
+ exitCode: z.ZodNumber;
83758
+ stdout: z.ZodString;
83759
+ stderr: z.ZodString;
83760
+ command: z.ZodOptional<z.ZodString>;
83761
+ timeout: z.ZodOptional<z.ZodNumber>;
83762
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
83763
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83764
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_COMPLETED>;
83765
+ hookId: z.ZodString;
83766
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
83767
+ hookMatcher: z.ZodOptional<z.ZodString>;
83768
+ hookToolCallId: z.ZodOptional<z.ZodString>;
83769
+ hookStatus: z.ZodEnum<["completed", "error"]>;
83770
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
83771
+ exitCode: z.ZodNumber;
83772
+ stdout: z.ZodString;
83773
+ stderr: z.ZodString;
83774
+ command: z.ZodOptional<z.ZodString>;
83775
+ timeout: z.ZodOptional<z.ZodNumber>;
83776
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83777
+ exitCode: z.ZodNumber;
83778
+ stdout: z.ZodString;
83779
+ stderr: z.ZodString;
83780
+ command: z.ZodOptional<z.ZodString>;
83781
+ timeout: z.ZodOptional<z.ZodNumber>;
83782
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83783
+ exitCode: z.ZodNumber;
83784
+ stdout: z.ZodString;
83785
+ stderr: z.ZodString;
83786
+ command: z.ZodOptional<z.ZodString>;
83787
+ timeout: z.ZodOptional<z.ZodNumber>;
83788
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
83789
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83790
+ type: z.ZodLiteral<SessionNotificationType.HOOK_EXECUTION_COMPLETED>;
83791
+ hookId: z.ZodString;
83792
+ hookEventName: z.ZodOptional<z.ZodEnum<["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd"]>>;
83793
+ hookMatcher: z.ZodOptional<z.ZodString>;
83794
+ hookToolCallId: z.ZodOptional<z.ZodString>;
83795
+ hookStatus: z.ZodEnum<["completed", "error"]>;
83796
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
83797
+ exitCode: z.ZodNumber;
83798
+ stdout: z.ZodString;
83799
+ stderr: z.ZodString;
83800
+ command: z.ZodOptional<z.ZodString>;
83801
+ timeout: z.ZodOptional<z.ZodNumber>;
83802
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83803
+ exitCode: z.ZodNumber;
83804
+ stdout: z.ZodString;
83805
+ stderr: z.ZodString;
83806
+ command: z.ZodOptional<z.ZodString>;
83807
+ timeout: z.ZodOptional<z.ZodNumber>;
83808
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83809
+ exitCode: z.ZodNumber;
83810
+ stdout: z.ZodString;
83811
+ stderr: z.ZodString;
83812
+ command: z.ZodOptional<z.ZodString>;
83813
+ timeout: z.ZodOptional<z.ZodNumber>;
83814
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
83815
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
83816
+ type: z.ZodLiteral<SessionNotificationType.STRUCTURED_OUTPUT>;
83817
+ messageId: z.ZodString;
83818
+ structuredOutput: z.ZodNullable<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
83819
+ structuredOutputError: z.ZodNullable<z.ZodObject<{
83820
+ code: z.ZodString;
83821
+ message: z.ZodString;
83822
+ details: z.ZodOptional<z.ZodUnknown>;
83823
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83824
+ code: z.ZodString;
83825
+ message: z.ZodString;
83826
+ details: z.ZodOptional<z.ZodUnknown>;
83827
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83828
+ code: z.ZodString;
83829
+ message: z.ZodString;
83830
+ details: z.ZodOptional<z.ZodUnknown>;
83831
+ }, z.ZodTypeAny, "passthrough">>>;
83832
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83833
+ type: z.ZodLiteral<SessionNotificationType.STRUCTURED_OUTPUT>;
83834
+ messageId: z.ZodString;
83835
+ structuredOutput: z.ZodNullable<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
83836
+ structuredOutputError: z.ZodNullable<z.ZodObject<{
83837
+ code: z.ZodString;
83838
+ message: z.ZodString;
83839
+ details: z.ZodOptional<z.ZodUnknown>;
83840
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83841
+ code: z.ZodString;
83842
+ message: z.ZodString;
83843
+ details: z.ZodOptional<z.ZodUnknown>;
83844
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83845
+ code: z.ZodString;
83846
+ message: z.ZodString;
83847
+ details: z.ZodOptional<z.ZodUnknown>;
83848
+ }, z.ZodTypeAny, "passthrough">>>;
83849
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83850
+ type: z.ZodLiteral<SessionNotificationType.STRUCTURED_OUTPUT>;
83851
+ messageId: z.ZodString;
83852
+ structuredOutput: z.ZodNullable<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
83853
+ structuredOutputError: z.ZodNullable<z.ZodObject<{
83854
+ code: z.ZodString;
83855
+ message: z.ZodString;
83856
+ details: z.ZodOptional<z.ZodUnknown>;
83857
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83858
+ code: z.ZodString;
83859
+ message: z.ZodString;
83860
+ details: z.ZodOptional<z.ZodUnknown>;
83861
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83862
+ code: z.ZodString;
83863
+ message: z.ZodString;
83864
+ details: z.ZodOptional<z.ZodUnknown>;
83865
+ }, z.ZodTypeAny, "passthrough">>>;
82566
83866
  }, z.ZodTypeAny, "passthrough">>]>;
82567
83867
  type SessionNotificationPayload = z.infer<typeof SessionNotificationPayloadSchema>;
82568
83868
  declare const SessionNotificationParamsSchema: z.ZodType<SessionNotificationParams, z.ZodTypeDef, unknown>;
@@ -90315,6 +91615,12 @@ type NotificationCallback = (notification: Record<string, unknown>) => void;
90315
91615
  interface NotificationFilter {
90316
91616
  type?: string;
90317
91617
  }
91618
+ interface NotificationListener {
91619
+ readonly callback: NotificationCallback;
91620
+ readonly filter?: NotificationFilter;
91621
+ }
91622
+ /** Dispatch a notification to matching listeners, swallowing listener errors. */
91623
+ declare function dispatchNotification(notification: Record<string, unknown>, listeners: Iterable<NotificationListener>): void;
90318
91624
  declare class ProtocolEngine {
90319
91625
  private readonly _transport;
90320
91626
  private readonly _defaultTimeout;
@@ -90374,10 +91680,6 @@ declare class DroidClient {
90374
91680
  private readonly _engine;
90375
91681
  private _sessionId;
90376
91682
  private _closed;
90377
- /**
90378
- * Client-level notification listeners.
90379
- * Each entry is [callback, optional notification filter].
90380
- */
90381
91683
  private readonly _notificationListeners;
90382
91684
  /** Client-level permission handler. */
90383
91685
  private _permissionHandler;
@@ -90393,6 +91695,7 @@ declare class DroidClient {
90393
91695
  loadSession(params: LoadSessionRequestParams): Promise<LoadSessionResult>;
90394
91696
  addUserMessage(params: Pick<AddUserMessageRequestParams, 'text'> & Partial<Pick<AddUserMessageRequestParams, 'images' | 'files' | 'messageId' | 'outputFormat'>>): Promise<AddUserMessageResult>;
90395
91697
  interruptSession(): Promise<InterruptSessionResult>;
91698
+ closeSession(params?: CloseSessionRequestParams): Promise<CloseSessionResult>;
90396
91699
  killWorkerSession(params: KillWorkerSessionRequestParams): Promise<KillWorkerSessionResult>;
90397
91700
  updateSessionSettings(params: Partial<UpdateSessionSettingsRequestParams>): Promise<UpdateSessionSettingsResult>;
90398
91701
  toggleMcpServer(params: ToggleMcpServerRequestParams): Promise<ToggleMcpServerResult>;
@@ -90428,24 +91731,112 @@ declare class DroidClient {
90428
91731
  private _ensureSession;
90429
91732
  }
90430
91733
 
91734
+ type DroidPermissionMode = 'off' | 'spec' | 'auto-low' | 'auto-medium' | 'auto-high';
91735
+ interface BaseDroidHookInput {
91736
+ session_id: string;
91737
+ transcript_path: string;
91738
+ cwd: string;
91739
+ permission_mode: DroidPermissionMode;
91740
+ hook_event_name: DroidHookEvent;
91741
+ message_id?: string;
91742
+ [key: string]: unknown;
91743
+ }
91744
+ interface ToolHookInput extends BaseDroidHookInput {
91745
+ hook_event_name: 'PreToolUse' | 'PostToolUse';
91746
+ tool_name: string;
91747
+ tool_input: Record<string, unknown>;
91748
+ tool_response?: unknown;
91749
+ }
91750
+ interface UserPromptSubmitHookInput extends BaseDroidHookInput {
91751
+ hook_event_name: 'UserPromptSubmit';
91752
+ prompt: string;
91753
+ has_images?: boolean;
91754
+ }
91755
+ interface NotificationHookInput extends BaseDroidHookInput {
91756
+ hook_event_name: 'Notification';
91757
+ message: string;
91758
+ notification_type: 'permission_prompt' | 'idle_prompt' | 'auth_success' | 'elicitation_dialog';
91759
+ }
91760
+ interface StopHookInput extends BaseDroidHookInput {
91761
+ hook_event_name: 'Stop';
91762
+ stop_hook_active: boolean;
91763
+ tool_execution_count?: number;
91764
+ elapsed_time?: number;
91765
+ }
91766
+ interface SubagentStopHookInput extends BaseDroidHookInput {
91767
+ hook_event_name: 'SubagentStop';
91768
+ task_name: string;
91769
+ task_result?: string;
91770
+ task_error?: string;
91771
+ stop_hook_active: boolean;
91772
+ }
91773
+ interface PreCompactHookInput extends BaseDroidHookInput {
91774
+ hook_event_name: 'PreCompact';
91775
+ trigger: 'manual' | 'auto';
91776
+ custom_instructions?: string;
91777
+ message_count: number;
91778
+ estimated_tokens: number;
91779
+ }
91780
+ interface SessionStartHookInput extends BaseDroidHookInput {
91781
+ hook_event_name: 'SessionStart';
91782
+ source: 'startup' | 'resume' | 'clear' | 'compact';
91783
+ previous_session_id?: string;
91784
+ calling_session_id?: string;
91785
+ }
91786
+ interface SessionEndHookInput extends BaseDroidHookInput {
91787
+ hook_event_name: 'SessionEnd';
91788
+ reason: 'clear' | 'logout' | 'prompt_input_exit' | 'other';
91789
+ session_duration_ms: number;
91790
+ message_count: number;
91791
+ }
91792
+ type DroidHookInput = ToolHookInput | UserPromptSubmitHookInput | NotificationHookInput | StopHookInput | SubagentStopHookInput | PreCompactHookInput | SessionStartHookInput | SessionEndHookInput | BaseDroidHookInput;
91793
+
90431
91794
  interface AssistantTextDelta {
90432
91795
  readonly type: 'assistant_text_delta';
90433
91796
  readonly messageId: string;
90434
91797
  readonly blockIndex: number;
90435
91798
  readonly text: string;
90436
91799
  }
91800
+ interface AssistantTextComplete {
91801
+ readonly type: 'assistant_text_complete';
91802
+ readonly messageId: string;
91803
+ readonly blockIndex: number;
91804
+ }
90437
91805
  interface ThinkingTextDelta {
90438
91806
  readonly type: 'thinking_text_delta';
90439
91807
  readonly messageId: string;
90440
91808
  readonly blockIndex: number;
90441
91809
  readonly text: string;
90442
91810
  }
91811
+ interface ThinkingTextComplete {
91812
+ readonly type: 'thinking_text_complete';
91813
+ readonly messageId: string;
91814
+ readonly blockIndex: number;
91815
+ readonly durationMs?: number;
91816
+ }
91817
+ interface ToolCallDelta {
91818
+ readonly type: 'tool_call_delta';
91819
+ readonly toolUse: ToolUseBlock;
91820
+ }
90443
91821
  interface ToolUse {
90444
91822
  readonly type: 'tool_use';
90445
91823
  readonly toolName: string;
90446
91824
  readonly toolInput: JsonObject;
90447
91825
  readonly toolUseId: string;
90448
91826
  }
91827
+ interface DroidToolCallMessage {
91828
+ readonly type: 'tool_call';
91829
+ readonly toolUse: ToolUseBlock;
91830
+ }
91831
+ interface DroidAssistantMessage {
91832
+ readonly type: 'assistant';
91833
+ readonly message: FactoryDroidMessage;
91834
+ readonly text: string;
91835
+ }
91836
+ interface DroidUserMessage {
91837
+ readonly type: 'user';
91838
+ readonly message: FactoryDroidMessage;
91839
+ }
90449
91840
  interface ToolResult {
90450
91841
  readonly type: 'tool_result';
90451
91842
  readonly toolUseId: string;
@@ -90531,27 +91922,81 @@ interface McpAuthCompleted {
90531
91922
  readonly outcome: McpAuthOutcome;
90532
91923
  readonly message: string;
90533
91924
  }
91925
+ interface HookExecution {
91926
+ readonly type: 'hook';
91927
+ readonly hookId: string;
91928
+ readonly eventName?: DroidHookEvent;
91929
+ readonly matcher?: string;
91930
+ readonly toolCallId?: string;
91931
+ readonly command?: string;
91932
+ readonly timeout?: number;
91933
+ readonly status: 'started' | 'completed' | 'error';
91934
+ readonly exitCode?: number;
91935
+ readonly stdout?: string;
91936
+ readonly stderr?: string;
91937
+ }
91938
+ interface StructuredOutputFields {
91939
+ readonly structuredOutput: JsonObject | null;
91940
+ readonly structuredOutputError: StructuredOutputError | null;
91941
+ }
91942
+ interface StructuredOutput extends StructuredOutputFields {
91943
+ readonly type: 'structured_output';
91944
+ readonly messageId: string;
91945
+ }
90534
91946
  interface ErrorEvent {
90535
91947
  readonly type: 'error';
90536
91948
  readonly message: string;
90537
91949
  readonly errorType: ErrorNotification['errorType'];
90538
91950
  readonly timestamp: string;
90539
91951
  }
90540
- /** Sentinel yielded when the agent turn finishes (returns to Idle). */
90541
- interface TurnComplete {
90542
- readonly type: 'turn_complete';
90543
- readonly tokenUsage: TokenUsageUpdate | null;
91952
+ type DroidErrorMessage = ErrorEvent;
91953
+ type DroidToolResultMessage = ToolResult;
91954
+ interface DroidResultBase {
91955
+ readonly type: 'result';
91956
+ readonly sessionId: string;
91957
+ readonly durationMs: number;
91958
+ readonly numTurns: number;
91959
+ readonly result: string;
91960
+ readonly tokenUsage: TokenUsage | null;
91961
+ /** Stream messages emitted before this result. */
91962
+ readonly messages: DroidStreamEvent[];
91963
+ readonly text: string;
91964
+ readonly turnCount: number;
91965
+ readonly success: boolean;
91966
+ }
91967
+ interface DroidResultSuccessMessage extends DroidResultBase {
91968
+ readonly subtype: 'success';
91969
+ readonly isError: false;
91970
+ readonly structuredOutput?: unknown;
91971
+ readonly structuredOutputError?: null;
91972
+ readonly error: null;
91973
+ }
91974
+ interface DroidResultErrorMessage extends DroidResultBase {
91975
+ readonly subtype: 'error_during_execution' | 'error_structured_output';
91976
+ readonly isError: true;
91977
+ readonly errors: string[];
91978
+ readonly structuredOutput?: unknown;
91979
+ readonly structuredOutputError?: StructuredOutputError | null;
91980
+ readonly error: ErrorEvent | null;
90544
91981
  }
90545
- type DroidMessage = AssistantTextDelta | ThinkingTextDelta | ToolUse | ToolResult | ToolProgress | WorkingStateChanged | TokenUsageUpdate | CreateMessage | PermissionResolved | SettingsUpdated | SessionTitleUpdated | McpStatusChanged | MissionStateChanged | MissionFeaturesChanged | MissionProgressEntry | MissionHeartbeat | MissionWorkerStarted | MissionWorkerCompleted | McpAuthRequired | McpAuthCompleted | ErrorEvent | TurnComplete;
91982
+ type DroidResultMessage = DroidResultSuccessMessage | DroidResultErrorMessage;
91983
+ type DroidStreamMessage = DroidAssistantMessage | DroidUserMessage | DroidToolCallMessage | ToolResult | HookExecution | ErrorEvent | DroidResultMessage;
91984
+ type DroidStreamEvent = DroidStreamMessage | AssistantTextDelta | AssistantTextComplete | ThinkingTextDelta | ThinkingTextComplete | ToolCallDelta | ToolProgress | WorkingStateChanged | TokenUsageUpdate | PermissionResolved | SettingsUpdated | SessionTitleUpdated | McpStatusChanged | MissionStateChanged | MissionFeaturesChanged | MissionProgressEntry | MissionHeartbeat | MissionWorkerStarted | MissionWorkerCompleted | McpAuthRequired | McpAuthCompleted | HookExecution;
91985
+ type InternalDroidMessage = DroidStreamEvent | ToolUse | CreateMessage | StructuredOutput;
91986
+ type DroidMessage = DroidStreamEvent;
90546
91987
  declare const DroidMessageType: {
91988
+ readonly Assistant: "assistant";
91989
+ readonly User: "user";
91990
+ readonly ToolCall: "tool_call";
90547
91991
  readonly AssistantTextDelta: "assistant_text_delta";
91992
+ readonly AssistantTextComplete: "assistant_text_complete";
90548
91993
  readonly ThinkingTextDelta: "thinking_text_delta";
90549
- readonly ToolUse: "tool_use";
91994
+ readonly ThinkingTextComplete: "thinking_text_complete";
91995
+ readonly ToolCallDelta: "tool_call_delta";
90550
91996
  readonly ToolResult: "tool_result";
90551
91997
  readonly ToolProgress: "tool_progress";
90552
91998
  readonly WorkingStateChanged: "working_state_changed";
90553
91999
  readonly TokenUsageUpdate: "token_usage_update";
90554
- readonly CreateMessage: "create_message";
90555
92000
  readonly PermissionResolved: "permission_resolved";
90556
92001
  readonly SettingsUpdated: "settings_updated";
90557
92002
  readonly SessionTitleUpdated: "session_title_updated";
@@ -90564,24 +92009,41 @@ declare const DroidMessageType: {
90564
92009
  readonly MissionWorkerCompleted: "mission_worker_completed";
90565
92010
  readonly McpAuthRequired: "mcp_auth_required";
90566
92011
  readonly McpAuthCompleted: "mcp_auth_completed";
92012
+ readonly Hook: "hook";
90567
92013
  readonly Error: "error";
90568
- readonly TurnComplete: "turn_complete";
92014
+ readonly Result: "result";
90569
92015
  };
90570
92016
  type DroidMessageType = (typeof DroidMessageType)[keyof typeof DroidMessageType];
90571
- declare function convertNotificationToStreamMessage(raw: unknown): DroidMessage | DroidMessage[] | null;
92017
+ declare function convertNotificationToStreamMessage(raw: unknown): InternalDroidMessage | InternalDroidMessage[] | null;
90572
92018
  /**
90573
92019
  * Tracks working state to detect turn completion (non-idle → idle transition).
90574
92020
  * Create a fresh instance per `stream()` call.
90575
92021
  */
90576
92022
  declare class StreamStateTracker {
92023
+ private readonly options;
90577
92024
  private hasBeenNonIdle;
90578
92025
  private lastTokenUsage;
92026
+ private fullText;
92027
+ private finalAssistantText;
92028
+ private structuredOutput;
92029
+ private structuredOutputError;
92030
+ private errors;
92031
+ private numTurns;
92032
+ private emittedMessages;
90579
92033
  private toolNameMap;
92034
+ constructor(options?: {
92035
+ sessionId?: string;
92036
+ startedAt?: number;
92037
+ hasOutputFormat?: boolean;
92038
+ });
90580
92039
  private getToolName;
90581
- processMessage(message: DroidMessage): {
90582
- message: DroidMessage;
90583
- additional: DroidMessage[];
92040
+ processMessage(message: InternalDroidMessage): {
92041
+ message: InternalDroidMessage | null;
92042
+ additional: InternalDroidMessage[];
90584
92043
  };
92044
+ private createResultMessage;
92045
+ private trackEmittedMessage;
92046
+ private resetTurnState;
90585
92047
  }
90586
92048
 
90587
92049
  type ToolInputShape = Record<string, z.ZodTypeAny>;
@@ -90635,37 +92097,19 @@ interface SessionInitOptions extends ToolSelectionOverrides {
90635
92097
  tags?: SessionTag[];
90636
92098
  }
90637
92099
 
90638
- /** Aggregated result from a non-streaming `session.send()` call. */
90639
- interface DroidResult {
90640
- /** Session that produced this result. */
90641
- sessionId: string;
90642
- /** Concatenated assistant text deltas emitted during the turn. */
90643
- text: string;
90644
- /** All stream messages emitted during the turn. */
90645
- messages: DroidMessage[];
90646
- /** Latest token usage update for the turn, when reported by Droid. */
90647
- tokenUsage: TokenUsageUpdate | null;
90648
- /** Wall-clock duration spent consuming the turn. */
90649
- durationMs: number;
90650
- /** Number of completed turns observed while consuming the stream. */
90651
- turnCount: number;
90652
- /** First error event emitted during the turn, if any. */
90653
- error: ErrorEvent | null;
90654
- /** Structured JSON object emitted by the turn, when requested. */
90655
- structuredOutput: JsonObject | null;
90656
- /** True when the stream completed without an error event. */
90657
- success: boolean;
90658
- }
92100
+ /** Aggregated result from a one-shot {@link run} call. */
92101
+ type DroidResult = DroidResultMessage;
90659
92102
  interface CreateSessionOptions extends SessionInitOptions, HandlerOptions, TransportCreationOptions {
90660
92103
  abortSignal?: AbortSignal;
90661
92104
  }
90662
- interface ResumeSessionOptions extends Pick<CreateSessionOptions, 'execPath' | 'execArgs' | 'cwd' | 'env' | 'permissionHandler' | 'askUserHandler' | 'transport' | 'abortSignal'> {
92105
+ interface ResumeSessionOptions extends Pick<CreateSessionOptions, 'execPath' | 'execArgs' | 'env' | 'permissionHandler' | 'askUserHandler' | 'transport' | 'abortSignal'> {
90663
92106
  mcpServers?: DroidMcpServerConfig[];
90664
92107
  }
90665
92108
  interface MessageOptions {
90666
92109
  images?: Base64ImageSource[];
90667
92110
  files?: DocumentSource[];
90668
92111
  outputFormat?: OutputFormat;
92112
+ includePartialMessages?: boolean;
90669
92113
  abortSignal?: AbortSignal;
90670
92114
  }
90671
92115
  /** Create instances via {@link createSession} or {@link resumeSession}. */
@@ -90676,6 +92120,7 @@ declare class DroidSession {
90676
92120
  private _closed;
90677
92121
  private _cleanupAbortSignal;
90678
92122
  private _cleanupCallbacks;
92123
+ private readonly _activeBridges;
90679
92124
  /** @internal */
90680
92125
  constructor(client: DroidClient, sessionId: string, initResult: InitializeSessionResult | LoadSessionResult);
90681
92126
  get sessionId(): string;
@@ -90684,10 +92129,14 @@ declare class DroidSession {
90684
92129
  setAbortSignalCleanup(cleanup: () => void): void;
90685
92130
  /** @internal */
90686
92131
  addCleanup(cleanup: () => Promise<void> | void): void;
90687
- /** Yields {@link DroidMessage} events until `turn_complete`. */
90688
- stream(text: string, options?: MessageOptions): AsyncGenerator<DroidMessage, void, undefined>;
90689
- /** Consumes the stream and returns an aggregated {@link DroidResult}. */
90690
- send(text: string, options?: MessageOptions): Promise<DroidResult>;
92132
+ /** Yields message-level events until the final `result` message. */
92133
+ stream(prompt: string, options?: MessageOptions & {
92134
+ includePartialMessages?: false;
92135
+ }): AsyncGenerator<DroidStreamMessage, void, undefined>;
92136
+ /** Yields message-level events plus partial chunks until the final `result` message. */
92137
+ stream(prompt: string, options: MessageOptions & {
92138
+ includePartialMessages: true;
92139
+ }): AsyncGenerator<DroidStreamEvent, void, undefined>;
90691
92140
  interrupt(): Promise<void>;
90692
92141
  close(): Promise<void>;
90693
92142
  updateSettings(params: Partial<UpdateSessionSettingsRequestParams>): Promise<UpdateSessionSettingsResult>;
@@ -90710,30 +92159,24 @@ declare class DroidSession {
90710
92159
  private _ensureNotClosed;
90711
92160
  }
90712
92161
  declare function createSession(options?: CreateSessionOptions): Promise<DroidSession>;
90713
- /** @throws {SessionNotFoundError} If the session ID does not exist. */
90714
- declare function resumeSession(sessionId: string, options?: ResumeSessionOptions): Promise<DroidSession>;
90715
-
90716
- interface QueryOptions extends CreateSessionOptions {
90717
- prompt: string;
90718
- }
90719
- interface DroidQuery extends AsyncGenerator<DroidMessage, void, undefined> {
90720
- interrupt(): Promise<void>;
90721
- abort(): void;
90722
- /** `null` before initialization completes. */
90723
- readonly sessionId: string | null;
90724
- /** `null` before initialization completes. */
90725
- readonly initResult: InitializeSessionResult | null;
90726
- readonly initialized: Promise<InitializeSessionResult>;
90727
- }
90728
92162
  /**
90729
- * Spawns a droid process, initializes a session, sends the prompt, and
90730
- * yields {@link DroidMessage} events. Resources are cleaned up automatically.
92163
+ * Resumes an existing Droid session.
92164
+ *
92165
+ * The resumed session always runs in the working directory that was persisted
92166
+ * with the session at creation time. `resumeSession()` intentionally does not
92167
+ * accept a `cwd` option: the persisted session cwd is authoritative. The
92168
+ * underlying subprocess is launched in the host process's `process.cwd()`, but
92169
+ * this does not affect the session's working directory as far as the Droid is
92170
+ * concerned. To run in a different directory, create a new session or fork the
92171
+ * existing one.
92172
+ *
92173
+ * @throws {SessionNotFoundError} If the session ID does not exist.
90731
92174
  */
90732
- declare function query(options: QueryOptions): DroidQuery;
92175
+ declare function resumeSession(sessionId: string, options?: ResumeSessionOptions): Promise<DroidSession>;
90733
92176
 
90734
- interface RunOptions extends CreateSessionOptions, MessageOptions {
92177
+ interface RunOptions extends CreateSessionOptions, Omit<MessageOptions, 'includePartialMessages'> {
90735
92178
  }
90736
- declare function run(text: string, options?: RunOptions): Promise<DroidResult>;
92179
+ declare function run(prompt: string, options?: RunOptions): Promise<DroidResult>;
90737
92180
 
90738
92181
  /**
90739
92182
  * List droid sessions stored on disk.
@@ -90761,4 +92204,4 @@ declare function run(text: string, options?: RunOptions): Promise<DroidResult>;
90761
92204
  */
90762
92205
  declare function listSessions(options?: ListSessionsOptions): Promise<SessionMetadata[]>;
90763
92206
 
90764
- export { type AddMcpServerRequest, type AddMcpServerRequestParams, AddMcpServerRequestParamsSchema, AddMcpServerRequestSchema, type AddMcpServerResponse, AddMcpServerResponseSchema, type AddMcpServerResult, AddMcpServerResultSchema, type AddUserMessageRequest, type AddUserMessageRequestParams, AddUserMessageRequestParamsSchema, AddUserMessageRequestSchema, type AddUserMessageResponse, AddUserMessageResponseSchema, type AddUserMessageResult, AddUserMessageResultSchema, type ApplyPatchToolConfirmationDetails, ApplyPatchToolConfirmationDetailsSchema, type AskUserCollectedAnswer, AskUserCollectedAnswerSchema, type AskUserConfirmationDetails, AskUserConfirmationDetailsSchema, type AskUserHandler, type AskUserQuestion, AskUserQuestionSchema, type AskUserRequest, type AskUserRequestParams, AskUserRequestParamsSchema, AskUserRequestSchema, type AskUserResponse, AskUserResponseSchema, type AskUserResult, AskUserResultSchema, type AssistantTextDelta, type AssistantTextDeltaNotification, AssistantTextDeltaNotificationSchema, type AuthenticateMcpServerRequest, type AuthenticateMcpServerRequestParams, AuthenticateMcpServerRequestParamsSchema, AuthenticateMcpServerRequestSchema, type AuthenticateMcpServerResponse, AuthenticateMcpServerResponseSchema, type AuthenticateMcpServerResult, AuthenticateMcpServerResultSchema, AutonomyLevel, AutonomyMode, type AvailableModelConfig, AvailableModelConfigSchema, type Base64ImageSource, Base64ImageSourceSchema, type BaseNotification, BaseNotificationSchema, type BaseRequest, BaseRequestSchema, type BaseResponseFailure, BaseResponseFailureSchema, type BaseResponseSuccess, BaseResponseSuccessSchema, COMPACTION_TIMEOUT, type CancelMcpAuthRequest, type CancelMcpAuthRequestParams, CancelMcpAuthRequestParamsSchema, CancelMcpAuthRequestSchema, type CancelMcpAuthResponse, CancelMcpAuthResponseSchema, type CancelMcpAuthResult, CancelMcpAuthResultSchema, type ClearMcpAuthRequest, type ClearMcpAuthRequestParams, ClearMcpAuthRequestParamsSchema, ClearMcpAuthRequestSchema, type ClearMcpAuthResponse, ClearMcpAuthResponseSchema, type ClearMcpAuthResult, ClearMcpAuthResultSchema, type CliRequestOrNotification, CliRequestOrNotificationSchema, type ClientAskUserHandler, type ClientPermissionHandler, type ClientRequest, ClientRequestSchema, type CompactSessionRequest, type CompactSessionRequestParams, CompactSessionRequestParamsSchema, CompactSessionRequestSchema, type CompactSessionResponse, CompactSessionResponseSchema, type CompactSessionResult, CompactSessionResultSchema, ConnectionError, type ContentBlock, ContentBlockSchema, type ContextStats, ContextStatsAccuracy, ContextStatsSchema, type CreateMessage, type CreateMessageNotification, CreateMessageNotificationSchema, type CreateSessionOptions, type CreateToolConfirmationDetails, CreateToolConfirmationDetailsSchema, DEFAULT_REQUEST_TIMEOUT, DecompSessionType, type DiscoveredIssue, DiscoveredIssueSchema, type DismissalRecord, DismissalRecordSchema, DismissalType, type DocumentBlock, DocumentBlockSchema, type DocumentSource, DocumentSourceSchema, DroidClient, DroidClientMethod, type DroidClientOptions, type DroidClientTransport, DroidErrorType, DroidInteractionMode, type DroidMcpServerConfig, type DroidMessage, DroidMessageType, type DroidQuery, type DroidResult, DroidServerMethod, DroidSession, type DroidTool, type DroidToolResult, DroidWorkingState, type DroidWorkingStateChangedNotification, DroidWorkingStateChangedNotificationSchema, type EditToolConfirmationDetails, EditToolConfirmationDetailsSchema, type EmptyResult, EmptyResultSchema, type ErrorCallback, type ErrorDetail, ErrorDetailSchema, type ErrorEvent, type ErrorNotification, ErrorNotificationSchema, type ExecToolInfo, ExecToolInfoSchema, type ExecuteRewindRequest, type ExecuteRewindRequestParams, ExecuteRewindRequestParamsSchema, ExecuteRewindRequestSchema, type ExecuteRewindResponse, ExecuteRewindResponseSchema, type ExecuteRewindResult, ExecuteRewindResultSchema, type ExecuteToolConfirmationDetails, ExecuteToolConfirmationDetailsSchema, type ExitSpecModeConfirmationDetails, ExitSpecModeConfirmationDetailsSchema, FACTORY_CLIENT_HEADER, FACTORY_CLIENT_VERSION, FACTORY_PROTOCOL_VERSION, type FactoryDroidMessage, FactoryDroidMessageRole, FactoryDroidMessageSchema, FeatureStatus, FeatureSuccessState, FeatureSuccessStateSchema, type ForkSessionRequest, type ForkSessionRequestParams, ForkSessionRequestParamsSchema, ForkSessionRequestSchema, type ForkSessionResponse, ForkSessionResponseSchema, type ForkSessionResult, ForkSessionResultSchema, type GetContextStatsRequest, type GetContextStatsRequestParams, GetContextStatsRequestParamsSchema, GetContextStatsRequestSchema, type GetContextStatsResponse, GetContextStatsResponseSchema, type GetContextStatsResult, GetContextStatsResultSchema, type GetRewindInfoRequest, type GetRewindInfoRequestParams, GetRewindInfoRequestParamsSchema, GetRewindInfoRequestSchema, type GetRewindInfoResponse, GetRewindInfoResponseSchema, type GetRewindInfoResult, GetRewindInfoResultSchema, type GitRepoInfo, GitRepoInfoSchema, type Handoff, type HandoffItemsDismissedEntry, HandoffItemsDismissedEntrySchema, HandoffSchema, type HttpHeader, HttpHeaderSchema, type HttpMcpConfig, HttpMcpConfigSchema, type ImageBlock, ImageBlockSchema, type InitializeSessionRequest, type InitializeSessionRequestParams, InitializeSessionRequestParamsSchema, InitializeSessionRequestSchema, type InitializeSessionResponse, InitializeSessionResponseSchema, type InitializeSessionResult, InitializeSessionResultSchema, type InteractiveCheck, InteractiveCheckSchema, type InterruptSessionRequest, type InterruptSessionRequestParams, InterruptSessionRequestParamsSchema, InterruptSessionRequestSchema, type InterruptSessionResponse, InterruptSessionResponseSchema, type InterruptSessionResult, InterruptSessionResultSchema, IssueSeverity, JSONRPC_VERSION, type JsonArray, JsonArraySchema, type JsonObject, JsonObjectSchema, type JsonPrimitive, type JsonRpcEnvelope, JsonRpcEnvelopeSchema, type JsonRpcError, JsonRpcErrorCode, JsonRpcErrorSchema, type JsonRpcMessage, JsonRpcMessageSchema, JsonRpcMessageType, type JsonRpcNotification, JsonRpcNotificationSchema, type JsonRpcRequest, JsonRpcRequestSchema, type JsonRpcResponse, type JsonRpcResponseFailure, JsonRpcResponseFailureSchema, JsonRpcResponseSchema, type JsonRpcResponseSuccess, JsonRpcResponseSuccessSchema, type JsonValue, JsonValueSchema, type KillWorkerSessionRequest, type KillWorkerSessionRequestParams, KillWorkerSessionRequestParamsSchema, KillWorkerSessionRequestSchema, type KillWorkerSessionResponse, KillWorkerSessionResponseSchema, type KillWorkerSessionResult, KillWorkerSessionResultSchema, LEGACY_FACTORY_API_VERSION, type ListMcpRegistryRequest, type ListMcpRegistryRequestParams, ListMcpRegistryRequestParamsSchema, ListMcpRegistryRequestSchema, type ListMcpRegistryResponse, ListMcpRegistryResponseSchema, type ListMcpRegistryResult, ListMcpRegistryResultSchema, type ListMcpServersRequest, type ListMcpServersRequestParams, ListMcpServersRequestParamsSchema, ListMcpServersRequestSchema, type ListMcpServersResponse, ListMcpServersResponseSchema, type ListMcpServersResult, ListMcpServersResultSchema, type ListMcpToolsRequest, type ListMcpToolsRequestParams, ListMcpToolsRequestParamsSchema, ListMcpToolsRequestSchema, type ListMcpToolsResponse, ListMcpToolsResponseSchema, type ListMcpToolsResult, ListMcpToolsResultSchema, type ListSessionsOptions, type ListSkillsRequest, type ListSkillsRequestParams, ListSkillsRequestParamsSchema, ListSkillsRequestSchema, type ListSkillsResponse, ListSkillsResponseSchema, type ListSkillsResult, ListSkillsResultSchema, type ListToolsRequest, type ListToolsRequestParams, ListToolsRequestParamsSchema, ListToolsRequestSchema, type ListToolsResponse, ListToolsResponseSchema, type ListToolsResult, ListToolsResultSchema, type LoadSessionRequest, type LoadSessionRequestParams, LoadSessionRequestParamsSchema, LoadSessionRequestSchema, type LoadSessionResponse, LoadSessionResponseSchema, type LoadSessionResult, LoadSessionResultSchema, MCP_AUTH_TIMEOUT, type McpAuthCompleted, type McpAuthCompletedNotification, McpAuthCompletedNotificationSchema, McpAuthOutcome, type McpAuthRequired, type McpAuthRequiredNotification, McpAuthRequiredNotificationSchema, type McpHttpServerConfigFields, McpHttpServerConfigFieldsSchema, type McpRegistryServer, McpRegistryServerSchema, type McpServerConfig, McpServerConfigSchema, McpServerStatus, type McpServerStatusInfo, McpServerStatusInfoSchema, McpServerType, type McpSseServerConfigFields, McpSseServerConfigFieldsSchema, McpStatus, type McpStatusChanged, type McpStatusChangedNotification, McpStatusChangedNotificationSchema, type McpStatusSummary, McpStatusSummarySchema, type McpStdioServerConfigFields, McpStdioServerConfigFieldsSchema, type McpToolConfirmationDetails, McpToolConfirmationDetailsSchema, type McpToolInfo, McpToolInfoSchema, type McpToolInputSchema, McpToolInputSchemaSchema, type MessageCallback, type MessageOptions, type MilestoneValidationTriggeredEntry, MilestoneValidationTriggeredEntrySchema, type MissionAcceptedEntry, MissionAcceptedEntrySchema, type MissionFeature, MissionFeatureSchema, type MissionFeaturesChanged, type MissionFeaturesChangedNotification, MissionFeaturesChangedNotificationSchema, type MissionHeartbeat, type MissionHeartbeatNotification, MissionHeartbeatNotificationSchema, type MissionPausedEntry, MissionPausedEntrySchema, type MissionProgressEntry, type MissionProgressEntryNotification, MissionProgressEntryNotificationSchema, type MissionResumedEntry, MissionResumedEntrySchema, type MissionRunStartedEntry, MissionRunStartedEntrySchema, type MissionSnapshot, MissionSnapshotSchema, MissionState, type MissionStateChanged, type MissionStateChangedNotification, MissionStateChangedNotificationSchema, type MissionWorkerCompleted, type MissionWorkerCompletedNotification, MissionWorkerCompletedNotificationSchema, type MissionWorkerStarted, type MissionWorkerStartedNotification, MissionWorkerStartedNotificationSchema, ModelProvider, type NotificationCallback, type NotificationFilter, type OutputFormat, OutputFormatSchema, OutputFormatType, type PermissionHandler, type PermissionResolved, type PermissionResolvedNotification, PermissionResolvedNotificationSchema, ProcessExitError, ProcessTransport, type ProcessTransportOptions, type ProgressLogEntry, ProgressLogEntrySchema, ProgressLogEntryType, type ProposeMissionConfirmationDetails, ProposeMissionConfirmationDetailsSchema, ProtocolEngine, ProtocolError, type QueryOptions, REWIND_TIMEOUT, ReasoningEffort, type RedactedThinkingBlock, RedactedThinkingBlockSchema, type RemoveMcpServerRequest, type RemoveMcpServerRequestParams, RemoveMcpServerRequestParamsSchema, RemoveMcpServerRequestSchema, type RemoveMcpServerResponse, RemoveMcpServerResponseSchema, type RemoveMcpServerResult, RemoveMcpServerResultSchema, type RenameSessionRequest, type RenameSessionRequestParams, RenameSessionRequestParamsSchema, RenameSessionRequestSchema, type RenameSessionResponse, RenameSessionResponseSchema, type RenameSessionResult, RenameSessionResultSchema, type RequestPermissionHandlerResult, type RequestPermissionRequest, type RequestPermissionRequestParams, RequestPermissionRequestParamsSchema, RequestPermissionRequestSchema, type RequestPermissionResponse, RequestPermissionResponseSchema, type RequestPermissionResult, RequestPermissionResultSchema, type RequestPermissionSelection, type ResumeSessionOptions, type RewindEvictedFile, RewindEvictedFileSchema, type RewindFileCreation, RewindFileCreationSchema, type RewindFileSnapshot, RewindFileSnapshotSchema, type RunOptions, SDK_TAG, SDK_VERSION, SESSION_INIT_TIMEOUT, SdkMcpServer, type SdkMcpServerOptions, SessionError, type SessionMetadata, SessionMetadataSchema, SessionNotFoundError, type SessionNotification, type SessionNotificationParams, SessionNotificationParamsSchema, type SessionNotificationPayload, SessionNotificationPayloadSchema, SessionNotificationSchema, SessionNotificationSchemaList, SessionNotificationType, type SessionSettings, type SessionSettingsFile, SessionSettingsFileSchema, SessionSettingsSchema, type SessionSource, SessionSourceSchema, type SessionStartEvent, SessionStartEventSchema, type SessionTag, SessionTagSchema, type SessionTitleUpdated, type SessionTitleUpdatedNotification, SessionTitleUpdatedNotificationSchema, type SessionTokenUsageChangedNotification, SessionTokenUsageChangedNotificationSchema, SettingsLevel, type SettingsUpdated, type SettingsUpdatedNotification, SettingsUpdatedNotificationSchema, type SettingsUpdatedPayload, SettingsUpdatedPayloadSchema, type SkillDeviation, SkillDeviationSchema, type SkillFeedback, SkillFeedbackSchema, type SkillInfo, SkillInfoSchema, SkillLocation, type SkillResource, SkillResourceSchema, type SseMcpConfig, SseMcpConfigSchema, type StartMissionRunConfirmationDetails, StartMissionRunConfirmationDetailsSchema, type StdioMcpConfig, StdioMcpConfigSchema, StreamStateTracker, type SubmitBugReportRequest, type SubmitBugReportRequestParams, SubmitBugReportRequestParamsSchema, SubmitBugReportRequestSchema, type SubmitBugReportResponse, SubmitBugReportResponseSchema, type SubmitBugReportResult, SubmitBugReportResultSchema, type SubmitMcpAuthCodeRequest, type SubmitMcpAuthCodeRequestParams, SubmitMcpAuthCodeRequestParamsSchema, SubmitMcpAuthCodeRequestSchema, type SubmitMcpAuthCodeResponse, SubmitMcpAuthCodeResponseSchema, type SubmitMcpAuthCodeResult, SubmitMcpAuthCodeResultSchema, type SuccessResult, SuccessResultSchema, type TestCase, TestCaseSchema, type TestFile, TestFileSchema, type Tests, TestsSchema, type TextBlock, TextBlockSchema, type ThinkingBlock, ThinkingBlockSchema, type ThinkingTextDelta, type ThinkingTextDeltaNotification, ThinkingTextDeltaNotificationSchema, TimeoutError, type ToggleMcpServerRequest, type ToggleMcpServerRequestParams, ToggleMcpServerRequestParamsSchema, ToggleMcpServerRequestSchema, type ToggleMcpServerResponse, ToggleMcpServerResponseSchema, type ToggleMcpServerResult, ToggleMcpServerResultSchema, type ToggleMcpToolRequest, type ToggleMcpToolRequestParams, ToggleMcpToolRequestParamsSchema, ToggleMcpToolRequestSchema, type ToggleMcpToolResponse, ToggleMcpToolResponseSchema, type ToggleMcpToolResult, ToggleMcpToolResultSchema, type TokenUsage, TokenUsageSchema, type TokenUsageUpdate, type ToolConfirmationDetails, ToolConfirmationDetailsSchema, type ToolConfirmationInfo, ToolConfirmationInfoSchema, type ToolConfirmationListItem, ToolConfirmationListItemSchema, ToolConfirmationOutcome, ToolConfirmationType, type ToolProgress, type ToolProgressUpdate, type ToolProgressUpdateNotification, ToolProgressUpdateNotificationSchema, ToolProgressUpdateSchema, type ToolResult, type ToolResultBlock, ToolResultBlockSchema, type ToolResultNotification, ToolResultNotificationSchema, type ToolSelectionOverrides, ToolSelectionOverridesSchema, type ToolUse, type ToolUseBlock, ToolUseBlockSchema, ToolUseSchema, type TraceContextMeta, TraceContextMetaSchema, type TurnComplete, type UpdateSessionSettingsRequest, type UpdateSessionSettingsRequestParams, UpdateSessionSettingsRequestParamsSchema, UpdateSessionSettingsRequestSchema, type UpdateSessionSettingsResponse, UpdateSessionSettingsResponseSchema, type UpdateSessionSettingsResult, UpdateSessionSettingsResultSchema, type Verification, type VerificationCommand, VerificationCommandSchema, VerificationSchema, type WorkerCompletedEntry, WorkerCompletedEntrySchema, type WorkerFailedEntry, WorkerFailedEntrySchema, type WorkerPausedEntry, WorkerPausedEntrySchema, type WorkerSelectedFeatureEntry, WorkerSelectedFeatureEntrySchema, type WorkerStartedEntry, WorkerStartedEntrySchema, type WorkerStateInfo, WorkerStateInfoSchema, type WorkingStateChanged, convertNotificationToStreamMessage, createSdkMcpServer, createSession, listSessions, query, resumeSession, run, tool };
92207
+ export { type AddMcpServerRequest, type AddMcpServerRequestParams, AddMcpServerRequestParamsSchema, AddMcpServerRequestSchema, type AddMcpServerResponse, AddMcpServerResponseSchema, type AddMcpServerResult, AddMcpServerResultSchema, type AddUserMessageRequest, type AddUserMessageRequestParams, AddUserMessageRequestParamsSchema, AddUserMessageRequestSchema, type AddUserMessageResponse, AddUserMessageResponseSchema, type AddUserMessageResult, AddUserMessageResultSchema, type ApplyPatchToolConfirmationDetails, ApplyPatchToolConfirmationDetailsSchema, type AskUserCollectedAnswer, AskUserCollectedAnswerSchema, type AskUserConfirmationDetails, AskUserConfirmationDetailsSchema, type AskUserHandler, type AskUserQuestion, AskUserQuestionSchema, type AskUserRequest, type AskUserRequestParams, AskUserRequestParamsSchema, AskUserRequestSchema, type AskUserResponse, AskUserResponseSchema, type AskUserResult, AskUserResultSchema, type AssistantTextComplete, type AssistantTextCompleteNotification, AssistantTextCompleteNotificationSchema, type AssistantTextDelta, type AssistantTextDeltaNotification, AssistantTextDeltaNotificationSchema, type AuthenticateMcpServerRequest, type AuthenticateMcpServerRequestParams, AuthenticateMcpServerRequestParamsSchema, AuthenticateMcpServerRequestSchema, type AuthenticateMcpServerResponse, AuthenticateMcpServerResponseSchema, type AuthenticateMcpServerResult, AuthenticateMcpServerResultSchema, AutonomyLevel, AutonomyMode, type AvailableModelConfig, AvailableModelConfigSchema, type Base64ImageSource, Base64ImageSourceSchema, type BaseDroidHookInput, type BaseNotification, BaseNotificationSchema, type BaseRequest, BaseRequestSchema, type BaseResponseFailure, BaseResponseFailureSchema, type BaseResponseSuccess, BaseResponseSuccessSchema, COMPACTION_TIMEOUT, type CancelMcpAuthRequest, type CancelMcpAuthRequestParams, CancelMcpAuthRequestParamsSchema, CancelMcpAuthRequestSchema, type CancelMcpAuthResponse, CancelMcpAuthResponseSchema, type CancelMcpAuthResult, CancelMcpAuthResultSchema, type ClearMcpAuthRequest, type ClearMcpAuthRequestParams, ClearMcpAuthRequestParamsSchema, ClearMcpAuthRequestSchema, type ClearMcpAuthResponse, ClearMcpAuthResponseSchema, type ClearMcpAuthResult, ClearMcpAuthResultSchema, type CliRequestOrNotification, CliRequestOrNotificationSchema, type ClientAskUserHandler, type ClientPermissionHandler, type ClientRequest, ClientRequestSchema, type CloseSessionRequest, type CloseSessionRequestParams, CloseSessionRequestParamsSchema, CloseSessionRequestSchema, type CloseSessionResponse, CloseSessionResponseSchema, type CloseSessionResult, CloseSessionResultSchema, type CompactSessionRequest, type CompactSessionRequestParams, CompactSessionRequestParamsSchema, CompactSessionRequestSchema, type CompactSessionResponse, CompactSessionResponseSchema, type CompactSessionResult, CompactSessionResultSchema, ConnectionError, type ContentBlock, ContentBlockSchema, type ContextStats, ContextStatsAccuracy, ContextStatsSchema, type CreateMessage, type CreateMessageNotification, CreateMessageNotificationSchema, type CreateSessionOptions, type CreateToolConfirmationDetails, CreateToolConfirmationDetailsSchema, DEFAULT_REQUEST_TIMEOUT, DecompSessionType, type DiscoveredIssue, DiscoveredIssueSchema, type DismissalRecord, DismissalRecordSchema, DismissalType, type DocumentBlock, DocumentBlockSchema, type DocumentSource, DocumentSourceSchema, type DroidAssistantMessage, DroidClient, DroidClientMethod, type DroidClientOptions, type DroidClientTransport, type DroidErrorMessage, DroidErrorType, type DroidHookEvent, DroidHookEventSchema, type DroidHookExecutionResult, DroidHookExecutionResultSchema, type DroidHookInput, type DroidHookOutput, DroidHookOutputSchema, DroidHookSpecificOutputSchema, DroidInteractionMode, type DroidMcpServerConfig, type DroidMessage, DroidMessageType, type DroidPermissionMode, type DroidResult, type DroidResultMessage, DroidServerMethod, DroidSession, type DroidStreamEvent, type DroidStreamMessage, type DroidTool, type DroidToolCallMessage, type DroidToolResult, type DroidToolResultMessage, type DroidUserMessage, DroidWorkingState, type DroidWorkingStateChangedNotification, DroidWorkingStateChangedNotificationSchema, type EditToolConfirmationDetails, EditToolConfirmationDetailsSchema, type EmptyResult, EmptyResultSchema, type ErrorCallback, type ErrorDetail, ErrorDetailSchema, type ErrorEvent, type ErrorNotification, ErrorNotificationSchema, type ExecToolInfo, ExecToolInfoSchema, type ExecuteRewindRequest, type ExecuteRewindRequestParams, ExecuteRewindRequestParamsSchema, ExecuteRewindRequestSchema, type ExecuteRewindResponse, ExecuteRewindResponseSchema, type ExecuteRewindResult, ExecuteRewindResultSchema, type ExecuteToolConfirmationDetails, ExecuteToolConfirmationDetailsSchema, type ExitSpecModeConfirmationDetails, ExitSpecModeConfirmationDetailsSchema, FACTORY_CLIENT_HEADER, FACTORY_CLIENT_VERSION, FACTORY_PROTOCOL_VERSION, type FactoryDroidMessage, FactoryDroidMessageRole, FactoryDroidMessageSchema, FeatureStatus, FeatureSuccessState, FeatureSuccessStateSchema, type ForkSessionRequest, type ForkSessionRequestParams, ForkSessionRequestParamsSchema, ForkSessionRequestSchema, type ForkSessionResponse, ForkSessionResponseSchema, type ForkSessionResult, ForkSessionResultSchema, type GetContextStatsRequest, type GetContextStatsRequestParams, GetContextStatsRequestParamsSchema, GetContextStatsRequestSchema, type GetContextStatsResponse, GetContextStatsResponseSchema, type GetContextStatsResult, GetContextStatsResultSchema, type GetRewindInfoRequest, type GetRewindInfoRequestParams, GetRewindInfoRequestParamsSchema, GetRewindInfoRequestSchema, type GetRewindInfoResponse, GetRewindInfoResponseSchema, type GetRewindInfoResult, GetRewindInfoResultSchema, type GitRepoInfo, GitRepoInfoSchema, type Handoff, type HandoffItemsDismissedEntry, HandoffItemsDismissedEntrySchema, HandoffSchema, type HookCommand, HookCommandSchema, type HookExecution, type HookExecutionCompletedNotification, HookExecutionCompletedNotificationSchema, type HookExecutionStartedNotification, HookExecutionStartedNotificationSchema, type HookResult, HookResultSchema, type HttpHeader, HttpHeaderSchema, type HttpMcpConfig, HttpMcpConfigSchema, type ImageBlock, ImageBlockSchema, type InitializeSessionRequest, type InitializeSessionRequestParams, InitializeSessionRequestParamsSchema, InitializeSessionRequestSchema, type InitializeSessionResponse, InitializeSessionResponseSchema, type InitializeSessionResult, InitializeSessionResultSchema, type InteractiveCheck, InteractiveCheckSchema, type InterruptSessionRequest, type InterruptSessionRequestParams, InterruptSessionRequestParamsSchema, InterruptSessionRequestSchema, type InterruptSessionResponse, InterruptSessionResponseSchema, type InterruptSessionResult, InterruptSessionResultSchema, IssueSeverity, JSONRPC_VERSION, type JsonArray, JsonArraySchema, type JsonObject, JsonObjectSchema, type JsonPrimitive, type JsonRpcEnvelope, JsonRpcEnvelopeSchema, type JsonRpcError, JsonRpcErrorCode, JsonRpcErrorSchema, type JsonRpcMessage, JsonRpcMessageSchema, JsonRpcMessageType, type JsonRpcNotification, JsonRpcNotificationSchema, type JsonRpcRequest, JsonRpcRequestSchema, type JsonRpcResponse, type JsonRpcResponseFailure, JsonRpcResponseFailureSchema, JsonRpcResponseSchema, type JsonRpcResponseSuccess, JsonRpcResponseSuccessSchema, type JsonValue, JsonValueSchema, type KillWorkerSessionRequest, type KillWorkerSessionRequestParams, KillWorkerSessionRequestParamsSchema, KillWorkerSessionRequestSchema, type KillWorkerSessionResponse, KillWorkerSessionResponseSchema, type KillWorkerSessionResult, KillWorkerSessionResultSchema, LEGACY_FACTORY_API_VERSION, type ListMcpRegistryRequest, type ListMcpRegistryRequestParams, ListMcpRegistryRequestParamsSchema, ListMcpRegistryRequestSchema, type ListMcpRegistryResponse, ListMcpRegistryResponseSchema, type ListMcpRegistryResult, ListMcpRegistryResultSchema, type ListMcpServersRequest, type ListMcpServersRequestParams, ListMcpServersRequestParamsSchema, ListMcpServersRequestSchema, type ListMcpServersResponse, ListMcpServersResponseSchema, type ListMcpServersResult, ListMcpServersResultSchema, type ListMcpToolsRequest, type ListMcpToolsRequestParams, ListMcpToolsRequestParamsSchema, ListMcpToolsRequestSchema, type ListMcpToolsResponse, ListMcpToolsResponseSchema, type ListMcpToolsResult, ListMcpToolsResultSchema, type ListSessionsOptions, type ListSkillsRequest, type ListSkillsRequestParams, ListSkillsRequestParamsSchema, ListSkillsRequestSchema, type ListSkillsResponse, ListSkillsResponseSchema, type ListSkillsResult, ListSkillsResultSchema, type ListToolsRequest, type ListToolsRequestParams, ListToolsRequestParamsSchema, ListToolsRequestSchema, type ListToolsResponse, ListToolsResponseSchema, type ListToolsResult, ListToolsResultSchema, type LoadSessionRequest, type LoadSessionRequestParams, LoadSessionRequestParamsSchema, LoadSessionRequestSchema, type LoadSessionResponse, LoadSessionResponseSchema, type LoadSessionResult, LoadSessionResultSchema, MCP_AUTH_TIMEOUT, type McpAuthCompleted, type McpAuthCompletedNotification, McpAuthCompletedNotificationSchema, McpAuthOutcome, type McpAuthRequired, type McpAuthRequiredNotification, McpAuthRequiredNotificationSchema, type McpHttpServerConfigFields, McpHttpServerConfigFieldsSchema, type McpRegistryServer, McpRegistryServerSchema, type McpServerConfig, McpServerConfigSchema, McpServerStatus, type McpServerStatusInfo, McpServerStatusInfoSchema, McpServerType, type McpSseServerConfigFields, McpSseServerConfigFieldsSchema, McpStatus, type McpStatusChanged, type McpStatusChangedNotification, McpStatusChangedNotificationSchema, type McpStatusSummary, McpStatusSummarySchema, type McpStdioServerConfigFields, McpStdioServerConfigFieldsSchema, type McpToolConfirmationDetails, McpToolConfirmationDetailsSchema, type McpToolInfo, McpToolInfoSchema, type McpToolInputSchema, McpToolInputSchemaSchema, type MessageCallback, type MessageOptions, type MilestoneValidationTriggeredEntry, MilestoneValidationTriggeredEntrySchema, type MissionAcceptedEntry, MissionAcceptedEntrySchema, type MissionFeature, MissionFeatureSchema, type MissionFeaturesChanged, type MissionFeaturesChangedNotification, MissionFeaturesChangedNotificationSchema, type MissionHeartbeat, type MissionHeartbeatNotification, MissionHeartbeatNotificationSchema, type MissionPausedEntry, MissionPausedEntrySchema, type MissionProgressEntry, type MissionProgressEntryNotification, MissionProgressEntryNotificationSchema, type MissionResumedEntry, MissionResumedEntrySchema, type MissionRunStartedEntry, MissionRunStartedEntrySchema, type MissionSnapshot, MissionSnapshotSchema, MissionState, type MissionStateChanged, type MissionStateChangedNotification, MissionStateChangedNotificationSchema, type MissionWorkerCompleted, type MissionWorkerCompletedNotification, MissionWorkerCompletedNotificationSchema, type MissionWorkerStarted, type MissionWorkerStartedNotification, MissionWorkerStartedNotificationSchema, ModelProvider, type NotificationCallback, type NotificationFilter, type NotificationHookInput, type NotificationListener, type OutputFormat, OutputFormatSchema, OutputFormatType, type PermissionHandler, type PermissionResolved, type PermissionResolvedNotification, PermissionResolvedNotificationSchema, type PreCompactHookInput, ProcessExitError, ProcessTransport, type ProcessTransportOptions, type ProgressLogEntry, ProgressLogEntrySchema, ProgressLogEntryType, type ProposeMissionConfirmationDetails, ProposeMissionConfirmationDetailsSchema, ProtocolEngine, ProtocolError, REWIND_TIMEOUT, ReasoningEffort, type RedactedThinkingBlock, RedactedThinkingBlockSchema, type RemoveMcpServerRequest, type RemoveMcpServerRequestParams, RemoveMcpServerRequestParamsSchema, RemoveMcpServerRequestSchema, type RemoveMcpServerResponse, RemoveMcpServerResponseSchema, type RemoveMcpServerResult, RemoveMcpServerResultSchema, type RenameSessionRequest, type RenameSessionRequestParams, RenameSessionRequestParamsSchema, RenameSessionRequestSchema, type RenameSessionResponse, RenameSessionResponseSchema, type RenameSessionResult, RenameSessionResultSchema, type RequestPermissionHandlerResult, type RequestPermissionRequest, type RequestPermissionRequestParams, RequestPermissionRequestParamsSchema, RequestPermissionRequestSchema, type RequestPermissionResponse, RequestPermissionResponseSchema, type RequestPermissionResult, RequestPermissionResultSchema, type RequestPermissionSelection, type ResumeSessionOptions, type RewindEvictedFile, RewindEvictedFileSchema, type RewindFileCreation, RewindFileCreationSchema, type RewindFileSnapshot, RewindFileSnapshotSchema, type RunOptions, SDK_TAG, SDK_VERSION, SESSION_INIT_TIMEOUT, SdkMcpServer, type SdkMcpServerOptions, type SessionEndHookInput, SessionError, type SessionMetadata, SessionMetadataSchema, SessionNotFoundError, type SessionNotification, type SessionNotificationParams, SessionNotificationParamsSchema, type SessionNotificationPayload, SessionNotificationPayloadSchema, SessionNotificationSchema, SessionNotificationSchemaList, SessionNotificationType, type SessionSettings, type SessionSettingsFile, SessionSettingsFileSchema, SessionSettingsSchema, type SessionSource, SessionSourceSchema, type SessionStartEvent, SessionStartEventSchema, type SessionStartHookInput, type SessionTag, SessionTagSchema, type SessionTitleUpdated, type SessionTitleUpdatedNotification, SessionTitleUpdatedNotificationSchema, type SessionTokenUsageChangedNotification, SessionTokenUsageChangedNotificationSchema, SettingsLevel, type SettingsUpdated, type SettingsUpdatedNotification, SettingsUpdatedNotificationSchema, type SettingsUpdatedPayload, SettingsUpdatedPayloadSchema, type SkillDeviation, SkillDeviationSchema, type SkillFeedback, SkillFeedbackSchema, type SkillInfo, SkillInfoSchema, SkillLocation, type SkillResource, SkillResourceSchema, type SseMcpConfig, SseMcpConfigSchema, type StartMissionRunConfirmationDetails, StartMissionRunConfirmationDetailsSchema, type StdioMcpConfig, StdioMcpConfigSchema, type StopHookInput, StreamStateTracker, type StructuredOutput, type StructuredOutputError, StructuredOutputErrorSchema, type StructuredOutputFields, type StructuredOutputNotification, StructuredOutputNotificationSchema, type SubagentStopHookInput, type SubmitBugReportRequest, type SubmitBugReportRequestParams, SubmitBugReportRequestParamsSchema, SubmitBugReportRequestSchema, type SubmitBugReportResponse, SubmitBugReportResponseSchema, type SubmitBugReportResult, SubmitBugReportResultSchema, type SubmitMcpAuthCodeRequest, type SubmitMcpAuthCodeRequestParams, SubmitMcpAuthCodeRequestParamsSchema, SubmitMcpAuthCodeRequestSchema, type SubmitMcpAuthCodeResponse, SubmitMcpAuthCodeResponseSchema, type SubmitMcpAuthCodeResult, SubmitMcpAuthCodeResultSchema, type SuccessResult, SuccessResultSchema, type TestCase, TestCaseSchema, type TestFile, TestFileSchema, type Tests, TestsSchema, type TextBlock, TextBlockSchema, type ThinkingBlock, ThinkingBlockSchema, type ThinkingTextComplete, type ThinkingTextCompleteNotification, ThinkingTextCompleteNotificationSchema, type ThinkingTextDelta, type ThinkingTextDeltaNotification, ThinkingTextDeltaNotificationSchema, TimeoutError, type ToggleMcpServerRequest, type ToggleMcpServerRequestParams, ToggleMcpServerRequestParamsSchema, ToggleMcpServerRequestSchema, type ToggleMcpServerResponse, ToggleMcpServerResponseSchema, type ToggleMcpServerResult, ToggleMcpServerResultSchema, type ToggleMcpToolRequest, type ToggleMcpToolRequestParams, ToggleMcpToolRequestParamsSchema, ToggleMcpToolRequestSchema, type ToggleMcpToolResponse, ToggleMcpToolResponseSchema, type ToggleMcpToolResult, ToggleMcpToolResultSchema, type TokenUsage, TokenUsageSchema, type TokenUsageUpdate, type ToolCallDelta, type ToolCallNotification, ToolCallNotificationSchema, type ToolConfirmationDetails, ToolConfirmationDetailsSchema, type ToolConfirmationInfo, ToolConfirmationInfoSchema, type ToolConfirmationListItem, ToolConfirmationListItemSchema, ToolConfirmationOutcome, ToolConfirmationType, type ToolHookInput, type ToolProgress, type ToolProgressUpdate, type ToolProgressUpdateNotification, ToolProgressUpdateNotificationSchema, ToolProgressUpdateSchema, type ToolResult, type ToolResultBlock, ToolResultBlockSchema, type ToolResultNotification, ToolResultNotificationSchema, type ToolSelectionOverrides, ToolSelectionOverridesSchema, type ToolUse, type ToolUseBlock, ToolUseBlockSchema, ToolUseSchema, type TraceContextMeta, TraceContextMetaSchema, type UpdateSessionSettingsRequest, type UpdateSessionSettingsRequestParams, UpdateSessionSettingsRequestParamsSchema, UpdateSessionSettingsRequestSchema, type UpdateSessionSettingsResponse, UpdateSessionSettingsResponseSchema, type UpdateSessionSettingsResult, UpdateSessionSettingsResultSchema, type UserPromptSubmitHookInput, type Verification, type VerificationCommand, VerificationCommandSchema, VerificationSchema, type WorkerCompletedEntry, WorkerCompletedEntrySchema, type WorkerFailedEntry, WorkerFailedEntrySchema, type WorkerPausedEntry, WorkerPausedEntrySchema, type WorkerSelectedFeatureEntry, WorkerSelectedFeatureEntrySchema, type WorkerStartedEntry, WorkerStartedEntrySchema, type WorkerStateInfo, WorkerStateInfoSchema, type WorkingStateChanged, convertNotificationToStreamMessage, createResponseSchema, createSdkMcpServer, createSession, dispatchNotification, listSessions, resumeSession, run, tool };