@tickernelz/paperclip-pro-adapter-utils 2026.1009.3 → 2026.1010.1

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 (47) hide show
  1. package/dist/types.d.ts +3 -0
  2. package/dist/types.d.ts.map +1 -1
  3. package/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +1 -1
  4. package/node_modules/@agentclientprotocol/sdk/dist/acp.js +1 -1
  5. package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -1
  6. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +62 -0
  7. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js +94 -1
  8. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js.map +1 -1
  9. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +1 -1
  10. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -1
  11. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +58 -75
  12. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +680 -1355
  13. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +88 -80
  14. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -1
  15. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +1 -0
  16. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js +19 -0
  17. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js.map +1 -1
  18. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +2 -2
  19. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +1 -1
  20. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +1 -1
  21. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +67 -0
  22. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +158 -15
  23. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +1 -1
  24. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +1 -1
  25. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +66 -55
  26. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +656 -870
  27. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +75 -69
  28. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +1 -1
  29. package/node_modules/@agentclientprotocol/sdk/package.json +1 -1
  30. package/node_modules/@agentclientprotocol/sdk/schema/schema.json +209 -67
  31. package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +206 -89
  32. package/node_modules/bare-fs/binding.c +1 -1
  33. package/node_modules/bare-fs/package.json +1 -1
  34. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  35. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  36. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  37. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  38. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  39. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  40. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  41. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  42. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  43. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  44. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  45. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  46. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  47. package/package.json +2 -2
