@robota-sdk/agent-framework 3.0.0-beta.97 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2900,39 +2900,11 @@ declare const ProviderSchema: z.ZodObject<{
2900
2900
  apiKeyRef: z.ZodOptional<z.ZodObject<{
2901
2901
  service: z.ZodString;
2902
2902
  account: z.ZodString;
2903
- }, "strict", z.ZodTypeAny, {
2904
- service: string;
2905
- account: string;
2906
- }, {
2907
- service: string;
2908
- account: string;
2909
- }>>;
2903
+ }, z.core.$strict>>;
2910
2904
  baseURL: z.ZodOptional<z.ZodString>;
2911
2905
  timeout: z.ZodOptional<z.ZodNumber>;
2912
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, z.ZodTypeDef, TUniversalValue>>>;
2913
- }, "strip", z.ZodTypeAny, {
2914
- options?: Record<string, TUniversalValue> | undefined;
2915
- timeout?: number | undefined;
2916
- model?: string | undefined;
2917
- apiKey?: string | undefined;
2918
- apiKeyRef?: {
2919
- service: string;
2920
- account: string;
2921
- } | undefined;
2922
- baseURL?: string | undefined;
2923
- name?: string | undefined;
2924
- }, {
2925
- options?: Record<string, TUniversalValue> | undefined;
2926
- timeout?: number | undefined;
2927
- model?: string | undefined;
2928
- apiKey?: string | undefined;
2929
- apiKeyRef?: {
2930
- service: string;
2931
- account: string;
2932
- } | undefined;
2933
- baseURL?: string | undefined;
2934
- name?: string | undefined;
2935
- }>;
2906
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, unknown, z.core.$ZodTypeInternals<TUniversalValue, unknown>>>>;
2907
+ }, z.core.$strip>;
2936
2908
  declare const ProviderProfileSchema: z.ZodObject<{
2937
2909
  type: z.ZodOptional<z.ZodString>;
2938
2910
  model: z.ZodOptional<z.ZodString>;
@@ -2940,99 +2912,33 @@ declare const ProviderProfileSchema: z.ZodObject<{
2940
2912
  apiKeyRef: z.ZodOptional<z.ZodObject<{
2941
2913
  service: z.ZodString;
2942
2914
  account: z.ZodString;
2943
- }, "strict", z.ZodTypeAny, {
2944
- service: string;
2945
- account: string;
2946
- }, {
2947
- service: string;
2948
- account: string;
2949
- }>>;
2915
+ }, z.core.$strict>>;
2950
2916
  baseURL: z.ZodOptional<z.ZodString>;
2951
2917
  timeout: z.ZodOptional<z.ZodNumber>;
2952
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, z.ZodTypeDef, TUniversalValue>>>;
2953
- }, "strip", z.ZodTypeAny, {
2954
- options?: Record<string, TUniversalValue> | undefined;
2955
- type?: string | undefined;
2956
- timeout?: number | undefined;
2957
- model?: string | undefined;
2958
- apiKey?: string | undefined;
2959
- apiKeyRef?: {
2960
- service: string;
2961
- account: string;
2962
- } | undefined;
2963
- baseURL?: string | undefined;
2964
- }, {
2965
- options?: Record<string, TUniversalValue> | undefined;
2966
- type?: string | undefined;
2967
- timeout?: number | undefined;
2968
- model?: string | undefined;
2969
- apiKey?: string | undefined;
2970
- apiKeyRef?: {
2971
- service: string;
2972
- account: string;
2973
- } | undefined;
2974
- baseURL?: string | undefined;
2975
- }>;
2918
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, unknown, z.core.$ZodTypeInternals<TUniversalValue, unknown>>>>;
2919
+ }, z.core.$strip>;
2976
2920
  declare const SandboxSettingsSchema: z.ZodObject<{
2977
2921
  enabled: z.ZodOptional<z.ZodBoolean>;
2978
- /** A confined command runs without a prompt; deny and ask rules still apply first. */
2979
2922
  autoAllowBashIfSandboxed: z.ZodOptional<z.ZodBoolean>;
2980
- /** Commands (first word) that run unconfined, through the ordinary permission path. */
2981
- excludedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2982
- /** Refuse to start when sandboxing is enabled but cannot run here, instead of running unconfined. */
2923
+ excludedCommands: z.ZodOptional<z.ZodArray<z.ZodString>>;
2983
2924
  failIfUnavailable: z.ZodOptional<z.ZodBoolean>;
2984
2925
  filesystem: z.ZodOptional<z.ZodObject<{
2985
- allowWrite: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2986
- denyRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2987
- }, "strip", z.ZodTypeAny, {
2988
- allowWrite?: string[] | undefined;
2989
- denyRead?: string[] | undefined;
2990
- }, {
2991
- allowWrite?: string[] | undefined;
2992
- denyRead?: string[] | undefined;
2993
- }>>;
2926
+ allowWrite: z.ZodOptional<z.ZodArray<z.ZodString>>;
2927
+ denyRead: z.ZodOptional<z.ZodArray<z.ZodString>>;
2928
+ }, z.core.$strip>>;
2994
2929
  network: z.ZodOptional<z.ZodObject<{
2995
2930
  enabled: z.ZodOptional<z.ZodBoolean>;
2996
- }, "strip", z.ZodTypeAny, {
2997
- enabled?: boolean | undefined;
2998
- }, {
2999
- enabled?: boolean | undefined;
3000
- }>>;
3001
- }, "strip", z.ZodTypeAny, {
3002
- enabled?: boolean | undefined;
3003
- autoAllowBashIfSandboxed?: boolean | undefined;
3004
- excludedCommands?: string[] | undefined;
3005
- failIfUnavailable?: boolean | undefined;
3006
- filesystem?: {
3007
- allowWrite?: string[] | undefined;
3008
- denyRead?: string[] | undefined;
3009
- } | undefined;
3010
- network?: {
3011
- enabled?: boolean | undefined;
3012
- } | undefined;
3013
- }, {
3014
- enabled?: boolean | undefined;
3015
- autoAllowBashIfSandboxed?: boolean | undefined;
3016
- excludedCommands?: string[] | undefined;
3017
- failIfUnavailable?: boolean | undefined;
3018
- filesystem?: {
3019
- allowWrite?: string[] | undefined;
3020
- denyRead?: string[] | undefined;
3021
- } | undefined;
3022
- network?: {
3023
- enabled?: boolean | undefined;
3024
- } | undefined;
3025
- }>;
2931
+ }, z.core.$strip>>;
2932
+ }, z.core.$strip>;
3026
2933
  declare const SettingsSchema: z.ZodObject<{
3027
- /** Trust level used when no --permission-mode flag is given */
3028
- defaultTrustLevel: z.ZodOptional<z.ZodEnum<["safe", "moderate", "full"]>>;
3029
- /** Response language (e.g., "ko", "en", "ja"). Injected into system prompt. */
2934
+ defaultTrustLevel: z.ZodOptional<z.ZodEnum<{
2935
+ safe: "safe";
2936
+ moderate: "moderate";
2937
+ full: "full";
2938
+ }>>;
3030
2939
  language: z.ZodOptional<z.ZodString>;
3031
- /** Selected preset id (overridden by --preset). */
3032
2940
  preset: z.ZodOptional<z.ZodString>;
3033
- /** Active provider profile key from providers. */
3034
2941
  currentProvider: z.ZodOptional<z.ZodString>;
3035
- /** Provider profiles keyed by user-facing profile name. */
3036
2942
  providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3037
2943
  type: z.ZodOptional<z.ZodString>;
3038
2944
  model: z.ZodOptional<z.ZodString>;
@@ -3040,40 +2946,11 @@ declare const SettingsSchema: z.ZodObject<{
3040
2946
  apiKeyRef: z.ZodOptional<z.ZodObject<{
3041
2947
  service: z.ZodString;
3042
2948
  account: z.ZodString;
3043
- }, "strict", z.ZodTypeAny, {
3044
- service: string;
3045
- account: string;
3046
- }, {
3047
- service: string;
3048
- account: string;
3049
- }>>;
2949
+ }, z.core.$strict>>;
3050
2950
  baseURL: z.ZodOptional<z.ZodString>;
3051
2951
  timeout: z.ZodOptional<z.ZodNumber>;
3052
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, z.ZodTypeDef, TUniversalValue>>>;
3053
- }, "strip", z.ZodTypeAny, {
3054
- options?: Record<string, TUniversalValue> | undefined;
3055
- type?: string | undefined;
3056
- timeout?: number | undefined;
3057
- model?: string | undefined;
3058
- apiKey?: string | undefined;
3059
- apiKeyRef?: {
3060
- service: string;
3061
- account: string;
3062
- } | undefined;
3063
- baseURL?: string | undefined;
3064
- }, {
3065
- options?: Record<string, TUniversalValue> | undefined;
3066
- type?: string | undefined;
3067
- timeout?: number | undefined;
3068
- model?: string | undefined;
3069
- apiKey?: string | undefined;
3070
- apiKeyRef?: {
3071
- service: string;
3072
- account: string;
3073
- } | undefined;
3074
- baseURL?: string | undefined;
3075
- }>>>;
3076
- /** Legacy single-provider settings. Prefer currentProvider + providers for new config. */
2952
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, unknown, z.core.$ZodTypeInternals<TUniversalValue, unknown>>>>;
2953
+ }, z.core.$strip>>>;
3077
2954
  provider: z.ZodOptional<z.ZodObject<{
3078
2955
  name: z.ZodOptional<z.ZodString>;
3079
2956
  model: z.ZodOptional<z.ZodString>;
@@ -3081,3953 +2958,475 @@ declare const SettingsSchema: z.ZodObject<{
3081
2958
  apiKeyRef: z.ZodOptional<z.ZodObject<{
3082
2959
  service: z.ZodString;
3083
2960
  account: z.ZodString;
3084
- }, "strict", z.ZodTypeAny, {
3085
- service: string;
3086
- account: string;
3087
- }, {
3088
- service: string;
3089
- account: string;
3090
- }>>;
2961
+ }, z.core.$strict>>;
3091
2962
  baseURL: z.ZodOptional<z.ZodString>;
3092
2963
  timeout: z.ZodOptional<z.ZodNumber>;
3093
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, z.ZodTypeDef, TUniversalValue>>>;
3094
- }, "strip", z.ZodTypeAny, {
3095
- options?: Record<string, TUniversalValue> | undefined;
3096
- timeout?: number | undefined;
3097
- model?: string | undefined;
3098
- apiKey?: string | undefined;
3099
- apiKeyRef?: {
3100
- service: string;
3101
- account: string;
3102
- } | undefined;
3103
- baseURL?: string | undefined;
3104
- name?: string | undefined;
3105
- }, {
3106
- options?: Record<string, TUniversalValue> | undefined;
3107
- timeout?: number | undefined;
3108
- model?: string | undefined;
3109
- apiKey?: string | undefined;
3110
- apiKeyRef?: {
3111
- service: string;
3112
- account: string;
3113
- } | undefined;
3114
- baseURL?: string | undefined;
3115
- name?: string | undefined;
3116
- }>>;
2964
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, unknown, z.core.$ZodTypeInternals<TUniversalValue, unknown>>>>;
2965
+ }, z.core.$strip>>;
3117
2966
  permissions: z.ZodOptional<z.ZodObject<{
3118
- /** Patterns that are always approved without prompting */
3119
- allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3120
- /** Patterns that are always denied */
3121
- deny: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3122
- /** Patterns that always ask, in every mode including bypassPermissions */
3123
- ask: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3124
- }, "strip", z.ZodTypeAny, {
3125
- allow?: string[] | undefined;
3126
- deny?: string[] | undefined;
3127
- ask?: string[] | undefined;
3128
- }, {
3129
- allow?: string[] | undefined;
3130
- deny?: string[] | undefined;
3131
- ask?: string[] | undefined;
3132
- }>>;
2967
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
2968
+ deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
2969
+ ask: z.ZodOptional<z.ZodArray<z.ZodString>>;
2970
+ }, z.core.$strip>>;
3133
2971
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3134
- /**
3135
- * Provider credential variables the commands the runtime runs may still see. Read by the host
3136
- * composition from user and managed layers only; a project layer cannot re-expose a credential.
3137
- */
3138
- commandEnvAllow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2972
+ commandEnvAllow: z.ZodOptional<z.ZodArray<z.ZodString>>;
3139
2973
  hooks: z.ZodOptional<z.ZodObject<{
3140
2974
  PreToolUse: z.ZodOptional<z.ZodArray<z.ZodObject<{
3141
- /**
3142
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
3143
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
3144
- * an id simply cannot be disabled from another layer.
3145
- */
3146
2975
  id: z.ZodOptional<z.ZodString>;
3147
2976
  matcher: z.ZodString;
3148
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2977
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3149
2978
  type: z.ZodLiteral<"command">;
3150
2979
  command: z.ZodString;
3151
2980
  timeout: z.ZodOptional<z.ZodNumber>;
3152
- }, "strip", z.ZodTypeAny, {
3153
- type: "command";
3154
- command: string;
3155
- timeout?: number | undefined;
3156
- }, {
3157
- type: "command";
3158
- command: string;
3159
- timeout?: number | undefined;
3160
- }>, z.ZodObject<{
2981
+ }, z.core.$strip>, z.ZodObject<{
3161
2982
  type: z.ZodLiteral<"http">;
3162
2983
  url: z.ZodString;
3163
2984
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3164
2985
  timeout: z.ZodOptional<z.ZodNumber>;
3165
- }, "strip", z.ZodTypeAny, {
3166
- type: "http";
3167
- url: string;
3168
- timeout?: number | undefined;
3169
- headers?: Record<string, string> | undefined;
3170
- }, {
3171
- type: "http";
3172
- url: string;
3173
- timeout?: number | undefined;
3174
- headers?: Record<string, string> | undefined;
3175
- }>, z.ZodObject<{
2986
+ }, z.core.$strip>, z.ZodObject<{
3176
2987
  type: z.ZodLiteral<"prompt">;
3177
2988
  prompt: z.ZodString;
3178
2989
  model: z.ZodOptional<z.ZodString>;
3179
- }, "strip", z.ZodTypeAny, {
3180
- type: "prompt";
3181
- prompt: string;
3182
- model?: string | undefined;
3183
- }, {
3184
- type: "prompt";
3185
- prompt: string;
3186
- model?: string | undefined;
3187
- }>, z.ZodObject<{
2990
+ }, z.core.$strip>, z.ZodObject<{
3188
2991
  type: z.ZodLiteral<"agent">;
3189
2992
  agent: z.ZodString;
3190
2993
  maxTurns: z.ZodOptional<z.ZodNumber>;
3191
2994
  timeout: z.ZodOptional<z.ZodNumber>;
3192
- }, "strip", z.ZodTypeAny, {
3193
- type: "agent";
3194
- agent: string;
3195
- timeout?: number | undefined;
3196
- maxTurns?: number | undefined;
3197
- }, {
3198
- type: "agent";
3199
- agent: string;
3200
- timeout?: number | undefined;
3201
- maxTurns?: number | undefined;
3202
- }>, z.ZodObject<{
2995
+ }, z.core.$strip>, z.ZodObject<{
3203
2996
  type: z.ZodLiteral<"guardrail">;
3204
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3205
- }, "strip", z.ZodTypeAny, {
3206
- type: "guardrail";
3207
- guardrails?: string[] | undefined;
3208
- }, {
3209
- type: "guardrail";
3210
- guardrails?: string[] | undefined;
3211
- }>]>, "many">;
3212
- }, "strip", z.ZodTypeAny, {
3213
- matcher: string;
3214
- hooks: ({
3215
- type: "command";
3216
- command: string;
3217
- timeout?: number | undefined;
3218
- } | {
3219
- type: "http";
3220
- url: string;
3221
- timeout?: number | undefined;
3222
- headers?: Record<string, string> | undefined;
3223
- } | {
3224
- type: "prompt";
3225
- prompt: string;
3226
- model?: string | undefined;
3227
- } | {
3228
- type: "agent";
3229
- agent: string;
3230
- timeout?: number | undefined;
3231
- maxTurns?: number | undefined;
3232
- } | {
3233
- type: "guardrail";
3234
- guardrails?: string[] | undefined;
3235
- })[];
3236
- id?: string | undefined;
3237
- }, {
3238
- matcher: string;
3239
- hooks: ({
3240
- type: "command";
3241
- command: string;
3242
- timeout?: number | undefined;
3243
- } | {
3244
- type: "http";
3245
- url: string;
3246
- timeout?: number | undefined;
3247
- headers?: Record<string, string> | undefined;
3248
- } | {
3249
- type: "prompt";
3250
- prompt: string;
3251
- model?: string | undefined;
3252
- } | {
3253
- type: "agent";
3254
- agent: string;
3255
- timeout?: number | undefined;
3256
- maxTurns?: number | undefined;
3257
- } | {
3258
- type: "guardrail";
3259
- guardrails?: string[] | undefined;
3260
- })[];
3261
- id?: string | undefined;
3262
- }>, "many">>;
2997
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
2998
+ }, z.core.$strip>], "type">>;
2999
+ }, z.core.$strip>>>;
3263
3000
  PostToolUse: z.ZodOptional<z.ZodArray<z.ZodObject<{
3264
- /**
3265
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
3266
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
3267
- * an id simply cannot be disabled from another layer.
3268
- */
3269
3001
  id: z.ZodOptional<z.ZodString>;
3270
3002
  matcher: z.ZodString;
3271
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3003
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3272
3004
  type: z.ZodLiteral<"command">;
3273
3005
  command: z.ZodString;
3274
3006
  timeout: z.ZodOptional<z.ZodNumber>;
3275
- }, "strip", z.ZodTypeAny, {
3276
- type: "command";
3277
- command: string;
3278
- timeout?: number | undefined;
3279
- }, {
3280
- type: "command";
3281
- command: string;
3282
- timeout?: number | undefined;
3283
- }>, z.ZodObject<{
3007
+ }, z.core.$strip>, z.ZodObject<{
3284
3008
  type: z.ZodLiteral<"http">;
3285
3009
  url: z.ZodString;
3286
3010
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3287
3011
  timeout: z.ZodOptional<z.ZodNumber>;
3288
- }, "strip", z.ZodTypeAny, {
3289
- type: "http";
3290
- url: string;
3291
- timeout?: number | undefined;
3292
- headers?: Record<string, string> | undefined;
3293
- }, {
3294
- type: "http";
3295
- url: string;
3296
- timeout?: number | undefined;
3297
- headers?: Record<string, string> | undefined;
3298
- }>, z.ZodObject<{
3012
+ }, z.core.$strip>, z.ZodObject<{
3299
3013
  type: z.ZodLiteral<"prompt">;
3300
3014
  prompt: z.ZodString;
3301
3015
  model: z.ZodOptional<z.ZodString>;
3302
- }, "strip", z.ZodTypeAny, {
3303
- type: "prompt";
3304
- prompt: string;
3305
- model?: string | undefined;
3306
- }, {
3307
- type: "prompt";
3308
- prompt: string;
3309
- model?: string | undefined;
3310
- }>, z.ZodObject<{
3016
+ }, z.core.$strip>, z.ZodObject<{
3311
3017
  type: z.ZodLiteral<"agent">;
3312
3018
  agent: z.ZodString;
3313
3019
  maxTurns: z.ZodOptional<z.ZodNumber>;
3314
3020
  timeout: z.ZodOptional<z.ZodNumber>;
3315
- }, "strip", z.ZodTypeAny, {
3316
- type: "agent";
3317
- agent: string;
3318
- timeout?: number | undefined;
3319
- maxTurns?: number | undefined;
3320
- }, {
3321
- type: "agent";
3322
- agent: string;
3323
- timeout?: number | undefined;
3324
- maxTurns?: number | undefined;
3325
- }>, z.ZodObject<{
3021
+ }, z.core.$strip>, z.ZodObject<{
3326
3022
  type: z.ZodLiteral<"guardrail">;
3327
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3328
- }, "strip", z.ZodTypeAny, {
3329
- type: "guardrail";
3330
- guardrails?: string[] | undefined;
3331
- }, {
3332
- type: "guardrail";
3333
- guardrails?: string[] | undefined;
3334
- }>]>, "many">;
3335
- }, "strip", z.ZodTypeAny, {
3336
- matcher: string;
3337
- hooks: ({
3338
- type: "command";
3339
- command: string;
3340
- timeout?: number | undefined;
3341
- } | {
3342
- type: "http";
3343
- url: string;
3344
- timeout?: number | undefined;
3345
- headers?: Record<string, string> | undefined;
3346
- } | {
3347
- type: "prompt";
3348
- prompt: string;
3349
- model?: string | undefined;
3350
- } | {
3351
- type: "agent";
3352
- agent: string;
3353
- timeout?: number | undefined;
3354
- maxTurns?: number | undefined;
3355
- } | {
3356
- type: "guardrail";
3357
- guardrails?: string[] | undefined;
3358
- })[];
3359
- id?: string | undefined;
3360
- }, {
3361
- matcher: string;
3362
- hooks: ({
3363
- type: "command";
3364
- command: string;
3365
- timeout?: number | undefined;
3366
- } | {
3367
- type: "http";
3368
- url: string;
3369
- timeout?: number | undefined;
3370
- headers?: Record<string, string> | undefined;
3371
- } | {
3372
- type: "prompt";
3373
- prompt: string;
3374
- model?: string | undefined;
3375
- } | {
3376
- type: "agent";
3377
- agent: string;
3378
- timeout?: number | undefined;
3379
- maxTurns?: number | undefined;
3380
- } | {
3381
- type: "guardrail";
3382
- guardrails?: string[] | undefined;
3383
- })[];
3384
- id?: string | undefined;
3385
- }>, "many">>;
3023
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3024
+ }, z.core.$strip>], "type">>;
3025
+ }, z.core.$strip>>>;
3386
3026
  SessionStart: z.ZodOptional<z.ZodArray<z.ZodObject<{
3387
- /**
3388
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
3389
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
3390
- * an id simply cannot be disabled from another layer.
3391
- */
3392
3027
  id: z.ZodOptional<z.ZodString>;
3393
3028
  matcher: z.ZodString;
3394
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3029
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3395
3030
  type: z.ZodLiteral<"command">;
3396
3031
  command: z.ZodString;
3397
3032
  timeout: z.ZodOptional<z.ZodNumber>;
3398
- }, "strip", z.ZodTypeAny, {
3399
- type: "command";
3400
- command: string;
3401
- timeout?: number | undefined;
3402
- }, {
3403
- type: "command";
3404
- command: string;
3405
- timeout?: number | undefined;
3406
- }>, z.ZodObject<{
3033
+ }, z.core.$strip>, z.ZodObject<{
3407
3034
  type: z.ZodLiteral<"http">;
3408
3035
  url: z.ZodString;
3409
3036
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3410
3037
  timeout: z.ZodOptional<z.ZodNumber>;
3411
- }, "strip", z.ZodTypeAny, {
3412
- type: "http";
3413
- url: string;
3414
- timeout?: number | undefined;
3415
- headers?: Record<string, string> | undefined;
3416
- }, {
3417
- type: "http";
3418
- url: string;
3419
- timeout?: number | undefined;
3420
- headers?: Record<string, string> | undefined;
3421
- }>, z.ZodObject<{
3038
+ }, z.core.$strip>, z.ZodObject<{
3422
3039
  type: z.ZodLiteral<"prompt">;
3423
3040
  prompt: z.ZodString;
3424
3041
  model: z.ZodOptional<z.ZodString>;
3425
- }, "strip", z.ZodTypeAny, {
3426
- type: "prompt";
3427
- prompt: string;
3428
- model?: string | undefined;
3429
- }, {
3430
- type: "prompt";
3431
- prompt: string;
3432
- model?: string | undefined;
3433
- }>, z.ZodObject<{
3042
+ }, z.core.$strip>, z.ZodObject<{
3434
3043
  type: z.ZodLiteral<"agent">;
3435
3044
  agent: z.ZodString;
3436
3045
  maxTurns: z.ZodOptional<z.ZodNumber>;
3437
3046
  timeout: z.ZodOptional<z.ZodNumber>;
3438
- }, "strip", z.ZodTypeAny, {
3439
- type: "agent";
3440
- agent: string;
3441
- timeout?: number | undefined;
3442
- maxTurns?: number | undefined;
3443
- }, {
3444
- type: "agent";
3445
- agent: string;
3446
- timeout?: number | undefined;
3447
- maxTurns?: number | undefined;
3448
- }>, z.ZodObject<{
3047
+ }, z.core.$strip>, z.ZodObject<{
3449
3048
  type: z.ZodLiteral<"guardrail">;
3450
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3451
- }, "strip", z.ZodTypeAny, {
3452
- type: "guardrail";
3453
- guardrails?: string[] | undefined;
3454
- }, {
3455
- type: "guardrail";
3456
- guardrails?: string[] | undefined;
3457
- }>]>, "many">;
3458
- }, "strip", z.ZodTypeAny, {
3459
- matcher: string;
3460
- hooks: ({
3461
- type: "command";
3462
- command: string;
3463
- timeout?: number | undefined;
3464
- } | {
3465
- type: "http";
3466
- url: string;
3467
- timeout?: number | undefined;
3468
- headers?: Record<string, string> | undefined;
3469
- } | {
3470
- type: "prompt";
3471
- prompt: string;
3472
- model?: string | undefined;
3473
- } | {
3474
- type: "agent";
3475
- agent: string;
3476
- timeout?: number | undefined;
3477
- maxTurns?: number | undefined;
3478
- } | {
3479
- type: "guardrail";
3480
- guardrails?: string[] | undefined;
3481
- })[];
3482
- id?: string | undefined;
3483
- }, {
3484
- matcher: string;
3485
- hooks: ({
3486
- type: "command";
3487
- command: string;
3488
- timeout?: number | undefined;
3489
- } | {
3490
- type: "http";
3491
- url: string;
3492
- timeout?: number | undefined;
3493
- headers?: Record<string, string> | undefined;
3494
- } | {
3495
- type: "prompt";
3496
- prompt: string;
3497
- model?: string | undefined;
3498
- } | {
3499
- type: "agent";
3500
- agent: string;
3501
- timeout?: number | undefined;
3502
- maxTurns?: number | undefined;
3503
- } | {
3504
- type: "guardrail";
3505
- guardrails?: string[] | undefined;
3506
- })[];
3507
- id?: string | undefined;
3508
- }>, "many">>;
3049
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3050
+ }, z.core.$strip>], "type">>;
3051
+ }, z.core.$strip>>>;
3509
3052
  SessionEnd: z.ZodOptional<z.ZodArray<z.ZodObject<{
3510
- /**
3511
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
3512
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
3513
- * an id simply cannot be disabled from another layer.
3514
- */
3515
3053
  id: z.ZodOptional<z.ZodString>;
3516
3054
  matcher: z.ZodString;
3517
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3055
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3518
3056
  type: z.ZodLiteral<"command">;
3519
3057
  command: z.ZodString;
3520
3058
  timeout: z.ZodOptional<z.ZodNumber>;
3521
- }, "strip", z.ZodTypeAny, {
3522
- type: "command";
3523
- command: string;
3524
- timeout?: number | undefined;
3525
- }, {
3526
- type: "command";
3527
- command: string;
3528
- timeout?: number | undefined;
3529
- }>, z.ZodObject<{
3059
+ }, z.core.$strip>, z.ZodObject<{
3530
3060
  type: z.ZodLiteral<"http">;
3531
3061
  url: z.ZodString;
3532
3062
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3533
3063
  timeout: z.ZodOptional<z.ZodNumber>;
3534
- }, "strip", z.ZodTypeAny, {
3535
- type: "http";
3536
- url: string;
3537
- timeout?: number | undefined;
3538
- headers?: Record<string, string> | undefined;
3539
- }, {
3540
- type: "http";
3541
- url: string;
3542
- timeout?: number | undefined;
3543
- headers?: Record<string, string> | undefined;
3544
- }>, z.ZodObject<{
3064
+ }, z.core.$strip>, z.ZodObject<{
3545
3065
  type: z.ZodLiteral<"prompt">;
3546
3066
  prompt: z.ZodString;
3547
3067
  model: z.ZodOptional<z.ZodString>;
3548
- }, "strip", z.ZodTypeAny, {
3549
- type: "prompt";
3550
- prompt: string;
3551
- model?: string | undefined;
3552
- }, {
3553
- type: "prompt";
3554
- prompt: string;
3555
- model?: string | undefined;
3556
- }>, z.ZodObject<{
3068
+ }, z.core.$strip>, z.ZodObject<{
3557
3069
  type: z.ZodLiteral<"agent">;
3558
3070
  agent: z.ZodString;
3559
3071
  maxTurns: z.ZodOptional<z.ZodNumber>;
3560
3072
  timeout: z.ZodOptional<z.ZodNumber>;
3561
- }, "strip", z.ZodTypeAny, {
3562
- type: "agent";
3563
- agent: string;
3564
- timeout?: number | undefined;
3565
- maxTurns?: number | undefined;
3566
- }, {
3567
- type: "agent";
3568
- agent: string;
3569
- timeout?: number | undefined;
3570
- maxTurns?: number | undefined;
3571
- }>, z.ZodObject<{
3073
+ }, z.core.$strip>, z.ZodObject<{
3572
3074
  type: z.ZodLiteral<"guardrail">;
3573
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3574
- }, "strip", z.ZodTypeAny, {
3575
- type: "guardrail";
3576
- guardrails?: string[] | undefined;
3577
- }, {
3578
- type: "guardrail";
3579
- guardrails?: string[] | undefined;
3580
- }>]>, "many">;
3581
- }, "strip", z.ZodTypeAny, {
3582
- matcher: string;
3583
- hooks: ({
3584
- type: "command";
3585
- command: string;
3586
- timeout?: number | undefined;
3587
- } | {
3588
- type: "http";
3589
- url: string;
3590
- timeout?: number | undefined;
3591
- headers?: Record<string, string> | undefined;
3592
- } | {
3593
- type: "prompt";
3594
- prompt: string;
3595
- model?: string | undefined;
3596
- } | {
3597
- type: "agent";
3598
- agent: string;
3599
- timeout?: number | undefined;
3600
- maxTurns?: number | undefined;
3601
- } | {
3602
- type: "guardrail";
3603
- guardrails?: string[] | undefined;
3604
- })[];
3605
- id?: string | undefined;
3606
- }, {
3607
- matcher: string;
3608
- hooks: ({
3609
- type: "command";
3610
- command: string;
3611
- timeout?: number | undefined;
3612
- } | {
3613
- type: "http";
3614
- url: string;
3615
- timeout?: number | undefined;
3616
- headers?: Record<string, string> | undefined;
3617
- } | {
3618
- type: "prompt";
3619
- prompt: string;
3620
- model?: string | undefined;
3621
- } | {
3622
- type: "agent";
3623
- agent: string;
3624
- timeout?: number | undefined;
3625
- maxTurns?: number | undefined;
3626
- } | {
3627
- type: "guardrail";
3628
- guardrails?: string[] | undefined;
3629
- })[];
3630
- id?: string | undefined;
3631
- }>, "many">>;
3075
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3076
+ }, z.core.$strip>], "type">>;
3077
+ }, z.core.$strip>>>;
3632
3078
  Stop: z.ZodOptional<z.ZodArray<z.ZodObject<{
3633
- /**
3634
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
3635
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
3636
- * an id simply cannot be disabled from another layer.
3637
- */
3638
3079
  id: z.ZodOptional<z.ZodString>;
3639
3080
  matcher: z.ZodString;
3640
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3081
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3641
3082
  type: z.ZodLiteral<"command">;
3642
3083
  command: z.ZodString;
3643
3084
  timeout: z.ZodOptional<z.ZodNumber>;
3644
- }, "strip", z.ZodTypeAny, {
3645
- type: "command";
3646
- command: string;
3647
- timeout?: number | undefined;
3648
- }, {
3649
- type: "command";
3650
- command: string;
3651
- timeout?: number | undefined;
3652
- }>, z.ZodObject<{
3085
+ }, z.core.$strip>, z.ZodObject<{
3653
3086
  type: z.ZodLiteral<"http">;
3654
3087
  url: z.ZodString;
3655
3088
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3656
3089
  timeout: z.ZodOptional<z.ZodNumber>;
3657
- }, "strip", z.ZodTypeAny, {
3658
- type: "http";
3659
- url: string;
3660
- timeout?: number | undefined;
3661
- headers?: Record<string, string> | undefined;
3662
- }, {
3663
- type: "http";
3664
- url: string;
3665
- timeout?: number | undefined;
3666
- headers?: Record<string, string> | undefined;
3667
- }>, z.ZodObject<{
3090
+ }, z.core.$strip>, z.ZodObject<{
3668
3091
  type: z.ZodLiteral<"prompt">;
3669
3092
  prompt: z.ZodString;
3670
3093
  model: z.ZodOptional<z.ZodString>;
3671
- }, "strip", z.ZodTypeAny, {
3672
- type: "prompt";
3673
- prompt: string;
3674
- model?: string | undefined;
3675
- }, {
3676
- type: "prompt";
3677
- prompt: string;
3678
- model?: string | undefined;
3679
- }>, z.ZodObject<{
3094
+ }, z.core.$strip>, z.ZodObject<{
3680
3095
  type: z.ZodLiteral<"agent">;
3681
3096
  agent: z.ZodString;
3682
3097
  maxTurns: z.ZodOptional<z.ZodNumber>;
3683
3098
  timeout: z.ZodOptional<z.ZodNumber>;
3684
- }, "strip", z.ZodTypeAny, {
3685
- type: "agent";
3686
- agent: string;
3687
- timeout?: number | undefined;
3688
- maxTurns?: number | undefined;
3689
- }, {
3690
- type: "agent";
3691
- agent: string;
3692
- timeout?: number | undefined;
3693
- maxTurns?: number | undefined;
3694
- }>, z.ZodObject<{
3099
+ }, z.core.$strip>, z.ZodObject<{
3695
3100
  type: z.ZodLiteral<"guardrail">;
3696
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3697
- }, "strip", z.ZodTypeAny, {
3698
- type: "guardrail";
3699
- guardrails?: string[] | undefined;
3700
- }, {
3701
- type: "guardrail";
3702
- guardrails?: string[] | undefined;
3703
- }>]>, "many">;
3704
- }, "strip", z.ZodTypeAny, {
3705
- matcher: string;
3706
- hooks: ({
3707
- type: "command";
3708
- command: string;
3709
- timeout?: number | undefined;
3710
- } | {
3711
- type: "http";
3712
- url: string;
3713
- timeout?: number | undefined;
3714
- headers?: Record<string, string> | undefined;
3715
- } | {
3716
- type: "prompt";
3717
- prompt: string;
3718
- model?: string | undefined;
3719
- } | {
3720
- type: "agent";
3721
- agent: string;
3722
- timeout?: number | undefined;
3723
- maxTurns?: number | undefined;
3724
- } | {
3725
- type: "guardrail";
3726
- guardrails?: string[] | undefined;
3727
- })[];
3728
- id?: string | undefined;
3729
- }, {
3730
- matcher: string;
3731
- hooks: ({
3732
- type: "command";
3733
- command: string;
3734
- timeout?: number | undefined;
3735
- } | {
3736
- type: "http";
3737
- url: string;
3738
- timeout?: number | undefined;
3739
- headers?: Record<string, string> | undefined;
3740
- } | {
3741
- type: "prompt";
3742
- prompt: string;
3743
- model?: string | undefined;
3744
- } | {
3745
- type: "agent";
3746
- agent: string;
3747
- timeout?: number | undefined;
3748
- maxTurns?: number | undefined;
3749
- } | {
3750
- type: "guardrail";
3751
- guardrails?: string[] | undefined;
3752
- })[];
3753
- id?: string | undefined;
3754
- }>, "many">>;
3101
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3102
+ }, z.core.$strip>], "type">>;
3103
+ }, z.core.$strip>>>;
3755
3104
  StopFailure: z.ZodOptional<z.ZodArray<z.ZodObject<{
3756
- /**
3757
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
3758
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
3759
- * an id simply cannot be disabled from another layer.
3760
- */
3761
3105
  id: z.ZodOptional<z.ZodString>;
3762
3106
  matcher: z.ZodString;
3763
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3107
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3764
3108
  type: z.ZodLiteral<"command">;
3765
3109
  command: z.ZodString;
3766
3110
  timeout: z.ZodOptional<z.ZodNumber>;
3767
- }, "strip", z.ZodTypeAny, {
3768
- type: "command";
3769
- command: string;
3770
- timeout?: number | undefined;
3771
- }, {
3772
- type: "command";
3773
- command: string;
3774
- timeout?: number | undefined;
3775
- }>, z.ZodObject<{
3111
+ }, z.core.$strip>, z.ZodObject<{
3776
3112
  type: z.ZodLiteral<"http">;
3777
3113
  url: z.ZodString;
3778
3114
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3779
3115
  timeout: z.ZodOptional<z.ZodNumber>;
3780
- }, "strip", z.ZodTypeAny, {
3781
- type: "http";
3782
- url: string;
3783
- timeout?: number | undefined;
3784
- headers?: Record<string, string> | undefined;
3785
- }, {
3786
- type: "http";
3787
- url: string;
3788
- timeout?: number | undefined;
3789
- headers?: Record<string, string> | undefined;
3790
- }>, z.ZodObject<{
3116
+ }, z.core.$strip>, z.ZodObject<{
3791
3117
  type: z.ZodLiteral<"prompt">;
3792
3118
  prompt: z.ZodString;
3793
3119
  model: z.ZodOptional<z.ZodString>;
3794
- }, "strip", z.ZodTypeAny, {
3795
- type: "prompt";
3796
- prompt: string;
3797
- model?: string | undefined;
3798
- }, {
3799
- type: "prompt";
3800
- prompt: string;
3801
- model?: string | undefined;
3802
- }>, z.ZodObject<{
3120
+ }, z.core.$strip>, z.ZodObject<{
3803
3121
  type: z.ZodLiteral<"agent">;
3804
3122
  agent: z.ZodString;
3805
3123
  maxTurns: z.ZodOptional<z.ZodNumber>;
3806
3124
  timeout: z.ZodOptional<z.ZodNumber>;
3807
- }, "strip", z.ZodTypeAny, {
3808
- type: "agent";
3809
- agent: string;
3810
- timeout?: number | undefined;
3811
- maxTurns?: number | undefined;
3812
- }, {
3813
- type: "agent";
3814
- agent: string;
3815
- timeout?: number | undefined;
3816
- maxTurns?: number | undefined;
3817
- }>, z.ZodObject<{
3125
+ }, z.core.$strip>, z.ZodObject<{
3818
3126
  type: z.ZodLiteral<"guardrail">;
3819
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3820
- }, "strip", z.ZodTypeAny, {
3821
- type: "guardrail";
3822
- guardrails?: string[] | undefined;
3823
- }, {
3824
- type: "guardrail";
3825
- guardrails?: string[] | undefined;
3826
- }>]>, "many">;
3827
- }, "strip", z.ZodTypeAny, {
3828
- matcher: string;
3829
- hooks: ({
3830
- type: "command";
3831
- command: string;
3832
- timeout?: number | undefined;
3833
- } | {
3834
- type: "http";
3835
- url: string;
3836
- timeout?: number | undefined;
3837
- headers?: Record<string, string> | undefined;
3838
- } | {
3839
- type: "prompt";
3840
- prompt: string;
3841
- model?: string | undefined;
3842
- } | {
3843
- type: "agent";
3844
- agent: string;
3845
- timeout?: number | undefined;
3846
- maxTurns?: number | undefined;
3847
- } | {
3848
- type: "guardrail";
3849
- guardrails?: string[] | undefined;
3850
- })[];
3851
- id?: string | undefined;
3852
- }, {
3853
- matcher: string;
3854
- hooks: ({
3855
- type: "command";
3856
- command: string;
3857
- timeout?: number | undefined;
3858
- } | {
3859
- type: "http";
3860
- url: string;
3861
- timeout?: number | undefined;
3862
- headers?: Record<string, string> | undefined;
3863
- } | {
3864
- type: "prompt";
3865
- prompt: string;
3866
- model?: string | undefined;
3867
- } | {
3868
- type: "agent";
3869
- agent: string;
3870
- timeout?: number | undefined;
3871
- maxTurns?: number | undefined;
3872
- } | {
3873
- type: "guardrail";
3874
- guardrails?: string[] | undefined;
3875
- })[];
3876
- id?: string | undefined;
3877
- }>, "many">>;
3127
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3128
+ }, z.core.$strip>], "type">>;
3129
+ }, z.core.$strip>>>;
3878
3130
  PreCompact: z.ZodOptional<z.ZodArray<z.ZodObject<{
3879
- /**
3880
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
3881
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
3882
- * an id simply cannot be disabled from another layer.
3883
- */
3884
3131
  id: z.ZodOptional<z.ZodString>;
3885
3132
  matcher: z.ZodString;
3886
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3133
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3887
3134
  type: z.ZodLiteral<"command">;
3888
3135
  command: z.ZodString;
3889
3136
  timeout: z.ZodOptional<z.ZodNumber>;
3890
- }, "strip", z.ZodTypeAny, {
3891
- type: "command";
3892
- command: string;
3893
- timeout?: number | undefined;
3894
- }, {
3895
- type: "command";
3896
- command: string;
3897
- timeout?: number | undefined;
3898
- }>, z.ZodObject<{
3137
+ }, z.core.$strip>, z.ZodObject<{
3899
3138
  type: z.ZodLiteral<"http">;
3900
3139
  url: z.ZodString;
3901
3140
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3902
3141
  timeout: z.ZodOptional<z.ZodNumber>;
3903
- }, "strip", z.ZodTypeAny, {
3904
- type: "http";
3905
- url: string;
3906
- timeout?: number | undefined;
3907
- headers?: Record<string, string> | undefined;
3908
- }, {
3909
- type: "http";
3910
- url: string;
3911
- timeout?: number | undefined;
3912
- headers?: Record<string, string> | undefined;
3913
- }>, z.ZodObject<{
3142
+ }, z.core.$strip>, z.ZodObject<{
3914
3143
  type: z.ZodLiteral<"prompt">;
3915
3144
  prompt: z.ZodString;
3916
3145
  model: z.ZodOptional<z.ZodString>;
3917
- }, "strip", z.ZodTypeAny, {
3918
- type: "prompt";
3919
- prompt: string;
3920
- model?: string | undefined;
3921
- }, {
3922
- type: "prompt";
3923
- prompt: string;
3924
- model?: string | undefined;
3925
- }>, z.ZodObject<{
3146
+ }, z.core.$strip>, z.ZodObject<{
3926
3147
  type: z.ZodLiteral<"agent">;
3927
3148
  agent: z.ZodString;
3928
3149
  maxTurns: z.ZodOptional<z.ZodNumber>;
3929
3150
  timeout: z.ZodOptional<z.ZodNumber>;
3930
- }, "strip", z.ZodTypeAny, {
3931
- type: "agent";
3932
- agent: string;
3933
- timeout?: number | undefined;
3934
- maxTurns?: number | undefined;
3935
- }, {
3936
- type: "agent";
3937
- agent: string;
3938
- timeout?: number | undefined;
3939
- maxTurns?: number | undefined;
3940
- }>, z.ZodObject<{
3151
+ }, z.core.$strip>, z.ZodObject<{
3941
3152
  type: z.ZodLiteral<"guardrail">;
3942
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3943
- }, "strip", z.ZodTypeAny, {
3944
- type: "guardrail";
3945
- guardrails?: string[] | undefined;
3946
- }, {
3947
- type: "guardrail";
3948
- guardrails?: string[] | undefined;
3949
- }>]>, "many">;
3950
- }, "strip", z.ZodTypeAny, {
3951
- matcher: string;
3952
- hooks: ({
3953
- type: "command";
3954
- command: string;
3955
- timeout?: number | undefined;
3956
- } | {
3957
- type: "http";
3958
- url: string;
3959
- timeout?: number | undefined;
3960
- headers?: Record<string, string> | undefined;
3961
- } | {
3962
- type: "prompt";
3963
- prompt: string;
3964
- model?: string | undefined;
3965
- } | {
3966
- type: "agent";
3967
- agent: string;
3968
- timeout?: number | undefined;
3969
- maxTurns?: number | undefined;
3970
- } | {
3971
- type: "guardrail";
3972
- guardrails?: string[] | undefined;
3973
- })[];
3974
- id?: string | undefined;
3975
- }, {
3976
- matcher: string;
3977
- hooks: ({
3978
- type: "command";
3979
- command: string;
3980
- timeout?: number | undefined;
3981
- } | {
3982
- type: "http";
3983
- url: string;
3984
- timeout?: number | undefined;
3985
- headers?: Record<string, string> | undefined;
3986
- } | {
3987
- type: "prompt";
3988
- prompt: string;
3989
- model?: string | undefined;
3990
- } | {
3991
- type: "agent";
3992
- agent: string;
3993
- timeout?: number | undefined;
3994
- maxTurns?: number | undefined;
3995
- } | {
3996
- type: "guardrail";
3997
- guardrails?: string[] | undefined;
3998
- })[];
3999
- id?: string | undefined;
4000
- }>, "many">>;
3153
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3154
+ }, z.core.$strip>], "type">>;
3155
+ }, z.core.$strip>>>;
4001
3156
  PostCompact: z.ZodOptional<z.ZodArray<z.ZodObject<{
4002
- /**
4003
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
4004
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
4005
- * an id simply cannot be disabled from another layer.
4006
- */
4007
3157
  id: z.ZodOptional<z.ZodString>;
4008
3158
  matcher: z.ZodString;
4009
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3159
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4010
3160
  type: z.ZodLiteral<"command">;
4011
3161
  command: z.ZodString;
4012
3162
  timeout: z.ZodOptional<z.ZodNumber>;
4013
- }, "strip", z.ZodTypeAny, {
4014
- type: "command";
4015
- command: string;
4016
- timeout?: number | undefined;
4017
- }, {
4018
- type: "command";
4019
- command: string;
4020
- timeout?: number | undefined;
4021
- }>, z.ZodObject<{
3163
+ }, z.core.$strip>, z.ZodObject<{
4022
3164
  type: z.ZodLiteral<"http">;
4023
3165
  url: z.ZodString;
4024
3166
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4025
3167
  timeout: z.ZodOptional<z.ZodNumber>;
4026
- }, "strip", z.ZodTypeAny, {
4027
- type: "http";
4028
- url: string;
4029
- timeout?: number | undefined;
4030
- headers?: Record<string, string> | undefined;
4031
- }, {
4032
- type: "http";
4033
- url: string;
4034
- timeout?: number | undefined;
4035
- headers?: Record<string, string> | undefined;
4036
- }>, z.ZodObject<{
3168
+ }, z.core.$strip>, z.ZodObject<{
4037
3169
  type: z.ZodLiteral<"prompt">;
4038
3170
  prompt: z.ZodString;
4039
3171
  model: z.ZodOptional<z.ZodString>;
4040
- }, "strip", z.ZodTypeAny, {
4041
- type: "prompt";
4042
- prompt: string;
4043
- model?: string | undefined;
4044
- }, {
4045
- type: "prompt";
4046
- prompt: string;
4047
- model?: string | undefined;
4048
- }>, z.ZodObject<{
3172
+ }, z.core.$strip>, z.ZodObject<{
4049
3173
  type: z.ZodLiteral<"agent">;
4050
3174
  agent: z.ZodString;
4051
3175
  maxTurns: z.ZodOptional<z.ZodNumber>;
4052
3176
  timeout: z.ZodOptional<z.ZodNumber>;
4053
- }, "strip", z.ZodTypeAny, {
4054
- type: "agent";
4055
- agent: string;
4056
- timeout?: number | undefined;
4057
- maxTurns?: number | undefined;
4058
- }, {
4059
- type: "agent";
4060
- agent: string;
4061
- timeout?: number | undefined;
4062
- maxTurns?: number | undefined;
4063
- }>, z.ZodObject<{
3177
+ }, z.core.$strip>, z.ZodObject<{
4064
3178
  type: z.ZodLiteral<"guardrail">;
4065
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4066
- }, "strip", z.ZodTypeAny, {
4067
- type: "guardrail";
4068
- guardrails?: string[] | undefined;
4069
- }, {
4070
- type: "guardrail";
4071
- guardrails?: string[] | undefined;
4072
- }>]>, "many">;
4073
- }, "strip", z.ZodTypeAny, {
4074
- matcher: string;
4075
- hooks: ({
4076
- type: "command";
4077
- command: string;
4078
- timeout?: number | undefined;
4079
- } | {
4080
- type: "http";
4081
- url: string;
4082
- timeout?: number | undefined;
4083
- headers?: Record<string, string> | undefined;
4084
- } | {
4085
- type: "prompt";
4086
- prompt: string;
4087
- model?: string | undefined;
4088
- } | {
4089
- type: "agent";
4090
- agent: string;
4091
- timeout?: number | undefined;
4092
- maxTurns?: number | undefined;
4093
- } | {
4094
- type: "guardrail";
4095
- guardrails?: string[] | undefined;
4096
- })[];
4097
- id?: string | undefined;
4098
- }, {
4099
- matcher: string;
4100
- hooks: ({
4101
- type: "command";
4102
- command: string;
4103
- timeout?: number | undefined;
4104
- } | {
4105
- type: "http";
4106
- url: string;
4107
- timeout?: number | undefined;
4108
- headers?: Record<string, string> | undefined;
4109
- } | {
4110
- type: "prompt";
4111
- prompt: string;
4112
- model?: string | undefined;
4113
- } | {
4114
- type: "agent";
4115
- agent: string;
4116
- timeout?: number | undefined;
4117
- maxTurns?: number | undefined;
4118
- } | {
4119
- type: "guardrail";
4120
- guardrails?: string[] | undefined;
4121
- })[];
4122
- id?: string | undefined;
4123
- }>, "many">>;
3179
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3180
+ }, z.core.$strip>], "type">>;
3181
+ }, z.core.$strip>>>;
4124
3182
  UserPromptSubmit: z.ZodOptional<z.ZodArray<z.ZodObject<{
4125
- /**
4126
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
4127
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
4128
- * an id simply cannot be disabled from another layer.
4129
- */
4130
3183
  id: z.ZodOptional<z.ZodString>;
4131
3184
  matcher: z.ZodString;
4132
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3185
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4133
3186
  type: z.ZodLiteral<"command">;
4134
3187
  command: z.ZodString;
4135
3188
  timeout: z.ZodOptional<z.ZodNumber>;
4136
- }, "strip", z.ZodTypeAny, {
4137
- type: "command";
4138
- command: string;
4139
- timeout?: number | undefined;
4140
- }, {
4141
- type: "command";
4142
- command: string;
4143
- timeout?: number | undefined;
4144
- }>, z.ZodObject<{
3189
+ }, z.core.$strip>, z.ZodObject<{
4145
3190
  type: z.ZodLiteral<"http">;
4146
3191
  url: z.ZodString;
4147
3192
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4148
3193
  timeout: z.ZodOptional<z.ZodNumber>;
4149
- }, "strip", z.ZodTypeAny, {
4150
- type: "http";
4151
- url: string;
4152
- timeout?: number | undefined;
4153
- headers?: Record<string, string> | undefined;
4154
- }, {
4155
- type: "http";
4156
- url: string;
4157
- timeout?: number | undefined;
4158
- headers?: Record<string, string> | undefined;
4159
- }>, z.ZodObject<{
3194
+ }, z.core.$strip>, z.ZodObject<{
4160
3195
  type: z.ZodLiteral<"prompt">;
4161
3196
  prompt: z.ZodString;
4162
3197
  model: z.ZodOptional<z.ZodString>;
4163
- }, "strip", z.ZodTypeAny, {
4164
- type: "prompt";
4165
- prompt: string;
4166
- model?: string | undefined;
4167
- }, {
4168
- type: "prompt";
4169
- prompt: string;
4170
- model?: string | undefined;
4171
- }>, z.ZodObject<{
3198
+ }, z.core.$strip>, z.ZodObject<{
4172
3199
  type: z.ZodLiteral<"agent">;
4173
3200
  agent: z.ZodString;
4174
3201
  maxTurns: z.ZodOptional<z.ZodNumber>;
4175
3202
  timeout: z.ZodOptional<z.ZodNumber>;
4176
- }, "strip", z.ZodTypeAny, {
4177
- type: "agent";
4178
- agent: string;
4179
- timeout?: number | undefined;
4180
- maxTurns?: number | undefined;
4181
- }, {
4182
- type: "agent";
4183
- agent: string;
4184
- timeout?: number | undefined;
4185
- maxTurns?: number | undefined;
4186
- }>, z.ZodObject<{
3203
+ }, z.core.$strip>, z.ZodObject<{
4187
3204
  type: z.ZodLiteral<"guardrail">;
4188
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4189
- }, "strip", z.ZodTypeAny, {
4190
- type: "guardrail";
4191
- guardrails?: string[] | undefined;
4192
- }, {
4193
- type: "guardrail";
4194
- guardrails?: string[] | undefined;
4195
- }>]>, "many">;
4196
- }, "strip", z.ZodTypeAny, {
4197
- matcher: string;
4198
- hooks: ({
4199
- type: "command";
4200
- command: string;
4201
- timeout?: number | undefined;
4202
- } | {
4203
- type: "http";
4204
- url: string;
4205
- timeout?: number | undefined;
4206
- headers?: Record<string, string> | undefined;
4207
- } | {
4208
- type: "prompt";
4209
- prompt: string;
4210
- model?: string | undefined;
4211
- } | {
4212
- type: "agent";
4213
- agent: string;
4214
- timeout?: number | undefined;
4215
- maxTurns?: number | undefined;
4216
- } | {
4217
- type: "guardrail";
4218
- guardrails?: string[] | undefined;
4219
- })[];
4220
- id?: string | undefined;
4221
- }, {
4222
- matcher: string;
4223
- hooks: ({
4224
- type: "command";
4225
- command: string;
4226
- timeout?: number | undefined;
4227
- } | {
4228
- type: "http";
4229
- url: string;
4230
- timeout?: number | undefined;
4231
- headers?: Record<string, string> | undefined;
4232
- } | {
4233
- type: "prompt";
4234
- prompt: string;
4235
- model?: string | undefined;
4236
- } | {
4237
- type: "agent";
4238
- agent: string;
4239
- timeout?: number | undefined;
4240
- maxTurns?: number | undefined;
4241
- } | {
4242
- type: "guardrail";
4243
- guardrails?: string[] | undefined;
4244
- })[];
4245
- id?: string | undefined;
4246
- }>, "many">>;
3205
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3206
+ }, z.core.$strip>], "type">>;
3207
+ }, z.core.$strip>>>;
4247
3208
  SubagentStart: z.ZodOptional<z.ZodArray<z.ZodObject<{
4248
- /**
4249
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
4250
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
4251
- * an id simply cannot be disabled from another layer.
4252
- */
4253
3209
  id: z.ZodOptional<z.ZodString>;
4254
3210
  matcher: z.ZodString;
4255
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3211
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4256
3212
  type: z.ZodLiteral<"command">;
4257
3213
  command: z.ZodString;
4258
3214
  timeout: z.ZodOptional<z.ZodNumber>;
4259
- }, "strip", z.ZodTypeAny, {
4260
- type: "command";
4261
- command: string;
4262
- timeout?: number | undefined;
4263
- }, {
4264
- type: "command";
4265
- command: string;
4266
- timeout?: number | undefined;
4267
- }>, z.ZodObject<{
3215
+ }, z.core.$strip>, z.ZodObject<{
4268
3216
  type: z.ZodLiteral<"http">;
4269
3217
  url: z.ZodString;
4270
3218
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4271
3219
  timeout: z.ZodOptional<z.ZodNumber>;
4272
- }, "strip", z.ZodTypeAny, {
4273
- type: "http";
4274
- url: string;
4275
- timeout?: number | undefined;
4276
- headers?: Record<string, string> | undefined;
4277
- }, {
4278
- type: "http";
4279
- url: string;
4280
- timeout?: number | undefined;
4281
- headers?: Record<string, string> | undefined;
4282
- }>, z.ZodObject<{
3220
+ }, z.core.$strip>, z.ZodObject<{
4283
3221
  type: z.ZodLiteral<"prompt">;
4284
3222
  prompt: z.ZodString;
4285
3223
  model: z.ZodOptional<z.ZodString>;
4286
- }, "strip", z.ZodTypeAny, {
4287
- type: "prompt";
4288
- prompt: string;
4289
- model?: string | undefined;
4290
- }, {
4291
- type: "prompt";
4292
- prompt: string;
4293
- model?: string | undefined;
4294
- }>, z.ZodObject<{
3224
+ }, z.core.$strip>, z.ZodObject<{
4295
3225
  type: z.ZodLiteral<"agent">;
4296
3226
  agent: z.ZodString;
4297
3227
  maxTurns: z.ZodOptional<z.ZodNumber>;
4298
3228
  timeout: z.ZodOptional<z.ZodNumber>;
4299
- }, "strip", z.ZodTypeAny, {
4300
- type: "agent";
4301
- agent: string;
4302
- timeout?: number | undefined;
4303
- maxTurns?: number | undefined;
4304
- }, {
4305
- type: "agent";
4306
- agent: string;
4307
- timeout?: number | undefined;
4308
- maxTurns?: number | undefined;
4309
- }>, z.ZodObject<{
3229
+ }, z.core.$strip>, z.ZodObject<{
4310
3230
  type: z.ZodLiteral<"guardrail">;
4311
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4312
- }, "strip", z.ZodTypeAny, {
4313
- type: "guardrail";
4314
- guardrails?: string[] | undefined;
4315
- }, {
4316
- type: "guardrail";
4317
- guardrails?: string[] | undefined;
4318
- }>]>, "many">;
4319
- }, "strip", z.ZodTypeAny, {
4320
- matcher: string;
4321
- hooks: ({
4322
- type: "command";
4323
- command: string;
4324
- timeout?: number | undefined;
4325
- } | {
4326
- type: "http";
4327
- url: string;
4328
- timeout?: number | undefined;
4329
- headers?: Record<string, string> | undefined;
4330
- } | {
4331
- type: "prompt";
4332
- prompt: string;
4333
- model?: string | undefined;
4334
- } | {
4335
- type: "agent";
4336
- agent: string;
4337
- timeout?: number | undefined;
4338
- maxTurns?: number | undefined;
4339
- } | {
4340
- type: "guardrail";
4341
- guardrails?: string[] | undefined;
4342
- })[];
4343
- id?: string | undefined;
4344
- }, {
4345
- matcher: string;
4346
- hooks: ({
4347
- type: "command";
4348
- command: string;
4349
- timeout?: number | undefined;
4350
- } | {
4351
- type: "http";
4352
- url: string;
4353
- timeout?: number | undefined;
4354
- headers?: Record<string, string> | undefined;
4355
- } | {
4356
- type: "prompt";
4357
- prompt: string;
4358
- model?: string | undefined;
4359
- } | {
4360
- type: "agent";
4361
- agent: string;
4362
- timeout?: number | undefined;
4363
- maxTurns?: number | undefined;
4364
- } | {
4365
- type: "guardrail";
4366
- guardrails?: string[] | undefined;
4367
- })[];
4368
- id?: string | undefined;
4369
- }>, "many">>;
3231
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3232
+ }, z.core.$strip>], "type">>;
3233
+ }, z.core.$strip>>>;
4370
3234
  SubagentStop: z.ZodOptional<z.ZodArray<z.ZodObject<{
4371
- /**
4372
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
4373
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
4374
- * an id simply cannot be disabled from another layer.
4375
- */
4376
3235
  id: z.ZodOptional<z.ZodString>;
4377
3236
  matcher: z.ZodString;
4378
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3237
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4379
3238
  type: z.ZodLiteral<"command">;
4380
3239
  command: z.ZodString;
4381
3240
  timeout: z.ZodOptional<z.ZodNumber>;
4382
- }, "strip", z.ZodTypeAny, {
4383
- type: "command";
4384
- command: string;
4385
- timeout?: number | undefined;
4386
- }, {
4387
- type: "command";
4388
- command: string;
4389
- timeout?: number | undefined;
4390
- }>, z.ZodObject<{
3241
+ }, z.core.$strip>, z.ZodObject<{
4391
3242
  type: z.ZodLiteral<"http">;
4392
3243
  url: z.ZodString;
4393
3244
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4394
3245
  timeout: z.ZodOptional<z.ZodNumber>;
4395
- }, "strip", z.ZodTypeAny, {
4396
- type: "http";
4397
- url: string;
4398
- timeout?: number | undefined;
4399
- headers?: Record<string, string> | undefined;
4400
- }, {
4401
- type: "http";
4402
- url: string;
4403
- timeout?: number | undefined;
4404
- headers?: Record<string, string> | undefined;
4405
- }>, z.ZodObject<{
3246
+ }, z.core.$strip>, z.ZodObject<{
4406
3247
  type: z.ZodLiteral<"prompt">;
4407
3248
  prompt: z.ZodString;
4408
3249
  model: z.ZodOptional<z.ZodString>;
4409
- }, "strip", z.ZodTypeAny, {
4410
- type: "prompt";
4411
- prompt: string;
4412
- model?: string | undefined;
4413
- }, {
4414
- type: "prompt";
4415
- prompt: string;
4416
- model?: string | undefined;
4417
- }>, z.ZodObject<{
3250
+ }, z.core.$strip>, z.ZodObject<{
4418
3251
  type: z.ZodLiteral<"agent">;
4419
3252
  agent: z.ZodString;
4420
3253
  maxTurns: z.ZodOptional<z.ZodNumber>;
4421
3254
  timeout: z.ZodOptional<z.ZodNumber>;
4422
- }, "strip", z.ZodTypeAny, {
4423
- type: "agent";
4424
- agent: string;
4425
- timeout?: number | undefined;
4426
- maxTurns?: number | undefined;
4427
- }, {
4428
- type: "agent";
4429
- agent: string;
4430
- timeout?: number | undefined;
4431
- maxTurns?: number | undefined;
4432
- }>, z.ZodObject<{
3255
+ }, z.core.$strip>, z.ZodObject<{
4433
3256
  type: z.ZodLiteral<"guardrail">;
4434
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4435
- }, "strip", z.ZodTypeAny, {
4436
- type: "guardrail";
4437
- guardrails?: string[] | undefined;
4438
- }, {
4439
- type: "guardrail";
4440
- guardrails?: string[] | undefined;
4441
- }>]>, "many">;
4442
- }, "strip", z.ZodTypeAny, {
4443
- matcher: string;
4444
- hooks: ({
4445
- type: "command";
4446
- command: string;
4447
- timeout?: number | undefined;
4448
- } | {
4449
- type: "http";
4450
- url: string;
4451
- timeout?: number | undefined;
4452
- headers?: Record<string, string> | undefined;
4453
- } | {
4454
- type: "prompt";
4455
- prompt: string;
4456
- model?: string | undefined;
4457
- } | {
4458
- type: "agent";
4459
- agent: string;
4460
- timeout?: number | undefined;
4461
- maxTurns?: number | undefined;
4462
- } | {
4463
- type: "guardrail";
4464
- guardrails?: string[] | undefined;
4465
- })[];
4466
- id?: string | undefined;
4467
- }, {
4468
- matcher: string;
4469
- hooks: ({
4470
- type: "command";
4471
- command: string;
4472
- timeout?: number | undefined;
4473
- } | {
4474
- type: "http";
4475
- url: string;
4476
- timeout?: number | undefined;
4477
- headers?: Record<string, string> | undefined;
4478
- } | {
4479
- type: "prompt";
4480
- prompt: string;
4481
- model?: string | undefined;
4482
- } | {
4483
- type: "agent";
4484
- agent: string;
4485
- timeout?: number | undefined;
4486
- maxTurns?: number | undefined;
4487
- } | {
4488
- type: "guardrail";
4489
- guardrails?: string[] | undefined;
4490
- })[];
4491
- id?: string | undefined;
4492
- }>, "many">>;
3257
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3258
+ }, z.core.$strip>], "type">>;
3259
+ }, z.core.$strip>>>;
4493
3260
  WorktreeCreate: z.ZodOptional<z.ZodArray<z.ZodObject<{
4494
- /**
4495
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
4496
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
4497
- * an id simply cannot be disabled from another layer.
4498
- */
4499
3261
  id: z.ZodOptional<z.ZodString>;
4500
3262
  matcher: z.ZodString;
4501
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3263
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4502
3264
  type: z.ZodLiteral<"command">;
4503
3265
  command: z.ZodString;
4504
3266
  timeout: z.ZodOptional<z.ZodNumber>;
4505
- }, "strip", z.ZodTypeAny, {
4506
- type: "command";
4507
- command: string;
4508
- timeout?: number | undefined;
4509
- }, {
4510
- type: "command";
4511
- command: string;
4512
- timeout?: number | undefined;
4513
- }>, z.ZodObject<{
3267
+ }, z.core.$strip>, z.ZodObject<{
4514
3268
  type: z.ZodLiteral<"http">;
4515
3269
  url: z.ZodString;
4516
3270
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4517
3271
  timeout: z.ZodOptional<z.ZodNumber>;
4518
- }, "strip", z.ZodTypeAny, {
4519
- type: "http";
4520
- url: string;
4521
- timeout?: number | undefined;
4522
- headers?: Record<string, string> | undefined;
4523
- }, {
4524
- type: "http";
4525
- url: string;
4526
- timeout?: number | undefined;
4527
- headers?: Record<string, string> | undefined;
4528
- }>, z.ZodObject<{
3272
+ }, z.core.$strip>, z.ZodObject<{
4529
3273
  type: z.ZodLiteral<"prompt">;
4530
3274
  prompt: z.ZodString;
4531
3275
  model: z.ZodOptional<z.ZodString>;
4532
- }, "strip", z.ZodTypeAny, {
4533
- type: "prompt";
4534
- prompt: string;
4535
- model?: string | undefined;
4536
- }, {
4537
- type: "prompt";
4538
- prompt: string;
4539
- model?: string | undefined;
4540
- }>, z.ZodObject<{
3276
+ }, z.core.$strip>, z.ZodObject<{
4541
3277
  type: z.ZodLiteral<"agent">;
4542
3278
  agent: z.ZodString;
4543
3279
  maxTurns: z.ZodOptional<z.ZodNumber>;
4544
3280
  timeout: z.ZodOptional<z.ZodNumber>;
4545
- }, "strip", z.ZodTypeAny, {
4546
- type: "agent";
4547
- agent: string;
4548
- timeout?: number | undefined;
4549
- maxTurns?: number | undefined;
4550
- }, {
4551
- type: "agent";
4552
- agent: string;
4553
- timeout?: number | undefined;
4554
- maxTurns?: number | undefined;
4555
- }>, z.ZodObject<{
3281
+ }, z.core.$strip>, z.ZodObject<{
4556
3282
  type: z.ZodLiteral<"guardrail">;
4557
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4558
- }, "strip", z.ZodTypeAny, {
4559
- type: "guardrail";
4560
- guardrails?: string[] | undefined;
4561
- }, {
4562
- type: "guardrail";
4563
- guardrails?: string[] | undefined;
4564
- }>]>, "many">;
4565
- }, "strip", z.ZodTypeAny, {
4566
- matcher: string;
4567
- hooks: ({
4568
- type: "command";
4569
- command: string;
4570
- timeout?: number | undefined;
4571
- } | {
4572
- type: "http";
4573
- url: string;
4574
- timeout?: number | undefined;
4575
- headers?: Record<string, string> | undefined;
4576
- } | {
4577
- type: "prompt";
4578
- prompt: string;
4579
- model?: string | undefined;
4580
- } | {
4581
- type: "agent";
4582
- agent: string;
4583
- timeout?: number | undefined;
4584
- maxTurns?: number | undefined;
4585
- } | {
4586
- type: "guardrail";
4587
- guardrails?: string[] | undefined;
4588
- })[];
4589
- id?: string | undefined;
4590
- }, {
4591
- matcher: string;
4592
- hooks: ({
4593
- type: "command";
4594
- command: string;
4595
- timeout?: number | undefined;
4596
- } | {
4597
- type: "http";
4598
- url: string;
4599
- timeout?: number | undefined;
4600
- headers?: Record<string, string> | undefined;
4601
- } | {
4602
- type: "prompt";
4603
- prompt: string;
4604
- model?: string | undefined;
4605
- } | {
4606
- type: "agent";
4607
- agent: string;
4608
- timeout?: number | undefined;
4609
- maxTurns?: number | undefined;
4610
- } | {
4611
- type: "guardrail";
4612
- guardrails?: string[] | undefined;
4613
- })[];
4614
- id?: string | undefined;
4615
- }>, "many">>;
3283
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3284
+ }, z.core.$strip>], "type">>;
3285
+ }, z.core.$strip>>>;
4616
3286
  WorktreeRemove: z.ZodOptional<z.ZodArray<z.ZodObject<{
4617
- /**
4618
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
4619
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
4620
- * an id simply cannot be disabled from another layer.
4621
- */
4622
3287
  id: z.ZodOptional<z.ZodString>;
4623
3288
  matcher: z.ZodString;
4624
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3289
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4625
3290
  type: z.ZodLiteral<"command">;
4626
3291
  command: z.ZodString;
4627
3292
  timeout: z.ZodOptional<z.ZodNumber>;
4628
- }, "strip", z.ZodTypeAny, {
4629
- type: "command";
4630
- command: string;
4631
- timeout?: number | undefined;
4632
- }, {
4633
- type: "command";
4634
- command: string;
4635
- timeout?: number | undefined;
4636
- }>, z.ZodObject<{
3293
+ }, z.core.$strip>, z.ZodObject<{
4637
3294
  type: z.ZodLiteral<"http">;
4638
3295
  url: z.ZodString;
4639
3296
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4640
3297
  timeout: z.ZodOptional<z.ZodNumber>;
4641
- }, "strip", z.ZodTypeAny, {
4642
- type: "http";
4643
- url: string;
4644
- timeout?: number | undefined;
4645
- headers?: Record<string, string> | undefined;
4646
- }, {
4647
- type: "http";
4648
- url: string;
4649
- timeout?: number | undefined;
4650
- headers?: Record<string, string> | undefined;
4651
- }>, z.ZodObject<{
3298
+ }, z.core.$strip>, z.ZodObject<{
4652
3299
  type: z.ZodLiteral<"prompt">;
4653
3300
  prompt: z.ZodString;
4654
3301
  model: z.ZodOptional<z.ZodString>;
4655
- }, "strip", z.ZodTypeAny, {
4656
- type: "prompt";
4657
- prompt: string;
4658
- model?: string | undefined;
4659
- }, {
4660
- type: "prompt";
4661
- prompt: string;
4662
- model?: string | undefined;
4663
- }>, z.ZodObject<{
3302
+ }, z.core.$strip>, z.ZodObject<{
4664
3303
  type: z.ZodLiteral<"agent">;
4665
3304
  agent: z.ZodString;
4666
3305
  maxTurns: z.ZodOptional<z.ZodNumber>;
4667
3306
  timeout: z.ZodOptional<z.ZodNumber>;
4668
- }, "strip", z.ZodTypeAny, {
4669
- type: "agent";
4670
- agent: string;
4671
- timeout?: number | undefined;
4672
- maxTurns?: number | undefined;
4673
- }, {
4674
- type: "agent";
4675
- agent: string;
4676
- timeout?: number | undefined;
4677
- maxTurns?: number | undefined;
4678
- }>, z.ZodObject<{
3307
+ }, z.core.$strip>, z.ZodObject<{
4679
3308
  type: z.ZodLiteral<"guardrail">;
4680
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4681
- }, "strip", z.ZodTypeAny, {
4682
- type: "guardrail";
4683
- guardrails?: string[] | undefined;
4684
- }, {
4685
- type: "guardrail";
4686
- guardrails?: string[] | undefined;
4687
- }>]>, "many">;
4688
- }, "strip", z.ZodTypeAny, {
4689
- matcher: string;
4690
- hooks: ({
4691
- type: "command";
4692
- command: string;
4693
- timeout?: number | undefined;
4694
- } | {
4695
- type: "http";
4696
- url: string;
4697
- timeout?: number | undefined;
4698
- headers?: Record<string, string> | undefined;
4699
- } | {
4700
- type: "prompt";
4701
- prompt: string;
4702
- model?: string | undefined;
4703
- } | {
4704
- type: "agent";
4705
- agent: string;
4706
- timeout?: number | undefined;
4707
- maxTurns?: number | undefined;
4708
- } | {
4709
- type: "guardrail";
4710
- guardrails?: string[] | undefined;
4711
- })[];
4712
- id?: string | undefined;
4713
- }, {
4714
- matcher: string;
4715
- hooks: ({
4716
- type: "command";
4717
- command: string;
4718
- timeout?: number | undefined;
4719
- } | {
4720
- type: "http";
4721
- url: string;
4722
- timeout?: number | undefined;
4723
- headers?: Record<string, string> | undefined;
4724
- } | {
4725
- type: "prompt";
4726
- prompt: string;
4727
- model?: string | undefined;
4728
- } | {
4729
- type: "agent";
4730
- agent: string;
4731
- timeout?: number | undefined;
4732
- maxTurns?: number | undefined;
4733
- } | {
4734
- type: "guardrail";
4735
- guardrails?: string[] | undefined;
4736
- })[];
4737
- id?: string | undefined;
4738
- }>, "many">>;
3309
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3310
+ }, z.core.$strip>], "type">>;
3311
+ }, z.core.$strip>>>;
4739
3312
  PreModelCall: z.ZodOptional<z.ZodArray<z.ZodObject<{
4740
- /**
4741
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
4742
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
4743
- * an id simply cannot be disabled from another layer.
4744
- */
4745
3313
  id: z.ZodOptional<z.ZodString>;
4746
3314
  matcher: z.ZodString;
4747
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3315
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4748
3316
  type: z.ZodLiteral<"command">;
4749
3317
  command: z.ZodString;
4750
3318
  timeout: z.ZodOptional<z.ZodNumber>;
4751
- }, "strip", z.ZodTypeAny, {
4752
- type: "command";
4753
- command: string;
4754
- timeout?: number | undefined;
4755
- }, {
4756
- type: "command";
4757
- command: string;
4758
- timeout?: number | undefined;
4759
- }>, z.ZodObject<{
3319
+ }, z.core.$strip>, z.ZodObject<{
4760
3320
  type: z.ZodLiteral<"http">;
4761
3321
  url: z.ZodString;
4762
3322
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4763
3323
  timeout: z.ZodOptional<z.ZodNumber>;
4764
- }, "strip", z.ZodTypeAny, {
4765
- type: "http";
4766
- url: string;
4767
- timeout?: number | undefined;
4768
- headers?: Record<string, string> | undefined;
4769
- }, {
4770
- type: "http";
4771
- url: string;
4772
- timeout?: number | undefined;
4773
- headers?: Record<string, string> | undefined;
4774
- }>, z.ZodObject<{
3324
+ }, z.core.$strip>, z.ZodObject<{
4775
3325
  type: z.ZodLiteral<"prompt">;
4776
3326
  prompt: z.ZodString;
4777
3327
  model: z.ZodOptional<z.ZodString>;
4778
- }, "strip", z.ZodTypeAny, {
4779
- type: "prompt";
4780
- prompt: string;
4781
- model?: string | undefined;
4782
- }, {
4783
- type: "prompt";
4784
- prompt: string;
4785
- model?: string | undefined;
4786
- }>, z.ZodObject<{
3328
+ }, z.core.$strip>, z.ZodObject<{
4787
3329
  type: z.ZodLiteral<"agent">;
4788
3330
  agent: z.ZodString;
4789
3331
  maxTurns: z.ZodOptional<z.ZodNumber>;
4790
3332
  timeout: z.ZodOptional<z.ZodNumber>;
4791
- }, "strip", z.ZodTypeAny, {
4792
- type: "agent";
4793
- agent: string;
4794
- timeout?: number | undefined;
4795
- maxTurns?: number | undefined;
4796
- }, {
4797
- type: "agent";
4798
- agent: string;
4799
- timeout?: number | undefined;
4800
- maxTurns?: number | undefined;
4801
- }>, z.ZodObject<{
3333
+ }, z.core.$strip>, z.ZodObject<{
4802
3334
  type: z.ZodLiteral<"guardrail">;
4803
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4804
- }, "strip", z.ZodTypeAny, {
4805
- type: "guardrail";
4806
- guardrails?: string[] | undefined;
4807
- }, {
4808
- type: "guardrail";
4809
- guardrails?: string[] | undefined;
4810
- }>]>, "many">;
4811
- }, "strip", z.ZodTypeAny, {
4812
- matcher: string;
4813
- hooks: ({
4814
- type: "command";
4815
- command: string;
4816
- timeout?: number | undefined;
4817
- } | {
4818
- type: "http";
4819
- url: string;
4820
- timeout?: number | undefined;
4821
- headers?: Record<string, string> | undefined;
4822
- } | {
4823
- type: "prompt";
4824
- prompt: string;
4825
- model?: string | undefined;
4826
- } | {
4827
- type: "agent";
4828
- agent: string;
4829
- timeout?: number | undefined;
4830
- maxTurns?: number | undefined;
4831
- } | {
4832
- type: "guardrail";
4833
- guardrails?: string[] | undefined;
4834
- })[];
4835
- id?: string | undefined;
4836
- }, {
4837
- matcher: string;
4838
- hooks: ({
4839
- type: "command";
4840
- command: string;
4841
- timeout?: number | undefined;
4842
- } | {
4843
- type: "http";
4844
- url: string;
4845
- timeout?: number | undefined;
4846
- headers?: Record<string, string> | undefined;
4847
- } | {
4848
- type: "prompt";
4849
- prompt: string;
4850
- model?: string | undefined;
4851
- } | {
4852
- type: "agent";
4853
- agent: string;
4854
- timeout?: number | undefined;
4855
- maxTurns?: number | undefined;
4856
- } | {
4857
- type: "guardrail";
4858
- guardrails?: string[] | undefined;
4859
- })[];
4860
- id?: string | undefined;
4861
- }>, "many">>;
3335
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3336
+ }, z.core.$strip>], "type">>;
3337
+ }, z.core.$strip>>>;
4862
3338
  PostModelCall: z.ZodOptional<z.ZodArray<z.ZodObject<{
4863
- /**
4864
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
4865
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
4866
- * an id simply cannot be disabled from another layer.
4867
- */
4868
3339
  id: z.ZodOptional<z.ZodString>;
4869
3340
  matcher: z.ZodString;
4870
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3341
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4871
3342
  type: z.ZodLiteral<"command">;
4872
3343
  command: z.ZodString;
4873
3344
  timeout: z.ZodOptional<z.ZodNumber>;
4874
- }, "strip", z.ZodTypeAny, {
4875
- type: "command";
4876
- command: string;
4877
- timeout?: number | undefined;
4878
- }, {
4879
- type: "command";
4880
- command: string;
4881
- timeout?: number | undefined;
4882
- }>, z.ZodObject<{
3345
+ }, z.core.$strip>, z.ZodObject<{
4883
3346
  type: z.ZodLiteral<"http">;
4884
3347
  url: z.ZodString;
4885
3348
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4886
3349
  timeout: z.ZodOptional<z.ZodNumber>;
4887
- }, "strip", z.ZodTypeAny, {
4888
- type: "http";
4889
- url: string;
4890
- timeout?: number | undefined;
4891
- headers?: Record<string, string> | undefined;
4892
- }, {
4893
- type: "http";
4894
- url: string;
4895
- timeout?: number | undefined;
4896
- headers?: Record<string, string> | undefined;
4897
- }>, z.ZodObject<{
3350
+ }, z.core.$strip>, z.ZodObject<{
4898
3351
  type: z.ZodLiteral<"prompt">;
4899
3352
  prompt: z.ZodString;
4900
3353
  model: z.ZodOptional<z.ZodString>;
4901
- }, "strip", z.ZodTypeAny, {
4902
- type: "prompt";
4903
- prompt: string;
4904
- model?: string | undefined;
4905
- }, {
4906
- type: "prompt";
4907
- prompt: string;
4908
- model?: string | undefined;
4909
- }>, z.ZodObject<{
3354
+ }, z.core.$strip>, z.ZodObject<{
4910
3355
  type: z.ZodLiteral<"agent">;
4911
3356
  agent: z.ZodString;
4912
3357
  maxTurns: z.ZodOptional<z.ZodNumber>;
4913
3358
  timeout: z.ZodOptional<z.ZodNumber>;
4914
- }, "strip", z.ZodTypeAny, {
4915
- type: "agent";
4916
- agent: string;
4917
- timeout?: number | undefined;
4918
- maxTurns?: number | undefined;
4919
- }, {
4920
- type: "agent";
4921
- agent: string;
4922
- timeout?: number | undefined;
4923
- maxTurns?: number | undefined;
4924
- }>, z.ZodObject<{
3359
+ }, z.core.$strip>, z.ZodObject<{
4925
3360
  type: z.ZodLiteral<"guardrail">;
4926
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4927
- }, "strip", z.ZodTypeAny, {
4928
- type: "guardrail";
4929
- guardrails?: string[] | undefined;
4930
- }, {
4931
- type: "guardrail";
4932
- guardrails?: string[] | undefined;
4933
- }>]>, "many">;
4934
- }, "strip", z.ZodTypeAny, {
4935
- matcher: string;
4936
- hooks: ({
4937
- type: "command";
4938
- command: string;
4939
- timeout?: number | undefined;
4940
- } | {
4941
- type: "http";
4942
- url: string;
4943
- timeout?: number | undefined;
4944
- headers?: Record<string, string> | undefined;
4945
- } | {
4946
- type: "prompt";
4947
- prompt: string;
4948
- model?: string | undefined;
4949
- } | {
4950
- type: "agent";
4951
- agent: string;
4952
- timeout?: number | undefined;
4953
- maxTurns?: number | undefined;
4954
- } | {
4955
- type: "guardrail";
4956
- guardrails?: string[] | undefined;
4957
- })[];
4958
- id?: string | undefined;
4959
- }, {
4960
- matcher: string;
4961
- hooks: ({
4962
- type: "command";
4963
- command: string;
4964
- timeout?: number | undefined;
4965
- } | {
4966
- type: "http";
4967
- url: string;
4968
- timeout?: number | undefined;
4969
- headers?: Record<string, string> | undefined;
4970
- } | {
4971
- type: "prompt";
4972
- prompt: string;
4973
- model?: string | undefined;
4974
- } | {
4975
- type: "agent";
4976
- agent: string;
4977
- timeout?: number | undefined;
4978
- maxTurns?: number | undefined;
4979
- } | {
4980
- type: "guardrail";
4981
- guardrails?: string[] | undefined;
4982
- })[];
4983
- id?: string | undefined;
4984
- }>, "many">>;
3361
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3362
+ }, z.core.$strip>], "type">>;
3363
+ }, z.core.$strip>>>;
4985
3364
  PermissionDecision: z.ZodOptional<z.ZodArray<z.ZodObject<{
4986
- /**
4987
- * Optional identity, so a hook group can be REFERRED TO — which is what `disabledHooks` needs
4988
- * (issue #2320). Optional so every settings file already in the wild stays valid; a group without
4989
- * an id simply cannot be disabled from another layer.
4990
- */
4991
3365
  id: z.ZodOptional<z.ZodString>;
4992
3366
  matcher: z.ZodString;
4993
- hooks: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3367
+ hooks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4994
3368
  type: z.ZodLiteral<"command">;
4995
3369
  command: z.ZodString;
4996
3370
  timeout: z.ZodOptional<z.ZodNumber>;
4997
- }, "strip", z.ZodTypeAny, {
4998
- type: "command";
4999
- command: string;
5000
- timeout?: number | undefined;
5001
- }, {
5002
- type: "command";
5003
- command: string;
5004
- timeout?: number | undefined;
5005
- }>, z.ZodObject<{
3371
+ }, z.core.$strip>, z.ZodObject<{
5006
3372
  type: z.ZodLiteral<"http">;
5007
3373
  url: z.ZodString;
5008
3374
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5009
3375
  timeout: z.ZodOptional<z.ZodNumber>;
5010
- }, "strip", z.ZodTypeAny, {
5011
- type: "http";
5012
- url: string;
5013
- timeout?: number | undefined;
5014
- headers?: Record<string, string> | undefined;
5015
- }, {
5016
- type: "http";
5017
- url: string;
5018
- timeout?: number | undefined;
5019
- headers?: Record<string, string> | undefined;
5020
- }>, z.ZodObject<{
3376
+ }, z.core.$strip>, z.ZodObject<{
5021
3377
  type: z.ZodLiteral<"prompt">;
5022
3378
  prompt: z.ZodString;
5023
3379
  model: z.ZodOptional<z.ZodString>;
5024
- }, "strip", z.ZodTypeAny, {
5025
- type: "prompt";
5026
- prompt: string;
5027
- model?: string | undefined;
5028
- }, {
5029
- type: "prompt";
5030
- prompt: string;
5031
- model?: string | undefined;
5032
- }>, z.ZodObject<{
3380
+ }, z.core.$strip>, z.ZodObject<{
5033
3381
  type: z.ZodLiteral<"agent">;
5034
3382
  agent: z.ZodString;
5035
3383
  maxTurns: z.ZodOptional<z.ZodNumber>;
5036
3384
  timeout: z.ZodOptional<z.ZodNumber>;
5037
- }, "strip", z.ZodTypeAny, {
5038
- type: "agent";
5039
- agent: string;
5040
- timeout?: number | undefined;
5041
- maxTurns?: number | undefined;
5042
- }, {
5043
- type: "agent";
5044
- agent: string;
5045
- timeout?: number | undefined;
5046
- maxTurns?: number | undefined;
5047
- }>, z.ZodObject<{
3385
+ }, z.core.$strip>, z.ZodObject<{
5048
3386
  type: z.ZodLiteral<"guardrail">;
5049
- guardrails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5050
- }, "strip", z.ZodTypeAny, {
5051
- type: "guardrail";
5052
- guardrails?: string[] | undefined;
5053
- }, {
5054
- type: "guardrail";
5055
- guardrails?: string[] | undefined;
5056
- }>]>, "many">;
5057
- }, "strip", z.ZodTypeAny, {
5058
- matcher: string;
5059
- hooks: ({
5060
- type: "command";
5061
- command: string;
5062
- timeout?: number | undefined;
5063
- } | {
5064
- type: "http";
5065
- url: string;
5066
- timeout?: number | undefined;
5067
- headers?: Record<string, string> | undefined;
5068
- } | {
5069
- type: "prompt";
5070
- prompt: string;
5071
- model?: string | undefined;
5072
- } | {
5073
- type: "agent";
5074
- agent: string;
5075
- timeout?: number | undefined;
5076
- maxTurns?: number | undefined;
5077
- } | {
5078
- type: "guardrail";
5079
- guardrails?: string[] | undefined;
5080
- })[];
5081
- id?: string | undefined;
5082
- }, {
5083
- matcher: string;
5084
- hooks: ({
5085
- type: "command";
5086
- command: string;
5087
- timeout?: number | undefined;
5088
- } | {
5089
- type: "http";
5090
- url: string;
5091
- timeout?: number | undefined;
5092
- headers?: Record<string, string> | undefined;
5093
- } | {
5094
- type: "prompt";
5095
- prompt: string;
5096
- model?: string | undefined;
5097
- } | {
5098
- type: "agent";
5099
- agent: string;
5100
- timeout?: number | undefined;
5101
- maxTurns?: number | undefined;
5102
- } | {
5103
- type: "guardrail";
5104
- guardrails?: string[] | undefined;
5105
- })[];
5106
- id?: string | undefined;
5107
- }>, "many">>;
5108
- }, "strip", z.ZodTypeAny, {
5109
- PreToolUse?: {
5110
- matcher: string;
5111
- hooks: ({
5112
- type: "command";
5113
- command: string;
5114
- timeout?: number | undefined;
5115
- } | {
5116
- type: "http";
5117
- url: string;
5118
- timeout?: number | undefined;
5119
- headers?: Record<string, string> | undefined;
5120
- } | {
5121
- type: "prompt";
5122
- prompt: string;
5123
- model?: string | undefined;
5124
- } | {
5125
- type: "agent";
5126
- agent: string;
5127
- timeout?: number | undefined;
5128
- maxTurns?: number | undefined;
5129
- } | {
5130
- type: "guardrail";
5131
- guardrails?: string[] | undefined;
5132
- })[];
5133
- id?: string | undefined;
5134
- }[] | undefined;
5135
- PostToolUse?: {
5136
- matcher: string;
5137
- hooks: ({
5138
- type: "command";
5139
- command: string;
5140
- timeout?: number | undefined;
5141
- } | {
5142
- type: "http";
5143
- url: string;
5144
- timeout?: number | undefined;
5145
- headers?: Record<string, string> | undefined;
5146
- } | {
5147
- type: "prompt";
5148
- prompt: string;
5149
- model?: string | undefined;
5150
- } | {
5151
- type: "agent";
5152
- agent: string;
5153
- timeout?: number | undefined;
5154
- maxTurns?: number | undefined;
5155
- } | {
5156
- type: "guardrail";
5157
- guardrails?: string[] | undefined;
5158
- })[];
5159
- id?: string | undefined;
5160
- }[] | undefined;
5161
- SessionStart?: {
5162
- matcher: string;
5163
- hooks: ({
5164
- type: "command";
5165
- command: string;
5166
- timeout?: number | undefined;
5167
- } | {
5168
- type: "http";
5169
- url: string;
5170
- timeout?: number | undefined;
5171
- headers?: Record<string, string> | undefined;
5172
- } | {
5173
- type: "prompt";
5174
- prompt: string;
5175
- model?: string | undefined;
5176
- } | {
5177
- type: "agent";
5178
- agent: string;
5179
- timeout?: number | undefined;
5180
- maxTurns?: number | undefined;
5181
- } | {
5182
- type: "guardrail";
5183
- guardrails?: string[] | undefined;
5184
- })[];
5185
- id?: string | undefined;
5186
- }[] | undefined;
5187
- SessionEnd?: {
5188
- matcher: string;
5189
- hooks: ({
5190
- type: "command";
5191
- command: string;
5192
- timeout?: number | undefined;
5193
- } | {
5194
- type: "http";
5195
- url: string;
5196
- timeout?: number | undefined;
5197
- headers?: Record<string, string> | undefined;
5198
- } | {
5199
- type: "prompt";
5200
- prompt: string;
5201
- model?: string | undefined;
5202
- } | {
5203
- type: "agent";
5204
- agent: string;
5205
- timeout?: number | undefined;
5206
- maxTurns?: number | undefined;
5207
- } | {
5208
- type: "guardrail";
5209
- guardrails?: string[] | undefined;
5210
- })[];
5211
- id?: string | undefined;
5212
- }[] | undefined;
5213
- Stop?: {
5214
- matcher: string;
5215
- hooks: ({
5216
- type: "command";
5217
- command: string;
5218
- timeout?: number | undefined;
5219
- } | {
5220
- type: "http";
5221
- url: string;
5222
- timeout?: number | undefined;
5223
- headers?: Record<string, string> | undefined;
5224
- } | {
5225
- type: "prompt";
5226
- prompt: string;
5227
- model?: string | undefined;
5228
- } | {
5229
- type: "agent";
5230
- agent: string;
5231
- timeout?: number | undefined;
5232
- maxTurns?: number | undefined;
5233
- } | {
5234
- type: "guardrail";
5235
- guardrails?: string[] | undefined;
5236
- })[];
5237
- id?: string | undefined;
5238
- }[] | undefined;
5239
- StopFailure?: {
5240
- matcher: string;
5241
- hooks: ({
5242
- type: "command";
5243
- command: string;
5244
- timeout?: number | undefined;
5245
- } | {
5246
- type: "http";
5247
- url: string;
5248
- timeout?: number | undefined;
5249
- headers?: Record<string, string> | undefined;
5250
- } | {
5251
- type: "prompt";
5252
- prompt: string;
5253
- model?: string | undefined;
5254
- } | {
5255
- type: "agent";
5256
- agent: string;
5257
- timeout?: number | undefined;
5258
- maxTurns?: number | undefined;
5259
- } | {
5260
- type: "guardrail";
5261
- guardrails?: string[] | undefined;
5262
- })[];
5263
- id?: string | undefined;
5264
- }[] | undefined;
5265
- PreCompact?: {
5266
- matcher: string;
5267
- hooks: ({
5268
- type: "command";
5269
- command: string;
5270
- timeout?: number | undefined;
5271
- } | {
5272
- type: "http";
5273
- url: string;
5274
- timeout?: number | undefined;
5275
- headers?: Record<string, string> | undefined;
5276
- } | {
5277
- type: "prompt";
5278
- prompt: string;
5279
- model?: string | undefined;
5280
- } | {
5281
- type: "agent";
5282
- agent: string;
5283
- timeout?: number | undefined;
5284
- maxTurns?: number | undefined;
5285
- } | {
5286
- type: "guardrail";
5287
- guardrails?: string[] | undefined;
5288
- })[];
5289
- id?: string | undefined;
5290
- }[] | undefined;
5291
- PostCompact?: {
5292
- matcher: string;
5293
- hooks: ({
5294
- type: "command";
5295
- command: string;
5296
- timeout?: number | undefined;
5297
- } | {
5298
- type: "http";
5299
- url: string;
5300
- timeout?: number | undefined;
5301
- headers?: Record<string, string> | undefined;
5302
- } | {
5303
- type: "prompt";
5304
- prompt: string;
5305
- model?: string | undefined;
5306
- } | {
5307
- type: "agent";
5308
- agent: string;
5309
- timeout?: number | undefined;
5310
- maxTurns?: number | undefined;
5311
- } | {
5312
- type: "guardrail";
5313
- guardrails?: string[] | undefined;
5314
- })[];
5315
- id?: string | undefined;
5316
- }[] | undefined;
5317
- UserPromptSubmit?: {
5318
- matcher: string;
5319
- hooks: ({
5320
- type: "command";
5321
- command: string;
5322
- timeout?: number | undefined;
5323
- } | {
5324
- type: "http";
5325
- url: string;
5326
- timeout?: number | undefined;
5327
- headers?: Record<string, string> | undefined;
5328
- } | {
5329
- type: "prompt";
5330
- prompt: string;
5331
- model?: string | undefined;
5332
- } | {
5333
- type: "agent";
5334
- agent: string;
5335
- timeout?: number | undefined;
5336
- maxTurns?: number | undefined;
5337
- } | {
5338
- type: "guardrail";
5339
- guardrails?: string[] | undefined;
5340
- })[];
5341
- id?: string | undefined;
5342
- }[] | undefined;
5343
- SubagentStart?: {
5344
- matcher: string;
5345
- hooks: ({
5346
- type: "command";
5347
- command: string;
5348
- timeout?: number | undefined;
5349
- } | {
5350
- type: "http";
5351
- url: string;
5352
- timeout?: number | undefined;
5353
- headers?: Record<string, string> | undefined;
5354
- } | {
5355
- type: "prompt";
5356
- prompt: string;
5357
- model?: string | undefined;
5358
- } | {
5359
- type: "agent";
5360
- agent: string;
5361
- timeout?: number | undefined;
5362
- maxTurns?: number | undefined;
5363
- } | {
5364
- type: "guardrail";
5365
- guardrails?: string[] | undefined;
5366
- })[];
5367
- id?: string | undefined;
5368
- }[] | undefined;
5369
- SubagentStop?: {
5370
- matcher: string;
5371
- hooks: ({
5372
- type: "command";
5373
- command: string;
5374
- timeout?: number | undefined;
5375
- } | {
5376
- type: "http";
5377
- url: string;
5378
- timeout?: number | undefined;
5379
- headers?: Record<string, string> | undefined;
5380
- } | {
5381
- type: "prompt";
5382
- prompt: string;
5383
- model?: string | undefined;
5384
- } | {
5385
- type: "agent";
5386
- agent: string;
5387
- timeout?: number | undefined;
5388
- maxTurns?: number | undefined;
5389
- } | {
5390
- type: "guardrail";
5391
- guardrails?: string[] | undefined;
5392
- })[];
5393
- id?: string | undefined;
5394
- }[] | undefined;
5395
- WorktreeCreate?: {
5396
- matcher: string;
5397
- hooks: ({
5398
- type: "command";
5399
- command: string;
5400
- timeout?: number | undefined;
5401
- } | {
5402
- type: "http";
5403
- url: string;
5404
- timeout?: number | undefined;
5405
- headers?: Record<string, string> | undefined;
5406
- } | {
5407
- type: "prompt";
5408
- prompt: string;
5409
- model?: string | undefined;
5410
- } | {
5411
- type: "agent";
5412
- agent: string;
5413
- timeout?: number | undefined;
5414
- maxTurns?: number | undefined;
5415
- } | {
5416
- type: "guardrail";
5417
- guardrails?: string[] | undefined;
5418
- })[];
5419
- id?: string | undefined;
5420
- }[] | undefined;
5421
- WorktreeRemove?: {
5422
- matcher: string;
5423
- hooks: ({
5424
- type: "command";
5425
- command: string;
5426
- timeout?: number | undefined;
5427
- } | {
5428
- type: "http";
5429
- url: string;
5430
- timeout?: number | undefined;
5431
- headers?: Record<string, string> | undefined;
5432
- } | {
5433
- type: "prompt";
5434
- prompt: string;
5435
- model?: string | undefined;
5436
- } | {
5437
- type: "agent";
5438
- agent: string;
5439
- timeout?: number | undefined;
5440
- maxTurns?: number | undefined;
5441
- } | {
5442
- type: "guardrail";
5443
- guardrails?: string[] | undefined;
5444
- })[];
5445
- id?: string | undefined;
5446
- }[] | undefined;
5447
- PreModelCall?: {
5448
- matcher: string;
5449
- hooks: ({
5450
- type: "command";
5451
- command: string;
5452
- timeout?: number | undefined;
5453
- } | {
5454
- type: "http";
5455
- url: string;
5456
- timeout?: number | undefined;
5457
- headers?: Record<string, string> | undefined;
5458
- } | {
5459
- type: "prompt";
5460
- prompt: string;
5461
- model?: string | undefined;
5462
- } | {
5463
- type: "agent";
5464
- agent: string;
5465
- timeout?: number | undefined;
5466
- maxTurns?: number | undefined;
5467
- } | {
5468
- type: "guardrail";
5469
- guardrails?: string[] | undefined;
5470
- })[];
5471
- id?: string | undefined;
5472
- }[] | undefined;
5473
- PostModelCall?: {
5474
- matcher: string;
5475
- hooks: ({
5476
- type: "command";
5477
- command: string;
5478
- timeout?: number | undefined;
5479
- } | {
5480
- type: "http";
5481
- url: string;
5482
- timeout?: number | undefined;
5483
- headers?: Record<string, string> | undefined;
5484
- } | {
5485
- type: "prompt";
5486
- prompt: string;
5487
- model?: string | undefined;
5488
- } | {
5489
- type: "agent";
5490
- agent: string;
5491
- timeout?: number | undefined;
5492
- maxTurns?: number | undefined;
5493
- } | {
5494
- type: "guardrail";
5495
- guardrails?: string[] | undefined;
5496
- })[];
5497
- id?: string | undefined;
5498
- }[] | undefined;
5499
- PermissionDecision?: {
5500
- matcher: string;
5501
- hooks: ({
5502
- type: "command";
5503
- command: string;
5504
- timeout?: number | undefined;
5505
- } | {
5506
- type: "http";
5507
- url: string;
5508
- timeout?: number | undefined;
5509
- headers?: Record<string, string> | undefined;
5510
- } | {
5511
- type: "prompt";
5512
- prompt: string;
5513
- model?: string | undefined;
5514
- } | {
5515
- type: "agent";
5516
- agent: string;
5517
- timeout?: number | undefined;
5518
- maxTurns?: number | undefined;
5519
- } | {
5520
- type: "guardrail";
5521
- guardrails?: string[] | undefined;
5522
- })[];
5523
- id?: string | undefined;
5524
- }[] | undefined;
5525
- }, {
5526
- PreToolUse?: {
5527
- matcher: string;
5528
- hooks: ({
5529
- type: "command";
5530
- command: string;
5531
- timeout?: number | undefined;
5532
- } | {
5533
- type: "http";
5534
- url: string;
5535
- timeout?: number | undefined;
5536
- headers?: Record<string, string> | undefined;
5537
- } | {
5538
- type: "prompt";
5539
- prompt: string;
5540
- model?: string | undefined;
5541
- } | {
5542
- type: "agent";
5543
- agent: string;
5544
- timeout?: number | undefined;
5545
- maxTurns?: number | undefined;
5546
- } | {
5547
- type: "guardrail";
5548
- guardrails?: string[] | undefined;
5549
- })[];
5550
- id?: string | undefined;
5551
- }[] | undefined;
5552
- PostToolUse?: {
5553
- matcher: string;
5554
- hooks: ({
5555
- type: "command";
5556
- command: string;
5557
- timeout?: number | undefined;
5558
- } | {
5559
- type: "http";
5560
- url: string;
5561
- timeout?: number | undefined;
5562
- headers?: Record<string, string> | undefined;
5563
- } | {
5564
- type: "prompt";
5565
- prompt: string;
5566
- model?: string | undefined;
5567
- } | {
5568
- type: "agent";
5569
- agent: string;
5570
- timeout?: number | undefined;
5571
- maxTurns?: number | undefined;
5572
- } | {
5573
- type: "guardrail";
5574
- guardrails?: string[] | undefined;
5575
- })[];
5576
- id?: string | undefined;
5577
- }[] | undefined;
5578
- SessionStart?: {
5579
- matcher: string;
5580
- hooks: ({
5581
- type: "command";
5582
- command: string;
5583
- timeout?: number | undefined;
5584
- } | {
5585
- type: "http";
5586
- url: string;
5587
- timeout?: number | undefined;
5588
- headers?: Record<string, string> | undefined;
5589
- } | {
5590
- type: "prompt";
5591
- prompt: string;
5592
- model?: string | undefined;
5593
- } | {
5594
- type: "agent";
5595
- agent: string;
5596
- timeout?: number | undefined;
5597
- maxTurns?: number | undefined;
5598
- } | {
5599
- type: "guardrail";
5600
- guardrails?: string[] | undefined;
5601
- })[];
5602
- id?: string | undefined;
5603
- }[] | undefined;
5604
- SessionEnd?: {
5605
- matcher: string;
5606
- hooks: ({
5607
- type: "command";
5608
- command: string;
5609
- timeout?: number | undefined;
5610
- } | {
5611
- type: "http";
5612
- url: string;
5613
- timeout?: number | undefined;
5614
- headers?: Record<string, string> | undefined;
5615
- } | {
5616
- type: "prompt";
5617
- prompt: string;
5618
- model?: string | undefined;
5619
- } | {
5620
- type: "agent";
5621
- agent: string;
5622
- timeout?: number | undefined;
5623
- maxTurns?: number | undefined;
5624
- } | {
5625
- type: "guardrail";
5626
- guardrails?: string[] | undefined;
5627
- })[];
5628
- id?: string | undefined;
5629
- }[] | undefined;
5630
- Stop?: {
5631
- matcher: string;
5632
- hooks: ({
5633
- type: "command";
5634
- command: string;
5635
- timeout?: number | undefined;
5636
- } | {
5637
- type: "http";
5638
- url: string;
5639
- timeout?: number | undefined;
5640
- headers?: Record<string, string> | undefined;
5641
- } | {
5642
- type: "prompt";
5643
- prompt: string;
5644
- model?: string | undefined;
5645
- } | {
5646
- type: "agent";
5647
- agent: string;
5648
- timeout?: number | undefined;
5649
- maxTurns?: number | undefined;
5650
- } | {
5651
- type: "guardrail";
5652
- guardrails?: string[] | undefined;
5653
- })[];
5654
- id?: string | undefined;
5655
- }[] | undefined;
5656
- StopFailure?: {
5657
- matcher: string;
5658
- hooks: ({
5659
- type: "command";
5660
- command: string;
5661
- timeout?: number | undefined;
5662
- } | {
5663
- type: "http";
5664
- url: string;
5665
- timeout?: number | undefined;
5666
- headers?: Record<string, string> | undefined;
5667
- } | {
5668
- type: "prompt";
5669
- prompt: string;
5670
- model?: string | undefined;
5671
- } | {
5672
- type: "agent";
5673
- agent: string;
5674
- timeout?: number | undefined;
5675
- maxTurns?: number | undefined;
5676
- } | {
5677
- type: "guardrail";
5678
- guardrails?: string[] | undefined;
5679
- })[];
5680
- id?: string | undefined;
5681
- }[] | undefined;
5682
- PreCompact?: {
5683
- matcher: string;
5684
- hooks: ({
5685
- type: "command";
5686
- command: string;
5687
- timeout?: number | undefined;
5688
- } | {
5689
- type: "http";
5690
- url: string;
5691
- timeout?: number | undefined;
5692
- headers?: Record<string, string> | undefined;
5693
- } | {
5694
- type: "prompt";
5695
- prompt: string;
5696
- model?: string | undefined;
5697
- } | {
5698
- type: "agent";
5699
- agent: string;
5700
- timeout?: number | undefined;
5701
- maxTurns?: number | undefined;
5702
- } | {
5703
- type: "guardrail";
5704
- guardrails?: string[] | undefined;
5705
- })[];
5706
- id?: string | undefined;
5707
- }[] | undefined;
5708
- PostCompact?: {
5709
- matcher: string;
5710
- hooks: ({
5711
- type: "command";
5712
- command: string;
5713
- timeout?: number | undefined;
5714
- } | {
5715
- type: "http";
5716
- url: string;
5717
- timeout?: number | undefined;
5718
- headers?: Record<string, string> | undefined;
5719
- } | {
5720
- type: "prompt";
5721
- prompt: string;
5722
- model?: string | undefined;
5723
- } | {
5724
- type: "agent";
5725
- agent: string;
5726
- timeout?: number | undefined;
5727
- maxTurns?: number | undefined;
5728
- } | {
5729
- type: "guardrail";
5730
- guardrails?: string[] | undefined;
5731
- })[];
5732
- id?: string | undefined;
5733
- }[] | undefined;
5734
- UserPromptSubmit?: {
5735
- matcher: string;
5736
- hooks: ({
5737
- type: "command";
5738
- command: string;
5739
- timeout?: number | undefined;
5740
- } | {
5741
- type: "http";
5742
- url: string;
5743
- timeout?: number | undefined;
5744
- headers?: Record<string, string> | undefined;
5745
- } | {
5746
- type: "prompt";
5747
- prompt: string;
5748
- model?: string | undefined;
5749
- } | {
5750
- type: "agent";
5751
- agent: string;
5752
- timeout?: number | undefined;
5753
- maxTurns?: number | undefined;
5754
- } | {
5755
- type: "guardrail";
5756
- guardrails?: string[] | undefined;
5757
- })[];
5758
- id?: string | undefined;
5759
- }[] | undefined;
5760
- SubagentStart?: {
5761
- matcher: string;
5762
- hooks: ({
5763
- type: "command";
5764
- command: string;
5765
- timeout?: number | undefined;
5766
- } | {
5767
- type: "http";
5768
- url: string;
5769
- timeout?: number | undefined;
5770
- headers?: Record<string, string> | undefined;
5771
- } | {
5772
- type: "prompt";
5773
- prompt: string;
5774
- model?: string | undefined;
5775
- } | {
5776
- type: "agent";
5777
- agent: string;
5778
- timeout?: number | undefined;
5779
- maxTurns?: number | undefined;
5780
- } | {
5781
- type: "guardrail";
5782
- guardrails?: string[] | undefined;
5783
- })[];
5784
- id?: string | undefined;
5785
- }[] | undefined;
5786
- SubagentStop?: {
5787
- matcher: string;
5788
- hooks: ({
5789
- type: "command";
5790
- command: string;
5791
- timeout?: number | undefined;
5792
- } | {
5793
- type: "http";
5794
- url: string;
5795
- timeout?: number | undefined;
5796
- headers?: Record<string, string> | undefined;
5797
- } | {
5798
- type: "prompt";
5799
- prompt: string;
5800
- model?: string | undefined;
5801
- } | {
5802
- type: "agent";
5803
- agent: string;
5804
- timeout?: number | undefined;
5805
- maxTurns?: number | undefined;
5806
- } | {
5807
- type: "guardrail";
5808
- guardrails?: string[] | undefined;
5809
- })[];
5810
- id?: string | undefined;
5811
- }[] | undefined;
5812
- WorktreeCreate?: {
5813
- matcher: string;
5814
- hooks: ({
5815
- type: "command";
5816
- command: string;
5817
- timeout?: number | undefined;
5818
- } | {
5819
- type: "http";
5820
- url: string;
5821
- timeout?: number | undefined;
5822
- headers?: Record<string, string> | undefined;
5823
- } | {
5824
- type: "prompt";
5825
- prompt: string;
5826
- model?: string | undefined;
5827
- } | {
5828
- type: "agent";
5829
- agent: string;
5830
- timeout?: number | undefined;
5831
- maxTurns?: number | undefined;
5832
- } | {
5833
- type: "guardrail";
5834
- guardrails?: string[] | undefined;
5835
- })[];
5836
- id?: string | undefined;
5837
- }[] | undefined;
5838
- WorktreeRemove?: {
5839
- matcher: string;
5840
- hooks: ({
5841
- type: "command";
5842
- command: string;
5843
- timeout?: number | undefined;
5844
- } | {
5845
- type: "http";
5846
- url: string;
5847
- timeout?: number | undefined;
5848
- headers?: Record<string, string> | undefined;
5849
- } | {
5850
- type: "prompt";
5851
- prompt: string;
5852
- model?: string | undefined;
5853
- } | {
5854
- type: "agent";
5855
- agent: string;
5856
- timeout?: number | undefined;
5857
- maxTurns?: number | undefined;
5858
- } | {
5859
- type: "guardrail";
5860
- guardrails?: string[] | undefined;
5861
- })[];
5862
- id?: string | undefined;
5863
- }[] | undefined;
5864
- PreModelCall?: {
5865
- matcher: string;
5866
- hooks: ({
5867
- type: "command";
5868
- command: string;
5869
- timeout?: number | undefined;
5870
- } | {
5871
- type: "http";
5872
- url: string;
5873
- timeout?: number | undefined;
5874
- headers?: Record<string, string> | undefined;
5875
- } | {
5876
- type: "prompt";
5877
- prompt: string;
5878
- model?: string | undefined;
5879
- } | {
5880
- type: "agent";
5881
- agent: string;
5882
- timeout?: number | undefined;
5883
- maxTurns?: number | undefined;
5884
- } | {
5885
- type: "guardrail";
5886
- guardrails?: string[] | undefined;
5887
- })[];
5888
- id?: string | undefined;
5889
- }[] | undefined;
5890
- PostModelCall?: {
5891
- matcher: string;
5892
- hooks: ({
5893
- type: "command";
5894
- command: string;
5895
- timeout?: number | undefined;
5896
- } | {
5897
- type: "http";
5898
- url: string;
5899
- timeout?: number | undefined;
5900
- headers?: Record<string, string> | undefined;
5901
- } | {
5902
- type: "prompt";
5903
- prompt: string;
5904
- model?: string | undefined;
5905
- } | {
5906
- type: "agent";
5907
- agent: string;
5908
- timeout?: number | undefined;
5909
- maxTurns?: number | undefined;
5910
- } | {
5911
- type: "guardrail";
5912
- guardrails?: string[] | undefined;
5913
- })[];
5914
- id?: string | undefined;
5915
- }[] | undefined;
5916
- PermissionDecision?: {
5917
- matcher: string;
5918
- hooks: ({
5919
- type: "command";
5920
- command: string;
5921
- timeout?: number | undefined;
5922
- } | {
5923
- type: "http";
5924
- url: string;
5925
- timeout?: number | undefined;
5926
- headers?: Record<string, string> | undefined;
5927
- } | {
5928
- type: "prompt";
5929
- prompt: string;
5930
- model?: string | undefined;
5931
- } | {
5932
- type: "agent";
5933
- agent: string;
5934
- timeout?: number | undefined;
5935
- maxTurns?: number | undefined;
5936
- } | {
5937
- type: "guardrail";
5938
- guardrails?: string[] | undefined;
5939
- })[];
5940
- id?: string | undefined;
5941
- }[] | undefined;
5942
- }>>;
5943
- /**
5944
- * Hook-group ids this layer turns off (issue #2320). Applies only to groups declared by LATER
5945
- * (lower-trust) layers — a user layer may disable a project hook; a project layer can never
5946
- * disable a user's guard. See `mergeSettings`.
5947
- */
5948
- disabledHooks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5949
- /** Plugin enablement map: plugin name -> enabled/disabled */
3387
+ guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
3388
+ }, z.core.$strip>], "type">>;
3389
+ }, z.core.$strip>>>;
3390
+ }, z.core.$strip>>;
3391
+ disabledHooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
5950
3392
  enabledPlugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
