@easbot/agent 0.2.22 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -14,9 +14,8 @@ import { CommandArguments, CommandExecutionContext, CommandExecuteResult, Comman
14
14
  export { CommandDefinition, CommandExecuteResult, CommandExecutionContext, CommandInitContext, CommandInitResult, HookChainResult, HookContext, HookDefinition, HookError, HookEvent, HookExecutionDetail, HookHandler, HookMatcher, HookOutputWrapper, HookResult } from '@easbot/plugin';
15
15
  import { EasServer, NodeSpawnResult } from '@easbot/utils';
16
16
  export { Identifier } from '@easbot/utils';
17
- import * as _modelcontextprotocol_sdk_client from '@modelcontextprotocol/sdk/client';
18
- import { Client } from '@modelcontextprotocol/sdk/client/index.js';
19
- import z$2 from 'zod/v4';
17
+ import * as _easbot_mcp from '@easbot/mcp';
18
+ import { PromptMetadata, ResourceMetadata, MCPClient, Status } from '@easbot/mcp';
20
19
  import { WSContext } from 'hono/ws';
21
20
  import { SubAgentInstance, SubAgentInput, SubAgentResult, SubAgentConfig } from '@easbot/types';
22
21
  export { AgentPromptPart, SubAgentConfig, SubAgentEvent, SubAgentHandler, SubAgentInput, SubAgentInstance, SubAgentModel, SubAgentResult, SubAgentStatus } from '@easbot/types';
@@ -1853,9 +1852,9 @@ declare const ContextSchema: z$1.ZodObject<{
1853
1852
  extension: "extension";
1854
1853
  }>>;
1855
1854
  scope: z$1.ZodDefault<z$1.ZodEnum<{
1856
- all: "all";
1857
1855
  general: "general";
1858
1856
  coder: "coder";
1857
+ all: "all";
1859
1858
  }>>;
1860
1859
  priority: z$1.ZodDefault<z$1.ZodNumber>;
1861
1860
  owner: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
@@ -1954,10 +1953,17 @@ declare const McpOAuth: z$1.ZodObject<{
1954
1953
  type McpOAuth = z$1.infer<typeof McpOAuth>;
1955
1954
  declare const Mcp: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
1956
1955
  type: z$1.ZodLiteral<"local">;
1957
- command: z$1.ZodArray<z$1.ZodString>;
1958
- environment: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
1956
+ command: z$1.ZodString;
1957
+ args: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
1958
+ env: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
1959
1959
  enabled: z$1.ZodOptional<z$1.ZodBoolean>;
1960
1960
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
1961
+ description: z$1.ZodOptional<z$1.ZodString>;
1962
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
1963
+ general: "general";
1964
+ coder: "coder";
1965
+ all: "all";
1966
+ }>>>;
1961
1967
  }, z$1.core.$strict>, z$1.ZodObject<{
1962
1968
  type: z$1.ZodLiteral<"remote">;
1963
1969
  url: z$1.ZodString;
@@ -1969,6 +1975,12 @@ declare const Mcp: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
1969
1975
  scope: z$1.ZodOptional<z$1.ZodString>;
1970
1976
  }, z$1.core.$strict>, z$1.ZodLiteral<false>]>>;
1971
1977
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
1978
+ description: z$1.ZodOptional<z$1.ZodString>;
1979
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
1980
+ general: "general";
1981
+ coder: "coder";
1982
+ all: "all";
1983
+ }>>>;
1972
1984
  }, z$1.core.$strict>], "type">;
1973
1985
  type Mcp = z$1.infer<typeof Mcp>;
