@a1st/aix-schema 0.6.0 → 0.7.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.
- package/dist/agents.d.ts +875 -16
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +14 -0
- package/dist/agents.js.map +1 -1
- package/dist/config.d.ts +12953 -5257
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +9 -1
- package/dist/config.js.map +1 -1
- package/dist/editor-support.d.ts +75 -12
- package/dist/editor-support.d.ts.map +1 -1
- package/dist/editor-support.js +135 -33
- package/dist/editor-support.js.map +1 -1
- package/dist/editors.d.ts +2299 -469
- package/dist/editors.d.ts.map +1 -1
- package/dist/editors.js +7 -4
- package/dist/editors.js.map +1 -1
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +2 -0
- package/dist/factory.js.map +1 -1
- package/dist/hooks.d.ts +21 -12
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +17 -2
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/marketplaces.d.ts +135 -0
- package/dist/marketplaces.d.ts.map +1 -0
- package/dist/marketplaces.js +29 -0
- package/dist/marketplaces.js.map +1 -0
- package/dist/plugins.d.ts +198 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/plugins.js +30 -0
- package/dist/plugins.js.map +1 -0
- package/package.json +1 -1
- package/schema.json +558 -9
package/dist/editors.d.ts.map
CHANGED
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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chema.extend({
|
|
14
14
|
permissions: z.record(z.unknown()).optional().describe('Claude Code permissions'),
|
|
15
15
|
});
|
|
16
|
-
export const
|
|
17
|
-
|
|
16
|
+
export const antigravityConfigSchema = baseEditorConfigSchema.extend({
|
|
17
|
+
antigravitySettings: z.record(z.unknown()).optional().describe('Antigravity settings'),
|
|
18
18
|
});
|
|
19
19
|
export const editorEnum = z
|
|
20
|
-
.enum(['windsurf', 'devin', 'cursor', 'claude-code', 'copilot', 'zed', 'neovim', '
|
|
20
|
+
.enum(['windsurf', 'devin', 'cursor', 'claude-code', 'copilot', 'zed', 'neovim', 'antigravity', 'agy', 'opencode', 'grok', 'grok-cli'])
|
|
21
21
|
.describe('Supported editor/agent');
|
|
22
22
|
/**
|
|
23
23
|
* Verbose object form for editors configuration.
|
|
@@ -29,8 +29,11 @@ const editorsObjectSchema = z
|
|
|
29
29
|
devin: windsurfConfigSchema.optional(),
|
|
30
30
|
cursor: cursorConfigSchema.optional(),
|
|
31
31
|
'claude-code': claudeCodeConfigSchema.optional(),
|
|
32
|
-
|
|
32
|
+
antigravity: antigravityConfigSchema.optional(),
|
|
33
|
+
agy: antigravityConfigSchema.optional(),
|
|
33
34
|
opencode: baseEditorConfigSchema.optional(),
|
|
35
|
+
grok: baseEditorConfigSchema.optional(),
|
|
36
|
+
'grok-cli': baseEditorConfigSchema.optional(),
|
|
34
37
|
})
|
|
35
38
|
.catchall(baseEditorConfigSchema);
|
|
36
39
|
/**
|
package/dist/editors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editors.js","sourceRoot":"","sources":["../src/editors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI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AE;IACtC,MAAM,EAAE,kBAAkB,CAAC,QAAQ,EAAE;IACrC,aAAa,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAChD,WAAW,EAAE,uBAAuB,CAAC,QAAQ,EAAE;IAC/C,GAAG,EAAE,uBAAuB,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAC3C,IAAI,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CAC/C,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.map
CHANGED
|
@@ -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;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,YAAY,
|
|
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,CAWnE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW,CAE9D"}
|
package/dist/factory.js
CHANGED
package/dist/factory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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;QACX,MAAM,EAAE,EAAE;
|
|
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;QACX,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,EAAE;KAClB,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
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
* Events are grouped (lifecycle, prompt, tool, model, agent, system) but the enum is a
|
|
7
7
|
* flat list for ergonomic configuration.
|
|
8
8
|
*/
|
|
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"]>;
|
|
9
|
+
export declare const hookEventSchema: z.ZodEnum<["session_start", "session_end", "setup", "interrupt", "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_model_switch", "post_model_switch", "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", "directory_added", "file_changed", "notification", "elicitation", "elicitation_result", "error_occurred"]>;
|
|
10
10
|
export type HookEvent = z.infer<typeof hookEventSchema>;
|
|
11
11
|
/**
|
|
12
12
|
* Hook action handler kind. `command` runs a shell command, `prompt` and `agent` defer
|
|
@@ -59,6 +59,7 @@ export declare const hookActionSchema: z.ZodObject<{
|
|
|
59
59
|
headers?: Record<string, string> | undefined;
|
|
60
60
|
timeout?: number | undefined;
|
|
61
61
|
model?: string | undefined;
|
|
62
|
+
name?: string | undefined;
|
|
62
63
|
mcp_tool?: string | undefined;
|
|
63
64
|
prompt?: string | undefined;
|
|
64
65
|
bash?: string | undefined;
|
|
@@ -73,7 +74,6 @@ export declare const hookActionSchema: z.ZodObject<{
|
|
|
73
74
|
allowed_env_vars?: string[] | undefined;
|
|
74
75
|
mcp_server?: string | undefined;
|
|
75
76
|
mcp_input?: Record<string, unknown> | undefined;
|
|
76
|
-
name?: string | undefined;
|
|
77
77
|
fail_closed?: boolean | undefined;
|
|
78
78
|
loop_limit?: number | null | undefined;
|
|
79
79
|
}, {
|
|
@@ -87,6 +87,7 @@ export declare const hookActionSchema: z.ZodObject<{
|
|
|
87
87
|
headers?: Record<string, string> | undefined;
|
|
88
88
|
timeout?: number | undefined;
|
|
89
89
|
model?: string | undefined;
|
|
90
|
+
name?: string | undefined;
|
|
90
91
|
mcp_tool?: string | undefined;
|
|
91
92
|
prompt?: string | undefined;
|
|
92
93
|
bash?: string | undefined;
|
|
@@ -101,7 +102,6 @@ export declare const hookActionSchema: z.ZodObject<{
|
|
|
101
102
|
allowed_env_vars?: string[] | undefined;
|
|
102
103
|
mcp_server?: string | undefined;
|
|
103
104
|
mcp_input?: Record<string, unknown> | undefined;
|
|
104
|
-
name?: string | undefined;
|
|
105
105
|
fail_closed?: boolean | undefined;
|
|
106
106
|
loop_limit?: number | null | undefined;
|
|
107
107
|
}>;
|
|
@@ -154,6 +154,7 @@ export declare const hookMatcherSchema: z.ZodObject<{
|
|
|
154
154
|
headers?: Record<string, string> | undefined;
|
|
155
155
|
timeout?: number | undefined;
|
|
156
156
|
model?: string | undefined;
|
|
157
|
+
name?: string | undefined;
|
|
157
158
|
mcp_tool?: string | undefined;
|
|
158
159
|
prompt?: string | undefined;
|
|
159
160
|
bash?: string | undefined;
|
|
@@ -168,7 +169,6 @@ export declare const hookMatcherSchema: z.ZodObject<{
|
|
|
168
169
|
allowed_env_vars?: string[] | undefined;
|
|
169
170
|
mcp_server?: string | undefined;
|
|
170
171
|
mcp_input?: Record<string, unknown> | undefined;
|
|
171
|
-
name?: string | undefined;
|
|
172
172
|
fail_closed?: boolean | undefined;
|
|
173
173
|
loop_limit?: number | null | undefined;
|
|
174
174
|
}, {
|
|
@@ -182,6 +182,7 @@ export declare const hookMatcherSchema: z.ZodObject<{
|
|
|
182
182
|
headers?: Record<string, string> | undefined;
|
|
183
183
|
timeout?: number | undefined;
|
|
184
184
|
model?: string | undefined;
|
|
185
|
+
name?: string | undefined;
|
|
185
186
|
mcp_tool?: string | undefined;
|
|
186
187
|
prompt?: string | undefined;
|
|
187
188
|
bash?: string | undefined;
|
|
@@ -196,7 +197,6 @@ export declare const hookMatcherSchema: z.ZodObject<{
|
|
|
196
197
|
allowed_env_vars?: string[] | undefined;
|
|
197
198
|
mcp_server?: string | undefined;
|
|
198
199
|
mcp_input?: Record<string, unknown> | undefined;
|
|
199
|
-
name?: string | undefined;
|
|
200
200
|
fail_closed?: boolean | undefined;
|
|
201
201
|
loop_limit?: number | null | undefined;
|
|
202
202
|
}>, "many">;
|
|
@@ -212,6 +212,7 @@ export declare const hookMatcherSchema: z.ZodObject<{
|
|
|
212
212
|
headers?: Record<string, string> | undefined;
|
|
213
213
|
timeout?: number | undefined;
|
|
214
214
|
model?: string | undefined;
|
|
215
|
+
name?: string | undefined;
|
|
215
216
|
mcp_tool?: string | undefined;
|
|
216
217
|
prompt?: string | undefined;
|
|
217
218
|
bash?: string | undefined;
|
|
@@ -226,7 +227,6 @@ export declare const hookMatcherSchema: z.ZodObject<{
|
|
|
226
227
|
allowed_env_vars?: string[] | undefined;
|
|
227
228
|
mcp_server?: string | undefined;
|
|
228
229
|
mcp_input?: Record<string, unknown> | undefined;
|
|
229
|
-
name?: string | undefined;
|
|
230
230
|
fail_closed?: boolean | undefined;
|
|
231
231
|
loop_limit?: number | null | undefined;
|
|
232
232
|
}[];
|
|
@@ -245,6 +245,7 @@ export declare const hookMatcherSchema: z.ZodObject<{
|
|
|
245
245
|
headers?: Record<string, string> | undefined;
|
|
246
246
|
timeout?: number | undefined;
|
|
247
247
|
model?: string | undefined;
|
|
248
|
+
name?: string | undefined;
|
|
248
249
|
mcp_tool?: string | undefined;
|
|
249
250
|
prompt?: string | undefined;
|
|
250
251
|
bash?: string | undefined;
|
|
@@ -259,7 +260,6 @@ export declare const hookMatcherSchema: z.ZodObject<{
|
|
|
259
260
|
allowed_env_vars?: string[] | undefined;
|
|
260
261
|
mcp_server?: string | undefined;
|
|
261
262
|
mcp_input?: Record<string, unknown> | undefined;
|
|
262
|
-
name?: string | undefined;
|
|
263
263
|
fail_closed?: boolean | undefined;
|
|
264
264
|
loop_limit?: number | null | undefined;
|
|
265
265
|
}[];
|
|
@@ -271,7 +271,7 @@ export type HookMatcher = z.infer<typeof hookMatcherSchema>;
|
|
|
271
271
|
/**
|
|
272
272
|
* Full hooks configuration - maps event types to arrays of matchers.
|
|
273
273
|
*/
|
|
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<{
|
|
274
|
+
export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "session_end", "setup", "interrupt", "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_model_switch", "post_model_switch", "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", "directory_added", "file_changed", "notification", "elicitation", "elicitation_result", "error_occurred"]>, z.ZodArray<z.ZodObject<{
|
|
275
275
|
matcher: z.ZodOptional<z.ZodString>;
|
|
276
276
|
sequential: z.ZodOptional<z.ZodBoolean>;
|
|
277
277
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -314,6 +314,7 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
|
|
|
314
314
|
headers?: Record<string, string> | undefined;
|
|
315
315
|
timeout?: number | undefined;
|
|
316
316
|
model?: string | undefined;
|
|
317
|
+
name?: string | undefined;
|
|
317
318
|
mcp_tool?: string | undefined;
|
|
318
319
|
prompt?: string | undefined;
|
|
319
320
|
bash?: string | undefined;
|
|
@@ -328,7 +329,6 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
|
|
|
328
329
|
allowed_env_vars?: string[] | undefined;
|
|
329
330
|
mcp_server?: string | undefined;
|
|
330
331
|
mcp_input?: Record<string, unknown> | undefined;
|
|
331
|
-
name?: string | undefined;
|
|
332
332
|
fail_closed?: boolean | undefined;
|
|
333
333
|
loop_limit?: number | null | undefined;
|
|
334
334
|
}, {
|
|
@@ -342,6 +342,7 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
|
|
|
342
342
|
headers?: Record<string, string> | undefined;
|
|
343
343
|
timeout?: number | undefined;
|
|
344
344
|
model?: string | undefined;
|
|
345
|
+
name?: string | undefined;
|
|
345
346
|
mcp_tool?: string | undefined;
|
|
346
347
|
prompt?: string | undefined;
|
|
347
348
|
bash?: string | undefined;
|
|
@@ -356,7 +357,6 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
|
|
|
356
357
|
allowed_env_vars?: string[] | undefined;
|
|
357
358
|
mcp_server?: string | undefined;
|
|
358
359
|
mcp_input?: Record<string, unknown> | undefined;
|
|
359
|
-
name?: string | undefined;
|
|
360
360
|
fail_closed?: boolean | undefined;
|
|
361
361
|
loop_limit?: number | null | undefined;
|
|
362
362
|
}>, "many">;
|
|
@@ -372,6 +372,7 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
|
|
|
372
372
|
headers?: Record<string, string> | undefined;
|
|
373
373
|
timeout?: number | undefined;
|
|
374
374
|
model?: string | undefined;
|
|
375
|
+
name?: string | undefined;
|
|
375
376
|
mcp_tool?: string | undefined;
|
|
376
377
|
prompt?: string | undefined;
|
|
377
378
|
bash?: string | undefined;
|
|
@@ -386,7 +387,6 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
|
|
|
386
387
|
allowed_env_vars?: string[] | undefined;
|
|
387
388
|
mcp_server?: string | undefined;
|
|
388
389
|
mcp_input?: Record<string, unknown> | undefined;
|
|
389
|
-
name?: string | undefined;
|
|
390
390
|
fail_closed?: boolean | undefined;
|
|
391
391
|
loop_limit?: number | null | undefined;
|
|
392
392
|
}[];
|
|
@@ -405,6 +405,7 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
|
|
|
405
405
|
headers?: Record<string, string> | undefined;
|
|
406
406
|
timeout?: number | undefined;
|
|
407
407
|
model?: string | undefined;
|
|
408
|
+
name?: string | undefined;
|
|
408
409
|
mcp_tool?: string | undefined;
|
|
409
410
|
prompt?: string | undefined;
|
|
410
411
|
bash?: string | undefined;
|
|
@@ -419,7 +420,6 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
|
|
|
419
420
|
allowed_env_vars?: string[] | undefined;
|
|
420
421
|
mcp_server?: string | undefined;
|
|
421
422
|
mcp_input?: Record<string, unknown> | undefined;
|
|
422
|
-
name?: string | undefined;
|
|
423
423
|
fail_closed?: boolean | undefined;
|
|
424
424
|
loop_limit?: number | null | undefined;
|
|
425
425
|
}[];
|
|
@@ -428,4 +428,13 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
|
|
|
428
428
|
sequential?: boolean | undefined;
|
|
429
429
|
}>, "many">>;
|
|
430
430
|
export type HooksConfig = z.infer<typeof hooksSchema>;
|
|
431
|
+
/**
|
|
432
|
+
* All hook event names, in the order they are declared above.
|
|
433
|
+
*/
|
|
434
|
+
export declare const hookEvents: readonly HookEvent[];
|
|
435
|
+
/**
|
|
436
|
+
* Type guard for hook event names, used to narrow user-supplied strings (CLI arguments,
|
|
437
|
+
* imported editor config) into `HookEvent` keys.
|
|
438
|
+
*/
|
|
439
|
+
export declare function isHookEvent(event: string): event is HookEvent;
|
|
431
440
|
//# sourceMappingURL=hooks.d.ts.map
|
package/dist/hooks.d.ts.map
CHANGED
|
@@ -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;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,46BAiEG,CAAC;AAEhC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,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 +12,7 @@ export const hookEventSchema = z
|
|
|
12
12
|
'session_start',
|
|
13
13
|
'session_end',
|
|
14
14
|
'setup',
|
|
15
|
+
'interrupt',
|
|
15
16
|
// Prompt.
|
|
16
17
|
'pre_prompt',
|
|
17
18
|
'user_prompt_expansion',
|
|
@@ -37,6 +38,8 @@ export const hookEventSchema = z
|
|
|
37
38
|
'pre_model_request',
|
|
38
39
|
'post_model_response',
|
|
39
40
|
'pre_response_chunk',
|
|
41
|
+
'pre_model_switch',
|
|
42
|
+
'post_model_switch',
|
|
40
43
|
// Agent / response.
|
|
41
44
|
'pre_agent',
|
|
42
45
|
'post_agent',
|
|
@@ -56,6 +59,7 @@ export const hookEventSchema = z
|
|
|
56
59
|
'instructions_loaded',
|
|
57
60
|
'config_change',
|
|
58
61
|
'cwd_changed',
|
|
62
|
+
'directory_added',
|
|
59
63
|
'file_changed',
|
|
60
64
|
'notification',
|
|
61
65
|
'elicitation',
|
|
@@ -86,7 +90,7 @@ export const hookActionSchema = z
|
|
|
86
90
|
shell: z.enum(['bash', 'powershell']).optional().describe('Shell selector when only one of `command` / `bash` / `powershell` is set.'),
|
|
87
91
|
timeout: z.number().positive().optional().describe('Timeout in seconds. Adapters convert to native units (e.g. milliseconds).'),
|
|
88
92
|
show_output: z.boolean().optional().describe('Whether to surface command output in the editor UI (Windsurf-specific).'),
|
|
89
|
-
working_directory: z.string().optional().describe('Working directory for the command. Interchangeable with `cwd
|
|
93
|
+
working_directory: z.string().optional().describe('Working directory for the command. Interchangeable with `cwd` (Windsurf uses `working_directory`; Copilot and Claude Code use `cwd`).'),
|
|
90
94
|
cwd: z.string().optional().describe('Working directory for the command. Interchangeable with `working_directory`.'),
|
|
91
95
|
env: z.record(z.string(), z.string()).optional().describe('Environment variables to set when running the command.'),
|
|
92
96
|
// Async execution (Claude Code).
|
|
@@ -123,7 +127,7 @@ export const hookActionSchema = z
|
|
|
123
127
|
export const hookMatcherSchema = z
|
|
124
128
|
.object({
|
|
125
129
|
matcher: z.string().optional().describe('Pattern to match (regex or pipe-separated literal, editor-specific).'),
|
|
126
|
-
sequential: z.boolean().optional().describe('Run hooks in this group sequentially instead of in parallel
|
|
130
|
+
sequential: z.boolean().optional().describe('Run hooks in this group sequentially instead of in parallel.'),
|
|
127
131
|
description: z.string().optional().describe('Free-form description for the group.'),
|
|
128
132
|
hooks: z.array(hookActionSchema).describe('Hooks to execute when matched'),
|
|
129
133
|
})
|
|
@@ -134,4 +138,15 @@ export const hookMatcherSchema = z
|
|
|
134
138
|
export const hooksSchema = z
|
|
135
139
|
.record(hookEventSchema, z.array(hookMatcherSchema))
|
|
136
140
|
.describe('Hooks configuration for lifecycle events');
|
|
141
|
+
/**
|
|
142
|
+
* All hook event names, in the order they are declared above.
|
|
143
|
+
*/
|
|
144
|
+
export const hookEvents = hookEventSchema.options;
|
|
145
|
+
/**
|
|
146
|
+
* Type guard for hook event names, used to narrow user-supplied strings (CLI arguments,
|
|
147
|
+
* imported editor config) into `HookEvent` keys.
|
|
148
|
+
*/
|
|
149
|
+
export function isHookEvent(event) {
|
|
150
|
+
return hookEvents.some((name) => name === event);
|
|
151
|
+
}
|
|
137
152
|
//# sourceMappingURL=hooks.js.map
|
package/dist/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC5B,IAAI,CAAC;IACH,aAAa;IACb,eAAe;IACf,aAAa;IACb,OAAO;
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC5B,IAAI,CAAC;IACH,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E,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC;AACpD,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const marketplaceNameSchema: z.ZodString;
|
|
3
|
+
export declare const marketplaceObjectSchema: z.ZodObject<{
|
|
4
|
+
source: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
5
|
+
git: z.ZodString;
|
|
6
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
7
|
+
path: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
git: string;
|
|
10
|
+
path?: string | undefined;
|
|
11
|
+
ref?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
git: string;
|
|
14
|
+
path?: string | undefined;
|
|
15
|
+
ref?: string | undefined;
|
|
16
|
+
}>, z.ZodObject<{
|
|
17
|
+
path: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
path: string;
|
|
20
|
+
}, {
|
|
21
|
+
path: string;
|
|
22
|
+
}>]>;
|
|
23
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
source: string | {
|
|
27
|
+
path: string;
|
|
28
|
+
} | {
|
|
29
|
+
git: string;
|
|
30
|
+
path?: string | undefined;
|
|
31
|
+
ref?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
description?: string | undefined;
|
|
34
|
+
enabled?: boolean | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
source: string | {
|
|
37
|
+
path: string;
|
|
38
|
+
} | {
|
|
39
|
+
git: string;
|
|
40
|
+
path?: string | undefined;
|
|
41
|
+
ref?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
enabled?: boolean | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const marketplaceValueSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
47
|
+
source: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
48
|
+
git: z.ZodString;
|
|
49
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
50
|
+
path: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
git: string;
|
|
53
|
+
path?: string | undefined;
|
|
54
|
+
ref?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
git: string;
|
|
57
|
+
path?: string | undefined;
|
|
58
|
+
ref?: string | undefined;
|
|
59
|
+
}>, z.ZodObject<{
|
|
60
|
+
path: z.ZodString;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
path: string;
|
|
63
|
+
}, {
|
|
64
|
+
path: string;
|
|
65
|
+
}>]>;
|
|
66
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
description: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
source: string | {
|
|
70
|
+
path: string;
|
|
71
|
+
} | {
|
|
72
|
+
git: string;
|
|
73
|
+
path?: string | undefined;
|
|
74
|
+
ref?: string | undefined;
|
|
75
|
+
};
|
|
76
|
+
description?: string | undefined;
|
|
77
|
+
enabled?: boolean | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
source: string | {
|
|
80
|
+
path: string;
|
|
81
|
+
} | {
|
|
82
|
+
git: string;
|
|
83
|
+
path?: string | undefined;
|
|
84
|
+
ref?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
description?: string | undefined;
|
|
87
|
+
enabled?: boolean | undefined;
|
|
88
|
+
}>]>;
|
|
89
|
+
export declare const marketplacesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
90
|
+
source: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
91
|
+
git: z.ZodString;
|
|
92
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
93
|
+
path: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
git: string;
|
|
96
|
+
path?: string | undefined;
|
|
97
|
+
ref?: string | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
git: string;
|
|
100
|
+
path?: string | undefined;
|
|
101
|
+
ref?: string | undefined;
|
|
102
|
+
}>, z.ZodObject<{
|
|
103
|
+
path: z.ZodString;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
path: string;
|
|
106
|
+
}, {
|
|
107
|
+
path: string;
|
|
108
|
+
}>]>;
|
|
109
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
description: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
source: string | {
|
|
113
|
+
path: string;
|
|
114
|
+
} | {
|
|
115
|
+
git: string;
|
|
116
|
+
path?: string | undefined;
|
|
117
|
+
ref?: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
description?: string | undefined;
|
|
120
|
+
enabled?: boolean | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
source: string | {
|
|
123
|
+
path: string;
|
|
124
|
+
} | {
|
|
125
|
+
git: string;
|
|
126
|
+
path?: string | undefined;
|
|
127
|
+
ref?: string | undefined;
|
|
128
|
+
};
|
|
129
|
+
description?: string | undefined;
|
|
130
|
+
enabled?: boolean | undefined;
|
|
131
|
+
}>]>, z.ZodLiteral<false>]>>;
|
|
132
|
+
export type MarketplaceObject = z.infer<typeof marketplaceObjectSchema>;
|
|
133
|
+
export type MarketplaceValue = z.infer<typeof marketplaceValueSchema>;
|
|
134
|
+
export type MarketplacesConfig = z.infer<typeof marketplacesSchema>;
|
|
135
|
+
//# sourceMappingURL=marketplaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplaces.d.ts","sourceRoot":"","sources":["../src/marketplaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB,aAQI,CAAC;AAEvC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYY,CAAC;AAEjD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAE0D,CAAC;AAE1F,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { gitRefSchema, localRefSchema } from './references.js';
|
|
3
|
+
export const marketplaceNameSchema = z
|
|
4
|
+
.string()
|
|
5
|
+
.min(1)
|
|
6
|
+
.max(64)
|
|
7
|
+
.regex(/^[a-z0-9]+(-[a-z0-9]+)*$/, 'Marketplace name must be lowercase alphanumeric with single hyphens (e.g., "claude-plugins-official")')
|
|
8
|
+
.describe('Marketplace identifier');
|
|
9
|
+
export const marketplaceObjectSchema = z
|
|
10
|
+
.object({
|
|
11
|
+
source: z
|
|
12
|
+
.union([
|
|
13
|
+
z.string().describe('Git shorthand, HTTPS URL, or local path'),
|
|
14
|
+
gitRefSchema,
|
|
15
|
+
localRefSchema,
|
|
16
|
+
])
|
|
17
|
+
.describe('Source location of the marketplace catalog'),
|
|
18
|
+
enabled: z.boolean().optional().describe('Whether the marketplace is active (default: true)'),
|
|
19
|
+
description: z.string().optional().describe('Optional description of the marketplace'),
|
|
20
|
+
})
|
|
21
|
+
.describe('Marketplace configuration object');
|
|
22
|
+
export const marketplaceValueSchema = z.union([
|
|
23
|
+
z.string().describe('Marketplace source URL, git shorthand, or local directory path'),
|
|
24
|
+
marketplaceObjectSchema,
|
|
25
|
+
]);
|
|
26
|
+
export const marketplacesSchema = z
|
|
27
|
+
.record(marketplaceNameSchema, z.union([marketplaceValueSchema, z.literal(false)]))
|
|
28
|
+
.describe('Map of marketplace names to their catalog locations (or false to disable)');
|
|
29
|
+
//# sourceMappingURL=marketplaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplaces.js","sourceRoot":"","sources":["../src/marketplaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KAClC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACH,0BAA0B,EAC1B,uGAAuG,CACzG;KACA,QAAQ,CAAC,wBAAwB,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACpC,MAAM,CAAC;IACL,MAAM,EAAE,CAAC;SACL,KAAK,CAAC;QACJ,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QAC9D,YAAY;QACZ,cAAc;KAChB,CAAC;SACD,QAAQ,CAAC,4CAA4C,CAAC;IAC1D,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;IAC7F,WAAW,EAAE,CAAC,CAAC,MAAM,EAA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