5951
- /** Extra marketplace URLs for BundlePlugin discovery */
5952
3393
  extraKnownMarketplaces: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5953
3394
  source: z.ZodObject<{
5954
- type: z.ZodEnum<["github", "git", "local", "url"]>;
3395
+ type: z.ZodEnum<{
3396
+ url: "url";
3397
+ github: "github";
3398
+ git: "git";
3399
+ local: "local";
3400
+ }>;
5955
3401
  repo: z.ZodOptional<z.ZodString>;
5956
3402
  url: z.ZodOptional<z.ZodString>;
5957
3403
  path: z.ZodOptional<z.ZodString>;
5958
3404
  ref: z.ZodOptional<z.ZodString>;
5959
- }, "strip", z.ZodTypeAny, {
5960
- type: "url" | "github" | "git" | "local";
5961
- path?: string | undefined;
5962
- url?: string | undefined;
5963
- repo?: string | undefined;
5964
- ref?: string | undefined;
5965
- }, {
5966
- type: "url" | "github" | "git" | "local";
5967
- path?: string | undefined;
5968
- url?: string | undefined;
5969
- repo?: string | undefined;
5970
- ref?: string | undefined;
5971
- }>;
5972
- }, "strip", z.ZodTypeAny, {
5973
- source: {
5974
- type: "url" | "github" | "git" | "local";
5975
- path?: string | undefined;
5976
- url?: string | undefined;
5977
- repo?: string | undefined;
5978
- ref?: string | undefined;
5979
- };
5980
- }, {
5981
- source: {
5982
- type: "url" | "github" | "git" | "local";
5983
- path?: string | undefined;
5984
- url?: string | undefined;
5985
- repo?: string | undefined;
5986
- ref?: string | undefined;
5987
- };
5988
- }>>>>;
5989
- /** Auto-compact threshold as a 0-1 fraction. Set false to disable automatic compaction. */
5990
- autoCompactThreshold: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>>;
5991
- /** Transport enable/disable + options: transport name -> config */
3405
+ }, z.core.$strip>;
3406
+ }, z.core.$strip>>>>;
3407
+ autoCompactThreshold: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
5992
3408
  transports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5993
