@truenine/memory-sync-cli 2026.10402.116 → 2026.10404.101
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 +394 -718
- package/dist/index.mjs +96 -110
- package/dist/plugin-runtime.mjs +103 -103
- package/dist/tnmsc.schema.json +0 -185
- 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
|
|
@@ -4636,7 +4635,6 @@ declare const AINDEX_CONFIG_PAIR_KEYS: readonly ["skills", "commands", "subAgent
|
|
|
4636
4635
|
type AindexConfigPairKey = (typeof AINDEX_CONFIG_PAIR_KEYS)[number];
|
|
4637
4636
|
type AindexConfigDirectoryPairKey = (typeof AINDEX_CONFIG_DIRECTORY_PAIR_KEYS)[number];
|
|
4638
4637
|
type AindexConfigFilePairKey = (typeof AINDEX_CONFIG_FILE_PAIR_KEYS)[number];
|
|
4639
|
-
type AindexConfigKeyPath = `aindex.${AindexConfigPairKey}.src` | `aindex.${AindexConfigPairKey}.dist`;
|
|
4640
4638
|
declare const AINDEX_PROMPT_TREE_DIRECTORY_PAIR_KEYS: readonly ["skills", "commands", "subAgents", "app", "ext", "arch", "softwares"];
|
|
4641
4639
|
type AindexPromptTreeDirectoryPairKey = (typeof AINDEX_PROMPT_TREE_DIRECTORY_PAIR_KEYS)[number];
|
|
4642
4640
|
interface MutableAindexDirPair {
|
|
@@ -4688,7 +4686,6 @@ declare const AINDEX_CONFIG_PAIR_DEFAULTS: {
|
|
|
4688
4686
|
readonly dist: "dist/softwares";
|
|
4689
4687
|
};
|
|
4690
4688
|
};
|
|
4691
|
-
declare const AINDEX_CONFIG_KEY_PATHS: readonly AindexConfigKeyPath[];
|
|
4692
4689
|
declare function buildDefaultAindexConfig(): AindexConfigLike;
|
|
4693
4690
|
declare function mergeAindexConfig<T extends AindexConfigLike>(base: T, override?: Partial<T>): T; //#endregion
|
|
4694
4691
|
//#region src/plugins/plugin-core/AindexTypes.d.ts
|
|
@@ -4864,11 +4861,11 @@ declare const ZAindexDirPair: z.ZodObject<{
|
|
|
4864
4861
|
dist: string;
|
|
4865
4862
|
}>;
|
|
4866
4863
|
/**
|
|
4867
|
-
* Zod schema for the aindex configuration.
|
|
4868
|
-
* All paths are relative to <workspaceDir
|
|
4864
|
+
* Zod schema for the fully resolved aindex configuration.
|
|
4865
|
+
* All paths are relative to <workspaceDir>/aindex.
|
|
4869
4866
|
*/
|
|
4870
4867
|
declare const ZAindexConfig: z.ZodObject<{
|
|
4871
|
-
|
|
4868
|
+
app: z.ZodObject<{
|
|
4872
4869
|
src: z.ZodString;
|
|
4873
4870
|
dist: z.ZodString;
|
|
4874
4871
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4887,7 +4884,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4887
4884
|
src: string;
|
|
4888
4885
|
dist: string;
|
|
4889
4886
|
}>>;
|
|
4890
|
-
|
|
4887
|
+
ext: z.ZodObject<{
|
|
4891
4888
|
src: z.ZodString;
|
|
4892
4889
|
dist: z.ZodString;
|
|
4893
4890
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4906,7 +4903,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4906
4903
|
src: string;
|
|
4907
4904
|
dist: string;
|
|
4908
4905
|
}>>;
|
|
4909
|
-
|
|
4906
|
+
arch: z.ZodObject<{
|
|
4910
4907
|
src: z.ZodString;
|
|
4911
4908
|
dist: z.ZodString;
|
|
4912
4909
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4925,7 +4922,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4925
4922
|
src: string;
|
|
4926
4923
|
dist: string;
|
|
4927
4924
|
}>>;
|
|
4928
|
-
|
|
4925
|
+
softwares: z.ZodObject<{
|
|
4929
4926
|
src: z.ZodString;
|
|
4930
4927
|
dist: z.ZodString;
|
|
4931
4928
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4944,7 +4941,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4944
4941
|
src: string;
|
|
4945
4942
|
dist: string;
|
|
4946
4943
|
}>>;
|
|
4947
|
-
|
|
4944
|
+
skills: z.ZodObject<{
|
|
4948
4945
|
src: z.ZodString;
|
|
4949
4946
|
dist: z.ZodString;
|
|
4950
4947
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4963,7 +4960,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4963
4960
|
src: string;
|
|
4964
4961
|
dist: string;
|
|
4965
4962
|
}>>;
|
|
4966
|
-
|
|
4963
|
+
commands: z.ZodObject<{
|
|
4967
4964
|
src: z.ZodString;
|
|
4968
4965
|
dist: z.ZodString;
|
|
4969
4966
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4982,7 +4979,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
4982
4979
|
src: string;
|
|
4983
4980
|
dist: string;
|
|
4984
4981
|
}>>;
|
|
4985
|
-
|
|
4982
|
+
subAgents: z.ZodObject<{
|
|
4986
4983
|
src: z.ZodString;
|
|
4987
4984
|
dist: z.ZodString;
|
|
4988
4985
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5001,7 +4998,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
5001
4998
|
src: string;
|
|
5002
4999
|
dist: string;
|
|
5003
5000
|
}>>;
|
|
5004
|
-
|
|
5001
|
+
rules: z.ZodObject<{
|
|
5005
5002
|
src: z.ZodString;
|
|
5006
5003
|
dist: z.ZodString;
|
|
5007
5004
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5020,7 +5017,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
5020
5017
|
src: string;
|
|
5021
5018
|
dist: string;
|
|
5022
5019
|
}>>;
|
|
5023
|
-
|
|
5020
|
+
globalPrompt: z.ZodObject<{
|
|
5024
5021
|
src: z.ZodString;
|
|
5025
5022
|
dist: z.ZodString;
|
|
5026
5023
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5039,7 +5036,7 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
5039
5036
|
src: string;
|
|
5040
5037
|
dist: string;
|
|
5041
5038
|
}>>;
|
|
5042
|
-
|
|
5039
|
+
workspacePrompt: z.ZodObject<{
|
|
5043
5040
|
src: z.ZodString;
|
|
5044
5041
|
dist: z.ZodString;
|
|
5045
5042
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5060,89 +5057,89 @@ declare const ZAindexConfig: z.ZodObject<{
|
|
|
5060
5057
|
}>>;
|
|
5061
5058
|
dir: z.ZodDefault<z.ZodString>;
|
|
5062
5059
|
}, "strip", z.ZodTypeAny, {
|
|
5063
|
-
|
|
5064
|
-
skills: {
|
|
5060
|
+
app: {
|
|
5065
5061
|
src: string;
|
|
5066
5062
|
dist: string;
|
|
5067
5063
|
};
|
|
5068
|
-
|
|
5064
|
+
ext: {
|
|
5069
5065
|
src: string;
|
|
5070
5066
|
dist: string;
|
|
5071
5067
|
};
|
|
5072
|
-
|
|
5068
|
+
arch: {
|
|
5073
5069
|
src: string;
|
|
5074
5070
|
dist: string;
|
|
5075
5071
|
};
|
|
5076
|
-
|
|
5072
|
+
softwares: {
|
|
5077
5073
|
src: string;
|
|
5078
5074
|
dist: string;
|
|
5079
5075
|
};
|
|
5080
|
-
|
|
5076
|
+
skills: {
|
|
5081
5077
|
src: string;
|
|
5082
5078
|
dist: string;
|
|
5083
5079
|
};
|
|
5084
|
-
|
|
5080
|
+
commands: {
|
|
5085
5081
|
src: string;
|
|
5086
5082
|
dist: string;
|
|
5087
5083
|
};
|
|
5088
|
-
|
|
5084
|
+
subAgents: {
|
|
5089
5085
|
src: string;
|
|
5090
5086
|
dist: string;
|
|
5091
5087
|
};
|
|
5092
|
-
|
|
5088
|
+
rules: {
|
|
5093
5089
|
src: string;
|
|
5094
5090
|
dist: string;
|
|
5095
5091
|
};
|
|
5096
|
-
|
|
5092
|
+
globalPrompt: {
|
|
5097
5093
|
src: string;
|
|
5098
5094
|
dist: string;
|
|
5099
5095
|
};
|
|
5100
|
-
|
|
5096
|
+
workspacePrompt: {
|
|
5101
5097
|
src: string;
|
|
5102
5098
|
dist: string;
|
|
5103
5099
|
};
|
|
5100
|
+
dir: string;
|
|
5104
5101
|
}, {
|
|
5105
|
-
|
|
5106
|
-
skills?: {
|
|
5102
|
+
app?: {
|
|
5107
5103
|
src: string;
|
|
5108
5104
|
dist: string;
|
|
5109
5105
|
} | undefined;
|
|
5110
|
-
|
|
5106
|
+
ext?: {
|
|
5111
5107
|
src: string;
|
|
5112
5108
|
dist: string;
|
|
5113
5109
|
} | undefined;
|
|
5114
|
-
|
|
5110
|
+
arch?: {
|
|
5115
5111
|
src: string;
|
|
5116
5112
|
dist: string;
|
|
5117
5113
|
} | undefined;
|
|
5118
|
-
|
|
5114
|
+
softwares?: {
|
|
5119
5115
|
src: string;
|
|
5120
5116
|
dist: string;
|
|
5121
5117
|
} | undefined;
|
|
5122
|
-
|
|
5118
|
+
skills?: {
|
|
5123
5119
|
src: string;
|
|
5124
5120
|
dist: string;
|
|
5125
5121
|
} | undefined;
|
|
5126
|
-
|
|
5122
|
+
commands?: {
|
|
5127
5123
|
src: string;
|
|
5128
5124
|
dist: string;
|
|
5129
5125
|
} | undefined;
|
|
5130
|
-
|
|
5126
|
+
subAgents?: {
|
|
5131
5127
|
src: string;
|
|
5132
5128
|
dist: string;
|
|
5133
5129
|
} | undefined;
|
|
5134
|
-
|
|
5130
|
+
rules?: {
|
|
5135
5131
|
src: string;
|
|
5136
5132
|
dist: string;
|
|
5137
5133
|
} | undefined;
|
|
5138
|
-
|
|
5134
|
+
globalPrompt?: {
|
|
5139
5135
|
src: string;
|
|
5140
5136
|
dist: string;
|
|
5141
5137
|
} | undefined;
|
|
5142
|
-
|
|
5138
|
+
workspacePrompt?: {
|
|
5143
5139
|
src: string;
|
|
5144
5140
|
dist: string;
|
|
5145
5141
|
} | undefined;
|
|
5142
|
+
dir?: string | undefined;
|
|
5146
5143
|
}>;
|
|
5147
5144
|
/**
|
|
5148
5145
|
* Zod schema for per-plugin command series override options.
|
|
@@ -5207,15 +5204,15 @@ declare const ZPluginOutputScopeTopics: z.ZodObject<{
|
|
|
5207
5204
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5208
5205
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5209
5206
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5210
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5211
5207
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5208
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5212
5209
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5213
5210
|
}, {
|
|
5214
5211
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5215
5212
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5216
5213
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5217
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5218
5214
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5215
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5219
5216
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5220
5217
|
}>;
|
|
5221
5218
|
/**
|
|
@@ -5233,15 +5230,15 @@ declare const ZOutputScopeOptions: z.ZodObject<{
|
|
|
5233
5230
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5234
5231
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5235
5232
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5236
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5237
5233
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5234
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5238
5235
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5239
5236
|
}, {
|
|
5240
5237
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5241
5238
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5242
5239
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5243
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5244
5240
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5241
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5245
5242
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5246
5243
|
}>>>;
|
|
5247
5244
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5249,8 +5246,8 @@ declare const ZOutputScopeOptions: z.ZodObject<{
|
|
|
5249
5246
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5250
5247
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5251
5248
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5252
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5253
5249
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5250
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5254
5251
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5255
5252
|
}> | undefined;
|
|
5256
5253
|
}, {
|
|
@@ -5258,8 +5255,8 @@ declare const ZOutputScopeOptions: z.ZodObject<{
|
|
|
5258
5255
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5259
5256
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5260
5257
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5261
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5262
5258
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5259
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5263
5260
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5264
5261
|
}> | undefined;
|
|
5265
5262
|
}>;
|
|
@@ -5373,283 +5370,6 @@ declare const ZUserProfile: z.ZodObject<{
|
|
|
5373
5370
|
declare const ZUserConfigFile: z.ZodObject<{
|
|
5374
5371
|
version: z.ZodOptional<z.ZodString>;
|
|
5375
5372
|
workspaceDir: z.ZodOptional<z.ZodString>;
|
|
5376
|
-
aindex: z.ZodOptional<z.ZodObject<{
|
|
5377
|
-
skills: z.ZodObject<{
|
|
5378
|
-
src: z.ZodString;
|
|
5379
|
-
dist: z.ZodString;
|
|
5380
|
-
}, "strip", z.ZodTypeAny, {
|
|
5381
|
-
src: string;
|
|
5382
|
-
dist: string;
|
|
5383
|
-
}, {
|
|
5384
|
-
src: string;
|
|
5385
|
-
dist: string;
|
|
5386
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5387
|
-
src: z.ZodString;
|
|
5388
|
-
dist: z.ZodString;
|
|
5389
|
-
}, "strip", z.ZodTypeAny, {
|
|
5390
|
-
src: string;
|
|
5391
|
-
dist: string;
|
|
5392
|
-
}, {
|
|
5393
|
-
src: string;
|
|
5394
|
-
dist: string;
|
|
5395
|
-
}>>;
|
|
5396
|
-
commands: z.ZodObject<{
|
|
5397
|
-
src: z.ZodString;
|
|
5398
|
-
dist: z.ZodString;
|
|
5399
|
-
}, "strip", z.ZodTypeAny, {
|
|
5400
|
-
src: string;
|
|
5401
|
-
dist: string;
|
|
5402
|
-
}, {
|
|
5403
|
-
src: string;
|
|
5404
|
-
dist: string;
|
|
5405
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5406
|
-
src: z.ZodString;
|
|
5407
|
-
dist: z.ZodString;
|
|
5408
|
-
}, "strip", z.ZodTypeAny, {
|
|
5409
|
-
src: string;
|
|
5410
|
-
dist: string;
|
|
5411
|
-
}, {
|
|
5412
|
-
src: string;
|
|
5413
|
-
dist: string;
|
|
5414
|
-
}>>;
|
|
5415
|
-
subAgents: z.ZodObject<{
|
|
5416
|
-
src: z.ZodString;
|
|
5417
|
-
dist: z.ZodString;
|
|
5418
|
-
}, "strip", z.ZodTypeAny, {
|
|
5419
|
-
src: string;
|
|
5420
|
-
dist: string;
|
|
5421
|
-
}, {
|
|
5422
|
-
src: string;
|
|
5423
|
-
dist: string;
|
|
5424
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5425
|
-
src: z.ZodString;
|
|
5426
|
-
dist: z.ZodString;
|
|
5427
|
-
}, "strip", z.ZodTypeAny, {
|
|
5428
|
-
src: string;
|
|
5429
|
-
dist: string;
|
|
5430
|
-
}, {
|
|
5431
|
-
src: string;
|
|
5432
|
-
dist: string;
|
|
5433
|
-
}>>;
|
|
5434
|
-
rules: z.ZodObject<{
|
|
5435
|
-
src: z.ZodString;
|
|
5436
|
-
dist: z.ZodString;
|
|
5437
|
-
}, "strip", z.ZodTypeAny, {
|
|
5438
|
-
src: string;
|
|
5439
|
-
dist: string;
|
|
5440
|
-
}, {
|
|
5441
|
-
src: string;
|
|
5442
|
-
dist: string;
|
|
5443
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5444
|
-
src: z.ZodString;
|
|
5445
|
-
dist: z.ZodString;
|
|
5446
|
-
}, "strip", z.ZodTypeAny, {
|
|
5447
|
-
src: string;
|
|
5448
|
-
dist: string;
|
|
5449
|
-
}, {
|
|
5450
|
-
src: string;
|
|
5451
|
-
dist: string;
|
|
5452
|
-
}>>;
|
|
5453
|
-
globalPrompt: z.ZodObject<{
|
|
5454
|
-
src: z.ZodString;
|
|
5455
|
-
dist: z.ZodString;
|
|
5456
|
-
}, "strip", z.ZodTypeAny, {
|
|
5457
|
-
src: string;
|
|
5458
|
-
dist: string;
|
|
5459
|
-
}, {
|
|
5460
|
-
src: string;
|
|
5461
|
-
dist: string;
|
|
5462
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5463
|
-
src: z.ZodString;
|
|
5464
|
-
dist: z.ZodString;
|
|
5465
|
-
}, "strip", z.ZodTypeAny, {
|
|
5466
|
-
src: string;
|
|
5467
|
-
dist: string;
|
|
5468
|
-
}, {
|
|
5469
|
-
src: string;
|
|
5470
|
-
dist: string;
|
|
5471
|
-
}>>;
|
|
5472
|
-
workspacePrompt: z.ZodObject<{
|
|
5473
|
-
src: z.ZodString;
|
|
5474
|
-
dist: z.ZodString;
|
|
5475
|
-
}, "strip", z.ZodTypeAny, {
|
|
5476
|
-
src: string;
|
|
5477
|
-
dist: string;
|
|
5478
|
-
}, {
|
|
5479
|
-
src: string;
|
|
5480
|
-
dist: string;
|
|
5481
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5482
|
-
src: z.ZodString;
|
|
5483
|
-
dist: z.ZodString;
|
|
5484
|
-
}, "strip", z.ZodTypeAny, {
|
|
5485
|
-
src: string;
|
|
5486
|
-
dist: string;
|
|
5487
|
-
}, {
|
|
5488
|
-
src: string;
|
|
5489
|
-
dist: string;
|
|
5490
|
-
}>>;
|
|
5491
|
-
app: z.ZodObject<{
|
|
5492
|
-
src: z.ZodString;
|
|
5493
|
-
dist: z.ZodString;
|
|
5494
|
-
}, "strip", z.ZodTypeAny, {
|
|
5495
|
-
src: string;
|
|
5496
|
-
dist: string;
|
|
5497
|
-
}, {
|
|
5498
|
-
src: string;
|
|
5499
|
-
dist: string;
|
|
5500
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5501
|
-
src: z.ZodString;
|
|
5502
|
-
dist: z.ZodString;
|
|
5503
|
-
}, "strip", z.ZodTypeAny, {
|
|
5504
|
-
src: string;
|
|
5505
|
-
dist: string;
|
|
5506
|
-
}, {
|
|
5507
|
-
src: string;
|
|
5508
|
-
dist: string;
|
|
5509
|
-
}>>;
|
|
5510
|
-
ext: z.ZodObject<{
|
|
5511
|
-
src: z.ZodString;
|
|
5512
|
-
dist: z.ZodString;
|
|
5513
|
-
}, "strip", z.ZodTypeAny, {
|
|
5514
|
-
src: string;
|
|
5515
|
-
dist: string;
|
|
5516
|
-
}, {
|
|
5517
|
-
src: string;
|
|
5518
|
-
dist: string;
|
|
5519
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5520
|
-
src: z.ZodString;
|
|
5521
|
-
dist: z.ZodString;
|
|
5522
|
-
}, "strip", z.ZodTypeAny, {
|
|
5523
|
-
src: string;
|
|
5524
|
-
dist: string;
|
|
5525
|
-
}, {
|
|
5526
|
-
src: string;
|
|
5527
|
-
dist: string;
|
|
5528
|
-
}>>;
|
|
5529
|
-
arch: z.ZodObject<{
|
|
5530
|
-
src: z.ZodString;
|
|
5531
|
-
dist: z.ZodString;
|
|
5532
|
-
}, "strip", z.ZodTypeAny, {
|
|
5533
|
-
src: string;
|
|
5534
|
-
dist: string;
|
|
5535
|
-
}, {
|
|
5536
|
-
src: string;
|
|
5537
|
-
dist: string;
|
|
5538
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5539
|
-
src: z.ZodString;
|
|
5540
|
-
dist: z.ZodString;
|
|
5541
|
-
}, "strip", z.ZodTypeAny, {
|
|
5542
|
-
src: string;
|
|
5543
|
-
dist: string;
|
|
5544
|
-
}, {
|
|
5545
|
-
src: string;
|
|
5546
|
-
dist: string;
|
|
5547
|
-
}>>;
|
|
5548
|
-
softwares: z.ZodObject<{
|
|
5549
|
-
src: z.ZodString;
|
|
5550
|
-
dist: z.ZodString;
|
|
5551
|
-
}, "strip", z.ZodTypeAny, {
|
|
5552
|
-
src: string;
|
|
5553
|
-
dist: string;
|
|
5554
|
-
}, {
|
|
5555
|
-
src: string;
|
|
5556
|
-
dist: string;
|
|
5557
|
-
}> | z.ZodDefault<z.ZodObject<{
|
|
5558
|
-
src: z.ZodString;
|
|
5559
|
-
dist: z.ZodString;
|
|
5560
|
-
}, "strip", z.ZodTypeAny, {
|
|
5561
|
-
src: string;
|
|
5562
|
-
dist: string;
|
|
5563
|
-
}, {
|
|
5564
|
-
src: string;
|
|
5565
|
-
dist: string;
|
|
5566
|
-
}>>;
|
|
5567
|
-
dir: z.ZodDefault<z.ZodString>;
|
|
5568
|
-
}, "strip", z.ZodTypeAny, {
|
|
5569
|
-
dir: string;
|
|
5570
|
-
skills: {
|
|
5571
|
-
src: string;
|
|
5572
|
-
dist: string;
|
|
5573
|
-
};
|
|
5574
|
-
commands: {
|
|
5575
|
-
src: string;
|
|
5576
|
-
dist: string;
|
|
5577
|
-
};
|
|
5578
|
-
subAgents: {
|
|
5579
|
-
src: string;
|
|
5580
|
-
dist: string;
|
|
5581
|
-
};
|
|
5582
|
-
rules: {
|
|
5583
|
-
src: string;
|
|
5584
|
-
dist: string;
|
|
5585
|
-
};
|
|
5586
|
-
globalPrompt: {
|
|
5587
|
-
src: string;
|
|
5588
|
-
dist: string;
|
|
5589
|
-
};
|
|
5590
|
-
workspacePrompt: {
|
|
5591
|
-
src: string;
|
|
5592
|
-
dist: string;
|
|
5593
|
-
};
|
|
5594
|
-
app: {
|
|
5595
|
-
src: string;
|
|
5596
|
-
dist: string;
|
|
5597
|
-
};
|
|
5598
|
-
ext: {
|
|
5599
|
-
src: string;
|
|
5600
|
-
dist: string;
|
|
5601
|
-
};
|
|
5602
|
-
arch: {
|
|
5603
|
-
src: string;
|
|
5604
|
-
dist: string;
|
|
5605
|
-
};
|
|
5606
|
-
softwares: {
|
|
5607
|
-
src: string;
|
|
5608
|
-
dist: string;
|
|
5609
|
-
};
|
|
5610
|
-
}, {
|
|
5611
|
-
dir?: string | undefined;
|
|
5612
|
-
skills?: {
|
|
5613
|
-
src: string;
|
|
5614
|
-
dist: string;
|
|
5615
|
-
} | undefined;
|
|
5616
|
-
commands?: {
|
|
5617
|
-
src: string;
|
|
5618
|
-
dist: string;
|
|
5619
|
-
} | undefined;
|
|
5620
|
-
subAgents?: {
|
|
5621
|
-
src: string;
|
|
5622
|
-
dist: string;
|
|
5623
|
-
} | undefined;
|
|
5624
|
-
rules?: {
|
|
5625
|
-
src: string;
|
|
5626
|
-
dist: string;
|
|
5627
|
-
} | undefined;
|
|
5628
|
-
globalPrompt?: {
|
|
5629
|
-
src: string;
|
|
5630
|
-
dist: string;
|
|
5631
|
-
} | undefined;
|
|
5632
|
-
workspacePrompt?: {
|
|
5633
|
-
src: string;
|
|
5634
|
-
dist: string;
|
|
5635
|
-
} | undefined;
|
|
5636
|
-
app?: {
|
|
5637
|
-
src: string;
|
|
5638
|
-
dist: string;
|
|
5639
|
-
} | undefined;
|
|
5640
|
-
ext?: {
|
|
5641
|
-
src: string;
|
|
5642
|
-
dist: string;
|
|
5643
|
-
} | undefined;
|
|
5644
|
-
arch?: {
|
|
5645
|
-
src: string;
|
|
5646
|
-
dist: string;
|
|
5647
|
-
} | undefined;
|
|
5648
|
-
softwares?: {
|
|
5649
|
-
src: string;
|
|
5650
|
-
dist: string;
|
|
5651
|
-
} | undefined;
|
|
5652
|
-
}>>;
|
|
5653
5373
|
logLevel: z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error"]>>;
|
|
5654
5374
|
commandSeriesOptions: z.ZodOptional<z.ZodObject<{
|
|
5655
5375
|
includeSeriesPrefix: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5688,15 +5408,15 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5688
5408
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5689
5409
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5690
5410
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5691
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5692
5411
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5412
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5693
5413
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5694
5414
|
}, {
|
|
5695
5415
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5696
5416
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5697
5417
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5698
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5699
5418
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5419
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5700
5420
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5701
5421
|
}>>>;
|
|
5702
5422
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5704,8 +5424,8 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5704
5424
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5705
5425
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5706
5426
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5707
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5708
5427
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5428
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5709
5429
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5710
5430
|
}> | undefined;
|
|
5711
5431
|
}, {
|
|
@@ -5713,8 +5433,8 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5713
5433
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5714
5434
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5715
5435
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5716
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5717
5436
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5437
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5718
5438
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5719
5439
|
}> | undefined;
|
|
5720
5440
|
}>>;
|
|
@@ -5793,49 +5513,6 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5793
5513
|
}, "strip", z.ZodTypeAny, {
|
|
5794
5514
|
version?: string | undefined;
|
|
5795
5515
|
workspaceDir?: string | undefined;
|
|
5796
|
-
aindex?: {
|
|
5797
|
-
dir: string;
|
|
5798
|
-
skills: {
|
|
5799
|
-
src: string;
|
|
5800
|
-
dist: string;
|
|
5801
|
-
};
|
|
5802
|
-
commands: {
|
|
5803
|
-
src: string;
|
|
5804
|
-
dist: string;
|
|
5805
|
-
};
|
|
5806
|
-
subAgents: {
|
|
5807
|
-
src: string;
|
|
5808
|
-
dist: string;
|
|
5809
|
-
};
|
|
5810
|
-
rules: {
|
|
5811
|
-
src: string;
|
|
5812
|
-
dist: string;
|
|
5813
|
-
};
|
|
5814
|
-
globalPrompt: {
|
|
5815
|
-
src: string;
|
|
5816
|
-
dist: string;
|
|
5817
|
-
};
|
|
5818
|
-
workspacePrompt: {
|
|
5819
|
-
src: string;
|
|
5820
|
-
dist: string;
|
|
5821
|
-
};
|
|
5822
|
-
app: {
|
|
5823
|
-
src: string;
|
|
5824
|
-
dist: string;
|
|
5825
|
-
};
|
|
5826
|
-
ext: {
|
|
5827
|
-
src: string;
|
|
5828
|
-
dist: string;
|
|
5829
|
-
};
|
|
5830
|
-
arch: {
|
|
5831
|
-
src: string;
|
|
5832
|
-
dist: string;
|
|
5833
|
-
};
|
|
5834
|
-
softwares: {
|
|
5835
|
-
src: string;
|
|
5836
|
-
dist: string;
|
|
5837
|
-
};
|
|
5838
|
-
} | undefined;
|
|
5839
5516
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | undefined;
|
|
5840
5517
|
commandSeriesOptions?: {
|
|
5841
5518
|
includeSeriesPrefix?: boolean | undefined;
|
|
@@ -5849,8 +5526,8 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5849
5526
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5850
5527
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5851
5528
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5852
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5853
5529
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5530
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5854
5531
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5855
5532
|
}> | undefined;
|
|
5856
5533
|
} | undefined;
|
|
@@ -5879,49 +5556,6 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5879
5556
|
}, {
|
|
5880
5557
|
version?: string | undefined;
|
|
5881
5558
|
workspaceDir?: string | undefined;
|
|
5882
|
-
aindex?: {
|
|
5883
|
-
dir?: string | undefined;
|
|
5884
|
-
skills?: {
|
|
5885
|
-
src: string;
|
|
5886
|
-
dist: string;
|
|
5887
|
-
} | undefined;
|
|
5888
|
-
commands?: {
|
|
5889
|
-
src: string;
|
|
5890
|
-
dist: string;
|
|
5891
|
-
} | undefined;
|
|
5892
|
-
subAgents?: {
|
|
5893
|
-
src: string;
|
|
5894
|
-
dist: string;
|
|
5895
|
-
} | undefined;
|
|
5896
|
-
rules?: {
|
|
5897
|
-
src: string;
|
|
5898
|
-
dist: string;
|
|
5899
|
-
} | undefined;
|
|
5900
|
-
globalPrompt?: {
|
|
5901
|
-
src: string;
|
|
5902
|
-
dist: string;
|
|
5903
|
-
} | undefined;
|
|
5904
|
-
workspacePrompt?: {
|
|
5905
|
-
src: string;
|
|
5906
|
-
dist: string;
|
|
5907
|
-
} | undefined;
|
|
5908
|
-
app?: {
|
|
5909
|
-
src: string;
|
|
5910
|
-
dist: string;
|
|
5911
|
-
} | undefined;
|
|
5912
|
-
ext?: {
|
|
5913
|
-
src: string;
|
|
5914
|
-
dist: string;
|
|
5915
|
-
} | undefined;
|
|
5916
|
-
arch?: {
|
|
5917
|
-
src: string;
|
|
5918
|
-
dist: string;
|
|
5919
|
-
} | undefined;
|
|
5920
|
-
softwares?: {
|
|
5921
|
-
src: string;
|
|
5922
|
-
dist: string;
|
|
5923
|
-
} | undefined;
|
|
5924
|
-
} | undefined;
|
|
5925
5559
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | undefined;
|
|
5926
5560
|
commandSeriesOptions?: {
|
|
5927
5561
|
includeSeriesPrefix?: boolean | undefined;
|
|
@@ -5935,8 +5569,8 @@ declare const ZUserConfigFile: z.ZodObject<{
|
|
|
5935
5569
|
skills?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5936
5570
|
commands?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5937
5571
|
rules?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5938
|
-
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5939
5572
|
subagents?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5573
|
+
prompt?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5940
5574
|
mcp?: "project" | "global" | ("project" | "global")[] | undefined;
|
|
5941
5575
|
}> | undefined;
|
|
5942
5576
|
} | undefined;
|
|
@@ -6163,69 +5797,331 @@ declare enum GlobalConfigDirectoryType {
|
|
|
6163
5797
|
}
|
|
6164
5798
|
type CodingAgentTools = string;
|
|
6165
5799
|
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
|
-
}
|
|
5800
|
+
//#region src/plugins/plugin-core/OutputTypes.d.ts
|
|
6181
5801
|
/**
|
|
6182
|
-
*
|
|
5802
|
+
* Global configuration based on user_home root directory
|
|
6183
5803
|
*/
|
|
6184
|
-
interface
|
|
6185
|
-
readonly type:
|
|
5804
|
+
interface GlobalConfigDirectoryInUserHome<K = GlobalConfigDirectoryType.UserHome> {
|
|
5805
|
+
readonly type: K;
|
|
5806
|
+
readonly directory: RelativePath;
|
|
6186
5807
|
}
|
|
6187
5808
|
/**
|
|
6188
|
-
*
|
|
5809
|
+
* Special, absolute path global memory prompt
|
|
6189
5810
|
*/
|
|
6190
|
-
interface
|
|
6191
|
-
readonly
|
|
6192
|
-
readonly
|
|
6193
|
-
readonly sourcePath?: string;
|
|
5811
|
+
interface GlobalConfigDirectoryInOther<K = GlobalConfigDirectoryType.External> {
|
|
5812
|
+
readonly type: K;
|
|
5813
|
+
readonly directory: AbsolutePath;
|
|
6194
5814
|
}
|
|
5815
|
+
type GlobalConfigDirectory<K = GlobalConfigDirectoryType> = GlobalConfigDirectoryInUserHome<K> | GlobalConfigDirectoryInOther<K>;
|
|
5816
|
+
interface Target {}
|
|
6195
5817
|
/**
|
|
6196
|
-
*
|
|
5818
|
+
* SubAgent frontmatter field mapping
|
|
5819
|
+
* Value can be a static string or a function that extracts value from SubAgentPrompt
|
|
6197
5820
|
*/
|
|
6198
|
-
|
|
6199
|
-
readonly workspace: Workspace;
|
|
6200
|
-
/** Flat prompt projections used by current output plugins */
|
|
6201
|
-
readonly skills?: readonly SkillPrompt[];
|
|
6202
|
-
readonly commands?: readonly CommandPrompt[];
|
|
6203
|
-
readonly subAgents?: readonly SubAgentPrompt[];
|
|
6204
|
-
readonly rules?: readonly RulePrompt[];
|
|
6205
|
-
readonly readmePrompts?: readonly ReadmePrompt[];
|
|
6206
|
-
readonly globalMemory?: GlobalMemoryPrompt;
|
|
6207
|
-
/** Other non-prompt fields */
|
|
6208
|
-
readonly vscodeConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.VSCode>[];
|
|
6209
|
-
readonly zedConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.Zed>[];
|
|
6210
|
-
readonly jetbrainsConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.IntellijIDEA>[];
|
|
6211
|
-
readonly editorConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.EditorConfig>[];
|
|
6212
|
-
readonly aiAgentIgnoreConfigFiles?: readonly AIAgentIgnoreConfigFile[];
|
|
6213
|
-
readonly globalGitIgnore?: string;
|
|
6214
|
-
readonly shadowGitExclude?: string;
|
|
6215
|
-
readonly aindexDir?: string;
|
|
6216
|
-
}
|
|
5821
|
+
type SubAgentFrontMatterField = string | ((subAgent: SubAgentPrompt) => unknown);
|
|
6217
5822
|
/**
|
|
6218
|
-
*
|
|
6219
|
-
* Built incrementally by input plugins through dependency-aware merging.
|
|
5823
|
+
* SubAgent output configuration for declarative configuration
|
|
6220
5824
|
*/
|
|
6221
|
-
interface
|
|
5825
|
+
interface SubAgentOutputConfig {
|
|
5826
|
+
/** Output subdirectory name (relative to IDE config directory) */
|
|
5827
|
+
readonly subDir?: string;
|
|
5828
|
+
/** File name format template */
|
|
5829
|
+
readonly fileNameTemplate?: 'prefix-agent' | 'prefix_agent' | 'agent' | string;
|
|
5830
|
+
/** Whether to include series prefix */
|
|
5831
|
+
readonly includeSeriesPrefix?: boolean;
|
|
5832
|
+
/** Series prefix separator */
|
|
5833
|
+
readonly seriesSeparator?: string;
|
|
5834
|
+
/** Frontmatter configuration */
|
|
5835
|
+
readonly frontMatter?: {
|
|
5836
|
+
/** Custom field mappings */readonly fields?: Record<string, SubAgentFrontMatterField>; /** Fields to exclude */
|
|
5837
|
+
readonly exclude?: string[];
|
|
5838
|
+
};
|
|
5839
|
+
/** Content transformation options */
|
|
5840
|
+
readonly contentTransform?: {
|
|
5841
|
+
/** Whether to transform MDX references to Markdown */readonly transformMdxRefs?: boolean; /** Custom content processor */
|
|
5842
|
+
readonly processor?: (content: string, subAgent: SubAgentPrompt) => string;
|
|
5843
|
+
};
|
|
5844
|
+
}
|
|
6222
5845
|
/**
|
|
6223
|
-
*
|
|
6224
|
-
*
|
|
5846
|
+
* Generic registry data structure.
|
|
5847
|
+
* All registry files must have version and lastUpdated fields.
|
|
6225
5848
|
*/
|
|
6226
|
-
interface
|
|
5849
|
+
interface RegistryData {
|
|
5850
|
+
readonly version: string;
|
|
5851
|
+
readonly lastUpdated: string;
|
|
5852
|
+
}
|
|
6227
5853
|
/**
|
|
6228
|
-
*
|
|
5854
|
+
* Result of a registry operation.
|
|
5855
|
+
*/
|
|
5856
|
+
interface RegistryOperationResult {
|
|
5857
|
+
readonly success: boolean;
|
|
5858
|
+
readonly entryName: string;
|
|
5859
|
+
readonly error?: Error;
|
|
5860
|
+
}
|
|
5861
|
+
/**
|
|
5862
|
+
* Source information for a Kiro power.
|
|
5863
|
+
* Indicates the origin type of a registered power.
|
|
5864
|
+
*/
|
|
5865
|
+
interface KiroPowerSource {
|
|
5866
|
+
readonly type: 'local' | 'repo' | 'registry';
|
|
5867
|
+
readonly repoId?: string;
|
|
5868
|
+
readonly repoName?: string;
|
|
5869
|
+
readonly cloneId?: string;
|
|
5870
|
+
}
|
|
5871
|
+
/**
|
|
5872
|
+
* A single power entry in the Kiro registry.
|
|
5873
|
+
* Contains metadata about an installed power.
|
|
5874
|
+
*/
|
|
5875
|
+
interface KiroPowerEntry {
|
|
5876
|
+
readonly name: string;
|
|
5877
|
+
readonly description: string;
|
|
5878
|
+
readonly mcpServers?: readonly string[];
|
|
5879
|
+
readonly author?: string;
|
|
5880
|
+
readonly keywords: readonly string[];
|
|
5881
|
+
readonly displayName?: string;
|
|
5882
|
+
readonly installed: boolean;
|
|
5883
|
+
readonly installedAt?: string;
|
|
5884
|
+
readonly installPath?: string;
|
|
5885
|
+
readonly source: KiroPowerSource;
|
|
5886
|
+
readonly sourcePath?: string;
|
|
5887
|
+
}
|
|
5888
|
+
/**
|
|
5889
|
+
* Repository source tracking in Kiro registry.
|
|
5890
|
+
* Tracks the source/origin of registered items.
|
|
5891
|
+
*/
|
|
5892
|
+
interface KiroRepoSource {
|
|
5893
|
+
readonly name: string;
|
|
5894
|
+
readonly type: 'local' | 'git';
|
|
5895
|
+
readonly enabled: boolean;
|
|
5896
|
+
readonly addedAt?: string;
|
|
5897
|
+
readonly powerCount: number;
|
|
5898
|
+
readonly path?: string;
|
|
5899
|
+
readonly lastSync?: string;
|
|
5900
|
+
readonly powers?: readonly string[];
|
|
5901
|
+
}
|
|
5902
|
+
/**
|
|
5903
|
+
* Kiro recommended repo metadata (preserved during updates).
|
|
5904
|
+
*/
|
|
5905
|
+
interface KiroRecommendedRepo {
|
|
5906
|
+
readonly url: string;
|
|
5907
|
+
readonly lastFetch: string;
|
|
5908
|
+
readonly powerCount: number;
|
|
5909
|
+
}
|
|
5910
|
+
/**
|
|
5911
|
+
* Complete Kiro powers registry structure.
|
|
5912
|
+
* Represents the full ~/.kiro/powers/registry.json file.
|
|
5913
|
+
*/
|
|
5914
|
+
interface KiroPowersRegistry extends RegistryData {
|
|
5915
|
+
readonly powers: Record<string, KiroPowerEntry>;
|
|
5916
|
+
readonly repoSources: Record<string, KiroRepoSource>;
|
|
5917
|
+
readonly kiroRecommendedRepo?: KiroRecommendedRepo;
|
|
5918
|
+
} //#endregion
|
|
5919
|
+
//#region src/plugins/plugin-core/PromptTypes.d.ts
|
|
5920
|
+
/** Common directory representation */
|
|
5921
|
+
interface Path<K extends FilePathKind = FilePathKind> {
|
|
5922
|
+
readonly pathKind: K;
|
|
5923
|
+
readonly path: string;
|
|
5924
|
+
readonly getDirectoryName: () => string;
|
|
5925
|
+
}
|
|
5926
|
+
/** Relative path directory */
|
|
5927
|
+
interface RelativePath extends Path<FilePathKind.Relative> {
|
|
5928
|
+
readonly basePath: string;
|
|
5929
|
+
getAbsolutePath: () => string;
|
|
5930
|
+
}
|
|
5931
|
+
/** Absolute path directory */
|
|
5932
|
+
type AbsolutePath = Path<FilePathKind.Absolute>;
|
|
5933
|
+
/** Root path directory */
|
|
5934
|
+
type RootPath = Path<FilePathKind.Root>;
|
|
5935
|
+
interface FileContent<C = unknown, FK extends FilePathKind = FilePathKind.Relative, F extends Path = RelativePath> {
|
|
5936
|
+
content: C;
|
|
5937
|
+
length: number;
|
|
5938
|
+
filePathKind: FK;
|
|
5939
|
+
dir: F;
|
|
5940
|
+
charsetEncoding?: BufferEncoding;
|
|
5941
|
+
}
|
|
5942
|
+
/**
|
|
5943
|
+
* Prompt
|
|
5944
|
+
*/
|
|
5945
|
+
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> {
|
|
5946
|
+
readonly type: T;
|
|
5947
|
+
readonly yamlFrontMatter?: Y;
|
|
5948
|
+
readonly rawFrontMatter?: string;
|
|
5949
|
+
readonly markdownAst?: Root;
|
|
5950
|
+
readonly markdownContents: readonly RootContent[];
|
|
5951
|
+
readonly dir: D;
|
|
5952
|
+
}
|
|
5953
|
+
interface YAMLFrontMatter<N extends NamingCaseKind = NamingCaseKind.KebabCase> extends Record<string, unknown> {
|
|
5954
|
+
readonly namingCase: N;
|
|
5955
|
+
}
|
|
5956
|
+
/**
|
|
5957
|
+
* Series name type - used across multiple prompt types
|
|
5958
|
+
* Extracted to avoid repetition and ensure consistency
|
|
5959
|
+
*/
|
|
5960
|
+
type SeriName = string | string[] | null;
|
|
5961
|
+
interface CommonYAMLFrontMatter<N extends NamingCaseKind = NamingCaseKind.KebabCase> extends YAMLFrontMatter<N> {
|
|
5962
|
+
readonly description: string;
|
|
5963
|
+
}
|
|
5964
|
+
interface ToolAwareYAMLFrontMatter<N extends NamingCaseKind = NamingCaseKind.KebabCase> extends CommonYAMLFrontMatter<N> {
|
|
5965
|
+
readonly allowTools?: (CodingAgentTools | string)[];
|
|
5966
|
+
readonly argumentHint?: string;
|
|
5967
|
+
}
|
|
5968
|
+
/**
|
|
5969
|
+
* Memory prompt working on project root directory
|
|
5970
|
+
*/
|
|
5971
|
+
interface ProjectRootMemoryPrompt extends Prompt<PromptKind.ProjectRootMemory, YAMLFrontMatter, FilePathKind.Relative, RootPath> {
|
|
5972
|
+
readonly type: PromptKind.ProjectRootMemory;
|
|
5973
|
+
}
|
|
5974
|
+
/**
|
|
5975
|
+
* Memory prompt working on project subdirectory
|
|
5976
|
+
*/
|
|
5977
|
+
interface ProjectChildrenMemoryPrompt extends Prompt<PromptKind.ProjectChildrenMemory> {
|
|
5978
|
+
readonly type: PromptKind.ProjectChildrenMemory;
|
|
5979
|
+
readonly workingChildDirectoryPath: RelativePath;
|
|
5980
|
+
}
|
|
5981
|
+
interface SubAgentYAMLFrontMatter extends ToolAwareYAMLFrontMatter {
|
|
5982
|
+
readonly model?: string;
|
|
5983
|
+
readonly color?: ClaudeCodeCLISubAgentColors | string;
|
|
5984
|
+
readonly seriName?: SeriName;
|
|
5985
|
+
readonly scope?: RuleScope;
|
|
5986
|
+
}
|
|
5987
|
+
interface CommandYAMLFrontMatter extends ToolAwareYAMLFrontMatter {
|
|
5988
|
+
readonly seriName?: SeriName;
|
|
5989
|
+
readonly scope?: RuleScope;
|
|
5990
|
+
}
|
|
5991
|
+
/**
|
|
5992
|
+
* Base YAML front matter for all skill types
|
|
5993
|
+
*/
|
|
5994
|
+
interface SkillsYAMLFrontMatter extends CommonYAMLFrontMatter {
|
|
5995
|
+
readonly name?: string;
|
|
5996
|
+
}
|
|
5997
|
+
interface SkillYAMLFrontMatter extends SkillsYAMLFrontMatter {
|
|
5998
|
+
readonly allowTools?: (CodingAgentTools | string)[];
|
|
5999
|
+
readonly keywords?: readonly string[];
|
|
6000
|
+
readonly displayName?: string;
|
|
6001
|
+
readonly author?: string;
|
|
6002
|
+
readonly version?: string;
|
|
6003
|
+
readonly seriName?: SeriName;
|
|
6004
|
+
readonly scope?: RuleScope;
|
|
6005
|
+
}
|
|
6006
|
+
/**
|
|
6007
|
+
* Codex skill metadata field
|
|
6008
|
+
* Follows Agent Skills specification: https://agentskills.io/specification
|
|
6009
|
+
*
|
|
6010
|
+
* The metadata field is an arbitrary key-value mapping for additional metadata.
|
|
6011
|
+
* Common fields include displayName, version, author, keywords, etc.
|
|
6012
|
+
*/
|
|
6013
|
+
interface CodexSkillMetadata {
|
|
6014
|
+
readonly 'short-description'?: string;
|
|
6015
|
+
readonly 'displayName'?: string;
|
|
6016
|
+
readonly 'version'?: string;
|
|
6017
|
+
readonly 'author'?: string;
|
|
6018
|
+
readonly 'keywords'?: readonly string[];
|
|
6019
|
+
readonly 'category'?: string;
|
|
6020
|
+
readonly 'repository'?: string;
|
|
6021
|
+
readonly [key: string]: unknown;
|
|
6022
|
+
}
|
|
6023
|
+
interface CodexSkillYAMLFrontMatter extends SkillsYAMLFrontMatter {
|
|
6024
|
+
readonly 'license'?: string;
|
|
6025
|
+
readonly 'compatibility'?: string;
|
|
6026
|
+
readonly 'metadata'?: CodexSkillMetadata;
|
|
6027
|
+
readonly 'allowed-tools'?: string;
|
|
6028
|
+
}
|
|
6029
|
+
/**
|
|
6030
|
+
* Kiro steering file front matter
|
|
6031
|
+
* @see https://kiro.dev/docs/steering
|
|
6032
|
+
*/
|
|
6033
|
+
interface KiroSteeringYAMLFrontMatter extends YAMLFrontMatter {
|
|
6034
|
+
readonly inclusion?: 'always' | 'fileMatch' | 'manual';
|
|
6035
|
+
readonly fileMatchPattern?: string;
|
|
6036
|
+
}
|
|
6037
|
+
/**
|
|
6038
|
+
* Kiro Power POWER.md front matter
|
|
6039
|
+
* @see https://kiro.dev/docs/powers
|
|
6040
|
+
*/
|
|
6041
|
+
interface KiroPowerYAMLFrontMatter extends SkillsYAMLFrontMatter {
|
|
6042
|
+
readonly displayName?: string;
|
|
6043
|
+
readonly keywords?: readonly string[];
|
|
6044
|
+
readonly author?: string;
|
|
6045
|
+
}
|
|
6046
|
+
/**
|
|
6047
|
+
* Rule YAML front matter with glob patterns and scope
|
|
6048
|
+
*/
|
|
6049
|
+
interface RuleYAMLFrontMatter extends CommonYAMLFrontMatter {
|
|
6050
|
+
readonly globs: readonly string[];
|
|
6051
|
+
readonly scope?: RuleScope;
|
|
6052
|
+
readonly seriName?: SeriName;
|
|
6053
|
+
}
|
|
6054
|
+
/**
|
|
6055
|
+
* Global memory prompt
|
|
6056
|
+
* Single output target
|
|
6057
|
+
*/
|
|
6058
|
+
interface GlobalMemoryPrompt extends Prompt<PromptKind.GlobalMemory> {
|
|
6059
|
+
readonly type: PromptKind.GlobalMemory;
|
|
6060
|
+
readonly parentDirectoryPath: GlobalConfigDirectory;
|
|
6061
|
+
} //#endregion
|
|
6062
|
+
//#region src/plugins/plugin-core/InputTypes.d.ts
|
|
6063
|
+
interface Project {
|
|
6064
|
+
readonly name?: string;
|
|
6065
|
+
readonly dirFromWorkspacePath?: RelativePath;
|
|
6066
|
+
readonly rootMemoryPrompt?: ProjectRootMemoryPrompt;
|
|
6067
|
+
readonly childMemoryPrompts?: readonly ProjectChildrenMemoryPrompt[];
|
|
6068
|
+
readonly isPromptSourceProject?: boolean;
|
|
6069
|
+
readonly isWorkspaceRootProject?: boolean;
|
|
6070
|
+
readonly projectConfig?: ProjectConfig;
|
|
6071
|
+
readonly promptSeries?: AindexProjectSeriesName;
|
|
6072
|
+
}
|
|
6073
|
+
interface Workspace {
|
|
6074
|
+
readonly directory: Path;
|
|
6075
|
+
readonly projects: Project[];
|
|
6076
|
+
}
|
|
6077
|
+
/**
|
|
6078
|
+
* IDE configuration file
|
|
6079
|
+
*/
|
|
6080
|
+
interface ProjectIDEConfigFile<I extends IDEKind = IDEKind.Original> extends FileContent<string, FilePathKind, Path> {
|
|
6081
|
+
readonly type: I;
|
|
6082
|
+
}
|
|
6083
|
+
/**
|
|
6084
|
+
* AI Agent ignore configuration file
|
|
6085
|
+
*/
|
|
6086
|
+
interface AIAgentIgnoreConfigFile {
|
|
6087
|
+
readonly fileName: string;
|
|
6088
|
+
readonly content: string;
|
|
6089
|
+
readonly sourcePath?: string;
|
|
6090
|
+
}
|
|
6091
|
+
/**
|
|
6092
|
+
* Shared context fields across input aggregation and output execution.
|
|
6093
|
+
*/
|
|
6094
|
+
interface CollectedContextData {
|
|
6095
|
+
readonly workspace: Workspace;
|
|
6096
|
+
/** Flat prompt projections used by current output plugins */
|
|
6097
|
+
readonly skills?: readonly SkillPrompt[];
|
|
6098
|
+
readonly commands?: readonly CommandPrompt[];
|
|
6099
|
+
readonly subAgents?: readonly SubAgentPrompt[];
|
|
6100
|
+
readonly rules?: readonly RulePrompt[];
|
|
6101
|
+
readonly readmePrompts?: readonly ReadmePrompt[];
|
|
6102
|
+
readonly globalMemory?: GlobalMemoryPrompt;
|
|
6103
|
+
/** Other non-prompt fields */
|
|
6104
|
+
readonly vscodeConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.VSCode>[];
|
|
6105
|
+
readonly zedConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.Zed>[];
|
|
6106
|
+
readonly jetbrainsConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.IntellijIDEA>[];
|
|
6107
|
+
readonly editorConfigFiles?: readonly ProjectIDEConfigFile<IDEKind.EditorConfig>[];
|
|
6108
|
+
readonly aiAgentIgnoreConfigFiles?: readonly AIAgentIgnoreConfigFile[];
|
|
6109
|
+
readonly globalGitIgnore?: string;
|
|
6110
|
+
readonly shadowGitExclude?: string;
|
|
6111
|
+
readonly aindexDir?: string;
|
|
6112
|
+
}
|
|
6113
|
+
/**
|
|
6114
|
+
* Input-side collected context.
|
|
6115
|
+
* Built incrementally by input plugins through dependency-aware merging.
|
|
6116
|
+
*/
|
|
6117
|
+
interface InputCollectedContext extends CollectedContextData {}
|
|
6118
|
+
/**
|
|
6119
|
+
* Output-side collected context.
|
|
6120
|
+
* Produced once from input context and consumed by output plugins only.
|
|
6121
|
+
*/
|
|
6122
|
+
interface OutputCollectedContext extends CollectedContextData {}
|
|
6123
|
+
/**
|
|
6124
|
+
* Convert input context to output context boundary object.
|
|
6229
6125
|
* This keeps input and output stages decoupled while preserving data shape.
|
|
6230
6126
|
*/
|
|
6231
6127
|
declare function toOutputCollectedContext(input: InputCollectedContext): OutputCollectedContext;
|
|
@@ -6445,268 +6341,46 @@ interface ReadError {
|
|
|
6445
6341
|
readonly error: Error;
|
|
6446
6342
|
readonly phase: 'scan' | 'read' | 'compile';
|
|
6447
6343
|
} //#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 {
|
|
6344
|
+
//#region src/execution-plan.d.ts
|
|
6345
|
+
type ExecutionScope = 'workspace' | 'project' | 'external' | 'unsupported';
|
|
6346
|
+
interface ExecutionPlanProjectSummary {
|
|
6541
6347
|
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;
|
|
6348
|
+
readonly rootDir: string;
|
|
6349
|
+
readonly series?: AindexProjectSeriesName;
|
|
6638
6350
|
}
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
readonly
|
|
6351
|
+
interface ExecutionPlanProjectsBySeries {
|
|
6352
|
+
readonly app: readonly ExecutionPlanProjectSummary[];
|
|
6353
|
+
readonly ext: readonly ExecutionPlanProjectSummary[];
|
|
6354
|
+
readonly arch: readonly ExecutionPlanProjectSummary[];
|
|
6355
|
+
readonly softwares: readonly ExecutionPlanProjectSummary[];
|
|
6644
6356
|
}
|
|
6645
|
-
interface
|
|
6646
|
-
readonly
|
|
6647
|
-
readonly
|
|
6648
|
-
readonly
|
|
6649
|
-
readonly author?: string;
|
|
6650
|
-
readonly version?: string;
|
|
6651
|
-
readonly seriName?: SeriName;
|
|
6652
|
-
readonly scope?: RuleScope;
|
|
6357
|
+
interface ExecutionPlanBase {
|
|
6358
|
+
readonly cwd: string;
|
|
6359
|
+
readonly workspaceDir: string;
|
|
6360
|
+
readonly projectsBySeries: ExecutionPlanProjectsBySeries;
|
|
6653
6361
|
}
|
|
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;
|
|
6362
|
+
interface WorkspaceExecutionPlan extends ExecutionPlanBase {
|
|
6363
|
+
readonly scope: 'workspace';
|
|
6670
6364
|
}
|
|
6671
|
-
interface
|
|
6672
|
-
readonly '
|
|
6673
|
-
readonly
|
|
6674
|
-
readonly 'metadata'?: CodexSkillMetadata;
|
|
6675
|
-
readonly 'allowed-tools'?: string;
|
|
6365
|
+
interface ProjectExecutionPlan extends ExecutionPlanBase {
|
|
6366
|
+
readonly scope: 'project';
|
|
6367
|
+
readonly matchedProject: ExecutionPlanProjectSummary;
|
|
6676
6368
|
}
|
|
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;
|
|
6369
|
+
interface ExternalExecutionPlan extends ExecutionPlanBase {
|
|
6370
|
+
readonly scope: 'external';
|
|
6684
6371
|
}
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
*/
|
|
6689
|
-
interface KiroPowerYAMLFrontMatter extends SkillsYAMLFrontMatter {
|
|
6690
|
-
readonly displayName?: string;
|
|
6691
|
-
readonly keywords?: readonly string[];
|
|
6692
|
-
readonly author?: string;
|
|
6372
|
+
interface UnsupportedExecutionPlan extends ExecutionPlanBase {
|
|
6373
|
+
readonly scope: 'unsupported';
|
|
6374
|
+
readonly managedProjects: readonly ExecutionPlanProjectSummary[];
|
|
6693
6375
|
}
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
readonly globs: readonly string[];
|
|
6699
|
-
readonly scope?: RuleScope;
|
|
6700
|
-
readonly seriName?: SeriName;
|
|
6376
|
+
type ExecutionPlan = WorkspaceExecutionPlan | ProjectExecutionPlan | ExternalExecutionPlan | UnsupportedExecutionPlan;
|
|
6377
|
+
interface PathScopedEntry {
|
|
6378
|
+
readonly path: string;
|
|
6379
|
+
readonly scope?: string;
|
|
6701
6380
|
}
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
*/
|
|
6706
|
-
interface GlobalMemoryPrompt extends Prompt<PromptKind.GlobalMemory> {
|
|
6707
|
-
readonly type: PromptKind.GlobalMemory;
|
|
6708
|
-
readonly parentDirectoryPath: GlobalConfigDirectory;
|
|
6709
|
-
} //#endregion
|
|
6381
|
+
declare function createEmptyExecutionPlanProjectsBySeries(): ExecutionPlanProjectsBySeries;
|
|
6382
|
+
declare function resolveExecutionPlan(context: OutputCollectedContext, executionCwd: string): ExecutionPlan;
|
|
6383
|
+
declare function filterPathScopedEntriesForExecutionPlan<T extends PathScopedEntry>(entries: readonly T[], plan: ExecutionPlan | undefined, context: OutputCollectedContext): T[]; //#endregion
|
|
6710
6384
|
//#region src/plugins/plugin-core/ExportMetadataTypes.d.ts
|
|
6711
6385
|
/**
|
|
6712
6386
|
* Base export metadata interface
|
|
@@ -7093,6 +6767,7 @@ interface OutputPluginContext {
|
|
|
7093
6767
|
readonly collectedOutputContext: OutputCollectedContext;
|
|
7094
6768
|
readonly pluginOptions?: PluginOptions;
|
|
7095
6769
|
readonly runtimeTargets: OutputRuntimeTargets;
|
|
6770
|
+
readonly executionPlan: ExecutionPlan;
|
|
7096
6771
|
}
|
|
7097
6772
|
/**
|
|
7098
6773
|
* Context for output cleaning operations
|
|
@@ -8089,6 +7764,7 @@ interface PipelineConfig {
|
|
|
8089
7764
|
readonly context: OutputCollectedContext;
|
|
8090
7765
|
readonly outputPlugins: readonly OutputPlugin[];
|
|
8091
7766
|
readonly userConfigOptions: Required<PluginOptions>;
|
|
7767
|
+
readonly executionPlan: ExecutionPlan;
|
|
8092
7768
|
}
|
|
8093
7769
|
/**
|
|
8094
7770
|
* Convert UserConfigFile to PluginOptions
|
|
@@ -8103,6 +7779,7 @@ interface DefineConfigOptions {
|
|
|
8103
7779
|
readonly configLoaderOptions?: ConfigLoaderOptions;
|
|
8104
7780
|
readonly loadUserConfig?: boolean;
|
|
8105
7781
|
readonly cwd?: string;
|
|
7782
|
+
readonly executionCwd?: string;
|
|
8106
7783
|
readonly runtimeCommand?: RuntimeCommand;
|
|
8107
7784
|
}
|
|
8108
7785
|
/**
|
|
@@ -8158,7 +7835,6 @@ declare class ConfigLoader {
|
|
|
8158
7835
|
load(cwd?: string): MergedConfigResult;
|
|
8159
7836
|
private parseConfig;
|
|
8160
7837
|
private mergeConfigs;
|
|
8161
|
-
private mergeAindex;
|
|
8162
7838
|
private mergeOutputScopeTopics;
|
|
8163
7839
|
private mergeOutputScopeOptions;
|
|
8164
7840
|
private mergeFrontMatterOptions;
|
|
@@ -8722,6 +8398,6 @@ declare function syncWindowsConfigIntoWsl(outputPlugins: readonly OutputPlugin[]
|
|
|
8722
8398
|
//#endregion
|
|
8723
8399
|
//#region src/plugin.config.d.ts
|
|
8724
8400
|
declare function resolveRuntimeCommandFromArgv(argv?: readonly string[]): RuntimeCommand;
|
|
8725
|
-
declare function createDefaultPluginConfig(argv?: readonly string[], runtimeCommand?: RuntimeCommand): Promise<PipelineConfig>;
|
|
8401
|
+
declare function createDefaultPluginConfig(argv?: readonly string[], runtimeCommand?: RuntimeCommand, executionCwd?: string): Promise<PipelineConfig>;
|
|
8726
8402
|
//#endregion
|
|
8727
|
-
export { AIAgentIgnoreConfigFile, AINDEX_CONFIG_DIRECTORY_PAIR_KEYS, AINDEX_CONFIG_FILE_PAIR_KEYS,
|
|
8403
|
+
export { AIAgentIgnoreConfigFile, AINDEX_CONFIG_DIRECTORY_PAIR_KEYS, AINDEX_CONFIG_FILE_PAIR_KEYS, 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, 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 };
|