@a1st/aix-schema 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,CAQnE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW,CAE9D"}
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,CASnE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW,CAE9D"}
package/dist/factory.js CHANGED
@@ -12,6 +12,7 @@ export function createEmptyConfig(scope) {
12
12
  mcp: {},
13
13
  rules: {},
14
14
  prompts: {},
15
+ agents: {},
15
16
  };
16
17
  }
17
18
  /**
@@ -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;KACb,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,MAAoB;IAC9C,OAAO,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC;AACpC,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;QACX,MAAM,EAAE,EAAE;KACZ,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
@@ -49,15 +49,16 @@ export declare const hookActionSchema: z.ZodObject<{
49
49
  fail_closed: z.ZodOptional<z.ZodBoolean>;
50
50
  loop_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
51
  }, "strip", z.ZodTypeAny, {
52
+ url?: string | undefined;
52
53
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
54
+ description?: string | undefined;
53
55
  command?: string | undefined;
54
56
  env?: Record<string, string> | undefined;
55
57
  cwd?: string | undefined;
56
58
  shell?: "bash" | "powershell" | undefined;
57
- url?: string | undefined;
58
59
  headers?: Record<string, string> | undefined;
59
60
  timeout?: number | undefined;
60
- description?: string | undefined;
61
+ model?: string | undefined;
61
62
  mcp_tool?: string | undefined;
62
63
  prompt?: string | undefined;
63
64
  bash?: string | undefined;
@@ -72,20 +73,20 @@ export declare const hookActionSchema: z.ZodObject<{
72
73
  allowed_env_vars?: string[] | undefined;
73
74
  mcp_server?: string | undefined;
74
75
  mcp_input?: Record<string, unknown> | undefined;
75
- model?: string | undefined;
76
76
  name?: string | undefined;
77
77
  fail_closed?: boolean | undefined;
78
78
  loop_limit?: number | null | undefined;
79
79
  }, {
80
+ url?: string | undefined;
80
81
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
82
+ description?: string | undefined;
81
83
  command?: string | undefined;
82
84
  env?: Record<string, string> | undefined;
83
85
  cwd?: string | undefined;
84
86
  shell?: "bash" | "powershell" | undefined;
85
- url?: string | undefined;
86
87
  headers?: Record<string, string> | undefined;
87
88
  timeout?: number | undefined;
88
- description?: string | undefined;
89
+ model?: string | undefined;
89
90
  mcp_tool?: string | undefined;
90
91
  prompt?: string | undefined;
91
92
  bash?: string | undefined;
@@ -100,7 +101,6 @@ export declare const hookActionSchema: z.ZodObject<{
100
101
  allowed_env_vars?: string[] | undefined;
101
102
  mcp_server?: string | undefined;
102
103
  mcp_input?: Record<string, unknown> | undefined;
103
- model?: string | undefined;
104
104
  name?: string | undefined;
105
105
  fail_closed?: boolean | undefined;
106
106
  loop_limit?: number | null | undefined;
@@ -144,15 +144,16 @@ export declare const hookMatcherSchema: z.ZodObject<{
144
144
  fail_closed: z.ZodOptional<z.ZodBoolean>;
145
145
  loop_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
146
146
  }, "strip", z.ZodTypeAny, {
147
+ url?: string | undefined;
147
148
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
149
+ description?: string | undefined;
148
150
  command?: string | undefined;
149
151
  env?: Record<string, string> | undefined;
150
152
  cwd?: string | undefined;
151
153
  shell?: "bash" | "powershell" | undefined;
152
- url?: string | undefined;
153
154
  headers?: Record<string, string> | undefined;
154
155
  timeout?: number | undefined;
155
- description?: string | undefined;
156
+ model?: string | undefined;
156
157
  mcp_tool?: string | undefined;
157
158
  prompt?: string | undefined;
158
159
  bash?: string | undefined;
@@ -167,20 +168,20 @@ export declare const hookMatcherSchema: z.ZodObject<{
167
168
  allowed_env_vars?: string[] | undefined;
168
169
  mcp_server?: string | undefined;
169
170
  mcp_input?: Record<string, unknown> | undefined;
170
- model?: string | undefined;
171
171
  name?: string | undefined;
172
172
  fail_closed?: boolean | undefined;
173
173
  loop_limit?: number | null | undefined;
174
174
  }, {
175
+ url?: string | undefined;
175
176
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
177
+ description?: string | undefined;
176
178
  command?: string | undefined;
177
179
  env?: Record<string, string> | undefined;
178
180
  cwd?: string | undefined;
179
181
  shell?: "bash" | "powershell" | undefined;
180
- url?: string | undefined;
181
182
  headers?: Record<string, string> | undefined;
182
183
  timeout?: number | undefined;
183
- description?: string | undefined;
184
+ model?: string | undefined;
184
185
  mcp_tool?: string | undefined;
185
186
  prompt?: string | undefined;
186
187
  bash?: string | undefined;
@@ -195,22 +196,22 @@ export declare const hookMatcherSchema: z.ZodObject<{
195
196
  allowed_env_vars?: string[] | undefined;
196
197
  mcp_server?: string | undefined;
197
198
  mcp_input?: Record<string, unknown> | undefined;
198
- model?: string | undefined;
199
199
  name?: string | undefined;
200
200
  fail_closed?: boolean | undefined;
201
201
  loop_limit?: number | null | undefined;
202
202
  }>, "many">;
203
203
  }, "strip", z.ZodTypeAny, {
204
204
  hooks: {
205
+ url?: string | undefined;
205
206
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
207
+ description?: string | undefined;
206
208
  command?: string | undefined;
207
209
  env?: Record<string, string> | undefined;
208
210
  cwd?: string | undefined;
209
211
  shell?: "bash" | "powershell" | undefined;
210
- url?: string | undefined;
211
212
  headers?: Record<string, string> | undefined;
212
213
  timeout?: number | undefined;
213
- description?: string | undefined;
214
+ model?: string | undefined;
214
215
  mcp_tool?: string | undefined;
215
216
  prompt?: string | undefined;
216
217
  bash?: string | undefined;
@@ -225,7 +226,6 @@ export declare const hookMatcherSchema: z.ZodObject<{
225
226
  allowed_env_vars?: string[] | undefined;
226
227
  mcp_server?: string | undefined;
227
228
  mcp_input?: Record<string, unknown> | undefined;
228
- model?: string | undefined;
229
229
  name?: string | undefined;
230
230
  fail_closed?: boolean | undefined;
231
231
  loop_limit?: number | null | undefined;
@@ -235,15 +235,16 @@ export declare const hookMatcherSchema: z.ZodObject<{
235
235
  sequential?: boolean | undefined;
236
236
  }, {
237
237
  hooks: {
238
+ url?: string | undefined;
238
239
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
240
+ description?: string | undefined;
239
241
  command?: string | undefined;
240
242
  env?: Record<string, string> | undefined;
241
243
  cwd?: string | undefined;
242
244
  shell?: "bash" | "powershell" | undefined;
243
- url?: string | undefined;
244
245
  headers?: Record<string, string> | undefined;
245
246
  timeout?: number | undefined;
246
- description?: string | undefined;
247
+ model?: string | undefined;
247
248
  mcp_tool?: string | undefined;
248
249
  prompt?: string | undefined;
249
250
  bash?: string | undefined;
@@ -258,7 +259,6 @@ export declare const hookMatcherSchema: z.ZodObject<{
258
259
  allowed_env_vars?: string[] | undefined;
259
260
  mcp_server?: string | undefined;
260
261
  mcp_input?: Record<string, unknown> | undefined;
261
- model?: string | undefined;
262
262
  name?: string | undefined;
263
263
  fail_closed?: boolean | undefined;
264
264
  loop_limit?: number | null | undefined;
@@ -304,15 +304,16 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
304
304
  fail_closed: z.ZodOptional<z.ZodBoolean>;
305
305
  loop_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
306
306
  }, "strip", z.ZodTypeAny, {
307
+ url?: string | undefined;
307
308
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
309
+ description?: string | undefined;
308
310
  command?: string | undefined;
309
311
  env?: Record<string, string> | undefined;
310
312
  cwd?: string | undefined;
311
313
  shell?: "bash" | "powershell" | undefined;
312
- url?: string | undefined;
313
314
  headers?: Record<string, string> | undefined;
314
315
  timeout?: number | undefined;
315
- description?: string | undefined;
316
+ model?: string | undefined;
316
317
  mcp_tool?: string | undefined;
317
318
  prompt?: string | undefined;
318
319
  bash?: string | undefined;
@@ -327,20 +328,20 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
327
328
  allowed_env_vars?: string[] | undefined;
328
329
  mcp_server?: string | undefined;
329
330
  mcp_input?: Record<string, unknown> | undefined;
330
- model?: string | undefined;
331
331
  name?: string | undefined;
332
332
  fail_closed?: boolean | undefined;
333
333
  loop_limit?: number | null | undefined;
334
334
  }, {
335
+ url?: string | undefined;
335
336
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
337
+ description?: string | undefined;
336
338
  command?: string | undefined;
337
339
  env?: Record<string, string> | undefined;
338
340
  cwd?: string | undefined;
339
341
  shell?: "bash" | "powershell" | undefined;
340
- url?: string | undefined;
341
342
  headers?: Record<string, string> | undefined;
342
343
  timeout?: number | undefined;
343
- description?: string | undefined;
344
+ model?: string | undefined;
344
345
  mcp_tool?: string | undefined;
345
346
  prompt?: string | undefined;
346
347
  bash?: string | undefined;
@@ -355,22 +356,22 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
355
356
  allowed_env_vars?: string[] | undefined;
356
357
  mcp_server?: string | undefined;
357
358
  mcp_input?: Record<string, unknown> | undefined;
358
- model?: string | undefined;
359
359
  name?: string | undefined;
360
360
  fail_closed?: boolean | undefined;
361
361
  loop_limit?: number | null | undefined;
362
362
  }>, "many">;
363
363
  }, "strip", z.ZodTypeAny, {
364
364
  hooks: {
365
+ url?: string | undefined;
365
366
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
367
+ description?: string | undefined;
366
368
  command?: string | undefined;
367
369
  env?: Record<string, string> | undefined;
368
370
  cwd?: string | undefined;
369
371
  shell?: "bash" | "powershell" | undefined;
370
- url?: string | undefined;
371
372
  headers?: Record<string, string> | undefined;
372
373
  timeout?: number | undefined;
373
- description?: string | undefined;
374
+ model?: string | undefined;
374
375
  mcp_tool?: string | undefined;
375
376
  prompt?: string | undefined;
376
377
  bash?: string | undefined;
@@ -385,7 +386,6 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
385
386
  allowed_env_vars?: string[] | undefined;
386
387
  mcp_server?: string | undefined;
387
388
  mcp_input?: Record<string, unknown> | undefined;
388
- model?: string | undefined;
389
389
  name?: string | undefined;
390
390
  fail_closed?: boolean | undefined;
391
391
  loop_limit?: number | null | undefined;
@@ -395,15 +395,16 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
395
395
  sequential?: boolean | undefined;
396
396
  }, {
397
397
  hooks: {
398
+ url?: string | undefined;
398
399
  type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
400
+ description?: string | undefined;
399
401
  command?: string | undefined;
400
402
  env?: Record<string, string> | undefined;
401
403
  cwd?: string | undefined;
402
404
  shell?: "bash" | "powershell" | undefined;
403
- url?: string | undefined;
404
405
  headers?: Record<string, string> | undefined;
405
406
  timeout?: number | undefined;
406
- description?: string | undefined;
407
+ model?: string | undefined;
407
408
  mcp_tool?: string | undefined;
408
409
  prompt?: string | undefined;
409
410
  bash?: string | undefined;
@@ -418,7 +419,6 @@ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "sessi
418
419
  allowed_env_vars?: string[] | undefined;
419
420
  mcp_server?: string | undefined;
420
421
  mcp_input?: Record<string, unknown> | undefined;
421
- model?: string | undefined;
422
422
  name?: string | undefined;
423
423
  fail_closed?: boolean | undefined;
424
424
  loop_limit?: number | null | undefined;
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './skill.js';
6
6
  export * from './mcp.js';
7
7
  export * from './rules.js';
8
8
  export * from './prompts.js';
9
+ export * from './agents.js';
9
10
  export * from './hooks.js';
10
11
  export * from './editors.js';
11
12
  export * from './editor-support.js';
@@ -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,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"}
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ export * from './skill.js';
6
6
  export * from './mcp.js';
7
7
  export * from './rules.js';
8
8
  export * from './prompts.js';
9
+ export * from './agents.js';
9
10
  export * from './hooks.js';
10
11
  export * from './editors.js';
11
12
  export * from './editor-support.js';
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,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"}