3409
  enabled: z.ZodOptional<z.ZodBoolean>;
5994
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, z.ZodTypeDef, TUniversalValue>>>;
5995
- }, "strip", z.ZodTypeAny, {
5996
- options?: Record<string, TUniversalValue> | undefined;
5997
- enabled?: boolean | undefined;
5998
- }, {
5999
- options?: Record<string, TUniversalValue> | undefined;
6000
- enabled?: boolean | undefined;
6001
- }>>>;
6002
- /** OS-level confinement of shell commands (bubblewrap on Linux, Seatbelt on macOS). */
3410
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<TUniversalValue, unknown, z.core.$ZodTypeInternals<TUniversalValue, unknown>>>>;
3411
+ }, z.core.$strip>>>;
6003
3412
  sandbox: z.ZodOptional<z.ZodObject<{
6004
3413
  enabled: z.ZodOptional<z.ZodBoolean>;
6005
- /** A confined command runs without a prompt; deny and ask rules still apply first. */
6006
3414
  autoAllowBashIfSandboxed: z.ZodOptional<z.ZodBoolean>;
6007
- /** Commands (first word) that run unconfined, through the ordinary permission path. */
6008
- excludedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6009
- /** Refuse to start when sandboxing is enabled but cannot run here, instead of running unconfined. */
3415
+ excludedCommands: z.ZodOptional<z.ZodArray<z.ZodString>>;
6010
3416
  failIfUnavailable: z.ZodOptional<z.ZodBoolean>;
6011
3417
  filesystem: z.ZodOptional<z.ZodObject<{
6012
- allowWrite: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6013
- denyRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6014
- }, "strip", z.ZodTypeAny, {
6015
- allowWrite?: string[] | undefined;
6016
- denyRead?: string[] | undefined;
6017
- }, {
6018
- allowWrite?: string[] | undefined;
6019
- denyRead?: string[] | undefined;
6020
- }>>;
3418
+ allowWrite: z.ZodOptional<z.ZodArray<z.ZodString>>;
3419
+ denyRead: z.ZodOptional<z.ZodArray<z.ZodString>>;
3420
+ }, z.core.$strip>>;
6021
3421
  network: z.ZodOptional<z.ZodObject<{
6022
3422
  enabled: z.ZodOptional<z.ZodBoolean>;
6023
- }, "strip", z.ZodTypeAny, {
6024
- enabled?: boolean | undefined;
6025
- }, {
6026
- enabled?: boolean | undefined;
6027
- }>>;
6028
- }, "strip", z.ZodTypeAny, {
6029
- enabled?: boolean | undefined;
6030
- autoAllowBashIfSandboxed?: boolean | undefined;
6031
- excludedCommands?: string[] | undefined;
6032
- failIfUnavailable?: boolean | undefined;
6033
- filesystem?: {
6034
- allowWrite?: string[] | undefined;
6035
- denyRead?: string[] | undefined;
6036
- } | undefined;
6037
- network?: {
6038
- enabled?: boolean | undefined;
6039
- } | undefined;
6040
- }, {
6041
- enabled?: boolean | undefined;
6042
- autoAllowBashIfSandboxed?: boolean | undefined;
6043
- excludedCommands?: string[] | undefined;
6044
- failIfUnavailable?: boolean | undefined;
6045
- filesystem?: {
6046
- allowWrite?: string[] | undefined;
6047
- denyRead?: string[] | undefined;
6048
- } | undefined;
6049
- network?: {
6050
- enabled?: boolean | undefined;
6051
- } | undefined;
6052
- }>>;
6053
- /** NEUT-004: host-selected active-task context root and optional enablement. */
3423
+ }, z.core.$strip>>;
3424
+ }, z.core.$strip>>;
6054
3425
  taskContext: z.ZodOptional<z.ZodObject<{
6055
3426
  enabled: z.ZodOptional<z.ZodBoolean>;
6056
3427
  dir: z.ZodOptional<z.ZodString>;
6057
- }, "strip", z.ZodTypeAny, {
6058
- enabled?: boolean | undefined;
6059
- dir?: string | undefined;
6060
- }, {
6061
- enabled?: boolean | undefined;
6062
- dir?: string | undefined;
6063
- }>>;
6064
- }, "strip", z.ZodTypeAny, {
6065
- hooks?: {
6066
- PreToolUse?: {
6067
- matcher: string;
6068
- hooks: ({
6069
- type: "command";
6070
- command: string;
6071
- timeout?: number | undefined;
6072
- } | {
6073
- type: "http";
6074
- url: string;
6075
- timeout?: number | undefined;
6076
- headers?: Record<string, string> | undefined;
6077
- } | {
6078
- type: "prompt";
6079
- prompt: string;
6080
- model?: string | undefined;
6081
- } | {
6082
- type: "agent";
6083
- agent: string;
6084
- timeout?: number | undefined;
6085
- maxTurns?: number | undefined;
6086
- } | {
6087
- type: "guardrail";
6088
- guardrails?: string[] | undefined;
6089
- })[];
6090
- id?: string | undefined;
6091
- }[] | undefined;
6092
- PostToolUse?: {
6093
- matcher: string;
6094
- hooks: ({
6095
- type: "command";
6096
- command: string;
6097
- timeout?: number | undefined;
6098
- } | {
6099
- type: "http";
6100
- url: string;
6101
- timeout?: number | undefined;
6102
- headers?: Record<string, string> | undefined;
6103
- } | {
6104
- type: "prompt";
6105
- prompt: string;
6106
- model?: string | undefined;
6107
- } | {
6108
- type: "agent";
6109
- agent: string;
6110
- timeout?: number | undefined;
6111
- maxTurns?: number | undefined;
6112
- } | {
6113
- type: "guardrail";
6114
- guardrails?: string[] | undefined;
6115
- })[];
6116
- id?: string | undefined;
6117
- }[] | undefined;
6118
- SessionStart?: {
6119
- matcher: string;
6120
- hooks: ({
6121
- type: "command";
6122
- command: string;
6123
- timeout?: number | undefined;
6124
- } | {
6125
- type: "http";
6126
- url: string;
6127
- timeout?: number | undefined;
6128
- headers?: Record<string, string> | undefined;
6129
- } | {
6130
- type: "prompt";
6131
- prompt: string;
6132
- model?: string | undefined;
6133
- } | {
6134
- type: "agent";
6135
- agent: string;
6136
- timeout?: number | undefined;
6137
- maxTurns?: number | undefined;
6138
- } | {
6139
- type: "guardrail";
6140
- guardrails?: string[] | undefined;
6141
- })[];
6142
- id?: string | undefined;
6143
- }[] | undefined;
6144
- SessionEnd?: {
6145
- matcher: string;
6146
- hooks: ({
6147
- type: "command";
6148
- command: string;
6149
- timeout?: number | undefined;
6150
- } | {
6151
- type: "http";
6152
- url: string;
6153
- timeout?: number | undefined;
6154
- headers?: Record<string, string> | undefined;
6155
- } | {
6156
- type: "prompt";
6157
- prompt: string;
6158
- model?: string | undefined;
6159
- } | {
6160
- type: "agent";
6161
- agent: string;
6162
- timeout?: number | undefined;
6163
- maxTurns?: number | undefined;
6164
- } | {
6165
- type: "guardrail";
6166
- guardrails?: string[] | undefined;
6167
- })[];
6168
- id?: string | undefined;
6169
- }[] | undefined;
6170
- Stop?: {
6171
- matcher: string;
6172
- hooks: ({
6173
- type: "command";
6174
- command: string;
6175
- timeout?: number | undefined;
6176
- } | {
6177
- type: "http";
6178
- url: string;
6179
- timeout?: number | undefined;
6180
- headers?: Record<string, string> | undefined;
6181
- } | {
6182
- type: "prompt";
6183
- prompt: string;
6184
- model?: string | undefined;
6185
- } | {
6186
- type: "agent";
6187
- agent: string;
6188
- timeout?: number | undefined;
6189
- maxTurns?: number | undefined;
6190
- } | {
6191
- type: "guardrail";
6192
- guardrails?: string[] | undefined;
6193
- })[];
6194
- id?: string | undefined;
6195
- }[] | undefined;
6196
- StopFailure?: {
6197
- matcher: string;
6198
- hooks: ({
6199
- type: "command";
6200
- command: string;
6201
- timeout?: number | undefined;
6202
- } | {
6203
- type: "http";
6204
- url: string;
6205
- timeout?: number | undefined;
6206
- headers?: Record<string, string> | undefined;
6207
- } | {
6208
- type: "prompt";
6209
- prompt: string;
6210
- model?: string | undefined;
6211
- } | {
6212
- type: "agent";
6213
- agent: string;
6214
- timeout?: number | undefined;
6215
- maxTurns?: number | undefined;
6216
- } | {
6217
- type: "guardrail";
6218
- guardrails?: string[] | undefined;
6219
- })[];
6220
- id?: string | undefined;
6221
- }[] | undefined;
6222
- PreCompact?: {
6223
- matcher: string;
6224
- hooks: ({
6225
- type: "command";
6226
- command: string;
6227
- timeout?: number | undefined;
6228
- } | {
6229
- type: "http";
6230
- url: string;
6231
- timeout?: number | undefined;
6232
- headers?: Record<string, string> | undefined;
6233
- } | {
6234
- type: "prompt";
6235
- prompt: string;
6236
- model?: string | undefined;
6237
- } | {
6238
- type: "agent";
6239
- agent: string;
6240
- timeout?: number | undefined;
6241
- maxTurns?: number | undefined;
6242
- } | {
6243
- type: "guardrail";
6244
- guardrails?: string[] | undefined;
6245
- })[];
6246
- id?: string | undefined;
6247
- }[] | undefined;
6248
- PostCompact?: {
6249
- matcher: string;
6250
- hooks: ({
6251
- type: "command";
6252
- command: string;
6253
- timeout?: number | undefined;
6254
- } | {
6255
- type: "http";
6256
- url: string;
6257
- timeout?: number | undefined;
6258
- headers?: Record<string, string> | undefined;
6259
- } | {
6260
- type: "prompt";
6261
- prompt: string;
6262
- model?: string | undefined;
6263
- } | {
6264
- type: "agent";
6265
- agent: string;
6266
- timeout?: number | undefined;
6267
- maxTurns?: number | undefined;
6268
- } | {
6269
- type: "guardrail";
6270
- guardrails?: string[] | undefined;
6271
- })[];
6272
- id?: string | undefined;
6273
- }[] | undefined;
6274
- UserPromptSubmit?: {
6275
- matcher: string;
6276
- hooks: ({
6277
- type: "command";
6278
- command: string;
6279
- timeout?: number | undefined;
6280
- } | {
6281
- type: "http";
6282
- url: string;
6283
- timeout?: number | undefined;
6284
- headers?: Record<string, string> | undefined;
6285
- } | {
6286
- type: "prompt";
6287
- prompt: string;
6288
- model?: string | undefined;
6289
- } | {
6290
- type: "agent";
6291
- agent: string;
6292
- timeout?: number | undefined;
6293
- maxTurns?: number | undefined;
6294
- } | {
6295
- type: "guardrail";
6296
- guardrails?: string[] | undefined;
6297
- })[];
6298
- id?: string | undefined;
6299
- }[] | undefined;
6300
- SubagentStart?: {
6301
- matcher: string;
6302
- hooks: ({
6303
- type: "command";
6304
- command: string;
6305
- timeout?: number | undefined;
6306
- } | {
6307
- type: "http";
6308
- url: string;
6309
- timeout?: number | undefined;
6310
- headers?: Record<string, string> | undefined;
6311
- } | {
6312
- type: "prompt";
6313
- prompt: string;
6314
- model?: string | undefined;
6315
- } | {
6316
- type: "agent";
6317
- agent: string;
6318
- timeout?: number | undefined;
6319
- maxTurns?: number | undefined;
6320
- } | {
6321
- type: "guardrail";
6322
- guardrails?: string[] | undefined;
6323
- })[];
6324
- id?: string | undefined;
6325
- }[] | undefined;
6326
- SubagentStop?: {
6327
- matcher: string;
6328
- hooks: ({
6329
- type: "command";
6330
- command: string;
6331
- timeout?: number | undefined;
6332
- } | {
6333
- type: "http";
6334
- url: string;
6335
- timeout?: number | undefined;
6336
- headers?: Record<string, string> | undefined;
6337
- } | {
6338
- type: "prompt";
6339
- prompt: string;
6340
- model?: string | undefined;
6341
- } | {
6342
- type: "agent";
6343
- agent: string;
6344
- timeout?: number | undefined;
6345
- maxTurns?: number | undefined;
6346
- } | {
6347
- type: "guardrail";
6348
- guardrails?: string[] | undefined;
6349
- })[];
6350
- id?: string | undefined;
6351
- }[] | undefined;
6352
- WorktreeCreate?: {
6353
- matcher: string;
6354
- hooks: ({
6355
- type: "command";
6356
- command: string;
6357
- timeout?: number | undefined;
6358
- } | {
6359
- type: "http";
6360
- url: string;
6361
- timeout?: number | undefined;
6362
- headers?: Record<string, string> | undefined;
6363
- } | {
6364
- type: "prompt";
6365
- prompt: string;
6366
- model?: string | undefined;
6367
- } | {
6368
- type: "agent";
6369
- agent: string;
6370
- timeout?: number | undefined;
6371
- maxTurns?: number | undefined;
6372
- } | {
6373
- type: "guardrail";
6374
- guardrails?: string[] | undefined;
6375
- })[];
6376
- id?: string | undefined;
6377
- }[] | undefined;
6378
- WorktreeRemove?: {
6379
- matcher: string;
6380
- hooks: ({
6381
- type: "command";
6382
- command: string;
6383
- timeout?: number | undefined;
6384
- } | {
6385
- type: "http";
6386
- url: string;
6387
- timeout?: number | undefined;
6388
- headers?: Record<string, string> | undefined;
6389
- } | {
6390
- type: "prompt";
6391
- prompt: string;
6392
- model?: string | undefined;
6393
- } | {
6394
- type: "agent";
6395
- agent: string;
6396
- timeout?: number | undefined;
6397
- maxTurns?: number | undefined;
6398
- } | {
6399
- type: "guardrail";
6400
- guardrails?: string[] | undefined;
6401
- })[];
6402
- id?: string | undefined;
6403
- }[] | undefined;
6404
- PreModelCall?: {
6405
- matcher: string;
6406
- hooks: ({
6407
- type: "command";
6408
- command: string;
6409
- timeout?: number | undefined;
6410
- } | {
6411
- type: "http";
6412
- url: string;
6413
- timeout?: number | undefined;
6414
- headers?: Record<string, string> | undefined;
6415
- } | {
6416
- type: "prompt";
6417
- prompt: string;
6418
- model?: string | undefined;
6419
- } | {
6420
- type: "agent";
6421
- agent: string;
6422
- timeout?: number | undefined;
6423
- maxTurns?: number | undefined;
6424
- } | {
6425
- type: "guardrail";
6426
- guardrails?: string[] | undefined;
6427
- })[];
6428
- id?: string | undefined;
6429
- }[] | undefined;
6430
- PostModelCall?: {
6431
- matcher: string;
6432
- hooks: ({
6433
- type: "command";
6434
- command: string;
6435
- timeout?: number | undefined;
6436
- } | {
6437
- type: "http";
6438
- url: string;
6439
- timeout?: number | undefined;
6440
- headers?: Record<string, string> | undefined;
6441
- } | {
6442
- type: "prompt";
6443
- prompt: string;
6444
- model?: string | undefined;
6445
- } | {
6446
- type: "agent";
6447
- agent: string;
6448
- timeout?: number | undefined;
6449
- maxTurns?: number | undefined;
6450
- } | {
6451
- type: "guardrail";
6452
- guardrails?: string[] | undefined;
6453
- })[];
6454
- id?: string | undefined;
6455
- }[] | undefined;
6456
- PermissionDecision?: {
6457
- matcher: string;
6458
- hooks: ({
6459
- type: "command";
6460
- command: string;
6461
- timeout?: number | undefined;
6462
- } | {
6463
- type: "http";
6464
- url: string;
6465
- timeout?: number | undefined;
6466
- headers?: Record<string, string> | undefined;
6467
- } | {
6468
- type: "prompt";
6469
- prompt: string;
6470
- model?: string | undefined;
6471
- } | {
6472
- type: "agent";
6473
- agent: string;
6474
- timeout?: number | undefined;
6475
- maxTurns?: number | undefined;
6476
- } | {
6477
- type: "guardrail";
6478
- guardrails?: string[] | undefined;
6479
- })[];
6480
- id?: string | undefined;
6481
- }[] | undefined;
6482
- } | undefined;
6483
- defaultTrustLevel?: "safe" | "moderate" | "full" | undefined;
6484
- language?: string | undefined;
6485
- preset?: string | undefined;
6486
- currentProvider?: string | undefined;
6487
- providers?: Record<string, {
6488
- options?: Record<string, TUniversalValue> | undefined;
6489
- type?: string | undefined;
6490
- timeout?: number | undefined;
6491
- model?: string | undefined;
6492
- apiKey?: string | undefined;
6493
- apiKeyRef?: {
6494
- service: string;
6495
- account: string;
6496
- } | undefined;
6497
- baseURL?: string | undefined;
6498
- }> | undefined;
6499
- provider?: {
6500
- options?: Record<string, TUniversalValue> | undefined;
6501
- timeout?: number | undefined;
6502
- model?: string | undefined;
6503
- apiKey?: string | undefined;
6504
- apiKeyRef?: {
6505
- service: string;
6506
- account: string;
6507
- } | undefined;
6508
- baseURL?: string | undefined;
6509
- name?: string | undefined;
6510
- } | undefined;
6511
- permissions?: {
6512
- allow?: string[] | undefined;
6513
- deny?: string[] | undefined;
6514
- ask?: string[] | undefined;
6515
- } | undefined;
6516
- env?: Record<string, string> | undefined;
6517
- commandEnvAllow?: string[] | undefined;
6518
- disabledHooks?: string[] | undefined;
6519
- enabledPlugins?: Record<string, boolean> | undefined;
6520
- extraKnownMarketplaces?: Record<string, {
6521
- source: {
6522
- type: "url" | "github" | "git" | "local";
6523
- path?: string | undefined;
6524
- url?: string | undefined;
6525
- repo?: string | undefined;
6526
- ref?: string | undefined;
6527
- };
6528
- }> | undefined;
6529
- autoCompactThreshold?: number | false | undefined;
6530
- transports?: Record<string, {
6531
- options?: Record<string, TUniversalValue> | undefined;
6532
- enabled?: boolean | undefined;
6533
- }> | undefined;
6534
- sandbox?: {
6535
- enabled?: boolean | undefined;
6536
- autoAllowBashIfSandboxed?: boolean | undefined;
6537
- excludedCommands?: string[] | undefined;
6538
- failIfUnavailable?: boolean | undefined;
6539
- filesystem?: {
6540
- allowWrite?: string[] | undefined;
6541
- denyRead?: string[] | undefined;
6542
- } | undefined;
6543
- network?: {
6544
- enabled?: boolean | undefined;
6545
- } | undefined;
6546
- } | undefined;
6547
- taskContext?: {
6548
- enabled?: boolean | undefined;
6549
- dir?: string | undefined;
6550
- } | undefined;
6551
- }, {
6552
- hooks?: {
6553
- PreToolUse?: {
6554
- matcher: string;
6555
- hooks: ({
6556
- type: "command";
6557
- command: string;
6558
- timeout?: number | undefined;
6559
- } | {
6560
- type: "http";
6561
- url: string;
6562
- timeout?: number | undefined;
6563
- headers?: Record<string, string> | undefined;
6564
- } | {
6565
- type: "prompt";
6566
- prompt: string;
6567
- model?: string | undefined;
6568
- } | {
6569
- type: "agent";
6570
- agent: string;
6571
- timeout?: number | undefined;
6572
- maxTurns?: number | undefined;
6573
- } | {
6574
- type: "guardrail";
6575
- guardrails?: string[] | undefined;
6576
- })[];
6577
- id?: string | undefined;
6578
- }[] | undefined;
6579
- PostToolUse?: {
6580
- matcher: string;
6581
- hooks: ({
6582
- type: "command";
6583
- command: string;
6584
- timeout?: number | undefined;
6585
- } | {
6586
- type: "http";
6587
- url: string;
6588
- timeout?: number | undefined;
6589
- headers?: Record<string, string> | undefined;
6590
- } | {
6591
- type: "prompt";
6592
- prompt: string;
6593
- model?: string | undefined;
6594
- } | {
6595
- type: "agent";
6596
- agent: string;
6597
- timeout?: number | undefined;
6598
- maxTurns?: number | undefined;
6599
- } | {
6600
- type: "guardrail";
6601
- guardrails?: string[] | undefined;
6602
- })[];
6603
- id?: string | undefined;
6604
- }[] | undefined;
6605
- SessionStart?: {
6606
- matcher: string;
6607
- hooks: ({
6608
- type: "command";
6609
- command: string;
6610
- timeout?: number | undefined;
6611
- } | {
6612
- type: "http";
6613
- url: string;
6614
- timeout?: number | undefined;
6615
- headers?: Record<string, string> | undefined;
6616
- } | {
6617
- type: "prompt";
6618
- prompt: string;
6619
- model?: string | undefined;
6620
- } | {
6621
- type: "agent";
6622
- agent: string;
6623
- timeout?: number | undefined;
6624
- maxTurns?: number | undefined;
6625
- } | {
6626
- type: "guardrail";
6627
- guardrails?: string[] | undefined;
6628
- })[];
6629
- id?: string | undefined;
6630
- }[] | undefined;
6631
- SessionEnd?: {
6632
- matcher: string;
6633
- hooks: ({
6634
- type: "command";
6635
- command: string;
6636
- timeout?: number | undefined;
6637
- } | {
6638
- type: "http";
6639
- url: string;
6640
- timeout?: number | undefined;
6641
- headers?: Record<string, string> | undefined;
6642
- } | {
6643
- type: "prompt";
6644
- prompt: string;
6645
- model?: string | undefined;
6646
- } | {
6647
- type: "agent";
6648
- agent: string;
6649
- timeout?: number | undefined;
6650
- maxTurns?: number | undefined;
6651
- } | {
6652
- type: "guardrail";
6653
- guardrails?: string[] | undefined;
6654
- })[];
6655
- id?: string | undefined;
6656
- }[] | undefined;
6657
- Stop?: {
6658
- matcher: string;
6659
- hooks: ({
6660
- type: "command";
6661
- command: string;
6662
- timeout?: number | undefined;
6663
- } | {
6664
- type: "http";
6665
- url: string;
6666
- timeout?: number | undefined;
6667
- headers?: Record<string, string> | undefined;
6668
- } | {
6669
- type: "prompt";
6670
- prompt: string;
6671
- model?: string | undefined;
6672
- } | {
6673
- type: "agent";
6674
- agent: string;
6675
- timeout?: number | undefined;
6676
- maxTurns?: number | undefined;
6677
- } | {
6678
- type: "guardrail";
6679
- guardrails?: string[] | undefined;
6680
- })[];
6681
- id?: string | undefined;
6682
- }[] | undefined;
6683
- StopFailure?: {
6684
- matcher: string;
6685
- hooks: ({
6686
- type: "command";
6687
- command: string;
6688
- timeout?: number | undefined;
6689
- } | {
6690
- type: "http";
6691
- url: string;
6692
- timeout?: number | undefined;
6693
- headers?: Record<string, string> | undefined;
6694
- } | {
6695
- type: "prompt";
6696
- prompt: string;
6697
- model?: string | undefined;
6698
- } | {
6699
- type: "agent";
6700
- agent: string;
6701
- timeout?: number | undefined;
6702
- maxTurns?: number | undefined;
6703
- } | {
6704
- type: "guardrail";
6705
- guardrails?: string[] | undefined;
6706
- })[];
6707
- id?: string | undefined;
6708
- }[] | undefined;
6709
- PreCompact?: {
6710
- matcher: string;
6711
- hooks: ({
6712
- type: "command";
6713
- command: string;
6714
- timeout?: number | undefined;
6715
- } | {
6716
- type: "http";
6717
- url: string;
6718
- timeout?: number | undefined;
6719
- headers?: Record<string, string> | undefined;
6720
- } | {
6721
- type: "prompt";
6722
- prompt: string;
6723
- model?: string | undefined;
6724
- } | {
6725
- type: "agent";
6726
- agent: string;
6727
- timeout?: number | undefined;
6728
- maxTurns?: number | undefined;
6729
- } | {
6730
- type: "guardrail";
6731
- guardrails?: string[] | undefined;
6732
- })[];
6733
- id?: string | undefined;
6734
- }[] | undefined;
6735
- PostCompact?: {
6736
- matcher: string;
6737
- hooks: ({
6738
- type: "command";
6739
- command: string;
6740
- timeout?: number | undefined;
6741
- } | {
6742
- type: "http";
6743
- url: string;
6744
- timeout?: number | undefined;
6745
- headers?: Record<string, string> | undefined;
6746
- } | {
6747
- type: "prompt";
6748
- prompt: string;
6749
- model?: string | undefined;
6750
- } | {
6751
- type: "agent";
6752
- agent: string;
6753
- timeout?: number | undefined;
6754
- maxTurns?: number | undefined;
6755
- } | {
6756
- type: "guardrail";
6757
- guardrails?: string[] | undefined;
6758
- })[];
6759
- id?: string | undefined;
6760
- }[] | undefined;
6761
- UserPromptSubmit?: {
6762
- matcher: string;
6763
- hooks: ({
6764
- type: "command";
6765
- command: string;
6766
- timeout?: number | undefined;
6767
- } | {
6768
- type: "http";
6769
- url: string;
6770
- timeout?: number | undefined;
6771
- headers?: Record<string, string> | undefined;
6772
- } | {
6773
- type: "prompt";
6774
- prompt: string;
6775
- model?: string | undefined;
6776
- } | {
6777
- type: "agent";
6778
- agent: string;
6779
- timeout?: number | undefined;
6780
- maxTurns?: number | undefined;
6781
- } | {
6782
- type: "guardrail";
6783
- guardrails?: string[] | undefined;
6784
- })[];
6785
- id?: string | undefined;
6786
- }[] | undefined;
6787
- SubagentStart?: {
6788
- matcher: string;
6789
- hooks: ({
6790
- type: "command";
6791
- command: string;
6792
- timeout?: number | undefined;
6793
- } | {
6794
- type: "http";
6795
- url: string;
6796
- timeout?: number | undefined;
6797
- headers?: Record<string, string> | undefined;
6798
- } | {
6799
- type: "prompt";
6800
- prompt: string;
6801
- model?: string | undefined;
6802
- } | {
6803
- type: "agent";
6804
- agent: string;
6805
- timeout?: number | undefined;
6806
- maxTurns?: number | undefined;
6807
- } | {
6808
- type: "guardrail";
6809
- guardrails?: string[] | undefined;
6810
- })[];
6811
- id?: string | undefined;
6812
- }[] | undefined;
6813
- SubagentStop?: {
6814
- matcher: string;
6815
- hooks: ({
6816
- type: "command";
6817
- command: string;
6818
- timeout?: number | undefined;
6819
- } | {
6820
- type: "http";
6821
- url: string;
6822
- timeout?: number | undefined;
6823
- headers?: Record<string, string> | undefined;
6824
- } | {
6825
- type: "prompt";
6826
- prompt: string;
6827
- model?: string | undefined;
6828
- } | {
6829
- type: "agent";
6830
- agent: string;
6831
- timeout?: number | undefined;
6832
- maxTurns?: number | undefined;
6833
- } | {
6834
- type: "guardrail";
6835
- guardrails?: string[] | undefined;
6836
- })[];
6837
- id?: string | undefined;
6838
- }[] | undefined;
6839
- WorktreeCreate?: {
6840
- matcher: string;
6841
- hooks: ({
6842
- type: "command";
6843
- command: string;
6844
- timeout?: number | undefined;
6845
- } | {
6846
- type: "http";
6847
- url: string;
6848
- timeout?: number | undefined;
6849
- headers?: Record<string, string> | undefined;
6850
- } | {
6851
- type: "prompt";
6852
- prompt: string;
6853
- model?: string | undefined;
6854
- } | {
6855
- type: "agent";
6856
- agent: string;
6857
- timeout?: number | undefined;
6858
- maxTurns?: number | undefined;
6859
- } | {
6860
- type: "guardrail";
6861
- guardrails?: string[] | undefined;
6862
- })[];
6863
- id?: string | undefined;
6864
- }[] | undefined;
6865
- WorktreeRemove?: {
6866
- matcher: string;
6867
- hooks: ({
6868
- type: "command";
6869
- command: string;
6870
- timeout?: number | undefined;
6871
- } | {
6872
- type: "http";
6873
- url: string;
6874
- timeout?: number | undefined;
6875
- headers?: Record<string, string> | undefined;
6876
- } | {
6877
- type: "prompt";
6878
- prompt: string;
6879
- model?: string | undefined;
6880
- } | {
6881
- type: "agent";
6882
- agent: string;
6883
- timeout?: number | undefined;
6884
- maxTurns?: number | undefined;
6885
- } | {
6886
- type: "guardrail";
6887
- guardrails?: string[] | undefined;
6888
- })[];
6889
- id?: string | undefined;
6890
- }[] | undefined;
6891
- PreModelCall?: {
6892
- matcher: string;
6893
- hooks: ({
6894
- type: "command";
6895
- command: string;
6896
- timeout?: number | undefined;
6897
- } | {
6898
- type: "http";
6899
- url: string;
6900
- timeout?: number | undefined;
6901
- headers?: Record<string, string> | undefined;
6902
- } | {
6903
- type: "prompt";
6904
- prompt: string;
6905
- model?: string | undefined;
6906
- } | {
6907
- type: "agent";
6908
- agent: string;
6909
- timeout?: number | undefined;
6910
- maxTurns?: number | undefined;
6911
- } | {
6912
- type: "guardrail";
6913
- guardrails?: string[] | undefined;
6914
- })[];
6915
- id?: string | undefined;
6916
- }[] | undefined;
6917
- PostModelCall?: {
6918
- matcher: string;
6919
- hooks: ({
6920
- type: "command";
6921
- command: string;
6922
- timeout?: number | undefined;
6923
- } | {
6924
- type: "http";
6925
- url: string;
6926
- timeout?: number | undefined;
6927
- headers?: Record<string, string> | undefined;
6928
- } | {
6929
- type: "prompt";
6930
- prompt: string;
6931
- model?: string | undefined;
6932
- } | {
6933
- type: "agent";
6934
- agent: string;
6935
- timeout?: number | undefined;
6936
- maxTurns?: number | undefined;
6937
- } | {
6938
- type: "guardrail";
6939
- guardrails?: string[] | undefined;
6940
- })[];
6941
- id?: string | undefined;
6942
- }[] | undefined;
6943
- PermissionDecision?: {
6944
- matcher: string;
6945
- hooks: ({
6946
- type: "command";
6947
- command: string;
6948
- timeout?: number | undefined;
6949
- } | {
6950
- type: "http";
6951
- url: string;
6952
- timeout?: number | undefined;
6953
- headers?: Record<string, string> | undefined;
6954
- } | {
6955
- type: "prompt";
6956
- prompt: string;
6957
- model?: string | undefined;
6958
- } | {
6959
- type: "agent";
6960
- agent: string;
6961
- timeout?: number | undefined;
6962
- maxTurns?: number | undefined;
6963
- } | {
6964
- type: "guardrail";
6965
- guardrails?: string[] | undefined;
6966
- })[];
6967
- id?: string | undefined;
6968
- }[] | undefined;
6969
- } | undefined;
6970
- defaultTrustLevel?: "safe" | "moderate" | "full" | undefined;
6971
- language?: string | undefined;
6972
- preset?: string | undefined;
6973
- currentProvider?: string | undefined;
6974
- providers?: Record<string, {
6975
- options?: Record<string, TUniversalValue> | undefined;
6976
- type?: string | undefined;
6977
- timeout?: number | undefined;
6978
- model?: string | undefined;
6979
- apiKey?: string | undefined;
6980
- apiKeyRef?: {
6981
- service: string;
6982
- account: string;
6983
- } | undefined;
6984
- baseURL?: string | undefined;
6985
- }> | undefined;
6986
- provider?: {
6987
- options?: Record<string, TUniversalValue> | undefined;
6988
- timeout?: number | undefined;
6989
- model?: string | undefined;
6990
- apiKey?: string | undefined;
6991
- apiKeyRef?: {
6992
- service: string;
6993
- account: string;
6994
- } | undefined;
6995
- baseURL?: string | undefined;
6996
- name?: string | undefined;
6997
- } | undefined;
6998
- permissions?: {
6999
- allow?: string[] | undefined;
7000
- deny?: string[] | undefined;
7001
- ask?: string[] | undefined;
7002
- } | undefined;
7003
- env?: Record<string, string> | undefined;
7004
- commandEnvAllow?: string[] | undefined;
7005
- disabledHooks?: string[] | undefined;
7006
- enabledPlugins?: Record<string, boolean> | undefined;
7007
- extraKnownMarketplaces?: unknown;
7008
- autoCompactThreshold?: number | false | undefined;
7009
- transports?: Record<string, {
7010
- options?: Record<string, TUniversalValue> | undefined;
7011
- enabled?: boolean | undefined;
7012
- }> | undefined;
7013
- sandbox?: {
7014
- enabled?: boolean | undefined;
7015
- autoAllowBashIfSandboxed?: boolean | undefined;
7016
- excludedCommands?: string[] | undefined;
7017
- failIfUnavailable?: boolean | undefined;
7018
- filesystem?: {
7019
- allowWrite?: string[] | undefined;
7020
- denyRead?: string[] | undefined;
7021
- } | undefined;
7022
- network?: {
7023
- enabled?: boolean | undefined;
7024
- } | undefined;
7025
- } | undefined;
7026
- taskContext?: {
7027
- enabled?: boolean | undefined;
7028
- dir?: string | undefined;
7029
- } | undefined;
7030
- }>;
3428
+ }, z.core.$strip>>;
3429
+ }, z.core.$strip>;
7031
3430
  type TSettings = z.infer<typeof SettingsSchema>;
