@a1st/aix-schema 0.0.12 → 0.1.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/config.d.ts +8533 -3634
- package/dist/config.d.ts.map +1 -1
- package/dist/core.d.ts +5 -0
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +4 -0
- package/dist/core.js.map +1 -1
- package/dist/editor-support.d.ts +313 -0
- package/dist/editor-support.d.ts.map +1 -0
- package/dist/editor-support.js +471 -0
- package/dist/editor-support.js.map +1 -0
- package/dist/editors.d.ts +1849 -419
- package/dist/editors.d.ts.map +1 -1
- package/dist/editors.js +6 -1
- package/dist/editors.js.map +1 -1
- package/dist/factory.d.ts +9 -1
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +11 -1
- package/dist/factory.js.map +1 -1
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +7 -0
- 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/lock.d.ts +1610 -0
- package/dist/lock.d.ts.map +1 -0
- package/dist/lock.js +68 -0
- package/dist/lock.js.map +1 -0
- package/dist/skill.d.ts +2 -2
- package/package.json +1 -1
- package/schema.json +236 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../src/lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,IAAI,CAAC;AAUjC,eAAO,MAAM,uBAAuB,6EAQlC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAOjB,CAAC;AAEb,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYnB,CAAC;AAE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-0,0 +1,68 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const lockfileVersion = 1;
|
|
3
|
+
const sha256DigestSchema = z
|
|
4
|
+
.string()
|
|
5
|
+
.regex(/^sha256:[a-f0-9]{64}$/, 'Expected sha256:<64 lowercase hex characters>');
|
|
6
|
+
const sha512IntegritySchema = z
|
|
7
|
+
.string()
|
|
8
|
+
.regex(/^sha512-[A-Za-z0-9+/]+={0,2}$/, 'Expected a SHA-512 Subresource Integrity string');
|
|
9
|
+
export const lockEntitySectionSchema = z.enum([
|
|
10
|
+
'skills',
|
|
11
|
+
'rules',
|
|
12
|
+
'prompts',
|
|
13
|
+
'mcp',
|
|
14
|
+
'hooks',
|
|
15
|
+
'editors',
|
|
16
|
+
'aix',
|
|
17
|
+
]);
|
|
18
|
+
export const lockedFileSchema = z
|
|
19
|
+
.object({
|
|
20
|
+
path: z.string().min(1),
|
|
21
|
+
digest: sha256DigestSchema,
|
|
22
|
+
integrity: sha512IntegritySchema,
|
|
23
|
+
size: z.number().int().nonnegative(),
|
|
24
|
+
})
|
|
25
|
+
.strict();
|
|
26
|
+
export const lockedEntitySchema = z
|
|
27
|
+
.object({
|
|
28
|
+
name: z.string().min(1),
|
|
29
|
+
section: lockEntitySectionSchema,
|
|
30
|
+
digest: sha256DigestSchema,
|
|
31
|
+
integrity: sha512IntegritySchema,
|
|
32
|
+
size: z.number().int().nonnegative(),
|
|
33
|
+
source: z.unknown().optional(),
|
|
34
|
+
resolved: z.record(z.unknown()).optional(),
|
|
35
|
+
metadataDigest: sha256DigestSchema.optional(),
|
|
36
|
+
files: z.array(lockedFileSchema).optional(),
|
|
37
|
+
})
|
|
38
|
+
.strict();
|
|
39
|
+
export const lockedEntitiesSchema = z
|
|
40
|
+
.object({
|
|
41
|
+
skills: z.record(lockedEntitySchema).default({}),
|
|
42
|
+
rules: z.record(lockedEntitySchema).default({}),
|
|
43
|
+
prompts: z.record(lockedEntitySchema).default({}),
|
|
44
|
+
mcp: z.record(lockedEntitySchema).default({}),
|
|
45
|
+
hooks: z.record(lockedEntitySchema).default({}),
|
|
46
|
+
editors: z.record(lockedEntitySchema).default({}),
|
|
47
|
+
aix: z.record(lockedEntitySchema).default({}),
|
|
48
|
+
})
|
|
49
|
+
.strict();
|
|
50
|
+
export const lockedConfigSchema = z
|
|
51
|
+
.object({
|
|
52
|
+
path: z.string().min(1),
|
|
53
|
+
digest: sha256DigestSchema,
|
|
54
|
+
integrity: sha512IntegritySchema,
|
|
55
|
+
size: z.number().int().nonnegative(),
|
|
56
|
+
})
|
|
57
|
+
.strict();
|
|
58
|
+
export const aiLockFileSchema = z
|
|
59
|
+
.object({
|
|
60
|
+
$schema: z.string().url().optional(),
|
|
61
|
+
lockfileVersion: z.literal(lockfileVersion),
|
|
62
|
+
generatedBy: z.string().min(1),
|
|
63
|
+
generatedAt: z.string().datetime({ offset: true }).optional(),
|
|
64
|
+
config: lockedConfigSchema,
|
|
65
|
+
entities: lockedEntitiesSchema,
|
|
66
|
+
})
|
|
67
|
+
.strict();
|
|
68
|
+
//# sourceMappingURL=lock.js.map
|
package/dist/lock.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lock.js","sourceRoot":"","sources":["../src/lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC;AAEjC,MAAM,kBAAkB,GAAG,CAAC;KACxB,MAAM,EAAE;KACR,KAAK,CAAC,uBAAuB,EAAE,+CAA+C,CAAC,CAAC;AAEpF,MAAM,qBAAqB,GAAG,CAAC;KAC3B,MAAM,EAAE;KACR,KAAK,CAAC,+BAA+B,EAAE,iDAAiD,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,QAAQ;IACR,OAAO;IACP,SAAS;IACT,KAAK;IACL,OAAO;IACP,SAAS;IAC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+12,16 @@ export declare const skillFrontmatterSchema: z.ZodObject<{
|
|
|
12
12
|
'allowed-tools': z.ZodOptional<z.ZodString>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
description?: string | undefined;
|
|
15
|
+
compatibility?: string | undefined;
|
|
15
16
|
name?: string | undefined;
|
|
16
17
|
license?: string | undefined;
|
|
17
|
-
compatibility?: string | undefined;
|
|
18
18
|
metadata?: Record<string, string> | undefined;
|
|
19
19
|
'allowed-tools'?: string | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
description?: string | undefined;
|
|
22
|
+
compatibility?: string | undefined;
|
|
22
23
|
name?: string | undefined;
|
|
23
24
|
license?: string | undefined;
|
|
24
|
-
compatibility?: string | undefined;
|
|
25
25
|
metadata?: Record<string, string> | undefined;
|
|
26
26
|
'allowed-tools'?: string | undefined;
|
|
27
27
|
}>;
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
],
|
|
30
30
|
"description": "Extend from other ai.json configs"
|
|
31
31
|
},
|
|
32
|
+
"scope": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["project", "user"],
|
|
35
|
+
"description": "Config scope: \"project\" (default) or \"user\""
|
|
36
|
+
},
|
|
32
37
|
"skills": {
|
|
33
38
|
"type": "object",
|
|
34
39
|
"additionalProperties": {
|
|
@@ -639,7 +644,9 @@
|
|
|
639
644
|
"claude-code",
|
|
640
645
|
"copilot",
|
|
641
646
|
"zed",
|
|
642
|
-
"neovim"
|
|
647
|
+
"neovim",
|
|
648
|
+
"gemini",
|
|
649
|
+
"opencode"
|
|
643
650
|
],
|
|
644
651
|
"description": "Supported editor/agent"
|
|
645
652
|
},
|
|
@@ -1104,6 +1111,227 @@
|
|
|
1104
1111
|
}
|
|
1105
1112
|
},
|
|
1106
1113
|
"additionalProperties": false
|
|
1114
|
+
},
|
|
1115
|
+
"gemini": {
|
|
1116
|
+
"type": "object",
|
|
1117
|
+
"properties": {
|
|
1118
|
+
"enabled": {
|
|
1119
|
+
"type": "boolean",
|
|
1120
|
+
"default": true,
|
|
1121
|
+
"description": "Whether to configure this editor"
|
|
1122
|
+
},
|
|
1123
|
+
"rules": {
|
|
1124
|
+
"type": "object",
|
|
1125
|
+
"additionalProperties": {
|
|
1126
|
+
"anyOf": [
|
|
1127
|
+
{
|
|
1128
|
+
"anyOf": [
|
|
1129
|
+
{
|
|
1130
|
+
"type": "string",
|
|
1131
|
+
"description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"type": "object",
|
|
1135
|
+
"properties": {
|
|
1136
|
+
"description": {
|
|
1137
|
+
"type": "string",
|
|
1138
|
+
"description": "When the rule should apply (required for auto mode)"
|
|
1139
|
+
},
|
|
1140
|
+
"activation": {
|
|
1141
|
+
"type": "string",
|
|
1142
|
+
"enum": ["always", "auto", "glob", "manual"],
|
|
1143
|
+
"default": "always",
|
|
1144
|
+
"description": "When the rule should be activated"
|
|
1145
|
+
},
|
|
1146
|
+
"globs": {
|
|
1147
|
+
"type": "array",
|
|
1148
|
+
"items": {
|
|
1149
|
+
"type": "string"
|
|
1150
|
+
},
|
|
1151
|
+
"description": "File patterns (required for glob mode)"
|
|
1152
|
+
},
|
|
1153
|
+
"content": {
|
|
1154
|
+
"type": "string",
|
|
1155
|
+
"description": "Inline rule content"
|
|
1156
|
+
},
|
|
1157
|
+
"path": {
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"description": "Local file path to rule content"
|
|
1160
|
+
},
|
|
1161
|
+
"git": {
|
|
1162
|
+
"type": "object",
|
|
1163
|
+
"properties": {
|
|
1164
|
+
"url": {
|
|
1165
|
+
"type": "string",
|
|
1166
|
+
"description": "Git repository URL or shorthand (e.g., github:user/repo)"
|
|
1167
|
+
},
|
|
1168
|
+
"path": {
|
|
1169
|
+
"type": "string",
|
|
1170
|
+
"description": "Path to rule file within repo (default: root)"
|
|
1171
|
+
},
|
|
1172
|
+
"ref": {
|
|
1173
|
+
"type": "string",
|
|
1174
|
+
"description": "Branch, tag, or commit (default: main/master)"
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
"required": ["url"],
|
|
1178
|
+
"additionalProperties": false,
|
|
1179
|
+
"description": "Git repository source"
|
|
1180
|
+
},
|
|
1181
|
+
"npm": {
|
|
1182
|
+
"type": "object",
|
|
1183
|
+
"properties": {
|
|
1184
|
+
"npm": {
|
|
1185
|
+
"type": "string",
|
|
1186
|
+
"description": "NPM package name (e.g., \"@company/rules\")"
|
|
1187
|
+
},
|
|
1188
|
+
"path": {
|
|
1189
|
+
"type": "string",
|
|
1190
|
+
"description": "Path to file within package (e.g., \"rules/style.md\")"
|
|
1191
|
+
},
|
|
1192
|
+
"version": {
|
|
1193
|
+
"type": "string",
|
|
1194
|
+
"description": "Version to auto-install (omit to use project node_modules)"
|
|
1195
|
+
}
|
|
1196
|
+
},
|
|
1197
|
+
"required": ["npm", "path"],
|
|
1198
|
+
"additionalProperties": false,
|
|
1199
|
+
"description": "NPM package source"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"additionalProperties": false,
|
|
1203
|
+
"description": "Rule with metadata and content source"
|
|
1204
|
+
}
|
|
1205
|
+
]
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"type": "boolean",
|
|
1209
|
+
"const": false
|
|
1210
|
+
}
|
|
1211
|
+
]
|
|
1212
|
+
},
|
|
1213
|
+
"propertyNames": {
|
|
1214
|
+
"minLength": 1,
|
|
1215
|
+
"maxLength": 64,
|
|
1216
|
+
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
1217
|
+
},
|
|
1218
|
+
"description": "Editor-specific rules (in addition to global rules)"
|
|
1219
|
+
},
|
|
1220
|
+
"geminiSettings": {
|
|
1221
|
+
"type": "object",
|
|
1222
|
+
"additionalProperties": {},
|
|
1223
|
+
"description": "Gemini CLI settings"
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
"additionalProperties": false
|
|
1227
|
+
},
|
|
1228
|
+
"opencode": {
|
|
1229
|
+
"type": "object",
|
|
1230
|
+
"properties": {
|
|
1231
|
+
"enabled": {
|
|
1232
|
+
"type": "boolean",
|
|
1233
|
+
"default": true,
|
|
1234
|
+
"description": "Whether to configure this editor"
|
|
1235
|
+
},
|
|
1236
|
+
"rules": {
|
|
1237
|
+
"type": "object",
|
|
1238
|
+
"additionalProperties": {
|
|
1239
|
+
"anyOf": [
|
|
1240
|
+
{
|
|
1241
|
+
"anyOf": [
|
|
1242
|
+
{
|
|
1243
|
+
"type": "string",
|
|
1244
|
+
"description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"type": "object",
|
|
1248
|
+
"properties": {
|
|
1249
|
+
"description": {
|
|
1250
|
+
"type": "string",
|
|
1251
|
+
"description": "When the rule should apply (required for auto mode)"
|
|
1252
|
+
},
|
|
1253
|
+
"activation": {
|
|
1254
|
+
"type": "string",
|
|
1255
|
+
"enum": ["always", "auto", "glob", "manual"],
|
|
1256
|
+
"default": "always",
|
|
1257
|
+
"description": "When the rule should be activated"
|
|
1258
|
+
},
|
|
1259
|
+
"globs": {
|
|
1260
|
+
"type": "array",
|
|
1261
|
+
"items": {
|
|
1262
|
+
"type": "string"
|
|
1263
|
+
},
|
|
1264
|
+
"description": "File patterns (required for glob mode)"
|
|
1265
|
+
},
|
|
1266
|
+
"content": {
|
|
1267
|
+
"type": "string",
|
|
1268
|
+
"description": "Inline rule content"
|
|
1269
|
+
},
|
|
1270
|
+
"path": {
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"description": "Local file path to rule content"
|
|
1273
|
+
},
|
|
1274
|
+
"git": {
|
|
1275
|
+
"type": "object",
|
|
1276
|
+
"properties": {
|
|
1277
|
+
"url": {
|
|
1278
|
+
"type": "string",
|
|
1279
|
+
"description": "Git repository URL or shorthand (e.g., github:user/repo)"
|
|
1280
|
+
},
|
|
1281
|
+
"path": {
|
|
1282
|
+
"type": "string",
|
|
1283
|
+
"description": "Path to rule file within repo (default: root)"
|
|
1284
|
+
},
|
|
1285
|
+
"ref": {
|
|
1286
|
+
"type": "string",
|
|
1287
|
+
"description": "Branch, tag, or commit (default: main/master)"
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
"required": ["url"],
|
|
1291
|
+
"additionalProperties": false,
|
|
1292
|
+
"description": "Git repository source"
|
|
1293
|
+
},
|
|
1294
|
+
"npm": {
|
|
1295
|
+
"type": "object",
|
|
1296
|
+
"properties": {
|
|
1297
|
+
"npm": {
|
|
1298
|
+
"type": "string",
|
|
1299
|
+
"description": "NPM package name (e.g., \"@company/rules\")"
|
|
1300
|
+
},
|
|
1301
|
+
"path": {
|
|
1302
|
+
"type": "string",
|
|
1303
|
+
"description": "Path to file within package (e.g., \"rules/style.md\")"
|
|
1304
|
+
},
|
|
1305
|
+
"version": {
|
|
1306
|
+
"type": "string",
|
|
1307
|
+
"description": "Version to auto-install (omit to use project node_modules)"
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
"required": ["npm", "path"],
|
|
1311
|
+
"additionalProperties": false,
|
|
1312
|
+
"description": "NPM package source"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
"additionalProperties": false,
|
|
1316
|
+
"description": "Rule with metadata and content source"
|
|
1317
|
+
}
|
|
1318
|
+
]
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"type": "boolean",
|
|
1322
|
+
"const": false
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1325
|
+
},
|
|
1326
|
+
"propertyNames": {
|
|
1327
|
+
"minLength": 1,
|
|
1328
|
+
"maxLength": 64,
|
|
1329
|
+
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
1330
|
+
},
|
|
1331
|
+
"description": "Editor-specific rules (in addition to global rules)"
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1334
|
+
"additionalProperties": false
|
|
1107
1335
|
}
|
|
1108
1336
|
},
|
|
1109
1337
|
"additionalProperties": {
|
|
@@ -1277,6 +1505,13 @@
|
|
|
1277
1505
|
"pre_mcp_tool",
|
|
1278
1506
|
"post_mcp_tool",
|
|
1279
1507
|
"pre_prompt",
|
|
1508
|
+
"pre_compact",
|
|
1509
|
+
"post_compact",
|
|
1510
|
+
"subagent_start",
|
|
1511
|
+
"subagent_stop",
|
|
1512
|
+
"task_created",
|
|
1513
|
+
"task_completed",
|
|
1514
|
+
"worktree_setup",
|
|
1280
1515
|
"session_start",
|
|
1281
1516
|
"session_end",
|
|
1282
1517
|
"agent_stop"
|