@truenine/memory-sync-cli 2026.10318.12034 → 2026.10322.104

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/index.d.mts CHANGED
@@ -29,7 +29,7 @@ interface ILogger {
29
29
  * Set the global log level for all loggers.
30
30
  */
31
31
  //#endregion
32
- //#region ../libraries/md-compiler/dist/index-BefisRt0.d.mts
32
+ //#region ../libraries/md-compiler/dist/index-CY2104SI.d.mts
33
33
  //#region ../../node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts
34
34
  // ## Interfaces
35
35
  /**
@@ -1056,966 +1056,57 @@ interface Yaml extends Literal$2 {
1056
1056
  */
1057
1057
  interface YamlData extends Data$2 {} //#endregion
1058
1058
  //#endregion
1059
- //#region src/plugins/plugin-core/ConfigTypes.schema.d.ts
1059
+ //#region ../libraries/md-compiler/dist/index-CnpERWWo.d.mts
1060
+ //#region src/globals/index.d.ts
1060
1061
  /**
1061
- * Zod schema for the aindex configuration.
1062
- * All paths are relative to <workspaceDir>/<aindex.dir>.
1062
+ * // These types are available to users when writing MDX templates. // Global type declarations for MDX expression scope. // src/globals/index.ts
1063
+ * User profile information
1064
+ * @example {profile.name}, {profile.username}
1063
1065
  */
1064
- declare const ZAindexConfig: z.ZodObject<{
1065
- dir: z.ZodDefault<z.ZodString>;
1066
- skills: z.ZodObject<{
1067
- src: z.ZodString;
1068
- dist: z.ZodString;
1069
- }, "strip", z.ZodTypeAny, {
1070
- src: string;
1071
- dist: string;
1072
- }, {
1073
- src: string;
1074
- dist: string;
1075
- }>;
1076
- commands: z.ZodObject<{
1077
- src: z.ZodString;
1078
- dist: z.ZodString;
1079
- }, "strip", z.ZodTypeAny, {
1080
- src: string;
1081
- dist: string;
1082
- }, {
1083
- src: string;
1084
- dist: string;
1085
- }>;
1086
- subAgents: z.ZodObject<{
1087
- src: z.ZodString;
1088
- dist: z.ZodString;
1089
- }, "strip", z.ZodTypeAny, {
1090
- src: string;
1091
- dist: string;
1092
- }, {
1093
- src: string;
1094
- dist: string;
1095
- }>;
1096
- rules: z.ZodObject<{
1097
- src: z.ZodString;
1098
- dist: z.ZodString;
1099
- }, "strip", z.ZodTypeAny, {
1100
- src: string;
1101
- dist: string;
1102
- }, {
1103
- src: string;
1104
- dist: string;
1105
- }>;
1106
- globalPrompt: z.ZodObject<{
1107
- src: z.ZodString;
1108
- dist: z.ZodString;
1109
- }, "strip", z.ZodTypeAny, {
1110
- src: string;
1111
- dist: string;
1112
- }, {
1113
- src: string;
1114
- dist: string;
1115
- }>;
1116
- workspacePrompt: z.ZodObject<{
1117
- src: z.ZodString;
1118
- dist: z.ZodString;
1119
- }, "strip", z.ZodTypeAny, {
1120
- src: string;
1121
- dist: string;
1122
- }, {
1123
- src: string;
1124
- dist: string;
1125
- }>;
1126
- app: z.ZodObject<{
1127
- src: z.ZodString;
1128
- dist: z.ZodString;
1129
- }, "strip", z.ZodTypeAny, {
1130
- src: string;
1131
- dist: string;
1132
- }, {
1133
- src: string;
1134
- dist: string;
1135
- }>;
1136
- ext: z.ZodObject<{
1137
- src: z.ZodString;
1138
- dist: z.ZodString;
1139
- }, "strip", z.ZodTypeAny, {
1140
- src: string;
1141
- dist: string;
1142
- }, {
1143
- src: string;
1144
- dist: string;
1145
- }>;
1146
- arch: z.ZodObject<{
1147
- src: z.ZodString;
1148
- dist: z.ZodString;
1149
- }, "strip", z.ZodTypeAny, {
1150
- src: string;
1151
- dist: string;
1152
- }, {
1153
- src: string;
1154
- dist: string;
1155
- }>;
1156
- }, "strip", z.ZodTypeAny, {
1157
- dir: string;
1158
- skills: {
1159
- src: string;
1160
- dist: string;
1161
- };
1162
- commands: {
1163
- src: string;
1164
- dist: string;
1165
- };
1166
- subAgents: {
1167
- src: string;
1168
- dist: string;
1169
- };
1170
- rules: {
1171
- src: string;
1172
- dist: string;
1173
- };
1174
- globalPrompt: {
1175
- src: string;
1176
- dist: string;
1177
- };
1178
- workspacePrompt: {
1179
- src: string;
1180
- dist: string;
1181
- };
1182
- app: {
1183
- src: string;
1184
- dist: string;
1185
- };
1186
- ext: {
1187
- src: string;
1188
- dist: string;
1189
- };
1190
- arch: {
1191
- src: string;
1192
- dist: string;
1193
- };
1194
- }, {
1195
- skills: {
1196
- src: string;
1197
- dist: string;
1198
- };
1199
- commands: {
1200
- src: string;
1201
- dist: string;
1202
- };
1203
- subAgents: {
1204
- src: string;
1205
- dist: string;
1206
- };
1207
- rules: {
1208
- src: string;
1209
- dist: string;
1210
- };
1211
- globalPrompt: {
1212
- src: string;
1213
- dist: string;
1214
- };
1215
- workspacePrompt: {
1216
- src: string;
1217
- dist: string;
1218
- };
1219
- app: {
1220
- src: string;
1221
- dist: string;
1222
- };
1223
- ext: {
1224
- src: string;
1225
- dist: string;
1226
- };
1227
- arch: {
1228
- src: string;
1229
- dist: string;
1230
- };
1231
- dir?: string | undefined;
1232
- }>;
1066
+ interface UserProfile {
1067
+ [key: string]: unknown;
1068
+ name?: string;
1069
+ username?: string;
1070
+ gender?: string;
1071
+ birthday?: string;
1072
+ }
1233
1073
  /**
1234
- * Zod schema for command series configuration options.
1074
+ * Tool references for AI assistants
1075
+ * @example {tool.websearch}, {tool.webfetch}, {tool.readFile}
1235
1076
  */
1236
- declare const ZCommandSeriesOptions: z.ZodObject<{
1237
- includeSeriesPrefix: z.ZodOptional<z.ZodBoolean>;
1238
- pluginOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1239
- includeSeriesPrefix: z.ZodOptional<z.ZodBoolean>;
1240
- seriesSeparator: z.ZodOptional<z.ZodString>;
1241
- }, "strip", z.ZodTypeAny, {
1242
- includeSeriesPrefix?: boolean | undefined;
1243
- seriesSeparator?: string | undefined;
1244
- }, {
1245
- includeSeriesPrefix?: boolean | undefined;
1246
- seriesSeparator?: string | undefined;
1247
- }>>>;
1248
- }, "strip", z.ZodTypeAny, {
1249
- includeSeriesPrefix?: boolean | undefined;
1250
- pluginOverrides?: Record<string, {
1251
- includeSeriesPrefix?: boolean | undefined;
1252
- seriesSeparator?: string | undefined;
1253
- }> | undefined;
1254
- }, {
1255
- includeSeriesPrefix?: boolean | undefined;
1256
- pluginOverrides?: Record<string, {
1257
- includeSeriesPrefix?: boolean | undefined;
1258
- seriesSeparator?: string | undefined;
1259
- }> | undefined;
1260
- }>;
1077
+ interface ToolReferences {
1078
+ /** Allow custom tool references */
1079
+ [key: string]: string | undefined;
1080
+ /** Web search tool name */
1081
+ websearch?: string;
1082
+ /** Web fetch tool name */
1083
+ webfetch?: string;
1084
+ /** Read file tool name */
1085
+ readFile?: string;
1086
+ /** Write file tool name */
1087
+ writeFile?: string;
1088
+ /** Execute command/shell tool name */
1089
+ executeCommand?: string;
1090
+ /** Todolist write tool name */
1091
+ todolistWrite?: string;
1092
+ /** Grep/search tool name */
1093
+ grep?: string;
1094
+ /** List directory tool name */
1095
+ listDirectory?: string;
1096
+ }
1261
1097
  /**
1262
- * Zod schema for output scope override configuration.
1098
+ * Tool name presets for different AI tools.
1099
+ * Each preset provides tool name mappings specific to that AI tool.
1263
1100
  */
1264
- declare const ZOutputScopeOptions: z.ZodObject<{
1265
- plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1266
- prompt: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1267
- rules: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1268
- commands: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1269
- subagents: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1270
- skills: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1271
- mcp: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1272
- }, "strip", z.ZodTypeAny, {
1273
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1274
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1275
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1276
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1277
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1278
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1279
- }, {
1280
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1281
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1282
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1283
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1284
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1285
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1286
- }>>>;
1287
- }, "strip", z.ZodTypeAny, {
1288
- plugins?: Record<string, {
1289
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1290
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1291
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1292
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1293
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1294
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1295
- }> | undefined;
1296
- }, {
1297
- plugins?: Record<string, {
1298
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1299
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1300
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1301
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1302
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1303
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1304
- }> | undefined;
1305
- }>;
1306
1101
  /**
1307
- * Zod schema for shared front matter formatting options.
1102
+ * Environment context
1103
+ * @example {env.NODE_ENV}, {env.DEBUG}
1308
1104
  */