@@ -39,8 +39,8 @@ export declare const zWriteTextFileRequest: z.ZodObject<{
39
39
  export declare const zReadTextFileRequest: z.ZodObject<{
40
40
  sessionId: z.ZodString;
41
41
  path: z.ZodString;
42
- line: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodInt>>>;
43
- limit: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodInt>>>;
42
+ line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
43
+ limit: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
44
44
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
45
45
  }, z.core.$strip>;
46
46
  /**
@@ -1148,22 +1148,14 @@ export declare const zEnvVariable: z.ZodObject<{
1148
1148
  export declare const zCreateTerminalRequest: z.ZodObject<{
1149
1149
  sessionId: z.ZodString;
1150
1150
  command: z.ZodString;
1151
- args: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
1152
- env: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodObject<{
1151
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
1152
+ env: z.ZodOptional<z.ZodArray<z.ZodObject<{
1153
1153
  name: z.ZodString;
1154
1154
  value: z.ZodString;
1155
1155
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1156
- }, z.core.$strip>>>, z.ZodTransform<{
1157
- name: string;
1158
- value: string;
1159
- _meta?: Record<string, unknown> | null | undefined;
1160
- }[], {
1161
- name: string;
1162
- value: string;
1163
- _meta?: Record<string, unknown> | null | undefined;
1164
- }[]>>>>;
1165
- cwd: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1166
- outputByteLimit: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1156
+ }, z.core.$strip>>>;
1157
+ cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1158
+ outputByteLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1167
1159
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1168
1160
  }, z.core.$strip>;
1169
1161
  /**
@@ -2846,8 +2838,8 @@ export declare const zAgentRequest: z.ZodObject<{
2846
2838
  }, z.core.$strip>, z.ZodObject<{
2847
2839
  sessionId: z.ZodString;
2848
2840
  path: z.ZodString;
2849
- line: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodInt>>>;
2850
- limit: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodInt>>>;
2841
+ line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2842
+ limit: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2851
2843
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
2852
2844
  }, z.core.$strip>, z.ZodObject<{
2853
2845
  sessionId: z.ZodString;
@@ -3155,22 +3147,14 @@ export declare const zAgentRequest: z.ZodObject<{
3155
3147
  }, z.core.$strip>, z.ZodObject<{
3156
3148
  sessionId: z.ZodString;
3157
3149
  command: z.ZodString;
3158
- args: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
3159
- env: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodObject<{
3150
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
3151
+ env: z.ZodOptional<z.ZodArray<z.ZodObject<{
3160
3152
  name: z.ZodString;
3161
3153
  value: z.ZodString;
3162
3154
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
3163
- }, z.core.$strip>>>, z.ZodTransform<{
3164
- name: string;
3165
- value: string;
3166
- _meta?: Record<string, unknown> | null | undefined;
3167
- }[], {
3168
- name: string;
3169
- value: string;
3170
- _meta?: Record<string, unknown> | null | undefined;
3171
- }[]>>>>;
3172
- cwd: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3173
- outputByteLimit: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
3155
+ }, z.core.$strip>>>;
3156
+ cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3157
+ outputByteLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3174
3158
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
3175
3159
  }, z.core.$strip>, z.ZodObject<{
3176
3160
  sessionId: z.ZodString;
@@ -4103,8 +4087,8 @@ export declare const zAuthMethodTerminal: z.ZodObject<{
4103
4087
  id: z.ZodString;
4104
4088
  name: z.ZodString;
4105
4089
  description: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4106
- args: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
4107
- env: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
4090
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
4091
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4108
4092
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4109
4093
  }, z.core.$strip>;
4110
4094
  /**
@@ -4128,8 +4112,8 @@ export declare const zAuthMethod: z.ZodUnion<readonly [z.ZodIntersection<z.ZodOb
4128
4112
  id: z.ZodString;
4129
4113
  name: z.ZodString;
4130
4114
  description: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4131
- args: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
4132
- env: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
4115
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
4116
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4133
4117
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4134
4118
  }, z.core.$strip>, z.ZodObject<{
4135
4119
  type: z.ZodLiteral<"terminal">;
@@ -4259,8 +4243,8 @@ export declare const zInitializeResponse: z.ZodObject<{
4259
4243
  id: z.ZodString;
4260
4244
  name: z.ZodString;
4261
4245
  description: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4262
- args: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
4263
- env: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
4246
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
4247
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4264
4248
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4265
4249
  }, z.core.$strip>, z.ZodObject<{
4266
4250
  type: z.ZodLiteral<"terminal">;
@@ -5844,8 +5828,8 @@ export declare const zAgentResponse: z.ZodUnion<readonly [z.ZodObject<{
5844
5828
  id: z.ZodString;
5845
5829
  name: z.ZodString;
5846
5830
  description: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5847
- args: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
5848
- env: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
5831
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
5832
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5849
5833
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
5850
5834
  }, z.core.$strip>, z.ZodObject<{
5851
5835
  type: z.ZodLiteral<"terminal">;
@@ -7563,21 +7547,11 @@ export declare const zUsageUpdate: z.ZodObject<{
7563
7547
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
7564
7548
  }, z.core.$strip>;
7565
7549
  /**
7566
- * **UNSTABLE**
7567
- *
7568
- * This capability is not part of the spec yet, and may be removed or changed at any point.
7569
- *
7570
7550
  * Severity hint for a session notice.
7571
- *
7572
- * @experimental
7573
7551
  */
7574
7552
  export declare const zNoticeSeverity: z.ZodUnion<readonly [z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">, z.ZodString]>;
7575
7553
  /**
7576
- * **UNSTABLE**
7577
- *
7578
- * This capability is not part of the spec yet, and may be removed or changed at any point.
7579
- *
7580
- * Fire-and-forget advisory information for the user.
7554
+ * Fire-and-forget information for the user.
7581
7555
  *
7582
7556
  * Notices are live events rather than session history. Agents must not rely on
7583
7557
  * a notice being received, displayed, or seen by the user.
@@ -7586,8 +7560,6 @@ export declare const zNoticeSeverity: z.ZodUnion<readonly [z.ZodLiteral<"info">,
7586
7560
  * message when the information should still be surfaced to the user.
7587
7561
  *
7588
7562
  * See RFD: [Session Notices](https://agentclientprotocol.com/rfds/session-notices)
7589
- *
7590
- * @experimental
7591
7563
  */
7592
7564
  export declare const zNotice: z.ZodObject<{
7593
7565
  severity: z.ZodUnion<readonly [z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">, z.ZodString]>;
@@ -7596,41 +7568,22 @@ export declare const zNotice: z.ZodObject<{
7596
7568
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
7597
7569
  }, z.core.$strip>;
7598
7570
  /**
7599
- * **UNSTABLE**
7600
- *
7601
- * This capability is not part of the spec yet, and may be removed or changed at any point.
7602
- *
7603
7571
  * Unique identifier for a context compaction within a session.
7604
- *
7605
- * @experimental
7606
7572
  */
7607
7573
  export declare const zCompactionId: z.ZodString;
7608
7574
  /**
7609
- * **UNSTABLE**
7610
- *
7611
- * This capability is not part of the spec yet, and may be removed or changed at any point.
7612
- *
7613
7575
  * Lifecycle state of a context compaction.
7614
- *
7615
- * @experimental
7616
7576
  */
7617
7577
  export declare const zCompactionStatus: z.ZodUnion<readonly [z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">, z.ZodLiteral<"failed">, z.ZodLiteral<"cancelled">, z.ZodString]>;
7618
7578
  /**
7619
- * **UNSTABLE**
7620
- *
7621
- * This capability is not part of the spec yet, and may be removed or changed at any point.
7622
- *
7623
- * A context compaction upsert. The first update fixes the compaction's
7579
+ * A context compaction upsert. The first notification fixes the compaction's
7624
7580
  * timeline position. Later updates with the same ID patch that entity in place.
7625
7581
  * Agents MUST only send this update when the Client advertised
7626
7582
  * [`ClientSessionCapabilities::compaction`].
7627
7583
  *
7628
7584
  * `summary`, `error`, and `_meta` have patch semantics: omission leaves the
7629
7585
  * stored value unchanged, `null` clears it, and a concrete value replaces it.
7630
- * `summary: []` also clears the retained summary. A non-empty summary is only
7631
- * valid with `completed`; `error` is only valid with `failed`.
7632
- *
7633
- * @experimental
7586
+ * `summary: []` also clears the summary.
7634
7587
  */
7635
7588
  export declare const zCompactionUpdate: z.ZodObject<{
7636
7589
  compactionId: z.ZodString;
@@ -7859,16 +7812,10 @@ export declare const zCompactionUpdate: z.ZodObject<{
7859
7812
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
7860
7813
  }, z.core.$strip>;
7861
7814
  /**
7862
- * **UNSTABLE**
7863
- *
7864
- * This capability is not part of the spec yet, and may be removed or changed at any point.
7865
- *
7866
- * A content block appended to the retained summary of an in-progress
7867
- * compaction. Agents send chunks only after an `in_progress` update and before
7868
- * the terminal update for the same ID. Agents MUST only send this update when
7869
- * the Client advertised [`ClientSessionCapabilities::compaction`].
7870
- *
7871
- * @experimental
7815
+ * A content block appended to a compaction's summary. A first-seen ID creates
7816
+ * an in-progress compaction. Chunks append in receive order.
7817
+ * Agents MUST only send this update when the Client advertised
7818
+ * [`ClientSessionCapabilities::compaction`].
7872
7819
  */
7873
7820
  export declare const zCompactionSummaryChunk: z.ZodObject<{
7874
7821
  compactionId: z.ZodString;
@@ -7987,21 +7934,167 @@ export declare const zRunningStateUpdate: z.ZodObject<{
7987
7934
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
7988
7935
  }, z.core.$strip>;
7989
7936
  /**
7990
- * The child is ready to process another prompt.
7937
+ * **UNSTABLE**
7938
+ *
7939
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
7940
+ *
7941
+ * Details of a failure that ended a child's foreground work.
7942
+ *
7943
+ * @experimental
7991
7944
  */
7992
- export declare const zIdleStateUpdate: z.ZodObject<{
7993
- stopReason: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"end_turn">, z.ZodLiteral<"max_tokens">, z.ZodLiteral<"max_turn_requests">, z.ZodLiteral<"refusal">, z.ZodLiteral<"cancelled">]>>>>;
7994
- usage: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
7995
- totalTokens: z.ZodNumber;
7996
- inputTokens: z.ZodNumber;
7997
- outputTokens: z.ZodNumber;
7998
- thoughtTokens: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
7999
- cachedReadTokens: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8000
- cachedWriteTokens: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8001
- _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
7945
+ export declare const zErrorStopReason: z.ZodObject<{
7946
+ error: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
7947
+ code: z.ZodUnion<readonly [z.ZodLiteral<-32700>, z.ZodLiteral<-32600>, z.ZodLiteral<-32601>, z.ZodLiteral<-32602>, z.ZodLiteral<-32603>, z.ZodLiteral<-32800>, z.ZodLiteral<-32000>, z.ZodLiteral<-32002>, z.ZodInt]>;
7948
+ message: z.ZodString;
7949
+ data: z.ZodCatch<z.ZodOptional<z.ZodUnknown>>;
8002
7950
  }, z.core.$strip>>>>;
8003
- _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
8004
7951
  }, z.core.$strip>;
7952
+ /**
7953
+ * The child is ready to process another prompt.
7954
+ *
7955
+ * An omitted, `null`, or malformed `stopReason` means not reported.
7956
+ *
7957
+ * Custom variants (unknown `stopReason` values) keep their extra
7958
+ * properties exactly as received; unlike known variants, those keys
7959
+ * bypass lenient-field salvage and arrive unvalidated.
7960
+ */
7961
+ export declare const zIdleStateUpdate: z.ZodPreprocess<z.ZodType<({
7962
+ stopReason: "end_turn";
7963
+ } | {
7964
+ stopReason: "max_tokens";
7965
+ } | {
7966
+ stopReason: "max_turn_requests";
7967
+ } | {
7968
+ stopReason: "refusal";
7969
+ } | {
7970
+ stopReason: "cancelled";
7971
+ } | ({
7972
+ error?: {
7973
+ code: number;
7974
+ message: string;
7975
+ data?: unknown;
7976
+ } | null | undefined;
7977
+ } & {
7978
+ stopReason: "error";
7979
+ }) | {
7980
+ stopReason: string;
7981
+ } | {
7982
+ stopReason?: null | undefined;
7983
+ }) & {
7984
+ usage?: {
7985
+ totalTokens: number;
7986
+ inputTokens: number;
7987
+ outputTokens: number;
7988
+ thoughtTokens?: number | null | undefined;
7989
+ cachedReadTokens?: number | null | undefined;
7990
+ cachedWriteTokens?: number | null | undefined;
7991
+ _meta?: Record<string, unknown> | null | undefined;
7992
+ } | null | undefined;
7993
+ _meta?: Record<string, unknown> | null | undefined;
7994
+ stopReason?: string | null | undefined;
7995
+ }, ({
7996
+ stopReason: "end_turn";
7997
+ } | {
7998
+ stopReason: "max_tokens";
7999
+ } | {
8000
+ stopReason: "max_turn_requests";
8001
+ } | {
8002
+ stopReason: "refusal";
8003
+ } | {
8004
+ stopReason: "cancelled";
8005
+ } | ({
8006
+ error?: {
8007
+ code: number;
8008
+ message: string;
8009
+ data?: unknown;
8010
+ } | null | undefined;
8011
+ } & {
8012
+ stopReason: "error";
8013
+ }) | {
8014
+ stopReason: string;
8015
+ } | {
8016
+ stopReason?: null | undefined;
8017
+ }) & {
8018
+ usage?: {
8019
+ totalTokens: number;
8020
+ inputTokens: number;
8021
+ outputTokens: number;
8022
+ thoughtTokens?: number | null | undefined;
8023
+ cachedReadTokens?: number | null | undefined;
8024
+ cachedWriteTokens?: number | null | undefined;
8025
+ _meta?: Record<string, unknown> | null | undefined;
8026
+ } | null | undefined;
8027
+ _meta?: Record<string, unknown> | null | undefined;
8028
+ stopReason?: string | null | undefined;
8029
+ }, z.core.$ZodTypeInternals<({
8030
+ stopReason: "end_turn";
8031
+ } | {
8032
+ stopReason: "max_tokens";
8033
+ } | {
8034
+ stopReason: "max_turn_requests";
8035
+ } | {
8036
+ stopReason: "refusal";
8037
+ } | {
8038
+ stopReason: "cancelled";
8039
+ } | ({
8040
+ error?: {
8041
+ code: number;
8042
+ message: string;
8043
+ data?: unknown;
8044
+ } | null | undefined;
8045
+ } & {
8046
+ stopReason: "error";
8047
+ }) | {
8048
+ stopReason: string;
8049
+ } | {
8050
+ stopReason?: null | undefined;
8051
+ }) & {
8052
+ usage?: {
8053
+ totalTokens: number;
8054
+ inputTokens: number;
8055
+ outputTokens: number;
8056
+ thoughtTokens?: number | null | undefined;
8057
+ cachedReadTokens?: number | null | undefined;
8058
+ cachedWriteTokens?: number | null | undefined;
8059
+ _meta?: Record<string, unknown> | null | undefined;
8060
+ } | null | undefined;
8061
+ _meta?: Record<string, unknown> | null | undefined;
8062
+ stopReason?: string | null | undefined;
8063
+ }, ({
8064
+ stopReason: "end_turn";
8065
+ } | {
8066
+ stopReason: "max_tokens";
8067
+ } | {
8068
+ stopReason: "max_turn_requests";
8069
+ } | {
8070
+ stopReason: "refusal";
8071
+ } | {
8072
+ stopReason: "cancelled";
8073
+ } | ({
8074
+ error?: {
8075
+ code: number;
8076
+ message: string;
8077
+ data?: unknown;
8078
+ } | null | undefined;
8079
+ } & {
8080
+ stopReason: "error";
8081
+ }) | {
8082
+ stopReason: string;
8083
+ } | {
8084
+ stopReason?: null | undefined;
8085
+ }) & {
8086
+ usage?: {
8087
+ totalTokens: number;
8088
+ inputTokens: number;
8089
+ outputTokens: number;
8090
+ thoughtTokens?: number | null | undefined;
8091
+ cachedReadTokens?: number | null | undefined;
8092
+ cachedWriteTokens?: number | null | undefined;
8093
+ _meta?: Record<string, unknown> | null | undefined;
8094
+ } | null | undefined;
8095
+ _meta?: Record<string, unknown> | null | undefined;
8096
+ stopReason?: string | null | undefined;
8097
+ }>>, unknown>;
8005
8098
  /**
8006
8099
  * Foreground work is blocked on user action.
8007
8100
  */
@@ -8049,8 +8142,29 @@ export declare const zStateUpdate: z.ZodType<({
8049
8142
  _meta?: Record<string, unknown> | null | undefined;
8050
8143
  } & {
8051
8144
  state: "running";
8052
- }) | ({
8053
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
8145
+ }) | ((({
8146
+ stopReason: "end_turn";
8147
+ } | {
8148
+ stopReason: "max_tokens";
8149
+ } | {
8150
+ stopReason: "max_turn_requests";
8151
+ } | {
8152
+ stopReason: "refusal";
8153
+ } | {
8154
+ stopReason: "cancelled";
8155
+ } | ({
8156
+ error?: {
8157
+ code: number;
8158
+ message: string;
8159
+ data?: unknown;
8160
+ } | null | undefined;
8161
+ } & {
8162
+ stopReason: "error";
8163
+ }) | {
8164
+ stopReason: string;
8165
+ } | {
8166
+ stopReason?: null | undefined;
8167
+ }) & {
8054
8168
  usage?: {
8055
8169
  totalTokens: number;
8056
8170
  inputTokens: number;
@@ -8061,7 +8175,8 @@ export declare const zStateUpdate: z.ZodType<({
8061
8175
  _meta?: Record<string, unknown> | null | undefined;
8062
8176
  } | null | undefined;
8063
8177
  _meta?: Record<string, unknown> | null | undefined;
8064
- } & {
8178
+ stopReason?: string | null | undefined;
8179
+ }) & {
8065
8180
  state: "idle";
8066
8181
  }) | ({
8067
8182
  _meta?: Record<string, unknown> | null | undefined;
@@ -8077,21 +8192,9 @@ export declare const zStateUpdate: z.ZodType<({
8077
8192
  _meta?: Record<string, unknown> | null | undefined;
8078
8193
  } & {
8079
8194
  state: "running";
8080
- }) | ({
8081
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
8082
- usage?: {
8083
- totalTokens: number;
8084
- inputTokens: number;
8085
- outputTokens: number;
8086
- thoughtTokens?: number | null | undefined;
8087
- cachedReadTokens?: number | null | undefined;
8088
- cachedWriteTokens?: number | null | undefined;
8089
- _meta?: Record<string, unknown> | null | undefined;
8090
- } | null | undefined;
8091
- _meta?: Record<string, unknown> | null | undefined;
8092
- } & {
8195
+ }) | {
8093
8196
  state: "idle";
8094
- }) | ({
8197
+ } | ({
8095
8198
  _meta?: Record<string, unknown> | null | undefined;
8096
8199
  } & {
8097
8200
  state: "requires_action";
@@ -8105,8 +8208,29 @@ export declare const zStateUpdate: z.ZodType<({
8105
8208
  _meta?: Record<string, unknown> | null | undefined;
8106
8209
  } & {
8107
8210
  state: "running";
8108
- }) | ({
8109
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
8211
+ }) | ((({
8212
+ stopReason: "end_turn";
8213
+ } | {
8214
+ stopReason: "max_tokens";
8215
+ } | {
8216
+ stopReason: "max_turn_requests";
8217
+ } | {
8218
+ stopReason: "refusal";
8219
+ } | {
8220
+ stopReason: "cancelled";
8221
+ } | ({
8222
+ error?: {
8223
+ code: number;
8224
+ message: string;
8225
+ data?: unknown;
8226
+ } | null | undefined;
8227
+ } & {
8228
+ stopReason: "error";
8229
+ }) | {
8230
+ stopReason: string;
8231
+ } | {
8232
+ stopReason?: null | undefined;
8233
+ }) & {
8110
8234
  usage?: {
8111
8235
  totalTokens: number;
8112
8236
  inputTokens: number;
@@ -8117,7 +8241,8 @@ export declare const zStateUpdate: z.ZodType<({
8117
8241
  _meta?: Record<string, unknown> | null | undefined;
8118
8242
  } | null | undefined;
8119
8243
  _meta?: Record<string, unknown> | null | undefined;
8120
- } & {
8244
+ stopReason?: string | null | undefined;
8245
+ }) & {
8121
8246
  state: "idle";
8122
8247
  }) | ({
8123
8248
  _meta?: Record<string, unknown> | null | undefined;
@@ -8133,21 +8258,9 @@ export declare const zStateUpdate: z.ZodType<({
8133
8258
  _meta?: Record<string, unknown> | null | undefined;
8134
8259
  } & {
8135
8260
  state: "running";
8136
- }) | ({
8137
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
8138
- usage?: {
8139
- totalTokens: number;
8140
- inputTokens: number;
8141
- outputTokens: number;
8142
- thoughtTokens?: number | null | undefined;
8143
- cachedReadTokens?: number | null | undefined;
8144
- cachedWriteTokens?: number | null | undefined;
8145
- _meta?: Record<string, unknown> | null | undefined;
8146
- } | null | undefined;
8147
- _meta?: Record<string, unknown> | null | undefined;
8148
- } & {
8261
+ }) | {
8149
8262
  state: "idle";
8150
- }) | ({
8263
+ } | ({
8151
8264
  _meta?: Record<string, unknown> | null | undefined;
8152
8265
  } & {
8153
8266
  state: "requires_action";
@@ -8199,8 +8312,29 @@ export declare const zSubagentUpdate: z.ZodObject<{
8199
8312
  _meta?: Record<string, unknown> | null | undefined;
8200
8313
  } & {
8201
8314
  state: "running";
8202
- }) | ({
8203
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
8315
+ }) | ((({
8316
+ stopReason: "end_turn";
8317
+ } | {
8318
+ stopReason: "max_tokens";
8319
+ } | {
8320
+ stopReason: "max_turn_requests";
8321
+ } | {
8322
+ stopReason: "refusal";
8323
+ } | {
8324
+ stopReason: "cancelled";
8325
+ } | ({
8326
+ error?: {
8327
+ code: number;
8328
+ message: string;
8329
+ data?: unknown;
8330
+ } | null | undefined;
8331
+ } & {
8332
+ stopReason: "error";
8333
+ }) | {
8334
+ stopReason: string;
8335
+ } | {
8336
+ stopReason?: null | undefined;
8337
+ }) & {
8204
8338
  usage?: {
8205
8339
  totalTokens: number;
8206
8340
  inputTokens: number;
@@ -8211,7 +8345,8 @@ export declare const zSubagentUpdate: z.ZodObject<{
8211
8345
  _meta?: Record<string, unknown> | null | undefined;
8212
8346
  } | null | undefined;
8213
8347
  _meta?: Record<string, unknown> | null | undefined;
8214
- } & {
8348
+ stopReason?: string | null | undefined;
8349
+ }) & {
8215
8350
  state: "idle";
8216
8351
  }) | ({
8217
8352
  _meta?: Record<string, unknown> | null | undefined;
@@ -8227,24 +8362,12 @@ export declare const zSubagentUpdate: z.ZodObject<{
8227
8362
  _meta?: Record<string, unknown> | null | undefined;
8228
8363
  } & {
8229
8364
  state: "running";
8230
- }) | ({
8231
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
8232
- usage?: {
8233
- totalTokens: number;
8234
- inputTokens: number;
8235
- outputTokens: number;
8236
- thoughtTokens?: number | null | undefined;
8237
- cachedReadTokens?: number | null | undefined;
8238
- cachedWriteTokens?: number | null | undefined;
8239
- _meta?: Record<string, unknown> | null | undefined;
8240
- } | null | undefined;
8241
- _meta?: Record<string, unknown> | null | undefined;
8242
- } & {
8243
- state: "idle";
8244
- }) | ({
8245
- _meta?: Record<string, unknown> | null | undefined;
8246
- } & {
8247
- state: "requires_action";
8365
+ }) | {
8366
+ state: "idle";
8367
+ } | ({
8368
+ _meta?: Record<string, unknown> | null | undefined;
8369
+ } & {
8370
+ state: "requires_action";
8248
8371
  }) | ({
8249
8372
  _meta?: Record<string, unknown> | null | undefined;
8250
8373
  } & {
@@ -8255,8 +8378,29 @@ export declare const zSubagentUpdate: z.ZodObject<{
8255
8378
  _meta?: Record<string, unknown> | null | undefined;
8256
8379
  } & {
8257
8380
  state: "running";
8258
- }) | ({
8259
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
8381
+ }) | ((({
8382
+ stopReason: "end_turn";
8383
+ } | {
8384
+ stopReason: "max_tokens";
8385
+ } | {
8386
+ stopReason: "max_turn_requests";
8387
+ } | {
8388
+ stopReason: "refusal";
8389
+ } | {
8390
+ stopReason: "cancelled";
8391
+ } | ({
8392
+ error?: {
8393
+ code: number;
8394
+ message: string;
8395
+ data?: unknown;
8396
+ } | null | undefined;
8397
+ } & {
8398
+ stopReason: "error";
8399
+ }) | {
8400
+ stopReason: string;
8401
+ } | {
8402
+ stopReason?: null | undefined;
8403
+ }) & {
8260
8404
  usage?: {
8261
8405
  totalTokens: number;
8262
8406
  inputTokens: number;
@@ -8267,7 +8411,8 @@ export declare const zSubagentUpdate: z.ZodObject<{
8267
8411
  _meta?: Record<string, unknown> | null | undefined;
8268
8412
  } | null | undefined;
8269
8413
  _meta?: Record<string, unknown> | null | undefined;
8270
- } & {
8414
+ stopReason?: string | null | undefined;
8415
+ }) & {
8271
8416
  state: "idle";
8272
8417
  }) | ({
8273
8418
  _meta?: Record<string, unknown> | null | undefined;
@@ -8283,21 +8428,9 @@ export declare const zSubagentUpdate: z.ZodObject<{
8283
8428
  _meta?: Record<string, unknown> | null | undefined;
8284
8429
  } & {
8285
8430
  state: "running";
8286
- }) | ({
8287
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
8288
- usage?: {
8289
- totalTokens: number;
8290
- inputTokens: number;
8291
- outputTokens: number;
8292
- thoughtTokens?: number | null | undefined;
8293
- cachedReadTokens?: number | null | undefined;
8294
- cachedWriteTokens?: number | null | undefined;
8295
- _meta?: Record<string, unknown> | null | undefined;
8296
- } | null | undefined;
8297
- _meta?: Record<string, unknown> | null | undefined;
8298
- } & {
8431
+ }) | {
8299
8432
  state: "idle";
8300
- }) | ({
8433
+ } | ({
8301
8434
  _meta?: Record<string, unknown> | null | undefined;
8302
8435
  } & {
8303
8436
  state: "requires_action";
@@ -10052,8 +10185,29 @@ export declare const zSessionUpdate: z.ZodUnion<readonly [z.ZodIntersection<z.Zo
10052
10185
  _meta?: Record<string, unknown> | null | undefined;
10053
10186
  } & {
10054
10187
  state: "running";
10055
- }) | ({
10056
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
10188
+ }) | ((({
10189
+ stopReason: "end_turn";
10190
+ } | {
10191
+ stopReason: "max_tokens";
10192
+ } | {
10193
+ stopReason: "max_turn_requests";
10194
+ } | {
10195
+ stopReason: "refusal";
10196
+ } | {
10197
+ stopReason: "cancelled";
10198
+ } | ({
10199
+ error?: {
10200
+ code: number;
10201
+ message: string;
10202
+ data?: unknown;
10203
+ } | null | undefined;
10204
+ } & {
10205
+ stopReason: "error";
10206
+ }) | {
10207
+ stopReason: string;
10208
+ } | {
10209
+ stopReason?: null | undefined;
10210
+ }) & {
10057
10211
  usage?: {
10058
10212
  totalTokens: number;
10059
10213
  inputTokens: number;
@@ -10064,7 +10218,8 @@ export declare const zSessionUpdate: z.ZodUnion<readonly [z.ZodIntersection<z.Zo
10064
10218
  _meta?: Record<string, unknown> | null | undefined;
10065
10219
  } | null | undefined;
10066
10220
  _meta?: Record<string, unknown> | null | undefined;
10067
- } & {
10221
+ stopReason?: string | null | undefined;
10222
+ }) & {
10068
10223
  state: "idle";
10069
10224
  }) | ({
10070
10225
  _meta?: Record<string, unknown> | null | undefined;
@@ -10080,21 +10235,9 @@ export declare const zSessionUpdate: z.ZodUnion<readonly [z.ZodIntersection<z.Zo
10080
10235
  _meta?: Record<string, unknown> | null | undefined;
10081
10236
  } & {
10082
10237
  state: "running";
10083
- }) | ({
10084
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
10085
- usage?: {
10086
- totalTokens: number;
10087
- inputTokens: number;
10088
- outputTokens: number;
10089
- thoughtTokens?: number | null | undefined;
10090
- cachedReadTokens?: number | null | undefined;
10091
- cachedWriteTokens?: number | null | undefined;
10092
- _meta?: Record<string, unknown> | null | undefined;
10093
- } | null | undefined;
10094
- _meta?: Record<string, unknown> | null | undefined;
10095
- } & {
10238
+ }) | {
10096
10239
  state: "idle";
10097
- }) | ({
10240
+ } | ({
10098
10241
  _meta?: Record<string, unknown> | null | undefined;
10099
10242
  } & {
10100
10243
  state: "requires_action";
@@ -10108,8 +10251,29 @@ export declare const zSessionUpdate: z.ZodUnion<readonly [z.ZodIntersection<z.Zo
10108
10251
  _meta?: Record<string, unknown> | null | undefined;
10109
10252
  } & {
10110
10253
  state: "running";
10111
- }) | ({
10112
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
10254
+ }) | ((({
10255
+ stopReason: "end_turn";
10256
+ } | {
10257
+ stopReason: "max_tokens";
10258
+ } | {
10259
+ stopReason: "max_turn_requests";
10260
+ } | {
10261
+ stopReason: "refusal";
10262
+ } | {
10263
+ stopReason: "cancelled";
10264
+ } | ({
10265
+ error?: {
10266
+ code: number;
10267
+ message: string;
10268
+ data?: unknown;
10269
+ } | null | undefined;
10270
+ } & {
10271
+ stopReason: "error";
10272
+ }) | {
10273
+ stopReason: string;
10274
+ } | {
10275
+ stopReason?: null | undefined;
10276
+ }) & {
10113
10277
  usage?: {
10114
10278
  totalTokens: number;
10115
10279
  inputTokens: number;
@@ -10120,7 +10284,8 @@ export declare const zSessionUpdate: z.ZodUnion<readonly [z.ZodIntersection<z.Zo
10120
10284
  _meta?: Record<string, unknown> | null | undefined;
10121
10285
  } | null | undefined;
10122
10286
  _meta?: Record<string, unknown> | null | undefined;
10123
- } & {
10287
+ stopReason?: string | null | undefined;
10288
+ }) & {
10124
10289
  state: "idle";
10125
10290
  }) | ({
10126
10291
  _meta?: Record<string, unknown> | null | undefined;
@@ -10136,21 +10301,9 @@ export declare const zSessionUpdate: z.ZodUnion<readonly [z.ZodIntersection<z.Zo
10136
10301
  _meta?: Record<string, unknown> | null | undefined;
10137
10302
  } & {
10138
10303
  state: "running";
10139
- }) | ({
10140
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
10141
- usage?: {
10142
- totalTokens: number;
10143
- inputTokens: number;
10144
- outputTokens: number;
10145
- thoughtTokens?: number | null | undefined;
10146
- cachedReadTokens?: number | null | undefined;
10147
- cachedWriteTokens?: number | null | undefined;
10148
- _meta?: Record<string, unknown> | null | undefined;
10149
- } | null | undefined;
10150
- _meta?: Record<string, unknown> | null | undefined;
10151
- } & {
10304
+ }) | {
10152
10305
  state: "idle";
10153
- }) | ({
10306
+ } | ({
10154
10307
  _meta?: Record<string, unknown> | null | undefined;
10155
10308
  } & {
10156
10309
  state: "requires_action";
@@ -11893,8 +12046,29 @@ export declare const zSessionNotification: z.ZodObject<{
11893
12046
  _meta?: Record<string, unknown> | null | undefined;
11894
12047
  } & {
11895
12048
  state: "running";
11896
- }) | ({
11897
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
12049
+ }) | ((({
12050
+ stopReason: "end_turn";
12051
+ } | {
12052
+ stopReason: "max_tokens";
12053
+ } | {
12054
+ stopReason: "max_turn_requests";
12055
+ } | {
12056
+ stopReason: "refusal";
12057
+ } | {
12058
+ stopReason: "cancelled";
12059
+ } | ({
12060
+ error?: {
12061
+ code: number;
12062
+ message: string;
12063
+ data?: unknown;
12064
+ } | null | undefined;
12065
+ } & {
12066
+ stopReason: "error";
12067
+ }) | {
12068
+ stopReason: string;
12069
+ } | {
12070
+ stopReason?: null | undefined;
12071
+ }) & {
11898
12072
  usage?: {
11899
12073
  totalTokens: number;
11900
12074
  inputTokens: number;
@@ -11905,7 +12079,8 @@ export declare const zSessionNotification: z.ZodObject<{
11905
12079
  _meta?: Record<string, unknown> | null | undefined;
11906
12080
  } | null | undefined;
11907
12081
  _meta?: Record<string, unknown> | null | undefined;
11908
- } & {
12082
+ stopReason?: string | null | undefined;
12083
+ }) & {
11909
12084
  state: "idle";
11910
12085
  }) | ({
11911
12086
  _meta?: Record<string, unknown> | null | undefined;
@@ -11921,21 +12096,9 @@ export declare const zSessionNotification: z.ZodObject<{
11921
12096
  _meta?: Record<string, unknown> | null | undefined;
11922
12097
  } & {
11923
12098
  state: "running";
11924
- }) | ({
11925
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
11926
- usage?: {
11927
- totalTokens: number;
11928
- inputTokens: number;
11929
- outputTokens: number;
11930
- thoughtTokens?: number | null | undefined;
11931
- cachedReadTokens?: number | null | undefined;
11932
- cachedWriteTokens?: number | null | undefined;
11933
- _meta?: Record<string, unknown> | null | undefined;
11934
- } | null | undefined;
11935
- _meta?: Record<string, unknown> | null | undefined;
11936
- } & {
12099
+ }) | {
11937
12100
  state: "idle";
11938
- }) | ({
12101
+ } | ({
11939
12102
  _meta?: Record<string, unknown> | null | undefined;
11940
12103
  } & {
11941
12104
  state: "requires_action";
@@ -11949,8 +12112,29 @@ export declare const zSessionNotification: z.ZodObject<{
11949
12112
  _meta?: Record<string, unknown> | null | undefined;
11950
12113
  } & {
11951
12114
  state: "running";
11952
- }) | ({
11953
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
12115
+ }) | ((({
12116
+ stopReason: "end_turn";
12117
+ } | {
12118
+ stopReason: "max_tokens";
12119
+ } | {
12120
+ stopReason: "max_turn_requests";
12121
+ } | {
12122
+ stopReason: "refusal";
12123
+ } | {
12124
+ stopReason: "cancelled";
12125
+ } | ({
12126
+ error?: {
12127
+ code: number;
12128
+ message: string;
12129
+ data?: unknown;
12130
+ } | null | undefined;
12131
+ } & {
12132
+ stopReason: "error";
12133
+ }) | {
12134
+ stopReason: string;
12135
+ } | {
12136
+ stopReason?: null | undefined;
12137
+ }) & {
11954
12138
  usage?: {
11955
12139
  totalTokens: number;
11956
12140
  inputTokens: number;
@@ -11961,7 +12145,8 @@ export declare const zSessionNotification: z.ZodObject<{
11961
12145
  _meta?: Record<string, unknown> | null | undefined;
11962
12146
  } | null | undefined;
11963
12147
  _meta?: Record<string, unknown> | null | undefined;
11964
- } & {
12148
+ stopReason?: string | null | undefined;
12149
+ }) & {
11965
12150
  state: "idle";
11966
12151
  }) | ({
11967
12152
  _meta?: Record<string, unknown> | null | undefined;
@@ -11977,21 +12162,9 @@ export declare const zSessionNotification: z.ZodObject<{
11977
12162
  _meta?: Record<string, unknown> | null | undefined;
11978
12163
  } & {
11979
12164
  state: "running";
11980
- }) | ({
11981
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
11982
- usage?: {
11983
- totalTokens: number;
11984
- inputTokens: number;
11985
- outputTokens: number;
11986
- thoughtTokens?: number | null | undefined;
11987
- cachedReadTokens?: number | null | undefined;
11988
- cachedWriteTokens?: number | null | undefined;
11989
- _meta?: Record<string, unknown> | null | undefined;
11990
- } | null | undefined;
11991
- _meta?: Record<string, unknown> | null | undefined;
11992
- } & {
12165
+ }) | {
11993
12166
  state: "idle";
11994
- }) | ({
12167
+ } | ({
11995
12168
  _meta?: Record<string, unknown> | null | undefined;
11996
12169
  } & {
11997
12170
  state: "requires_action";
@@ -13749,8 +13922,29 @@ export declare const zAgentNotification: z.ZodObject<{
13749
13922
  _meta?: Record<string, unknown> | null | undefined;
13750
13923
  } & {
13751
13924
  state: "running";
13752
- }) | ({
13753
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
13925
+ }) | ((({
13926
+ stopReason: "end_turn";
13927
+ } | {
13928
+ stopReason: "max_tokens";
13929
+ } | {
13930
+ stopReason: "max_turn_requests";
13931
+ } | {
13932
+ stopReason: "refusal";
13933
+ } | {
13934
+ stopReason: "cancelled";
13935
+ } | ({
13936
+ error?: {
13937
+ code: number;
13938
+ message: string;
13939
+ data?: unknown;
13940
+ } | null | undefined;
13941
+ } & {
13942
+ stopReason: "error";
13943
+ }) | {
13944
+ stopReason: string;
13945
+ } | {
13946
+ stopReason?: null | undefined;
13947
+ }) & {
13754
13948
  usage?: {
13755
13949
  totalTokens: number;
13756
13950
  inputTokens: number;
@@ -13761,7 +13955,8 @@ export declare const zAgentNotification: z.ZodObject<{
13761
13955
  _meta?: Record<string, unknown> | null | undefined;
13762
13956
  } | null | undefined;
13763
13957
  _meta?: Record<string, unknown> | null | undefined;
13764
- } & {
13958
+ stopReason?: string | null | undefined;
13959
+ }) & {
13765
13960
  state: "idle";
13766
13961
  }) | ({
13767
13962
  _meta?: Record<string, unknown> | null | undefined;
@@ -13777,21 +13972,9 @@ export declare const zAgentNotification: z.ZodObject<{
13777
13972
  _meta?: Record<string, unknown> | null | undefined;
13778
13973
  } & {
13779
13974
  state: "running";
13780
- }) | ({
13781
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
13782
- usage?: {
13783
- totalTokens: number;
13784
- inputTokens: number;
13785
- outputTokens: number;
13786
- thoughtTokens?: number | null | undefined;
13787
- cachedReadTokens?: number | null | undefined;
13788
- cachedWriteTokens?: number | null | undefined;
13789
- _meta?: Record<string, unknown> | null | undefined;
13790
- } | null | undefined;
13791
- _meta?: Record<string, unknown> | null | undefined;
13792
- } & {
13975
+ }) | {
13793
13976
  state: "idle";
13794
- }) | ({
13977
+ } | ({
13795
13978
  _meta?: Record<string, unknown> | null | undefined;
13796
13979
  } & {
13797
13980
  state: "requires_action";
@@ -13805,8 +13988,29 @@ export declare const zAgentNotification: z.ZodObject<{
13805
13988
  _meta?: Record<string, unknown> | null | undefined;
13806
13989
  } & {
13807
13990
  state: "running";
13808
- }) | ({
13809
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
13991
+ }) | ((({
13992
+ stopReason: "end_turn";
13993
+ } | {
13994
+ stopReason: "max_tokens";
13995
+ } | {
13996
+ stopReason: "max_turn_requests";
13997
+ } | {
13998
+ stopReason: "refusal";
13999
+ } | {
14000
+ stopReason: "cancelled";
14001
+ } | ({
14002
+ error?: {
14003
+ code: number;
14004
+ message: string;
14005
+ data?: unknown;
14006
+ } | null | undefined;
14007
+ } & {
14008
+ stopReason: "error";
14009
+ }) | {
14010
+ stopReason: string;
14011
+ } | {
14012
+ stopReason?: null | undefined;
14013
+ }) & {
13810
14014
  usage?: {
13811
14015
  totalTokens: number;
13812
14016
  inputTokens: number;
@@ -13817,7 +14021,8 @@ export declare const zAgentNotification: z.ZodObject<{
13817
14021
  _meta?: Record<string, unknown> | null | undefined;
13818
14022
  } | null | undefined;
13819
14023
  _meta?: Record<string, unknown> | null | undefined;
13820
- } & {
14024
+ stopReason?: string | null | undefined;
14025
+ }) & {
13821
14026
  state: "idle";
13822
14027
  }) | ({
13823
14028
  _meta?: Record<string, unknown> | null | undefined;
@@ -13833,21 +14038,9 @@ export declare const zAgentNotification: z.ZodObject<{
13833
14038
  _meta?: Record<string, unknown> | null | undefined;
13834
14039
  } & {
13835
14040
  state: "running";
13836
- }) | ({
13837
- stopReason?: "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled" | null | undefined;
13838
- usage?: {
13839
- totalTokens: number;
13840
- inputTokens: number;
13841
- outputTokens: number;
13842
- thoughtTokens?: number | null | undefined;
13843
- cachedReadTokens?: number | null | undefined;
13844
- cachedWriteTokens?: number | null | undefined;
13845
- _meta?: Record<string, unknown> | null | undefined;
13846
- } | null | undefined;
13847
- _meta?: Record<string, unknown> | null | undefined;
13848
- } & {
14041
+ }) | {
13849
14042
  state: "idle";
13850
- }) | ({
14043
+ } | ({
13851
14044
  _meta?: Record<string, unknown> | null | undefined;
13852
14045
  } & {
13853
14046
  state: "requires_action";
@@ -14187,13 +14380,7 @@ export declare const zFileSystemCapabilities: z.ZodObject<{
14187
14380
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14188
14381
  }, z.core.$strip>;
14189
14382
  /**
14190
- * **UNSTABLE**
14191
- *
14192
- * This capability is not part of the spec yet, and may be removed or changed at any point.
14193
- *
14194
14383
  * Client support for ID-addressed context compaction updates.
14195
- *
14196
- * @experimental
14197
14384
  */
14198
14385
  export declare const zCompactionCapabilities: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14199
14386
  /**
@@ -14214,13 +14401,7 @@ export declare const zSessionConfigOptionsCapabilities: z.ZodObject<{
14214
14401
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14215
14402
  }, z.core.$strip>;
14216
14403
  /**
14217
- * **UNSTABLE**
14218
- *
14219
- * This capability is not part of the spec yet, and may be removed or changed at any point.
14220
- *
14221
- * Client support for presenting live advisory notices to the user.
14222
- *
14223
- * @experimental
14404
+ * Client support for presenting live notices to the user.
14224
14405
  */
14225
14406
  export declare const zNoticeCapabilities: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14226
14407
  /**
@@ -14646,160 +14827,46 @@ export declare const zMcpServer: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObj
14646
14827
  */
14647
14828
  export declare const zNewSessionRequest: z.ZodObject<{
14648
14829
  cwd: z.ZodString;
14649
- additionalDirectories: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
14650
- mcpServers: z.ZodType<({
14651
- name: string;
14652
- command: string;
14653
- args: string[];
14654
- env: {
14655
- name: string;
14656
- value: string;
14657
- _meta?: Record<string, unknown> | null | undefined;
14658
- }[];
14659
- _meta?: Record<string, unknown> | null | undefined;
14660
- } | ({
14661
- name: string;
14662
- url: string;
14663
- headers: {
14664
- name: string;
14665
- value: string;
14666
- _meta?: Record<string, unknown> | null | undefined;
14667
- }[];
14668
- _meta?: Record<string, unknown> | null | undefined;
14669
- } & {
14670
- type: "http";
14671
- }) | ({
14672
- name: string;
14673
- url: string;
14674
- headers: {
14675
- name: string;
14676
- value: string;
14677
- _meta?: Record<string, unknown> | null | undefined;
14678
- }[];
14679
- _meta?: Record<string, unknown> | null | undefined;
14680
- } & {
14681
- type: "sse";
14682
- }) | ({
14683
- name: string;
14684
- serverId: string;
14685
- _meta?: Record<string, unknown> | null | undefined;
14686
- } & {
14687
- type: "acp";
14688
- }))[], ({
14689
- name: string;
14690
- command: string;
14691
- args: string[];
14692
- env: {
14693
- name: string;
14694
- value: string;
14695
- _meta?: Record<string, unknown> | null | undefined;
14696
- }[];
14697
- _meta?: Record<string, unknown> | null | undefined;
14698
- } | ({
14699
- name: string;
14700
- url: string;
14701
- headers: {
14702
- name: string;
14703
- value: string;
14704
- _meta?: Record<string, unknown> | null | undefined;
14705
- }[];
14706
- _meta?: Record<string, unknown> | null | undefined;
14707
- } & {
14708
- type: "http";
14709
- }) | ({
14710
- name: string;
14711
- url: string;
14712
- headers: {
14713
- name: string;
14714
- value: string;
14715
- _meta?: Record<string, unknown> | null | undefined;
14716
- }[];
14717
- _meta?: Record<string, unknown> | null | undefined;
14718
- } & {
14719
- type: "sse";
14720
- }) | ({
14721
- name: string;
14722
- serverId: string;
14723
- _meta?: Record<string, unknown> | null | undefined;
14724
- } & {
14725
- type: "acp";
14726
- }))[], z.core.$ZodTypeInternals<({
14727
- name: string;
14728
- command: string;
14729
- args: string[];
14730
- env: {
14731
- name: string;
14732
- value: string;
14733
- _meta?: Record<string, unknown> | null | undefined;
14734
- }[];
14735
- _meta?: Record<string, unknown> | null | undefined;
14736
- } | ({
14737
- name: string;
14738
- url: string;
14739
- headers: {
14740
- name: string;
14741
- value: string;
14742
- _meta?: Record<string, unknown> | null | undefined;
14743
- }[];
14744
- _meta?: Record<string, unknown> | null | undefined;
14745
- } & {
14746
- type: "http";
14747
- }) | ({
14748
- name: string;
14749
- url: string;
14750
- headers: {
14751
- name: string;
14752
- value: string;
14753
- _meta?: Record<string, unknown> | null | undefined;
14754
- }[];
14755
- _meta?: Record<string, unknown> | null | undefined;
14756
- } & {
14757
- type: "sse";
14758
- }) | ({
14759
- name: string;
14760
- serverId: string;
14761
- _meta?: Record<string, unknown> | null | undefined;
14762
- } & {
14763
- type: "acp";
14764
- }))[], ({
14765
- name: string;
14766
- command: string;
14767
- args: string[];
14768
- env: {
14769
- name: string;
14770
- value: string;
14771
- _meta?: Record<string, unknown> | null | undefined;
14772
- }[];
14773
- _meta?: Record<string, unknown> | null | undefined;
14774
- } | ({
14775
- name: string;
14776
- url: string;
14777
- headers: {
14778
- name: string;
14779
- value: string;
14780
- _meta?: Record<string, unknown> | null | undefined;
14781
- }[];
14782
- _meta?: Record<string, unknown> | null | undefined;
14783
- } & {
14784
- type: "http";
14785
- }) | ({
14786
- name: string;
14787
- url: string;
14788
- headers: {
14789
- name: string;
14790
- value: string;
14791
- _meta?: Record<string, unknown> | null | undefined;
14792
- }[];
14793
- _meta?: Record<string, unknown> | null | undefined;
14794
- } & {
14795
- type: "sse";
14796
- }) | ({
14797
- name: string;
14798
- serverId: string;
14799
- _meta?: Record<string, unknown> | null | undefined;
14800
- } & {
14801
- type: "acp";
14802
- }))[]>>;
14830
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
14831
+ mcpServers: z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
14832
+ name: z.ZodString;
14833
+ url: z.ZodString;
14834
+ headers: z.ZodArray<z.ZodObject<{
14835
+ name: z.ZodString;
14836
+ value: z.ZodString;
14837
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14838
+ }, z.core.$strip>>;
14839
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14840
+ }, z.core.$strip>, z.ZodObject<{
14841
+ type: z.ZodLiteral<"http">;
14842
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
14843
+ name: z.ZodString;
14844
+ url: z.ZodString;
14845
+ headers: z.ZodArray<z.ZodObject<{
14846
+ name: z.ZodString;
14847
+ value: z.ZodString;
14848
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14849
+ }, z.core.$strip>>;
14850
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14851
+ }, z.core.$strip>, z.ZodObject<{
14852
+ type: z.ZodLiteral<"sse">;
14853
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
14854
+ name: z.ZodString;
14855
+ serverId: z.ZodString;
14856
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14857
+ }, z.core.$strip>, z.ZodObject<{
14858
+ type: z.ZodLiteral<"acp">;
14859
+ }, z.core.$strip>>, z.ZodObject<{
14860
+ name: z.ZodString;
14861
+ command: z.ZodString;
14862
+ args: z.ZodArray<z.ZodString>;
14863
+ env: z.ZodArray<z.ZodObject<{
14864
+ name: z.ZodString;
14865
+ value: z.ZodString;
14866
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14867
+ }, z.core.$strip>>;
14868
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14869
+ }, z.core.$strip>]>>;
14803
14870
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14804
14871
  }, z.core.$strip>;
14805
14872
  /**
@@ -14810,161 +14877,47 @@ export declare const zNewSessionRequest: z.ZodObject<{
14810
14877
  * See protocol docs: [Loading Sessions](https://agentclientprotocol.com/protocol/session-setup#loading-sessions)
14811
14878
  */
14812
14879
  export declare const zLoadSessionRequest: z.ZodObject<{
14813
- mcpServers: z.ZodType<({
14814
- name: string;
14815
- command: string;
14816
- args: string[];
14817
- env: {
14818
- name: string;
14819
- value: string;
14820
- _meta?: Record<string, unknown> | null | undefined;
14821
- }[];
14822
- _meta?: Record<string, unknown> | null | undefined;
14823
- } | ({
14824
- name: string;
14825
- url: string;
14826
- headers: {
14827
- name: string;
14828
- value: string;
14829
- _meta?: Record<string, unknown> | null | undefined;
14830
- }[];
14831
- _meta?: Record<string, unknown> | null | undefined;
14832
- } & {
14833
- type: "http";
14834
- }) | ({
14835
- name: string;
14836
- url: string;
14837
- headers: {
14838
- name: string;
14839
- value: string;
14840
- _meta?: Record<string, unknown> | null | undefined;
14841
- }[];
14842
- _meta?: Record<string, unknown> | null | undefined;
14843
- } & {
14844
- type: "sse";
14845
- }) | ({
14846
- name: string;
14847
- serverId: string;
14848
- _meta?: Record<string, unknown> | null | undefined;
14849
- } & {
14850
- type: "acp";
14851
- }))[], ({
14852
- name: string;
14853
- command: string;
14854
- args: string[];
14855
- env: {
14856
- name: string;
14857
- value: string;
14858
- _meta?: Record<string, unknown> | null | undefined;
14859
- }[];
14860
- _meta?: Record<string, unknown> | null | undefined;
14861
- } | ({
14862
- name: string;
14863
- url: string;
14864
- headers: {
14865
- name: string;
14866
- value: string;
14867
- _meta?: Record<string, unknown> | null | undefined;
14868
- }[];
14869
- _meta?: Record<string, unknown> | null | undefined;
14870
- } & {
14871
- type: "http";
14872
- }) | ({
14873
- name: string;
14874
- url: string;
14875
- headers: {
14876
- name: string;
14877
- value: string;
14878
- _meta?: Record<string, unknown> | null | undefined;
14879
- }[];
14880
- _meta?: Record<string, unknown> | null | undefined;
14881
- } & {
14882
- type: "sse";
14883
- }) | ({
14884
- name: string;
14885
- serverId: string;
14886
- _meta?: Record<string, unknown> | null | undefined;
14887
- } & {
14888
- type: "acp";
14889
- }))[], z.core.$ZodTypeInternals<({
14890
- name: string;
14891
- command: string;
14892
- args: string[];
14893
- env: {
14894
- name: string;
14895
- value: string;
14896
- _meta?: Record<string, unknown> | null | undefined;
14897
- }[];
14898
- _meta?: Record<string, unknown> | null | undefined;
14899
- } | ({
14900
- name: string;
14901
- url: string;
14902
- headers: {
14903
- name: string;
14904
- value: string;
14905
- _meta?: Record<string, unknown> | null | undefined;
14906
- }[];
14907
- _meta?: Record<string, unknown> | null | undefined;
14908
- } & {
14909
- type: "http";
14910
- }) | ({
14911
- name: string;
14912
- url: string;
14913
- headers: {
14914
- name: string;
14915
- value: string;
14916
- _meta?: Record<string, unknown> | null | undefined;
14917
- }[];
14918
- _meta?: Record<string, unknown> | null | undefined;
14919
- } & {
14920
- type: "sse";
14921
- }) | ({
14922
- name: string;
14923
- serverId: string;
14924
- _meta?: Record<string, unknown> | null | undefined;
14925
- } & {
14926
- type: "acp";
14927
- }))[], ({
14928
- name: string;
14929
- command: string;
14930
- args: string[];
14931
- env: {
14932
- name: string;
14933
- value: string;
14934
- _meta?: Record<string, unknown> | null | undefined;
14935
- }[];
14936
- _meta?: Record<string, unknown> | null | undefined;
14937
- } | ({
14938
- name: string;
14939
- url: string;
14940
- headers: {
14941
- name: string;
14942
- value: string;
14943
- _meta?: Record<string, unknown> | null | undefined;
14944
- }[];
14945
- _meta?: Record<string, unknown> | null | undefined;
14946
- } & {
14947
- type: "http";
14948
- }) | ({
14949
- name: string;
14950
- url: string;
14951
- headers: {
14952
- name: string;
14953
- value: string;
14954
- _meta?: Record<string, unknown> | null | undefined;
14955
- }[];
14956
- _meta?: Record<string, unknown> | null | undefined;
14957
- } & {
14958
- type: "sse";
14959
- }) | ({
14960
- name: string;
14961
- serverId: string;
14962
- _meta?: Record<string, unknown> | null | undefined;
14963
- } & {
14964
- type: "acp";
14965
- }))[]>>;
14880
+ mcpServers: z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
14881
+ name: z.ZodString;
14882
+ url: z.ZodString;
14883
+ headers: z.ZodArray<z.ZodObject<{
14884
+ name: z.ZodString;
14885
+ value: z.ZodString;
14886
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14887
+ }, z.core.$strip>>;
14888
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14889
+ }, z.core.$strip>, z.ZodObject<{
14890
+ type: z.ZodLiteral<"http">;
14891
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
14892
+ name: z.ZodString;
14893
+ url: z.ZodString;
14894
+ headers: z.ZodArray<z.ZodObject<{
14895
+ name: z.ZodString;
14896
+ value: z.ZodString;
14897
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14898
+ }, z.core.$strip>>;
14899
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14900
+ }, z.core.$strip>, z.ZodObject<{
14901
+ type: z.ZodLiteral<"sse">;
14902
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
14903
+ name: z.ZodString;
14904
+ serverId: z.ZodString;
14905
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14906
+ }, z.core.$strip>, z.ZodObject<{
14907
+ type: z.ZodLiteral<"acp">;
14908
+ }, z.core.$strip>>, z.ZodObject<{
14909
+ name: z.ZodString;
14910
+ command: z.ZodString;
14911
+ args: z.ZodArray<z.ZodString>;
14912
+ env: z.ZodArray<z.ZodObject<{
14913
+ name: z.ZodString;
14914
+ value: z.ZodString;
14915
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14916
+ }, z.core.$strip>>;
14917
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14918
+ }, z.core.$strip>]>>;
14966
14919
  cwd: z.ZodString;
14967
- additionalDirectories: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
14920
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
14968
14921
  sessionId: z.ZodString;
14969
14922
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14970
14923
  }, z.core.$strip>;
@@ -15004,8 +14957,8 @@ export declare const zDeleteSessionRequest: z.ZodObject<{
15004
14957
  export declare const zForkSessionRequest: z.ZodObject<{
15005
14958
  sessionId: z.ZodString;
15006
14959
  cwd: z.ZodString;
15007
- additionalDirectories: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
15008
- mcpServers: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
14960
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
14961
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
15009
14962
  name: z.ZodString;
15010
14963
  url: z.ZodString;
15011
14964
  headers: z.ZodArray<z.ZodObject<{
@@ -15043,83 +14996,7 @@ export declare const zForkSessionRequest: z.ZodObject<{
15043
14996
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15044
14997
  }, z.core.$strip>>;
15045
14998
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15046
- }, z.core.$strip>]>>>, z.ZodTransform<({
15047
- name: string;
15048
- command: string;
15049
- args: string[];
15050
- env: {
15051
- name: string;
15052
- value: string;
15053
- _meta?: Record<string, unknown> | null | undefined;
15054
- }[];
15055
- _meta?: Record<string, unknown> | null | undefined;
15056
- } | ({
15057
- name: string;
15058
- url: string;
15059
- headers: {
15060
- name: string;
15061
- value: string;
15062
- _meta?: Record<string, unknown> | null | undefined;
15063
- }[];
15064
- _meta?: Record<string, unknown> | null | undefined;
15065
- } & {
15066
- type: "http";
15067
- }) | ({
15068
- name: string;
15069
- url: string;
15070
- headers: {
15071
- name: string;
15072
- value: string;
15073
- _meta?: Record<string, unknown> | null | undefined;
15074
- }[];
15075
- _meta?: Record<string, unknown> | null | undefined;
15076
- } & {
15077
- type: "sse";
15078
- }) | ({
15079
- name: string;
15080
- serverId: string;
15081
- _meta?: Record<string, unknown> | null | undefined;
15082
- } & {
15083
- type: "acp";
15084
- }))[], ({
15085
- name: string;
15086
- command: string;
15087
- args: string[];
15088
- env: {
15089
- name: string;
15090
- value: string;
15091
- _meta?: Record<string, unknown> | null | undefined;
15092
- }[];
15093
- _meta?: Record<string, unknown> | null | undefined;
15094
- } | ({
15095
- name: string;
15096
- url: string;
15097
- headers: {
15098
- name: string;
15099
- value: string;
15100
- _meta?: Record<string, unknown> | null | undefined;
15101
- }[];
15102
- _meta?: Record<string, unknown> | null | undefined;
15103
- } & {
15104
- type: "http";
15105
- }) | ({
15106
- name: string;
15107
- url: string;
15108
- headers: {
15109
- name: string;
15110
- value: string;
15111
- _meta?: Record<string, unknown> | null | undefined;
15112
- }[];
15113
- _meta?: Record<string, unknown> | null | undefined;
15114
- } & {
15115
- type: "sse";
15116
- }) | ({
15117
- name: string;
15118
- serverId: string;
15119
- _meta?: Record<string, unknown> | null | undefined;
15120
- } & {
15121
- type: "acp";
15122
- }))[]>>>>;
14999
+ }, z.core.$strip>]>>>;
15123
15000
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15124
15001
  }, z.core.$strip>;
15125
15002
  /**
@@ -15133,8 +15010,8 @@ export declare const zForkSessionRequest: z.ZodObject<{
15133
15010
  export declare const zResumeSessionRequest: z.ZodObject<{
15134
15011
  sessionId: z.ZodString;
15135
15012
  cwd: z.ZodString;
15136
- additionalDirectories: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
15137
- mcpServers: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
15013
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
15014
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
15138
15015
  name: z.ZodString;
15139
15016
  url: z.ZodString;
15140
15017
  headers: z.ZodArray<z.ZodObject<{
@@ -15162,93 +15039,17 @@ export declare const zResumeSessionRequest: z.ZodObject<{
15162
15039
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15163
15040
  }, z.core.$strip>, z.ZodObject<{
15164
15041
  type: z.ZodLiteral<"acp">;
15165
- }, z.core.$strip>>, z.ZodObject<{
15166
- name: z.ZodString;
15167
- command: z.ZodString;
15168
- args: z.ZodArray<z.ZodString>;
15169
- env: z.ZodArray<z.ZodObject<{
15170
- name: z.ZodString;
15171
- value: z.ZodString;
15172
- _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15173
- }, z.core.$strip>>;
15174
- _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15175
- }, z.core.$strip>]>>>, z.ZodTransform<({
15176
- name: string;
15177
- command: string;
15178
- args: string[];
15179
- env: {
15180
- name: string;
15181
- value: string;
15182
- _meta?: Record<string, unknown> | null | undefined;
15183
- }[];
15184
- _meta?: Record<string, unknown> | null | undefined;
15185
- } | ({
15186
- name: string;
15187
- url: string;
15188
- headers: {
15189
- name: string;
15190
- value: string;
15191
- _meta?: Record<string, unknown> | null | undefined;
15192
- }[];
15193
- _meta?: Record<string, unknown> | null | undefined;
15194
- } & {
15195
- type: "http";
15196
- }) | ({
15197
- name: string;
15198
- url: string;
15199
- headers: {
15200
- name: string;
15201
- value: string;
15202
- _meta?: Record<string, unknown> | null | undefined;
15203
- }[];
15204
- _meta?: Record<string, unknown> | null | undefined;
15205
- } & {
15206
- type: "sse";
15207
- }) | ({
15208
- name: string;
15209
- serverId: string;
15210
- _meta?: Record<string, unknown> | null | undefined;
15211
- } & {
15212
- type: "acp";
15213
- }))[], ({
15214
- name: string;
15215
- command: string;
15216
- args: string[];
15217
- env: {
15218
- name: string;
15219
- value: string;
15220
- _meta?: Record<string, unknown> | null | undefined;
15221
- }[];
15222
- _meta?: Record<string, unknown> | null | undefined;
15223
- } | ({
15224
- name: string;
15225
- url: string;
15226
- headers: {
15227
- name: string;
15228
- value: string;
15229
- _meta?: Record<string, unknown> | null | undefined;
15230
- }[];
15231
- _meta?: Record<string, unknown> | null | undefined;
15232
- } & {
15233
- type: "http";
15234
- }) | ({
15235
- name: string;
15236
- url: string;
15237
- headers: {
15238
- name: string;
15239
- value: string;
15240
- _meta?: Record<string, unknown> | null | undefined;
15241
- }[];
15242
- _meta?: Record<string, unknown> | null | undefined;
15243
- } & {
15244
- type: "sse";
15245
- }) | ({
15246
- name: string;
15247
- serverId: string;
15248
- _meta?: Record<string, unknown> | null | undefined;
15249
- } & {
15250
- type: "acp";
15251
- }))[]>>>>;
15042
+ }, z.core.$strip>>, z.ZodObject<{
15043
+ name: z.ZodString;
15044
+ command: z.ZodString;
15045
+ args: z.ZodArray<z.ZodString>;
15046
+ env: z.ZodArray<z.ZodObject<{
15047
+ name: z.ZodString;
15048
+ value: z.ZodString;
15049
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15050
+ }, z.core.$strip>>;
15051
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15052
+ }, z.core.$strip>]>>>;
15252
15053
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15253
15054
  }, z.core.$strip>;
15254
15055
  /**
@@ -15782,317 +15583,89 @@ export declare const zClientRequest: z.ZodObject<{
15782
15583
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15783
15584
  }, z.core.$strip>, z.ZodObject<{
15784
15585
  cwd: z.ZodString;
15785
- additionalDirectories: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
15786
- mcpServers: z.ZodType<({
15787
- name: string;
15788
- command: string;
15789
- args: string[];
15790
- env: {
15791
- name: string;
15792
- value: string;
15793
- _meta?: Record<string, unknown> | null | undefined;
15794
- }[];
15795
- _meta?: Record<string, unknown> | null | undefined;
15796
- } | ({
15797
- name: string;
15798
- url: string;
15799
- headers: {
15800
- name: string;
15801
- value: string;
15802
- _meta?: Record<string, unknown> | null | undefined;
15803
- }[];
15804
- _meta?: Record<string, unknown> | null | undefined;
15805
- } & {
15806
- type: "http";
15807
- }) | ({
15808
- name: string;
15809
- url: string;
15810
- headers: {
15811
- name: string;
15812
- value: string;
15813
- _meta?: Record<string, unknown> | null | undefined;
15814
- }[];
15815
- _meta?: Record<string, unknown> | null | undefined;
15816
- } & {
15817
- type: "sse";
15818
- }) | ({
15819
- name: string;
15820
- serverId: string;
15821
- _meta?: Record<string, unknown> | null | undefined;
15822
- } & {
15823
- type: "acp";
15824
- }))[], ({
15825
- name: string;
15826
- command: string;
15827
- args: string[];
15828
- env: {
15829
- name: string;
15830
- value: string;
15831
- _meta?: Record<string, unknown> | null | undefined;
15832
- }[];
15833
- _meta?: Record<string, unknown> | null | undefined;
15834
- } | ({
15835
- name: string;
15836
- url: string;
15837
- headers: {
15838
- name: string;
15839
- value: string;
15840
- _meta?: Record<string, unknown> | null | undefined;
15841
- }[];
15842
- _meta?: Record<string, unknown> | null | undefined;
15843
- } & {
15844
- type: "http";
15845
- }) | ({
15846
- name: string;
15847
- url: string;
15848
- headers: {
15849
- name: string;
15850
- value: string;
15851
- _meta?: Record<string, unknown> | null | undefined;
15852
- }[];
15853
- _meta?: Record<string, unknown> | null | undefined;
15854
- } & {
15855
- type: "sse";
15856
- }) | ({
15857
- name: string;
15858
- serverId: string;
15859
- _meta?: Record<string, unknown> | null | undefined;
15860
- } & {
15861
- type: "acp";
15862
- }))[], z.core.$ZodTypeInternals<({
15863
- name: string;
15864
- command: string;
15865
- args: string[];
15866
- env: {
15867
- name: string;
15868
- value: string;
15869
- _meta?: Record<string, unknown> | null | undefined;
15870
- }[];
15871
- _meta?: Record<string, unknown> | null | undefined;
15872
- } | ({
15873
- name: string;
15874
- url: string;
15875
- headers: {
15876
- name: string;
15877
- value: string;
15878
- _meta?: Record<string, unknown> | null | undefined;
15879
- }[];
15880
- _meta?: Record<string, unknown> | null | undefined;
15881
- } & {
15882
- type: "http";
15883
- }) | ({
15884
- name: string;
15885
- url: string;
15886
- headers: {
15887
- name: string;
15888
- value: string;
15889
- _meta?: Record<string, unknown> | null | undefined;
15890
- }[];
15891
- _meta?: Record<string, unknown> | null | undefined;
15892
- } & {
15893
- type: "sse";
15894
- }) | ({
15895
- name: string;
15896
- serverId: string;
15897
- _meta?: Record<string, unknown> | null | undefined;
15898
- } & {
15899
- type: "acp";
15900
- }))[], ({
15901
- name: string;
15902
- command: string;
15903
- args: string[];
15904
- env: {
15905
- name: string;
15906
- value: string;
15907
- _meta?: Record<string, unknown> | null | undefined;
15908
- }[];
15909
- _meta?: Record<string, unknown> | null | undefined;
15910
- } | ({
15911
- name: string;
15912
- url: string;
15913
- headers: {
15914
- name: string;
15915
- value: string;
15916
- _meta?: Record<string, unknown> | null | undefined;
15917
- }[];
15918
- _meta?: Record<string, unknown> | null | undefined;
15919
- } & {
15920
- type: "http";
15921
- }) | ({
15922
- name: string;
15923
- url: string;
15924
- headers: {
15925
- name: string;
15926
- value: string;
15927
- _meta?: Record<string, unknown> | null | undefined;
15928
- }[];
15929
- _meta?: Record<string, unknown> | null | undefined;
15930
- } & {
15931
- type: "sse";
15932
- }) | ({
15933
- name: string;
15934
- serverId: string;
15935
- _meta?: Record<string, unknown> | null | undefined;
15936
- } & {
15937
- type: "acp";
15938
- }))[]>>;
15939
- _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15940
- }, z.core.$strip>, z.ZodObject<{
15941
- mcpServers: z.ZodType<({
15942
- name: string;
15943
- command: string;
15944
- args: string[];
15945
- env: {
15946
- name: string;
15947
- value: string;
15948
- _meta?: Record<string, unknown> | null | undefined;
15949
- }[];
15950
- _meta?: Record<string, unknown> | null | undefined;
15951
- } | ({
15952
- name: string;
15953
- url: string;
15954
- headers: {
15955
- name: string;
15956
- value: string;
15957
- _meta?: Record<string, unknown> | null | undefined;
15958
- }[];
15959
- _meta?: Record<string, unknown> | null | undefined;
15960
- } & {
15961
- type: "http";
15962
- }) | ({
15963
- name: string;
15964
- url: string;
15965
- headers: {
15966
- name: string;
15967
- value: string;
15968
- _meta?: Record<string, unknown> | null | undefined;
15969
- }[];
15970
- _meta?: Record<string, unknown> | null | undefined;
15971
- } & {
15972
- type: "sse";
15973
- }) | ({
15974
- name: string;
15975
- serverId: string;
15976
- _meta?: Record<string, unknown> | null | undefined;
15977
- } & {
15978
- type: "acp";
15979
- }))[], ({
15980
- name: string;
15981
- command: string;
15982
- args: string[];
15983
- env: {
15984
- name: string;
15985
- value: string;
15986
- _meta?: Record<string, unknown> | null | undefined;
15987
- }[];
15988
- _meta?: Record<string, unknown> | null | undefined;
15989
- } | ({
15990
- name: string;
15991
- url: string;
15992
- headers: {
15993
- name: string;
15994
- value: string;
15995
- _meta?: Record<string, unknown> | null | undefined;
15996
- }[];
15997
- _meta?: Record<string, unknown> | null | undefined;
15998
- } & {
15999
- type: "http";
16000
- }) | ({
16001
- name: string;
16002
- url: string;
16003
- headers: {
16004
- name: string;
16005
- value: string;
16006
- _meta?: Record<string, unknown> | null | undefined;
16007
- }[];
16008
- _meta?: Record<string, unknown> | null | undefined;
16009
- } & {
16010
- type: "sse";
16011
- }) | ({
16012
- name: string;
16013
- serverId: string;
16014
- _meta?: Record<string, unknown> | null | undefined;
16015
- } & {
16016
- type: "acp";
16017
- }))[], z.core.$ZodTypeInternals<({
16018
- name: string;
16019
- command: string;
16020
- args: string[];
16021
- env: {
16022
- name: string;
16023
- value: string;
16024
- _meta?: Record<string, unknown> | null | undefined;
16025
- }[];
16026
- _meta?: Record<string, unknown> | null | undefined;
16027
- } | ({
16028
- name: string;
16029
- url: string;
16030
- headers: {
16031
- name: string;
16032
- value: string;
16033
- _meta?: Record<string, unknown> | null | undefined;
16034
- }[];
16035
- _meta?: Record<string, unknown> | null | undefined;
16036
- } & {
16037
- type: "http";
16038
- }) | ({
16039
- name: string;
16040
- url: string;
16041
- headers: {
16042
- name: string;
16043
- value: string;
16044
- _meta?: Record<string, unknown> | null | undefined;
16045
- }[];
16046
- _meta?: Record<string, unknown> | null | undefined;
16047
- } & {
16048
- type: "sse";
16049
- }) | ({
16050
- name: string;
16051
- serverId: string;
16052
- _meta?: Record<string, unknown> | null | undefined;
16053
- } & {
16054
- type: "acp";
16055
- }))[], ({
16056
- name: string;
16057
- command: string;
16058
- args: string[];
16059
- env: {
16060
- name: string;
16061
- value: string;
16062
- _meta?: Record<string, unknown> | null | undefined;
16063
- }[];
16064
- _meta?: Record<string, unknown> | null | undefined;
16065
- } | ({
16066
- name: string;
16067
- url: string;
16068
- headers: {
16069
- name: string;
16070
- value: string;
16071
- _meta?: Record<string, unknown> | null | undefined;
16072
- }[];
16073
- _meta?: Record<string, unknown> | null | undefined;
16074
- } & {
16075
- type: "http";
16076
- }) | ({
16077
- name: string;
16078
- url: string;
16079
- headers: {
16080
- name: string;
16081
- value: string;
16082
- _meta?: Record<string, unknown> | null | undefined;
16083
- }[];
16084
- _meta?: Record<string, unknown> | null | undefined;
16085
- } & {
16086
- type: "sse";
16087
- }) | ({
16088
- name: string;
16089
- serverId: string;
16090
- _meta?: Record<string, unknown> | null | undefined;
16091
- } & {
16092
- type: "acp";
16093
- }))[]>>;
15586
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
15587
+ mcpServers: z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
15588
+ name: z.ZodString;
15589
+ url: z.ZodString;
15590
+ headers: z.ZodArray<z.ZodObject<{
15591
+ name: z.ZodString;
15592
+ value: z.ZodString;
15593
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15594
+ }, z.core.$strip>>;
15595
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15596
+ }, z.core.$strip>, z.ZodObject<{
15597
+ type: z.ZodLiteral<"http">;
15598
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
15599
+ name: z.ZodString;
15600
+ url: z.ZodString;
15601
+ headers: z.ZodArray<z.ZodObject<{
15602
+ name: z.ZodString;
15603
+ value: z.ZodString;
15604
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15605
+ }, z.core.$strip>>;
15606
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15607
+ }, z.core.$strip>, z.ZodObject<{
15608
+ type: z.ZodLiteral<"sse">;
15609
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
15610
+ name: z.ZodString;
15611
+ serverId: z.ZodString;
15612
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15613
+ }, z.core.$strip>, z.ZodObject<{
15614
+ type: z.ZodLiteral<"acp">;
15615
+ }, z.core.$strip>>, z.ZodObject<{
15616
+ name: z.ZodString;
15617
+ command: z.ZodString;
15618
+ args: z.ZodArray<z.ZodString>;
15619
+ env: z.ZodArray<z.ZodObject<{
15620
+ name: z.ZodString;
15621
+ value: z.ZodString;
15622
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15623
+ }, z.core.$strip>>;
15624
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15625
+ }, z.core.$strip>]>>;
15626
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15627
+ }, z.core.$strip>, z.ZodObject<{
15628
+ mcpServers: z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
15629
+ name: z.ZodString;
15630
+ url: z.ZodString;
15631
+ headers: z.ZodArray<z.ZodObject<{
15632
+ name: z.ZodString;
15633
+ value: z.ZodString;
15634
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15635
+ }, z.core.$strip>>;
15636
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15637
+ }, z.core.$strip>, z.ZodObject<{
15638
+ type: z.ZodLiteral<"http">;
15639
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
15640
+ name: z.ZodString;
15641
+ url: z.ZodString;
15642
+ headers: z.ZodArray<z.ZodObject<{
15643
+ name: z.ZodString;
15644
+ value: z.ZodString;
15645
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15646
+ }, z.core.$strip>>;
15647
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15648
+ }, z.core.$strip>, z.ZodObject<{
15649
+ type: z.ZodLiteral<"sse">;
15650
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
15651
+ name: z.ZodString;
15652
+ serverId: z.ZodString;
15653
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15654
+ }, z.core.$strip>, z.ZodObject<{
15655
+ type: z.ZodLiteral<"acp">;
15656
+ }, z.core.$strip>>, z.ZodObject<{
15657
+ name: z.ZodString;
15658
+ command: z.ZodString;
15659
+ args: z.ZodArray<z.ZodString>;
15660
+ env: z.ZodArray<z.ZodObject<{
15661
+ name: z.ZodString;
15662
+ value: z.ZodString;
15663
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15664
+ }, z.core.$strip>>;
15665
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15666
+ }, z.core.$strip>]>>;
16094
15667
  cwd: z.ZodString;
16095
- additionalDirectories: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
15668
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
16096
15669
  sessionId: z.ZodString;
16097
15670
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16098
15671
  }, z.core.$strip>, z.ZodObject<{
@@ -16105,8 +15678,8 @@ export declare const zClientRequest: z.ZodObject<{
16105
15678
  }, z.core.$strip>, z.ZodObject<{
16106
15679
  sessionId: z.ZodString;
16107
15680
  cwd: z.ZodString;
16108
- additionalDirectories: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
16109
- mcpServers: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
15681
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
15682
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
16110
15683
  name: z.ZodString;
16111
15684
  url: z.ZodString;
16112
15685
  headers: z.ZodArray<z.ZodObject<{
@@ -16144,89 +15717,13 @@ export declare const zClientRequest: z.ZodObject<{
16144
15717
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16145
15718
  }, z.core.$strip>>;
16146
15719
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16147
- }, z.core.$strip>]>>>, z.ZodTransform<({
16148
- name: string;
16149
- command: string;
16150
- args: string[];
16151
- env: {
16152
- name: string;
16153
- value: string;
16154
- _meta?: Record<string, unknown> | null | undefined;
16155
- }[];
16156
- _meta?: Record<string, unknown> | null | undefined;
16157
- } | ({
16158
- name: string;
16159
- url: string;
16160
- headers: {
16161
- name: string;
16162
- value: string;
16163
- _meta?: Record<string, unknown> | null | undefined;
16164
- }[];
16165
- _meta?: Record<string, unknown> | null | undefined;
16166
- } & {
16167
- type: "http";
16168
- }) | ({
16169
- name: string;
16170
- url: string;
16171
- headers: {
16172
- name: string;
16173
- value: string;
16174
- _meta?: Record<string, unknown> | null | undefined;
16175
- }[];
16176
- _meta?: Record<string, unknown> | null | undefined;
16177
- } & {
16178
- type: "sse";
16179
- }) | ({
16180
- name: string;
16181
- serverId: string;
16182
- _meta?: Record<string, unknown> | null | undefined;
16183
- } & {
16184
- type: "acp";
16185
- }))[], ({
16186
- name: string;
16187
- command: string;
16188
- args: string[];
16189
- env: {
16190
- name: string;
16191
- value: string;
16192
- _meta?: Record<string, unknown> | null | undefined;
16193
- }[];
16194
- _meta?: Record<string, unknown> | null | undefined;
16195
- } | ({
16196
- name: string;
16197
- url: string;
16198
- headers: {
16199
- name: string;
16200
- value: string;
16201
- _meta?: Record<string, unknown> | null | undefined;
16202
- }[];
16203
- _meta?: Record<string, unknown> | null | undefined;
16204
- } & {
16205
- type: "http";
16206
- }) | ({
16207
- name: string;
16208
- url: string;
16209
- headers: {
16210
- name: string;
16211
- value: string;
16212
- _meta?: Record<string, unknown> | null | undefined;
16213
- }[];
16214
- _meta?: Record<string, unknown> | null | undefined;
16215
- } & {
16216
- type: "sse";
16217
- }) | ({
16218
- name: string;
16219
- serverId: string;
16220
- _meta?: Record<string, unknown> | null | undefined;
16221
- } & {
16222
- type: "acp";
16223
- }))[]>>>>;
15720
+ }, z.core.$strip>]>>>;
16224
15721
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16225
15722
  }, z.core.$strip>, z.ZodObject<{
16226
15723
  sessionId: z.ZodString;
16227
15724
  cwd: z.ZodString;
16228
- additionalDirectories: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodString>>, z.ZodTransform<string[], string[]>>>>;
16229
- mcpServers: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
15725
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
15726
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
16230
15727
  name: z.ZodString;
16231
15728
  url: z.ZodString;
16232
15729
  headers: z.ZodArray<z.ZodObject<{
@@ -16264,83 +15761,7 @@ export declare const zClientRequest: z.ZodObject<{
16264
15761
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16265
15762
  }, z.core.$strip>>;
16266
15763
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16267
- }, z.core.$strip>]>>>, z.ZodTransform<({
16268
- name: string;
16269
- command: string;
16270
- args: string[];
16271
- env: {
16272
- name: string;
16273
- value: string;
16274
- _meta?: Record<string, unknown> | null | undefined;
16275
- }[];
16276
- _meta?: Record<string, unknown> | null | undefined;
16277
- } | ({
16278
- name: string;
16279
- url: string;
16280
- headers: {
16281
- name: string;
16282
- value: string;
16283
- _meta?: Record<string, unknown> | null | undefined;
16284
- }[];
16285
- _meta?: Record<string, unknown> | null | undefined;
16286
- } & {
16287
- type: "http";
16288
- }) | ({
16289
- name: string;
16290
- url: string;
16291
- headers: {
16292
- name: string;
16293
- value: string;
16294
- _meta?: Record<string, unknown> | null | undefined;
16295
- }[];
16296
- _meta?: Record<string, unknown> | null | undefined;
16297
- } & {
16298
- type: "sse";
16299
- }) | ({
16300
- name: string;
16301
- serverId: string;
16302
- _meta?: Record<string, unknown> | null | undefined;
16303
- } & {
16304
- type: "acp";
16305
- }))[], ({
16306
- name: string;
16307
- command: string;
16308
- args: string[];
16309
- env: {
16310
- name: string;
16311
- value: string;
16312
- _meta?: Record<string, unknown> | null | undefined;
16313
- }[];
16314
- _meta?: Record<string, unknown> | null | undefined;
16315
- } | ({
16316
- name: string;
16317
- url: string;
16318
- headers: {
16319
- name: string;
16320
- value: string;
16321
- _meta?: Record<string, unknown> | null | undefined;
16322
- }[];
16323
- _meta?: Record<string, unknown> | null | undefined;
16324
- } & {
16325
- type: "http";
16326
- }) | ({
16327
- name: string;
16328
- url: string;
16329
- headers: {
16330
- name: string;
16331
- value: string;
16332
- _meta?: Record<string, unknown> | null | undefined;
16333
- }[];
16334
- _meta?: Record<string, unknown> | null | undefined;
16335
- } & {
16336
- type: "sse";
16337
- }) | ({
16338
- name: string;
16339
- serverId: string;
16340
- _meta?: Record<string, unknown> | null | undefined;
16341
- } & {
16342
- type: "acp";
16343
- }))[]>>>>;
15764
+ }, z.core.$strip>]>>>;
16344
15765
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16345
15766
  }, z.core.$strip>, z.ZodObject<{
16346
15767
  sessionId: z.ZodString;
@@ -16907,71 +16328,23 @@ export declare const zDidChangeDocumentNotification: z.ZodObject<{
16907
16328
  sessionId: z.ZodString;
16908
16329
  uri: z.ZodString;
16909
16330
  version: z.ZodNumber;
16910
- contentChanges: z.ZodType<{
16911
- text: string;
16912
- range?: {
16913
- start: {
16914
- line: number;
16915
- character: number;
16916
- _meta?: Record<string, unknown> | null | undefined;
16917
- };
16918
- end: {
16919
- line: number;
16920
- character: number;
16921
- _meta?: Record<string, unknown> | null | undefined;
16922
- };
16923
- _meta?: Record<string, unknown> | null | undefined;
16924
- } | null | undefined;
16925
- _meta?: Record<string, unknown> | null | undefined;
16926
- }[], {
16927
- text: string;
16928
- range?: {
16929
- start: {
16930
- line: number;
16931
- character: number;
16932
- _meta?: Record<string, unknown> | null | undefined;
16933
- };
16934
- end: {
16935
- line: number;
16936
- character: number;
16937
- _meta?: Record<string, unknown> | null | undefined;
16938
- };
16939
- _meta?: Record<string, unknown> | null | undefined;
16940
- } | null | undefined;
16941
- _meta?: Record<string, unknown> | null | undefined;
16942
- }[], z.core.$ZodTypeInternals<{
16943
- text: string;
16944
- range?: {
16945
- start: {
16946
- line: number;
16947
- character: number;
16948
- _meta?: Record<string, unknown> | null | undefined;
16949
- };
16950
- end: {
16951
- line: number;
16952
- character: number;
16953
- _meta?: Record<string, unknown> | null | undefined;
16954
- };
16955
- _meta?: Record<string, unknown> | null | undefined;
16956
- } | null | undefined;
16957
- _meta?: Record<string, unknown> | null | undefined;
16958
- }[], {
16959
- text: string;
16960
- range?: {
16961
- start: {
16962
- line: number;
16963
- character: number;
16964
- _meta?: Record<string, unknown> | null | undefined;
16965
- };
16966
- end: {
16967
- line: number;
16968
- character: number;
16969
- _meta?: Record<string, unknown> | null | undefined;
16970
- };
16971
- _meta?: Record<string, unknown> | null | undefined;
16972
- } | null | undefined;
16973
- _meta?: Record<string, unknown> | null | undefined;
16974
- }[]>>;
16331
+ contentChanges: z.ZodArray<z.ZodObject<{
16332
+ range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16333
+ start: z.ZodObject<{
16334
+ line: z.ZodInt;
16335
+ character: z.ZodInt;
16336
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16337
+ }, z.core.$strip>;
16338
+ end: z.ZodObject<{
16339
+ line: z.ZodInt;
16340
+ character: z.ZodInt;
16341
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16342
+ }, z.core.$strip>;
16343
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16344
+ }, z.core.$strip>>>;
16345
+ text: z.ZodString;
16346
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16347
+ }, z.core.$strip>>;
16975
16348
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16976
16349
  }, z.core.$strip>;
16977
16350
  /**
@@ -17076,71 +16449,23 @@ export declare const zClientNotification: z.ZodObject<{
17076
16449
  sessionId: z.ZodString;
17077
16450
  uri: z.ZodString;
17078
16451
  version: z.ZodNumber;
17079
- contentChanges: z.ZodType<{
17080
- text: string;
17081
- range?: {
17082
- start: {
17083
- line: number;
17084
- character: number;
17085
- _meta?: Record<string, unknown> | null | undefined;
17086
- };
17087
- end: {
17088
- line: number;
17089
- character: number;
17090
- _meta?: Record<string, unknown> | null | undefined;
17091
- };
17092
- _meta?: Record<string, unknown> | null | undefined;
17093
- } | null | undefined;
17094
- _meta?: Record<string, unknown> | null | undefined;
17095
- }[], {
17096
- text: string;
17097
- range?: {
17098
- start: {
17099
- line: number;
17100
- character: number;
17101
- _meta?: Record<string, unknown> | null | undefined;
17102
- };
17103
- end: {
17104
- line: number;
17105
- character: number;
17106
- _meta?: Record<string, unknown> | null | undefined;
17107
- };
17108
- _meta?: Record<string, unknown> | null | undefined;
17109
- } | null | undefined;
17110
- _meta?: Record<string, unknown> | null | undefined;
17111
- }[], z.core.$ZodTypeInternals<{
17112
- text: string;
17113
- range?: {
17114
- start: {
17115
- line: number;
17116
- character: number;
17117
- _meta?: Record<string, unknown> | null | undefined;
17118
- };
17119
- end: {
17120
- line: number;
17121
- character: number;
17122
- _meta?: Record<string, unknown> | null | undefined;
17123
- };
17124
- _meta?: Record<string, unknown> | null | undefined;
17125
- } | null | undefined;
17126
- _meta?: Record<string, unknown> | null | undefined;
17127
- }[], {
17128
- text: string;
17129
- range?: {
17130
- start: {
17131
- line: number;
17132
- character: number;
17133
- _meta?: Record<string, unknown> | null | undefined;
17134
- };
17135
- end: {
17136
- line: number;
17137
- character: number;
17138
- _meta?: Record<string, unknown> | null | undefined;
17139
- };
17140
- _meta?: Record<string, unknown> | null | undefined;
17141
- } | null | undefined;
17142
- _meta?: Record<string, unknown> | null | undefined;
17143
- }[]>>;
16452
+ contentChanges: z.ZodArray<z.ZodObject<{
16453
+ range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16454
+ start: z.ZodObject<{
16455
+ line: z.ZodInt;
16456
+ character: z.ZodInt;
16457
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16458
+ }, z.core.$strip>;
16459
+ end: z.ZodObject<{
16460
+ line: z.ZodInt;
16461
+ character: z.ZodInt;
16462
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16463
+ }, z.core.$strip>;
16464
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16465
+ }, z.core.$strip>>>;
16466
+ text: z.ZodString;
16467
+ _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16468
+ }, z.core.$strip>>;
17144
16469
  _meta: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
17145
16470
  }, z.core.$strip>, z.ZodObject<{
17146
16471
  sessionId: z.ZodString;