@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
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const pluginNameSchema: z.ZodString;
|
|
3
|
+
export declare const pluginObjectSchema: z.ZodObject<{
|
|
4
|
+
marketplace: z.ZodOptional<z.ZodString>;
|
|
5
|
+
source: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
6
|
+
git: z.ZodString;
|
|
7
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
8
|
+
path: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
git: string;
|
|
11
|
+
path?: string | undefined;
|
|
12
|
+
ref?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
git: string;
|
|
15
|
+
path?: string | undefined;
|
|
16
|
+
ref?: string | undefined;
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
path: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
path: string;
|
|
21
|
+
}, {
|
|
22
|
+
path: string;
|
|
23
|
+
}>, z.ZodObject<{
|
|
24
|
+
version: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
+
registry: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
version: string;
|
|
28
|
+
registry?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
version: string;
|
|
31
|
+
registry?: string | undefined;
|
|
32
|
+
}>]>>;
|
|
33
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
|
+
editor: z.ZodOptional<z.ZodRecord<z.ZodEnum<["windsurf", "devin", "cursor", "claude-code", "copilot", "zed", "neovim", "antigravity", "agy", "opencode", "grok", "grok-cli"]>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
options?: Record<string, unknown> | undefined;
|
|
38
|
+
enabled?: boolean | undefined;
|
|
39
|
+
editor?: Partial<Record<"windsurf" | "devin" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | "antigravity" | "agy" | "opencode" | "grok" | "grok-cli", Record<string, unknown>>> | undefined;
|
|
40
|
+
source?: string | {
|
|
41
|
+
path: string;
|
|
42
|
+
} | {
|
|
43
|
+
git: string;
|
|
44
|
+
path?: string | undefined;
|
|
45
|
+
ref?: string | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
version: string;
|
|
48
|
+
registry?: string | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
marketplace?: string | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
options?: Record<string, unknown> | undefined;
|
|
53
|
+
enabled?: boolean | undefined;
|
|
54
|
+
editor?: Partial<Record<"windsurf" | "devin" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | "antigravity" | "agy" | "opencode" | "grok" | "grok-cli", Record<string, unknown>>> | undefined;
|
|
55
|
+
source?: string | {
|
|
56
|
+
path: string;
|
|
57
|
+
} | {
|
|
58
|
+
git: string;
|
|
59
|
+
path?: string | undefined;
|
|
60
|
+
ref?: string | undefined;
|
|
61
|
+
} | {
|
|
62
|
+
version: string;
|
|
63
|
+
registry?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
marketplace?: string | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const pluginValueSchema: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
|
|
68
|
+
marketplace: z.ZodOptional<z.ZodString>;
|
|
69
|
+
source: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
70
|
+
git: z.ZodString;
|
|
71
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
72
|
+
path: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
git: string;
|
|
75
|
+
path?: string | undefined;
|
|
76
|
+
ref?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
git: string;
|
|
79
|
+
path?: string | undefined;
|
|
80
|
+
ref?: string | undefined;
|
|
81
|
+
}>, z.ZodObject<{
|
|
82
|
+
path: z.ZodString;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
path: string;
|
|
85
|
+
}, {
|
|
86
|
+
path: string;
|
|
87
|
+
}>, z.ZodObject<{
|
|
88
|
+
version: z.ZodEffects<z.ZodString, string, string>;
|
|
89
|
+
registry: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
version: string;
|
|
92
|
+
registry?: string | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
version: string;
|
|
95
|
+
registry?: string | undefined;
|
|
96
|
+
}>]>>;
|
|
97
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
99
|
+
editor: z.ZodOptional<z.ZodRecord<z.ZodEnum<["windsurf", "devin", "cursor", "claude-code", "copilot", "zed", "neovim", "antigravity", "agy", "opencode", "grok", "grok-cli"]>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
options?: Record<string, unknown> | undefined;
|
|
102
|
+
enabled?: boolean | undefined;
|
|
103
|
+
editor?: Partial<Record<"windsurf" | "devin" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | "antigravity" | "agy" | "opencode" | "grok" | "grok-cli", Record<string, unknown>>> | undefined;
|
|
104
|
+
source?: string | {
|
|
105
|
+
path: string;
|
|
106
|
+
} | {
|
|
107
|
+
git: string;
|
|
108
|
+
path?: string | undefined;
|
|
109
|
+
ref?: string | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
version: string;
|
|
112
|
+
registry?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
marketplace?: string | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
options?: Record<string, unknown> | undefined;
|
|
117
|
+
enabled?: boolean | undefined;
|
|
118
|
+
editor?: Partial<Record<"windsurf" | "devin" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | "antigravity" | "agy" | "opencode" | "grok" | "grok-cli", Record<string, unknown>>> | undefined;
|
|
119
|
+
source?: string | {
|
|
120
|
+
path: string;
|
|
121
|
+
} | {
|
|
122
|
+
git: string;
|
|
123
|
+
path?: string | undefined;
|
|
124
|
+
ref?: string | undefined;
|
|
125
|
+
} | {
|
|
126
|
+
version: string;
|
|
127
|
+
registry?: string | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
marketplace?: string | undefined;
|
|
130
|
+
}>]>;
|
|
131
|
+
export declare const pluginsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
|
|
132
|
+
marketplace: z.ZodOptional<z.ZodString>;
|
|
133
|
+
source: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
134
|
+
git: z.ZodString;
|
|
135
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
136
|
+
path: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
git: string;
|
|
139
|
+
path?: string | undefined;
|
|
140
|
+
ref?: string | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
git: string;
|
|
143
|
+
path?: string | undefined;
|
|
144
|
+
ref?: string | undefined;
|
|
145
|
+
}>, z.ZodObject<{
|
|
146
|
+
path: z.ZodString;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
path: string;
|
|
149
|
+
}, {
|
|
150
|
+
path: string;
|
|
151
|
+
}>, z.ZodObject<{
|
|
152
|
+
version: z.ZodEffects<z.ZodString, string, string>;
|
|
153
|
+
registry: z.ZodOptional<z.ZodString>;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
version: string;
|
|
156
|
+
registry?: string | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
version: string;
|
|
159
|
+
registry?: string | undefined;
|
|
160
|
+
}>]>>;
|
|
161
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
163
|
+
editor: z.ZodOptional<z.ZodRecord<z.ZodEnum<["windsurf", "devin", "cursor", "claude-code", "copilot", "zed", "neovim", "antigravity", "agy", "opencode", "grok", "grok-cli"]>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
options?: Record<string, unknown> | undefined;
|
|
166
|
+
enabled?: boolean | undefined;
|
|
167
|
+
editor?: Partial<Record<"windsurf" | "devin" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | "antigravity" | "agy" | "opencode" | "grok" | "grok-cli", Record<string, unknown>>> | undefined;
|
|
168
|
+
source?: string | {
|
|
169
|
+
path: string;
|
|
170
|
+
} | {
|
|
171
|
+
git: string;
|
|
172
|
+
path?: string | undefined;
|
|
173
|
+
ref?: string | undefined;
|
|
174
|
+
} | {
|
|
175
|
+
version: string;
|
|
176
|
+
registry?: string | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
marketplace?: string | undefined;
|
|
179
|
+
}, {
|
|
180
|
+
options?: Record<string, unknown> | undefined;
|
|
181
|
+
enabled?: boolean | undefined;
|
|
182
|
+
editor?: Partial<Record<"windsurf" | "devin" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | "antigravity" | "agy" | "opencode" | "grok" | "grok-cli", Record<string, unknown>>> | undefined;
|
|
183
|
+
source?: string | {
|
|
184
|
+
path: string;
|
|
185
|
+
} | {
|
|
186
|
+
git: string;
|
|
187
|
+
path?: string | undefined;
|
|
188
|
+
ref?: string | undefined;
|
|
189
|
+
} | {
|
|
190
|
+
version: string;
|
|
191
|
+
registry?: string | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
marketplace?: string | undefined;
|
|
194
|
+
}>]>, z.ZodLiteral<false>]>>;
|
|
195
|
+
export type PluginObject = z.infer<typeof pluginObjectSchema>;
|
|
196
|
+
export type PluginValue = z.infer<typeof pluginValueSchema>;
|
|
197
|
+
export type PluginsConfig = z.infer<typeof pluginsSchema>;
|
|
198
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB,aAQ+E,CAAC;AAE7G,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWY,CAAC;AAE5C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI5B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAEkE,CAAC;AAE7F,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/plugins.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { sourceRefSchema } from './references.js';
|
|
3
|
+
import { editorEnum } from './editors.js';
|
|
4
|
+
export const pluginNameSchema = z
|
|
5
|
+
.string()
|
|
6
|
+
.min(1)
|
|
7
|
+
.max(128)
|
|
8
|
+
.regex(/^(@[a-z0-9_.-]+\/)?[a-z0-9_.-]+(@[a-z0-9_.-]+)?$/, 'Plugin name must be a valid package name or plugin@marketplace identifier')
|
|
9
|
+
.describe('Plugin identifier (e.g., "code-review", "code-review@claude-plugins-official", "@scope/pkg")');
|
|
10
|
+
export const pluginObjectSchema = z
|
|
11
|
+
.object({
|
|
12
|
+
marketplace: z.string().optional().describe('Marketplace name where plugin is published'),
|
|
13
|
+
source: sourceRefSchema.optional().describe('Direct source reference (path, git URL, npm package, or registry)'),
|
|
14
|
+
enabled: z.boolean().optional().describe('Whether the plugin is active (default: true)'),
|
|
15
|
+
options: z.record(z.unknown()).optional().describe('Plugin-specific configuration options'),
|
|
16
|
+
editor: z
|
|
17
|
+
.record(editorEnum, z.record(z.unknown()))
|
|
18
|
+
.optional()
|
|
19
|
+
.describe('Editor-specific plugin configuration fields'),
|
|
20
|
+
})
|
|
21
|
+
.describe('Plugin configuration object');
|
|
22
|
+
export const pluginValueSchema = z.union([
|
|
23
|
+
z.boolean().describe('Boolean flag to enable or disable plugin'),
|
|
24
|
+
z.string().describe('Source shorthand (path, git repo, or package name)'),
|
|
25
|
+
pluginObjectSchema,
|
|
26
|
+
]);
|
|
27
|
+
export const pluginsSchema = z
|
|
28
|
+
.record(pluginNameSchema, z.union([pluginValueSchema, z.literal(false)]))
|
|
29
|
+
.describe('Map of plugin names or plugin@marketplace identifiers to their configuration');
|
|
30
|
+
//# sourceMappingURL=plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC7B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC;KACR,KAAK,CACH,kDAAkD,EAClD,2EAA2E,CAC7E;KACA,QAAQ,CAAC,8FAA8F,CAAC,CAAC;AAE7G,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACL,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACzF,MAAM,EAAE,eAAe,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mEAAmE,CAAC;IAChH,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IACxF,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAC3F,MAAM,EAAE,CAAC;SACL,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;SACzC,QAAQ,EAAE;SACV,QAAQ,CAAC,6CAA6C,CAAC;CAC7D,CAAC;KACD,QAAQ,CAAC,6BAA6B,CAAC,CAAC;AAE5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACtC,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;IAChE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;IACzE,kBAAkB;CACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC1B,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACxE,QAAQ,CAAC,8EAA8E,CAAC,CAAC"}
|