1309
- declare const ZFrontMatterOptions: z.ZodObject<{
1310
- blankLineAfter: z.ZodOptional<z.ZodBoolean>;
1311
- }, "strip", z.ZodTypeAny, {
1312
- blankLineAfter?: boolean | undefined;
1313
- }, {
1314
- blankLineAfter?: boolean | undefined;
1315
- }>;
1316
- declare const ZProtectionMode: z.ZodEnum<["direct", "recursive"]>;
1317
- declare const ZCleanupProtectionOptions: z.ZodObject<{
1318
- rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1319
- path: z.ZodString;
1320
- protectionMode: z.ZodEnum<["direct", "recursive"]>;
1321
- matcher: z.ZodOptional<z.ZodEnum<["path", "glob"]>>;
1322
- reason: z.ZodOptional<z.ZodString>;
1323
- }, "strip", z.ZodTypeAny, {
1324
- path: string;
1325
- protectionMode: "direct" | "recursive";
1326
- matcher?: "path" | "glob" | undefined;
1327
- reason?: string | undefined;
1328
- }, {
1329
- path: string;
1330
- protectionMode: "direct" | "recursive";
1331
- matcher?: "path" | "glob" | undefined;
1332
- reason?: string | undefined;
1333
- }>, "many">>;
1334
- }, "strip", z.ZodTypeAny, {
1335
- rules?: {
1336
- path: string;
1337
- protectionMode: "direct" | "recursive";
1338
- matcher?: "path" | "glob" | undefined;
1339
- reason?: string | undefined;
1340
- }[] | undefined;
1341
- }, {
1342
- rules?: {
1343
- path: string;
1344
- protectionMode: "direct" | "recursive";
1345
- matcher?: "path" | "glob" | undefined;
1346
- reason?: string | undefined;
1347
- }[] | undefined;
1348
- }>;
1105
+ interface EnvironmentContext {
1106
+ [key: string]: unknown;
1107
+ }
1349
1108
  /**
1350
- * Zod schema for the user configuration file (.tnmsc.json).
1351
- */
1352
- declare const ZUserConfigFile: z.ZodObject<{
1353
- version: z.ZodOptional<z.ZodString>;
1354
- workspaceDir: z.ZodOptional<z.ZodString>;
1355
- aindex: z.ZodOptional<z.ZodObject<{
1356
- dir: z.ZodDefault<z.ZodString>;
1357
- skills: z.ZodObject<{
1358
- src: z.ZodString;
1359
- dist: z.ZodString;
1360
- }, "strip", z.ZodTypeAny, {
1361
- src: string;
1362
- dist: string;
1363
- }, {
1364
- src: string;
1365
- dist: string;
1366
- }>;
1367
- commands: z.ZodObject<{
1368
- src: z.ZodString;
1369
- dist: z.ZodString;
1370
- }, "strip", z.ZodTypeAny, {
1371
- src: string;
1372
- dist: string;
1373
- }, {
1374
- src: string;
1375
- dist: string;
1376
- }>;
1377
- subAgents: z.ZodObject<{
1378
- src: z.ZodString;
1379
- dist: z.ZodString;
1380
- }, "strip", z.ZodTypeAny, {
1381
- src: string;
1382
- dist: string;
1383
- }, {
1384
- src: string;
1385
- dist: string;
1386
- }>;
1387
- rules: z.ZodObject<{
1388
- src: z.ZodString;
1389
- dist: z.ZodString;
1390
- }, "strip", z.ZodTypeAny, {
1391
- src: string;
1392
- dist: string;
1393
- }, {
1394
- src: string;
1395
- dist: string;
1396
- }>;
1397
- globalPrompt: z.ZodObject<{
1398
- src: z.ZodString;
1399
- dist: z.ZodString;
1400
- }, "strip", z.ZodTypeAny, {
1401
- src: string;
1402
- dist: string;
1403
- }, {
1404
- src: string;
1405
- dist: string;
1406
- }>;
1407
- workspacePrompt: z.ZodObject<{
1408
- src: z.ZodString;
1409
- dist: z.ZodString;
1410
- }, "strip", z.ZodTypeAny, {
1411
- src: string;
1412
- dist: string;
1413
- }, {
1414
- src: string;
1415
- dist: string;
1416
- }>;
1417
- app: z.ZodObject<{
1418
- src: z.ZodString;
1419
- dist: z.ZodString;
1420
- }, "strip", z.ZodTypeAny, {
1421
- src: string;
1422
- dist: string;
1423
- }, {
1424
- src: string;
1425
- dist: string;
1426
- }>;
1427
- ext: z.ZodObject<{
1428
- src: z.ZodString;
1429
- dist: z.ZodString;
1430
- }, "strip", z.ZodTypeAny, {
1431
- src: string;
1432
- dist: string;
1433
- }, {
1434
- src: string;
1435
- dist: string;
1436
- }>;
1437
- arch: z.ZodObject<{
1438
- src: z.ZodString;
1439
- dist: z.ZodString;
1440
- }, "strip", z.ZodTypeAny, {
1441
- src: string;
1442
- dist: string;
1443
- }, {
1444
- src: string;
1445
- dist: string;
1446
- }>;
1447
- }, "strip", z.ZodTypeAny, {
1448
- dir: string;
1449
- skills: {
1450
- src: string;
1451
- dist: string;
1452
- };
1453
- commands: {
1454
- src: string;
1455
- dist: string;
1456
- };
1457
- subAgents: {
1458
- src: string;
1459
- dist: string;
1460
- };
1461
- rules: {
1462
- src: string;
1463
- dist: string;
1464
- };
1465
- globalPrompt: {
1466
- src: string;
1467
- dist: string;
1468
- };
1469
- workspacePrompt: {
1470
- src: string;
1471
- dist: string;
1472
- };
1473
- app: {
1474
- src: string;
1475
- dist: string;
1476
- };
1477
- ext: {
1478
- src: string;
1479
- dist: string;
1480
- };
1481
- arch: {
1482
- src: string;
1483
- dist: string;
1484
- };
1485
- }, {
1486
- skills: {
1487
- src: string;
1488
- dist: string;
1489
- };
1490
- commands: {
1491
- src: string;
1492
- dist: string;
1493
- };
1494
- subAgents: {
1495
- src: string;
1496
- dist: string;
1497
- };
1498
- rules: {
1499
- src: string;
1500
- dist: string;
1501
- };
1502
- globalPrompt: {
1503
- src: string;
1504
- dist: string;
1505
- };
1506
- workspacePrompt: {
1507
- src: string;
1508
- dist: string;
1509
- };
1510
- app: {
1511
- src: string;
1512
- dist: string;
1513
- };
1514
- ext: {
1515
- src: string;
1516
- dist: string;
1517
- };
1518
- arch: {
1519
- src: string;
1520
- dist: string;
1521
- };
1522
- dir?: string | undefined;
1523
- }>>;
1524
- logLevel: z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error"]>>;
1525
- commandSeriesOptions: z.ZodOptional<z.ZodObject<{
1526
- includeSeriesPrefix: z.ZodOptional<z.ZodBoolean>;
1527
- pluginOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1528
- includeSeriesPrefix: z.ZodOptional<z.ZodBoolean>;
1529
- seriesSeparator: z.ZodOptional<z.ZodString>;
1530
- }, "strip", z.ZodTypeAny, {
1531
- includeSeriesPrefix?: boolean | undefined;
1532
- seriesSeparator?: string | undefined;
1533
- }, {
1534
- includeSeriesPrefix?: boolean | undefined;
1535
- seriesSeparator?: string | undefined;
1536
- }>>>;
1537
- }, "strip", z.ZodTypeAny, {
1538
- includeSeriesPrefix?: boolean | undefined;
1539
- pluginOverrides?: Record<string, {
1540
- includeSeriesPrefix?: boolean | undefined;
1541
- seriesSeparator?: string | undefined;
1542
- }> | undefined;
1543
- }, {
1544
- includeSeriesPrefix?: boolean | undefined;
1545
- pluginOverrides?: Record<string, {
1546
- includeSeriesPrefix?: boolean | undefined;
1547
- seriesSeparator?: string | undefined;
1548
- }> | undefined;
1549
- }>>;
1550
- outputScopes: z.ZodOptional<z.ZodObject<{
1551
- plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1552
- prompt: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1553
- rules: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1554
- commands: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1555
- subagents: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1556
- skills: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1557
- mcp: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
1558
- }, "strip", z.ZodTypeAny, {
1559
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1560
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1561
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1562
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1563
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1564
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1565
- }, {
1566
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1567
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1568
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1569
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1570
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1571
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1572
- }>>>;
1573
- }, "strip", z.ZodTypeAny, {
1574
- plugins?: Record<string, {
1575
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1576
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1577
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1578
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1579
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1580
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1581
- }> | undefined;
1582
- }, {
1583
- plugins?: Record<string, {
1584
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1585
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1586
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1587
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1588
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1589
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1590
- }> | undefined;
1591
- }>>;
1592
- frontMatter: z.ZodOptional<z.ZodObject<{
1593
- blankLineAfter: z.ZodOptional<z.ZodBoolean>;
1594
- }, "strip", z.ZodTypeAny, {
1595
- blankLineAfter?: boolean | undefined;
1596
- }, {
1597
- blankLineAfter?: boolean | undefined;
1598
- }>>;
1599
- cleanupProtection: z.ZodOptional<z.ZodObject<{
1600
- rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1601
- path: z.ZodString;
1602
- protectionMode: z.ZodEnum<["direct", "recursive"]>;
1603
- matcher: z.ZodOptional<z.ZodEnum<["path", "glob"]>>;
1604
- reason: z.ZodOptional<z.ZodString>;
1605
- }, "strip", z.ZodTypeAny, {
1606
- path: string;
1607
- protectionMode: "direct" | "recursive";
1608
- matcher?: "path" | "glob" | undefined;
1609
- reason?: string | undefined;
1610
- }, {
1611
- path: string;
1612
- protectionMode: "direct" | "recursive";
1613
- matcher?: "path" | "glob" | undefined;
1614
- reason?: string | undefined;
1615
- }>, "many">>;
1616
- }, "strip", z.ZodTypeAny, {
1617
- rules?: {
1618
- path: string;
1619
- protectionMode: "direct" | "recursive";
1620
- matcher?: "path" | "glob" | undefined;
1621
- reason?: string | undefined;
1622
- }[] | undefined;
1623
- }, {
1624
- rules?: {
1625
- path: string;
1626
- protectionMode: "direct" | "recursive";
1627
- matcher?: "path" | "glob" | undefined;
1628
- reason?: string | undefined;
1629
- }[] | undefined;
1630
- }>>;
1631
- profile: z.ZodOptional<z.ZodObject<{
1632
- name: z.ZodOptional<z.ZodString>;
1633
- username: z.ZodOptional<z.ZodString>;
1634
- gender: z.ZodOptional<z.ZodString>;
1635
- birthday: z.ZodOptional<z.ZodString>;
1636
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1637
- name: z.ZodOptional<z.ZodString>;
1638
- username: z.ZodOptional<z.ZodString>;
1639
- gender: z.ZodOptional<z.ZodString>;
1640
- birthday: z.ZodOptional<z.ZodString>;
1641
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1642
- name: z.ZodOptional<z.ZodString>;
1643
- username: z.ZodOptional<z.ZodString>;
1644
- gender: z.ZodOptional<z.ZodString>;
1645
- birthday: z.ZodOptional<z.ZodString>;
1646
- }, z.ZodUnknown, "strip">>>;
1647
- }, "strip", z.ZodTypeAny, {
1648
- version?: string | undefined;
1649
- workspaceDir?: string | undefined;
1650
- aindex?: {
1651
- dir: string;
1652
- skills: {
1653
- src: string;
1654
- dist: string;
1655
- };
1656
- commands: {
1657
- src: string;
1658
- dist: string;
1659
- };
1660
- subAgents: {
1661
- src: string;
1662
- dist: string;
1663
- };
1664
- rules: {
1665
- src: string;
1666
- dist: string;
1667
- };
1668
- globalPrompt: {
1669
- src: string;
1670
- dist: string;
1671
- };
1672
- workspacePrompt: {
1673
- src: string;
1674
- dist: string;
1675
- };
1676
- app: {
1677
- src: string;
1678
- dist: string;
1679
- };
1680
- ext: {
1681
- src: string;
1682
- dist: string;
1683
- };
1684
- arch: {
1685
- src: string;
1686
- dist: string;
1687
- };
1688
- } | undefined;
1689
- logLevel?: "trace" | "debug" | "info" | "warn" | "error" | undefined;
1690
- commandSeriesOptions?: {
1691
- includeSeriesPrefix?: boolean | undefined;
1692
- pluginOverrides?: Record<string, {
1693
- includeSeriesPrefix?: boolean | undefined;
1694
- seriesSeparator?: string | undefined;
1695
- }> | undefined;
1696
- } | undefined;
1697
- outputScopes?: {
1698
- plugins?: Record<string, {
1699
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1700
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1701
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1702
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1703
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1704
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1705
- }> | undefined;
1706
- } | undefined;
1707
- frontMatter?: {
1708
- blankLineAfter?: boolean | undefined;
1709
- } | undefined;
1710
- cleanupProtection?: {
1711
- rules?: {
1712
- path: string;
1713
- protectionMode: "direct" | "recursive";
1714
- matcher?: "path" | "glob" | undefined;
1715
- reason?: string | undefined;
1716
- }[] | undefined;
1717
- } | undefined;
1718
- profile?: z.objectOutputType<{
1719
- name: z.ZodOptional<z.ZodString>;
1720
- username: z.ZodOptional<z.ZodString>;
1721
- gender: z.ZodOptional<z.ZodString>;
1722
- birthday: z.ZodOptional<z.ZodString>;
1723
- }, z.ZodUnknown, "strip"> | undefined;
1724
- }, {
1725
- version?: string | undefined;
1726
- workspaceDir?: string | undefined;
1727
- aindex?: {
1728
- skills: {
1729
- src: string;
1730
- dist: string;
1731
- };
1732
- commands: {
1733
- src: string;
1734
- dist: string;
1735
- };
1736
- subAgents: {
1737
- src: string;
1738
- dist: string;
1739
- };
1740
- rules: {
1741
- src: string;
1742
- dist: string;
1743
- };
1744
- globalPrompt: {
1745
- src: string;
1746
- dist: string;
1747
- };
1748
- workspacePrompt: {
1749
- src: string;
1750
- dist: string;
1751
- };
1752
- app: {
1753
- src: string;
1754
- dist: string;
1755
- };
1756
- ext: {
1757
- src: string;
1758
- dist: string;
1759
- };
1760
- arch: {
1761
- src: string;
1762
- dist: string;
1763
- };
1764
- dir?: string | undefined;
1765
- } | undefined;
1766
- logLevel?: "trace" | "debug" | "info" | "warn" | "error" | undefined;
1767
- commandSeriesOptions?: {
1768
- includeSeriesPrefix?: boolean | undefined;
1769
- pluginOverrides?: Record<string, {
1770
- includeSeriesPrefix?: boolean | undefined;
1771
- seriesSeparator?: string | undefined;
1772
- }> | undefined;
1773
- } | undefined;
1774
- outputScopes?: {
1775
- plugins?: Record<string, {
1776
- skills?: "project" | "global" | ("project" | "global")[] | undefined;
1777
- commands?: "project" | "global" | ("project" | "global")[] | undefined;
1778
- rules?: "project" | "global" | ("project" | "global")[] | undefined;
1779
- prompt?: "project" | "global" | ("project" | "global")[] | undefined;
1780
- subagents?: "project" | "global" | ("project" | "global")[] | undefined;
1781
- mcp?: "project" | "global" | ("project" | "global")[] | undefined;
1782
- }> | undefined;
1783
- } | undefined;
1784
- frontMatter?: {
1785
- blankLineAfter?: boolean | undefined;
1786
- } | undefined;
1787
- cleanupProtection?: {
1788
- rules?: {
1789
- path: string;
1790
- protectionMode: "direct" | "recursive";
1791
- matcher?: "path" | "glob" | undefined;
1792
- reason?: string | undefined;
1793
- }[] | undefined;
1794
- } | undefined;
1795
- profile?: z.objectInputType<{
1796
- name: z.ZodOptional<z.ZodString>;
1797
- username: z.ZodOptional<z.ZodString>;
1798
- gender: z.ZodOptional<z.ZodString>;
1799
- birthday: z.ZodOptional<z.ZodString>;
1800
- }, z.ZodUnknown, "strip"> | undefined;
1801
- }>;
1802
- /**
1803
- * Zod schema for project config.
1804
- */
1805
- declare const ZProjectConfig: z.ZodObject<{
1806
- mcp: z.ZodOptional<z.ZodObject<{
1807
- names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1808
- }, "strip", z.ZodTypeAny, {
1809
- names?: string[] | undefined;
1810
- }, {
1811
- names?: string[] | undefined;
1812
- }>>;
1813
- includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1814
- subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1815
- rules: z.ZodOptional<z.ZodObject<{
1816
- includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1817
- subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1818
- }, "strip", z.ZodTypeAny, {
1819
- includeSeries?: string[] | undefined;
1820
- subSeries?: Record<string, string[]> | undefined;
1821
- }, {
1822
- includeSeries?: string[] | undefined;
1823
- subSeries?: Record<string, string[]> | undefined;
1824
- }>>;
1825
- skills: z.ZodOptional<z.ZodObject<{
1826
- includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1827
- subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1828
- }, "strip", z.ZodTypeAny, {
1829
- includeSeries?: string[] | undefined;
1830
- subSeries?: Record<string, string[]> | undefined;
1831
- }, {
1832
- includeSeries?: string[] | undefined;
1833
- subSeries?: Record<string, string[]> | undefined;
1834
- }>>;
1835
- subAgents: z.ZodOptional<z.ZodObject<{
1836
- includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1837
- subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1838
- }, "strip", z.ZodTypeAny, {
1839
- includeSeries?: string[] | undefined;
1840
- subSeries?: Record<string, string[]> | undefined;
1841
- }, {
1842
- includeSeries?: string[] | undefined;
1843
- subSeries?: Record<string, string[]> | undefined;
1844
- }>>;
1845
- commands: z.ZodOptional<z.ZodObject<{
1846
- includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1847
- subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1848
- }, "strip", z.ZodTypeAny, {
1849
- includeSeries?: string[] | undefined;
1850
- subSeries?: Record<string, string[]> | undefined;
1851
- }, {
1852
- includeSeries?: string[] | undefined;
1853
- subSeries?: Record<string, string[]> | undefined;
1854
- }>>;
1855
- }, "strip", z.ZodTypeAny, {
1856
- skills?: {
1857
- includeSeries?: string[] | undefined;
1858
- subSeries?: Record<string, string[]> | undefined;
1859
- } | undefined;
1860
- commands?: {
1861
- includeSeries?: string[] | undefined;
1862
- subSeries?: Record<string, string[]> | undefined;
1863
- } | undefined;
1864
- subAgents?: {
1865
- includeSeries?: string[] | undefined;
1866
- subSeries?: Record<string, string[]> | undefined;
1867
- } | undefined;
1868
- rules?: {
1869
- includeSeries?: string[] | undefined;
1870
- subSeries?: Record<string, string[]> | undefined;
1871
- } | undefined;
1872
- mcp?: {
1873
- names?: string[] | undefined;
1874
- } | undefined;
1875
- includeSeries?: string[] | undefined;
1876
- subSeries?: Record<string, string[]> | undefined;
1877
- }, {
1878
- skills?: {
1879
- includeSeries?: string[] | undefined;
1880
- subSeries?: Record<string, string[]> | undefined;
1881
- } | undefined;
1882
- commands?: {
1883
- includeSeries?: string[] | undefined;
1884
- subSeries?: Record<string, string[]> | undefined;
1885
- } | undefined;
1886
- subAgents?: {
1887
- includeSeries?: string[] | undefined;
1888
- subSeries?: Record<string, string[]> | undefined;
1889
- } | undefined;
1890
- rules?: {
1891
- includeSeries?: string[] | undefined;
1892
- subSeries?: Record<string, string[]> | undefined;
1893
- } | undefined;
1894
- mcp?: {
1895
- names?: string[] | undefined;
1896
- } | undefined;
1897
- includeSeries?: string[] | undefined;
1898
- subSeries?: Record<string, string[]> | undefined;
1899
- }>;
1900
- /**
1901
- * Zod schema for ConfigLoader options.
1902
- */
1903
- declare const ZConfigLoaderOptions: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1904
- type AindexConfig = z.infer<typeof ZAindexConfig>;
1905
- type CommandSeriesOptions = z.infer<typeof ZCommandSeriesOptions>;
1906
- type OutputScopeOptions = z.infer<typeof ZOutputScopeOptions>;
1907
- type FrontMatterOptions = z.infer<typeof ZFrontMatterOptions>;
1908
- type ProtectionMode = z.infer<typeof ZProtectionMode>;
1909
- type CleanupProtectionOptions = z.infer<typeof ZCleanupProtectionOptions>;
1910
- type UserConfigFile = z.infer<typeof ZUserConfigFile>;
1911
- type ProjectConfig = z.infer<typeof ZProjectConfig>;
1912
- type ConfigLoaderOptions = z.infer<typeof ZConfigLoaderOptions>;
1913
- /**
1914
- * Result of loading a config file.
1915
- */
1916
- interface ConfigLoadResult {
1917
- readonly config: UserConfigFile;
1918
- readonly source: string | null;
1919
- readonly found: boolean;
1920
- }
1921
- //#endregion
1922
- //#region src/plugins/plugin-core/enums.d.ts
1923
- declare enum PluginKind {
1924
- Output = "output"
1925
- }
1926
- declare enum PromptKind {
1927
- GlobalMemory = "globalMemory",
1928
- ProjectRootMemory = "projectRootMemory",
1929
- ProjectChildrenMemory = "projectChildrenMemory",
1930
- Command = "command",
1931
- SubAgent = "subAgent",
1932
- Skill = "skill",
1933
- SkillChildDoc = "skillChildDoc",
1934
- SkillResource = "skillResource",
1935
- SkillMcpConfig = "skillMcpConfig",
1936
- Readme = "readme",
1937
- Rule = "rule"
1938
- }
1939
- type RuleScope = 'project' | 'global';
1940
- declare enum FilePathKind {
1941
- Relative = "relative",
1942
- Absolute = "absolute",
1943
- Root = "root"
1944
- }
1945
- declare enum IDEKind {
1946
- VSCode = "vscode",
1947
- IntellijIDEA = "intellijIdea",
1948
- Git = "git",
1949
- EditorConfig = "editorconfig",
1950
- Original = "original"
1951
- }
1952
- declare enum NamingCaseKind {
1953
- CamelCase = "camelCase",
1954
- PascalCase = "pascalCase",
1955
- SnakeCase = "snakeCase",
1956
- KebabCase = "kebabCase",
1957
- UpperCase = "upperCase",
1958
- LowerCase = "lowerCase",
1959
- Original = "original"
1960
- }
1961
- declare enum GlobalConfigDirectoryType {
1962
- UserHome = "userHome",
1963
- External = "external"
1964
- }
1965
- type CodingAgentTools = string;
1966
- type ClaudeCodeCLISubAgentColors = string;
1967
- //#endregion
1968
- //#region ../libraries/md-compiler/dist/index-C0N3q7pl.d.mts
1969
- //#region src/globals/index.d.ts
1970
- /**
1971
- * // These types are available to users when writing MDX templates. // Global type declarations for MDX expression scope. // src/globals/index.ts
1972
- * User profile information
1973
- * @example {profile.name}, {profile.username}
1974
- */
1975
- interface UserProfile {
1976
- name?: string;
1977
- username?: string;
1978
- gender?: string;
1979
- birthday?: string;
1980
- [key: string]: unknown;
1981
- }
1982
- /**
1983
- * Tool references for AI assistants
1984
- * @example {tool.websearch}, {tool.webfetch}, {tool.readFile}
1985
- */
1986
- interface ToolReferences {
1987
- /** Web search tool name */
1988
- websearch?: string;
1989
- /** Web fetch tool name */
1990
- webfetch?: string;
1991
- /** Read file tool name */
1992
- readFile?: string;
1993
- /** Write file tool name */
1994
- writeFile?: string;
1995
- /** Execute command/shell tool name */
1996
- executeCommand?: string;
1997
- /** Todolist write tool name */
1998
- todolistWrite?: string;
1999
- /** Grep/search tool name */
2000
- grep?: string;
2001
- /** List directory tool name */
2002
- listDirectory?: string;
2003
- /** Allow custom tool references */
2004
- [key: string]: string | undefined;
2005
- }
2006
- /**
2007
- * Tool name presets for different AI tools.
2008
- * Each preset provides tool name mappings specific to that AI tool.
2009
- */
2010
- /**
2011
- * Environment context
2012
- * @example {env.NODE_ENV}, {env.DEBUG}
2013
- */
2014
- interface EnvironmentContext {
2015
- [key: string]: unknown;
2016
- }
2017
- /**
2018
- * Shell kind enumeration
1109
+ * Shell kind enumeration
2019
1110
  */