1974
1986
  declare const PermissionAction: z$1.ZodEnum<{
@@ -2274,6 +2286,11 @@ declare const Command$1: z$1.ZodObject<{
2274
2286
  agent: z$1.ZodOptional<z$1.ZodString>;
2275
2287
  model: z$1.ZodOptional<z$1.ZodString>;
2276
2288
  subtask: z$1.ZodOptional<z$1.ZodBoolean>;
2289
+ scope: z$1.ZodOptional<z$1.ZodEnum<{
2290
+ general: "general";
2291
+ coder: "coder";
2292
+ all: "all";
2293
+ }>>;
2277
2294
  }, z$1.core.$strip>;
2278
2295
  type Command$1 = z$1.infer<typeof Command$1>;
2279
2296
  declare const Skills: z$1.ZodObject<{
@@ -2291,9 +2308,9 @@ declare const Agent$2: z$1.ZodPipe<z$1.ZodObject<{
2291
2308
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
2292
2309
  description: z$1.ZodOptional<z$1.ZodString>;
2293
2310
  mode: z$1.ZodOptional<z$1.ZodEnum<{
2311
+ all: "all";
2294
2312
  subagent: "subagent";
2295
2313
  primary: "primary";
2296
- all: "all";
2297
2314
  }>>;
2298
2315
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
2299
2316
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -2592,7 +2609,7 @@ declare const Agent$2: z$1.ZodPipe<z$1.ZodObject<{
2592
2609
  tools?: Record<string, boolean> | undefined;
2593
2610
  disable?: boolean | undefined;
2594
2611
  description?: string | undefined;
2595
- mode?: "subagent" | "primary" | "all" | undefined;
2612
+ mode?: "all" | "subagent" | "primary" | undefined;
2596
2613
  hidden?: boolean | undefined;
2597
2614
  options?: Record<string, any> | undefined;
2598
2615
  color?: string | undefined;
@@ -2613,7 +2630,7 @@ declare const Agent$2: z$1.ZodPipe<z$1.ZodObject<{
2613
2630
  tools?: Record<string, boolean> | undefined;
2614
2631
  disable?: boolean | undefined;
2615
2632
  description?: string | undefined;
2616
- mode?: "subagent" | "primary" | "all" | undefined;
2633
+ mode?: "all" | "subagent" | "primary" | undefined;
2617
2634
  hidden?: boolean | undefined;
2618
2635
  options?: Record<string, any> | undefined;
2619
2636
  color?: string | undefined;
@@ -2948,6 +2965,11 @@ declare const Info: z$1.ZodObject<{
2948
2965
  agent: z$1.ZodOptional<z$1.ZodString>;
2949
2966
  model: z$1.ZodOptional<z$1.ZodString>;
2950
2967
  subtask: z$1.ZodOptional<z$1.ZodBoolean>;
2968
+ scope: z$1.ZodOptional<z$1.ZodEnum<{
2969
+ general: "general";
2970
+ coder: "coder";
2971
+ all: "all";
2972
+ }>>;
2951
2973
  }, z$1.core.$strip>>>;
2952
2974
  skills: z$1.ZodOptional<z$1.ZodObject<{
2953
2975
  paths: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
@@ -2982,9 +3004,9 @@ declare const Info: z$1.ZodObject<{
2982
3004
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
2983
3005
  description: z$1.ZodOptional<z$1.ZodString>;
2984
3006
  mode: z$1.ZodOptional<z$1.ZodEnum<{
3007
+ all: "all";
2985
3008
  subagent: "subagent";
2986
3009
  primary: "primary";
2987
- all: "all";
2988
3010
  }>>;
2989
3011
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
2990
3012
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -3283,7 +3305,7 @@ declare const Info: z$1.ZodObject<{
3283
3305
  tools?: Record<string, boolean> | undefined;
3284
3306
  disable?: boolean | undefined;
3285
3307
  description?: string | undefined;
3286
- mode?: "subagent" | "primary" | "all" | undefined;
3308
+ mode?: "all" | "subagent" | "primary" | undefined;
3287
3309
  hidden?: boolean | undefined;
3288
3310
  options?: Record<string, any> | undefined;
3289
3311
  color?: string | undefined;
@@ -3304,7 +3326,7 @@ declare const Info: z$1.ZodObject<{
3304
3326
  tools?: Record<string, boolean> | undefined;
3305
3327
  disable?: boolean | undefined;
3306
3328
  description?: string | undefined;
3307
- mode?: "subagent" | "primary" | "all" | undefined;
3329
+ mode?: "all" | "subagent" | "primary" | undefined;
3308
3330
  hidden?: boolean | undefined;
3309
3331
  options?: Record<string, any> | undefined;
3310
3332
  color?: string | undefined;
@@ -3322,9 +3344,9 @@ declare const Info: z$1.ZodObject<{
3322
3344
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
3323
3345
  description: z$1.ZodOptional<z$1.ZodString>;
3324
3346
  mode: z$1.ZodOptional<z$1.ZodEnum<{
3347
+ all: "all";
3325
3348
  subagent: "subagent";
3326
3349
  primary: "primary";
3327
- all: "all";
3328
3350
  }>>;
3329
3351
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
3330
3352
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -3623,7 +3645,7 @@ declare const Info: z$1.ZodObject<{
3623
3645
  tools?: Record<string, boolean> | undefined;
3624
3646
  disable?: boolean | undefined;
3625
3647
  description?: string | undefined;
3626
- mode?: "subagent" | "primary" | "all" | undefined;
3648
+ mode?: "all" | "subagent" | "primary" | undefined;
3627
3649
  hidden?: boolean | undefined;
3628
3650
  options?: Record<string, any> | undefined;
3629
3651
  color?: string | undefined;
@@ -3644,7 +3666,7 @@ declare const Info: z$1.ZodObject<{
3644
3666
  tools?: Record<string, boolean> | undefined;
3645
3667
  disable?: boolean | undefined;
3646
3668
  description?: string | undefined;
3647
- mode?: "subagent" | "primary" | "all" | undefined;
3669
+ mode?: "all" | "subagent" | "primary" | undefined;
3648
3670
  hidden?: boolean | undefined;
3649
3671
  options?: Record<string, any> | undefined;
3650
3672
  color?: string | undefined;
@@ -3662,9 +3684,9 @@ declare const Info: z$1.ZodObject<{
3662
3684
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
3663
3685
  description: z$1.ZodOptional<z$1.ZodString>;
3664
3686
  mode: z$1.ZodOptional<z$1.ZodEnum<{
3687
+ all: "all";
3665
3688
  subagent: "subagent";
3666
3689
  primary: "primary";
3667
- all: "all";
3668
3690
  }>>;
3669
3691
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
3670
3692
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -3963,7 +3985,7 @@ declare const Info: z$1.ZodObject<{
3963
3985
  tools?: Record<string, boolean> | undefined;
3964
3986
  disable?: boolean | undefined;
3965
3987
  description?: string | undefined;
3966
- mode?: "subagent" | "primary" | "all" | undefined;
3988
+ mode?: "all" | "subagent" | "primary" | undefined;
3967
3989
  hidden?: boolean | undefined;
3968
3990
  options?: Record<string, any> | undefined;
3969
3991
  color?: string | undefined;
@@ -3984,7 +4006,7 @@ declare const Info: z$1.ZodObject<{
3984
4006
  tools?: Record<string, boolean> | undefined;
3985
4007
  disable?: boolean | undefined;
3986
4008
  description?: string | undefined;
3987
- mode?: "subagent" | "primary" | "all" | undefined;
4009
+ mode?: "all" | "subagent" | "primary" | undefined;
3988
4010
  hidden?: boolean | undefined;
3989
4011
  options?: Record<string, any> | undefined;
3990
4012
  color?: string | undefined;
@@ -4002,9 +4024,9 @@ declare const Info: z$1.ZodObject<{
4002
4024
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
4003
4025
  description: z$1.ZodOptional<z$1.ZodString>;
4004
4026
  mode: z$1.ZodOptional<z$1.ZodEnum<{
4027
+ all: "all";
4005
4028
  subagent: "subagent";
4006
4029
  primary: "primary";
4007
- all: "all";
4008
4030
  }>>;
4009
4031
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
4010
4032
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -4303,7 +4325,7 @@ declare const Info: z$1.ZodObject<{
4303
4325
  tools?: Record<string, boolean> | undefined;
4304
4326
  disable?: boolean | undefined;
4305
4327
  description?: string | undefined;
4306
- mode?: "subagent" | "primary" | "all" | undefined;
4328
+ mode?: "all" | "subagent" | "primary" | undefined;
4307
4329
  hidden?: boolean | undefined;
4308
4330
  options?: Record<string, any> | undefined;
4309
4331
  color?: string | undefined;
@@ -4324,7 +4346,7 @@ declare const Info: z$1.ZodObject<{
4324
4346
  tools?: Record<string, boolean> | undefined;
4325
4347
  disable?: boolean | undefined;
4326
4348
  description?: string | undefined;
4327
- mode?: "subagent" | "primary" | "all" | undefined;
4349
+ mode?: "all" | "subagent" | "primary" | undefined;
4328
4350
  hidden?: boolean | undefined;
4329
4351
  options?: Record<string, any> | undefined;
4330
4352
  color?: string | undefined;
@@ -4342,9 +4364,9 @@ declare const Info: z$1.ZodObject<{
4342
4364
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
4343
4365
  description: z$1.ZodOptional<z$1.ZodString>;
4344
4366
  mode: z$1.ZodOptional<z$1.ZodEnum<{
4367
+ all: "all";
4345
4368
  subagent: "subagent";
4346
4369
  primary: "primary";
4347
- all: "all";
4348
4370
  }>>;
4349
4371
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
4350
4372
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -4643,7 +4665,7 @@ declare const Info: z$1.ZodObject<{
4643
4665
  tools?: Record<string, boolean> | undefined;
4644
4666
  disable?: boolean | undefined;
4645
4667
  description?: string | undefined;
4646
- mode?: "subagent" | "primary" | "all" | undefined;
4668
+ mode?: "all" | "subagent" | "primary" | undefined;
4647
4669
  hidden?: boolean | undefined;
4648
4670
  options?: Record<string, any> | undefined;
4649
4671
  color?: string | undefined;
@@ -4664,7 +4686,7 @@ declare const Info: z$1.ZodObject<{
4664
4686
  tools?: Record<string, boolean> | undefined;
4665
4687
  disable?: boolean | undefined;
4666
4688
  description?: string | undefined;
4667
- mode?: "subagent" | "primary" | "all" | undefined;
4689
+ mode?: "all" | "subagent" | "primary" | undefined;
4668
4690
  hidden?: boolean | undefined;
4669
4691
  options?: Record<string, any> | undefined;
4670
4692
  color?: string | undefined;
@@ -4682,9 +4704,9 @@ declare const Info: z$1.ZodObject<{
4682
4704
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
4683
4705
  description: z$1.ZodOptional<z$1.ZodString>;
4684
4706
  mode: z$1.ZodOptional<z$1.ZodEnum<{
4707
+ all: "all";
4685
4708
  subagent: "subagent";
4686
4709
  primary: "primary";
4687
- all: "all";
4688
4710
  }>>;
4689
4711
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
4690
4712
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -4983,7 +5005,7 @@ declare const Info: z$1.ZodObject<{
4983
5005
  tools?: Record<string, boolean> | undefined;
4984
5006
  disable?: boolean | undefined;
4985
5007
  description?: string | undefined;
4986
- mode?: "subagent" | "primary" | "all" | undefined;
5008
+ mode?: "all" | "subagent" | "primary" | undefined;
4987
5009
  hidden?: boolean | undefined;
4988
5010
  options?: Record<string, any> | undefined;
4989
5011
  color?: string | undefined;
@@ -5004,7 +5026,7 @@ declare const Info: z$1.ZodObject<{
5004
5026
  tools?: Record<string, boolean> | undefined;
5005
5027
  disable?: boolean | undefined;
5006
5028
  description?: string | undefined;
5007
- mode?: "subagent" | "primary" | "all" | undefined;
5029
+ mode?: "all" | "subagent" | "primary" | undefined;
5008
5030
  hidden?: boolean | undefined;
5009
5031
  options?: Record<string, any> | undefined;
5010
5032
  color?: string | undefined;
@@ -5022,9 +5044,9 @@ declare const Info: z$1.ZodObject<{
5022
5044
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
5023
5045
  description: z$1.ZodOptional<z$1.ZodString>;
5024
5046
  mode: z$1.ZodOptional<z$1.ZodEnum<{
5047
+ all: "all";
5025
5048
  subagent: "subagent";
5026
5049
  primary: "primary";
5027
- all: "all";
5028
5050
  }>>;
5029
5051
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
5030
5052
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -5323,7 +5345,7 @@ declare const Info: z$1.ZodObject<{
5323
5345
  tools?: Record<string, boolean> | undefined;
5324
5346
  disable?: boolean | undefined;
5325
5347
  description?: string | undefined;
5326
- mode?: "subagent" | "primary" | "all" | undefined;
5348
+ mode?: "all" | "subagent" | "primary" | undefined;
5327
5349
  hidden?: boolean | undefined;
5328
5350
  options?: Record<string, any> | undefined;
5329
5351
  color?: string | undefined;
@@ -5344,7 +5366,7 @@ declare const Info: z$1.ZodObject<{
5344
5366
  tools?: Record<string, boolean> | undefined;
5345
5367
  disable?: boolean | undefined;
5346
5368
  description?: string | undefined;
5347
- mode?: "subagent" | "primary" | "all" | undefined;
5369
+ mode?: "all" | "subagent" | "primary" | undefined;
5348
5370
  hidden?: boolean | undefined;
5349
5371
  options?: Record<string, any> | undefined;
5350
5372
  color?: string | undefined;
@@ -5362,9 +5384,9 @@ declare const Info: z$1.ZodObject<{
5362
5384
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
5363
5385
  description: z$1.ZodOptional<z$1.ZodString>;
5364
5386
  mode: z$1.ZodOptional<z$1.ZodEnum<{
5387
+ all: "all";
5365
5388
  subagent: "subagent";
5366
5389
  primary: "primary";
5367
- all: "all";
5368
5390
  }>>;
5369
5391
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
5370
5392
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -5663,7 +5685,7 @@ declare const Info: z$1.ZodObject<{
5663
5685
  tools?: Record<string, boolean> | undefined;
5664
5686
  disable?: boolean | undefined;
5665
5687
  description?: string | undefined;
5666
- mode?: "subagent" | "primary" | "all" | undefined;
5688
+ mode?: "all" | "subagent" | "primary" | undefined;
5667
5689
  hidden?: boolean | undefined;
5668
5690
  options?: Record<string, any> | undefined;
5669
5691
  color?: string | undefined;
@@ -5684,7 +5706,7 @@ declare const Info: z$1.ZodObject<{
5684
5706
  tools?: Record<string, boolean> | undefined;
5685
5707
  disable?: boolean | undefined;
5686
5708
  description?: string | undefined;
5687
- mode?: "subagent" | "primary" | "all" | undefined;
5709
+ mode?: "all" | "subagent" | "primary" | undefined;
5688
5710
  hidden?: boolean | undefined;
5689
5711
  options?: Record<string, any> | undefined;
5690
5712
  color?: string | undefined;
@@ -5773,10 +5795,17 @@ declare const Info: z$1.ZodObject<{
5773
5795
  }, z$1.core.$strict>>>;
5774
5796
  mcp: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5775
5797
  type: z$1.ZodLiteral<"local">;
5776
- command: z$1.ZodArray<z$1.ZodString>;
5777
- environment: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
5798
+ command: z$1.ZodString;
5799
+ args: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
5800
+ env: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
5778
5801
  enabled: z$1.ZodOptional<z$1.ZodBoolean>;
5779
5802
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
5803
+ description: z$1.ZodOptional<z$1.ZodString>;
5804
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
5805
+ general: "general";
5806
+ coder: "coder";
5807
+ all: "all";
5808
+ }>>>;
5780
5809
  }, z$1.core.$strict>, z$1.ZodObject<{
5781
5810
  type: z$1.ZodLiteral<"remote">;
5782
5811
  url: z$1.ZodString;
@@ -5788,6 +5817,12 @@ declare const Info: z$1.ZodObject<{
5788
5817
  scope: z$1.ZodOptional<z$1.ZodString>;
5789
5818
  }, z$1.core.$strict>, z$1.ZodLiteral<false>]>>;
5790
5819
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
5820
+ description: z$1.ZodOptional<z$1.ZodString>;
5821
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
5822
+ general: "general";
5823
+ coder: "coder";
5824
+ all: "all";
5825
+ }>>>;
5791
5826
  }, z$1.core.$strict>], "type">, z$1.ZodObject<{
5792
5827
  enabled: z$1.ZodBoolean;
5793
5828
  }, z$1.core.$strict>]>>>;
@@ -6430,9 +6465,9 @@ declare const Info: z$1.ZodObject<{
6430
6465
  extension: "extension";
6431
6466
  }>>;
6432
6467
  scope: z$1.ZodDefault<z$1.ZodEnum<{
6433
- all: "all";
6434
6468
  general: "general";
6435
6469
  coder: "coder";
6470
+ all: "all";
6436
6471
  }>>;
6437
6472
  priority: z$1.ZodDefault<z$1.ZodNumber>;
6438
6473
  owner: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
@@ -6700,6 +6735,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6700
6735
  agent?: string | undefined;
6701
6736
  model?: string | undefined;
6702
6737
  subtask?: boolean | undefined;
6738
+ scope?: "general" | "coder" | "all" | undefined;
6703
6739
  }> | undefined;
6704
6740
  skills?: {
6705
6741
  paths?: string[] | undefined;
@@ -6730,7 +6766,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6730
6766
  tools?: Record<string, boolean> | undefined;
6731
6767
  disable?: boolean | undefined;
6732
6768
  description?: string | undefined;
6733
- mode?: "subagent" | "primary" | "all" | undefined;
6769
+ mode?: "all" | "subagent" | "primary" | undefined;
6734
6770
  hidden?: boolean | undefined;
6735
6771
  options?: Record<string, any> | undefined;
6736
6772
  color?: string | undefined;
@@ -6752,7 +6788,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6752
6788
  tools?: Record<string, boolean> | undefined;
6753
6789
  disable?: boolean | undefined;
6754
6790
  description?: string | undefined;
6755
- mode?: "subagent" | "primary" | "all" | undefined;
6791
+ mode?: "all" | "subagent" | "primary" | undefined;
6756
6792
  hidden?: boolean | undefined;
6757
6793
  options?: Record<string, any> | undefined;
6758
6794
  color?: string | undefined;
@@ -6774,7 +6810,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6774
6810
  tools?: Record<string, boolean> | undefined;
6775
6811
  disable?: boolean | undefined;
6776
6812
  description?: string | undefined;
6777
- mode?: "subagent" | "primary" | "all" | undefined;
6813
+ mode?: "all" | "subagent" | "primary" | undefined;
6778
6814
  hidden?: boolean | undefined;
6779
6815
  options?: Record<string, any> | undefined;
6780
6816
  color?: string | undefined;
@@ -6796,7 +6832,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6796
6832
  tools?: Record<string, boolean> | undefined;
6797
6833
  disable?: boolean | undefined;
6798
6834
  description?: string | undefined;
6799
- mode?: "subagent" | "primary" | "all" | undefined;
6835
+ mode?: "all" | "subagent" | "primary" | undefined;
6800
6836
  hidden?: boolean | undefined;
6801
6837
  options?: Record<string, any> | undefined;
6802
6838
  color?: string | undefined;
@@ -6818,7 +6854,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6818
6854
  tools?: Record<string, boolean> | undefined;
6819
6855
  disable?: boolean | undefined;
6820
6856
  description?: string | undefined;
6821
- mode?: "subagent" | "primary" | "all" | undefined;
6857
+ mode?: "all" | "subagent" | "primary" | undefined;
6822
6858
  hidden?: boolean | undefined;
6823
6859
  options?: Record<string, any> | undefined;
6824
6860
  color?: string | undefined;
@@ -6840,7 +6876,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6840
6876
  tools?: Record<string, boolean> | undefined;
6841
6877
  disable?: boolean | undefined;
6842
6878
  description?: string | undefined;
6843
- mode?: "subagent" | "primary" | "all" | undefined;
6879
+ mode?: "all" | "subagent" | "primary" | undefined;
6844
6880
  hidden?: boolean | undefined;
6845
6881
  options?: Record<string, any> | undefined;
6846
6882
  color?: string | undefined;
@@ -6862,7 +6898,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6862
6898
  tools?: Record<string, boolean> | undefined;
6863
6899
  disable?: boolean | undefined;
6864
6900
  description?: string | undefined;
6865
- mode?: "subagent" | "primary" | "all" | undefined;
6901
+ mode?: "all" | "subagent" | "primary" | undefined;
6866
6902
  hidden?: boolean | undefined;
6867
6903
  options?: Record<string, any> | undefined;
6868
6904
  color?: string | undefined;
@@ -6884,7 +6920,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6884
6920
  tools?: Record<string, boolean> | undefined;
6885
6921
  disable?: boolean | undefined;
6886
6922
  description?: string | undefined;
6887
- mode?: "subagent" | "primary" | "all" | undefined;
6923
+ mode?: "all" | "subagent" | "primary" | undefined;
6888
6924
  hidden?: boolean | undefined;
6889
6925
  options?: Record<string, any> | undefined;
6890
6926
  color?: string | undefined;
@@ -6961,13 +6997,17 @@ declare function load(text: string, configFilepath: string): Promise<{
6961
6997
  }> | undefined;
6962
6998
  mcp?: Record<string, {
6963
6999
  type: "local";
6964
- command: string[];
6965
- environment?: Record<string, string> | undefined;
7000
+ command: string;
7001
+ scope: "general" | "coder" | "all";
7002
+ args?: string[] | undefined;
7003
+ env?: Record<string, string> | undefined;
6966
7004
  enabled?: boolean | undefined;
6967
7005
  timeout?: number | undefined;
7006
+ description?: string | undefined;
6968
7007
  } | {
6969
7008
  type: "remote";
6970
7009
  url: string;
7010
+ scope: "general" | "coder" | "all";
6971
7011
  enabled?: boolean | undefined;
6972
7012
  headers?: Record<string, string> | undefined;
6973
7013
  oauth?: false | {
@@ -6976,6 +7016,7 @@ declare function load(text: string, configFilepath: string): Promise<{
6976
7016
  scope?: string | undefined;
6977
7017
  } | undefined;
6978
7018
  timeout?: number | undefined;
7019
+ description?: string | undefined;
6979
7020
  } | {
6980
7021
  enabled: boolean;
6981
7022
  }> | undefined;
@@ -7289,7 +7330,7 @@ declare function load(text: string, configFilepath: string): Promise<{
7289
7330
  files?: Record<string, {
7290
7331
  name: string;
7291
7332
  type: "system" | "extension";
7292
- scope: "all" | "general" | "coder";
7333
+ scope: "general" | "coder" | "all";
7293
7334
  priority: number;
7294
7335
  permission: "write" | "read";
7295
7336
  description?: string | undefined;
@@ -7436,7 +7477,7 @@ declare function loadAgent(dir: string): Promise<Record<string, {
7436
7477
  tools?: Record<string, boolean> | undefined;
7437
7478
  disable?: boolean | undefined;
7438
7479
  description?: string | undefined;
7439
- mode?: "subagent" | "primary" | "all" | undefined;
7480
+ mode?: "all" | "subagent" | "primary" | undefined;
7440
7481
  hidden?: boolean | undefined;
7441
7482
  options?: Record<string, any> | undefined;
7442
7483
  color?: string | undefined;
@@ -7455,6 +7496,7 @@ declare function loadCommand(dir: string): Promise<Record<string, {
7455
7496
  agent?: string | undefined;
7456
7497
  model?: string | undefined;
7457
7498
  subtask?: boolean | undefined;
7499
+ scope?: "general" | "coder" | "all" | undefined;
7458
7500
  }>>;
7459
7501
 
7460
7502
  declare function loadPlugin(dir: string): Promise<string[]>;
@@ -7583,6 +7625,7 @@ declare function updateGlobal(config: Info): Promise<{
7583
7625
  agent?: string | undefined;
7584
7626
  model?: string | undefined;
7585
7627
  subtask?: boolean | undefined;
7628
+ scope?: "general" | "coder" | "all" | undefined;
7586
7629
  };
7587
7630
  } | undefined;
7588
7631
  skills?: {
@@ -7616,7 +7659,7 @@ declare function updateGlobal(config: Info): Promise<{
7616
7659
  } | undefined;
7617
7660
  disable?: boolean | undefined;
7618
7661
  description?: string | undefined;
7619
- mode?: "subagent" | "primary" | "all" | undefined;
7662
+ mode?: "all" | "subagent" | "primary" | undefined;
7620
7663
  hidden?: boolean | undefined;
7621
7664
  options?: {
7622
7665
  [x: string]: any;
@@ -7642,7 +7685,7 @@ declare function updateGlobal(config: Info): Promise<{
7642
7685
  } | undefined;
7643
7686
  disable?: boolean | undefined;
7644
7687
  description?: string | undefined;
7645
- mode?: "subagent" | "primary" | "all" | undefined;
7688
+ mode?: "all" | "subagent" | "primary" | undefined;
7646
7689
  hidden?: boolean | undefined;
7647
7690
  options?: {
7648
7691
  [x: string]: any;
@@ -7668,7 +7711,7 @@ declare function updateGlobal(config: Info): Promise<{
7668
7711
  } | undefined;
7669
7712
  disable?: boolean | undefined;
7670
7713
  description?: string | undefined;
7671
- mode?: "subagent" | "primary" | "all" | undefined;
7714
+ mode?: "all" | "subagent" | "primary" | undefined;
7672
7715
  hidden?: boolean | undefined;
7673
7716
  options?: {
7674
7717
  [x: string]: any;
@@ -7694,7 +7737,7 @@ declare function updateGlobal(config: Info): Promise<{
7694
7737
  } | undefined;
7695
7738
  disable?: boolean | undefined;
7696
7739
  description?: string | undefined;
7697
- mode?: "subagent" | "primary" | "all" | undefined;
7740
+ mode?: "all" | "subagent" | "primary" | undefined;
7698
7741
  hidden?: boolean | undefined;
7699
7742
  options?: {
7700
7743
  [x: string]: any;
@@ -7720,7 +7763,7 @@ declare function updateGlobal(config: Info): Promise<{
7720
7763
  } | undefined;
7721
7764
  disable?: boolean | undefined;
7722
7765
  description?: string | undefined;
7723
- mode?: "subagent" | "primary" | "all" | undefined;
7766
+ mode?: "all" | "subagent" | "primary" | undefined;
7724
7767
  hidden?: boolean | undefined;
7725
7768
  options?: {
7726
7769
  [x: string]: any;
@@ -7746,7 +7789,7 @@ declare function updateGlobal(config: Info): Promise<{
7746
7789
  } | undefined;
7747
7790
  disable?: boolean | undefined;
7748
7791
  description?: string | undefined;
7749
- mode?: "subagent" | "primary" | "all" | undefined;
7792
+ mode?: "all" | "subagent" | "primary" | undefined;
7750
7793
  hidden?: boolean | undefined;
7751
7794
  options?: {
7752
7795
  [x: string]: any;
@@ -7772,7 +7815,7 @@ declare function updateGlobal(config: Info): Promise<{
7772
7815
  } | undefined;
7773
7816
  disable?: boolean | undefined;
7774
7817
  description?: string | undefined;
7775
- mode?: "subagent" | "primary" | "all" | undefined;
7818
+ mode?: "all" | "subagent" | "primary" | undefined;
7776
7819
  hidden?: boolean | undefined;
7777
7820
  options?: {
7778
7821
  [x: string]: any;
@@ -7798,7 +7841,7 @@ declare function updateGlobal(config: Info): Promise<{
7798
7841
  } | undefined;
7799
7842
  disable?: boolean | undefined;
7800
7843
  description?: string | undefined;
7801
- mode?: "subagent" | "primary" | "all" | undefined;
7844
+ mode?: "all" | "subagent" | "primary" | undefined;
7802
7845
  hidden?: boolean | undefined;
7803
7846
  options?: {
7804
7847
  [x: string]: any;
@@ -7888,15 +7931,19 @@ declare function updateGlobal(config: Info): Promise<{
7888
7931
  mcp?: {
7889
7932
  [x: string]: {
7890
7933
  type: "local";
7891
- command: string[];
7892
- environment?: {
7934
+ command: string;
7935
+ scope: "general" | "coder" | "all";
7936
+ args?: string[] | undefined;
7937
+ env?: {
7893
7938
  [x: string]: string;
7894
7939
  } | undefined;
7895
7940
  enabled?: boolean | undefined;
7896
7941
  timeout?: number | undefined;
7942
+ description?: string | undefined;
7897
7943
  } | {
7898
7944
  type: "remote";
7899
7945
  url: string;
7946
+ scope: "general" | "coder" | "all";
7900
7947
  enabled?: boolean | undefined;
7901
7948
  headers?: {
7902
7949
  [x: string]: string;
@@ -7907,6 +7954,7 @@ declare function updateGlobal(config: Info): Promise<{
7907
7954
  scope?: string | undefined;
7908
7955
  } | undefined;
7909
7956
  timeout?: number | undefined;
7957
+ description?: string | undefined;
7910
7958
  } | {
7911
7959
  enabled: boolean;
7912
7960
  };
@@ -8263,7 +8311,7 @@ declare function updateGlobal(config: Info): Promise<{
8263
8311
  [x: string]: {
8264
8312
  name: string;
8265
8313
  type: "system" | "extension";
8266
- scope: "all" | "general" | "coder";
8314
+ scope: "general" | "coder" | "all";
8267
8315
  priority: number;
8268
8316
  permission: "write" | "read";
8269
8317
  description?: string | undefined;
@@ -8531,6 +8579,7 @@ declare function getGlobal(): Promise<{
8531
8579
  agent?: string | undefined;
8532
8580
  model?: string | undefined;
8533
8581
  subtask?: boolean | undefined;
8582
+ scope?: "general" | "coder" | "all" | undefined;
8534
8583
  }> | undefined;
8535
8584
  skills?: {
8536
8585
  paths?: string[] | undefined;
@@ -8561,7 +8610,7 @@ declare function getGlobal(): Promise<{
8561
8610
  tools?: Record<string, boolean> | undefined;
8562
8611
  disable?: boolean | undefined;
8563
8612
  description?: string | undefined;
8564
- mode?: "subagent" | "primary" | "all" | undefined;
8613
+ mode?: "all" | "subagent" | "primary" | undefined;
8565
8614
  hidden?: boolean | undefined;
8566
8615
  options?: Record<string, any> | undefined;
8567
8616
  color?: string | undefined;
@@ -8583,7 +8632,7 @@ declare function getGlobal(): Promise<{
8583
8632
  tools?: Record<string, boolean> | undefined;
8584
8633
  disable?: boolean | undefined;
8585
8634
  description?: string | undefined;
8586
- mode?: "subagent" | "primary" | "all" | undefined;
8635
+ mode?: "all" | "subagent" | "primary" | undefined;
8587
8636
  hidden?: boolean | undefined;
8588
8637
  options?: Record<string, any> | undefined;
8589
8638
  color?: string | undefined;
@@ -8605,7 +8654,7 @@ declare function getGlobal(): Promise<{
8605
8654
  tools?: Record<string, boolean> | undefined;
8606
8655
  disable?: boolean | undefined;
8607
8656
  description?: string | undefined;
8608
- mode?: "subagent" | "primary" | "all" | undefined;
8657
+ mode?: "all" | "subagent" | "primary" | undefined;
8609
8658
  hidden?: boolean | undefined;
8610
8659
  options?: Record<string, any> | undefined;
8611
8660
  color?: string | undefined;
@@ -8627,7 +8676,7 @@ declare function getGlobal(): Promise<{
8627
8676
  tools?: Record<string, boolean> | undefined;
8628
8677
  disable?: boolean | undefined;
8629
8678
  description?: string | undefined;
8630
- mode?: "subagent" | "primary" | "all" | undefined;
8679
+ mode?: "all" | "subagent" | "primary" | undefined;
8631
8680
  hidden?: boolean | undefined;
8632
8681
  options?: Record<string, any> | undefined;
8633
8682
  color?: string | undefined;
@@ -8649,7 +8698,7 @@ declare function getGlobal(): Promise<{
8649
8698
  tools?: Record<string, boolean> | undefined;
8650
8699
  disable?: boolean | undefined;
8651
8700
  description?: string | undefined;
8652
- mode?: "subagent" | "primary" | "all" | undefined;
8701
+ mode?: "all" | "subagent" | "primary" | undefined;
8653
8702
  hidden?: boolean | undefined;
8654
8703
  options?: Record<string, any> | undefined;
8655
8704
  color?: string | undefined;
@@ -8671,7 +8720,7 @@ declare function getGlobal(): Promise<{
8671
8720
  tools?: Record<string, boolean> | undefined;
8672
8721
  disable?: boolean | undefined;
8673
8722
  description?: string | undefined;
8674
- mode?: "subagent" | "primary" | "all" | undefined;
8723
+ mode?: "all" | "subagent" | "primary" | undefined;
8675
8724
  hidden?: boolean | undefined;
8676
8725
  options?: Record<string, any> | undefined;
8677
8726
  color?: string | undefined;
@@ -8693,7 +8742,7 @@ declare function getGlobal(): Promise<{
8693
8742
  tools?: Record<string, boolean> | undefined;
8694
8743
  disable?: boolean | undefined;
8695
8744
  description?: string | undefined;
8696
- mode?: "subagent" | "primary" | "all" | undefined;
8745
+ mode?: "all" | "subagent" | "primary" | undefined;
8697
8746
  hidden?: boolean | undefined;
8698
8747
  options?: Record<string, any> | undefined;
8699
8748
  color?: string | undefined;
@@ -8715,7 +8764,7 @@ declare function getGlobal(): Promise<{
8715
8764
  tools?: Record<string, boolean> | undefined;
8716
8765
  disable?: boolean | undefined;
8717
8766
  description?: string | undefined;
8718
- mode?: "subagent" | "primary" | "all" | undefined;
8767
+ mode?: "all" | "subagent" | "primary" | undefined;
8719
8768
  hidden?: boolean | undefined;
8720
8769
  options?: Record<string, any> | undefined;
8721
8770
  color?: string | undefined;
@@ -8792,13 +8841,17 @@ declare function getGlobal(): Promise<{
8792
8841
  }> | undefined;
8793
8842
  mcp?: Record<string, {
8794
8843
  type: "local";
8795
- command: string[];
8796
- environment?: Record<string, string> | undefined;
8844
+ command: string;
8845
+ scope: "general" | "coder" | "all";
8846
+ args?: string[] | undefined;
8847
+ env?: Record<string, string> | undefined;
8797
8848
  enabled?: boolean | undefined;
8798
8849
  timeout?: number | undefined;
8850
+ description?: string | undefined;
8799
8851
  } | {
8800
8852
  type: "remote";
8801
8853
  url: string;
8854
+ scope: "general" | "coder" | "all";
8802
8855
  enabled?: boolean | undefined;
8803
8856
  headers?: Record<string, string> | undefined;
8804
8857
  oauth?: false | {
@@ -8807,6 +8860,7 @@ declare function getGlobal(): Promise<{
8807
8860
  scope?: string | undefined;
8808
8861
  } | undefined;
8809
8862
  timeout?: number | undefined;
8863
+ description?: string | undefined;
8810
8864
  } | {
8811
8865
  enabled: boolean;
8812
8866
  }> | undefined;
@@ -9120,7 +9174,7 @@ declare function getGlobal(): Promise<{
9120
9174
  files?: Record<string, {
9121
9175
  name: string;
9122
9176
  type: "system" | "extension";
9123
- scope: "all" | "general" | "coder";
9177
+ scope: "general" | "coder" | "all";
9124
9178
  priority: number;
9125
9179
  permission: "write" | "read";
9126
9180
  description?: string | undefined;
@@ -9263,10 +9317,17 @@ declare namespace Config {
9263
9317
  const ModelId: z$1.ZodString;
9264
9318
  const McpLocal: z$1.ZodObject<{
9265
9319
  type: z$1.ZodLiteral<"local">;
9266
- command: z$1.ZodArray<z$1.ZodString>;
9267
- environment: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
9320
+ command: z$1.ZodString;
9321
+ args: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
9322
+ env: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
9268
9323
  enabled: z$1.ZodOptional<z$1.ZodBoolean>;
9269
9324
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
9325
+ description: z$1.ZodOptional<z$1.ZodString>;
9326
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
9327
+ general: "general";
9328
+ coder: "coder";
9329
+ all: "all";
9330
+ }>>>;
9270
9331
  }, z$1.core.$strict>;
9271
9332
  const McpOAuth: z$1.ZodObject<{
9272
9333
  clientId: z$1.ZodOptional<z$1.ZodString>;
@@ -9284,13 +9345,26 @@ declare namespace Config {
9284
9345
  scope: z$1.ZodOptional<z$1.ZodString>;
9285
9346
  }, z$1.core.$strict>, z$1.ZodLiteral<false>]>>;
9286
9347
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
9348
+ description: z$1.ZodOptional<z$1.ZodString>;
9349
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
9350
+ general: "general";
9351
+ coder: "coder";
9352
+ all: "all";
9353
+ }>>>;
9287
9354
  }, z$1.core.$strict>;
9288
9355
  const Mcp: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9289
9356
  type: z$1.ZodLiteral<"local">;
9290
- command: z$1.ZodArray<z$1.ZodString>;
9291
- environment: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
9357
+ command: z$1.ZodString;
9358
+ args: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
9359
+ env: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
9292
9360
  enabled: z$1.ZodOptional<z$1.ZodBoolean>;
9293
9361
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
9362
+ description: z$1.ZodOptional<z$1.ZodString>;
9363
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
9364
+ general: "general";
9365
+ coder: "coder";
9366
+ all: "all";
9367
+ }>>>;
9294
9368
  }, z$1.core.$strict>, z$1.ZodObject<{
9295
9369
  type: z$1.ZodLiteral<"remote">;
9296
9370
  url: z$1.ZodString;
@@ -9302,6 +9376,12 @@ declare namespace Config {
9302
9376
  scope: z$1.ZodOptional<z$1.ZodString>;
9303
9377
  }, z$1.core.$strict>, z$1.ZodLiteral<false>]>>;
9304
9378
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
9379
+ description: z$1.ZodOptional<z$1.ZodString>;
9380
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
9381
+ general: "general";
9382
+ coder: "coder";
9383
+ all: "all";
9384
+ }>>>;
9305
9385
  }, z$1.core.$strict>], "type">;
9306
9386
  const PermissionAction: z$1.ZodEnum<{
9307
9387
  ask: "ask";
@@ -9602,6 +9682,11 @@ declare namespace Config {
9602
9682
  agent: z$1.ZodOptional<z$1.ZodString>;
9603
9683
  model: z$1.ZodOptional<z$1.ZodString>;
9604
9684
  subtask: z$1.ZodOptional<z$1.ZodBoolean>;
9685
+ scope: z$1.ZodOptional<z$1.ZodEnum<{
9686
+ general: "general";
9687
+ coder: "coder";
9688
+ all: "all";
9689
+ }>>;
9605
9690
  }, z$1.core.$strip>;
9606
9691
  const Skills: z$1.ZodObject<{
9607
9692
  paths: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
@@ -9617,9 +9702,9 @@ declare namespace Config {
9617
9702
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
9618
9703
  description: z$1.ZodOptional<z$1.ZodString>;
9619
9704
  mode: z$1.ZodOptional<z$1.ZodEnum<{
9705
+ all: "all";
9620
9706
  subagent: "subagent";
9621
9707
  primary: "primary";
9622
- all: "all";
9623
9708
  }>>;
9624
9709
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
9625
9710
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -9918,7 +10003,7 @@ declare namespace Config {
9918
10003
  tools?: Record<string, boolean> | undefined;
9919
10004
  disable?: boolean | undefined;
9920
10005
  description?: string | undefined;
9921
- mode?: "subagent" | "primary" | "all" | undefined;
10006
+ mode?: "all" | "subagent" | "primary" | undefined;
9922
10007
  hidden?: boolean | undefined;
9923
10008
  options?: Record<string, any> | undefined;
9924
10009
  color?: string | undefined;
@@ -9939,7 +10024,7 @@ declare namespace Config {
9939
10024
  tools?: Record<string, boolean> | undefined;
9940
10025
  disable?: boolean | undefined;
9941
10026
  description?: string | undefined;
9942
- mode?: "subagent" | "primary" | "all" | undefined;
10027
+ mode?: "all" | "subagent" | "primary" | undefined;
9943
10028
  hidden?: boolean | undefined;
9944
10029
  options?: Record<string, any> | undefined;
9945
10030
  color?: string | undefined;
@@ -10271,6 +10356,11 @@ declare namespace Config {
10271
10356
  agent: z$1.ZodOptional<z$1.ZodString>;
10272
10357
  model: z$1.ZodOptional<z$1.ZodString>;
10273
10358
  subtask: z$1.ZodOptional<z$1.ZodBoolean>;
10359
+ scope: z$1.ZodOptional<z$1.ZodEnum<{
10360
+ general: "general";
10361
+ coder: "coder";
10362
+ all: "all";
10363
+ }>>;
10274
10364
  }, z$1.core.$strip>>>;
10275
10365
  skills: z$1.ZodOptional<z$1.ZodObject<{
10276
10366
  paths: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
@@ -10305,9 +10395,9 @@ declare namespace Config {
10305
10395
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
10306
10396
  description: z$1.ZodOptional<z$1.ZodString>;
10307
10397
  mode: z$1.ZodOptional<z$1.ZodEnum<{
10398
+ all: "all";
10308
10399
  subagent: "subagent";
10309
10400
  primary: "primary";
10310
- all: "all";
10311
10401
  }>>;
10312
10402
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
10313
10403
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -10606,7 +10696,7 @@ declare namespace Config {
10606
10696
  tools?: Record<string, boolean> | undefined;
10607
10697
  disable?: boolean | undefined;
10608
10698
  description?: string | undefined;
10609
- mode?: "subagent" | "primary" | "all" | undefined;
10699
+ mode?: "all" | "subagent" | "primary" | undefined;
10610
10700
  hidden?: boolean | undefined;
10611
10701
  options?: Record<string, any> | undefined;
10612
10702
  color?: string | undefined;
@@ -10627,7 +10717,7 @@ declare namespace Config {
10627
10717
  tools?: Record<string, boolean> | undefined;
10628
10718
  disable?: boolean | undefined;
10629
10719
  description?: string | undefined;
10630
- mode?: "subagent" | "primary" | "all" | undefined;
10720
+ mode?: "all" | "subagent" | "primary" | undefined;
10631
10721
  hidden?: boolean | undefined;
10632
10722
  options?: Record<string, any> | undefined;
10633
10723
  color?: string | undefined;
@@ -10645,9 +10735,9 @@ declare namespace Config {
10645
10735
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
10646
10736
  description: z$1.ZodOptional<z$1.ZodString>;
10647
10737
  mode: z$1.ZodOptional<z$1.ZodEnum<{
10738
+ all: "all";
10648
10739
  subagent: "subagent";
10649
10740
  primary: "primary";
10650
- all: "all";
10651
10741
  }>>;
10652
10742
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
10653
10743
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -10946,7 +11036,7 @@ declare namespace Config {
10946
11036
  tools?: Record<string, boolean> | undefined;
10947
11037
  disable?: boolean | undefined;
10948
11038
  description?: string | undefined;
10949
- mode?: "subagent" | "primary" | "all" | undefined;
11039
+ mode?: "all" | "subagent" | "primary" | undefined;
10950
11040
  hidden?: boolean | undefined;
10951
11041
  options?: Record<string, any> | undefined;
10952
11042
  color?: string | undefined;
@@ -10967,7 +11057,7 @@ declare namespace Config {
10967
11057
  tools?: Record<string, boolean> | undefined;
10968
11058
  disable?: boolean | undefined;
10969
11059
  description?: string | undefined;
10970
- mode?: "subagent" | "primary" | "all" | undefined;
11060
+ mode?: "all" | "subagent" | "primary" | undefined;
10971
11061
  hidden?: boolean | undefined;
10972
11062
  options?: Record<string, any> | undefined;
10973
11063
  color?: string | undefined;
@@ -10985,9 +11075,9 @@ declare namespace Config {
10985
11075
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
10986
11076
  description: z$1.ZodOptional<z$1.ZodString>;
10987
11077
  mode: z$1.ZodOptional<z$1.ZodEnum<{
11078
+ all: "all";
10988
11079
  subagent: "subagent";
10989
11080
  primary: "primary";
10990
- all: "all";
10991
11081
  }>>;
10992
11082
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
10993
11083
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -11286,7 +11376,7 @@ declare namespace Config {
11286
11376
  tools?: Record<string, boolean> | undefined;
11287
11377
  disable?: boolean | undefined;
11288
11378
  description?: string | undefined;
11289
- mode?: "subagent" | "primary" | "all" | undefined;
11379
+ mode?: "all" | "subagent" | "primary" | undefined;
11290
11380
  hidden?: boolean | undefined;
11291
11381
  options?: Record<string, any> | undefined;
11292
11382
  color?: string | undefined;
@@ -11307,7 +11397,7 @@ declare namespace Config {
11307
11397
  tools?: Record<string, boolean> | undefined;
11308
11398
  disable?: boolean | undefined;
11309
11399
  description?: string | undefined;
11310
- mode?: "subagent" | "primary" | "all" | undefined;
11400
+ mode?: "all" | "subagent" | "primary" | undefined;
11311
11401
  hidden?: boolean | undefined;
11312
11402
  options?: Record<string, any> | undefined;
11313
11403
  color?: string | undefined;
@@ -11325,9 +11415,9 @@ declare namespace Config {
11325
11415
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
11326
11416
  description: z$1.ZodOptional<z$1.ZodString>;
11327
11417
  mode: z$1.ZodOptional<z$1.ZodEnum<{
11418
+ all: "all";
11328
11419
  subagent: "subagent";
11329
11420
  primary: "primary";
11330
- all: "all";
11331
11421
  }>>;
11332
11422
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
11333
11423
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -11626,7 +11716,7 @@ declare namespace Config {
11626
11716
  tools?: Record<string, boolean> | undefined;
11627
11717
  disable?: boolean | undefined;
11628
11718
  description?: string | undefined;
11629
- mode?: "subagent" | "primary" | "all" | undefined;
11719
+ mode?: "all" | "subagent" | "primary" | undefined;
11630
11720
  hidden?: boolean | undefined;
11631
11721
  options?: Record<string, any> | undefined;
11632
11722
  color?: string | undefined;
@@ -11647,7 +11737,7 @@ declare namespace Config {
11647
11737
  tools?: Record<string, boolean> | undefined;
11648
11738
  disable?: boolean | undefined;
11649
11739
  description?: string | undefined;
11650
- mode?: "subagent" | "primary" | "all" | undefined;
11740
+ mode?: "all" | "subagent" | "primary" | undefined;
11651
11741
  hidden?: boolean | undefined;
11652
11742
  options?: Record<string, any> | undefined;
11653
11743
  color?: string | undefined;
@@ -11665,9 +11755,9 @@ declare namespace Config {
11665
11755
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
11666
11756
  description: z$1.ZodOptional<z$1.ZodString>;
11667
11757
  mode: z$1.ZodOptional<z$1.ZodEnum<{
11758
+ all: "all";
11668
11759
  subagent: "subagent";
11669
11760
  primary: "primary";
11670
- all: "all";
11671
11761
  }>>;
11672
11762
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
11673
11763
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -11966,7 +12056,7 @@ declare namespace Config {
11966
12056
  tools?: Record<string, boolean> | undefined;
11967
12057
  disable?: boolean | undefined;
11968
12058
  description?: string | undefined;
11969
- mode?: "subagent" | "primary" | "all" | undefined;
12059
+ mode?: "all" | "subagent" | "primary" | undefined;
11970
12060
  hidden?: boolean | undefined;
11971
12061
  options?: Record<string, any> | undefined;
11972
12062
  color?: string | undefined;
@@ -11987,7 +12077,7 @@ declare namespace Config {
11987
12077
  tools?: Record<string, boolean> | undefined;
11988
12078
  disable?: boolean | undefined;
11989
12079
  description?: string | undefined;
11990
- mode?: "subagent" | "primary" | "all" | undefined;
12080
+ mode?: "all" | "subagent" | "primary" | undefined;
11991
12081
  hidden?: boolean | undefined;
11992
12082
  options?: Record<string, any> | undefined;
11993
12083
  color?: string | undefined;
@@ -12005,9 +12095,9 @@ declare namespace Config {
12005
12095
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
12006
12096
  description: z$1.ZodOptional<z$1.ZodString>;
12007
12097
  mode: z$1.ZodOptional<z$1.ZodEnum<{
12098
+ all: "all";
12008
12099
  subagent: "subagent";
12009
12100
  primary: "primary";
12010
- all: "all";
12011
12101
  }>>;
12012
12102
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
12013
12103
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -12306,7 +12396,7 @@ declare namespace Config {
12306
12396
  tools?: Record<string, boolean> | undefined;
12307
12397
  disable?: boolean | undefined;
12308
12398
  description?: string | undefined;
12309
- mode?: "subagent" | "primary" | "all" | undefined;
12399
+ mode?: "all" | "subagent" | "primary" | undefined;
12310
12400
  hidden?: boolean | undefined;
12311
12401
  options?: Record<string, any> | undefined;
12312
12402
  color?: string | undefined;
@@ -12327,7 +12417,7 @@ declare namespace Config {
12327
12417
  tools?: Record<string, boolean> | undefined;
12328
12418
  disable?: boolean | undefined;
12329
12419
  description?: string | undefined;
12330
- mode?: "subagent" | "primary" | "all" | undefined;
12420
+ mode?: "all" | "subagent" | "primary" | undefined;
12331
12421
  hidden?: boolean | undefined;
12332
12422
  options?: Record<string, any> | undefined;
12333
12423
  color?: string | undefined;
@@ -12345,9 +12435,9 @@ declare namespace Config {
12345
12435
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
12346
12436
  description: z$1.ZodOptional<z$1.ZodString>;
12347
12437
  mode: z$1.ZodOptional<z$1.ZodEnum<{
12438
+ all: "all";
12348
12439
  subagent: "subagent";
12349
12440
  primary: "primary";
12350
- all: "all";
12351
12441
  }>>;
12352
12442
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
12353
12443
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -12646,7 +12736,7 @@ declare namespace Config {
12646
12736
  tools?: Record<string, boolean> | undefined;
12647
12737
  disable?: boolean | undefined;
12648
12738
  description?: string | undefined;
12649
- mode?: "subagent" | "primary" | "all" | undefined;
12739
+ mode?: "all" | "subagent" | "primary" | undefined;
12650
12740
  hidden?: boolean | undefined;
12651
12741
  options?: Record<string, any> | undefined;
12652
12742
  color?: string | undefined;
@@ -12667,7 +12757,7 @@ declare namespace Config {
12667
12757
  tools?: Record<string, boolean> | undefined;
12668
12758
  disable?: boolean | undefined;
12669
12759
  description?: string | undefined;
12670
- mode?: "subagent" | "primary" | "all" | undefined;
12760
+ mode?: "all" | "subagent" | "primary" | undefined;
12671
12761
  hidden?: boolean | undefined;
12672
12762
  options?: Record<string, any> | undefined;
12673
12763
  color?: string | undefined;
@@ -12685,9 +12775,9 @@ declare namespace Config {
12685
12775
  disable: z$1.ZodOptional<z$1.ZodBoolean>;
12686
12776
  description: z$1.ZodOptional<z$1.ZodString>;
12687
12777
  mode: z$1.ZodOptional<z$1.ZodEnum<{
12778
+ all: "all";
12688
12779
  subagent: "subagent";
12689
12780
  primary: "primary";
12690
- all: "all";
12691
12781
  }>>;
12692
12782
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
12693
12783
  options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
@@ -12986,7 +13076,7 @@ declare namespace Config {
12986
13076
  tools?: Record<string, boolean> | undefined;
12987
13077
  disable?: boolean | undefined;
12988
13078
  description?: string | undefined;
12989
- mode?: "subagent" | "primary" | "all" | undefined;
13079
+ mode?: "all" | "subagent" | "primary" | undefined;
12990
13080
  hidden?: boolean | undefined;
12991
13081
  options?: Record<string, any> | undefined;
12992
13082
  color?: string | undefined;
@@ -13007,7 +13097,7 @@ declare namespace Config {
13007
13097
  tools?: Record<string, boolean> | undefined;
13008
13098
  disable?: boolean | undefined;
13009
13099
  description?: string | undefined;
13010
- mode?: "subagent" | "primary" | "all" | undefined;
13100
+ mode?: "all" | "subagent" | "primary" | undefined;
13011
13101
  hidden?: boolean | undefined;
13012
13102
  options?: Record<string, any> | undefined;
13013
13103
  color?: string | undefined;
@@ -13096,10 +13186,17 @@ declare namespace Config {
13096
13186
  }, z$1.core.$strict>>>;
13097
13187
  mcp: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13098
13188
  type: z$1.ZodLiteral<"local">;
13099
- command: z$1.ZodArray<z$1.ZodString>;
13100
- environment: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
13189
+ command: z$1.ZodString;
13190
+ args: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
13191
+ env: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
13101
13192
  enabled: z$1.ZodOptional<z$1.ZodBoolean>;
13102
13193
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
13194
+ description: z$1.ZodOptional<z$1.ZodString>;
13195
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
13196
+ general: "general";
13197
+ coder: "coder";
13198
+ all: "all";
13199
+ }>>>;
13103
13200
  }, z$1.core.$strict>, z$1.ZodObject<{
13104
13201
  type: z$1.ZodLiteral<"remote">;
13105
13202
  url: z$1.ZodString;
@@ -13111,6 +13208,12 @@ declare namespace Config {
13111
13208
  scope: z$1.ZodOptional<z$1.ZodString>;
13112
13209
  }, z$1.core.$strict>, z$1.ZodLiteral<false>]>>;
13113
13210
  timeout: z$1.ZodOptional<z$1.ZodNumber>;
13211
+ description: z$1.ZodOptional<z$1.ZodString>;
13212
+ scope: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
13213
+ general: "general";
13214
+ coder: "coder";
13215
+ all: "all";
13216
+ }>>>;
13114
13217
  }, z$1.core.$strict>], "type">, z$1.ZodObject<{
13115
13218
  enabled: z$1.ZodBoolean;
13116
13219
  }, z$1.core.$strict>]>>>;
@@ -13753,9 +13856,9 @@ declare namespace Config {
13753
13856
  extension: "extension";
13754
13857
  }>>;
13755
13858
  scope: z$1.ZodDefault<z$1.ZodEnum<{
13756
- all: "all";
13757
13859
  general: "general";
13758
13860
  coder: "coder";
13861
+ all: "all";
13759
13862
  }>>;
13760
13863
  priority: z$1.ZodDefault<z$1.ZodNumber>;
13761
13864
  owner: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
@@ -14265,6 +14368,7 @@ declare namespace Config {
14265
14368
  agent?: string | undefined;
14266
14369
  model?: string | undefined;
14267
14370
  subtask?: boolean | undefined;
14371
+ scope?: "general" | "coder" | "all" | undefined;
14268
14372
  }> | undefined;
14269
14373
  skills?: {
14270
14374
  paths?: string[] | undefined;
@@ -14295,7 +14399,7 @@ declare namespace Config {
14295
14399
  tools?: Record<string, boolean> | undefined;
14296
14400
  disable?: boolean | undefined;
14297
14401
  description?: string | undefined;
14298
- mode?: "subagent" | "primary" | "all" | undefined;
14402
+ mode?: "all" | "subagent" | "primary" | undefined;
14299
14403
  hidden?: boolean | undefined;
14300
14404
  options?: Record<string, any> | undefined;
14301
14405
  color?: string | undefined;
@@ -14317,7 +14421,7 @@ declare namespace Config {
14317
14421
  tools?: Record<string, boolean> | undefined;
14318
14422
  disable?: boolean | undefined;
14319
14423
  description?: string | undefined;
14320
- mode?: "subagent" | "primary" | "all" | undefined;
14424
+ mode?: "all" | "subagent" | "primary" | undefined;
14321
14425
  hidden?: boolean | undefined;
14322
14426
  options?: Record<string, any> | undefined;
14323
14427
  color?: string | undefined;
@@ -14339,7 +14443,7 @@ declare namespace Config {
14339
14443
  tools?: Record<string, boolean> | undefined;
14340
14444
  disable?: boolean | undefined;
14341
14445
  description?: string | undefined;
14342
- mode?: "subagent" | "primary" | "all" | undefined;
14446
+ mode?: "all" | "subagent" | "primary" | undefined;
14343
14447
  hidden?: boolean | undefined;
14344
14448
  options?: Record<string, any> | undefined;
14345
14449
  color?: string | undefined;
@@ -14361,7 +14465,7 @@ declare namespace Config {
14361
14465
  tools?: Record<string, boolean> | undefined;
14362
14466
  disable?: boolean | undefined;
14363
14467
  description?: string | undefined;
14364
- mode?: "subagent" | "primary" | "all" | undefined;
14468
+ mode?: "all" | "subagent" | "primary" | undefined;
14365
14469
  hidden?: boolean | undefined;
14366
14470
  options?: Record<string, any> | undefined;
14367
14471
  color?: string | undefined;
@@ -14383,7 +14487,7 @@ declare namespace Config {
14383
14487
  tools?: Record<string, boolean> | undefined;
14384
14488
  disable?: boolean | undefined;
14385
14489
  description?: string | undefined;
14386
- mode?: "subagent" | "primary" | "all" | undefined;
14490
+ mode?: "all" | "subagent" | "primary" | undefined;
14387
14491
  hidden?: boolean | undefined;
14388
14492
  options?: Record<string, any> | undefined;
14389
14493
  color?: string | undefined;
@@ -14405,7 +14509,7 @@ declare namespace Config {
14405
14509
  tools?: Record<string, boolean> | undefined;
14406
14510
  disable?: boolean | undefined;
14407
14511
  description?: string | undefined;
14408
- mode?: "subagent" | "primary" | "all" | undefined;
14512
+ mode?: "all" | "subagent" | "primary" | undefined;
14409
14513
  hidden?: boolean | undefined;
14410
14514
  options?: Record<string, any> | undefined;
14411
14515
  color?: string | undefined;
@@ -14427,7 +14531,7 @@ declare namespace Config {
14427
14531
  tools?: Record<string, boolean> | undefined;
14428
14532
  disable?: boolean | undefined;
14429
14533
  description?: string | undefined;
14430
- mode?: "subagent" | "primary" | "all" | undefined;
14534
+ mode?: "all" | "subagent" | "primary" | undefined;
14431
14535
  hidden?: boolean | undefined;
14432
14536
  options?: Record<string, any> | undefined;
14433
14537
  color?: string | undefined;
@@ -14449,7 +14553,7 @@ declare namespace Config {
14449
14553
  tools?: Record<string, boolean> | undefined;
14450
14554
  disable?: boolean | undefined;
14451
14555
  description?: string | undefined;
14452
- mode?: "subagent" | "primary" | "all" | undefined;
14556
+ mode?: "all" | "subagent" | "primary" | undefined;
14453
14557
  hidden?: boolean | undefined;
14454
14558
  options?: Record<string, any> | undefined;
14455
14559
  color?: string | undefined;
@@ -14526,13 +14630,17 @@ declare namespace Config {
14526
14630
  }> | undefined;
14527
14631
  mcp?: Record<string, {
14528
14632
  type: "local";
14529
- command: string[];
14530
- environment?: Record<string, string> | undefined;
14633
+ command: string;
14634
+ scope: "general" | "coder" | "all";
14635
+ args?: string[] | undefined;
14636
+ env?: Record<string, string> | undefined;
14531
14637
  enabled?: boolean | undefined;
14532
14638
  timeout?: number | undefined;
14639
+ description?: string | undefined;
14533
14640
  } | {
14534
14641
  type: "remote";
14535
14642
  url: string;
14643
+ scope: "general" | "coder" | "all";
14536
14644
  enabled?: boolean | undefined;
14537
14645
  headers?: Record<string, string> | undefined;
14538
14646
  oauth?: false | {
@@ -14541,6 +14649,7 @@ declare namespace Config {
14541
14649
  scope?: string | undefined;
14542
14650
  } | undefined;
14543
14651
  timeout?: number | undefined;
14652
+ description?: string | undefined;
14544
14653
  } | {
14545
14654
  enabled: boolean;
14546
14655
  }> | undefined;
@@ -14854,7 +14963,7 @@ declare namespace Config {
14854
14963
  files?: Record<string, {
14855
14964
  name: string;
14856
14965
  type: "system" | "extension";
14857
- scope: "all" | "general" | "coder";
14966
+ scope: "general" | "coder" | "all";
14858
14967
  priority: number;
14859
14968
  permission: "write" | "read";
14860
14969
  description?: string | undefined;
@@ -19981,9 +20090,9 @@ declare namespace Agent$1 {
19981
20090
  name: z$1.ZodString;
19982
20091
  description: z$1.ZodOptional<z$1.ZodString>;
19983
20092
  mode: z$1.ZodEnum<{
20093
+ all: "all";
19984
20094
  subagent: "subagent";
19985
20095
  primary: "primary";
19986
- all: "all";
19987
20096
  }>;
19988
20097
  native: z$1.ZodOptional<z$1.ZodBoolean>;
19989
20098
  hidden: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -20000,9 +20109,9 @@ declare namespace Agent$1 {
20000
20109
  }>;
20001
20110
  }, z$1.core.$strip>>>;
20002
20111
  scope: z$1.ZodOptional<z$1.ZodEnum<{
20003
- all: "all";
20004
20112
  general: "general";
20005
20113
  coder: "coder";
20114
+ all: "all";
20006
20115
  }>>;
20007
20116
  model: z$1.ZodOptional<z$1.ZodObject<{
20008
20117
  modelID: z$1.ZodString;
@@ -20016,7 +20125,7 @@ declare namespace Agent$1 {
20016
20125
  type Info = z$1.infer<typeof Info>;
20017
20126
  function get(agent: string): Promise<{
20018
20127
  name: string;
20019
- mode: "subagent" | "primary" | "all";
20128
+ mode: "all" | "subagent" | "primary";
20020
20129
  permission: {
20021
20130
  permission: string;
20022
20131
  pattern: string;
@@ -20029,7 +20138,7 @@ declare namespace Agent$1 {
20029
20138
  topP?: number | undefined;
20030
20139
  temperature?: number | undefined;
20031
20140
  color?: string | undefined;
20032
- scope?: "all" | "general" | "coder" | undefined;
20141
+ scope?: "general" | "coder" | "all" | undefined;
20033
20142
  model?: {
20034
20143
  modelID: string;
20035
20144
  providerID: string;
@@ -25970,7 +26079,7 @@ declare class AdapterSessionManager {
25970
26079
  getVariant(sessionId: string): string | undefined;
25971
26080
  setVariant(sessionId: string, variant?: string): AdapterSessionState;
25972
26081
  setMode(sessionId: string, modeId: string): AdapterSessionState;
25973
- setContextMode(sessionId: string, contextMode?: 'general' | 'coder'): AdapterSessionState;
26082
+ setContextMode(sessionId: string, contextMode?: ContextMode): AdapterSessionState;
25974
26083
  setAgent(sessionId: string, agent?: string): AdapterSessionState;
25975
26084
  close(sessionId: string): boolean;
25976
26085
  dispose(): void;
@@ -26282,6 +26391,7 @@ interface DefineOptions$1 {
26282
26391
  description?: string;
26283
26392
  source?: 'command' | 'mcp' | 'skill';
26284
26393
  commandType?: 'prompt' | 'local';
26394
+ scope?: Scope;
26285
26395
  hints?: string[];
26286
26396
  agent?: string;
26287
26397
  model?: string;
@@ -29756,26 +29866,18 @@ declare namespace command {
29756
29866
  }
29757
29867
 
29758
29868
  declare namespace MCP {
29759
- export const Resource: z$2.ZodObject<{
29760
- name: z$2.ZodString;
29761
- uri: z$2.ZodString;
29762
- description: z$2.ZodOptional<z$2.ZodString>;
29763
- mimeType: z$2.ZodOptional<z$2.ZodString>;
29764
- client: z$2.ZodString;
29765
- }, z$2.core.$strip>;
29766
- export type Resource = z$2.infer<typeof Resource>;
29767
29869
  export const ToolsChanged: {
29768
29870
  type: "mcp.tools.changed";
29769
- properties: z$2.ZodObject<{
29770
- server: z$2.ZodString;
29771
- }, z$2.core.$strip>;
29871
+ properties: z$1.ZodObject<{
29872
+ server: z$1.ZodString;
29873
+ }, z$1.core.$strip>;
29772
29874
  };
29773
29875
  export const BrowserOpenFailed: {
29774
29876
  type: "mcp.browser.open.failed";
29775
- properties: z$2.ZodObject<{
29776
- mcpName: z$2.ZodString;
29777
- url: z$2.ZodString;
29778
- }, z$2.core.$strip>;
29877
+ properties: z$1.ZodObject<{
29878
+ mcpName: z$1.ZodString;
29879
+ url: z$1.ZodString;
29880
+ }, z$1.core.$strip>;
29779
29881
  };
29780
29882
  export const Failed: {
29781
29883
  new (data: {
@@ -29785,12 +29887,12 @@ declare namespace MCP {
29785
29887
  readonly data: {
29786
29888
  name: string;
29787
29889
  };
29788
- schema(): z$2.ZodObject<{
29789
- name: z$2.ZodLiteral<"MCPFailed">;
29790
- data: z$2.ZodObject<{
29791
- name: z$2.ZodString;
29792
- }, z$2.core.$strip>;
29793
- }, z$2.core.$strip>;
29890
+ schema(): z$1.ZodObject<{
29891
+ name: z$1.ZodLiteral<"MCPFailed">;
29892
+ data: z$1.ZodObject<{
29893
+ name: z$1.ZodString;
29894
+ }, z$1.core.$strip>;
29895
+ }, z$1.core.$strip>;
29794
29896
  toObject(): {
29795
29897
  name: "MCPFailed";
29796
29898
  data: {
@@ -29801,14 +29903,14 @@ declare namespace MCP {
29801
29903
  stack?: string;
29802
29904
  cause?: unknown;
29803
29905
  };
29804
- readonly Schema: z$2.ZodObject<{
29805
- name: z$2.ZodLiteral<"MCPFailed">;
29806
- data: z$2.ZodObject<{
29807
- name: z$2.ZodString;
29808
- }, z$2.core.$strip>;
29809
- }, z$2.core.$strip>;
29906
+ readonly Schema: z$1.ZodObject<{
29907
+ name: z$1.ZodLiteral<"MCPFailed">;
29908
+ data: z$1.ZodObject<{
29909
+ name: z$1.ZodString;
29910
+ }, z$1.core.$strip>;
29911
+ }, z$1.core.$strip>;
29810
29912
  isInstance(input: any): input is InstanceType<any>;
29811
- create<Name extends string, Data extends z$2.core.$ZodType>(name: Name, data: Data): any;
29913
+ create<Name extends string, Data extends z$1.core.$ZodType>(name: Name, data: Data): any;
29812
29914
  readonly Unknown: {
29813
29915
  new (data: {
29814
29916
  message: string;
@@ -29817,12 +29919,12 @@ declare namespace MCP {
29817
29919
  readonly data: {
29818
29920
  message: string;
29819
29921
  };
29820
- schema(): z$2.ZodObject<{
29821
- name: z$2.ZodLiteral<"UnknownError">;
29822
- data: z$2.ZodObject<{
29823
- message: z$2.ZodString;
29824
- }, z$2.core.$strip>;
29825
- }, z$2.core.$strip>;
29922
+ schema(): z$1.ZodObject<{
29923
+ name: z$1.ZodLiteral<"UnknownError">;
29924
+ data: z$1.ZodObject<{
29925
+ message: z$1.ZodString;
29926
+ }, z$1.core.$strip>;
29927
+ }, z$1.core.$strip>;
29826
29928
  toObject(): {
29827
29929
  name: "UnknownError";
29828
29930
  data: {
@@ -29833,23 +29935,23 @@ declare namespace MCP {
29833
29935
  stack?: string;
29834
29936
  cause?: unknown;
29835
29937
  };
29836
- readonly Schema: z$2.ZodObject<{
29837
- name: z$2.ZodLiteral<"UnknownError">;
29838
- data: z$2.ZodObject<{
29839
- message: z$2.ZodString;
29840
- }, z$2.core.$strip>;
29841
- }, z$2.core.$strip>;
29938
+ readonly Schema: z$1.ZodObject<{
29939
+ name: z$1.ZodLiteral<"UnknownError">;
29940
+ data: z$1.ZodObject<{
29941
+ message: z$1.ZodString;
29942
+ }, z$1.core.$strip>;
29943
+ }, z$1.core.$strip>;
29842
29944
  isInstance(input: any): input is {
29843
29945
  readonly name: "UnknownError";
29844
29946
  readonly data: {
29845
29947
  message: string;
29846
29948
  };
29847
- schema(): z$2.ZodObject<{
29848
- name: z$2.ZodLiteral<"UnknownError">;
29849
- data: z$2.ZodObject<{
29850
- message: z$2.ZodString;
29851
- }, z$2.core.$strip>;
29852
- }, z$2.core.$strip>;
29949
+ schema(): z$1.ZodObject<{
29950
+ name: z$1.ZodLiteral<"UnknownError">;
29951
+ data: z$1.ZodObject<{
29952
+ message: z$1.ZodString;
29953
+ }, z$1.core.$strip>;
29954
+ }, z$1.core.$strip>;
29853
29955
  toObject(): {
29854
29956
  name: "UnknownError";
29855
29957
  data: {
@@ -29860,7 +29962,7 @@ declare namespace MCP {
29860
29962
  stack?: string;
29861
29963
  cause?: unknown;
29862
29964
  };
29863
- create<Name extends string, Data extends z$2.core.$ZodType>(name: Name, data: Data): any;
29965
+ create<Name extends string, Data extends z$1.core.$ZodType>(name: Name, data: Data): any;
29864
29966
  readonly Unknown: any;
29865
29967
  isError(error: unknown): error is Error;
29866
29968
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
@@ -29872,31 +29974,23 @@ declare namespace MCP {
29872
29974
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
29873
29975
  stackTraceLimit: number;
29874
29976
  };
29875
- type MCPClient = Client;
29876
- export const Status: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
29877
- status: z$2.ZodLiteral<"connected">;
29878
- }, z$2.core.$strip>, z$2.ZodObject<{
29879
- status: z$2.ZodLiteral<"disabled">;
29880
- }, z$2.core.$strip>, z$2.ZodObject<{
29881
- status: z$2.ZodLiteral<"failed">;
29882
- error: z$2.ZodString;
29883
- }, z$2.core.$strip>, z$2.ZodObject<{
29884
- status: z$2.ZodLiteral<"needs_auth">;
29885
- }, z$2.core.$strip>, z$2.ZodObject<{
29886
- status: z$2.ZodLiteral<"needs_client_registration">;
29887
- error: z$2.ZodString;
29888
- }, z$2.core.$strip>], "status">;
29889
- export type Status = z$2.infer<typeof Status>;
29977
+ type PromptInfo = PromptMetadata & {
29978
+ client: string;
29979
+ scope?: Scope;
29980
+ };
29981
+ type ResourceInfo = ResourceMetadata & {
29982
+ client: string;
29983
+ };
29984
+ export interface McpConfigInfo {
29985
+ name: string;
29986
+ config: Config.Mcp;
29987
+ scope?: Scope;
29988
+ }
29890
29989
  export function add(name: string, mcp: Config.Mcp): Promise<{
29891
- status: {
29892
- status: "failed";
29893
- error: string;
29894
- };
29895
- } | {
29896
29990
  status: Record<string, {
29897
29991
  status: "connected";
29898
29992
  } | {
29899
- status: "disabled";
29993
+ status: "disconnected";
29900
29994
  } | {
29901
29995
  status: "failed";
29902
29996
  error: string;
@@ -29905,12 +29999,14 @@ declare namespace MCP {
29905
29999
  } | {
29906
30000
  status: "needs_client_registration";
29907
30001
  error: string;
30002
+ } | {
30003
+ status: "disabled";
29908
30004
  }>;
29909
30005
  }>;
29910
30006
  export function status(): Promise<Record<string, {
29911
30007
  status: "connected";
29912
30008
  } | {
29913
- status: "disabled";
30009
+ status: "disconnected";
29914
30010
  } | {
29915
30011
  status: "failed";
29916
30012
  error: string;
@@ -29919,59 +30015,20 @@ declare namespace MCP {
29919
30015
  } | {
29920
30016
  status: "needs_client_registration";
29921
30017
  error: string;
30018
+ } | {
30019
+ status: "disabled";
29922
30020
  }>>;
29923
30021
  export function clients(): Promise<Record<string, MCPClient>>;
30022
+ export function configInfo(): Promise<Record<string, McpConfigInfo>>;
30023
+ export function getConfig(name: string): Promise<McpConfigInfo | undefined>;
29924
30024
  export function connect(name: string): Promise<void>;
29925
30025
  export function disconnect(name: string): Promise<void>;
29926
30026
  export function tools(): Promise<Record<string, Tool$1>>;
29927
30027
  export function prompts(): Promise<{
29928
- [k: string]: {
29929
- name: string;
29930
- description?: string | undefined;
29931
- arguments?: {
29932
- name: string;
29933
- description?: string | undefined;
29934
- required?: boolean | undefined;
29935
- }[] | undefined;
29936
- _meta?: {
29937
- [x: string]: unknown;
29938
- } | undefined;
29939
- icons?: {
29940
- src: string;
29941
- mimeType?: string | undefined;
29942
- sizes?: string[] | undefined;
29943
- theme?: "light" | "dark" | undefined;
29944
- }[] | undefined;
29945
- title?: string | undefined;
29946
- } & {
29947
- client: string;
29948
- };
30028
+ [k: string]: PromptInfo;
29949
30029
  }>;
29950
30030
  export function resources(): Promise<{
29951
- [k: string]: {
29952
- uri: string;
29953
- name: string;
29954
- description?: string | undefined;
29955
- mimeType?: string | undefined;
29956
- size?: number | undefined;
29957
- annotations?: {
29958
- audience?: ("user" | "assistant")[] | undefined;
29959
- priority?: number | undefined;
29960
- lastModified?: string | undefined;
29961
- } | undefined;
29962
- _meta?: {
29963
- [x: string]: unknown;
29964
- } | undefined;
29965
- icons?: {
29966
- src: string;
29967
- mimeType?: string | undefined;
29968
- sizes?: string[] | undefined;
29969
- theme?: "light" | "dark" | undefined;
29970
- }[] | undefined;
29971
- title?: string | undefined;
29972
- } & {
29973
- client: string;
29974
- };
30031
+ [k: string]: ResourceInfo;
29975
30032
  }>;
29976
30033
  export function getPrompt(clientName: string, name: string, args?: Record<string, string>): Promise<{
29977
30034
  [x: string]: unknown;
@@ -30095,7 +30152,7 @@ declare namespace MCP {
30095
30152
  declare function status$2(): Promise<Record<string, {
30096
30153
  status: "connected";
30097
30154
  } | {
30098
- status: "disabled";
30155
+ status: "disconnected";
30099
30156
  } | {
30100
30157
  status: "failed";
30101
30158
  error: string;
@@ -30104,11 +30161,13 @@ declare function status$2(): Promise<Record<string, {
30104
30161
  } | {
30105
30162
  status: "needs_client_registration";
30106
30163
  error: string;
30164
+ } | {
30165
+ status: "disabled";
30107
30166
  }>>;
30108
30167
  declare function list$5(): Promise<Record<string, {
30109
30168
  status: "connected";
30110
30169
  } | {
30111
- status: "disabled";
30170
+ status: "disconnected";
30112
30171
  } | {
30113
30172
  status: "failed";
30114
30173
  error: string;
@@ -30117,11 +30176,13 @@ declare function list$5(): Promise<Record<string, {
30117
30176
  } | {
30118
30177
  status: "needs_client_registration";
30119
30178
  error: string;
30179
+ } | {
30180
+ status: "disabled";
30120
30181
  }>>;
30121
30182
  declare function add(name: string, config: any): Promise<Record<string, {
30122
30183
  status: "connected";
30123
30184
  } | {
30124
- status: "disabled";
30185
+ status: "disconnected";
30125
30186
  } | {
30126
30187
  status: "failed";
30127
30188
  error: string;
@@ -30130,11 +30191,13 @@ declare function add(name: string, config: any): Promise<Record<string, {
30130
30191
  } | {
30131
30192
  status: "needs_client_registration";
30132
30193
  error: string;
30194
+ } | {
30195
+ status: "disabled";
30133
30196
  }>>;
30134
30197
  declare function connect$1(name: string): Promise<Record<string, {
30135
30198
  status: "connected";
30136
30199
  } | {
30137
- status: "disabled";
30200
+ status: "disconnected";
30138
30201
  } | {
30139
30202
  status: "failed";
30140
30203
  error: string;
@@ -30143,11 +30206,13 @@ declare function connect$1(name: string): Promise<Record<string, {
30143
30206
  } | {
30144
30207
  status: "needs_client_registration";
30145
30208
  error: string;
30209
+ } | {
30210
+ status: "disabled";
30146
30211
  }>>;
30147
30212
  declare function disconnect(name: string): Promise<Record<string, {
30148
30213
  status: "connected";
30149
30214
  } | {
30150
- status: "disabled";
30215
+ status: "disconnected";
30151
30216
  } | {
30152
30217
  status: "failed";
30153
30218
  error: string;
@@ -30156,54 +30221,18 @@ declare function disconnect(name: string): Promise<Record<string, {
30156
30221
  } | {
30157
30222
  status: "needs_client_registration";
30158
30223
  error: string;
30224
+ } | {
30225
+ status: "disabled";
30159
30226
  }>>;
30160
30227
  declare function tools(): Promise<Record<string, ai.Tool>>;
30161
30228
  declare function prompts(): Promise<{
30162
- [k: string]: {
30163
- name: string;
30164
- description?: string | undefined;
30165
- arguments?: {
30166
- name: string;
30167
- description?: string | undefined;
30168
- required?: boolean | undefined;
30169
- }[] | undefined;
30170
- _meta?: {
30171
- [x: string]: unknown;
30172
- } | undefined;
30173
- icons?: {
30174
- src: string;
30175
- mimeType?: string | undefined;
30176
- sizes?: string[] | undefined;
30177
- theme?: "light" | "dark" | undefined;
30178
- }[] | undefined;
30179
- title?: string | undefined;
30180
- } & {
30229
+ [k: string]: _easbot_mcp.PromptMetadata & {
30181
30230
  client: string;
30231
+ scope?: Scope;
30182
30232
  };
30183
30233
  }>;
30184
30234
  declare function resources(): Promise<{
30185
- [k: string]: {
30186
- uri: string;
30187
- name: string;
30188
- description?: string | undefined;
30189
- mimeType?: string | undefined;
30190
- size?: number | undefined;
30191
- annotations?: {
30192
- audience?: ("user" | "assistant")[] | undefined;
30193
- priority?: number | undefined;
30194
- lastModified?: string | undefined;
30195
- } | undefined;
30196
- _meta?: {
30197
- [x: string]: unknown;
30198
- } | undefined;
30199
- icons?: {
30200
- src: string;
30201
- mimeType?: string | undefined;
30202
- sizes?: string[] | undefined;
30203
- theme?: "light" | "dark" | undefined;
30204
- }[] | undefined;
30205
- title?: string | undefined;
30206
- } & {
30235
+ [k: string]: _easbot_mcp.ResourceMetadata & {
30207
30236
  client: string;
30208
30237
  };
30209
30238
  }>;
@@ -30319,7 +30348,7 @@ declare function startAuth(mcpName: string): Promise<{
30319
30348
  declare function authenticate(mcpName: string): Promise<{
30320
30349
  status: "connected";
30321
30350
  } | {
30322
- status: "disabled";
30351
+ status: "disconnected";
30323
30352
  } | {
30324
30353
  status: "failed";
30325
30354
  error: string;
@@ -30328,11 +30357,13 @@ declare function authenticate(mcpName: string): Promise<{
30328
30357
  } | {
30329
30358
  status: "needs_client_registration";
30330
30359
  error: string;
30360
+ } | {
30361
+ status: "disabled";
30331
30362
  }>;
30332
30363
  declare function finishAuth(mcpName: string, authorizationCode: string): Promise<{
30333
30364
  status: "connected";
30334
30365
  } | {
30335
- status: "disabled";
30366
+ status: "disconnected";
30336
30367
  } | {
30337
30368
  status: "failed";
30338
30369
  error: string;
@@ -30341,6 +30372,8 @@ declare function finishAuth(mcpName: string, authorizationCode: string): Promise
30341
30372
  } | {
30342
30373
  status: "needs_client_registration";
30343
30374
  error: string;
30375
+ } | {
30376
+ status: "disabled";
30344
30377
  }>;
30345
30378
  declare function removeAuth(mcpName: string): Promise<void>;
30346
30379
  declare function supportsOAuth(mcpName: string): Promise<boolean>;
@@ -30349,7 +30382,7 @@ declare function getAuthStatus(mcpName: string): Promise<MCP.AuthStatus>;
30349
30382
  declare function authCallback(name: string, callbackUrl: string): Promise<{
30350
30383
  status: "connected";
30351
30384
  } | {
30352
- status: "disabled";
30385
+ status: "disconnected";
30353
30386
  } | {
30354
30387
  status: "failed";
30355
30388
  error: string;
@@ -30358,54 +30391,27 @@ declare function authCallback(name: string, callbackUrl: string): Promise<{
30358
30391
  } | {
30359
30392
  status: "needs_client_registration";
30360
30393
  error: string;
30394
+ } | {
30395
+ status: "disabled";
30361
30396
  }>;
30362
- declare function clients(): Promise<Record<string, _modelcontextprotocol_sdk_client.Client<{
30363
- method: string;
30364
- params?: {
30365
- [x: string]: unknown;
30366
- _meta?: {
30367
- [x: string]: unknown;
30368
- progressToken?: string | number | undefined;
30369
- "io.modelcontextprotocol/related-task"?: {
30370
- taskId: string;
30371
- } | undefined;
30372
- } | undefined;
30373
- } | undefined;
30374
- }, {
30375
- method: string;
30376
- params?: {
30377
- [x: string]: unknown;
30378
- _meta?: {
30379
- [x: string]: unknown;
30380
- progressToken?: string | number | undefined;
30381
- "io.modelcontextprotocol/related-task"?: {
30382
- taskId: string;
30383
- } | undefined;
30384
- } | undefined;
30385
- } | undefined;
30386
- }, {
30387
- [x: string]: unknown;
30388
- _meta?: {
30389
- [x: string]: unknown;
30390
- progressToken?: string | number | undefined;
30391
- "io.modelcontextprotocol/related-task"?: {
30392
- taskId: string;
30393
- } | undefined;
30394
- } | undefined;
30395
- }>>>;
30397
+ declare function clients(): Promise<Record<string, _easbot_mcp.MCPClient>>;
30396
30398
  declare function listMcpServers(): Promise<any[]>;
30397
30399
  declare function addMcpServer(mcp: any): Promise<any>;
30398
30400
  declare function removeMcpServer(name: string): Promise<void>;
30399
30401
  declare function getMcpServerInfo(name: string): Promise<{
30400
30402
  type: "local";
30401
- command: string[];
30402
- environment?: Record<string, string> | undefined;
30403
+ command: string;
30404
+ scope: "general" | "coder" | "all";
30405
+ args?: string[] | undefined;
30406
+ env?: Record<string, string> | undefined;
30403
30407
  enabled?: boolean | undefined;
30404
30408
  timeout?: number | undefined;
30409
+ description?: string | undefined;
30405
30410
  name: string;
30406
30411
  } | {
30407
30412
  type: "remote";
30408
30413
  url: string;
30414
+ scope: "general" | "coder" | "all";
30409
30415
  enabled?: boolean | undefined;
30410
30416
  headers?: Record<string, string> | undefined;
30411
30417
  oauth?: false | {
@@ -30414,6 +30420,7 @@ declare function getMcpServerInfo(name: string): Promise<{
30414
30420
  scope?: string | undefined;
30415
30421
  } | undefined;
30416
30422
  timeout?: number | undefined;
30423
+ description?: string | undefined;
30417
30424
  name: string;
30418
30425
  } | {
30419
30426
  enabled: boolean;
@@ -30486,6 +30493,7 @@ declare function all(): Promise<{
30486
30493
  description: string;
30487
30494
  location: string;
30488
30495
  content: string;
30496
+ scope?: "general" | "coder" | "all" | undefined;
30489
30497
  }[]>;
30490
30498
 
30491
30499
  declare const skill_all: typeof all;
@@ -33579,6 +33587,11 @@ declare namespace Skill {
33579
33587
  description: z$1.ZodString;
33580
33588
  location: z$1.ZodString;
33581
33589
  content: z$1.ZodString;
33590
+ scope: z$1.ZodOptional<z$1.ZodEnum<{
33591
+ general: "general";
33592
+ coder: "coder";
33593
+ all: "all";
33594
+ }>>;
33582
33595
  }, z$1.core.$strip>;
33583
33596
  export type Info = z$1.infer<typeof Info>;
33584
33597
  export const InvalidError: {