7032
3431
  type TProviderSettings = z.infer<typeof ProviderSchema>;
7033
3432
  /**
@@ -9280,6 +5679,17 @@ interface IExternalEventHost {
9280
5679
  */
9281
5680
  history?: ExternalEventGrantHistory;
9282
5681
  }
5682
+ interface IExternalEventTokenClaim {
5683
+ readonly grant: IExternalEventGrant;
5684
+ readonly jti: string;
5685
+ readonly expiresAt: number;
5686
+ readonly at: number;
5687
+ }
5688
+ type TExternalEventTokenClaimResult = 'claimed' | 'spent' | 'saturated' | 'unavailable';
5689
+ /** Durable replay protection supplied by a host that can persist an atomic token claim. */
5690
+ interface IExternalEventTokenClaimStore {
5691
+ claim(input: IExternalEventTokenClaim): TExternalEventTokenClaimResult;
5692
+ }
9283
5693
  /** What a grant has spent, kept per grant label so a closed and reopened grant cannot spend it again. */
9284
5694
  interface IGrantHistory {
9285
5695
  /** Spent token ids and when each stops verifying. */
@@ -9292,10 +5702,12 @@ interface IGrantHistory {
9292
5702
  declare const GRANTS: unique symbol;
9293
5703
  /** What a run remembers about each grant across the sessions it holds; opaque to its holder. */
9294
5704
  declare class ExternalEventGrantHistory {
5705
+ readonly tokenClaims?: IExternalEventTokenClaimStore | undefined;
9295
5706
  readonly [GRANTS]: Map<string, IGrantHistory>;
5707
+ constructor(tokenClaims?: IExternalEventTokenClaimStore | undefined);
9296
5708
  }
9297
5709
  /** One history per run: create it once and pass it to every session the run builds. */
9298
- declare function createExternalEventGrantHistory(): ExternalEventGrantHistory;
5710
+ declare function createExternalEventGrantHistory(tokenClaims?: IExternalEventTokenClaimStore): ExternalEventGrantHistory;
9299
5711
  /**
9300
5712
  * Session-owned admission and turn settlement for external events. The sender is the grant whose
9301
5713
  * verifier admitted the token; nothing in the delivery names it.
@@ -10421,5 +6833,5 @@ interface IInteractiveRuntimeOptions {
10421
6833
  type IInteractiveRuntimeTestOptions = Omit<IInteractiveRuntimeOptions, 'provider' | 'cwd'>;
10422
6834
  declare function createInteractiveRuntime(options: IInteractiveRuntimeOptions): IInteractiveRuntime;
10423
6835
  //#endregion
10424
- export { PluginCommandSource as $, TCommandModuleSessionRequirement as $a, TWorkspaceProjectSettingsWriteDecision as $c, TSettingsData as $i, IEditCheckpointFileRecord as $l, inspectCommandEditCheckpoint as $n, GoalController as $o, formatCommandPermissionsMessage as $r, IHandoffProgress as $s, evaluateReversibleToolSafety as $t, resolvePromptFileReferencePaths as A, removeCommandContextReference as Aa, WorkspaceProjectSessionStore as Ac, IModelListSelection as Ai, IExecutionWorkspaceTaskSpawner as Al, createSkillCommand as An, ISemanticMemoryAdapter as Ao, TAppearanceSettingsPatch as Ar, ICommandExternalEventsAdapter as As, ICreateSessionOptions as At, TPermissionResultValue$1 as B, IProviderProfileSettings as Ba, IWorkspaceProjectMutation as Bc, mergeSettings as Bi, EXECUTION_ORIGIN_METADATA_KEYS as Bl, MEMORY_COMMAND_ARGUMENT_HINT as Bn, IAppendMemoryResult as Bo, readStatusLineSettings as Br, ICommandMCPSourceProblem as Bs, ISubagentPromptOptions as Bt, TExternalEventSettlement as C, addCommandContextReference as Ca, isSafeSessionId as Cc, formatCommandBackgroundTaskList as Ci, IAgentJobMonitors as Cl, listFrameworkProjectContributionPaths as Cn, IMemoryBudget as Co, RELOAD_PLUGINS_COMMAND_DESCRIPTION as Cr, TPromptFileReferenceDiagnosticCode as Cs, storeAgentToolDeps as Ct, TFrontmatterDecodeResult as Cu, sandboxApprovalFor as D, readAutoCompactThreshold as Da, resolveLatestSessionId as Dc, HELP_COMMAND_DESCRIPTION as Di, IBackgroundTaskRunner$1 as Dl, ISkillSourceSkip as Dn, IMemoryTopicMutationResult as Do, APPEARANCE_SETTINGS_KEYS as Dr, ICommandCostBudgetAdapter as Ds, preprocessShellCommands as Dt, resolveSubagentLogDir as E, listCommandContextReferences as Ea, listUnreadableSessionsForWorkspace as Ec, readCommandBackgroundTaskLog as Ei, MonitorCommandRefusedError as El, ISkillSourceInspection as En, IMemoryStore as Eo, resolvePluginCommandAdapter as Er, ICommandCostBudget as Es, TShellExecFn as Et, formatPromptFileReferenceDiagnostics as F, IProviderCommandSettingsAdapter as Fa, IWorkspaceAncestorTextEntry as Fc, createProviderFromSettings as Fi, createMainThreadDetailPage as Fl, IResolvedConfig as Fn, IMemoryPendingRecord as Fo, STATUSLINE_COMMAND_ARGUMENT_HINT as Fr, ICommandMCPOAuthLoginRequest as Fs, TSubagentRunnerFactory as Ft, createSkillExecutionPort as G, buildProviderProfile as Ga, IWorkspaceTrustGrant as Gc, IProviderSwitchOptions as Gi, parseExecutionWorkspaceEntryId as Gl, hasSensitiveCommandMemoryContent as Gn, ProjectMemoryStore as Go, PERMISSIONS_COMMAND_DESCRIPTION as Gr, ICommandPickerAdapter as Gs, IReversibleExecutionOptions as Gt, IRemoteCommandPolicy as H, IProviderSetupInput as Ha, IWorkspaceProjectSettingsWriter as Hc, resolveActiveProvider as Hi, createBackgroundTaskExecutionEntryId as Hl, MEMORY_COMMAND_USAGE as Hn, IStartupMemory as Ho, applyPresetToSession as Hr, ICommandOutputStyleSummary as Hs, assembleSubagentPrompt as Ht, hasBlockingPromptFileReferenceDiagnostics as I, IProviderConnectionHost as Ia, IWorkspaceDirectoryEntry as Ic, readMergedProviderSettings as Ii, IResolveExecutionAttachInput as Il, TEnvResolvedSettings as In, IMemoryRetrievalResult as Io, STATUSLINE_COMMAND_DESCRIPTION as Ir, ICommandMCPOAuthLoginResult as Is, createInProcessSubagentRunner as It, ISkillExecutionResult as J, mergeProviderPatch as Ja, TWorkspaceContributionKind as Jc, applyProviderSwitch as Ji, summarizeBackgroundJobGroup as Jl, recordCommandMemoryEvent as Jn, buildGoalStartPrompt as Jo, PERMISSION_MODE_LABELS as Jr, ICommandSandboxAdapter as Js, IReversibleToolSafetyReport as Jt, IForkExecutionOptions as K, buildProviderSetupPatch as Ka, IWorkspaceTrustStore as Kc, applyActiveModelChange as Ki, BackgroundJobOrchestrator as Kl, isCommandMemoryType as Kn, isMemoryType as Ko, PERMISSION_MODE_ARGUMENT_HINT as Kr, ICommandProcessAdapter as Ks, IReversibleToolSafetyContext as Kt, toPromptFileReferenceRecords as L, IProviderConnectionRequest as La, IWorkspaceIdentity as Lc, readProviderSettings as Li, TExecutionAttachOutcome as Ll, TSandboxSettings as Ln, TMemoryCandidateStatus as Lo, applyStatusLineSettings as Lr, ICommandMCPOAuthLogoutResult as Ls, ISubagentOptions as Lt, parsePromptFileReferences as M, setCommandAutoCompactThreshold as Ma, WorkspaceSessionLogSource as Mc, resolveModelListSelection as Mi, ISpawnProcessTaskRequest as Ml, IContributionSource as Mn, IAutomaticMemoryConfig as Mo, isAppearanceSettingsPatch as Mr, ICommandHostAdapters as Ms, IToolCallHandoffPolicy as Mt, buildPromptWithFileReferences as N, writeAutoCompactThresholdSetting as Na, IRestrictedWorkspaceProjectAccess as Nc, IReadProviderSettingsOptions as Ni, createExecutionWorkspaceTaskSpawner as Nl, createWorkspaceProjectContributionSource as Nn, IMemoryCandidate as No, readAppearanceSettings as Nr, ICommandMCPActivationAdapter as Ns, IToolCallHandoffProvenance as Nt, IHookDefinitionSource as O, readAutoCompactThresholdSource as Oa, resolveReusableEmptySessionId as Oc, formatCommandHelpMessage as Oi, IBackgroundTaskSpawnerGroupRequest as Ol, SkillCommandSource as On, IMemoryWriter as Oo, DEFAULT_APPEARANCE_SETTINGS as Or, ICommandEffortAdapter as Os, substituteVariables as Ot, createPromptFileReferenceHistoryEntry as P, IProviderCommandModuleOptions as Pa, ITrustedWorkspaceProjectAccess as Pc, ProviderConfigError as Pi, createLineDetailPage as Pl, ILoadContextOptions as Pn, IMemoryExtractionInput as Po, DEFAULT_STATUS_LINE_COMMAND_SETTINGS as Pr, ICommandMCPActivationSummary as Ps, IInProcessSubagentRunnerDeps as Pt, SystemCommandExecutor as Q, ICommandModule as Qa, TWorkspaceProjectSettingsTarget as Qc, ISettingsDocumentStore as Qi, IEditCheckpointFileInspection as Ql, forkCommandEditCheckpoint as Qn, DEFAULT_GOAL_NO_PROGRESS_LIMIT as Qo, buildPermissionModeSubcommands as Qr, ICommandWorkspaceAdapter as Qs, TReversibleSideEffect as Qt, IExecutionResult$2 as R, TProviderConnectionStage as Ra, IWorkspaceIdentityResolver as Rc, resolveEnvDefaultProvider as Ri, resolveExecutionAttach as Rl, TSettings as Rn, TMemoryPolicyMode as Ro, buildStatusLineCommandSubcommands as Rr, ICommandMCPOAuthRedirectPrompt as Rs, ISubagentParentContext as Rt, TExternalEventReceipt as S, TAutoCompactThreshold$2 as Sa, createUserSessionStore as Sc, formatCommandBackgroundTask as Si, IAgentJobLogs as Sl, IProjectContributionPath as Sn, IDurableMemoryReader as So, PLUGIN_COMMAND_DESCRIPTION as Sr, IResolvedPromptFileReferences as Ss, retrieveAgentToolDeps as St, IFrontmatterDecodeInput as Su, createSubagentLogger as T, compactCommandContext as Ta, listUnreadableSessions as Tc, parseCommandBackgroundLogCursor as Ti, MONITOR_SHELL_TOOL as Tl, ISkillRootInspection as Tn, IMemoryRecaller as To, createShowPluginManagerIntent as Tr, EditCheckpointStore as Ts, ISkillPromptContext as Tt, createDefaultRemoteCommandPolicy as U, IProviderSetupPatch as Ua, IWorkspaceProjectStateStorage as Uc, IActiveModelChangeOptions as Ui, createExecutionOriginMetadata as Ul, buildMemoryCommandSubcommands as Un, MEMORY_INDEX_MAX_BYTES as Uo, IPermissionRuleGroup as Ur, ICommandPermissionModeAdapter as Us, getForkWorkerSuffix as Ut, IPromptHistoryOptions as V, IProviderSettingsBuildOptions as Va, IWorkspaceProjectReader as Vc, readMergedProviderSettingsFromSources as Vi, createBackgroundGroupExecutionEntryId as Vl, MEMORY_COMMAND_DESCRIPTION as Vn, IProjectMemorySummary as Vo, IPresetApplicationResult as Vr, ICommandOutputStyleRegistryAdapter as Vs, TSubagentSuffix as Vt, ISkillActivationHistoryData as W, TProviderSettingsDocument as Wa, IWorkspaceTrustCause as Wc, IActiveModelChangeResult as Wi, createMainThreadExecutionEntryId as Wl, createCommandMemoryStores as Wn, MEMORY_INDEX_MAX_LINES as Wo, IPermissionsCommandState as Wr, ICommandPermissionRulesAdapter as Ws, getSubagentSuffix as Wt, findUnknownModuleNames as X, upsertProviderProfile as Xa, TWorkspaceProjectAuthorityCandidate as Xc, createWorkspaceProjectSettingsStore as Xi, ICommandResult$1 as Xl, REWIND_COMMAND_DESCRIPTION as Xn, createGoalStatusTool as Xo, TPermissionRuleKind as Xr, ICommandSettingsAdapter as Xs, TReversibleRollbackLayer as Xt, executeSkill as Y, setCurrentProvider as Ya, TWorkspaceProjectAccess as Yc, resolveProviderSettingsWriteTarget as Yi, ISessionUsageRecord as Yl, REWIND_COMMAND_ARGUMENT_HINT as Yn, GOAL_SIGNAL_TOOL_NAME as Yo, RUNTIME_RULE_SOURCE as Yr, ICommandSandboxStatus as Ys, TReversibleExecutionIsolation as Yt, selectCommandModules as Z, validateProviderProfile as Za, TWorkspaceProjectMutationDecision as Zc, createNodeHostSettingsStore as Zi, IOrgPolicy as Zl, buildRewindCommandSubcommands as Zn, DEFAULT_GOAL_MAX_ITERATIONS as Zo, VALID_PERMISSION_MODES as Zr, ICommandSettingsDocument as Zs, TReversibleSafetyStatus as Zt, TInteractiveSessionOptions as _, probeProviderProfile as _a, IInteractiveSessionStore$1 as _c, BACKGROUND_COMMAND_DESCRIPTION as _i, TAutoCompactThresholdSource as _l, IBundleSkill as _n, ICommandHostSessionAccess as _o, formatCommandSessionReplayValidationReport as _r, IPromptFileReferenceHistoryData as _s, TMarketplaceSource as _t, TEffortSelection as _u, SessionRenameUnavailableError as a, IProjectSettingsPath as aa, TRemoteControlStatus as ac, readCommandPermissionMode as ai, ICommandSessionHistory as al, AgentExecutor as an, ICommandHostAdapterAccess as ao, CLEAR_COMMAND_DESCRIPTION as ar, IContextReferenceAddResult as as, IHostBundlePluginLoaderOptions as at, IEditCheckpointSummary as au, IExternalEventSource as b, DEFAULT_AUTO_COMPACT_THRESHOLD as ba, createProjectSessionStore as bc, cancelCommandBackgroundTask as bi, IAgentJobGroups as bl, TEnabledPlugins as bn, ICommandHostUserInteraction as bo, validateCommandSessionReplayLog as br, IPromptFileReferenceToken as bs, CommandRegistry as bt, resolveModelEffort as bu, TRestoredScheduleDisposition as c, TSettingsSource as ca, IAdvisorSetResult as cc, retryCommandPermissionDenial as ci, ICommandSessionPermissions as cl, TSessionFactory as cn, ICommandHostCatalog as co, ICommandSessionInfo as cr, IContextReferenceRemoveResult as cs, loadHostBundlePluginsFromScopes as ct, ICapabilityDescriptor as cu, generateSessionName as d, INodeHostSettingsSource as da, ICommandAdvisorAdapter as dc, LANGUAGE_COMMAND_DESCRIPTION as di, ICommandHostNoCapability as dl, IBundlePluginHookIssue as dn, ICommandHostContextReferences as do, RESUME_COMMAND_DESCRIPTION as dr, createContextReferenceItem as ds, NodeHostPluginSettingsStore as dt, IAgentDefinition as du, TSettingsScope as ea, IHandoffStaysBehind as ec, formatInvalidPermissionModeMessage as ei, TWorkspaceProjectStateDirectories as el, wrapReversibleExecutionTools as en, DuplicateSystemCommandSemanticRoleError as eo, listCommandEditCheckpointBranches as er, IGoalSignal as es, BundlePluginInstaller as et, IEditCheckpointInspection as eu, IInteractiveSessionShutdownOptions as f, createNodeHostSettingsSource as fa, formatAdvisorSpec as fc, RECOMMENDED_RESPONSE_LANGUAGES as fi, ICommandProductVocabulary as fl, IBundlePluginInspection as fn, ICommandHostContextWindow as fo, VALIDATE_SESSION_COMMAND_DESCRIPTION as fr, listActiveContextReferences as fs, IKnownMarketplaceEntry as ft, IProviderErrorGuidance as fu, restoreSessionRecordIntoSession as g, checkSettingsDocument as ga, IInteractiveSessionRecord$1 as gc, parseLanguageArgument as gi, IUnknownCommandModuleName as gl, IBundlePluginSkip as gn, ICommandHostPresetApplication as go, createShowSessionPickerIntent as gr, IPromptFileReferenceDiagnostic as gs, TKnownMarketplacesRegistry as gt, TEffortDisposition as gu, ISessionRecordRestoreResult as h, checkNodeHostSettingsFile as ha, IHostToolResultSpillStore as hc, formatLanguageUsageMessage as hi, IModelReapplyOptions as hl, IBundlePluginMcpServer as hn, ICommandHostPlan as ho, createSessionRenameHostAction as hr, upsertContextReference as hs, IMarketplacePluginEntry as ht, IModelEffortResolution as hu, IInteractiveRuntime as i, writeSettings as ia, IWorkspaceMoveRequest as ic, parsePermissionModeArgument as ii, ICommandSessionContextWindow as il, TProviderFactory as in, TSystemCommandSemanticRole as io, switchCommandEditCheckpointBranch as ir, isGoalCancelVerb as is, MarketplaceClient as it, IEditCheckpointRestoreResult as iu, resolvePromptFileReferences as j, resetAutoCompactThresholdSetting as ja, WorkspaceSessionLogSink as jc, buildModelListSnapshot as ji, ISpawnAgentTaskRequest as jl, inspectSkillSources as jn, ISemanticMemoryQueryResult as jo, applyAppearanceSettings as jr, ICommandHandoffAdapter as js, TSessionResponseFormat as jt, TSettingsMergeRule as k, readCommandContextState as ka, resolveSessionIdByIdOrName as kc, buildProviderProfilesSnapshot as ki, ICreateExecutionWorkspaceTaskSpawnerOptions as kl, TSkillSkipReason as kn, IPerTurnRecallConfig as ko, IAppearanceSettings as kr, ICommandExternalEventGrant as ks, ILivePromptTracePort as kt, restoredScheduleDisposition as l, createWorkspaceProjectSettingsSources as la, IAdvisorSpec as lc, writeCommandPermissionMode as li, ICommandSessionPreset as ll, describeBundleContribution as ln, ICommandHostCheckpoints as lo, RENAME_COMMAND_DESCRIPTION as lr, IContextReferenceUpsertResult as ls, BundlePluginLoader as lt, DEFAULT_AGENT_DEFINED_IN as lu, IInteractiveSession$1 as m, TSettingsCheck as ma, resolveStartupAdvisorSpec as mc, buildLanguageCommandSubcommands as mi, ICommandSkillListEntry as ml, IBundlePluginMcpFault as mn, ICommandHostMemory as mo, createSessionExitHostAction as mr, toContextReferenceRecords as ms, IMarketplaceManifest as mt, IModelEffortInputs as mu, IInteractiveRuntimeTestOptions as n, readSettings as na, IPermissionRuleLayer as nc, isPermissionMode as ni, TWorkspaceTrustState as nl, IPromptProvider as nn, ISystemCommandSemanticRoles as no, restoreCommandEditCheckpoint as nr, TGoalDecision as ns, IInstalledPluginRecord as nt, IEditCheckpointManifest as nu, persistSessionRename as o, IWorkspaceProjectSettingsSource as oa, TSandboxCommandMode as oc, readCommandPermissionsState as oi, ICommandSessionIdentity as ol, IAgentExecutorOptions as on, ICommandHostAgentJobs as oo, COST_COMMAND_DESCRIPTION as or, IContextReferenceClearResult as os, createHostBundlePluginLoader as ot, IEditCheckpointTurnInput as ou, InteractiveSession as p, THostSettingsScope as pa, parseAdvisorSpec as pc, TRecommendedResponseLanguage as pi, ICommandSessionReplayValidationReport as pl, IBundlePluginManifest as pn, ICommandHostGoal as po, clearConversationHistory as pr, removeContextReference as ps, IMarketplaceClientOptions as pt, EFFORT_LEVEL_LABELS as pu, ISkillExecutionCallbacks as q, deleteProviderProfile as qa, IWorkspaceTrustStoreSnapshot as qc, applyProviderConfiguration as qi, IBackgroundJobOrchestratorOptions as ql, listCommandUsedMemoryReferences as qn, buildGoalContinuationPrompt as qo, PERMISSION_MODE_COMMAND_DESCRIPTION as qr, ICommandRemoteControlAdapter as qs, IReversibleToolSafetyInput as qt, createInteractiveRuntime as r, updateModelInSettings as ra, IPermissionRuleRemoval as rc, listCommandSessionAllowedTools as ri, IOutputStylePrompt as rl, PromptExecutor as rn, TSystemCommandLifecycle as ro, rollbackCommandEditCheckpoint as rr, extractGoalSignal as rs, TInstalledPluginsRegistry as rt, IEditCheckpointRecorder as ru, PeerMessageIngress as s, TProjectSettingsScope as sa, ADVISOR_OFF as sc, resolvePermissionModeAdapter as si, ICommandSessionModel as sl, IAgentSession as sn, ICommandHostBackgroundTasks as so, EXIT_COMMAND_DESCRIPTION as sr, IContextReferenceInventoryLimits as ss, loadHostBundlePluginInspectionFromScopes as st, TEditCheckpointFileRestoreAction as su, IInteractiveRuntimeOptions as t, deleteSettings as ta, ILinkedDeviceSummary as tc, groupPermissionRulesBySource as ti, TWorkspaceProjectStateNamespace as tl, IPromptExecutorOptions as tn, ISystemCommand as to, listCommandEditCheckpoints as tr, IGoalStartOptions as ts, IBundlePluginInstallerOptions as tt, IEditCheckpointInspectionPlan as tu, IGenerateSessionNameOptions as u, readSettingsSourceText as ua, IAdvisorStatus as uc, LANGUAGE_COMMAND_ARGUMENT_HINT as ui, ICommandSessionRuntime as ul, IBundlePluginFeatures as un, ICommandHostContext as uo, RENAME_COMMAND_USAGE as ur, clearContextReferences as us, IPluginSettings as ut, DEFAULT_AGENT_TYPE as uu, ExternalEventGrantHistory as v, testProviderProfileCommand as va, createNodeHostSessionStore as vc, BACKGROUND_COMMAND_USAGE as vi, IPresetApplicationOptions as vl, ILoadedBundlePlugin as vn, ICommandHostSetupState as vo, parseSessionNameArgument as vr, IPromptFileReferenceLimits as vs, BuiltinCommandSource as vt, TEffortSource as vu, createExternalEventGrantHistory as w, clearCommandContextReferences as wa, listResumableSessionSummaries as wc, listCommandBackgroundTasks as wi, IAgentJobSchedules as wl, ISkillRootDescriptor as wn, IMemoryCurationQueue as wo, buildPluginCommandSubcommands as wr, wrapEditCheckpointTools as ws, IAgentToolDeps as wt, TFrontmatterProfile as wu, IExternalEventSourceOptions as x, ICompactContextResult as xa, createUserPromptHistoryFile as xc, closeCommandBackgroundTask as xi, IAgentJobHostContext as xl, IContributionDescriptor as xn, ICommandHostWorkspace as xo, PLUGIN_COMMAND_ARGUMENT_HINT as xr, IResolvedPromptFileReference as xs, createAgentTool as xt, IFrontmatterDecodeFailure as xu, ExternalEventIngress as y, AUTO_COMPACT_THRESHOLD_SETTINGS_KEY as ya, createNodeToolResultSpillStore as yc, buildBackgroundCommandSubcommands as yi, IAgentJobDispatch as yl, TBundlePluginSkipReason as yn, ICommandHostTerminalHandoff as yo, readCommandSessionInfo as yr, IPromptFileReferenceResolveOptions as ys, createBuiltinCommandModule as yt, parseModelEffort as yu, TInteractivePermissionHandler as z, ILegacyProviderSettings as za, IWorkspaceProjectAuthority as zc, mergeProviders as zi, createExecutionWorkspaceSnapshot as zl, createSystemCommands as zn, IAppendMemoryInput as zo, isStatusLineCommandSettingsPatch as zr, ICommandMCPOAuthStatus as zs, createSubagentSession as zt };
10425
- //# sourceMappingURL=createInteractiveRuntime-20Gv8UI1.d.cts.map
6836
+ export { findUnknownModuleNames as $, upsertProviderProfile as $a, TWorkspaceProjectAuthorityCandidate as $c, createWorkspaceProjectSettingsStore as $i, ICommandResult$1 as $l, REWIND_COMMAND_DESCRIPTION as $n, createGoalStatusTool as $o, TPermissionRuleKind as $r, ICommandSettingsAdapter as $s, TReversibleRollbackLayer as $t, sandboxApprovalFor as A, readAutoCompactThreshold as Aa, resolveLatestSessionId as Ac, HELP_COMMAND_DESCRIPTION as Ai, IBackgroundTaskRunner$1 as Al, ISkillSourceSkip as An, IMemoryTopicMutationResult as Ao, APPEARANCE_SETTINGS_KEYS as Ar, ICommandCostBudgetAdapter as As, preprocessShellCommands as At, toPromptFileReferenceRecords as B, IProviderConnectionRequest as Ba, IWorkspaceIdentity as Bc, readProviderSettings as Bi, TExecutionAttachOutcome as Bl, TSandboxSettings as Bn, TMemoryCandidateStatus as Bo, applyStatusLineSettings as Br, ICommandMCPOAuthLogoutResult as Bs, ISubagentOptions as Bt, IExternalEventTokenClaimStore as C, DEFAULT_AUTO_COMPACT_THRESHOLD as Ca, createProjectSessionStore as Cc, cancelCommandBackgroundTask as Ci, IAgentJobGroups as Cl, TEnabledPlugins as Cn, ICommandHostUserInteraction as Co, validateCommandSessionReplayLog as Cr, IPromptFileReferenceToken as Cs, CommandRegistry as Ct, resolveModelEffort as Cu, createExternalEventGrantHistory as D, clearCommandContextReferences as Da, listResumableSessionSummaries as Dc, listCommandBackgroundTasks as Di, IAgentJobSchedules as Dl, ISkillRootDescriptor as Dn, IMemoryCurationQueue as Do, buildPluginCommandSubcommands as Dr, wrapEditCheckpointTools as Ds, IAgentToolDeps as Dt, TFrontmatterProfile as Du, TExternalEventTokenClaimResult as E, addCommandContextReference as Ea, isSafeSessionId as Ec, formatCommandBackgroundTaskList as Ei, IAgentJobMonitors as El, listFrameworkProjectContributionPaths as En, IMemoryBudget as Eo, RELOAD_PLUGINS_COMMAND_DESCRIPTION as Er, TPromptFileReferenceDiagnosticCode as Es, storeAgentToolDeps as Et, TFrontmatterDecodeResult as Eu, parsePromptFileReferences as F, setCommandAutoCompactThreshold as Fa, WorkspaceSessionLogSource as Fc, resolveModelListSelection as Fi, ISpawnProcessTaskRequest as Fl, IContributionSource as Fn, IAutomaticMemoryConfig as Fo, isAppearanceSettingsPatch as Fr, ICommandHostAdapters as Fs, IToolCallHandoffPolicy as Ft, IRemoteCommandPolicy as G, IProviderSetupInput as Ga, IWorkspaceProjectSettingsWriter as Gc, resolveActiveProvider as Gi, createBackgroundTaskExecutionEntryId as Gl, MEMORY_COMMAND_USAGE as Gn, IStartupMemory as Go, applyPresetToSession as Gr, ICommandOutputStyleSummary as Gs, assembleSubagentPrompt as Gt, TInteractivePermissionHandler as H, ILegacyProviderSettings as Ha, IWorkspaceProjectAuthority as Hc, mergeProviders as Hi, createExecutionWorkspaceSnapshot as Hl, createSystemCommands as Hn, IAppendMemoryInput as Ho, isStatusLineCommandSettingsPatch as Hr, ICommandMCPOAuthStatus as Hs, createSubagentSession as Ht, buildPromptWithFileReferences as I, writeAutoCompactThresholdSetting as Ia, IRestrictedWorkspaceProjectAccess as Ic, IReadProviderSettingsOptions as Ii, createExecutionWorkspaceTaskSpawner as Il, createWorkspaceProjectContributionSource as In, IMemoryCandidate as Io, readAppearanceSettings as Ir, ICommandMCPActivationAdapter as Is, IToolCallHandoffProvenance as It, createSkillExecutionPort as J, buildProviderProfile as Ja, IWorkspaceTrustGrant as Jc, IProviderSwitchOptions as Ji, parseExecutionWorkspaceEntryId as Jl, hasSensitiveCommandMemoryContent as Jn, ProjectMemoryStore as Jo, PERMISSIONS_COMMAND_DESCRIPTION as Jr, ICommandPickerAdapter as Js, IReversibleExecutionOptions as Jt, createDefaultRemoteCommandPolicy as K, IProviderSetupPatch as Ka, IWorkspaceProjectStateStorage as Kc, IActiveModelChangeOptions as Ki, createExecutionOriginMetadata as Kl, buildMemoryCommandSubcommands as Kn, MEMORY_INDEX_MAX_BYTES as Ko, IPermissionRuleGroup as Kr, ICommandPermissionModeAdapter as Ks, getForkWorkerSuffix as Kt, createPromptFileReferenceHistoryEntry as L, IProviderCommandModuleOptions as La, ITrustedWorkspaceProjectAccess as Lc, ProviderConfigError as Li, createLineDetailPage as Ll, ILoadContextOptions as Ln, IMemoryExtractionInput as Lo, DEFAULT_STATUS_LINE_COMMAND_SETTINGS as Lr, ICommandMCPActivationSummary as Ls, IInProcessSubagentRunnerDeps as Lt, TSettingsMergeRule as M, readCommandContextState as Ma, resolveSessionIdByIdOrName as Mc, buildProviderProfilesSnapshot as Mi, ICreateExecutionWorkspaceTaskSpawnerOptions as Ml, TSkillSkipReason as Mn, IPerTurnRecallConfig as Mo, IAppearanceSettings as Mr, ICommandExternalEventGrant as Ms, ILivePromptTracePort as Mt, resolvePromptFileReferencePaths as N, removeCommandContextReference as Na, WorkspaceProjectSessionStore as Nc, IModelListSelection as Ni, IExecutionWorkspaceTaskSpawner as Nl, createSkillCommand as Nn, ISemanticMemoryAdapter as No, TAppearanceSettingsPatch as Nr, ICommandExternalEventsAdapter as Ns, ICreateSessionOptions as Nt, createSubagentLogger as O, compactCommandContext as Oa, listUnreadableSessions as Oc, parseCommandBackgroundLogCursor as Oi, MONITOR_SHELL_TOOL as Ol, ISkillRootInspection as On, IMemoryRecaller as Oo, createShowPluginManagerIntent as Or, EditCheckpointStore as Os, ISkillPromptContext as Ot, resolvePromptFileReferences as P, resetAutoCompactThresholdSetting as Pa, WorkspaceSessionLogSink as Pc, buildModelListSnapshot as Pi, ISpawnAgentTaskRequest as Pl, inspectSkillSources as Pn, ISemanticMemoryQueryResult as Po, applyAppearanceSettings as Pr, ICommandHandoffAdapter as Ps, TSessionResponseFormat as Pt, executeSkill as Q, setCurrentProvider as Qa, TWorkspaceProjectAccess as Qc, resolveProviderSettingsWriteTarget as Qi, ISessionUsageRecord as Ql, REWIND_COMMAND_ARGUMENT_HINT as Qn, GOAL_SIGNAL_TOOL_NAME as Qo, RUNTIME_RULE_SOURCE as Qr, ICommandSandboxStatus as Qs, TReversibleExecutionIsolation as Qt, formatPromptFileReferenceDiagnostics as R, IProviderCommandSettingsAdapter as Ra, IWorkspaceAncestorTextEntry as Rc, createProviderFromSettings as Ri, createMainThreadDetailPage as Rl, IResolvedConfig as Rn, IMemoryPendingRecord as Ro, STATUSLINE_COMMAND_ARGUMENT_HINT as Rr, ICommandMCPOAuthLoginRequest as Rs, TSubagentRunnerFactory as Rt, IExternalEventTokenClaim as S, AUTO_COMPACT_THRESHOLD_SETTINGS_KEY as Sa, createNodeToolResultSpillStore as Sc, buildBackgroundCommandSubcommands as Si, IAgentJobDispatch as Sl, TBundlePluginSkipReason as Sn, ICommandHostTerminalHandoff as So, readCommandSessionInfo as Sr, IPromptFileReferenceResolveOptions as Ss, createBuiltinCommandModule as St, parseModelEffort as Su, TExternalEventSettlement as T, TAutoCompactThreshold$2 as Ta, createUserSessionStore as Tc, formatCommandBackgroundTask as Ti, IAgentJobLogs as Tl, IProjectContributionPath as Tn, IDurableMemoryReader as To, PLUGIN_COMMAND_DESCRIPTION as Tr, IResolvedPromptFileReferences as Ts, retrieveAgentToolDeps as Tt, IFrontmatterDecodeInput as Tu, TPermissionResultValue$1 as U, IProviderProfileSettings as Ua, IWorkspaceProjectMutation as Uc, mergeSettings as Ui, EXECUTION_ORIGIN_METADATA_KEYS as Ul, MEMORY_COMMAND_ARGUMENT_HINT as Un, IAppendMemoryResult as Uo, readStatusLineSettings as Ur, ICommandMCPSourceProblem as Us, ISubagentPromptOptions as Ut, IExecutionResult$2 as V, TProviderConnectionStage as Va, IWorkspaceIdentityResolver as Vc, resolveEnvDefaultProvider as Vi, resolveExecutionAttach as Vl, TSettings as Vn, TMemoryPolicyMode as Vo, buildStatusLineCommandSubcommands as Vr, ICommandMCPOAuthRedirectPrompt as Vs, ISubagentParentContext as Vt, IPromptHistoryOptions as W, IProviderSettingsBuildOptions as Wa, IWorkspaceProjectReader as Wc, readMergedProviderSettingsFromSources as Wi, createBackgroundGroupExecutionEntryId as Wl, MEMORY_COMMAND_DESCRIPTION as Wn, IProjectMemorySummary as Wo, IPresetApplicationResult as Wr, ICommandOutputStyleRegistryAdapter as Ws, TSubagentSuffix as Wt, ISkillExecutionCallbacks as X, deleteProviderProfile as Xa, IWorkspaceTrustStoreSnapshot as Xc, applyProviderConfiguration as Xi, IBackgroundJobOrchestratorOptions as Xl, listCommandUsedMemoryReferences as Xn, buildGoalContinuationPrompt as Xo, PERMISSION_MODE_COMMAND_DESCRIPTION as Xr, ICommandRemoteControlAdapter as Xs, IReversibleToolSafetyInput as Xt, IForkExecutionOptions as Y, buildProviderSetupPatch as Ya, IWorkspaceTrustStore as Yc, applyActiveModelChange as Yi, BackgroundJobOrchestrator as Yl, isCommandMemoryType as Yn, isMemoryType as Yo, PERMISSION_MODE_ARGUMENT_HINT as Yr, ICommandProcessAdapter as Ys, IReversibleToolSafetyContext as Yt, ISkillExecutionResult as Z, mergeProviderPatch as Za, TWorkspaceContributionKind as Zc, applyProviderSwitch as Zi, summarizeBackgroundJobGroup as Zl, recordCommandMemoryEvent as Zn, buildGoalStartPrompt as Zo, PERMISSION_MODE_LABELS as Zr, ICommandSandboxAdapter as Zs, IReversibleToolSafetyReport as Zt, TInteractiveSessionOptions as _, TSettingsCheck as _a, resolveStartupAdvisorSpec as _c, buildLanguageCommandSubcommands as _i, ICommandSkillListEntry as _l, IBundlePluginMcpFault as _n, ICommandHostMemory as _o, createSessionExitHostAction as _r, toContextReferenceRecords as _s, IMarketplaceManifest as _t, IModelEffortInputs as _u, SessionRenameUnavailableError as a, readSettings as aa, IPermissionRuleLayer as ac, isPermissionMode as ai, TWorkspaceTrustState as al, IPromptProvider as an, ISystemCommandSemanticRoles as ao, restoreCommandEditCheckpoint as ar, TGoalDecision as as, IInstalledPluginRecord as at, IEditCheckpointManifest as au, IExternalEventSource as b, probeProviderProfile as ba, IInteractiveSessionStore$1 as bc, BACKGROUND_COMMAND_DESCRIPTION as bi, TAutoCompactThresholdSource as bl, IBundleSkill as bn, ICommandHostSessionAccess as bo, formatCommandSessionReplayValidationReport as br, IPromptFileReferenceHistoryData as bs, TMarketplaceSource as bt, TEffortSelection as bu, TRestoredScheduleDisposition as c, IProjectSettingsPath as ca, TRemoteControlStatus as cc, readCommandPermissionMode as ci, ICommandSessionHistory as cl, AgentExecutor as cn, ICommandHostAdapterAccess as co, CLEAR_COMMAND_DESCRIPTION as cr, IContextReferenceAddResult as cs, IHostBundlePluginLoaderOptions as ct, IEditCheckpointSummary as cu, generateSessionName as d, TSettingsSource as da, IAdvisorSetResult as dc, retryCommandPermissionDenial as di, ICommandSessionPermissions as dl, TSessionFactory as dn, ICommandHostCatalog as do, ICommandSessionInfo as dr, IContextReferenceRemoveResult as ds, loadHostBundlePluginsFromScopes as dt, ICapabilityDescriptor as du, createNodeHostSettingsStore as ea, ICommandSettingsDocument as ec, VALID_PERMISSION_MODES as ei, TWorkspaceProjectMutationDecision as el, TReversibleSafetyStatus as en, validateProviderProfile as eo, buildRewindCommandSubcommands as er, DEFAULT_GOAL_MAX_ITERATIONS as es, selectCommandModules as et, IOrgPolicy as eu, IInteractiveSessionShutdownOptions as f, createWorkspaceProjectSettingsSources as fa, IAdvisorSpec as fc, writeCommandPermissionMode as fi, ICommandSessionPreset as fl, describeBundleContribution as fn, ICommandHostCheckpoints as fo, RENAME_COMMAND_DESCRIPTION as fr, IContextReferenceUpsertResult as fs, BundlePluginLoader as ft, DEFAULT_AGENT_DEFINED_IN as fu, restoreSessionRecordIntoSession as g, THostSettingsScope as ga, parseAdvisorSpec as gc, TRecommendedResponseLanguage as gi, ICommandSessionReplayValidationReport as gl, IBundlePluginManifest as gn, ICommandHostGoal as go, clearConversationHistory as gr, removeContextReference as gs, IMarketplaceClientOptions as gt, EFFORT_LEVEL_LABELS as gu, ISessionRecordRestoreResult as h, createNodeHostSettingsSource as ha, formatAdvisorSpec as hc, RECOMMENDED_RESPONSE_LANGUAGES as hi, ICommandProductVocabulary as hl, IBundlePluginInspection as hn, ICommandHostContextWindow as ho, VALIDATE_SESSION_COMMAND_DESCRIPTION as hr, listActiveContextReferences as hs, IKnownMarketplaceEntry as ht, IProviderErrorGuidance as hu, IInteractiveRuntime as i, deleteSettings as ia, ILinkedDeviceSummary as ic, groupPermissionRulesBySource as ii, TWorkspaceProjectStateNamespace as il, IPromptExecutorOptions as in, ISystemCommand as io, listCommandEditCheckpoints as ir, IGoalStartOptions as is, IBundlePluginInstallerOptions as it, IEditCheckpointInspectionPlan as iu, IHookDefinitionSource as j, readAutoCompactThresholdSource as ja, resolveReusableEmptySessionId as jc, formatCommandHelpMessage as ji, IBackgroundTaskSpawnerGroupRequest as jl, SkillCommandSource as jn, IMemoryWriter as jo, DEFAULT_APPEARANCE_SETTINGS as jr, ICommandEffortAdapter as js, substituteVariables as jt, resolveSubagentLogDir as k, listCommandContextReferences as ka, listUnreadableSessionsForWorkspace as kc, readCommandBackgroundTaskLog as ki, MonitorCommandRefusedError as kl, ISkillSourceInspection as kn, IMemoryStore as ko, resolvePluginCommandAdapter as kr, ICommandCostBudget as ks, TShellExecFn as kt, restoredScheduleDisposition as l, IWorkspaceProjectSettingsSource as la, TSandboxCommandMode as lc, readCommandPermissionsState as li, ICommandSessionIdentity as ll, IAgentExecutorOptions as ln, ICommandHostAgentJobs as lo, COST_COMMAND_DESCRIPTION as lr, IContextReferenceClearResult as ls, createHostBundlePluginLoader as lt, IEditCheckpointTurnInput as lu, IInteractiveSession$1 as m, INodeHostSettingsSource as ma, ICommandAdvisorAdapter as mc, LANGUAGE_COMMAND_DESCRIPTION as mi, ICommandHostNoCapability as ml, IBundlePluginHookIssue as mn, ICommandHostContextReferences as mo, RESUME_COMMAND_DESCRIPTION as mr, createContextReferenceItem as ms, NodeHostPluginSettingsStore as mt, IAgentDefinition as mu, IInteractiveRuntimeTestOptions as n, TSettingsData as na, IHandoffProgress as nc, formatCommandPermissionsMessage as ni, TWorkspaceProjectSettingsWriteDecision as nl, evaluateReversibleToolSafety as nn, TCommandModuleSessionRequirement as no, inspectCommandEditCheckpoint as nr, GoalController as ns, PluginCommandSource as nt, IEditCheckpointFileRecord as nu, persistSessionRename as o, updateModelInSettings as oa, IPermissionRuleRemoval as oc, listCommandSessionAllowedTools as oi, IOutputStylePrompt as ol, PromptExecutor as on, TSystemCommandLifecycle as oo, rollbackCommandEditCheckpoint as or, extractGoalSignal as os, TInstalledPluginsRegistry as ot, IEditCheckpointRecorder as ou, InteractiveSession as p, readSettingsSourceText as pa, IAdvisorStatus as pc, LANGUAGE_COMMAND_ARGUMENT_HINT as pi, ICommandSessionRuntime as pl, IBundlePluginFeatures as pn, ICommandHostContext as po, RENAME_COMMAND_USAGE as pr, clearContextReferences as ps, IPluginSettings as pt, DEFAULT_AGENT_TYPE as pu, ISkillActivationHistoryData as q, TProviderSettingsDocument as qa, IWorkspaceTrustCause as qc, IActiveModelChangeResult as qi, createMainThreadExecutionEntryId as ql, createCommandMemoryStores as qn, MEMORY_INDEX_MAX_LINES as qo, IPermissionsCommandState as qr, ICommandPermissionRulesAdapter as qs, getSubagentSuffix as qt, createInteractiveRuntime as r, TSettingsScope as ra, IHandoffStaysBehind as rc, formatInvalidPermissionModeMessage as ri, TWorkspaceProjectStateDirectories as rl, wrapReversibleExecutionTools as rn, DuplicateSystemCommandSemanticRoleError as ro, listCommandEditCheckpointBranches as rr, IGoalSignal as rs, BundlePluginInstaller as rt, IEditCheckpointInspection as ru, PeerMessageIngress as s, writeSettings as sa, IWorkspaceMoveRequest as sc, parsePermissionModeArgument as si, ICommandSessionContextWindow as sl, TProviderFactory as sn, TSystemCommandSemanticRole as so, switchCommandEditCheckpointBranch as sr, isGoalCancelVerb as ss, MarketplaceClient as st, IEditCheckpointRestoreResult as su, IInteractiveRuntimeOptions as t, ISettingsDocumentStore as ta, ICommandWorkspaceAdapter as tc, buildPermissionModeSubcommands as ti, TWorkspaceProjectSettingsTarget as tl, TReversibleSideEffect as tn, ICommandModule as to, forkCommandEditCheckpoint as tr, DEFAULT_GOAL_NO_PROGRESS_LIMIT as ts, SystemCommandExecutor as tt, IEditCheckpointFileInspection as tu, IGenerateSessionNameOptions as u, TProjectSettingsScope as ua, ADVISOR_OFF as uc, resolvePermissionModeAdapter as ui, ICommandSessionModel as ul, IAgentSession as un, ICommandHostBackgroundTasks as uo, EXIT_COMMAND_DESCRIPTION as ur, IContextReferenceInventoryLimits as us, loadHostBundlePluginInspectionFromScopes as ut, TEditCheckpointFileRestoreAction as uu, ExternalEventGrantHistory as v, checkNodeHostSettingsFile as va, IHostToolResultSpillStore as vc, formatLanguageUsageMessage as vi, IModelReapplyOptions as vl, IBundlePluginMcpServer as vn, ICommandHostPlan as vo, createSessionRenameHostAction as vr, upsertContextReference as vs, IMarketplacePluginEntry as vt, IModelEffortResolution as vu, TExternalEventReceipt as w, ICompactContextResult as wa, createUserPromptHistoryFile as wc, closeCommandBackgroundTask as wi, IAgentJobHostContext as wl, IContributionDescriptor as wn, ICommandHostWorkspace as wo, PLUGIN_COMMAND_ARGUMENT_HINT as wr, IResolvedPromptFileReference as ws, createAgentTool as wt, IFrontmatterDecodeFailure as wu, IExternalEventSourceOptions as x, testProviderProfileCommand as xa, createNodeHostSessionStore as xc, BACKGROUND_COMMAND_USAGE as xi, IPresetApplicationOptions as xl, ILoadedBundlePlugin as xn, ICommandHostSetupState as xo, parseSessionNameArgument as xr, IPromptFileReferenceLimits as xs, BuiltinCommandSource as xt, TEffortSource as xu, ExternalEventIngress as y, checkSettingsDocument as ya, IInteractiveSessionRecord$1 as yc, parseLanguageArgument as yi, IUnknownCommandModuleName as yl, IBundlePluginSkip as yn, ICommandHostPresetApplication as yo, createShowSessionPickerIntent as yr, IPromptFileReferenceDiagnostic as ys, TKnownMarketplacesRegistry as yt, TEffortDisposition as yu, hasBlockingPromptFileReferenceDiagnostics as z, IProviderConnectionHost as za, IWorkspaceDirectoryEntry as zc, readMergedProviderSettings as zi, IResolveExecutionAttachInput as zl, TEnvResolvedSettings as zn, IMemoryRetrievalResult as zo, STATUSLINE_COMMAND_DESCRIPTION as zr, ICommandMCPOAuthLoginResult as zs, createInProcessSubagentRunner as zt };
6837
+ //# sourceMappingURL=createInteractiveRuntime-CpJLlJRl.d.cts.map