2020
1111
  declare enum ShellKind {
2021
1112
  Bash = "bash",
@@ -2038,6 +1129,7 @@ declare enum OsKind {
2038
1129
  * @example {os.platform}, {os.arch}, {os.shellKind}, {os.kind}
2039
1130
  */
2040
1131
  interface OsInfo {
1132
+ [key: string]: string | ShellKind | OsKind | undefined;
2041
1133
  platform?: string;
2042
1134
  arch?: string;
2043
1135
  hostname?: string;
@@ -2047,7 +1139,6 @@ interface OsInfo {
2047
1139
  release?: string;
2048
1140
  shellKind?: ShellKind;
2049
1141
  kind?: OsKind;
2050
- [key: string]: string | ShellKind | OsKind | undefined;
2051
1142
  }
2052
1143
  interface MdProps {
2053
1144
  /** Condition for rendering content. If omitted, content always renders. */
@@ -3753,540 +2844,1449 @@ declare module 'micromark-util-types' {
3753
2844
  } //#endregion
3754
2845
  //#region ../../node_modules/.pnpm/mdast-util-mdx-expression@2.0.1/node_modules/mdast-util-mdx-expression/index.d.ts
3755
2846
  /**
3756
- * MDX expression node, occurring in flow (block).
2847
+ * MDX expression node, occurring in flow (block).
2848
+ */
2849
+ interface MdxFlowExpression extends Literal$2 {
2850
+ /**
2851
+ * Node type.
2852
+ */
2853
+ type: 'mdxFlowExpression';
2854
+ /**
2855
+ * Data associated with the mdast MDX expression (flow).
2856
+ */
2857
+ data?: MdxFlowExpressionData | undefined;
2858
+ }
2859
+ /**
2860
+ * Info associated with mdast MDX expression (flow) nodes by the ecosystem.
2861
+ */
2862
+ interface MdxFlowExpressionData extends Data$2 {
2863
+ /**
2864
+ * Program node from estree.
2865
+ */
2866
+ estree?: Program | null | undefined;
2867
+ }
2868
+ /**
2869
+ * MDX expression node, occurring in text (phrasing).
2870
+ */
2871
+ interface MdxTextExpression extends Literal$2 {
2872
+ /**
2873
+ * Node type.
2874
+ */
2875
+ type: 'mdxTextExpression';
2876
+ /**
2877
+ * Data associated with the mdast MDX expression (text).
2878
+ */
2879
+ data?: MdxTextExpressionData | undefined;
2880
+ }
2881
+ /**
2882
+ * Info associated with mdast MDX expression (text) nodes by the ecosystem.
2883
+ */
2884
+ interface MdxTextExpressionData extends Data$2 {
2885
+ /**
2886
+ * Program node from estree.
2887
+ */
2888
+ estree?: Program | null | undefined;
2889
+ }
2890
+ /**
2891
+ * MDX expression node, occurring in flow (block), for hast.
2892
+ */
2893
+ interface MdxFlowExpressionHast extends Literal {
2894
+ /**
2895
+ * Node type.
2896
+ */
2897
+ type: 'mdxFlowExpression';
2898
+ /**
2899
+ * Data associated with the hast MDX expression (flow).
2900
+ */
2901
+ data?: MdxFlowExpressionHastData | undefined;
2902
+ }
2903
+ /**
2904
+ * Info associated with hast MDX expression (flow) nodes by the ecosystem.
2905
+ */
2906
+ interface MdxFlowExpressionHastData extends Data {
2907
+ /**
2908
+ * Program node from estree.
2909
+ */
2910
+ estree?: Program | null | undefined;
2911
+ }
2912
+ /**
2913
+ * MDX expression node, occurring in text (phrasing), for hast.
2914
+ */
2915
+ interface MdxTextExpressionHast extends Literal {
2916
+ /**
2917
+ * Node type.
2918
+ */
2919
+ type: 'mdxTextExpression';
2920
+ /**
2921
+ * Data associated with the hast MDX expression (text).
2922
+ */
2923
+ data?: MdxTextExpressionHastData | undefined;
2924
+ }
2925
+ /**
2926
+ * Info associated with hast MDX expression (text) nodes by the ecosystem.
2927
+ */
2928
+ interface MdxTextExpressionHastData extends Data {
2929
+ /**
2930
+ * Program node from estree.
2931
+ */
2932
+ estree?: Program | null | undefined;
2933
+ } // Add nodes to mdast content.
2934
+ declare module 'mdast' {
2935
+ interface RootContentMap {
2936
+ /**
2937
+ * MDX expression node, occurring in text (phrasing).
2938
+ */
2939
+ mdxTextExpression: MdxTextExpression;
2940
+ /**
2941
+ * MDX expression node, occurring in flow (block).
2942
+ */
2943
+ mdxFlowExpression: MdxFlowExpression;
2944
+ }
2945
+ interface PhrasingContentMap {
2946
+ /**
2947
+ * MDX expression node, occurring in text (phrasing).
2948
+ */
2949
+ mdxTextExpression: MdxTextExpression;
2950
+ }
2951
+ interface BlockContentMap {
2952
+ /**
2953
+ * MDX expression node, occurring in flow (block).
2954
+ */
2955
+ mdxFlowExpression: MdxFlowExpression;
2956
+ }
2957
+ } // Add nodes to hast content.
2958
+ declare module 'hast' {
2959
+ interface RootContentMap {
2960
+ /**
2961
+ * MDX expression node, occurring in flow (block).
2962
+ */
2963
+ mdxFlowExpression: MdxFlowExpressionHast;
2964
+ /**
2965
+ * MDX expression node, occurring in text (phrasing).
2966
+ */
2967
+ mdxTextExpression: MdxTextExpressionHast;
2968
+ }
2969
+ interface ElementContentMap {
2970
+ /**
2971
+ * MDX expression node, occurring in flow (block).
2972
+ */
2973
+ mdxFlowExpression: MdxFlowExpressionHast;
2974
+ /**
2975
+ * MDX expression node, occurring in text (phrasing).
2976
+ */
2977
+ mdxTextExpression: MdxTextExpressionHast;
2978
+ }
2979
+ } //#endregion
2980
+ //#region ../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.0/node_modules/mdast-util-mdx-jsx/lib/index.d.ts
2981
+ /**
2982
+ * Single tag.
2983
+ */
2984
+ type Tag = {
2985
+ /**
2986
+ * Name of tag, or `undefined` for fragment.
2987
+ *
2988
+ * > 👉 **Note**: `null` is used in the AST for fragments, as it serializes in
2989
+ * > JSON.
2990
+ */
2991
+ name: string | undefined;
2992
+ /**
2993
+ * Attributes.
2994
+ */
2995
+ attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
2996
+ /**
2997
+ * Whether the tag is closing (`</x>`).
2998
+ */
2999
+ close: boolean;
3000
+ /**
3001
+ * Whether the tag is self-closing (`<x/>`).
3002
+ */
3003
+ selfClosing: boolean;
3004
+ /**
3005
+ * Start point.
3006
+ */
3007
+ start: Token["start"];
3008
+ /**
3009
+ * End point.
3010
+ */
3011
+ end: Token["start"];
3012
+ }; //#endregion
3013
+ //#region ../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.0/node_modules/mdast-util-mdx-jsx/index.d.ts
3014
+ // Expose node types.
3015
+ /**
3016
+ * MDX JSX attribute value set to an expression.
3017
+ *
3018
+ * ```markdown
3019
+ * > | <a b={c} />
3020
+ * ^^^
3021
+ * ```
3022
+ */
3023
+ interface MdxJsxAttributeValueExpression extends Node$1 {
3024
+ /**
3025
+ * Node type.
3026
+ */
3027
+ type: 'mdxJsxAttributeValueExpression';
3028
+ /**
3029
+ * Value.
3030
+ */
3031
+ value: string;
3032
+ /**
3033
+ * Data associated with the mdast MDX JSX attribute value expression.
3034
+ */
3035
+ data?: MdxJsxAttributeValueExpressionData | undefined;
3036
+ }
3037
+ /**
3038
+ * Info associated with mdast MDX JSX attribute value expression nodes by the
3039
+ * ecosystem.
3040
+ */
3041
+ interface MdxJsxAttributeValueExpressionData extends Data$1 {
3042
+ /**
3043
+ * Program node from estree.
3044
+ */
3045
+ estree?: Program | null | undefined;
3046
+ }
3047
+ /**
3048
+ * MDX JSX attribute as an expression.
3049
+ *
3050
+ * ```markdown
3051
+ * > | <a {...b} />
3052
+ * ^^^^^^
3053
+ * ```
3757
3054
  */
3758
- interface MdxFlowExpression extends Literal$2 {
3055
+ interface MdxJsxExpressionAttribute extends Node$1 {
3759
3056
  /**
3760
3057
  * Node type.
3761
3058
  */
3762
- type: 'mdxFlowExpression';
3059
+ type: 'mdxJsxExpressionAttribute';
3763
3060
  /**
3764
- * Data associated with the mdast MDX expression (flow).
3061
+ * Value.
3765
3062
  */
3766
- data?: MdxFlowExpressionData | undefined;
3063
+ value: string;
3064
+ /**
3065
+ * Data associated with the mdast MDX JSX expression attributes.
3066
+ */
3067
+ data?: MdxJsxExpressionAttributeData | undefined;
3767
3068
  }
3768
3069
  /**
3769
- * Info associated with mdast MDX expression (flow) nodes by the ecosystem.
3070
+ * Info associated with mdast MDX JSX expression attribute nodes by the
3071
+ * ecosystem.
3770
3072
  */
3771
- interface MdxFlowExpressionData extends Data$2 {
3073
+ interface MdxJsxExpressionAttributeData extends Data$1 {
3772
3074
  /**
3773
3075
  * Program node from estree.
3774
3076
  */
3775
3077
  estree?: Program | null | undefined;
3776
3078
  }
3777
3079
  /**
3778
- * MDX expression node, occurring in text (phrasing).
3080
+ * MDX JSX attribute with a key.
3081
+ *
3082
+ * ```markdown
3083
+ * > | <a b="c" />
3084
+ * ^^^^^
3085
+ * ```
3779
3086
  */
3780
- interface MdxTextExpression extends Literal$2 {
3087
+ interface MdxJsxAttribute extends Node$1 {
3781
3088
  /**
3782
3089
  * Node type.
3783
3090
  */
3784
- type: 'mdxTextExpression';
3091
+ type: 'mdxJsxAttribute';
3785
3092
  /**
3786
- * Data associated with the mdast MDX expression (text).
3093
+ * Attribute name.
3787
3094
  */
3788
- data?: MdxTextExpressionData | undefined;
3095
+ name: string;
3096
+ /**
3097
+ * Attribute value.
3098
+ */
3099
+ value?: MdxJsxAttributeValueExpression | string | null | undefined;
3100
+ /**
3101
+ * Data associated with the mdast MDX JSX attribute.
3102
+ */
3103
+ data?: MdxJsxAttributeData | undefined;
3789
3104
  }
3790
3105
  /**
3791
- * Info associated with mdast MDX expression (text) nodes by the ecosystem.
3106
+ * Info associated with mdast MDX JSX attribute nodes by the
3107
+ * ecosystem.
3792
3108
  */
3793
- interface MdxTextExpressionData extends Data$2 {
3109
+ interface MdxJsxAttributeData extends Data$1 {}
3110
+ /**
3111
+ * MDX JSX element node, occurring in flow (block).
3112
+ */
3113
+ interface MdxJsxFlowElement extends Parent$1 {
3794
3114
  /**
3795
- * Program node from estree.
3115
+ * Node type.
3796
3116
  */
3797
- estree?: Program | null | undefined;
3117
+ type: 'mdxJsxFlowElement';
3118
+ /**
3119
+ * MDX JSX element name (`null` for fragments).
3120
+ */
3121
+ name: string | null;
3122
+ /**
3123
+ * MDX JSX element attributes.
3124
+ */
3125
+ attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
3126
+ /**
3127
+ * Content.
3128
+ */
3129
+ children: Array<BlockContent | DefinitionContent>;
3130
+ /**
3131
+ * Data associated with the mdast MDX JSX elements (flow).
3132
+ */
3133
+ data?: MdxJsxFlowElementData | undefined;
3798
3134
  }
3799
3135
  /**
3800
- * MDX expression node, occurring in flow (block), for hast.
3136
+ * Info associated with mdast MDX JSX element (flow) nodes by the
3137
+ * ecosystem.
3801
3138
  */
3802
- interface MdxFlowExpressionHast extends Literal {
3139
+ interface MdxJsxFlowElementData extends Data$2 {}
3140
+ /**
3141
+ * MDX JSX element node, occurring in text (phrasing).
3142
+ */
3143
+ interface MdxJsxTextElement extends Parent$1 {
3803
3144
  /**
3804
3145
  * Node type.
3805
3146
  */
3806
- type: 'mdxFlowExpression';
3147
+ type: 'mdxJsxTextElement';
3807
3148
  /**
3808
- * Data associated with the hast MDX expression (flow).
3149
+ * MDX JSX element name (`null` for fragments).
3809
3150
  */
3810
- data?: MdxFlowExpressionHastData | undefined;
3151
+ name: string | null;
3152
+ /**
3153
+ * MDX JSX element attributes.
3154
+ */
3155
+ attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
3156
+ /**
3157
+ * Content.
3158
+ */
3159
+ children: PhrasingContent[];
3160
+ /**
3161
+ * Data associated with the mdast MDX JSX elements (text).
3162
+ */
3163
+ data?: MdxJsxTextElementData | undefined;
3811
3164
  }
3812
3165
  /**
3813
- * Info associated with hast MDX expression (flow) nodes by the ecosystem.
3166
+ * Info associated with mdast MDX JSX element (text) nodes by the
3167
+ * ecosystem.
3814
3168
  */
3815
- interface MdxFlowExpressionHastData extends Data {
3169
+ interface MdxJsxTextElementData extends Data$2 {}
3170
+ /**
3171
+ * MDX JSX element node, occurring in flow (block), for hast.
3172
+ */
3173
+ interface MdxJsxFlowElementHast extends Parent {
3816
3174
  /**
3817
- * Program node from estree.
3175
+ * Node type.
3818
3176
  */
3819
- estree?: Program | null | undefined;
3177
+ type: 'mdxJsxFlowElement';
3178
+ /**
3179
+ * MDX JSX element name (`null` for fragments).
3180
+ */
3181
+ name: string | null;
3182
+ /**
3183
+ * MDX JSX element attributes.
3184
+ */
3185
+ attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
3186
+ /**
3187
+ * Content.
3188
+ */
3189
+ children: ElementContent[];
3190
+ /**
3191
+ * Data associated with the hast MDX JSX elements (flow).
3192
+ */
3193
+ data?: MdxJsxFlowElementHastData | undefined;
3820
3194
  }
3821
3195
  /**
3822
- * MDX expression node, occurring in text (phrasing), for hast.
3196
+ * Info associated with hast MDX JSX element (flow) nodes by the
3197
+ * ecosystem.
3823
3198
  */
3824
- interface MdxTextExpressionHast extends Literal {
3199
+ interface MdxJsxFlowElementHastData extends Data {}
3200
+ /**
3201
+ * MDX JSX element node, occurring in text (phrasing), for hast.
3202
+ */
3203
+ interface MdxJsxTextElementHast extends Parent {
3825
3204
  /**
3826
3205
  * Node type.
3827
3206
  */
3828
- type: 'mdxTextExpression';
3207
+ type: 'mdxJsxTextElement';
3829
3208
  /**
3830
- * Data associated with the hast MDX expression (text).
3209
+ * MDX JSX element name (`null` for fragments).
3831
3210
  */
3832
- data?: MdxTextExpressionHastData | undefined;
3211
+ name: string | null;
3212
+ /**
3213
+ * MDX JSX element attributes.
3214
+ */
3215
+ attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
3216
+ /**
3217
+ * Content.
3218
+ */
3219
+ children: ElementContent[];
3220
+ /**
3221
+ * Data associated with the hast MDX JSX elements (text).
3222
+ */
3223
+ data?: MdxJsxTextElementHastData | undefined;
3833
3224
  }
3834
3225
  /**
3835
- * Info associated with hast MDX expression (text) nodes by the ecosystem.
3226
+ * Info associated with hast MDX JSX element (text) nodes by the
3227
+ * ecosystem.
3836
3228
  */
3837
- interface MdxTextExpressionHastData extends Data {
3838
- /**
3839
- * Program node from estree.
3840
- */
3841
- estree?: Program | null | undefined;
3842
- } // Add nodes to mdast content.
3229
+ interface MdxJsxTextElementHastData extends Data {} // Add nodes to mdast content.
3843
3230
  declare module 'mdast' {
3844
- interface RootContentMap {
3845
- /**
3846
- * MDX expression node, occurring in text (phrasing).
3847
- */
3848
- mdxTextExpression: MdxTextExpression;
3231
+ interface BlockContentMap {
3849
3232
  /**
3850
- * MDX expression node, occurring in flow (block).
3233
+ * MDX JSX element node, occurring in flow (block).
3851
3234
  */
3852
- mdxFlowExpression: MdxFlowExpression;
3235
+ mdxJsxFlowElement: MdxJsxFlowElement;
3853
3236
  }
3854
3237
  interface PhrasingContentMap {
3855
3238
  /**
3856
- * MDX expression node, occurring in text (phrasing).
3239
+ * MDX JSX element node, occurring in text (phrasing).
3857
3240
  */
3858
- mdxTextExpression: MdxTextExpression;
3241
+ mdxJsxTextElement: MdxJsxTextElement;
3859
3242
  }
3860
- interface BlockContentMap {
3243
+ interface RootContentMap {
3861
3244
  /**
3862
- * MDX expression node, occurring in flow (block).
3245
+ * MDX JSX element node, occurring in flow (block).
3863
3246
  */
3864
- mdxFlowExpression: MdxFlowExpression;
3247
+ mdxJsxFlowElement: MdxJsxFlowElement;
3248
+ /**
3249
+ * MDX JSX element node, occurring in text (phrasing).
3250
+ */
3251
+ mdxJsxTextElement: MdxJsxTextElement;
3865
3252
  }
3866
3253
  } // Add nodes to hast content.
3867
3254
  declare module 'hast' {
3868
- interface RootContentMap {
3255
+ interface ElementContentMap {
3869
3256
  /**
3870
- * MDX expression node, occurring in flow (block).
3257
+ * MDX JSX element node, occurring in text (phrasing).
3871
3258
  */
3872
- mdxFlowExpression: MdxFlowExpressionHast;
3259
+ mdxJsxTextElement: MdxJsxTextElementHast;
3873
3260
  /**
3874
- * MDX expression node, occurring in text (phrasing).
3261
+ * MDX JSX element node, occurring in flow (block).
3875
3262
  */
3876
- mdxTextExpression: MdxTextExpressionHast;
3263
+ mdxJsxFlowElement: MdxJsxFlowElementHast;
3877
3264
  }
3878
- interface ElementContentMap {
3265
+ interface RootContentMap {
3879
3266
  /**
3880
- * MDX expression node, occurring in flow (block).
3267
+ * MDX JSX element node, occurring in text (phrasing).
3881
3268
  */
3882
- mdxFlowExpression: MdxFlowExpressionHast;
3269
+ mdxJsxTextElement: MdxJsxTextElementHast;
3883
3270
  /**
3884
- * MDX expression node, occurring in text (phrasing).
3271
+ * MDX JSX element node, occurring in flow (block).
3885
3272
  */
3886
- mdxTextExpression: MdxTextExpressionHast;
3273
+ mdxJsxFlowElement: MdxJsxFlowElementHast;
3887
3274
  }
3888
- } //#endregion
3889
- //#region ../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.0/node_modules/mdast-util-mdx-jsx/lib/index.d.ts
3890
- /**
3891
- * Single tag.
3892
- */
3893
- type Tag = {
3894
- /**
3895
- * Name of tag, or `undefined` for fragment.
3896
- *
3897
- * > 👉 **Note**: `null` is used in the AST for fragments, as it serializes in
3898
- * > JSON.
3899
- */
3900
- name: string | undefined;
3901
- /**
3902
- * Attributes.
3903
- */
3904
- attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
3905
- /**
3906
- * Whether the tag is closing (`</x>`).
3907
- */
3908
- close: boolean;
3909
- /**
3910
- * Whether the tag is self-closing (`<x/>`).
3911
- */
3912
- selfClosing: boolean;
3913
- /**
3914
- * Start point.
3915
- */
3916
- start: Token["start"];
3917
- /**
3918
- * End point.
3919
- */
3920
- end: Token["start"];
3921
- }; //#endregion
3922
- //#region ../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.0/node_modules/mdast-util-mdx-jsx/index.d.ts
3923
- // Expose node types.
3275
+ } // Add custom data tracked to turn markdown into a tree.
3276
+ declare module 'mdast-util-from-markdown' {
3277
+ interface CompileData {
3278
+ /**
3279
+ * Current MDX JSX tag.
3280
+ */
3281
+ mdxJsxTag?: Tag | undefined;
3282
+ /**
3283
+ * Current stack of open MDX JSX tags.
3284
+ */
3285
+ mdxJsxTagStack?: Tag[] | undefined;
3286
+ }
3287
+ } // Add custom data tracked to turn a syntax tree into markdown.
3288
+ declare module 'mdast-util-to-markdown' {
3289
+ interface ConstructNameMap {
3290
+ /**
3291
+ * Whole JSX element, in flow.
3292
+ *
3293
+ * ```markdown
3294
+ * > | <a />
3295
+ * ^^^^^
3296
+ * ```
3297
+ */
3298
+ mdxJsxFlowElement: 'mdxJsxFlowElement';
3299
+ /**
3300
+ * Whole JSX element, in text.
3301
+ *
3302
+ * ```markdown
3303
+ * > | a <b />.
3304
+ * ^^^^^
3305
+ * ```
3306
+ */
3307
+ mdxJsxTextElement: 'mdxJsxTextElement';
3308
+ }
3309
+ } //#endregion
3310
+ //#region ../../node_modules/.pnpm/mdast-util-mdxjs-esm@2.0.1/node_modules/mdast-util-mdxjs-esm/index.d.ts
3924
3311
  /**
3925
- * MDX JSX attribute value set to an expression.
3926
- *
3927
- * ```markdown
3928
- * > | <a b={c} />
3929
- * ^^^
3930
- * ```
3312
+ * MDX ESM (import/export) node.
3931
3313
  */
3932
- interface MdxJsxAttributeValueExpression extends Node$1 {
3314
+ interface MdxjsEsm extends Literal$2 {
3933
3315
  /**
3934
3316
  * Node type.
3935
3317
  */
3936
- type: 'mdxJsxAttributeValueExpression';
3937
- /**
3938
- * Value.
3939
- */
3940
- value: string;
3318
+ type: 'mdxjsEsm';
3941
3319
  /**
3942
- * Data associated with the mdast MDX JSX attribute value expression.
3320
+ * Data associated with mdast MDX.js ESM.
3943
3321
  */
3944
- data?: MdxJsxAttributeValueExpressionData | undefined;
3322
+ data?: MdxjsEsmData | undefined;
3945
3323
  }
3946
3324
  /**
3947
- * Info associated with mdast MDX JSX attribute value expression nodes by the
3948
- * ecosystem.
3325
+ * Info associated with mdast MDX.js ESM nodes by the ecosystem.
3949
3326
  */
3950
- interface MdxJsxAttributeValueExpressionData extends Data$1 {
3327
+ interface MdxjsEsmData extends Data$2 {
3951
3328
  /**
3952
3329
  * Program node from estree.
3953
3330
  */
3954
3331
  estree?: Program | null | undefined;
3955
3332
  }
3956
3333
  /**
3957
- * MDX JSX attribute as an expression.
3958
- *
3959
- * ```markdown
3960
- * > | <a {...b} />
3961
- * ^^^^^^
3962
- * ```
3334
+ * MDX ESM (import/export) node (for hast).
3963
3335
  */
3964
- interface MdxJsxExpressionAttribute extends Node$1 {
3336
+ interface MdxjsEsmHast extends Literal {
3965
3337
  /**
3966
3338
  * Node type.
3967
3339
  */
3968
- type: 'mdxJsxExpressionAttribute';
3969
- /**
3970
- * Value.
3971
- */
3972
- value: string;
3340
+ type: 'mdxjsEsm';
3973
3341
  /**
3974
- * Data associated with the mdast MDX JSX expression attributes.
3342
+ * Data associated with hast MDX.js ESM.
3975
3343
  */
3976
- data?: MdxJsxExpressionAttributeData | undefined;
3344
+ data?: MdxjsEsmHastData | undefined;
3977
3345
  }
3978
3346
  /**
3979
- * Info associated with mdast MDX JSX expression attribute nodes by the
3980
- * ecosystem.
3347
+ * Info associated with hast MDX.js ESM nodes by the ecosystem.
3981
3348
  */
3982
- interface MdxJsxExpressionAttributeData extends Data$1 {
3349
+ interface MdxjsEsmHastData extends Data {
3983
3350
  /**
3984
3351
  * Program node from estree.
3985
3352
  */
3986
3353
  estree?: Program | null | undefined;
3987
- }
3354
+ } // Add nodes to mdast content.
3355
+ declare module 'mdast' {
3356
+ interface FrontmatterContentMap {
3357
+ /**
3358
+ * MDX ESM.
3359
+ */
3360
+ mdxjsEsm: MdxjsEsm;
3361
+ }
3362
+ interface RootContentMap {
3363
+ /**
3364
+ * MDX ESM.
3365
+ */
3366
+ mdxjsEsm: MdxjsEsm;
3367
+ }
3368
+ } // Add nodes to hast content.
3369
+ declare module 'hast' {
3370
+ interface RootContentMap {
3371
+ /**
3372
+ * MDX ESM.
3373
+ */
3374
+ mdxjsEsm: MdxjsEsmHast;
3375
+ }
3376
+ } //#endregion
3377
+ //#region src/compiler/export-parser.d.ts
3988
3378
  /**
3989
- * MDX JSX attribute with a key.
3990
- *
3991
- * ```markdown
3992
- * > | <a b="c" />
3993
- * ^^^^^
3994
- * ```
3379
+ * Metadata source type
3995
3380
  */
3996
- interface MdxJsxAttribute extends Node$1 {
3997
- /**
3998
- * Node type.
3999
- */
4000
- type: 'mdxJsxAttribute';
4001
- /**
4002
- * Attribute name.
4003
- */
4004
- name: string;
4005
- /**
4006
- * Attribute value.
4007
- */
4008
- value?: MdxJsxAttributeValueExpression | string | null | undefined;
4009
- /**
4010
- * Data associated with the mdast MDX JSX attribute.
4011
- */
4012
- data?: MdxJsxAttributeData | undefined;
4013
- }
3381
+ //#endregion
3382
+ //#region src/plugins/plugin-core/ConfigTypes.schema.d.ts
4014
3383
  /**
4015
- * Info associated with mdast MDX JSX attribute nodes by the
4016
- * ecosystem.
3384
+ * Zod schema for the aindex configuration.
3385
+ * All paths are relative to <workspaceDir>/<aindex.dir>.
4017
3386
  */
4018
- interface MdxJsxAttributeData extends Data$1 {}
3387
+ declare const ZAindexConfig: z.ZodObject<{
3388
+ dir: z.ZodDefault<z.ZodString>;
3389
+ skills: z.ZodObject<{
3390
+ src: z.ZodString;
3391
+ dist: z.ZodString;
3392
+ }, "strip", z.ZodTypeAny, {
3393
+ src: string;
3394
+ dist: string;
3395
+ }, {
3396
+ src: string;
3397
+ dist: string;
3398
+ }>;
3399
+ commands: z.ZodObject<{
3400
+ src: z.ZodString;
3401
+ dist: z.ZodString;
3402
+ }, "strip", z.ZodTypeAny, {
3403
+ src: string;
3404
+ dist: string;
3405
+ }, {
3406
+ src: string;
3407
+ dist: string;
3408
+ }>;
3409
+ subAgents: z.ZodObject<{
3410
+ src: z.ZodString;
3411
+ dist: z.ZodString;
3412
+ }, "strip", z.ZodTypeAny, {
3413
+ src: string;
3414
+ dist: string;
3415
+ }, {
3416
+ src: string;
3417
+ dist: string;
3418
+ }>;
3419
+ rules: z.ZodObject<{
3420
+ src: z.ZodString;
3421
+ dist: z.ZodString;
3422
+ }, "strip", z.ZodTypeAny, {
3423
+ src: string;
3424
+ dist: string;
3425
+ }, {
3426
+ src: string;
3427
+ dist: string;
3428
+ }>;
3429
+ globalPrompt: z.ZodObject<{
3430
+ src: z.ZodString;
3431
+ dist: z.ZodString;
3432
+ }, "strip", z.ZodTypeAny, {
3433
+ src: string;
3434
+ dist: string;
3435
+ }, {
3436
+ src: string;
3437
+ dist: string;
3438
+ }>;
3439
+ workspacePrompt: z.ZodObject<{
3440
+ src: z.ZodString;
3441
+ dist: z.ZodString;
3442
+ }, "strip", z.ZodTypeAny, {
3443
+ src: string;
3444
+ dist: string;
3445
+ }, {
3446
+ src: string;
3447
+ dist: string;
3448
+ }>;
3449
+ app: z.ZodObject<{
3450
+ src: z.ZodString;
3451
+ dist: z.ZodString;
3452
+ }, "strip", z.ZodTypeAny, {
3453
+ src: string;
3454
+ dist: string;
3455
+ }, {
3456
+ src: string;
3457
+ dist: string;
3458
+ }>;
3459
+ ext: z.ZodObject<{
3460
+ src: z.ZodString;
3461
+ dist: z.ZodString;
3462
+ }, "strip", z.ZodTypeAny, {
3463
+ src: string;
3464
+ dist: string;
3465
+ }, {
3466
+ src: string;
3467
+ dist: string;
3468
+ }>;
3469
+ arch: z.ZodObject<{
3470
+ src: z.ZodString;
3471
+ dist: z.ZodString;
3472
+ }, "strip", z.ZodTypeAny, {
3473
+ src: string;
3474
+ dist: string;
3475
+ }, {
3476
+ src: string;
3477
+ dist: string;
3478
+ }>;
3479
+ }, "strip", z.ZodTypeAny, {
3480
+ dir: string;
3481
+ skills: {
3482
+ src: string;
3483
+ dist: string;
3484
+ };
3485
+ commands: {
3486
+ src: string;
3487
+ dist: string;
3488
+ };
3489
+ subAgents: {
3490
+ src: string;
3491
+ dist: string;
3492
+ };
3493
+ rules: {
3494
+ src: string;
3495
+ dist: string;
3496
+ };
3497
+ globalPrompt: {
3498
+ src: string;
3499
+ dist: string;
3500
+ };
3501
+ workspacePrompt: {
3502
+ src: string;
3503
+ dist: string;
3504
+ };
3505
+ app: {
3506
+ src: string;
3507
+ dist: string;
3508
+ };
3509
+ ext: {
3510
+ src: string;
3511
+ dist: string;
3512
+ };
3513
+ arch: {
3514
+ src: string;
3515
+ dist: string;
3516
+ };
3517
+ }, {
3518
+ skills: {
3519
+ src: string;
3520
+ dist: string;
3521
+ };
3522
+ commands: {
3523
+ src: string;
3524
+ dist: string;
3525
+ };
3526
+ subAgents: {
3527
+ src: string;
3528
+ dist: string;
3529
+ };
3530
+ rules: {
3531
+ src: string;
3532
+ dist: string;
3533
+ };
3534
+ globalPrompt: {
3535
+ src: string;
3536
+ dist: string;
3537
+ };
3538
+ workspacePrompt: {
3539
+ src: string;
3540
+ dist: string;
3541
+ };
3542
+ app: {
3543
+ src: string;
3544
+ dist: string;
3545
+ };
3546
+ ext: {
3547
+ src: string;
3548
+ dist: string;
3549
+ };
3550
+ arch: {
3551
+ src: string;
3552
+ dist: string;
3553
+ };
3554
+ dir?: string | undefined;
3555
+ }>;
4019
3556
  /**
4020
- * MDX JSX element node, occurring in flow (block).
3557
+ * Zod schema for command series configuration options.
4021
3558
  */
4022
- interface MdxJsxFlowElement extends Parent$1 {
4023
- /**
4024
- * Node type.
4025
- */
4026
- type: 'mdxJsxFlowElement';
4027
- /**
4028
- * MDX JSX element name (`null` for fragments).
4029
- */
4030
- name: string | null;
4031
- /**
4032
- * MDX JSX element attributes.
4033
- */
4034
- attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
4035
- /**
4036
- * Content.
4037
- */
4038
- children: Array<BlockContent | DefinitionContent>;
4039
- /**
4040
- * Data associated with the mdast MDX JSX elements (flow).
4041
- */
4042
- data?: MdxJsxFlowElementData | undefined;
4043
- }
3559
+ declare const ZCommandSeriesOptions: z.ZodObject<{
3560
+ includeSeriesPrefix: z.ZodOptional<z.ZodBoolean>;
3561
+ pluginOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3562
+ includeSeriesPrefix: z.ZodOptional<z.ZodBoolean>;
3563
+ seriesSeparator: z.ZodOptional<z.ZodString>;
3564
+ }, "strip", z.ZodTypeAny, {
3565
+ includeSeriesPrefix?: boolean | undefined;
3566
+ seriesSeparator?: string | undefined;
3567
+ }, {
3568
+ includeSeriesPrefix?: boolean | undefined;
3569
+ seriesSeparator?: string | undefined;
3570
+ }>>>;
3571
+ }, "strip", z.ZodTypeAny, {
3572
+ includeSeriesPrefix?: boolean | undefined;
3573
+ pluginOverrides?: Record<string, {
3574
+ includeSeriesPrefix?: boolean | undefined;
3575
+ seriesSeparator?: string | undefined;
3576
+ }> | undefined;
3577
+ }, {
3578
+ includeSeriesPrefix?: boolean | undefined;
3579
+ pluginOverrides?: Record<string, {
3580
+ includeSeriesPrefix?: boolean | undefined;
3581
+ seriesSeparator?: string | undefined;
3582
+ }> | undefined;
3583
+ }>;
4044
3584
  /**
4045
- * Info associated with mdast MDX JSX element (flow) nodes by the
4046
- * ecosystem.
3585
+ * Zod schema for output scope override configuration.
4047
3586
  */
4048
- interface MdxJsxFlowElementData extends Data$2 {}
3587
+ declare const ZOutputScopeOptions: z.ZodObject<{
3588
+ plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3589
+ prompt: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3590
+ rules: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3591
+ commands: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3592
+ subagents: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3593
+ skills: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3594
+ mcp: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3595
+ }, "strip", z.ZodTypeAny, {
3596
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
3597
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
3598
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
3599
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
3600
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
3601
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
3602
+ }, {
3603
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
3604
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
3605
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
3606
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
3607
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
3608
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
3609
+ }>>>;
3610
+ }, "strip", z.ZodTypeAny, {
3611
+ plugins?: Record<string, {
3612
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
3613
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
3614
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
3615
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
3616
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
3617
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
3618
+ }> | undefined;
3619
+ }, {
3620
+ plugins?: Record<string, {
3621
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
3622
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
3623
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
3624
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
3625
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
3626
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
3627
+ }> | undefined;
3628
+ }>;
4049
3629
  /**
4050
- * MDX JSX element node, occurring in text (phrasing).
3630
+ * Zod schema for shared front matter formatting options.
4051
3631
  */
4052
- interface MdxJsxTextElement extends Parent$1 {
4053
- /**
4054
- * Node type.
4055
- */
4056
- type: 'mdxJsxTextElement';
4057
- /**
4058
- * MDX JSX element name (`null` for fragments).
4059
- */
4060
- name: string | null;
4061
- /**
4062
- * MDX JSX element attributes.
4063
- */
4064
- attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
4065
- /**
4066
- * Content.
4067
- */
4068
- children: PhrasingContent[];
4069
- /**
4070
- * Data associated with the mdast MDX JSX elements (text).
4071
- */
4072
- data?: MdxJsxTextElementData | undefined;
4073
- }
3632
+ declare const ZFrontMatterOptions: z.ZodObject<{
3633
+ blankLineAfter: z.ZodOptional<z.ZodBoolean>;
3634
+ }, "strip", z.ZodTypeAny, {
3635
+ blankLineAfter?: boolean | undefined;
3636
+ }, {
3637
+ blankLineAfter?: boolean | undefined;
3638
+ }>;
3639
+ declare const ZProtectionMode: z.ZodEnum<["direct", "recursive"]>;
3640
+ declare const ZCleanupProtectionOptions: z.ZodObject<{
3641
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
3642
+ path: z.ZodString;
3643
+ protectionMode: z.ZodEnum<["direct", "recursive"]>;
3644
+ matcher: z.ZodOptional<z.ZodEnum<["path", "glob"]>>;
3645
+ reason: z.ZodOptional<z.ZodString>;
3646
+ }, "strip", z.ZodTypeAny, {
3647
+ path: string;
3648
+ protectionMode: "direct" | "recursive";
3649
+ matcher?: "path" | "glob" | undefined;
3650
+ reason?: string | undefined;
3651
+ }, {
3652
+ path: string;
3653
+ protectionMode: "direct" | "recursive";
3654
+ matcher?: "path" | "glob" | undefined;
3655
+ reason?: string | undefined;
3656
+ }>, "many">>;
3657
+ }, "strip", z.ZodTypeAny, {
3658
+ rules?: {
3659
+ path: string;
3660
+ protectionMode: "direct" | "recursive";
3661
+ matcher?: "path" | "glob" | undefined;
3662
+ reason?: string | undefined;
3663
+ }[] | undefined;
3664
+ }, {
3665
+ rules?: {
3666
+ path: string;
3667
+ protectionMode: "direct" | "recursive";
3668
+ matcher?: "path" | "glob" | undefined;
3669
+ reason?: string | undefined;
3670
+ }[] | undefined;
3671
+ }>;
4074
3672
  /**
4075
- * Info associated with mdast MDX JSX element (text) nodes by the
4076
- * ecosystem.
3673
+ * Zod schema for the user configuration file (.tnmsc.json).
4077
3674
  */
4078
- interface MdxJsxTextElementData extends Data$2 {}
3675
+ declare const ZUserConfigFile: z.ZodObject<{
3676
+ version: z.ZodOptional<z.ZodString>;
3677
+ workspaceDir: z.ZodOptional<z.ZodString>;
3678
+ aindex: z.ZodOptional<z.ZodObject<{
3679
+ dir: z.ZodDefault<z.ZodString>;
3680
+ skills: z.ZodObject<{
3681
+ src: z.ZodString;
3682
+ dist: z.ZodString;
3683
+ }, "strip", z.ZodTypeAny, {
3684
+ src: string;
3685
+ dist: string;
3686
+ }, {
3687
+ src: string;
3688
+ dist: string;
3689
+ }>;
3690
+ commands: z.ZodObject<{
3691
+ src: z.ZodString;
3692
+ dist: z.ZodString;
3693
+ }, "strip", z.ZodTypeAny, {
3694
+ src: string;
3695
+ dist: string;
3696
+ }, {
3697
+ src: string;
3698
+ dist: string;
3699
+ }>;
3700
+ subAgents: z.ZodObject<{
3701
+ src: z.ZodString;
3702
+ dist: z.ZodString;
3703
+ }, "strip", z.ZodTypeAny, {
3704
+ src: string;
3705
+ dist: string;
3706
+ }, {
3707
+ src: string;
3708
+ dist: string;
3709
+ }>;
3710
+ rules: z.ZodObject<{
3711
+ src: z.ZodString;
3712
+ dist: z.ZodString;
3713
+ }, "strip", z.ZodTypeAny, {
3714
+ src: string;
3715
+ dist: string;
3716
+ }, {
3717
+ src: string;
3718
+ dist: string;
3719
+ }>;
3720
+ globalPrompt: z.ZodObject<{
3721
+ src: z.ZodString;
3722
+ dist: z.ZodString;
3723
+ }, "strip", z.ZodTypeAny, {
3724
+ src: string;
3725
+ dist: string;
3726
+ }, {
3727
+ src: string;
3728
+ dist: string;
3729
+ }>;
3730
+ workspacePrompt: z.ZodObject<{
3731
+ src: z.ZodString;
3732
+ dist: z.ZodString;
3733
+ }, "strip", z.ZodTypeAny, {
3734
+ src: string;
3735
+ dist: string;
3736
+ }, {
3737
+ src: string;
3738
+ dist: string;
3739
+ }>;
3740
+ app: z.ZodObject<{
3741
+ src: z.ZodString;
3742
+ dist: z.ZodString;
3743
+ }, "strip", z.ZodTypeAny, {
3744
+ src: string;
3745
+ dist: string;
3746
+ }, {
3747
+ src: string;
3748
+ dist: string;
3749
+ }>;
3750
+ ext: z.ZodObject<{
3751
+ src: z.ZodString;
3752
+ dist: z.ZodString;
3753
+ }, "strip", z.ZodTypeAny, {
3754
+ src: string;
3755
+ dist: string;
3756
+ }, {
3757
+ src: string;
3758
+ dist: string;
3759
+ }>;
3760
+ arch: z.ZodObject<{
3761
+ src: z.ZodString;
3762
+ dist: z.ZodString;
3763
+ }, "strip", z.ZodTypeAny, {
3764
+ src: string;
3765
+ dist: string;
3766
+ }, {
3767
+ src: string;
3768
+ dist: string;
3769
+ }>;
3770
+ }, "strip", z.ZodTypeAny, {
3771
+ dir: string;
3772
+ skills: {
3773
+ src: string;
3774
+ dist: string;
3775
+ };
3776
+ commands: {
3777
+ src: string;
3778
+ dist: string;
3779
+ };
3780
+ subAgents: {
3781
+ src: string;
3782
+ dist: string;
3783
+ };
3784
+ rules: {
3785
+ src: string;
3786
+ dist: string;
3787
+ };
3788
+ globalPrompt: {
3789
+ src: string;
3790
+ dist: string;
3791
+ };
3792
+ workspacePrompt: {
3793
+ src: string;
3794
+ dist: string;
3795
+ };
3796
+ app: {
3797
+ src: string;
3798
+ dist: string;
3799
+ };
3800
+ ext: {
3801
+ src: string;
3802
+ dist: string;
3803
+ };
3804
+ arch: {
3805
+ src: string;
3806
+ dist: string;
3807
+ };
3808
+ }, {
3809
+ skills: {
3810
+ src: string;
3811
+ dist: string;
3812
+ };
3813
+ commands: {
3814
+ src: string;
3815
+ dist: string;
3816
+ };
3817
+ subAgents: {
3818
+ src: string;
3819
+ dist: string;
3820
+ };
3821
+ rules: {
3822
+ src: string;
3823
+ dist: string;
3824
+ };
3825
+ globalPrompt: {
3826
+ src: string;
3827
+ dist: string;
3828
+ };
3829
+ workspacePrompt: {
3830
+ src: string;
3831
+ dist: string;
3832
+ };
3833
+ app: {
3834
+ src: string;
3835
+ dist: string;
3836
+ };
3837
+ ext: {
3838
+ src: string;
3839
+ dist: string;
3840
+ };
3841
+ arch: {
3842
+ src: string;
3843
+ dist: string;
3844
+ };
3845
+ dir?: string | undefined;
3846
+ }>>;
3847
+ logLevel: z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error"]>>;
3848
+ commandSeriesOptions: z.ZodOptional<z.ZodObject<{
3849
+ includeSeriesPrefix: z.ZodOptional<z.ZodBoolean>;
3850
+ pluginOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3851
+ includeSeriesPrefix: z.ZodOptional<z.ZodBoolean>;
3852
+ seriesSeparator: z.ZodOptional<z.ZodString>;
3853
+ }, "strip", z.ZodTypeAny, {
3854
+ includeSeriesPrefix?: boolean | undefined;
3855
+ seriesSeparator?: string | undefined;
3856
+ }, {
3857
+ includeSeriesPrefix?: boolean | undefined;
3858
+ seriesSeparator?: string | undefined;
3859
+ }>>>;
3860
+ }, "strip", z.ZodTypeAny, {
3861
+ includeSeriesPrefix?: boolean | undefined;
3862
+ pluginOverrides?: Record<string, {
3863
+ includeSeriesPrefix?: boolean | undefined;
3864
+ seriesSeparator?: string | undefined;
3865
+ }> | undefined;
3866
+ }, {
3867
+ includeSeriesPrefix?: boolean | undefined;
3868
+ pluginOverrides?: Record<string, {
3869
+ includeSeriesPrefix?: boolean | undefined;
3870
+ seriesSeparator?: string | undefined;
3871
+ }> | undefined;
3872
+ }>>;
3873
+ outputScopes: z.ZodOptional<z.ZodObject<{
3874
+ plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3875
+ prompt: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3876
+ rules: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3877
+ commands: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3878
+ subagents: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3879
+ skills: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3880
+ mcp: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["project", "global"]>, z.ZodArray<z.ZodEnum<["project", "global"]>, "many">]>>;
3881
+ }, "strip", z.ZodTypeAny, {
3882
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
3883
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
3884
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
3885
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
3886
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
3887
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
3888
+ }, {
3889
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
3890
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
3891
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
3892
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
3893
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
3894
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
3895
+ }>>>;
3896
+ }, "strip", z.ZodTypeAny, {
3897
+ plugins?: Record<string, {
3898
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
3899
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
3900
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
3901
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
3902
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
3903
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
3904
+ }> | undefined;
3905
+ }, {
3906
+ plugins?: Record<string, {
3907
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
3908
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
3909
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
3910
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
3911
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
3912
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
3913
+ }> | undefined;
3914
+ }>>;
3915
+ frontMatter: z.ZodOptional<z.ZodObject<{
3916
+ blankLineAfter: z.ZodOptional<z.ZodBoolean>;
3917
+ }, "strip", z.ZodTypeAny, {
3918
+ blankLineAfter?: boolean | undefined;
3919
+ }, {
3920
+ blankLineAfter?: boolean | undefined;
3921
+ }>>;
3922
+ cleanupProtection: z.ZodOptional<z.ZodObject<{
3923
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
3924
+ path: z.ZodString;
3925
+ protectionMode: z.ZodEnum<["direct", "recursive"]>;
3926
+ matcher: z.ZodOptional<z.ZodEnum<["path", "glob"]>>;
3927
+ reason: z.ZodOptional<z.ZodString>;
3928
+ }, "strip", z.ZodTypeAny, {
3929
+ path: string;
3930
+ protectionMode: "direct" | "recursive";
3931
+ matcher?: "path" | "glob" | undefined;
3932
+ reason?: string | undefined;
3933
+ }, {
3934
+ path: string;
3935
+ protectionMode: "direct" | "recursive";
3936
+ matcher?: "path" | "glob" | undefined;
3937
+ reason?: string | undefined;
3938
+ }>, "many">>;
3939
+ }, "strip", z.ZodTypeAny, {
3940
+ rules?: {
3941
+ path: string;
3942
+ protectionMode: "direct" | "recursive";
3943
+ matcher?: "path" | "glob" | undefined;
3944
+ reason?: string | undefined;
3945
+ }[] | undefined;
3946
+ }, {
3947
+ rules?: {
3948
+ path: string;
3949
+ protectionMode: "direct" | "recursive";
3950
+ matcher?: "path" | "glob" | undefined;
3951
+ reason?: string | undefined;
3952
+ }[] | undefined;
3953
+ }>>;
3954
+ profile: z.ZodOptional<z.ZodObject<{
3955
+ name: z.ZodOptional<z.ZodString>;
3956
+ username: z.ZodOptional<z.ZodString>;
3957
+ gender: z.ZodOptional<z.ZodString>;
3958
+ birthday: z.ZodOptional<z.ZodString>;
3959
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
3960
+ name: z.ZodOptional<z.ZodString>;
3961
+ username: z.ZodOptional<z.ZodString>;
3962
+ gender: z.ZodOptional<z.ZodString>;
3963
+ birthday: z.ZodOptional<z.ZodString>;
3964
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
3965
+ name: z.ZodOptional<z.ZodString>;
3966
+ username: z.ZodOptional<z.ZodString>;
3967
+ gender: z.ZodOptional<z.ZodString>;
3968
+ birthday: z.ZodOptional<z.ZodString>;
3969
+ }, z.ZodUnknown, "strip">>>;
3970
+ }, "strip", z.ZodTypeAny, {
3971
+ version?: string | undefined;
3972
+ workspaceDir?: string | undefined;
3973
+ aindex?: {
3974
+ dir: string;
3975
+ skills: {
3976
+ src: string;
3977
+ dist: string;
3978
+ };
3979
+ commands: {
3980
+ src: string;
3981
+ dist: string;
3982
+ };
3983
+ subAgents: {
3984
+ src: string;
3985
+ dist: string;
3986
+ };
3987
+ rules: {
3988
+ src: string;
3989
+ dist: string;
3990
+ };
3991
+ globalPrompt: {
3992
+ src: string;
3993
+ dist: string;
3994
+ };
3995
+ workspacePrompt: {
3996
+ src: string;
3997
+ dist: string;
3998
+ };
3999
+ app: {
4000
+ src: string;
4001
+ dist: string;
4002
+ };
4003
+ ext: {
4004
+ src: string;
4005
+ dist: string;
4006
+ };
4007
+ arch: {
4008
+ src: string;
4009
+ dist: string;
4010
+ };
4011
+ } | undefined;
4012
+ logLevel?: "trace" | "debug" | "info" | "warn" | "error" | undefined;
4013
+ commandSeriesOptions?: {
4014
+ includeSeriesPrefix?: boolean | undefined;
4015
+ pluginOverrides?: Record<string, {
4016
+ includeSeriesPrefix?: boolean | undefined;
4017
+ seriesSeparator?: string | undefined;
4018
+ }> | undefined;
4019
+ } | undefined;
4020
+ outputScopes?: {
4021
+ plugins?: Record<string, {
4022
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
4023
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
4024
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
4025
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
4026
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
4027
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
4028
+ }> | undefined;
4029
+ } | undefined;
4030
+ frontMatter?: {
4031
+ blankLineAfter?: boolean | undefined;
4032
+ } | undefined;
4033
+ cleanupProtection?: {
4034
+ rules?: {
4035
+ path: string;
4036
+ protectionMode: "direct" | "recursive";
4037
+ matcher?: "path" | "glob" | undefined;
4038
+ reason?: string | undefined;
4039
+ }[] | undefined;
4040
+ } | undefined;
4041
+ profile?: z.objectOutputType<{
4042
+ name: z.ZodOptional<z.ZodString>;
4043
+ username: z.ZodOptional<z.ZodString>;
4044
+ gender: z.ZodOptional<z.ZodString>;
4045
+ birthday: z.ZodOptional<z.ZodString>;
4046
+ }, z.ZodUnknown, "strip"> | undefined;
4047
+ }, {
4048
+ version?: string | undefined;
4049
+ workspaceDir?: string | undefined;
4050
+ aindex?: {
4051
+ skills: {
4052
+ src: string;
4053
+ dist: string;
4054
+ };
4055
+ commands: {
4056
+ src: string;
4057
+ dist: string;
4058
+ };
4059
+ subAgents: {
4060
+ src: string;
4061
+ dist: string;
4062
+ };
4063
+ rules: {
4064
+ src: string;
4065
+ dist: string;
4066
+ };
4067
+ globalPrompt: {
4068
+ src: string;
4069
+ dist: string;
4070
+ };
4071
+ workspacePrompt: {
4072
+ src: string;
4073
+ dist: string;
4074
+ };
4075
+ app: {
4076
+ src: string;
4077
+ dist: string;
4078
+ };
4079
+ ext: {
4080
+ src: string;
4081
+ dist: string;
4082
+ };
4083
+ arch: {
4084
+ src: string;
4085
+ dist: string;
4086
+ };
4087
+ dir?: string | undefined;
4088
+ } | undefined;
4089
+ logLevel?: "trace" | "debug" | "info" | "warn" | "error" | undefined;
4090
+ commandSeriesOptions?: {
4091
+ includeSeriesPrefix?: boolean | undefined;
4092
+ pluginOverrides?: Record<string, {
4093
+ includeSeriesPrefix?: boolean | undefined;
4094
+ seriesSeparator?: string | undefined;
4095
+ }> | undefined;
4096
+ } | undefined;
4097
+ outputScopes?: {
4098
+ plugins?: Record<string, {
4099
+ skills?: "project" | "global" | ("project" | "global")[] | undefined;
4100
+ commands?: "project" | "global" | ("project" | "global")[] | undefined;
4101
+ rules?: "project" | "global" | ("project" | "global")[] | undefined;
4102
+ prompt?: "project" | "global" | ("project" | "global")[] | undefined;
4103
+ subagents?: "project" | "global" | ("project" | "global")[] | undefined;
4104
+ mcp?: "project" | "global" | ("project" | "global")[] | undefined;
4105
+ }> | undefined;
4106
+ } | undefined;
4107
+ frontMatter?: {
4108
+ blankLineAfter?: boolean | undefined;
4109
+ } | undefined;
4110
+ cleanupProtection?: {
4111
+ rules?: {
4112
+ path: string;
4113
+ protectionMode: "direct" | "recursive";
4114
+ matcher?: "path" | "glob" | undefined;
4115
+ reason?: string | undefined;
4116
+ }[] | undefined;
4117
+ } | undefined;
4118
+ profile?: z.objectInputType<{
4119
+ name: z.ZodOptional<z.ZodString>;
4120
+ username: z.ZodOptional<z.ZodString>;
4121
+ gender: z.ZodOptional<z.ZodString>;
4122
+ birthday: z.ZodOptional<z.ZodString>;
4123
+ }, z.ZodUnknown, "strip"> | undefined;
4124
+ }>;
4079
4125
  /**
4080
- * MDX JSX element node, occurring in flow (block), for hast.
4126
+ * Zod schema for project config.
4081
4127
  */
4082
- interface MdxJsxFlowElementHast extends Parent {
4083
- /**
4084
- * Node type.
4085
- */
4086
- type: 'mdxJsxFlowElement';
4087
- /**
4088
- * MDX JSX element name (`null` for fragments).
4089
- */
4090
- name: string | null;
4091
- /**
4092
- * MDX JSX element attributes.
4093
- */
4094
- attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
4095
- /**
4096
- * Content.
4097
- */
4098
- children: ElementContent[];
4099
- /**
4100
- * Data associated with the hast MDX JSX elements (flow).
4101
- */
4102
- data?: MdxJsxFlowElementHastData | undefined;
4103
- }
4128
+ declare const ZProjectConfig: z.ZodObject<{
4129
+ mcp: z.ZodOptional<z.ZodObject<{
4130
+ names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4131
+ }, "strip", z.ZodTypeAny, {
4132
+ names?: string[] | undefined;
4133
+ }, {
4134
+ names?: string[] | undefined;
4135
+ }>>;
4136
+ includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4137
+ subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
4138
+ rules: z.ZodOptional<z.ZodObject<{
4139
+ includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4140
+ subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
4141
+ }, "strip", z.ZodTypeAny, {
4142
+ includeSeries?: string[] | undefined;
4143
+ subSeries?: Record<string, string[]> | undefined;
4144
+ }, {
4145
+ includeSeries?: string[] | undefined;
4146
+ subSeries?: Record<string, string[]> | undefined;
4147
+ }>>;
4148
+ skills: z.ZodOptional<z.ZodObject<{
4149
+ includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4150
+ subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
4151
+ }, "strip", z.ZodTypeAny, {
4152
+ includeSeries?: string[] | undefined;
4153
+ subSeries?: Record<string, string[]> | undefined;
4154
+ }, {
4155
+ includeSeries?: string[] | undefined;
4156
+ subSeries?: Record<string, string[]> | undefined;
4157
+ }>>;
4158
+ subAgents: z.ZodOptional<z.ZodObject<{
4159
+ includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4160
+ subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
4161
+ }, "strip", z.ZodTypeAny, {
4162
+ includeSeries?: string[] | undefined;
4163
+ subSeries?: Record<string, string[]> | undefined;
4164
+ }, {
4165
+ includeSeries?: string[] | undefined;
4166
+ subSeries?: Record<string, string[]> | undefined;
4167
+ }>>;
4168
+ commands: z.ZodOptional<z.ZodObject<{
4169
+ includeSeries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4170
+ subSeries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
4171
+ }, "strip", z.ZodTypeAny, {
4172
+ includeSeries?: string[] | undefined;
4173
+ subSeries?: Record<string, string[]> | undefined;
4174
+ }, {
4175
+ includeSeries?: string[] | undefined;
4176
+ subSeries?: Record<string, string[]> | undefined;
4177
+ }>>;
4178
+ }, "strip", z.ZodTypeAny, {
4179
+ skills?: {
4180
+ includeSeries?: string[] | undefined;
4181
+ subSeries?: Record<string, string[]> | undefined;
4182
+ } | undefined;
4183
+ commands?: {
4184
+ includeSeries?: string[] | undefined;
4185
+ subSeries?: Record<string, string[]> | undefined;
4186
+ } | undefined;
4187
+ subAgents?: {
4188
+ includeSeries?: string[] | undefined;
4189
+ subSeries?: Record<string, string[]> | undefined;
4190
+ } | undefined;
4191
+ rules?: {
4192
+ includeSeries?: string[] | undefined;
4193
+ subSeries?: Record<string, string[]> | undefined;
4194
+ } | undefined;
4195
+ mcp?: {
4196
+ names?: string[] | undefined;
4197
+ } | undefined;
4198
+ includeSeries?: string[] | undefined;
4199
+ subSeries?: Record<string, string[]> | undefined;
4200
+ }, {
4201
+ skills?: {
4202
+ includeSeries?: string[] | undefined;
4203
+ subSeries?: Record<string, string[]> | undefined;
4204
+ } | undefined;
4205
+ commands?: {
4206
+ includeSeries?: string[] | undefined;
4207
+ subSeries?: Record<string, string[]> | undefined;
4208
+ } | undefined;
4209
+ subAgents?: {
4210
+ includeSeries?: string[] | undefined;
4211
+ subSeries?: Record<string, string[]> | undefined;
4212
+ } | undefined;
4213
+ rules?: {
4214
+ includeSeries?: string[] | undefined;
4215
+ subSeries?: Record<string, string[]> | undefined;
4216
+ } | undefined;
4217
+ mcp?: {
4218
+ names?: string[] | undefined;
4219
+ } | undefined;
4220
+ includeSeries?: string[] | undefined;
4221
+ subSeries?: Record<string, string[]> | undefined;
4222
+ }>;
4104
4223
  /**
4105
- * Info associated with hast MDX JSX element (flow) nodes by the
4106
- * ecosystem.
4224
+ * Zod schema for ConfigLoader options.
4107
4225
  */
4108
- interface MdxJsxFlowElementHastData extends Data {}
4226
+ declare const ZConfigLoaderOptions: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4227
+ type AindexConfig = z.infer<typeof ZAindexConfig>;
4228
+ type CommandSeriesOptions = z.infer<typeof ZCommandSeriesOptions>;
4229
+ type OutputScopeOptions = z.infer<typeof ZOutputScopeOptions>;
4230
+ type FrontMatterOptions = z.infer<typeof ZFrontMatterOptions>;
4231
+ type ProtectionMode = z.infer<typeof ZProtectionMode>;
4232
+ type CleanupProtectionOptions = z.infer<typeof ZCleanupProtectionOptions>;
4233
+ type UserConfigFile = z.infer<typeof ZUserConfigFile>;
4234
+ type ProjectConfig = z.infer<typeof ZProjectConfig>;
4235
+ type ConfigLoaderOptions = z.infer<typeof ZConfigLoaderOptions>;
4109
4236
  /**
4110
- * MDX JSX element node, occurring in text (phrasing), for hast.
4237
+ * Result of loading a config file.
4111
4238
  */
4112
- interface MdxJsxTextElementHast extends Parent {
4113
- /**
4114
- * Node type.
4115
- */
4116
- type: 'mdxJsxTextElement';
4117
- /**
4118
- * MDX JSX element name (`null` for fragments).
4119
- */
4120
- name: string | null;
4121
- /**
4122
- * MDX JSX element attributes.
4123
- */
4124
- attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>;
4125
- /**
4126
- * Content.
4127
- */
4128
- children: ElementContent[];
4129
- /**
4130
- * Data associated with the hast MDX JSX elements (text).
4131
- */
4132
- data?: MdxJsxTextElementHastData | undefined;
4239
+ interface ConfigLoadResult {
4240
+ readonly config: UserConfigFile;
4241
+ readonly source: string | null;
4242
+ readonly found: boolean;
4133
4243
  }
4134
- /**
4135
- * Info associated with hast MDX JSX element (text) nodes by the
4136
- * ecosystem.
4137
- */
4138
- interface MdxJsxTextElementHastData extends Data {} // Add nodes to mdast content.
4139
- declare module 'mdast' {
4140
- interface BlockContentMap {
4141
- /**
4142
- * MDX JSX element node, occurring in flow (block).
4143
- */
4144
- mdxJsxFlowElement: MdxJsxFlowElement;
4145
- }
4146
- interface PhrasingContentMap {
4147
- /**
4148
- * MDX JSX element node, occurring in text (phrasing).
4149
- */
4150
- mdxJsxTextElement: MdxJsxTextElement;
4151
- }
4152
- interface RootContentMap {
4153
- /**
4154
- * MDX JSX element node, occurring in flow (block).
4155
- */
4156
- mdxJsxFlowElement: MdxJsxFlowElement;
4157
- /**
4158
- * MDX JSX element node, occurring in text (phrasing).
4159
- */
4160
- mdxJsxTextElement: MdxJsxTextElement;
4161
- }
4162
- } // Add nodes to hast content.
4163
- declare module 'hast' {
4164
- interface ElementContentMap {
4165
- /**
4166
- * MDX JSX element node, occurring in text (phrasing).
4167
- */
4168
- mdxJsxTextElement: MdxJsxTextElementHast;
4169
- /**
4170
- * MDX JSX element node, occurring in flow (block).
4171
- */
4172
- mdxJsxFlowElement: MdxJsxFlowElementHast;
4173
- }
4174
- interface RootContentMap {
4175
- /**
4176
- * MDX JSX element node, occurring in text (phrasing).
4177
- */
4178
- mdxJsxTextElement: MdxJsxTextElementHast;
4179
- /**
4180
- * MDX JSX element node, occurring in flow (block).
4181
- */
4182
- mdxJsxFlowElement: MdxJsxFlowElementHast;
4183
- }
4184
- } // Add custom data tracked to turn markdown into a tree.
4185
- declare module 'mdast-util-from-markdown' {
4186
- interface CompileData {
4187
- /**
4188
- * Current MDX JSX tag.
4189
- */
4190
- mdxJsxTag?: Tag | undefined;
4191
- /**
4192
- * Current stack of open MDX JSX tags.
4193
- */
4194
- mdxJsxTagStack?: Tag[] | undefined;
4195
- }
4196
- } // Add custom data tracked to turn a syntax tree into markdown.
4197
- declare module 'mdast-util-to-markdown' {
4198
- interface ConstructNameMap {
4199
- /**
4200
- * Whole JSX element, in flow.
4201
- *
4202
- * ```markdown
4203
- * > | <a />
4204
- * ^^^^^
4205
- * ```
4206
- */
4207
- mdxJsxFlowElement: 'mdxJsxFlowElement';
4208
- /**
4209
- * Whole JSX element, in text.
4210
- *
4211
- * ```markdown
4212
- * > | a <b />.
4213
- * ^^^^^
4214
- * ```
4215
- */
4216
- mdxJsxTextElement: 'mdxJsxTextElement';
4217
- }
4218
- } //#endregion
4219
- //#region ../../node_modules/.pnpm/mdast-util-mdxjs-esm@2.0.1/node_modules/mdast-util-mdxjs-esm/index.d.ts
4220
- /**
4221
- * MDX ESM (import/export) node.
4222
- */
4223
- interface MdxjsEsm extends Literal$2 {
4224
- /**
4225
- * Node type.
4226
- */
4227
- type: 'mdxjsEsm';
4228
- /**
4229
- * Data associated with mdast MDX.js ESM.
4230
- */
4231
- data?: MdxjsEsmData | undefined;
4244
+ //#endregion
4245
+ //#region src/plugins/plugin-core/enums.d.ts
4246
+ declare enum PluginKind {
4247
+ Output = "output"
4232
4248
  }
4233
- /**
4234
- * Info associated with mdast MDX.js ESM nodes by the ecosystem.
4235
- */
4236
- interface MdxjsEsmData extends Data$2 {
4237
- /**
4238
- * Program node from estree.
4239
- */
4240
- estree?: Program | null | undefined;
4249
+ declare enum PromptKind {
4250
+ GlobalMemory = "globalMemory",
4251
+ ProjectRootMemory = "projectRootMemory",
4252
+ ProjectChildrenMemory = "projectChildrenMemory",
4253
+ Command = "command",
4254
+ SubAgent = "subAgent",
4255
+ Skill = "skill",
4256
+ SkillChildDoc = "skillChildDoc",
4257
+ SkillResource = "skillResource",
4258
+ SkillMcpConfig = "skillMcpConfig",
4259
+ Readme = "readme",
4260
+ Rule = "rule"
4241
4261
  }
4242
- /**
4243
- * MDX ESM (import/export) node (for hast).
4244
- */
4245
- interface MdxjsEsmHast extends Literal {
4246
- /**
4247
- * Node type.
4248
- */
4249
- type: 'mdxjsEsm';
4250
- /**
4251
- * Data associated with hast MDX.js ESM.
4252
- */
4253
- data?: MdxjsEsmHastData | undefined;
4262
+ type RuleScope = 'project' | 'global';
4263
+ declare enum FilePathKind {
4264
+ Relative = "relative",
4265
+ Absolute = "absolute",
4266
+ Root = "root"
4254
4267
  }
4255
- /**
4256
- * Info associated with hast MDX.js ESM nodes by the ecosystem.
4257
- */
4258
- interface MdxjsEsmHastData extends Data {
4259
- /**
4260
- * Program node from estree.
4261
- */
4262
- estree?: Program | null | undefined;
4263
- } // Add nodes to mdast content.
4264
- declare module 'mdast' {
4265
- interface FrontmatterContentMap {
4266
- /**
4267
- * MDX ESM.
4268
- */
4269
- mdxjsEsm: MdxjsEsm;
4270
- }
4271
- interface RootContentMap {
4272
- /**
4273
- * MDX ESM.
4274
- */
4275
- mdxjsEsm: MdxjsEsm;
4276
- }
4277
- } // Add nodes to hast content.
4278
- declare module 'hast' {
4279
- interface RootContentMap {
4280
- /**
4281
- * MDX ESM.
4282
- */
4283
- mdxjsEsm: MdxjsEsmHast;
4284
- }
4285
- } //#endregion
4286
- //#region src/compiler/export-parser.d.ts
4287
- /**
4288
- * Metadata source type
4289
- */
4268
+ declare enum IDEKind {
4269
+ VSCode = "vscode",
4270
+ IntellijIDEA = "intellijIdea",
4271
+ Git = "git",
4272
+ EditorConfig = "editorconfig",
4273
+ Original = "original"
4274
+ }
4275
+ declare enum NamingCaseKind {
4276
+ CamelCase = "camelCase",
4277
+ PascalCase = "pascalCase",
4278
+ SnakeCase = "snakeCase",
4279
+ KebabCase = "kebabCase",
4280
+ UpperCase = "upperCase",
4281
+ LowerCase = "lowerCase",
4282
+ Original = "original"
4283
+ }
4284
+ declare enum GlobalConfigDirectoryType {
4285
+ UserHome = "userHome",
4286
+ External = "external"
4287
+ }
4288
+ type CodingAgentTools = string;
4289
+ type ClaudeCodeCLISubAgentColors = string;
4290
4290
  //#endregion
4291
4291
  //#region src/plugins/plugin-core/InputTypes.d.ts
4292
4292
  interface Project {
@@ -4377,6 +4377,7 @@ interface SubAgentPrompt extends Prompt<PromptKind.SubAgent, SubAgentYAMLFrontMa
4377
4377
  readonly type: PromptKind.SubAgent;
4378
4378
  readonly agentPrefix?: string;
4379
4379
  readonly agentName: string;
4380
+ readonly canonicalName: string;
4380
4381
  readonly seriName?: SeriName;
4381
4382
  readonly rawMdxContent?: string;
4382
4383
  }
@@ -4439,6 +4440,7 @@ interface SkillMcpConfig {
4439
4440
  interface SkillPrompt extends Prompt<PromptKind.Skill, SkillYAMLFrontMatter> {
4440
4441
  readonly type: PromptKind.Skill;
4441
4442
  readonly dir: RelativePath;
4443
+ readonly skillName: string;
4442
4444
  readonly yamlFrontMatter: SkillYAMLFrontMatter;
4443
4445
  readonly mcpConfig?: SkillMcpConfig;
4444
4446
  readonly childDocs?: SkillChildDoc[];
@@ -4544,7 +4546,6 @@ interface ProjectChildrenMemoryPrompt extends Prompt<PromptKind.ProjectChildrenM
4544
4546
  readonly workingChildDirectoryPath: RelativePath;
4545
4547
  }
4546
4548
  interface SubAgentYAMLFrontMatter extends ToolAwareYAMLFrontMatter {
4547
- readonly name: string;
4548
4549
  readonly model?: string;
4549
4550
  readonly color?: ClaudeCodeCLISubAgentColors | string;
4550
4551
  readonly seriName?: SeriName;
@@ -4558,7 +4559,7 @@ interface CommandYAMLFrontMatter extends ToolAwareYAMLFrontMatter {
4558
4559
  * Base YAML front matter for all skill types
4559
4560
  */
4560
4561
  interface SkillsYAMLFrontMatter extends CommonYAMLFrontMatter {
4561
- readonly name: string;
4562
+ readonly name?: string;
4562
4563
  }
4563
4564
  interface SkillYAMLFrontMatter extends SkillsYAMLFrontMatter {
4564
4565
  readonly allowTools?: (CodingAgentTools | string)[];
@@ -5127,8 +5128,8 @@ interface GlobalConfigValidationResult {
5127
5128
  */
5128
5129
  declare class ConfigLoader {
5129
5130
  private readonly logger;
5130
- constructor(_options?: ConfigLoaderOptions);
5131
- getSearchPaths(_cwd?: string): string[];
5131
+ constructor(options?: ConfigLoaderOptions);
5132
+ getSearchPaths(cwd?: string): string[];
5132
5133
  loadFromFile(filePath: string): ConfigLoadResult;
5133
5134
  load(cwd?: string): MergedConfigResult;
5134
5135
  private parseConfig;