@truenine/memory-sync-cli 2026.10402.116 → 2026.10403.117
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 +439 -397
- package/dist/index.mjs +100 -102
- package/dist/plugin-runtime.mjs +82 -82
- package/package.json +14 -14
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,6 @@ import { z } from "zod/v3";
|
|
|
8
8
|
import * as fs from "fs";
|
|
9
9
|
|
|
10
10
|
//#region src/cli-runtime.d.ts
|
|
11
|
-
declare function isJsonMode(argv: readonly string[]): boolean;
|
|
12
11
|
declare function runCli(argv?: readonly string[]): Promise<number>;
|
|
13
12
|
//#endregion
|
|
14
13
|
//#region ../libraries/md-compiler/dist/index-B2X5YAQV.d.mts
|
|
@@ -4868,7 +4867,7 @@ declare const ZAindexDirPair: z.ZodObject<{
|
|
|
4868
4867
|
* All paths are relative to <workspaceDir>/<aindex.dir>.
|
|
4869
4868
|
*/
|
|
4870
4869
|
declare const ZAindexConfig: z.ZodObject<{
|
|
4871
|
-
|
|
4870
|
+
app: z.ZodObject<{
|
|
4872
4871
|
src: z.ZodString;
|
|
4873
4872
|
dist: z.ZodString;
|
|
4874
4873
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4887,7 +4886,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4887
4886
|
src: string;
|
|
4888
4887
|
dist: string;
|
|
4889
4888
|
}>>;
|
|
4890
|
-
|
|
4889
|
+
ext: z.ZodObject<{
|
|
4891
4890
|
src: z.ZodString;
|
|
4892
4891
|
dist: z.ZodString;
|
|
4893
4892
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4906,7 +4905,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4906
4905
|
src: string;
|
|
4907
4906
|
dist: string;
|
|
4908
4907
|
}>>;
|
|
4909
|
-
|
|
4908
|
+
arch: z.ZodObject<{
|
|
4910
4909
|
src: z.ZodString;
|
|
4911
4910
|
dist: z.ZodString;
|
|
4912
4911
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4925,7 +4924,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4925
4924
|
src: string;
|
|
4926
4925
|
dist: string;
|
|
4927
4926
|
}>>;
|
|
4928
|
-
|
|
4927
|
+
softwares: z.ZodObject<{
|
|
4929
4928
|
src: z.ZodString;
|
|
4930
4929
|
dist: z.ZodString;
|
|
4931
4930
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4944,7 +4943,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4944
4943
|
src: string;
|
|
4945
4944
|
dist: string;
|
|
4946
4945
|
}>>;
|
|
4947
|
-
|
|
4946
|
+
skills: z.ZodObject<{
|
|
4948
4947
|
src: z.ZodString;
|
|
4949
4948
|
dist: z.ZodString;
|
|
4950
4949
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4963,7 +4962,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4963
4962
|
src: string;
|
|
4964
4963
|
dist: string;
|
|
4965
4964
|
}>>;
|
|
4966
|
-
|
|
4965
|
+
commands: z.ZodObject<{
|
|
4967
4966
|
src: z.ZodString;
|
|
4968
4967
|
dist: z.ZodString;
|
|
4969
4968
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4982,7 +4981,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4982
4981
|
src: string;
|
|
4983
4982
|
dist: string;
|
|
4984
4983
|
}>>;
|
|
4985
|
-
|
|
4984
|
+
subAgents: z.ZodObject<{
|
|
4986
4985
|
src: z.ZodString;
|
|
4987
4986
|
dist: z.ZodString;
|
|
4988
4987
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5001,7 +5000,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
5001
5000
|
src: string;
|
|
5002
5001
|
dist: string;
|
|
5003
5002
|
}>>;
|
|
5004
|
-
|
|
5003
|
+
rules: z.ZodObject<{
|
|
5005
5004
|
src: z.ZodString;
|
|
5006
5005
|
dist: z.ZodString;
|
|
5007
5006
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5020,7 +5019,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
5020
5019
|
src: string;
|
|
5021
5020
|
dist: string;
|
|
5022
5021
|
}>>;
|
|
5023
|
-
|
|
5022
|
+
globalPrompt: z.ZodObject<{
|
|
5024
5023
|
src: z.ZodString;
|
|
5025
5024
|
dist: z.ZodString;
|
|
5026
5025
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5039,7 +5038,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
5039
5038
|
src: string;
|
|
5040
5039
|
dist: string;
|
|
5041
5040
|
}>>;
|
|
5042
|
-
|
|
5041
|
+
workspacePrompt: z.ZodObject<{
|
|
5043
5042
|
src: z.ZodString;
|
|
5044
5043
|
dist: z.ZodString;
|
|
5045
5044
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5060,89 +5059,89 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
5060
5059
|
}>>;
|
|
5061
5060
|
dir: z.ZodDefault<z.ZodString>;
|
|
5062
5061
|
}, "strip", z.ZodTypeAny, {
|
|
5063
|
-
|
|
5064
|
-
skills: {
|
|
5062
|
+
app: {
|
|
5065
5063
|
src: string;
|
|
5066
5064
|
dist: string;
|
|
5067
5065
|
};
|
|
5068
|
-
|
|
5066
|
+
ext: {
|
|
5069
5067
|
src: string;
|
|
5070
5068
|
dist: string;
|
|
5071
5069
|
};
|
|
5072
|
-
|
|
5070
|
+
arch: {
|
|
5073
5071
|
src: string;
|
|
5074
5072
|
dist: string;
|
|
5075
5073
|
};
|
|
5076
|
-
|
|
5074
|
+
softwares: {
|
|
5077
5075
|
src: string;
|
|
5078
5076
|
dist: string;
|
|
5079
5077
|
};
|
|
5080
|
-
|
|
5078
|
+
skills: {
|
|
5081
5079
|
src: string;
|
|
5082
5080
|
dist: string;
|
|
5083
5081
|
};
|
|
5084
|
-
|
|
5082
|
+
commands: {
|
|
5085
5083
|
src: string;
|
|
5086
5084
|
dist: string;
|
|
5087
5085
|
};
|
|
5088
|
-
|
|
5086
|
+
subAgents: {
|
|
5089
5087
|
src: string;
|
|
5090
5088
|
dist: string;
|
|
5091
5089
|
};
|
|
5092
|
-
|
|
5090
|
+
rules: {
|
|
5093
5091
|
src: string;
|
|
5094
5092
|
dist: string;
|
|
5095
5093
|
};
|
|
5096
|
-
|
|
5094
|
+
globalPrompt: {
|
|
5097
5095
|
src: string;
|
|
5098
5096
|
dist: string;
|
|
5099
5097
|
};
|
|
5100
|
-
|
|
5098
|
+
workspacePrompt: {
|
|
5101
5099
|
src: string;
|
|
5102
5100
|
dist: string;
|
|
5103
5101
|
};
|
|
5102
|
+
dir: string;
|
|
5104
5103
|
}, {
|
|
5105
|
-
|
|
5106
|
-
skills?: {
|
|
5104
|
+
app?: {
|
|
5107
5105
|
src: string;
|
|
5108
5106
|
dist: string;
|
|
5109
5107
|
} | undefined;
|
|
5110
|
-
|
|
5108
|
+
ext?: {
|
|
5111
5109
|
src: string;
|
|
5112
5110
|
dist: string;
|
|
5113
5111
|
} | undefined;
|
|
5114
|
-
|
|
5112
|
+
arch?: {
|
|
5115
5113
|
src: string;
|
|
5116
5114
|
dist: string;
|
|
5117
5115
|
} | undefined;
|
|
5118
|
-
|
|
5116
|
+
softwares?: {
|
|
5119
5117
|
src: string;
|
|
5120
5118
|
dist: string;
|
|
5121
5119
|
} | undefined;
|
|
5122
|
-
|
|
5120
|
+
skills?: {
|
|
5123
5121
|
src: string;
|
|
5124
5122
|
dist: string;
|
|
5125
5123
|
} | undefined;
|
|
5126
|
-
|
|
5124
|
+
commands?: {
|
|
5127
5125
|
src: string;
|
|
5128
5126
|
dist: string;
|
|
5129
5127
|
} | undefined;
|
|
5130
|
-
|
|
5128
|
+
subAgents?: {
|
|
5131
5129
|
src: string;
|
|
5132
5130
|
dist: string;
|
|
5133
5131
|
} | undefined;
|
|
5134
|
-
|
|
5132
|
+
rules?: {
|
|
5135
5133
|
src: string;
|
|
5136
5134
|
dist: string;
|
|
5137
5135
|
} | undefined;
|
|
5138
|
-
|
|
5136
|
+
globalPrompt?: {
|
|
5139
5137
|
src: string;
|
|
5140
5138
|
dist: string;
|
|
5141
5139
|
} | undefined;
|
|
5142
|
-
|
|
5140
|
+
workspacePrompt?: {
|
|
5143
5141
|
src: string;
|
|
5144
5142
|
dist: string;
|
|
5145
5143
|
} | undefined;
|
|
5144
|
+
dir?: string | undefined;
|
|
5146
5145
|
}>;
|
|
5147
5146
|
/**
|
|
5148
5147
|
* Zod schema for per-plugin command series override options.
|
|
@@ -5207,15 +5206,15 @@ declare const ZPluginOutputScopeTopics: z.ZodObject<{
|
|
|
5207
5206
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5208
5207
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5209
5208
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5210
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5211
5209
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5210
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5212
5211
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5213
5212
|
}, {
|
|
5214
5213
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5215
5214
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5216
5215
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5217
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5218
5216
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5217
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5219
5218
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5220
5219
|
}>;
|
|
5221
5220
|
/**
|
|
@@ -5233,15 +5232,15 @@ declare const ZOutputScopeOptions: z.ZodObject<{
|
|
|
5233
5232
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5234
5233
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5235
5234
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5236
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5237
5235
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5236
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5238
5237
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5239
5238
|
}, {
|
|
5240
5239
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5241
5240
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5242
5241
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5243
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5244
5242
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5243
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5245
5244
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5246
5245
|
}>>>;
|
|
5247
5246
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5249,8 +5248,8 @@ declare const ZOutputScopeOptions: z.ZodObject<{
|
|
|
5249
5248
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5250
5249
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5251
5250
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5252
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5253
5251
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5252
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5254
5253
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5255
5254
|
}> | undefined;
|
|
5256
5255
|
}, {
|
|
@@ -5258,8 +5257,8 @@ declare const ZOutputScopeOptions: z.ZodObject<{
|
|
|
5258
5257
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5259
5258
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5260
5259
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5261
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5262
5260
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5261
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5263
5262
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5264
5263
|
}> | undefined;
|
|
5265
5264
|
}>;
|
|
@@ -5374,7 +5373,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5374
5373
|
version: z.ZodOptional<z.ZodString>;
|
|
5375
5374
|
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
5376
5375
|
aindex: z.ZodOptional<z.ZodObject<{
|
|
5377
|
-
|
|
5376
|
+
app: z.ZodObject<{
|
|
5378
5377
|
src: z.ZodString;
|
|
5379
5378
|
dist: z.ZodString;
|
|
5380
5379
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5393,7 +5392,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5393
5392
|
src: string;
|
|
5394
5393
|
dist: string;
|
|
5395
5394
|
}>>;
|
|
5396
|
-
|
|
5395
|
+
ext: z.ZodObject<{
|
|
5397
5396
|
src: z.ZodString;
|
|
5398
5397
|
dist: z.ZodString;
|
|
5399
5398
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5412,7 +5411,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5412
5411
|
src: string;
|
|
5413
5412
|
dist: string;
|
|
5414
5413
|
}>>;
|
|
5415
|
-
|
|
5414
|
+
arch: z.ZodObject<{
|
|
5416
5415
|
src: z.ZodString;
|
|
5417
5416
|
dist: z.ZodString;
|
|
5418
5417
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5431,7 +5430,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5431
5430
|
src: string;
|
|
5432
5431
|
dist: string;
|
|
5433
5432
|
}>>;
|
|
5434
|
-
|
|
5433
|
+
softwares: z.ZodObject<{
|
|
5435
5434
|
src: z.ZodString;
|
|
5436
5435
|
dist: z.ZodString;
|
|
5437
5436
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5450,7 +5449,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5450
5449
|
src: string;
|
|
5451
5450
|
dist: string;
|
|
5452
5451
|
}>>;
|
|
5453
|
-
|
|
5452
|
+
skills: z.ZodObject<{
|
|
5454
5453
|
src: z.ZodString;
|
|
5455
5454
|
dist: z.ZodString;
|
|
5456
5455
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5469,7 +5468,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5469
5468
|
src: string;
|
|
5470
5469
|
dist: string;
|
|
5471
5470
|
}>>;
|
|
5472
|
-
|
|
5471
|
+
commands: z.ZodObject<{
|
|
5473
5472
|
src: z.ZodString;
|
|
5474
5473
|
dist: z.ZodString;
|
|
5475
5474
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5488,7 +5487,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5488
5487
|
src: string;
|
|
5489
5488
|
dist: string;
|
|
5490
5489
|
}>>;
|
|
5491
|
-
|
|
5490
|
+
subAgents: z.ZodObject<{
|
|
5492
5491
|
src: z.ZodString;
|
|
5493
5492
|
dist: z.ZodString;
|
|
5494
5493
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5507,7 +5506,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5507
5506
|
src: string;
|
|
5508
5507
|
dist: string;
|
|
5509
5508
|
}>>;
|
|
5510
|
-
|
|
5509
|
+
rules: z.ZodObject<{
|
|
5511
5510
|
src: z.ZodString;
|
|
5512
5511
|
dist: z.ZodString;
|
|
5513
5512
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5526,7 +5525,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5526
5525
|
src: string;
|
|
5527
5526
|
dist: string;
|
|
5528
5527
|
}>>;
|
|
5529
|
-
|
|
5528
|
+
globalPrompt: z.ZodObject<{
|
|
5530
5529
|
src: z.ZodString;
|
|
5531
5530
|
dist: z.ZodString;
|
|
5532
5531
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5545,7 +5544,7 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5545
5544
|
src: string;
|
|
5546
5545
|
dist: string;
|
|
5547
5546
|
}>>;
|
|
5548
|
-
|
|
5547
|
+
workspacePrompt: z.ZodObject<{
|
|
5549
5548
|
src: z.ZodString;
|
|
5550
5549
|
dist: z.ZodString;
|
|
5551
5550
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5566,89 +5565,89 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5566
5565
|
}>>;
|
|
5567
5566
|
dir: z.ZodDefault<z.ZodString>;
|
|
5568
5567
|
}, "strip", z.ZodTypeAny, {
|
|
5569
|
-
|
|
5570
|
-
skills: {
|
|
5568
|
+
app: {
|
|
5571
5569
|
src: string;
|
|
5572
5570
|
dist: string;
|
|
5573
5571
|
};
|
|
5574
|
-
|
|
5572
|
+
ext: {
|
|
5575
5573
|
src: string;
|
|
5576
5574
|
dist: string;
|
|
5577
5575
|
};
|
|
5578
|
-
|
|
5576
|
+
arch: {
|
|
5579
5577
|
src: string;
|
|
5580
5578
|
dist: string;
|
|
5581
5579
|
};
|
|
5582
|
-
|
|
5580
|
+
softwares: {
|
|
5583
5581
|
src: string;
|
|
5584
5582
|
dist: string;
|
|
5585
5583
|
};
|
|
5586
|
-
|
|
5584
|
+
skills: {
|
|
5587
5585
|
src: string;
|
|
5588
5586
|
dist: string;
|
|
5589
5587
|
};
|
|
5590
|
-
|
|
5588
|
+
commands: {
|
|
5591
5589
|
src: string;
|
|
5592
5590
|
dist: string;
|
|
5593
5591
|
};
|
|
5594
|
-
|
|
5592
|
+
subAgents: {
|
|
5595
5593
|
src: string;
|
|
5596
5594
|
dist: string;
|
|
5597
5595
|
};
|
|
5598
|
-
|
|
5596
|
+
rules: {
|
|
5599
5597
|
src: string;
|
|
5600
5598
|
dist: string;
|
|
5601
5599
|
};
|
|
5602
|
-
|
|
5600
|
+
globalPrompt: {
|
|
5603
5601
|
src: string;
|
|
5604
5602
|
dist: string;
|
|
5605
5603
|
};
|
|
5606
|
-
|
|
5604
|
+
workspacePrompt: {
|
|
5607
5605
|
src: string;
|
|
5608
5606
|
dist: string;
|
|
5609
5607
|
};
|
|
5608
|
+
dir: string;
|
|
5610
5609
|
}, {
|
|
5611
|
-
|
|
5612
|
-
skills?: {
|
|
5610
|
+
app?: {
|
|
5613
5611
|
src: string;
|
|
5614
5612
|
dist: string;
|
|
5615
5613
|
} | undefined;
|
|
5616
|
-
|
|
5614
|
+
ext?: {
|
|
5617
5615
|
src: string;
|
|
5618
5616
|
dist: string;
|
|
5619
5617
|
} | undefined;
|
|
5620
|
-
|
|
5618
|
+
arch?: {
|
|
5621
5619
|
src: string;
|
|
5622
5620
|
dist: string;
|
|
5623
5621
|
} | undefined;
|
|
5624
|
-
|
|
5622
|
+
softwares?: {
|
|
5625
5623
|
src: string;
|
|
5626
5624
|
dist: string;
|
|
5627
5625
|
} | undefined;
|
|
5628
|
-
|
|
5626
|
+
skills?: {
|
|
5629
5627
|
src: string;
|
|
5630
5628
|
dist: string;
|
|
5631
5629
|
} | undefined;
|
|
5632
|
-
|
|
5630
|
+
commands?: {
|
|
5633
5631
|
src: string;
|
|
5634
5632
|
dist: string;
|
|
5635
5633
|
} | undefined;
|
|
5636
|
-
|
|
5634
|
+
subAgents?: {
|
|
5637
5635
|
src: string;
|
|
5638
5636
|
dist: string;
|
|
5639
5637
|
} | undefined;
|
|
5640
|
-
|
|
5638
|
+
rules?: {
|
|
5641
5639
|
src: string;
|
|
5642
5640
|
dist: string;
|
|
5643
5641
|
} | undefined;
|
|
5644
|
-
|
|
5642
|
+
globalPrompt?: {
|
|
5645
5643
|
src: string;
|
|
5646
5644
|
dist: string;
|
|
5647
5645
|
} | undefined;
|
|
5648
|
-
|
|
5646
|
+
workspacePrompt?: {
|
|
5649
5647
|
src: string;
|
|
5650
5648
|
dist: string;
|
|
5651
5649
|
} | undefined;
|
|
5650
|
+
dir?: string | undefined;
|
|
5652
5651
|
}>>;
|
|
5653
5652
|
logLevel: z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error"]>>;
|
|
5654
5653
|
commandSeriesOptions: z.ZodOptional<z.ZodObject<{
|
|
@@ -5688,15 +5687,15 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5688
5687
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5689
5688
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5690
5689
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5691
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5692
5690
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5691
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5693
5692
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5694
5693
|
}, {
|
|
5695
5694
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5696
5695
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5697
5696
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5698
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5699
5697
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5698
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5700
5699
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5701
5700
|
}>>>;
|
|
5702
5701
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5704,8 +5703,8 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5704
5703
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5705
5704
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5706
5705
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5707
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5708
5706
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5707
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5709
5708
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5710
5709
|
}> | undefined;
|
|
5711
5710
|
}, {
|
|
@@ -5713,8 +5712,8 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5713
5712
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5714
5713
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5715
5714
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5716
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5717
5715
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5716
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5718
5717
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5719
5718
|
}> | undefined;
|
|
5720
5719
|
}>>;
|
|
@@ -5791,51 +5790,51 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5791
5790
|
birthday: z.ZodOptional<z.ZodString>;
|
|
5792
5791
|
}, z.ZodUnknown, "strip">>>;
|
|
5793
5792
|
}, "strip", z.ZodTypeAny, {
|
|
5794
|
-
version?: string | undefined;
|
|
5795
|
-
workspaceDir?: string | undefined;
|
|
5796
5793
|
aindex?: {
|
|
5797
|
-
|
|
5798
|
-
skills: {
|
|
5794
|
+
app: {
|
|
5799
5795
|
src: string;
|
|
5800
5796
|
dist: string;
|
|
5801
5797
|
};
|
|
5802
|
-
|
|
5798
|
+
ext: {
|
|
5803
5799
|
src: string;
|
|
5804
5800
|
dist: string;
|
|
5805
5801
|
};
|
|
5806
|
-
|
|
5802
|
+
arch: {
|
|
5807
5803
|
src: string;
|
|
5808
5804
|
dist: string;
|
|
5809
5805
|
};
|
|
5810
|
-
|
|
5806
|
+
softwares: {
|
|
5811
5807
|
src: string;
|
|
5812
5808
|
dist: string;
|
|
5813
5809
|
};
|
|
5814
|
-
|
|
5810
|
+
skills: {
|
|
5815
5811
|
src: string;
|
|
5816
5812
|
dist: string;
|
|
5817
5813
|
};
|
|
5818
|
-
|
|
5814
|
+
commands: {
|
|
5819
5815
|
src: string;
|
|
5820
5816
|
dist: string;
|
|
5821
5817
|
};
|
|
5822
|
-
|
|
5818
|
+
subAgents: {
|
|
5823
5819
|
src: string;
|
|
5824
5820
|
dist: string;
|
|
5825
5821
|
};
|
|
5826
|
-
|
|
5822
|
+
rules: {
|
|
5827
5823
|
src: string;
|
|
5828
5824
|
dist: string;
|
|
5829
5825
|
};
|
|
5830
|
-
|
|
5826
|
+
globalPrompt: {
|
|
5831
5827
|
src: string;
|
|
5832
5828
|
dist: string;
|
|
5833
5829
|
};
|
|
5834
|
-
|
|
5830
|
+
workspacePrompt: {
|
|
5835
5831
|
src: string;
|
|
5836
5832
|
dist: string;
|
|
5837
5833
|
};
|
|
5834
|
+
dir: string;
|
|
5838
5835
|
} | undefined;
|
|
5836
|
+
version?: string | undefined;
|
|
5837
|
+
workspaceDir?: string | undefined;
|
|
5839
5838
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | undefined;
|
|
5840
5839
|
commandSeriesOptions?: {
|
|
5841
5840
|
includeSeriesPrefix?: boolean | undefined;
|
|
@@ -5849,8 +5848,8 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5849
5848
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5850
5849
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5851
5850
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5852
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5853
5851
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5852
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5854
5853
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5855
5854
|
}> | undefined;
|
|
5856
5855
|
} | undefined;
|
|
@@ -5877,51 +5876,51 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5877
5876
|
birthday: z.ZodOptional<z.ZodString>;
|
|
5878
5877
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
5879
5878
|
}, {
|
|
5880
|
-
version?: string | undefined;
|
|
5881
|
-
workspaceDir?: string | undefined;
|
|
5882
5879
|
aindex?: {
|
|
5883
|
-
|
|
5884
|
-
skills?: {
|
|
5880
|
+
app?: {
|
|
5885
5881
|
src: string;
|
|
5886
5882
|
dist: string;
|
|
5887
5883
|
} | undefined;
|
|
5888
|
-
|
|
5884
|
+
ext?: {
|
|
5889
5885
|
src: string;
|
|
5890
5886
|
dist: string;
|
|
5891
5887
|
} | undefined;
|
|
5892
|
-
|
|
5888
|
+
arch?: {
|
|
5893
5889
|
src: string;
|
|
5894
5890
|
dist: string;
|
|
5895
5891
|
} | undefined;
|
|
5896
|
-
|
|
5892
|
+
softwares?: {
|
|
5897
5893
|
src: string;
|
|
5898
5894
|
dist: string;
|
|
5899
5895
|
} | undefined;
|
|
5900
|
-
|
|
5896
|
+
skills?: {
|
|
5901
5897
|
src: string;
|
|
5902
5898
|
dist: string;
|
|
5903
5899
|
} | undefined;
|
|
5904
|
-
|
|
5900
|
+
commands?: {
|
|
5905
5901
|
src: string;
|
|
5906
5902
|
dist: string;
|
|
5907
5903
|
} | undefined;
|
|
5908
|
-
|
|
5904
|
+
subAgents?: {
|
|
5909
5905
|
src: string;
|
|
5910
5906
|
dist: string;
|
|
5911
5907
|
} | undefined;
|
|
5912
|
-
|
|
5908
|
+
rules?: {
|
|
5913
5909
|
src: string;
|
|
5914
5910
|
dist: string;
|
|
5915
5911
|
} | undefined;
|
|
5916
|
-
|
|
5912
|
+
globalPrompt?: {
|
|
5917
5913
|
src: string;
|
|
5918
5914
|
dist: string;
|
|
5919
5915
|
} | undefined;
|
|
5920
|
-
|
|
5916
|
+
workspacePrompt?: {
|
|
5921
5917
|
src: string;
|
|
5922
5918
|
dist: string;
|
|
5923
5919
|
} | undefined;
|
|
5920
|
+
dir?: string | undefined;
|
|
5924
5921
|
} | undefined;
|
|
5922
|
+
version?: string | undefined;
|
|
5923
|
+
workspaceDir?: string | undefined;
|
|
5925
5924
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | undefined;
|
|
5926
5925
|
commandSeriesOptions?: {
|
|
5927
5926
|
includeSeriesPrefix?: boolean | undefined;
|
|
@@ -5935,8 +5934,8 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5935
5934
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5936
5935
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5937
5936
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5938
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5939
5937
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5938
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5940
5939
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5941
5940
|
}> | undefined;
|
|
5942
5941
|
} | undefined;
|
|
@@ -6163,53 +6162,315 @@ declare enum GlobalConfigDirectoryType {
|
|
|
6163
6162
|
}
|
|
6164
6163
|
type CodingAgentTools = string;
|
|
6165
6164
|
type ClaudeCodeCLISubAgentColors = string; //#endregion
|
|
6166
|
-
//#region src/plugins/plugin-core/
|
|
6167
|
-
interface Project {
|
|
6168
|
-
readonly name?: string;
|
|
6169
|
-
readonly dirFromWorkspacePath?: RelativePath;
|
|
6170
|
-
readonly rootMemoryPrompt?: ProjectRootMemoryPrompt;
|
|
6171
|
-
readonly childMemoryPrompts?: readonly ProjectChildrenMemoryPrompt[];
|
|
6172
|
-
readonly isPromptSourceProject?: boolean;
|
|
6173
|
-
readonly isWorkspaceRootProject?: boolean;
|
|
6174
|
-
readonly projectConfig?: ProjectConfig;
|
|
6175
|
-
readonly promptSeries?: AindexProjectSeriesName;
|
|
6176
|
-
}
|
|
6177
|
-
interface Workspace {
|
|
6178
|
-
readonly directory: Path;
|
|
6179
|
-
readonly projects: Project[];
|
|
6180
|
-
}
|
|
6165
|
+
//#region src/plugins/plugin-core/OutputTypes.d.ts
|
|
6181
6166
|
/**
|
|
6182
|
-
*
|
|
6167
|
+
* Global configuration based on user_home root directory
|
|
6183
6168
|
*/
|
|
6184
|
-
interface
|
|
6185
|
-
readonly type:
|
|
6169
|
+
interface GlobalConfigDirectoryInUserHome<K = GlobalConfigDirectoryType.UserHome> {
|
|
6170
|
+
readonly type: K;
|
|
6171
|
+
readonly directory: RelativePath;
|
|
6186
6172
|
}
|
|
6187
6173
|
/**
|
|
6188
|
-
*
|
|
6174
|
+
* Special, absolute path global memory prompt
|
|
6189
6175
|
*/
|
|
6190
|
-
interface
|
|
6191
|
-
readonly
|
|
6192
|
-
readonly
|
|
6193
|
-
readonly sourcePath?: string;
|
|
6176
|
+
interface GlobalConfigDirectoryInOther<K = GlobalConfigDirectoryType.External> {
|
|
6177
|
+
readonly type: K;
|
|
6178
|
+
readonly directory: AbsolutePath;
|
|
6194
6179
|
}
|
|
6180
|
+
type GlobalConfigDirectory<K = GlobalConfigDirectoryType> = GlobalConfigDirectoryInUserHome<K> | GlobalConfigDirectoryInOther<K>;
|
|
6181
|
+
interface Target {}
|
|
6195
6182
|
/**
|
|
6196
|
-
*
|
|
6183
|
+
* SubAgent frontmatter field mapping
|
|
6184
|
+
* Value can be a static string or a function that extracts value from SubAgentPrompt
|
|
6197
6185
|
*/
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
readonly
|
|
6205
|
-
|
|
6206
|
-
readonly
|
|
6207
|
-
/**
|
|
6208
|
-
readonly
|
|
6209
|
-
|
|
6210
|
-
readonly
|
|
6211
|
-
|
|
6212
|
-
readonly
|
|
6186
|
+
type SubAgentFrontMatterField = string | ((subAgent: SubAgentPrompt) => unknown);
|
|
6187
|
+
/**
|
|
6188
|
+
* SubAgent output configuration for declarative configuration
|
|
6189
|
+
*/
|
|
6190
|
+
interface SubAgentOutputConfig {
|
|
6191
|
+
/** Output subdirectory name (relative to IDE config directory) */
|
|
6192
|
+
readonly subDir?: string;
|
|
6193
|
+
/** File name format template */
|
|
6194
|
+
readonly fileNameTemplate?: 'prefix-agent' | 'prefix_agent' | 'agent' | string;
|
|
6195
|
+
/** Whether to include series prefix */
|
|
6196
|
+
readonly includeSeriesPrefix?: boolean;
|
|
6197
|
+
/** Series prefix separator */
|
|
6198
|
+
readonly seriesSeparator?: string;
|
|
6199
|
+
/** Frontmatter configuration */
|
|
6200
|
+
readonly frontMatter?: {
|
|
6201
|
+
/** Custom field mappings */readonly fields?: Record<string, SubAgentFrontMatterField>; /** Fields to exclude */
|
|
6202
|
+
readonly exclude?: string[];
|
|
6203
|
+
};
|
|
6204
|
+
/** Content transformation options */
|
|
6205
|
+
readonly contentTransform?: {
|
|
6206
|
+
/** Whether to transform MDX references to Markdown */readonly transformMdxRefs?: boolean; /** Custom content processor */
|
|
6207
|
+
readonly processor?: (content: string, subAgent: SubAgentPrompt) => string;
|
|
6208
|
+
};
|
|
6209
|
+
}
|
|
6210
|
+
/**
|
|
6211
|
+
* Generic registry data structure.
|
|
6212
|
+
* All registry files must have version and lastUpdated fields.
|
|
6213
|
+
*/
|
|
6214
|
+
interface RegistryData {
|
|
6215
|
+
readonly version: string;
|
|
6216
|
+
readonly lastUpdated: string;
|
|
6217
|
+
}
|
|
6218
|
+
/**
|
|
6219
|
+
* Result of a registry operation.
|
|
6220
|
+
*/
|
|
6221
|
+
interface RegistryOperationResult {
|
|
6222
|
+
readonly success: boolean;
|
|
6223
|
+
readonly entryName: string;
|
|
6224
|
+
readonly error?: Error;
|
|
6225
|
+
}
|
|
6226
|
+
/**
|
|
6227
|
+
* Source information for a Kiro power.
|
|
6228
|
+
* Indicates the origin type of a registered power.
|
|
6229
|
+
*/
|
|
6230
|
+
interface KiroPowerSource {
|
|
6231
|
+
readonly type: 'local' | 'repo' | 'registry';
|
|
6232
|
+
readonly repoId?: string;
|
|
6233
|
+
readonly repoName?: string;
|
|
6234
|
+
readonly cloneId?: string;
|
|
6235
|
+
}
|
|
6236
|
+
/**
|
|
6237
|
+
* A single power entry in the Kiro registry.
|
|
6238
|
+
* Contains metadata about an installed power.
|
|
6239
|
+
*/
|
|
6240
|
+
interface KiroPowerEntry {
|
|
6241
|
+
readonly name: string;
|
|
6242
|
+
readonly description: string;
|
|
6243
|
+
readonly mcpServers?: readonly string[];
|
|
6244
|
+
readonly author?: string;
|
|
6245
|
+
readonly keywords: readonly string[];
|
|
6246
|
+
readonly displayName?: string;
|
|
6247
|
+
readonly installed: boolean;
|
|
6248
|
+
readonly installedAt?: string;
|
|
6249
|
+
readonly installPath?: string;
|
|
6250
|
+
readonly source: KiroPowerSource;
|
|
6251
|
+
readonly sourcePath?: string;
|
|
6252
|
+
}
|
|
6253
|
+
/**
|
|
6254
|
+
* Repository source tracking in Kiro registry.
|
|
6255
|
+
* Tracks the source/origin of registered items.
|
|
6256
|
+
*/
|
|
6257
|
+
interface KiroRepoSource {
|
|
6258
|
+
readonly name: string;
|
|
6259
|
+
readonly type: 'local' | 'git';
|
|
6260
|
+
readonly enabled: boolean;
|
|
6261
|
+
readonly addedAt?: string;
|
|
6262
|
+
readonly powerCount: number;
|
|
6263
|
+
readonly path?: string;
|
|
6264
|
+
readonly lastSync?: string;
|
|
6265
|
+
readonly powers?: readonly string[];
|
|
6266
|
+
}
|
|
6267
|
+
/**
|
|
6268
|
+
* Kiro recommended repo metadata (preserved during updates).
|
|
6269
|
+
*/
|
|
6270
|
+
interface KiroRecommendedRepo {
|
|
6271
|
+
readonly url: string;
|
|
6272
|
+
readonly lastFetch: string;
|
|
6273
|
+
readonly powerCount: number;
|
|
6274
|
+
}
|
|
6275
|
+
/**
|
|
6276
|
+
* Complete Kiro powers registry structure.
|
|
6277
|
+
* Represents the full ~/.kiro/powers/registry.json file.
|
|
6278
|
+
*/
|
|
6279
|
+
interface KiroPowersRegistry extends RegistryData {
|
|
6280
|
+
readonly powers: Record<string, KiroPowerEntry>;
|
|
6281
|
+
readonly repoSources: Record<string, KiroRepoSource>;
|
|
6282
|
+
readonly kiroRecommendedRepo?: KiroRecommendedRepo;
|
|
6283
|
+
} //#endregion
|
|
6284
|
+
//#region src/plugins/plugin-core/PromptTypes.d.ts
|
|
6285
|
+
/** Common directory representation */
|
|
6286
|
+
interface Path<K extends FilePathKind = FilePathKind> {
|
|
6287
|
+
readonly pathKind: K;
|
|
6288
|
+
readonly path: string;
|
|
6289
|
+
readonly getDirectoryName: () => string;
|
|
6290
|
+
}
|
|
6291
|
+
/** Relative path directory */
|
|
6292
|
+
interface RelativePath extends Path<FilePathKind.Relative> {
|
|
6293
|
+
readonly basePath: string;
|
|
6294
|
+
getAbsolutePath: () => string;
|
|
6295
|
+
}
|
|
6296
|
+
/** Absolute path directory */
|
|
6297
|
+
type AbsolutePath = Path<FilePathKind.Absolute>;
|
|
6298
|
+
/** Root path directory */
|
|
6299
|
+
type RootPath = Path<FilePathKind.Root>;
|
|
6300
|
+
interface FileContent<C = unknown, FK extends FilePathKind = FilePathKind.Relative, F extends Path = RelativePath> {
|
|
6301
|
+
content: C;
|
|
6302
|
+
length: number;
|
|
6303
|
+
filePathKind: FK;
|
|
6304
|
+
dir: F;
|
|
6305
|
+
charsetEncoding?: BufferEncoding;
|
|
6306
|
+
}
|
|
6307
|
+
/**
|
|
6308
|
+
* Prompt
|
|
6309
|
+
*/
|
|
6310
|
+
interface Prompt<T extends PromptKind = PromptKind, Y extends YAMLFrontMatter = YAMLFrontMatter, DK extends FilePathKind = FilePathKind.Relative, D extends Path = RelativePath, C = unknown> extends FileContent<C, DK, D> {
|
|
6311
|
+
readonly type: T;
|
|
6312
|
+
readonly yamlFrontMatter?: Y;
|
|
6313
|
+
readonly rawFrontMatter?: string;
|
|
6314
|
+
readonly markdownAst?: Root;
|
|
6315
|
+
readonly markdownContents: readonly RootContent[];
|
|
6316
|
+
readonly dir: D;
|
|
6317
|
+
}
|
|
6318
|
+
interface YAMLFrontMatter<N extends NamingCaseKind = NamingCaseKind.KebabCase> extends Record<string, unknown> {
|
|
6319
|
+
readonly namingCase: N;
|
|
6320
|
+
}
|
|
6321
|
+
/**
|
|
6322
|
+
* Series name type - used across multiple prompt types
|
|
6323
|
+
* Extracted to avoid repetition and ensure consistency
|
|
6324
|
+
*/
|
|
6325
|
+
type SeriName = string | string[] | null;
|
|
6326
|
+
interface CommonYAMLFrontMatter<N extends NamingCaseKind = NamingCaseKind.KebabCase> extends YAMLFrontMatter<N> {
|
|
6327
|
+
readonly description: string;
|
|
6328
|
+
}
|
|
6329
|
+
interface ToolAwareYAMLFrontMatter<N extends NamingCaseKind = NamingCaseKind.KebabCase> extends CommonYAMLFrontMatter<N> {
|
|
6330
|
+
readonly allowTools?: (CodingAgentTools | string)[];
|
|
6331
|
+
readonly argumentHint?: string;
|
|
6332
|
+
}
|
|
6333
|
+
/**
|
|
6334
|
+
* Memory prompt working on project root directory
|
|
6335
|
+
*/
|
|
6336
|
+
interface ProjectRootMemoryPrompt extends Prompt<PromptKind.ProjectRootMemory, YAMLFrontMatter, FilePathKind.Relative, RootPath> {
|
|
6337
|
+
readonly type: PromptKind.ProjectRootMemory;
|
|
6338
|
+
}
|
|
6339
|
+
/**
|
|
6340
|
+
* Memory prompt working on project subdirectory
|
|
6341
|
+
*/
|
|
6342
|
+
interface ProjectChildrenMemoryPrompt extends Prompt<PromptKind.ProjectChildrenMemory> {
|
|
6343
|
+
readonly type: PromptKind.ProjectChildrenMemory;
|
|
6344
|
+
readonly workingChildDirectoryPath: RelativePath;
|
|
6345
|
+
}
|
|
6346
|
+
interface SubAgentYAMLFrontMatter extends ToolAwareYAMLFrontMatter {
|
|
6347
|
+
readonly model?: string;
|
|
6348
|
+
readonly color?: ClaudeCodeCLISubAgentColors | string;
|
|
6349
|
+
readonly seriName?: SeriName;
|
|
6350
|
+
readonly scope?: RuleScope;
|
|
6351
|
+
}
|
|
6352
|
+
interface CommandYAMLFrontMatter extends ToolAwareYAMLFrontMatter {
|
|
6353
|
+
readonly seriName?: SeriName;
|
|
6354
|
+
readonly scope?: RuleScope;
|
|
6355
|
+
}
|
|
6356
|
+
/**
|
|
6357
|
+
* Base YAML front matter for all skill types
|
|
6358
|
+
*/
|
|
6359
|
+
interface SkillsYAMLFrontMatter extends CommonYAMLFrontMatter {
|
|
6360
|
+
readonly name?: string;
|
|
6361
|
+
}
|
|
6362
|
+
interface SkillYAMLFrontMatter extends SkillsYAMLFrontMatter {
|
|
6363
|
+
readonly allowTools?: (CodingAgentTools | string)[];
|
|
6364
|
+
readonly keywords?: readonly string[];
|
|
6365
|
+
readonly displayName?: string;
|
|
6366
|
+
readonly author?: string;
|
|
6367
|
+
readonly version?: string;
|
|
6368
|
+
readonly seriName?: SeriName;
|
|
6369
|
+
readonly scope?: RuleScope;
|
|
6370
|
+
}
|
|
6371
|
+
/**
|
|
6372
|
+
* Codex skill metadata field
|
|
6373
|
+
* Follows Agent Skills specification: https://agentskills.io/specification
|
|
6374
|
+
*
|
|
6375
|
+
* The metadata field is an arbitrary key-value mapping for additional metadata.
|
|
6376
|
+
* Common fields include displayName, version, author, keywords, etc.
|
|
6377
|
+
*/
|
|
6378
|
+
interface CodexSkillMetadata {
|
|
6379
|
+
readonly 'short-description'?: string;
|
|
6380
|
+
readonly 'displayName'?: string;
|
|
6381
|
+
readonly 'version'?: string;
|
|
6382
|
+
readonly 'author'?: string;
|
|
6383
|
+
readonly 'keywords'?: readonly string[];
|
|
6384
|
+
readonly 'category'?: string;
|
|
6385
|
+
readonly 'repository'?: string;
|
|
6386
|
+
readonly [key: string]: unknown;
|
|
6387
|
+
}
|
|
6388
|
+
interface CodexSkillYAMLFrontMatter extends SkillsYAMLFrontMatter {
|
|
6389
|
+
readonly 'license'?: string;
|
|
6390
|
+
readonly 'compatibility'?: string;
|
|
6391
|
+
readonly 'metadata'?: CodexSkillMetadata;
|
|
6392
|
+
readonly 'allowed-tools'?: string;
|
|
6393
|
+
}
|
|
6394
|
+
/**
|
|
6395
|
+
* Kiro steering file front matter
|
|
6396
|
+
* @see https://kiro.dev/docs/steering
|
|
6397
|
+
*/
|
|
6398
|
+
interface KiroSteeringYAMLFrontMatter extends YAMLFrontMatter {
|
|
6399
|
+
readonly inclusion?: 'always' | 'fileMatch' | 'manual';
|
|
6400
|
+
readonly fileMatchPattern?: string;
|
|
6401
|
+
}
|
|
6402
|
+
/**
|
|
6403
|
+
* Kiro Power POWER.md front matter
|
|
6404
|
+
* @see https://kiro.dev/docs/powers
|
|
6405
|
+
*/
|
|
6406
|
+
interface KiroPowerYAMLFrontMatter extends SkillsYAMLFrontMatter {
|
|
6407
|
+
readonly displayName?: string;
|
|
6408
|
+
readonly keywords?: readonly string[];
|
|
6409
|
+
readonly author?: string;
|
|
6410
|
+
}
|
|
6411
|
+
/**
|
|
6412
|
+
* Rule YAML front matter with glob patterns and scope
|
|
6413
|
+
*/
|
|
6414
|
+
interface RuleYAMLFrontMatter extends CommonYAMLFrontMatter {
|
|
6415
|
+
readonly globs: readonly string[];
|
|
6416
|
+
readonly scope?: RuleScope;
|
|
6417
|
+
readonly seriName?: SeriName;
|
|
6418
|
+
}
|
|
6419
|
+
/**
|
|
6420
|
+
* Global memory prompt
|
|
6421
|
+
* Single output target
|
|
6422
|
+
*/
|
|
6423
|
+
interface GlobalMemoryPrompt extends Prompt<PromptKind.GlobalMemory> {
|
|
6424
|
+
readonly type: PromptKind.GlobalMemory;
|
|
6425
|
+
readonly parentDirectoryPath: GlobalConfigDirectory;
|
|
6426
|
+
} //#endregion
|
|
6427
|
+
//#region src/plugins/plugin-core/InputTypes.d.ts
|
|
6428
|
+
interface Project {
|
|
6429
|
+
readonly name?: string;
|
|
6430
|
+
readonly dirFromWorkspacePath?: RelativePath;
|
|
6431
|
+
readonly rootMemoryPrompt?: ProjectRootMemoryPrompt;
|
|
6432
|
+
readonly childMemoryPrompts?: readonly ProjectChildrenMemoryPrompt[];
|
|
6433
|
+
readonly isPromptSourceProject?: boolean;
|
|
6434
|
+
readonly isWorkspaceRootProject?: boolean;
|
|
6435
|
+
readonly projectConfig?: ProjectConfig;
|
|
6436
|
+
readonly promptSeries?: AindexProjectSeriesName;
|
|
6437
|
+
}
|
|
6438
|
+
interface Workspace {
|
|
6439
|
+
readonly directory: Path;
|
|
6440
|
+
readonly projects: Project[];
|
|
6441
|
+
}
|
|
6442
|
+
/**
|
|
6443
|
+
* IDE configuration file
|
|
6444
|
+
*/
|
|
6445
|
+
interface ProjectIDEConfigFile<I extends IDEKind = IDEKind.Original> extends FileContent<string, FilePathKind, Path> {
|
|
6446
|
+
readonly type: I;
|
|
6447
|
+
}
|
|
6448
|
+
/**
|
|
6449
|
+
* AI Agent ignore configuration file
|
|
6450
|
+
*/
|
|
6451
|
+
interface AIAgentIgnoreConfigFile {
|
|
6452
|
+
readonly fileName: string;
|
|
6453
|
+
readonly content: string;
|
|
6454
|
+
readonly sourcePath?: string;
|
|
6455
|
+
}
|
|
6456
|
+
/**
|
|
6457
|
+
* Shared context fields across input aggregation and output execution.
|
|
6458
|
+
*/
|
|
6459
|
+
interface CollectedContextData {
|
|
6460
|
+
readonly workspace: Workspace;
|
|
6461
|
+
/** Flat prompt projections used by current output plugins */
|
|
6462
|
+
readonly skills?: readonly SkillPrompt[];
|
|
6463
|
+
readonly commands?: readonly CommandPrompt[];
|
|
6464
|
+
readonly subAgents?: readonly SubAgentPrompt[];
|
|
6465
|
+
readonly rules?: readonly RulePrompt[];
|
|
6466
|
+
readonly readmePrompts?: readonly ReadmePrompt[];
|
|
6467
|
+
readonly globalMemory?: GlobalMemoryPrompt;
|
|
6468
|
+
/** Other non-prompt fields */
|
|
6469
|
+
readonly vscodeConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.VSCode>[];
|
|
6470
|
+
readonly zedConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.Zed>[];
|
|
6471
|
+
readonly jetbrainsConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.IntellijIDEA>[];
|
|
6472
|
+
readonly editorConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.EditorConfig>[];
|
|
6473
|
+
readonly aiAgentIgnoreConfigFiles?: readonly AIAgentIgnoreConfigFile[];
|
|
6213
6474
|
readonly globalGitIgnore?: string;
|
|
6214
6475
|
readonly shadowGitExclude?: string;
|
|
6215
6476
|
readonly aindexDir?: string;
|
|
@@ -6445,268 +6706,46 @@ interface ReadError {
|
|
|
6445
6706
|
readonly error: Error;
|
|
6446
6707
|
readonly phase: 'scan' | 'read' | 'compile';
|
|
6447
6708
|
} //#endregion
|
|
6448
|
-
//#region src/
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
*/
|
|
6452
|
-
interface GlobalConfigDirectoryInUserHome<K = GlobalConfigDirectoryType.UserHome> {
|
|
6453
|
-
readonly type: K;
|
|
6454
|
-
readonly directory: RelativePath;
|
|
6455
|
-
}
|
|
6456
|
-
/**
|
|
6457
|
-
* Special, absolute path global memory prompt
|
|
6458
|
-
*/
|
|
6459
|
-
interface GlobalConfigDirectoryInOther<K = GlobalConfigDirectoryType.External> {
|
|
6460
|
-
readonly type: K;
|
|
6461
|
-
readonly directory: AbsolutePath;
|
|
6462
|
-
}
|
|
6463
|
-
type GlobalConfigDirectory<K = GlobalConfigDirectoryType> = GlobalConfigDirectoryInUserHome<K> | GlobalConfigDirectoryInOther<K>;
|
|
6464
|
-
interface Target {}
|
|
6465
|
-
/**
|
|
6466
|
-
* SubAgent frontmatter field mapping
|
|
6467
|
-
* Value can be a static string or a function that extracts value from SubAgentPrompt
|
|
6468
|
-
*/
|
|
6469
|
-
type SubAgentFrontMatterField = string | ((subAgent: SubAgentPrompt) => unknown);
|
|
6470
|
-
/**
|
|
6471
|
-
* SubAgent output configuration for declarative configuration
|
|
6472
|
-
*/
|
|
6473
|
-
interface SubAgentOutputConfig {
|
|
6474
|
-
/** Output subdirectory name (relative to IDE config directory) */
|
|
6475
|
-
readonly subDir?: string;
|
|
6476
|
-
/** File name format template */
|
|
6477
|
-
readonly fileNameTemplate?: 'prefix-agent' | 'prefix_agent' | 'agent' | string;
|
|
6478
|
-
/** Whether to include series prefix */
|
|
6479
|
-
readonly includeSeriesPrefix?: boolean;
|
|
6480
|
-
/** Series prefix separator */
|
|
6481
|
-
readonly seriesSeparator?: string;
|
|
6482
|
-
/** Frontmatter configuration */
|
|
6483
|
-
readonly frontMatter?: {
|
|
6484
|
-
/** Custom field mappings */readonly fields?: Record<string, SubAgentFrontMatterField>; /** Fields to exclude */
|
|
6485
|
-
readonly exclude?: string[];
|
|
6486
|
-
};
|
|
6487
|
-
/** Content transformation options */
|
|
6488
|
-
readonly contentTransform?: {
|
|
6489
|
-
/** Whether to transform MDX references to Markdown */readonly transformMdxRefs?: boolean; /** Custom content processor */
|
|
6490
|
-
readonly processor?: (content: string, subAgent: SubAgentPrompt) => string;
|
|
6491
|
-
};
|
|
6492
|
-
}
|
|
6493
|
-
/**
|
|
6494
|
-
* Generic registry data structure.
|
|
6495
|
-
* All registry files must have version and lastUpdated fields.
|
|
6496
|
-
*/
|
|
6497
|
-
interface RegistryData {
|
|
6498
|
-
readonly version: string;
|
|
6499
|
-
readonly lastUpdated: string;
|
|
6500
|
-
}
|
|
6501
|
-
/**
|
|
6502
|
-
* Result of a registry operation.
|
|
6503
|
-
*/
|
|
6504
|
-
interface RegistryOperationResult {
|
|
6505
|
-
readonly success: boolean;
|
|
6506
|
-
readonly entryName: string;
|
|
6507
|
-
readonly error?: Error;
|
|
6508
|
-
}
|
|
6509
|
-
/**
|
|
6510
|
-
* Source information for a Kiro power.
|
|
6511
|
-
* Indicates the origin type of a registered power.
|
|
6512
|
-
*/
|
|
6513
|
-
interface KiroPowerSource {
|
|
6514
|
-
readonly type: 'local' | 'repo' | 'registry';
|
|
6515
|
-
readonly repoId?: string;
|
|
6516
|
-
readonly repoName?: string;
|
|
6517
|
-
readonly cloneId?: string;
|
|
6518
|
-
}
|
|
6519
|
-
/**
|
|
6520
|
-
* A single power entry in the Kiro registry.
|
|
6521
|
-
* Contains metadata about an installed power.
|
|
6522
|
-
*/
|
|
6523
|
-
interface KiroPowerEntry {
|
|
6524
|
-
readonly name: string;
|
|
6525
|
-
readonly description: string;
|
|
6526
|
-
readonly mcpServers?: readonly string[];
|
|
6527
|
-
readonly author?: string;
|
|
6528
|
-
readonly keywords: readonly string[];
|
|
6529
|
-
readonly displayName?: string;
|
|
6530
|
-
readonly installed: boolean;
|
|
6531
|
-
readonly installedAt?: string;
|
|
6532
|
-
readonly installPath?: string;
|
|
6533
|
-
readonly source: KiroPowerSource;
|
|
6534
|
-
readonly sourcePath?: string;
|
|
6535
|
-
}
|
|
6536
|
-
/**
|
|
6537
|
-
* Repository source tracking in Kiro registry.
|
|
6538
|
-
* Tracks the source/origin of registered items.
|
|
6539
|
-
*/
|
|
6540
|
-
interface KiroRepoSource {
|
|
6709
|
+
//#region src/execution-plan.d.ts
|
|
6710
|
+
type ExecutionScope = 'workspace' | 'project' | 'external' | 'unsupported';
|
|
6711
|
+
interface ExecutionPlanProjectSummary {
|
|
6541
6712
|
readonly name: string;
|
|
6542
|
-
readonly
|
|
6543
|
-
readonly
|
|
6544
|
-
readonly addedAt?: string;
|
|
6545
|
-
readonly powerCount: number;
|
|
6546
|
-
readonly path?: string;
|
|
6547
|
-
readonly lastSync?: string;
|
|
6548
|
-
readonly powers?: readonly string[];
|
|
6549
|
-
}
|
|
6550
|
-
/**
|
|
6551
|
-
* Kiro recommended repo metadata (preserved during updates).
|
|
6552
|
-
*/
|
|
6553
|
-
interface KiroRecommendedRepo {
|
|
6554
|
-
readonly url: string;
|
|
6555
|
-
readonly lastFetch: string;
|
|
6556
|
-
readonly powerCount: number;
|
|
6557
|
-
}
|
|
6558
|
-
/**
|
|
6559
|
-
* Complete Kiro powers registry structure.
|
|
6560
|
-
* Represents the full ~/.kiro/powers/registry.json file.
|
|
6561
|
-
*/
|
|
6562
|
-
interface KiroPowersRegistry extends RegistryData {
|
|
6563
|
-
readonly powers: Record<string, KiroPowerEntry>;
|
|
6564
|
-
readonly repoSources: Record<string, KiroRepoSource>;
|
|
6565
|
-
readonly kiroRecommendedRepo?: KiroRecommendedRepo;
|
|
6566
|
-
} //#endregion
|
|
6567
|
-
//#region src/plugins/plugin-core/PromptTypes.d.ts
|
|
6568
|
-
/** Common directory representation */
|
|
6569
|
-
interface Path<K extends FilePathKind = FilePathKind> {
|
|
6570
|
-
readonly pathKind: K;
|
|
6571
|
-
readonly path: string;
|
|
6572
|
-
readonly getDirectoryName: () => string;
|
|
6573
|
-
}
|
|
6574
|
-
/** Relative path directory */
|
|
6575
|
-
interface RelativePath extends Path<FilePathKind.Relative> {
|
|
6576
|
-
readonly basePath: string;
|
|
6577
|
-
getAbsolutePath: () => string;
|
|
6578
|
-
}
|
|
6579
|
-
/** Absolute path directory */
|
|
6580
|
-
type AbsolutePath = Path<FilePathKind.Absolute>;
|
|
6581
|
-
/** Root path directory */
|
|
6582
|
-
type RootPath = Path<FilePathKind.Root>;
|
|
6583
|
-
interface FileContent<C = unknown, FK extends FilePathKind = FilePathKind.Relative, F extends Path = RelativePath> {
|
|
6584
|
-
content: C;
|
|
6585
|
-
length: number;
|
|
6586
|
-
filePathKind: FK;
|
|
6587
|
-
dir: F;
|
|
6588
|
-
charsetEncoding?: BufferEncoding;
|
|
6589
|
-
}
|
|
6590
|
-
/**
|
|
6591
|
-
* Prompt
|
|
6592
|
-
*/
|
|
6593
|
-
interface Prompt<T extends PromptKind = PromptKind, Y extends YAMLFrontMatter = YAMLFrontMatter, DK extends FilePathKind = FilePathKind.Relative, D extends Path = RelativePath, C = unknown> extends FileContent<C, DK, D> {
|
|
6594
|
-
readonly type: T;
|
|
6595
|
-
readonly yamlFrontMatter?: Y;
|
|
6596
|
-
readonly rawFrontMatter?: string;
|
|
6597
|
-
readonly markdownAst?: Root;
|
|
6598
|
-
readonly markdownContents: readonly RootContent[];
|
|
6599
|
-
readonly dir: D;
|
|
6600
|
-
}
|
|
6601
|
-
interface YAMLFrontMatter<N extends NamingCaseKind = NamingCaseKind.KebabCase> extends Record<string, unknown> {
|
|
6602
|
-
readonly namingCase: N;
|
|
6603
|
-
}
|
|
6604
|
-
/**
|
|
6605
|
-
* Series name type - used across multiple prompt types
|
|
6606
|
-
* Extracted to avoid repetition and ensure consistency
|
|
6607
|
-
*/
|
|
6608
|
-
type SeriName = string | string[] | null;
|
|
6609
|
-
interface CommonYAMLFrontMatter<N extends NamingCaseKind = NamingCaseKind.KebabCase> extends YAMLFrontMatter<N> {
|
|
6610
|
-
readonly description: string;
|
|
6611
|
-
}
|
|
6612
|
-
interface ToolAwareYAMLFrontMatter<N extends NamingCaseKind = NamingCaseKind.KebabCase> extends CommonYAMLFrontMatter<N> {
|
|
6613
|
-
readonly allowTools?: (CodingAgentTools | string)[];
|
|
6614
|
-
readonly argumentHint?: string;
|
|
6615
|
-
}
|
|
6616
|
-
/**
|
|
6617
|
-
* Memory prompt working on project root directory
|
|
6618
|
-
*/
|
|
6619
|
-
interface ProjectRootMemoryPrompt extends Prompt<PromptKind.ProjectRootMemory, YAMLFrontMatter, FilePathKind.Relative, RootPath> {
|
|
6620
|
-
readonly type: PromptKind.ProjectRootMemory;
|
|
6621
|
-
}
|
|
6622
|
-
/**
|
|
6623
|
-
* Memory prompt working on project subdirectory
|
|
6624
|
-
*/
|
|
6625
|
-
interface ProjectChildrenMemoryPrompt extends Prompt<PromptKind.ProjectChildrenMemory> {
|
|
6626
|
-
readonly type: PromptKind.ProjectChildrenMemory;
|
|
6627
|
-
readonly workingChildDirectoryPath: RelativePath;
|
|
6628
|
-
}
|
|
6629
|
-
interface SubAgentYAMLFrontMatter extends ToolAwareYAMLFrontMatter {
|
|
6630
|
-
readonly model?: string;
|
|
6631
|
-
readonly color?: ClaudeCodeCLISubAgentColors | string;
|
|
6632
|
-
readonly seriName?: SeriName;
|
|
6633
|
-
readonly scope?: RuleScope;
|
|
6634
|
-
}
|
|
6635
|
-
interface CommandYAMLFrontMatter extends ToolAwareYAMLFrontMatter {
|
|
6636
|
-
readonly seriName?: SeriName;
|
|
6637
|
-
readonly scope?: RuleScope;
|
|
6713
|
+
readonly rootDir: string;
|
|
6714
|
+
readonly series?: AindexProjectSeriesName;
|
|
6638
6715
|
}
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
readonly
|
|
6716
|
+
interface ExecutionPlanProjectsBySeries {
|
|
6717
|
+
readonly app: readonly ExecutionPlanProjectSummary[];
|
|
6718
|
+
readonly ext: readonly ExecutionPlanProjectSummary[];
|
|
6719
|
+
readonly arch: readonly ExecutionPlanProjectSummary[];
|
|
6720
|
+
readonly softwares: readonly ExecutionPlanProjectSummary[];
|
|
6644
6721
|
}
|
|
6645
|
-
interface
|
|
6646
|
-
readonly
|
|
6647
|
-
readonly
|
|
6648
|
-
readonly
|
|
6649
|
-
readonly author?: string;
|
|
6650
|
-
readonly version?: string;
|
|
6651
|
-
readonly seriName?: SeriName;
|
|
6652
|
-
readonly scope?: RuleScope;
|
|
6722
|
+
interface ExecutionPlanBase {
|
|
6723
|
+
readonly cwd: string;
|
|
6724
|
+
readonly workspaceDir: string;
|
|
6725
|
+
readonly projectsBySeries: ExecutionPlanProjectsBySeries;
|
|
6653
6726
|
}
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
* Follows Agent Skills specification: https://agentskills.io/specification
|
|
6657
|
-
*
|
|
6658
|
-
* The metadata field is an arbitrary key-value mapping for additional metadata.
|
|
6659
|
-
* Common fields include displayName, version, author, keywords, etc.
|
|
6660
|
-
*/
|
|
6661
|
-
interface CodexSkillMetadata {
|
|
6662
|
-
readonly 'short-description'?: string;
|
|
6663
|
-
readonly 'displayName'?: string;
|
|
6664
|
-
readonly 'version'?: string;
|
|
6665
|
-
readonly 'author'?: string;
|
|
6666
|
-
readonly 'keywords'?: readonly string[];
|
|
6667
|
-
readonly 'category'?: string;
|
|
6668
|
-
readonly 'repository'?: string;
|
|
6669
|
-
readonly [key: string]: unknown;
|
|
6727
|
+
interface WorkspaceExecutionPlan extends ExecutionPlanBase {
|
|
6728
|
+
readonly scope: 'workspace';
|
|
6670
6729
|
}
|
|
6671
|
-
interface
|
|
6672
|
-
readonly '
|
|
6673
|
-
readonly
|
|
6674
|
-
readonly 'metadata'?: CodexSkillMetadata;
|
|
6675
|
-
readonly 'allowed-tools'?: string;
|
|
6730
|
+
interface ProjectExecutionPlan extends ExecutionPlanBase {
|
|
6731
|
+
readonly scope: 'project';
|
|
6732
|
+
readonly matchedProject: ExecutionPlanProjectSummary;
|
|
6676
6733
|
}
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
* @see https://kiro.dev/docs/steering
|
|
6680
|
-
*/
|
|
6681
|
-
interface KiroSteeringYAMLFrontMatter extends YAMLFrontMatter {
|
|
6682
|
-
readonly inclusion?: 'always' | 'fileMatch' | 'manual';
|
|
6683
|
-
readonly fileMatchPattern?: string;
|
|
6734
|
+
interface ExternalExecutionPlan extends ExecutionPlanBase {
|
|
6735
|
+
readonly scope: 'external';
|
|
6684
6736
|
}
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
*/
|
|
6689
|
-
interface KiroPowerYAMLFrontMatter extends SkillsYAMLFrontMatter {
|
|
6690
|
-
readonly displayName?: string;
|
|
6691
|
-
readonly keywords?: readonly string[];
|
|
6692
|
-
readonly author?: string;
|
|
6737
|
+
interface UnsupportedExecutionPlan extends ExecutionPlanBase {
|
|
6738
|
+
readonly scope: 'unsupported';
|
|
6739
|
+
readonly managedProjects: readonly ExecutionPlanProjectSummary[];
|
|
6693
6740
|
}
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
readonly globs: readonly string[];
|
|
6699
|
-
readonly scope?: RuleScope;
|
|
6700
|
-
readonly seriName?: SeriName;
|
|
6741
|
+
type ExecutionPlan = WorkspaceExecutionPlan | ProjectExecutionPlan | ExternalExecutionPlan | UnsupportedExecutionPlan;
|
|
6742
|
+
interface PathScopedEntry {
|
|
6743
|
+
readonly path: string;
|
|
6744
|
+
readonly scope?: string;
|
|
6701
6745
|
}
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
*/
|
|
6706
|
-
interface GlobalMemoryPrompt extends Prompt<PromptKind.GlobalMemory> {
|
|
6707
|
-
readonly type: PromptKind.GlobalMemory;
|
|
6708
|
-
readonly parentDirectoryPath: GlobalConfigDirectory;
|
|
6709
|
-
} //#endregion
|
|
6746
|
+
declare function createEmptyExecutionPlanProjectsBySeries(): ExecutionPlanProjectsBySeries;
|
|
6747
|
+
declare function resolveExecutionPlan(context: OutputCollectedContext, executionCwd: string): ExecutionPlan;
|
|
6748
|
+
declare function filterPathScopedEntriesForExecutionPlan<T extends PathScopedEntry>(entries: readonly T[], plan: ExecutionPlan | undefined, context: OutputCollectedContext): T[]; //#endregion
|
|
6710
6749
|
//#region src/plugins/plugin-core/ExportMetadataTypes.d.ts
|
|
6711
6750
|
/**
|
|
6712
6751
|
* Base export metadata interface
|
|
@@ -7093,6 +7132,7 @@ interface OutputPluginContext {
|
|
|
7093
7132
|
readonly collectedOutputContext: OutputCollectedContext;
|
|
7094
7133
|
readonly pluginOptions?: PluginOptions;
|
|
7095
7134
|
readonly runtimeTargets: OutputRuntimeTargets;
|
|
7135
|
+
readonly executionPlan: ExecutionPlan;
|
|
7096
7136
|
}
|
|
7097
7137
|
/**
|
|
7098
7138
|
* Context for output cleaning operations
|
|
@@ -8089,6 +8129,7 @@ interface PipelineConfig {
|
|
|
8089
8129
|
readonly context: OutputCollectedContext;
|
|
8090
8130
|
readonly outputPlugins: readonly OutputPlugin[];
|
|
8091
8131
|
readonly userConfigOptions: Required<PluginOptions>;
|
|
8132
|
+
readonly executionPlan: ExecutionPlan;
|
|
8092
8133
|
}
|
|
8093
8134
|
/**
|
|
8094
8135
|
* Convert UserConfigFile to PluginOptions
|
|
@@ -8103,6 +8144,7 @@ interface DefineConfigOptions {
|
|
|
8103
8144
|
readonly configLoaderOptions?: ConfigLoaderOptions;
|
|
8104
8145
|
readonly loadUserConfig?: boolean;
|
|
8105
8146
|
readonly cwd?: string;
|
|
8147
|
+
readonly executionCwd?: string;
|
|
8106
8148
|
readonly runtimeCommand?: RuntimeCommand;
|
|
8107
8149
|
}
|
|
8108
8150
|
/**
|
|
@@ -8722,6 +8764,6 @@ declare function syncWindowsConfigIntoWsl(outputPlugins: readonly OutputPlugin[]
|
|
|
8722
8764
|
//#endregion
|
|
8723
8765
|
//#region src/plugin.config.d.ts
|
|
8724
8766
|
declare function resolveRuntimeCommandFromArgv(argv?: readonly string[]): RuntimeCommand;
|
|
8725
|
-
declare function createDefaultPluginConfig(argv?: readonly string[], runtimeCommand?: RuntimeCommand): Promise<PipelineConfig>;
|
|
8767
|
+
declare function createDefaultPluginConfig(argv?: readonly string[], runtimeCommand?: RuntimeCommand, executionCwd?: string): Promise<PipelineConfig>;
|
|
8726
8768
|
//#endregion
|
|
8727
|
-
export { AIAgentIgnoreConfigFile, AINDEX_CONFIG_DIRECTORY_PAIR_KEYS, AINDEX_CONFIG_FILE_PAIR_KEYS, AINDEX_CONFIG_KEY_PATHS, AINDEX_CONFIG_PAIR_DEFAULTS, AINDEX_CONFIG_PAIR_KEYS, AINDEX_DEFAULT_DIR_NAME, AINDEX_DIR_NAMES, AINDEX_FILE_NAMES, AINDEX_PROJECT_SERIES_NAMES, AINDEX_PROMPT_TREE_DIRECTORY_PAIR_KEYS, AINDEX_RELATIVE_PATHS, AbsolutePath, AbstractInputCapability, AbstractOutputPlugin, type AbstractOutputPluginOptions, AbstractPlugin, AgentsOutputPlugin, AindexConfig, AindexConfigDirectoryPairKey, AindexConfigFilePairKey, AindexConfigKeyPath, AindexConfigLike, AindexConfigPairKey, AindexDirName, AindexDirPair, AindexDirPairLike, AindexDirectory, AindexDirectoryEntry, AindexFileEntry, AindexFileName, type AindexProjectSeriesName, AindexPromptTreeDirectoryPairKey, AindexRelativePath, Awaitable, BaseExportMetadata, CircularDependencyError, ClaudeCodeCLIOutputPlugin, ClaudeCodeCLISubAgentColors, CleanupError, CleanupProtectionConflict, CleanupProtectionConflictError, CleanupProtectionOptions, CleanupProtectionRule, CleanupResult, type CleanupScopePathsConfig, CodexCLIOutputPlugin, CodexSkillMetadata, CodexSkillYAMLFrontMatter, CodingAgentTools, CollectedOutputs, type CombineOptions, CommandExportMetadata, type CommandNameTransformOptions, type CommandOutputConfig, CommandPrompt, CommandSeriesOptions, CommandSeriesPluginOverride, CommandYAMLFrontMatter, CommonYAMLFrontMatter, ConfigLoadResult, ConfigLoader, ConfigLoaderOptions, CursorOutputPlugin, DEFAULT_AINDEX_STRUCTURE, DEFAULT_CONFIG_FILE_NAME, DEFAULT_GLOBAL_CONFIG_DIR, DEFAULT_SCOPE_PRIORITY, DEFAULT_USER_CONFIG, DefineConfigOptions, DependencyNode, type DiagnosticLines, type DirectoryReadResult, DroidCLIOutputPlugin, EditorConfigOutputPlugin, FastGlobType, FileContent, FileExtensions, FilePathKind, type FilterConfigPath, FrontMatterFields, FrontMatterOptions, GeminiCLIOutputPlugin, GenerationOptions, GenerationResult, GenericSkillsOutputPlugin, GitExcludeOutputPlugin, GlobalConfigDirectory, GlobalConfigDirectoryInOther, GlobalConfigDirectoryInUserHome, GlobalConfigDirectoryType, GlobalConfigDirs, GlobalConfigValidationResult, GlobalMemoryPrompt, GlobalScopeCollector, type GlobalScopeCollectorOptions, IDEKind, type ILogger, IgnoreFiles, InputCapability, InputCapabilityContext, InputCollectedContext, InputEffectContext, InputEffectHandler, InputEffectRegistration, InputEffectResult, JetBrainsAIAssistantCodexOutputPlugin, JetBrainsIDECodeStyleConfigOutputPlugin, KiroCLIOutputPlugin, KiroPowerEntry, KiroPowerSource, KiroPowerYAMLFrontMatter, KiroPowersRegistry, KiroRecommendedRepo, KiroRepoSource, KiroSteeringYAMLFrontMatter, ListPromptsOptions, Locale, LocalizedContent, LocalizedFileExtension, LocalizedPrompt, LocalizedPromptReader, type LocalizedReadOptions, LocalizedSource, type LogLevel, type LoggerDiagnosticInput, type LoggerDiagnosticRecord, ManagedPromptKind, type McpConfigFormat, McpConfigManager, type McpConfigTransformer, McpProjectConfig, McpServerConfig, type McpServerEntry, type McpWriteResult, MergedConfigResult, MetadataValidationResult, MissingDependencyError, NamingCaseKind, OUTPUT_SCOPE_TOPICS, OpencodeCLIOutputPlugin, OutputCleanContext, type OutputCleanupConfig, OutputCleanupDeclarations, OutputCleanupPathDeclaration, OutputCleanupScope, OutputCleanupTargetKind, OutputCollectedContext, OutputDeclarationScope, OutputFileDeclaration, OutputFileNames, OutputPlugin, OutputPluginCapabilities, OutputPluginContext, OutputPrefixes, OutputRuntimeTargets, OutputScope, OutputScopeOptions, OutputScopeSelection, OutputScopeTopic, OutputSubdirectories, OutputTopicCapability, OutputWriteContext, PLUGIN_NAMES, Path, PathPlaceholders, PipelineConfig, Plugin, PluginContext, PluginKind, type PluginName, PluginOptions, PluginOutputScopeTopics, PluginScopeRegistration, PreservedSkills, Project, ProjectChildrenMemoryPrompt, ProjectConfig, ProjectEnhancerCapability, ProjectIDEConfigFile, ProjectRootMemoryPrompt, Prompt, PromptArtifactRecord, PromptArtifactState, PromptCatalogItem, PromptCatalogPaths, PromptCatalogPresence, PromptDetails, PromptKind, PromptServiceOptions, PromptSourceLocale, ProtectionMode, ProtectionRuleMatcher, QoderIDEPluginOutputPlugin, README_FILE_KIND_MAP, type ReadError, ReadmeFileKind, ReadmeMdConfigFileOutputPlugin, ReadmePrompt, RegistryData, RegistryOperationResult, RegistryWriter, RelativePath, ResolvedBasePaths, ResolvedWslInstanceTarget, RootPath, type RuleContentOptions, RuleExportMetadata, type RuleOutputConfig, RulePrompt, RuleScope, RuleYAMLFrontMatter, RuntimeCommand, ScopePriority, type ScopeRegistration, ScopeRegistry, ScopeRegistryLike, SeriName, type SeriesFilterable, SkillChildDoc, SkillExportMetadata, type SkillFrontMatterOptions, SkillMcpConfig, SkillPrompt, SkillResource, SkillResourceEncoding, SkillYAMLFrontMatter, type SkillsOutputConfig, SkillsYAMLFrontMatter, SourceLocaleExtensions, SourcePromptExtensions, SourcePromptFileExtensions, StringOrStringArray, type SubAgentArtifactFormat, SubAgentExportMetadata, type SubAgentFileNameSource, SubAgentFrontMatterField, type SubAgentNameTransformOptions, SubAgentOutputConfig, SubAgentPrompt, SubAgentYAMLFrontMatter, type SubAgentsOutputConfig, Target, ToolAwareYAMLFrontMatter, ToolPresets, TraeCNIDEOutputPlugin, TraeIDEOutputPlugin, type TransformedMcpConfig, TypeSeriesConfig, UpsertPromptSourceInput, UserConfigFile, ValidateMetadataOptions, VersionControlCheckResult, VisualStudioCodeIDEConfigOutputPlugin, WORKSPACE_ROOT_PROJECT_NAME, WarpIDEOutputPlugin, WindowsOptions, WindowsWsl2Options, WindsurfOutputPlugin, Workspace, WritePromptArtifactsInput, WriteResult, WriteResults, WslMirrorFileDeclaration, WslMirrorRuntimeDependencies, WslMirrorSyncResult, YAMLFrontMatter, ZAindexConfig, ZAindexDirPair, ZCleanupProtectionOptions, ZCleanupProtectionRule, ZCommandSeriesOptions, ZCommandSeriesPluginOverride, ZConfigLoaderOptions, ZFrontMatterOptions, ZMcpProjectConfig, ZOutputScope, ZOutputScopeOptions, ZOutputScopeSelection, ZPluginOutputScopeTopics, ZProjectConfig, ZProtectionMode, ZProtectionRuleMatcher, ZStringOrStringArray, ZTypeSeriesConfig, ZUserConfigFile, ZUserProfile, ZWindowsOptions, ZWindowsWsl2Options, ZedIDEConfigOutputPlugin, applyMetadataDefaults, applySubSeriesGlobPrefix, buildBatchFileOperationDiagnostic, buildConfigDiagnostic, buildDefaultAindexConfig, buildDiagnostic, buildFileOperationDiagnostic, buildPathStateDiagnostic, buildPromptCompilerDiagnostic, buildProtectedDeletionDiagnostic, buildUnhandledExceptionDiagnostic, buildUsageDiagnostic, checkVersionControl, clearBufferedDiagnostics, clearPromptArtifactCache, collectAllPluginOutputs, collectDeclaredWslMirrorFiles, collectDeletionTargets, collectMcpServersFromSkills, collectOutputDeclarations, compileRawPromptArtifact, createDefaultPluginConfig, createLocalizedPromptReader, createLogger, defineConfig, deriveSubAgentIdentity, diagnosticLines, discoverOutputRuntimeTargets, drainBufferedDiagnostics, executeDeclarativeWriteOutputs, filterByProjectConfig, findAllGitRepos, findGitModuleInfoDirs, flattenPromptPath, flushOutput, generateAindex, getConfigLoader, getGlobalConfigPath, getGlobalLogLevel, getPrompt, getRequiredGlobalConfigPath, hasNativeCleanupBinding, hasSourcePromptExtension,
|
|
8769
|
+
export { AIAgentIgnoreConfigFile, AINDEX_CONFIG_DIRECTORY_PAIR_KEYS, AINDEX_CONFIG_FILE_PAIR_KEYS, AINDEX_CONFIG_KEY_PATHS, AINDEX_CONFIG_PAIR_DEFAULTS, AINDEX_CONFIG_PAIR_KEYS, AINDEX_DEFAULT_DIR_NAME, AINDEX_DIR_NAMES, AINDEX_FILE_NAMES, AINDEX_PROJECT_SERIES_NAMES, AINDEX_PROMPT_TREE_DIRECTORY_PAIR_KEYS, AINDEX_RELATIVE_PATHS, AbsolutePath, AbstractInputCapability, AbstractOutputPlugin, type AbstractOutputPluginOptions, AbstractPlugin, AgentsOutputPlugin, AindexConfig, AindexConfigDirectoryPairKey, AindexConfigFilePairKey, AindexConfigKeyPath, AindexConfigLike, AindexConfigPairKey, AindexDirName, AindexDirPair, AindexDirPairLike, AindexDirectory, AindexDirectoryEntry, AindexFileEntry, AindexFileName, type AindexProjectSeriesName, AindexPromptTreeDirectoryPairKey, AindexRelativePath, Awaitable, BaseExportMetadata, CircularDependencyError, ClaudeCodeCLIOutputPlugin, ClaudeCodeCLISubAgentColors, CleanupError, CleanupProtectionConflict, CleanupProtectionConflictError, CleanupProtectionOptions, CleanupProtectionRule, CleanupResult, type CleanupScopePathsConfig, CodexCLIOutputPlugin, CodexSkillMetadata, CodexSkillYAMLFrontMatter, CodingAgentTools, CollectedOutputs, type CombineOptions, CommandExportMetadata, type CommandNameTransformOptions, type CommandOutputConfig, CommandPrompt, CommandSeriesOptions, CommandSeriesPluginOverride, CommandYAMLFrontMatter, CommonYAMLFrontMatter, ConfigLoadResult, ConfigLoader, ConfigLoaderOptions, CursorOutputPlugin, DEFAULT_AINDEX_STRUCTURE, DEFAULT_CONFIG_FILE_NAME, DEFAULT_GLOBAL_CONFIG_DIR, DEFAULT_SCOPE_PRIORITY, DEFAULT_USER_CONFIG, DefineConfigOptions, DependencyNode, type DiagnosticLines, type DirectoryReadResult, DroidCLIOutputPlugin, EditorConfigOutputPlugin, ExecutionPlan, ExecutionPlanProjectSummary, ExecutionPlanProjectsBySeries, ExecutionScope, ExternalExecutionPlan, FastGlobType, FileContent, FileExtensions, FilePathKind, type FilterConfigPath, FrontMatterFields, FrontMatterOptions, GeminiCLIOutputPlugin, GenerationOptions, GenerationResult, GenericSkillsOutputPlugin, GitExcludeOutputPlugin, GlobalConfigDirectory, GlobalConfigDirectoryInOther, GlobalConfigDirectoryInUserHome, GlobalConfigDirectoryType, GlobalConfigDirs, GlobalConfigValidationResult, GlobalMemoryPrompt, GlobalScopeCollector, type GlobalScopeCollectorOptions, IDEKind, type ILogger, IgnoreFiles, InputCapability, InputCapabilityContext, InputCollectedContext, InputEffectContext, InputEffectHandler, InputEffectRegistration, InputEffectResult, JetBrainsAIAssistantCodexOutputPlugin, JetBrainsIDECodeStyleConfigOutputPlugin, KiroCLIOutputPlugin, KiroPowerEntry, KiroPowerSource, KiroPowerYAMLFrontMatter, KiroPowersRegistry, KiroRecommendedRepo, KiroRepoSource, KiroSteeringYAMLFrontMatter, ListPromptsOptions, Locale, LocalizedContent, LocalizedFileExtension, LocalizedPrompt, LocalizedPromptReader, type LocalizedReadOptions, LocalizedSource, type LogLevel, type LoggerDiagnosticInput, type LoggerDiagnosticRecord, ManagedPromptKind, type McpConfigFormat, McpConfigManager, type McpConfigTransformer, McpProjectConfig, McpServerConfig, type McpServerEntry, type McpWriteResult, MergedConfigResult, MetadataValidationResult, MissingDependencyError, NamingCaseKind, OUTPUT_SCOPE_TOPICS, OpencodeCLIOutputPlugin, OutputCleanContext, type OutputCleanupConfig, OutputCleanupDeclarations, OutputCleanupPathDeclaration, OutputCleanupScope, OutputCleanupTargetKind, OutputCollectedContext, OutputDeclarationScope, OutputFileDeclaration, OutputFileNames, OutputPlugin, OutputPluginCapabilities, OutputPluginContext, OutputPrefixes, OutputRuntimeTargets, OutputScope, OutputScopeOptions, OutputScopeSelection, OutputScopeTopic, OutputSubdirectories, OutputTopicCapability, OutputWriteContext, PLUGIN_NAMES, Path, PathPlaceholders, PipelineConfig, Plugin, PluginContext, PluginKind, type PluginName, PluginOptions, PluginOutputScopeTopics, PluginScopeRegistration, PreservedSkills, Project, ProjectChildrenMemoryPrompt, ProjectConfig, ProjectEnhancerCapability, ProjectExecutionPlan, ProjectIDEConfigFile, ProjectRootMemoryPrompt, Prompt, PromptArtifactRecord, PromptArtifactState, PromptCatalogItem, PromptCatalogPaths, PromptCatalogPresence, PromptDetails, PromptKind, PromptServiceOptions, PromptSourceLocale, ProtectionMode, ProtectionRuleMatcher, QoderIDEPluginOutputPlugin, README_FILE_KIND_MAP, type ReadError, ReadmeFileKind, ReadmeMdConfigFileOutputPlugin, ReadmePrompt, RegistryData, RegistryOperationResult, RegistryWriter, RelativePath, ResolvedBasePaths, ResolvedWslInstanceTarget, RootPath, type RuleContentOptions, RuleExportMetadata, type RuleOutputConfig, RulePrompt, RuleScope, RuleYAMLFrontMatter, RuntimeCommand, ScopePriority, type ScopeRegistration, ScopeRegistry, ScopeRegistryLike, SeriName, type SeriesFilterable, SkillChildDoc, SkillExportMetadata, type SkillFrontMatterOptions, SkillMcpConfig, SkillPrompt, SkillResource, SkillResourceEncoding, SkillYAMLFrontMatter, type SkillsOutputConfig, SkillsYAMLFrontMatter, SourceLocaleExtensions, SourcePromptExtensions, SourcePromptFileExtensions, StringOrStringArray, type SubAgentArtifactFormat, SubAgentExportMetadata, type SubAgentFileNameSource, SubAgentFrontMatterField, type SubAgentNameTransformOptions, SubAgentOutputConfig, SubAgentPrompt, SubAgentYAMLFrontMatter, type SubAgentsOutputConfig, Target, ToolAwareYAMLFrontMatter, ToolPresets, TraeCNIDEOutputPlugin, TraeIDEOutputPlugin, type TransformedMcpConfig, TypeSeriesConfig, UnsupportedExecutionPlan, UpsertPromptSourceInput, UserConfigFile, ValidateMetadataOptions, VersionControlCheckResult, VisualStudioCodeIDEConfigOutputPlugin, WORKSPACE_ROOT_PROJECT_NAME, WarpIDEOutputPlugin, WindowsOptions, WindowsWsl2Options, WindsurfOutputPlugin, Workspace, WorkspaceExecutionPlan, WritePromptArtifactsInput, WriteResult, WriteResults, WslMirrorFileDeclaration, WslMirrorRuntimeDependencies, WslMirrorSyncResult, YAMLFrontMatter, ZAindexConfig, ZAindexDirPair, ZCleanupProtectionOptions, ZCleanupProtectionRule, ZCommandSeriesOptions, ZCommandSeriesPluginOverride, ZConfigLoaderOptions, ZFrontMatterOptions, ZMcpProjectConfig, ZOutputScope, ZOutputScopeOptions, ZOutputScopeSelection, ZPluginOutputScopeTopics, ZProjectConfig, ZProtectionMode, ZProtectionRuleMatcher, ZStringOrStringArray, ZTypeSeriesConfig, ZUserConfigFile, ZUserProfile, ZWindowsOptions, ZWindowsWsl2Options, ZedIDEConfigOutputPlugin, applyMetadataDefaults, applySubSeriesGlobPrefix, buildBatchFileOperationDiagnostic, buildConfigDiagnostic, buildDefaultAindexConfig, buildDiagnostic, buildFileOperationDiagnostic, buildPathStateDiagnostic, buildPromptCompilerDiagnostic, buildProtectedDeletionDiagnostic, buildUnhandledExceptionDiagnostic, buildUsageDiagnostic, checkVersionControl, clearBufferedDiagnostics, clearPromptArtifactCache, collectAllPluginOutputs, collectDeclaredWslMirrorFiles, collectDeletionTargets, collectMcpServersFromSkills, collectOutputDeclarations, compileRawPromptArtifact, createDefaultPluginConfig, createEmptyExecutionPlanProjectsBySeries, createLocalizedPromptReader, createLogger, defineConfig, deriveSubAgentIdentity, diagnosticLines, discoverOutputRuntimeTargets, drainBufferedDiagnostics, executeDeclarativeWriteOutputs, filterByProjectConfig, filterPathScopedEntriesForExecutionPlan, findAllGitRepos, findGitModuleInfoDirs, flattenPromptPath, flushOutput, generateAindex, getConfigLoader, getGlobalConfigPath, getGlobalLogLevel, getPrompt, getRequiredGlobalConfigPath, hasNativeCleanupBinding, hasSourcePromptExtension, listPrompts, loadUserConfig, logProtectedDeletionGuardError, mergeAindexConfig, mergeConfig, partitionBufferedDiagnostics, performCleanup, performCleanupWithNative, planCleanupWithNative, readPromptArtifact, resolveExecutionPlan, resolveGitInfoDir, resolvePromptDefinition, resolveRuntimeCommandFromArgv, resolveSkillName, resolveSubAgentCanonicalName, resolveTopicScopes, resolveUserPath, resolveWslInstanceTargets, runCli, setGlobalLogLevel, splitDiagnosticText, syncWindowsConfigIntoWsl, toErrorMessage, toOutputCollectedContext, transformMcpConfigForCursor, transformMcpConfigForOpencode, transformMcpServerMap, upsertPromptSource, userConfigToPluginOptions, validateCommandMetadata, validateExportMetadata, validateGlobalConfig, validateOutputPluginCapabilities, validateOutputScopeOverridesForPlugin, validateOutputScopeOverridesForPlugins, validateRuleMetadata, validateSkillMetadata, validateSubAgentMetadata, writePromptArtifacts };
|