@a1st/aix-schema 0.0.6 → 0.0.12
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/README.md +6 -6
- package/dist/config.d.ts +8 -8
- package/dist/editors.d.ts +2 -2
- package/dist/editors.d.ts.map +1 -1
- package/dist/editors.js +1 -1
- package/dist/editors.js.map +1 -1
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +0 -2
- package/dist/factory.js.map +1 -1
- package/package.json +7 -7
- package/schema.json +1246 -1328
package/README.md
CHANGED
|
@@ -18,11 +18,11 @@ This package defines the structure and validation for `ai.json` files. It's used
|
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from
|
|
21
|
+
parseConfig, // Parse and validate a full ai.json config
|
|
22
|
+
parseLocalConfig, // Parse config allowing local-only fields
|
|
23
|
+
aiJsonSchema, // Zod schema for ai.json
|
|
24
|
+
type AiJsonConfig, // TypeScript type for validated config
|
|
25
|
+
} from "@a1st/aix-schema";
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## JSON Schema
|
|
@@ -31,7 +31,7 @@ The package exports `schema.json` for IDE integration:
|
|
|
31
31
|
|
|
32
32
|
```json
|
|
33
33
|
{
|
|
34
|
-
|
|
34
|
+
"$schema": "node_modules/@a1st/aix-schema/schema.json"
|
|
35
35
|
}
|
|
36
36
|
```
|
|
37
37
|
|
package/dist/config.d.ts
CHANGED
|
@@ -479,7 +479,7 @@ export declare const aiJsonConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
479
479
|
content?: string | undefined;
|
|
480
480
|
argumentHint?: string | undefined;
|
|
481
481
|
}>]>, z.ZodLiteral<false>]>>>>;
|
|
482
|
-
editors: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodEnum<["windsurf", "cursor", "claude-code", "
|
|
482
|
+
editors: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodEnum<["windsurf", "cursor", "claude-code", "copilot", "zed", "neovim"]>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
483
483
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
484
484
|
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
485
485
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4129,7 +4129,7 @@ export declare const aiJsonConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4129
4129
|
globs?: string[] | undefined;
|
|
4130
4130
|
content?: string | undefined;
|
|
4131
4131
|
}> | undefined;
|
|
4132
|
-
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "
|
|
4132
|
+
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | Record<string, {
|
|
4133
4133
|
enabled: boolean;
|
|
4134
4134
|
rules?: Record<string, string | false | {
|
|
4135
4135
|
path?: string | undefined;
|
|
@@ -5082,7 +5082,7 @@ export declare const aiJsonConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5082
5082
|
globs?: string[] | undefined;
|
|
5083
5083
|
content?: string | undefined;
|
|
5084
5084
|
}> | undefined;
|
|
5085
|
-
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "
|
|
5085
|
+
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | Record<string, {
|
|
5086
5086
|
enabled?: boolean | undefined;
|
|
5087
5087
|
rules?: Record<string, string | false | {
|
|
5088
5088
|
path?: string | undefined;
|
|
@@ -5593,7 +5593,7 @@ export declare const localConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5593
5593
|
content?: string | undefined;
|
|
5594
5594
|
argumentHint?: string | undefined;
|
|
5595
5595
|
}>]>, z.ZodLiteral<false>]>>>;
|
|
5596
|
-
editors: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodEnum<["windsurf", "cursor", "claude-code", "
|
|
5596
|
+
editors: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodEnum<["windsurf", "cursor", "claude-code", "copilot", "zed", "neovim"]>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5597
5597
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5598
5598
|
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5599
5599
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -9242,7 +9242,7 @@ export declare const localConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9242
9242
|
globs?: string[] | undefined;
|
|
9243
9243
|
content?: string | undefined;
|
|
9244
9244
|
}> | undefined;
|
|
9245
|
-
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "
|
|
9245
|
+
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | Record<string, {
|
|
9246
9246
|
enabled: boolean;
|
|
9247
9247
|
rules?: Record<string, string | false | {
|
|
9248
9248
|
path?: string | undefined;
|
|
@@ -10194,7 +10194,7 @@ export declare const localConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10194
10194
|
globs?: string[] | undefined;
|
|
10195
10195
|
content?: string | undefined;
|
|
10196
10196
|
}> | undefined;
|
|
10197
|
-
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "
|
|
10197
|
+
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | Record<string, {
|
|
10198
10198
|
enabled?: boolean | undefined;
|
|
10199
10199
|
rules?: Record<string, string | false | {
|
|
10200
10200
|
path?: string | undefined;
|
|
@@ -11146,7 +11146,7 @@ export declare const localConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
11146
11146
|
globs?: string[] | undefined;
|
|
11147
11147
|
content?: string | undefined;
|
|
11148
11148
|
}> | undefined;
|
|
11149
|
-
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "
|
|
11149
|
+
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | Record<string, {
|
|
11150
11150
|
enabled: boolean;
|
|
11151
11151
|
rules?: Record<string, string | false | {
|
|
11152
11152
|
path?: string | undefined;
|
|
@@ -12098,7 +12098,7 @@ export declare const localConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
12098
12098
|
globs?: string[] | undefined;
|
|
12099
12099
|
content?: string | undefined;
|
|
12100
12100
|
}> | undefined;
|
|
12101
|
-
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "
|
|
12101
|
+
}>, "strip"> | ("windsurf" | "cursor" | "claude-code" | "copilot" | "zed" | "neovim" | Record<string, {
|
|
12102
12102
|
enabled?: boolean | undefined;
|
|
12103
12103
|
rules?: Record<string, string | false | {
|
|
12104
12104
|
path?: string | undefined;
|
package/dist/editors.d.ts
CHANGED
|
@@ -617,13 +617,13 @@ export declare const claudeCodeConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
617
617
|
}> | undefined;
|
|
618
618
|
permissions?: Record<string, unknown> | undefined;
|
|
619
619
|
}>;
|
|
620
|
-
export declare const editorEnum: z.ZodEnum<["windsurf", "cursor", "claude-code", "
|
|
620
|
+
export declare const editorEnum: z.ZodEnum<["windsurf", "cursor", "claude-code", "copilot", "zed", "neovim"]>;
|
|
621
621
|
/**
|
|
622
622
|
* Editors configuration - accepts either:
|
|
623
623
|
* - Array shorthand: ["windsurf", "cursor"] or ["windsurf", { "cursor": {...} }]
|
|
624
624
|
* - Object form: { "windsurf": { "enabled": true }, "cursor": {...} }
|
|
625
625
|
*/
|
|
626
|
-
export declare const editorsSchema: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodEnum<["windsurf", "cursor", "claude-code", "
|
|
626
|
+
export declare const editorsSchema: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodEnum<["windsurf", "cursor", "claude-code", "copilot", "zed", "neovim"]>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
627
627
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
628
628
|
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
629
629
|
description: z.ZodOptional<z.ZodString>;
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAEoB,CAAC"}
|
package/dist/editors.js
CHANGED
|
@@ -14,7 +14,7 @@ export const claudeCodeConfigSchema = baseEditorConfigSchema.extend({
|
|
|
14
14
|
permissions: z.record(z.unknown()).optional().describe('Claude Code permissions'),
|
|
15
15
|
});
|
|
16
16
|
export const editorEnum = z
|
|
17
|
-
.enum(['windsurf', 'cursor', 'claude-code', '
|
|
17
|
+
.enum(['windsurf', 'cursor', 'claude-code', 'copilot', 'zed', 'neovim'])
|
|
18
18
|
.describe('Supported editor/agent');
|
|
19
19
|
/**
|
|
20
20
|
* Verbose object form for editors configuration.
|
package/dist/editors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editors.js","sourceRoot":"","sources":["../src/editors.ts"],"names":[],"mappings":"AAAA,OA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AAE;IACrC,aAAa,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CAClD,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;
|
|
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"}
|
package/dist/factory.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { SCHEMA_VERSION, SCHEMA_BASE_URL } from './version.js';
|
|
2
1
|
/**
|
|
3
2
|
* Create an empty AiJsonConfig with all required fields initialized to their defaults.
|
|
4
3
|
* This is the single source of truth for creating new configs.
|
|
5
4
|
*/
|
|
6
5
|
export function createEmptyConfig() {
|
|
7
6
|
return {
|
|
8
|
-
$schema: `${SCHEMA_BASE_URL}/v${SCHEMA_VERSION}/ai.json`,
|
|
9
7
|
skills: {},
|
|
10
8
|
mcp: {},
|
|
11
9
|
rules: {},
|
package/dist/factory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a1st/aix-schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "JSON Schema and validation for aix configuration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-config",
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"validation",
|
|
10
10
|
"zod"
|
|
11
11
|
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/a1st-dev/aix.git",
|
|
15
|
+
"directory": "packages/schema"
|
|
16
|
+
},
|
|
12
17
|
"files": [
|
|
13
18
|
"dist",
|
|
14
19
|
"schema.json"
|
|
@@ -22,18 +27,13 @@
|
|
|
22
27
|
"import": "./dist/index.js"
|
|
23
28
|
}
|
|
24
29
|
},
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "https://github.com/a1st-dev/aix.git",
|
|
28
|
-
"directory": "packages/schema"
|
|
29
|
-
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public",
|
|
32
32
|
"registry": "https://registry.npmjs.org/"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc -p tsconfig.build.json && npm run generate-schema",
|
|
36
|
-
"generate-schema": "node --import=@poppinss/ts-exec scripts/generate-schema.ts",
|
|
36
|
+
"generate-schema": "node --import=@poppinss/ts-exec scripts/generate-schema.ts && oxfmt schema.json",
|
|
37
37
|
"test": "vitest run",
|
|
38
38
|
"test:watch": "vitest"
|
|
39
39
|
},
|