@a1st/aix-schema 0.0.12 → 0.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"editors.d.ts","sourceRoot":"","sources":["../src/editors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC;AAEH,eAAO,MAAM,UAAU,8EAEe,CAAC;AA8BvC;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAEoB,CAAC"}
package/dist/editors.js CHANGED
@@ -13,8 +13,11 @@ export const cursorConfigSchema = baseEditorConfigSchema.extend({
13
13
  export const claudeCodeConfigSchema = baseEditorConfigSchema.extend({
14
14
  permissions: z.record(z.unknown()).optional().describe('Claude Code permissions'),
15
15
  });
16
+ export const geminiConfigSchema = baseEditorConfigSchema.extend({
17
+ geminiSettings: z.record(z.unknown()).optional().describe('Gemini CLI settings'),
18
+ });
16
19
  export const editorEnum = z
17
- .enum(['windsurf', 'cursor', 'claude-code', 'copilot', 'zed', 'neovim'])
20
+ .enum(['windsurf', 'cursor', 'claude-code', 'copilot', 'zed', 'neovim', 'gemini', 'opencode'])
18
21
  .describe('Supported editor/agent');
19
22
  /**
20
23
  * Verbose object form for editors configuration.
@@ -25,6 +28,8 @@ const editorsObjectSchema = z
25
28
  windsurf: windsurfConfigSchema.optional(),
26
29
  cursor: cursorConfigSchema.optional(),
27
30
  'claude-code': claudeCodeConfigSchema.optional(),
31
+ gemini: geminiConfigSchema.optional(),
32
+ opencode: baseEditorConfigSchema.optional(),
28
33
  })
29
34
  .catchall(baseE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AAE,sBAAsB,CAAC,QAAQ,EAAE;CAC7C,CAAC;KACD,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AAErC;;;;GAIG;AACH,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;AAEnG;;;;GAIG;AACH,MAAM,kBAAkB,GAAG,CAAC;KACxB,KAAK,CAAC,sBAAsB,CAAC;KAC7B,QAAQ,CAAC,6CAA6C,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC1B,KAAK,CAAC,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;KAChD,QAAQ,CAAC,gCAAgC,CAAC,CAAC"}
package/dist/factory.d.ts CHANGED
@@ -1,7 +1,15 @@
1
1
  import type { AiJsonConfig } from './config.js';
2
+ import type { ConfigScope } from './core.js';
2
3
  /**
3
4
  * Create an empty AiJsonConfig with all required fields initialized to their defaults.
4
5
  * This is the single source of truth for creating new configs.
6
+ *
7
+ * When `scope` is `"user"`, it is included in the returned object.
8
+ * When omitted or `"project"` (the default), the scope field is omitted.
5
9
  */
6
- export declare function createEmptyConfig(): AiJsonConfig;
10
+ export declare function createEmptyConfig(scope?: ConfigScope): AiJsonConfig;
11
+ /**
12
+ * Resolve the effective scope of a config, defaulting to "project" when unset.
13
+ */
14
+ export declare function resolveScope(config: AiJsonConfig): ConfigScope;
7
15
  //# sourceMappingURL=factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,YAAY,CAOhD"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,YAAY,CAQnE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW,CAE9D"}
package/dist/factory.js CHANGED
@@ -1,13 +1,23 @@
1
1
  /**
2
2
  * Create an empty AiJsonConfig with all required fields initialized to their defaults.
3
3
  * This is the single source of truth for creating new configs.
4
+ *
5
+ * When `scope` is `"user"`, it is included in the returned object.
6
+ * When omitted or `"project"` (the default), the scope field is omitted.
4
7
  */
5
- export function createEmptyConfig() {
8
+ export function createEmptyConfig(scope) {
6
9
  return {
10
+ ...(scope === 'user' ? { scope } : {}),
7
11
  skills: {},
8
12
  mcp: {},
9
13
  rules: {},
10
14
  prompts: {},
11
15
  };
12
16
  }
17
+ /**
18
+ * Resolve the effective scope of a config, defaulting to "project" when unset.
19
+ */
20
+ export function resolveScope(config) {
21
+ return config.scope ?? 'project';
22
+ }
13
23
  //# sourceMappingURL=factory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAC9B,OAAO;QACJ,MAAM,EAAE,EAAE;QACV,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,EAAE;KACb,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAmB;IAClD,OAAO;QACJ,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtC,MAAM,EAAE,EAAE;QACV,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,EAAE;KACb,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,MAAoB;IAC9C,OAAO,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC;AACpC,CAAC"}
package/dist/hooks.d.ts CHANGED
@@ -1,106 +1,431 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
- * Generic hook event types that map to editor-specific events.
4
- * These are normalized event names that adapters translate to native formats.
3
+ * Generic hook event types that map to editor-specific events. Adapters translate these
4
+ * normalized names into the editor's native event names.
5
+ *
6
+ * Events are grouped (lifecycle, prompt, tool, model, agent, system) but the enum is a
7
+ * flat list for ergonomic configuration.
5
8
  */
6
- export declare const hookEventSchema: z.ZodEnum<["pre_tool_use", "post_tool_use", "pre_file_read", "post_file_read", "pre_file_write", "post_file_write", "pre_command", "post_command", "pre_mcp_tool", "post_mcp_tool", "pre_prompt", "session_start", "session_end", "agent_stop"]>;
9
+ export declare const hookEventSchema: z.ZodEnum<["session_start", "session_end", "setup", "pre_prompt", "user_prompt_expansion", "pre_tool_use", "post_tool_use", "post_tool_use_failure", "post_tool_batch", "pre_tool_selection", "permission_request", "permission_denied", "pre_file_read", "post_file_read", "pre_file_write", "post_file_write", "pre_command", "post_command", "pre_mcp_tool", "post_mcp_tool", "pre_tab_file_read", "post_tab_file_edit", "pre_model_request", "post_model_response", "pre_response_chunk", "pre_agent", "post_agent", "post_response", "post_response_with_transcript", "agent_stop", "subagent_start", "subagent_stop", "subagent_idle", "pre_compact", "post_compact", "task_created", "task_completed", "worktree_setup", "worktree_remove", "instructions_loaded", "config_change", "cwd_changed", "file_changed", "notification", "elicitation", "elicitation_result", "error_occurred"]>;
7
10
  export type HookEvent = z.infer<typeof hookEventSchema>;
8
11
  /**
9
- * Individual hook action configuration.
12
+ * Hook action handler kind. `command` runs a shell command, `prompt` and `agent` defer
13
+ * to an LLM, `http` sends a POST request, and `mcp_tool` invokes a configured MCP tool.
14
+ * Adapters drop unsupported kinds with a warning instead of failing the install.
15
+ */
16
+ export declare const hookActionTypeSchema: z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>;
17
+ export type HookActionType = z.infer<typeof hookActionTypeSchema>;
18
+ /**
19
+ * Individual hook action configuration. The schema is intentionally permissive: every
20
+ * field except for the conceptual command is optional, and adapters report any field
21
+ * the target editor cannot express through `HooksStrategy.getUnsupportedFields`.
10
22
  */
11
23
  export declare const hookActionSchema: z.ZodObject<{
12
- command: z.ZodString;
24
+ type: z.ZodOptional<z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>>;
25
+ command: z.ZodOptional<z.ZodString>;
26
+ bash: z.ZodOptional<z.ZodString>;
27
+ powershell: z.ZodOptional<z.ZodString>;
28
+ shell: z.ZodOptional<z.ZodEnum<["bash", "powershell"]>>;
13
29
  timeout: z.ZodOptional<z.ZodNumber>;
14
30
  show_output: z.ZodOptional<z.ZodBoolean>;
15
31
  working_directory: z.ZodOptional<z.ZodString>;
32
+ cwd: z.ZodOptional<z.ZodString>;
33
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34
+ async: z.ZodOptional<z.ZodBoolean>;
35
+ async_rewake: z.ZodOptional<z.ZodBoolean>;
36
+ if: z.ZodOptional<z.ZodString>;
37
+ status_message: z.ZodOptional<z.ZodString>;
38
+ once: z.ZodOptional<z.ZodBoolean>;
39
+ url: z.ZodOptional<z.ZodString>;
40
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
41
+ allowed_env_vars: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ mcp_server: z.ZodOptional<z.ZodString>;
43
+ mcp_tool: z.ZodOptional<z.ZodString>;
44
+ mcp_input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
45
+ prompt: z.ZodOptional<z.ZodString>;
46
+ model: z.ZodOptional<z.ZodString>;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ name: z.ZodOptional<z.ZodString>;
49
+ fail_closed: z.ZodOptional<z.ZodBoolean>;
50
+ loop_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
51
  }, "strip", z.ZodTypeAny, {
17
- command: string;
52
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
53
+ command?: string | undefined;
54
+ env?: Record<string, string> | undefined;
55
+ cwd?: string | undefined;
56
+ shell?: "bash" | "powershell" | undefined;
57
+ url?: string | undefined;
58
+ headers?: Record<string, string> | undefined;
18
59
  timeout?: number | undefined;
60
+ description?: string | undefined;
61
+ mcp_tool?: string | undefined;
62
+ prompt?: string | undefined;
63
+ bash?: string | undefined;
64
+ powershell?: string | undefined;
19
65
  show_output?: boolean | undefined;
20
66
  working_directory?: string | undefined;
67
+ async?: boolean | undefined;
68
+ async_rewake?: boolean | undefined;
69
+ if?: string | undefined;
70
+ status_message?: string | undefined;
71
+ once?: boolean | undefined;
72
+ allowed_env_vars?: string[] | undefined;
73
+ mcp_server?: string | undefined;
74
+ mcp_input?: Record<string, unknown> | undefined;
75
+ model?: string | undefined;
76
+ name?: string | undefined;
77
+ fail_closed?: boolean | undefined;
78
+ loop_limit?: number | null | undefined;
21
79
  }, {
22
- command: string;
80
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
81
+ command?: string | undefined;
82
+ env?: Record<string, string> | undefined;
83
+ cwd?: string | undefined;
84
+ shell?: "bash" | "powershell" | undefined;
85
+ url?: string | undefined;
86
+ headers?: Record<string, string> | undefined;
23
87
  timeout?: number | undefined;
88
+ description?: string | undefined;
89
+ mcp_tool?: string | undefined;
90
+ prompt?: string | undefined;
91
+ bash?: string | undefined;
92
+ powershell?: string | undefined;
24
93
  show_output?: boolean | undefined;
25
94
  working_directory?: string | undefined;
95
+ async?: boolean | undefined;
96
+ async_rewake?: boolean | undefined;
97
+ if?: string | undefined;
98
+ status_message?: string | undefined;
99
+ once?: boolean | undefined;
100
+ allowed_env_vars?: string[] | undefined;
101
+ mcp_server?: string | undefined;
102
+ mcp_input?: Record<string, unknown> | undefined;
103
+ model?: string | undefined;
104
+ name?: string | undefined;
105
+ fail_closed?: boolean | undefined;
106
+ loop_limit?: number | null | undefined;
26
107
  }>;
27
108
  export type HookAction = z.infer<typeof hookActionSchema>;
28
109
  /**
29
- * Hook matcher with associated actions. The matcher is an optional regex pattern to filter events.
110
+ * Hook matcher with associated actions. `matcher` filters when the actions run; on
111
+ * editors that support it, `sequential` controls whether actions in the group fan out in
112
+ * parallel (default) or run one at a time. `description` is for documentation only.
30
113
  */
31
114
  export declare const hookMatcherSchema: z.ZodObject<{
32
115
  matcher: z.ZodOptional<z.ZodString>;
116
+ sequential: z.ZodOptional<z.ZodBoolean>;
117
+ description: z.ZodOptional<z.ZodString>;
33
118
  hooks: z.ZodArray<z.ZodObject<{
34
- command: z.ZodString;
119
+ type: z.ZodOptional<z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>>;
120
+ command: z.ZodOptional<z.ZodString>;
121
+ bash: z.ZodOptional<z.ZodString>;
122
+ powershell: z.ZodOptional<z.ZodString>;
123
+ shell: z.ZodOptional<z.ZodEnum<["bash", "powershell"]>>;
35
124
  timeout: z.ZodOptional<z.ZodNumber>;
36
125
  show_output: z.ZodOptional<z.ZodBoolean>;
37
126
  working_directory: z.ZodOptional<z.ZodString>;
127
+ cwd: z.ZodOptional<z.ZodString>;
128
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
129
+ async: z.ZodOptional<z.ZodBoolean>;
130
+ async_rewake: z.ZodOptional<z.ZodBoolean>;
131
+ if: z.ZodOptional<z.ZodString>;
132
+ status_message: z.ZodOptional<z.ZodString>;
133
+ once: z.ZodOptional<z.ZodBoolean>;
134
+ url: z.ZodOptional<z.ZodString>;
135
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
136
+ allowed_env_vars: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
137
+ mcp_server: z.ZodOptional<z.ZodString>;
138
+ mcp_tool: z.ZodOptional<z.ZodString>;
139
+ mcp_input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
140
+ prompt: z.ZodOptional<z.ZodString>;
141
+ model: z.ZodOptional<z.ZodString>;
142
+ description: z.ZodOptional<z.ZodString>;
143
+ name: z.ZodOptional<z.ZodString>;
144
+ fail_closed: z.ZodOptional<z.ZodBoolean>;
145
+ loop_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
146
  }, "strip", z.ZodTypeAny, {
39
- command: string;
147
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
148
+ command?: string | undefined;
149
+ env?: Record<string, string> | undefined;
150
+ cwd?: string | undefined;
151
+ shell?: "bash" | "powershell" | undefined;
152
+ url?: string | undefined;
153
+ headers?: Record<string, string> | undefined;
40
154
  timeout?: number | undefined;
155
+ description?: string | undefined;
156
+ mcp_tool?: string | undefined;
157
+ prompt?: string | undefined;
158
+ bash?: string | undefined;
159
+ powershell?: string | undefined;
41
160
  show_output?: boolean | undefined;
42
161
  working_directory?: string | undefined;
162
+ async?: boolean | undefined;
163
+ async_rewake?: boolean | undefined;
164
+ if?: string | undefined;
165
+ status_message?: string | undefined;
166
+ once?: boolean | undefined;
167
+ allowed_env_vars?: string[] | undefined;
168
+ mcp_server?: string | undefined;
169
+ mcp_input?: Record<string, unknown> | undefined;
170
+ model?: string | undefined;
171
+ name?: string | undefined;
172
+ fail_closed?: boolean | undefined;
173
+ loop_limit?: number | null | undefined;
43
174
  }, {
44
- command: string;
175
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
176
+ command?: string | undefined;
177
+ env?: Record<string, string> | undefined;
178
+ cwd?: string | undefined;
179
+ shell?: "bash" | "powershell" | undefined;
180
+ url?: string | undefined;
181
+ headers?: Record<string, string> | undefined;
45
182
  timeout?: number | undefined;
183
+ description?: string | undefined;
184
+ mcp_tool?: string | undefined;
185
+ prompt?: string | undefined;
186
+ bash?: string | undefined;
187
+ powershell?: string | undefined;
46
188
  show_output?: boolean | undefined;
47
189
  working_directory?: string | undefined;
190
+ async?: boolean | undefined;
191
+ async_rewake?: boolean | undefined;
192
+ if?: string | undefined;
193
+ status_message?: string | undefined;
194
+ once?: boolean | undefined;
195
+ allowed_env_vars?: string[] | undefined;
196
+ mcp_server?: string | undefined;
197
+ mcp_input?: Record<string, unknown> | undefined;
198
+ model?: string | undefined;
199
+ name?: string | undefined;
200
+ fail_closed?: boolean | undefined;
201
+ loop_limit?: number | null | undefined;
48
202
  }>, "many">;
49
203
  }, "strip", z.ZodTypeAny, {
50
204
  hooks: {
51
- command: string;
205
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
206
+ command?: string | undefined;
207
+ env?: Record<string, string> | undefined;
208
+ cwd?: string | undefined;
209
+ shell?: "bash" | "powershell" | undefined;
210
+ url?: string | undefined;
211
+ headers?: Record<string, string> | undefined;
52
212
  timeout?: number | undefined;
213
+ description?: string | undefined;
214
+ mcp_tool?: string | undefined;
215
+ prompt?: string | undefined;
216
+ bash?: string | undefined;
217
+ powershell?: string | undefined;
53
218
  show_output?: boolean | undefined;
54
219
  working_directory?: string | undefined;
220
+ async?: boolean | undefined;
221
+ async_rewake?: boolean | undefined;
222
+ if?: string | undefined;
223
+ status_message?: string | undefined;
224
+ once?: boolean | undefined;
225
+ allowed_env_vars?: string[] | undefined;
226
+ mcp_server?: string | undefined;
227
+ mcp_input?: Record<string, unknown> | undefined;
228
+ model?: string | undefined;
229
+ name?: string | undefined;
230
+ fail_closed?: boolean | undefined;
231
+ loop_limit?: number | null | undefined;
55
232
  }[];
233
+ description?: string | undefined;
56
234
  matcher?: string | undefined;
235
+ sequential?: boolean | undefined;
57
236
  }, {
58
237
  hooks: {
59
- command: string;
238
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
239
+ command?: string | undefined;
240
+ env?: Record<string, string> | undefined;
241
+ cwd?: string | undefined;
242
+ shell?: "bash" | "powershell" | undefined;
243
+ url?: string | undefined;
244
+ headers?: Record<string, string> | undefined;
60
245
  timeout?: number | undefined;
246
+ description?: string | undefined;
247
+ mcp_tool?: string | undefined;
248
+ prompt?: string | undefined;
249
+ bash?: string | undefined;
250
+ powershell?: string | undefined;
61
251
  show_output?: boolean | undefined;
62
252
  working_directory?: string | undefined;
253
+ async?: boolean | undefined;
254
+ async_rewake?: boolean | undefined;
255
+ if?: string | undefined;
256
+ status_message?: string | undefined;
257
+ once?: boolean | undefined;
258
+ allowed_env_vars?: string[] | undefined;
259
+ mcp_server?: string | undefined;
260
+ mcp_input?: Record<string, unknown> | undefined;
261
+ model?: string | undefined;
262
+ name?: string | undefined;
263
+ fail_closed?: boolean | undefined;
264
+ loop_limit?: number | null | undefined;
63
265
  }[];
266
+ description?: string | undefined;
64
267
  matcher?: string | undefined;
268
+ sequential?: boolean | undefined;
65
269
  }>;
66
270
  export type HookMatcher = z.infer<typeof hookMatcherSchema>;
67
271
  /**
68
272
  * Full hooks configuration - maps event types to arrays of matchers.
69
273
  */
70
- export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["pre_tool_use", "post_tool_use", "pre_file_read", "post_file_read", "pre_file_write", "post_file_write", "pre_command", "post_command", "pre_mcp_tool", "post_mcp_tool", "pre_prompt", "session_start", "session_end", "agent_stop"]>, z.ZodArray<z.ZodObject<{
274
+ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "session_end", "setup", "pre_prompt", "user_prompt_expansion", "pre_tool_use", "post_tool_use", "post_tool_use_failure", "post_tool_batch", "pre_tool_selection", "permission_request", "permission_denied", "pre_file_read", "post_file_read", "pre_file_write", "post_file_write", "pre_command", "post_command", "pre_mcp_tool", "post_mcp_tool", "pre_tab_file_read", "post_tab_file_edit", "pre_model_request", "post_model_response", "pre_response_chunk", "pre_agent", "post_agent", "post_response", "post_response_with_transcript", "agent_stop", "subagent_start", "subagent_stop", "subagent_idle", "pre_compact", "post_compact", "task_created", "task_completed", "worktree_setup", "worktree_remove", "instructions_loaded", "config_change", "cwd_changed", "file_changed", "notification", "elicitation", "elicitation_result", "error_occurred"]>, z.ZodArray<z.ZodObject<{
71
275
  matcher: z.ZodOptional<z.ZodString>;
276
+ sequential: z.ZodOptional<z.ZodBoolean>;
277
+ description: z.ZodOptional<z.ZodString>;
72
278
  hooks: z.ZodArray<z.ZodObject<{
73
- command: z.ZodString;
279
+ type: z.ZodOptional<z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>>;
280
+ command: z.ZodOptional<z.ZodString>;
281
+ bash: z.ZodOptional<z.ZodString>;
282
+ powershell: z.ZodOptional<z.ZodString>;
283
+ shell: z.ZodOptional<z.ZodEnum<["bash", "powershell"]>>;
74
284
  timeout: z.ZodOptional<z.ZodNumber>;
75
285
  show_output: z.ZodOptional<z.ZodBoolean>;
76
286
  working_directory: z.ZodOptional<z.ZodString>;
287
+ cwd: z.ZodOptional<z.ZodString>;
288
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
289
+ async: z.ZodOptional<z.ZodBoolean>;
290
+ async_rewake: z.ZodOptional<z.ZodBoolean>;
291
+ if: z.ZodOptional<z.ZodString>;
292
+ status_message: z.ZodOptional<z.ZodString>;
293
+ once: z.ZodOptional<z.ZodBoolean>;
294
+ url: z.ZodOptional<z.ZodString>;
295
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
296
+ allowed_env_vars: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
297
+ mcp_server: z.ZodOptional<z.ZodString>;
298
+ mcp_tool: z.ZodOptional<z.ZodString>;
299
+ mcp_input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
300
+ prompt: z.ZodOptional<z.ZodString>;
301
+ model: z.ZodOptional<z.ZodString>;
302
+ description: z.ZodOptional<z.ZodString>;
303
+ name: z.ZodOptional<z.ZodString>;
304
+ fail_closed: z.ZodOptional<z.ZodBoolean>;
305
+ loop_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
306
  }, "strip", z.ZodTypeAny, {
78
- command: string;
307
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
308
+ command?: string | undefined;
309
+ env?: Record<string, string> | undefined;
310
+ cwd?: string | undefined;
311
+ shell?: "bash" | "powershell" | undefined;
312
+ url?: string | undefined;
313
+ headers?: Record<string, string> | undefined;
79
314
  timeout?: number | undefined;
315
+ description?: string | undefined;
316
+ mcp_tool?: string | undefined;
317
+ prompt?: string | undefined;
318
+ bash?: string | undefined;
319
+ powershell?: string | undefined;
80
320
  show_output?: boolean | undefined;
81
321
  working_directory?: string | undefined;
322
+ async?: boolean | undefined;
323
+ async_rewake?: boolean | undefined;
324
+ if?: string | undefined;
325
+ status_message?: string | undefined;
326
+ once?: boolean | undefined;
327
+ allowed_env_vars?: string[] | undefined;
328
+ mcp_server?: string | undefined;
329
+ mcp_input?: Record<string, unknown> | undefined;
330
+ model?: string | undefined;
331
+ name?: string | undefined;
332
+ fail_closed?: boolean | undefined;
333
+ loop_limit?: number | null | undefined;
82
334
  }, {
83
- command: string;
335
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
336
+ command?: string | undefined;
337
+ env?: Record<string, string> | undefined;
338
+ cwd?: string | undefined;
339
+ shell?: "bash" | "powershell" | undefined;
340
+ url?: string | undefined;
341
+ headers?: Record<string, string> | undefined;
84
342
  timeout?: number | undefined;
343
+ description?: string | undefined;
344
+ mcp_tool?: string | undefined;
345
+ prompt?: string | undefined;
346
+ bash?: string | undefined;
347
+ powershell?: string | undefined;
85
348
  show_output?: boolean | undefined;
86
349
  working_directory?: string | undefined;
350
+ async?: boolean | undefined;
351
+ async_rewake?: boolean | undefined;
352
+ if?: string | undefined;
353
+ status_message?: string | undefined;
354
+ once?: boolean | undefined;
355
+ allowed_env_vars?: string[] | undefined;
356
+ mcp_server?: string | undefined;
357
+ mcp_input?: Record<string, unknown> | undefined;
358
+ model?: string | undefined;
359
+ name?: string | undefined;
360
+ fail_closed?: boolean | undefined;
361
+ loop_limit?: number | null | undefined;
87
362
  }>, "many">;
88
363
  }, "strip", z.ZodTypeAny, {
89
364
  hooks: {
90
- command: string;
365
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
366
+ command?: string | undefined;
367
+ env?: Record<string, string> | undefined;
368
+ cwd?: string | undefined;
369
+ shell?: "bash" | "powershell" | undefined;
370
+ url?: string | undefined;
371
+ headers?: Record<string, string> | undefined;
91
372
  timeout?: number | undefined;
373
+ description?: string | undefined;
374
+ mcp_tool?: string | undefined;
375
+ prompt?: string | undefined;
376
+ bash?: string | undefined;
377
+ powershell?: string | undefined;
92
378
  show_output?: boolean | undefined;
93
379
  working_directory?: string | undefined;
380
+ async?: boolean | undefined;
381
+ async_rewake?: boolean | undefined;
382
+ if?: string | undefined;
383
+ status_message?: string | undefined;
384
+ once?: boolean | undefined;
385
+ allowed_env_vars?: string[] | undefined;
386
+ mcp_server?: string | undefined;
387
+ mcp_input?: Record<string, unknown> | undefined;
388
+ model?: string | undefined;
389
+ name?: string | undefined;
390
+ fail_closed?: boolean | undefined;
391
+ loop_limit?: number | null | undefined;
94
392
  }[];
393
+ description?: string | undefined;
95
394
  matcher?: string | undefined;
395
+ sequential?: boolean | undefined;
96
396
  }, {
97
397
  hooks: {
98
- command: string;
398
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
399
+ command?: string | undefined;
400
+ env?: Record<string, string> | undefined;
401
+ cwd?: string | undefined;
402
+ shell?: "bash" | "powershell" | undefined;
403
+ url?: string | undefined;
404
+ headers?: Record<string, string> | undefined;
99
405
  timeout?: number | undefined;
406
+ description?: string | undefined;
407
+ mcp_tool?: string | undefined;
408
+ prompt?: string | undefined;
409
+ bash?: string | undefined;
410
+ powershell?: string | undefined;
100
411
  show_output?: boolean | undefined;
101
412
  working_directory?: string | undefined;
413
+ async?: boolean | undefined;
414
+ async_rewake?: boolean | undefined;
415
+ if?: string | undefined;
416
+ status_message?: string | undefined;
417
+ once?: boolean | undefined;
418
+ allowed_env_vars?: string[] | undefined;
419
+ mcp_server?: string | undefined;
420
+ mcp_input?: Record<string, unknown> | undefined;
421
+ model?: string | undefined;
422
+ name?: string | undefined;
423
+ fail_closed?: boolean | undefined;
424
+ loop_limit?: number | null | undefined;
102
425
  }[];
426
+ description?: string | undefined;
103
427
  matcher?: string | undefined;
428
+ sequential?: boolean | undefined;
104
429
  }>, "many">>;
105
430
  export type HooksConfig = z.infer<typeof hooksSchema>;
106
431
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,eAAe,kPAiBG,CAAC;AAEhC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAOY,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKY,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAEgC,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names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