@agentyx/core 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +412 -93
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +700 -244
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/agentyx.schema.json +168 -0
package/dist/index.d.mts
CHANGED
|
@@ -45,6 +45,11 @@ declare class UnknownEnabledCapabilityError extends AgentyxError {
|
|
|
45
45
|
readonly knownCapabilities: readonly string[];
|
|
46
46
|
constructor(capabilityName: string, knownCapabilities: readonly string[]);
|
|
47
47
|
}
|
|
48
|
+
/** Raised when a configured local Skill directory cannot be loaded safely. */
|
|
49
|
+
declare class LocalSkillDirectoryError extends AgentyxError {
|
|
50
|
+
readonly directory: string;
|
|
51
|
+
constructor(directory: string, reason: string, options?: ErrorOptions);
|
|
52
|
+
}
|
|
48
53
|
//#endregion
|
|
49
54
|
//#region src/config/json-schema.d.ts
|
|
50
55
|
/** Canonical identifier of the published `.agentyx.json` schema. */
|
|
@@ -66,12 +71,93 @@ declare function buildAgentyxConfigJsonSchema(): Record<string, unknown>;
|
|
|
66
71
|
*/
|
|
67
72
|
declare const agentyxTargetSchema: z.ZodString;
|
|
68
73
|
declare const enabledCapabilityNameSchema: z.ZodString;
|
|
74
|
+
/**
|
|
75
|
+
* Portable project-relative path to a directory whose direct children are Agent Skills.
|
|
76
|
+
* Backslashes, absolute paths and parent traversal are rejected so the same config is safe on
|
|
77
|
+
* every supported platform.
|
|
78
|
+
*/
|
|
79
|
+
declare const skillDirectorySchema: z.ZodString;
|
|
69
80
|
/** The `.agentyx.json` project configuration. */
|
|
70
81
|
declare const agentyxConfigSchema: z.ZodObject<{
|
|
71
82
|
$schema: z.ZodOptional<z.ZodString>;
|
|
72
83
|
packs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
73
84
|
enable: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
74
85
|
targets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
86
|
+
skillDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
|
+
localPacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
90
|
+
engineering: "engineering";
|
|
91
|
+
language: "language";
|
|
92
|
+
framework: "framework";
|
|
93
|
+
efficiency: "efficiency";
|
|
94
|
+
workflow: "workflow";
|
|
95
|
+
}>>;
|
|
96
|
+
description: z.ZodOptional<z.ZodString>;
|
|
97
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
98
|
+
mcpServers: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
activation: z.ZodDefault<z.ZodEnum<{
|
|
101
|
+
default: "default";
|
|
102
|
+
optional: "optional";
|
|
103
|
+
}>>;
|
|
104
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
105
|
+
name: string;
|
|
106
|
+
activation: "default" | "optional";
|
|
107
|
+
}, string | {
|
|
108
|
+
name: string;
|
|
109
|
+
activation: "default" | "optional";
|
|
110
|
+
}>>, z.ZodObject<{
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
activation: z.ZodEnum<{
|
|
113
|
+
default: "default";
|
|
114
|
+
optional: "optional";
|
|
115
|
+
}>;
|
|
116
|
+
}, z.core.$strict>>>>;
|
|
117
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
activation: z.ZodDefault<z.ZodEnum<{
|
|
120
|
+
default: "default";
|
|
121
|
+
optional: "optional";
|
|
122
|
+
}>>;
|
|
123
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
124
|
+
name: string;
|
|
125
|
+
activation: "default" | "optional";
|
|
126
|
+
}, string | {
|
|
127
|
+
name: string;
|
|
128
|
+
activation: "default" | "optional";
|
|
129
|
+
}>>, z.ZodObject<{
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
activation: z.ZodEnum<{
|
|
132
|
+
default: "default";
|
|
133
|
+
optional: "optional";
|
|
134
|
+
}>;
|
|
135
|
+
}, z.core.$strict>>>>;
|
|
136
|
+
hooks: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
activation: z.ZodDefault<z.ZodEnum<{
|
|
139
|
+
default: "default";
|
|
140
|
+
optional: "optional";
|
|
141
|
+
}>>;
|
|
142
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
143
|
+
name: string;
|
|
144
|
+
activation: "default" | "optional";
|
|
145
|
+
}, string | {
|
|
146
|
+
name: string;
|
|
147
|
+
activation: "default" | "optional";
|
|
148
|
+
}>>, z.ZodObject<{
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
activation: z.ZodEnum<{
|
|
151
|
+
default: "default";
|
|
152
|
+
optional: "optional";
|
|
153
|
+
}>;
|
|
154
|
+
}, z.core.$strict>>>>;
|
|
155
|
+
}, z.core.$strict>>>;
|
|
156
|
+
trustedSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
path: z.ZodString;
|
|
159
|
+
ref: z.ZodString;
|
|
160
|
+
}, z.core.$strict>>>;
|
|
75
161
|
}, z.core.$strict>;
|
|
76
162
|
/** A validated configuration, with defaults applied. */
|
|
77
163
|
type AgentyxConfig = z.infer<typeof agentyxConfigSchema>;
|
|
@@ -100,95 +186,6 @@ declare function parseAgentyxConfig(value: unknown, filePath?: string): AgentyxC
|
|
|
100
186
|
*/
|
|
101
187
|
declare function loadAgentyxConfig(projectPath?: string): Promise<AgentyxConfig>;
|
|
102
188
|
//#endregion
|
|
103
|
-
//#region src/mcp/schema.d.ts
|
|
104
|
-
declare const MCP_CAPABILITY_LEVELS: readonly ["default", "optional"];
|
|
105
|
-
declare const mcpCapabilityLevelSchema: z.ZodEnum<{
|
|
106
|
-
default: "default";
|
|
107
|
-
optional: "optional";
|
|
108
|
-
}>;
|
|
109
|
-
declare const MCP_CONTEXT_COSTS: readonly ["low", "medium", "high"];
|
|
110
|
-
declare const mcpContextCostSchema: z.ZodEnum<{
|
|
111
|
-
low: "low";
|
|
112
|
-
medium: "medium";
|
|
113
|
-
high: "high";
|
|
114
|
-
}>;
|
|
115
|
-
declare const mcpEnvReferenceSchema: z.ZodObject<{
|
|
116
|
-
fromEnv: z.ZodString;
|
|
117
|
-
}, z.core.$strict>;
|
|
118
|
-
declare const mcpServerReferenceSchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
119
|
-
name: z.ZodString;
|
|
120
|
-
activation: z.ZodDefault<z.ZodEnum<{
|
|
121
|
-
default: "default";
|
|
122
|
-
optional: "optional";
|
|
123
|
-
}>>;
|
|
124
|
-
}, z.core.$strict>]>, z.ZodTransform<{
|
|
125
|
-
name: string;
|
|
126
|
-
activation: "default" | "optional";
|
|
127
|
-
}, string | {
|
|
128
|
-
name: string;
|
|
129
|
-
activation: "default" | "optional";
|
|
130
|
-
}>>, z.ZodObject<{
|
|
131
|
-
name: z.ZodString;
|
|
132
|
-
activation: z.ZodEnum<{
|
|
133
|
-
default: "default";
|
|
134
|
-
optional: "optional";
|
|
135
|
-
}>;
|
|
136
|
-
}, z.core.$strict>>;
|
|
137
|
-
declare const mcpServerDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
|
-
name: z.ZodString;
|
|
139
|
-
description: z.ZodString;
|
|
140
|
-
contextCost: z.ZodOptional<z.ZodEnum<{
|
|
141
|
-
low: "low";
|
|
142
|
-
medium: "medium";
|
|
143
|
-
high: "high";
|
|
144
|
-
}>>;
|
|
145
|
-
transport: z.ZodLiteral<"stdio">;
|
|
146
|
-
command: z.ZodString;
|
|
147
|
-
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
148
|
-
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
149
|
-
fromEnv: z.ZodString;
|
|
150
|
-
}, z.core.$strict>>>;
|
|
151
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
-
name: z.ZodString;
|
|
153
|
-
description: z.ZodString;
|
|
154
|
-
contextCost: z.ZodOptional<z.ZodEnum<{
|
|
155
|
-
low: "low";
|
|
156
|
-
medium: "medium";
|
|
157
|
-
high: "high";
|
|
158
|
-
}>>;
|
|
159
|
-
transport: z.ZodLiteral<"http">;
|
|
160
|
-
url: z.ZodURL;
|
|
161
|
-
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
162
|
-
fromEnv: z.ZodString;
|
|
163
|
-
}, z.core.$strict>>>;
|
|
164
|
-
}, z.core.$strict>], "transport">;
|
|
165
|
-
type McpEnvReference = z.infer<typeof mcpEnvReferenceSchema>;
|
|
166
|
-
type McpCapabilityLevel = z.infer<typeof mcpCapabilityLevelSchema>;
|
|
167
|
-
type McpContextCost = z.infer<typeof mcpContextCostSchema>;
|
|
168
|
-
type McpServerDefinition = z.infer<typeof mcpServerDefinitionSchema>;
|
|
169
|
-
type McpServerDefinitionInput = z.input<typeof mcpServerDefinitionSchema>;
|
|
170
|
-
type McpServerReference = z.infer<typeof mcpServerReferenceSchema>;
|
|
171
|
-
type McpServerReferenceInput = z.input<typeof mcpServerReferenceSchema>;
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region src/mcp/registry.d.ts
|
|
174
|
-
interface McpServerSource {
|
|
175
|
-
readonly name: string;
|
|
176
|
-
load(): McpServerDefinitionInput;
|
|
177
|
-
}
|
|
178
|
-
interface McpServerMetadata {
|
|
179
|
-
readonly name: string;
|
|
180
|
-
readonly description: string;
|
|
181
|
-
readonly transport: McpServerDefinition["transport"];
|
|
182
|
-
readonly contextCost?: McpServerDefinition["contextCost"];
|
|
183
|
-
}
|
|
184
|
-
interface McpServerRegistry {
|
|
185
|
-
readonly names: readonly string[];
|
|
186
|
-
has(name: string): boolean;
|
|
187
|
-
listMetadata(): readonly McpServerMetadata[];
|
|
188
|
-
get(name: string): McpServerDefinition;
|
|
189
|
-
}
|
|
190
|
-
declare function createMcpServerRegistry(sources: Iterable<McpServerSource>): McpServerRegistry;
|
|
191
|
-
//#endregion
|
|
192
189
|
//#region src/pack/schema.d.ts
|
|
193
190
|
declare const PACK_CATEGORIES: readonly ["engineering", "language", "framework", "efficiency", "workflow"];
|
|
194
191
|
declare const packCategorySchema: z.ZodEnum<{
|
|
@@ -253,6 +250,25 @@ declare const packDefinitionSchema: z.ZodObject<{
|
|
|
253
250
|
optional: "optional";
|
|
254
251
|
}>;
|
|
255
252
|
}, z.core.$strict>>>>;
|
|
253
|
+
hooks: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
254
|
+
name: z.ZodString;
|
|
255
|
+
activation: z.ZodDefault<z.ZodEnum<{
|
|
256
|
+
default: "default";
|
|
257
|
+
optional: "optional";
|
|
258
|
+
}>>;
|
|
259
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
260
|
+
name: string;
|
|
261
|
+
activation: "default" | "optional";
|
|
262
|
+
}, string | {
|
|
263
|
+
name: string;
|
|
264
|
+
activation: "default" | "optional";
|
|
265
|
+
}>>, z.ZodObject<{
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
activation: z.ZodEnum<{
|
|
268
|
+
default: "default";
|
|
269
|
+
optional: "optional";
|
|
270
|
+
}>;
|
|
271
|
+
}, z.core.$strict>>>>;
|
|
256
272
|
}, z.core.$strict>;
|
|
257
273
|
/** A validated pack definition, with defaults always present. */
|
|
258
274
|
type PackDefinition = z.infer<typeof packDefinitionSchema>;
|
|
@@ -330,6 +346,175 @@ interface SkillRegistry {
|
|
|
330
346
|
*/
|
|
331
347
|
declare function createSkillRegistry(sources: Iterable<SkillSource>): SkillRegistry;
|
|
332
348
|
//#endregion
|
|
349
|
+
//#region src/config/project.d.ts
|
|
350
|
+
/** A validated project configuration plus the registries it owns. */
|
|
351
|
+
interface AgentyxProject {
|
|
352
|
+
readonly config: AgentyxConfig;
|
|
353
|
+
readonly packRegistry: PackRegistry;
|
|
354
|
+
readonly skillRegistry: SkillRegistry;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Loads `.agentyx.json` and any checked-in Agent Skills it declares.
|
|
358
|
+
*
|
|
359
|
+
* A Skill root contains one directory per Skill, each with a `SKILL.md`. Roots must resolve inside
|
|
360
|
+
* the project even through symlinks. Loading is local-only: this function never clones a repository
|
|
361
|
+
* or accesses the network.
|
|
362
|
+
*/
|
|
363
|
+
declare function loadAgentyxProject(projectPath?: string): Promise<AgentyxProject>;
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/hook/schema.d.ts
|
|
366
|
+
declare const HOOK_ACTIVATION_LEVELS: readonly ["default", "optional"];
|
|
367
|
+
declare const hookActivationLevelSchema: z.ZodEnum<{
|
|
368
|
+
default: "default";
|
|
369
|
+
optional: "optional";
|
|
370
|
+
}>;
|
|
371
|
+
declare const HOOK_EVENTS: readonly ["SessionStart"];
|
|
372
|
+
declare const hookEventSchema: z.ZodEnum<{
|
|
373
|
+
SessionStart: "SessionStart";
|
|
374
|
+
}>;
|
|
375
|
+
declare const hookNameSchema: z.ZodString;
|
|
376
|
+
declare const hookDefinitionSchema: z.ZodObject<{
|
|
377
|
+
name: z.ZodString;
|
|
378
|
+
description: z.ZodString;
|
|
379
|
+
event: z.ZodEnum<{
|
|
380
|
+
SessionStart: "SessionStart";
|
|
381
|
+
}>;
|
|
382
|
+
command: z.ZodString;
|
|
383
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
384
|
+
}, z.core.$strict>;
|
|
385
|
+
declare const hookReferenceSchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
386
|
+
name: z.ZodString;
|
|
387
|
+
activation: z.ZodDefault<z.ZodEnum<{
|
|
388
|
+
default: "default";
|
|
389
|
+
optional: "optional";
|
|
390
|
+
}>>;
|
|
391
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
392
|
+
name: string;
|
|
393
|
+
activation: "default" | "optional";
|
|
394
|
+
}, string | {
|
|
395
|
+
name: string;
|
|
396
|
+
activation: "default" | "optional";
|
|
397
|
+
}>>, z.ZodObject<{
|
|
398
|
+
name: z.ZodString;
|
|
399
|
+
activation: z.ZodEnum<{
|
|
400
|
+
default: "default";
|
|
401
|
+
optional: "optional";
|
|
402
|
+
}>;
|
|
403
|
+
}, z.core.$strict>>;
|
|
404
|
+
type HookActivationLevel = z.infer<typeof hookActivationLevelSchema>;
|
|
405
|
+
type HookEvent = z.infer<typeof hookEventSchema>;
|
|
406
|
+
type HookDefinition = z.infer<typeof hookDefinitionSchema>;
|
|
407
|
+
type HookDefinitionInput = z.input<typeof hookDefinitionSchema>;
|
|
408
|
+
type HookReference = z.infer<typeof hookReferenceSchema>;
|
|
409
|
+
type HookReferenceInput = z.input<typeof hookReferenceSchema>;
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region src/hook/registry.d.ts
|
|
412
|
+
interface HookSource {
|
|
413
|
+
readonly name: string;
|
|
414
|
+
load(): HookDefinitionInput;
|
|
415
|
+
}
|
|
416
|
+
interface HookMetadata {
|
|
417
|
+
readonly name: string;
|
|
418
|
+
readonly description: string;
|
|
419
|
+
readonly event: HookDefinition["event"];
|
|
420
|
+
}
|
|
421
|
+
interface HookRegistry {
|
|
422
|
+
readonly names: readonly string[];
|
|
423
|
+
has(name: string): boolean;
|
|
424
|
+
listMetadata(): readonly HookMetadata[];
|
|
425
|
+
get(name: string): HookDefinition;
|
|
426
|
+
}
|
|
427
|
+
declare function createHookRegistry(sources: Iterable<HookSource>): HookRegistry;
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/mcp/schema.d.ts
|
|
430
|
+
declare const MCP_CAPABILITY_LEVELS: readonly ["default", "optional"];
|
|
431
|
+
declare const mcpCapabilityLevelSchema: z.ZodEnum<{
|
|
432
|
+
default: "default";
|
|
433
|
+
optional: "optional";
|
|
434
|
+
}>;
|
|
435
|
+
declare const MCP_CONTEXT_COSTS: readonly ["low", "medium", "high"];
|
|
436
|
+
declare const mcpContextCostSchema: z.ZodEnum<{
|
|
437
|
+
low: "low";
|
|
438
|
+
medium: "medium";
|
|
439
|
+
high: "high";
|
|
440
|
+
}>;
|
|
441
|
+
declare const mcpEnvReferenceSchema: z.ZodObject<{
|
|
442
|
+
fromEnv: z.ZodString;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
declare const mcpServerReferenceSchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
445
|
+
name: z.ZodString;
|
|
446
|
+
activation: z.ZodDefault<z.ZodEnum<{
|
|
447
|
+
default: "default";
|
|
448
|
+
optional: "optional";
|
|
449
|
+
}>>;
|
|
450
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
451
|
+
name: string;
|
|
452
|
+
activation: "default" | "optional";
|
|
453
|
+
}, string | {
|
|
454
|
+
name: string;
|
|
455
|
+
activation: "default" | "optional";
|
|
456
|
+
}>>, z.ZodObject<{
|
|
457
|
+
name: z.ZodString;
|
|
458
|
+
activation: z.ZodEnum<{
|
|
459
|
+
default: "default";
|
|
460
|
+
optional: "optional";
|
|
461
|
+
}>;
|
|
462
|
+
}, z.core.$strict>>;
|
|
463
|
+
declare const mcpServerDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
464
|
+
name: z.ZodString;
|
|
465
|
+
description: z.ZodString;
|
|
466
|
+
contextCost: z.ZodOptional<z.ZodEnum<{
|
|
467
|
+
low: "low";
|
|
468
|
+
medium: "medium";
|
|
469
|
+
high: "high";
|
|
470
|
+
}>>;
|
|
471
|
+
transport: z.ZodLiteral<"stdio">;
|
|
472
|
+
command: z.ZodString;
|
|
473
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
474
|
+
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
475
|
+
fromEnv: z.ZodString;
|
|
476
|
+
}, z.core.$strict>>>;
|
|
477
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
478
|
+
name: z.ZodString;
|
|
479
|
+
description: z.ZodString;
|
|
480
|
+
contextCost: z.ZodOptional<z.ZodEnum<{
|
|
481
|
+
low: "low";
|
|
482
|
+
medium: "medium";
|
|
483
|
+
high: "high";
|
|
484
|
+
}>>;
|
|
485
|
+
transport: z.ZodLiteral<"http">;
|
|
486
|
+
url: z.ZodURL;
|
|
487
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
488
|
+
fromEnv: z.ZodString;
|
|
489
|
+
}, z.core.$strict>>>;
|
|
490
|
+
}, z.core.$strict>], "transport">;
|
|
491
|
+
type McpEnvReference = z.infer<typeof mcpEnvReferenceSchema>;
|
|
492
|
+
type McpCapabilityLevel = z.infer<typeof mcpCapabilityLevelSchema>;
|
|
493
|
+
type McpContextCost = z.infer<typeof mcpContextCostSchema>;
|
|
494
|
+
type McpServerDefinition = z.infer<typeof mcpServerDefinitionSchema>;
|
|
495
|
+
type McpServerDefinitionInput = z.input<typeof mcpServerDefinitionSchema>;
|
|
496
|
+
type McpServerReference = z.infer<typeof mcpServerReferenceSchema>;
|
|
497
|
+
type McpServerReferenceInput = z.input<typeof mcpServerReferenceSchema>;
|
|
498
|
+
//#endregion
|
|
499
|
+
//#region src/mcp/registry.d.ts
|
|
500
|
+
interface McpServerSource {
|
|
501
|
+
readonly name: string;
|
|
502
|
+
load(): McpServerDefinitionInput;
|
|
503
|
+
}
|
|
504
|
+
interface McpServerMetadata {
|
|
505
|
+
readonly name: string;
|
|
506
|
+
readonly description: string;
|
|
507
|
+
readonly transport: McpServerDefinition["transport"];
|
|
508
|
+
readonly contextCost?: McpServerDefinition["contextCost"];
|
|
509
|
+
}
|
|
510
|
+
interface McpServerRegistry {
|
|
511
|
+
readonly names: readonly string[];
|
|
512
|
+
has(name: string): boolean;
|
|
513
|
+
listMetadata(): readonly McpServerMetadata[];
|
|
514
|
+
get(name: string): McpServerDefinition;
|
|
515
|
+
}
|
|
516
|
+
declare function createMcpServerRegistry(sources: Iterable<McpServerSource>): McpServerRegistry;
|
|
517
|
+
//#endregion
|
|
333
518
|
//#region src/tool/schema.d.ts
|
|
334
519
|
declare const TOOL_ACTIVATION_LEVELS: readonly ["default", "optional"];
|
|
335
520
|
declare const toolActivationLevelSchema: z.ZodEnum<{
|
|
@@ -391,7 +576,7 @@ interface ToolRegistry {
|
|
|
391
576
|
declare function createToolRegistry(sources: Iterable<ToolSource>): ToolRegistry;
|
|
392
577
|
//#endregion
|
|
393
578
|
//#region src/config/resolver.d.ts
|
|
394
|
-
/** A project configuration with its
|
|
579
|
+
/** A project configuration with its selected packs resolved. */
|
|
395
580
|
interface ResolvedAgentyxConfig {
|
|
396
581
|
/** The packs the project asked for, in configuration order. */
|
|
397
582
|
readonly requestedPacks: readonly string[];
|
|
@@ -406,6 +591,8 @@ interface ResolvedAgentyxConfig {
|
|
|
406
591
|
readonly mcpServers: readonly string[];
|
|
407
592
|
readonly declaredTools: readonly ToolReference[];
|
|
408
593
|
readonly tools: readonly string[];
|
|
594
|
+
readonly declaredHooks: readonly HookReference[];
|
|
595
|
+
readonly hooks: readonly string[];
|
|
409
596
|
readonly enabled: readonly string[];
|
|
410
597
|
readonly targets: readonly string[];
|
|
411
598
|
}
|
|
@@ -414,10 +601,37 @@ interface ResolvedAgentyxConfig {
|
|
|
414
601
|
* The input is never mutated.
|
|
415
602
|
*
|
|
416
603
|
* @throws {UnknownPackError} when a configured pack is missing.
|
|
417
|
-
* @throws {CircularPackDependencyError} when inheritance forms a cycle.
|
|
418
604
|
* @throws {UnknownSkillError} when a pack references an unknown skill.
|
|
419
605
|
*/
|
|
420
|
-
declare function resolveAgentyxConfig(config: AgentyxConfig, registry?: PackRegistry, skillRegistry?: SkillRegistry, mcpRegistry?: McpServerRegistry, toolRegistry?: ToolRegistry): ResolvedAgentyxConfig;
|
|
606
|
+
declare function resolveAgentyxConfig(config: AgentyxConfig, registry?: PackRegistry, skillRegistry?: SkillRegistry, mcpRegistry?: McpServerRegistry, toolRegistry?: ToolRegistry, hookRegistry?: HookRegistry): ResolvedAgentyxConfig;
|
|
607
|
+
//#endregion
|
|
608
|
+
//#region src/hook/built-in.d.ts
|
|
609
|
+
declare const builtInHookRegistry: HookRegistry;
|
|
610
|
+
declare const builtInHookNames: readonly string[];
|
|
611
|
+
//#endregion
|
|
612
|
+
//#region src/hook/errors.d.ts
|
|
613
|
+
declare class UnknownHookError extends AgentyxError {
|
|
614
|
+
readonly hookName: string;
|
|
615
|
+
readonly requiredBy: string | undefined;
|
|
616
|
+
readonly knownHooks: readonly string[];
|
|
617
|
+
constructor(hookName: string, requiredBy: string | undefined, knownHooks: readonly string[]);
|
|
618
|
+
}
|
|
619
|
+
declare class DuplicateHookError extends AgentyxError {
|
|
620
|
+
readonly hookName: string;
|
|
621
|
+
constructor(hookName: string);
|
|
622
|
+
}
|
|
623
|
+
declare class InvalidHookError extends AgentyxError {
|
|
624
|
+
readonly origin: string;
|
|
625
|
+
readonly reason: string;
|
|
626
|
+
constructor(origin: string, reason: string | ZodError, options?: ErrorOptions);
|
|
627
|
+
}
|
|
628
|
+
//#endregion
|
|
629
|
+
//#region src/hook/resolver.d.ts
|
|
630
|
+
declare function collectPackHookReferences(resolvedPacks: readonly string[], packRegistry: PackRegistry, hookRegistry: HookRegistry): HookReference[];
|
|
631
|
+
declare function filterEffectiveHooks(hooks: readonly HookReference[], enabledCapabilities: readonly string[]): string[];
|
|
632
|
+
declare function collectPackHooks(resolvedPacks: readonly string[], packRegistry: PackRegistry, hookRegistry: HookRegistry, enabledCapabilities?: readonly string[]): string[];
|
|
633
|
+
declare function resolvePackHookReferences(requestedPacks: readonly string[], packRegistry?: PackRegistry, hookRegistry?: HookRegistry): HookReference[];
|
|
634
|
+
declare function resolvePackHooks(requestedPacks: readonly string[], packRegistry?: PackRegistry, hookRegistry?: HookRegistry, enabledCapabilities?: readonly string[]): string[];
|
|
421
635
|
//#endregion
|
|
422
636
|
//#region src/manifest/errors.d.ts
|
|
423
637
|
/** Raised when `.agentyx.lock.json` is not valid JSON. */
|
|
@@ -472,6 +686,21 @@ declare const mcpManifestEntrySchema: z.ZodObject<{
|
|
|
472
686
|
hash: z.ZodString;
|
|
473
687
|
created: z.ZodBoolean;
|
|
474
688
|
}, z.core.$strict>;
|
|
689
|
+
/**
|
|
690
|
+
* A provider hook configuration file Agentyx contributed entries to.
|
|
691
|
+
*
|
|
692
|
+
* Shares the `mcp` entry's shape and rationale: the file is shared with the
|
|
693
|
+
* user, so the entry records the hook names Agentyx added rather than
|
|
694
|
+
* claiming the whole document.
|
|
695
|
+
*/
|
|
696
|
+
declare const hookManifestEntrySchema: z.ZodObject<{
|
|
697
|
+
kind: z.ZodLiteral<"hook">;
|
|
698
|
+
path: z.ZodString;
|
|
699
|
+
hooks: z.ZodArray<z.ZodString>;
|
|
700
|
+
targets: z.ZodArray<z.ZodString>;
|
|
701
|
+
hash: z.ZodString;
|
|
702
|
+
created: z.ZodBoolean;
|
|
703
|
+
}, z.core.$strict>;
|
|
475
704
|
declare const installManifestEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
476
705
|
kind: z.ZodLiteral<"skill">;
|
|
477
706
|
path: z.ZodString;
|
|
@@ -485,6 +714,13 @@ declare const installManifestEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
485
714
|
targets: z.ZodArray<z.ZodString>;
|
|
486
715
|
hash: z.ZodString;
|
|
487
716
|
created: z.ZodBoolean;
|
|
717
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
718
|
+
kind: z.ZodLiteral<"hook">;
|
|
719
|
+
path: z.ZodString;
|
|
720
|
+
hooks: z.ZodArray<z.ZodString>;
|
|
721
|
+
targets: z.ZodArray<z.ZodString>;
|
|
722
|
+
hash: z.ZodString;
|
|
723
|
+
created: z.ZodBoolean;
|
|
488
724
|
}, z.core.$strict>], "kind">;
|
|
489
725
|
/** The `.agentyx.lock.json` record of everything Agentyx installed into a project. */
|
|
490
726
|
declare const installManifestSchema: z.ZodObject<{
|
|
@@ -502,10 +738,18 @@ declare const installManifestSchema: z.ZodObject<{
|
|
|
502
738
|
targets: z.ZodArray<z.ZodString>;
|
|
503
739
|
hash: z.ZodString;
|
|
504
740
|
created: z.ZodBoolean;
|
|
741
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
742
|
+
kind: z.ZodLiteral<"hook">;
|
|
743
|
+
path: z.ZodString;
|
|
744
|
+
hooks: z.ZodArray<z.ZodString>;
|
|
745
|
+
targets: z.ZodArray<z.ZodString>;
|
|
746
|
+
hash: z.ZodString;
|
|
747
|
+
created: z.ZodBoolean;
|
|
505
748
|
}, z.core.$strict>], "kind">>>;
|
|
506
749
|
}, z.core.$strict>;
|
|
507
750
|
type SkillManifestEntry = z.infer<typeof skillManifestEntrySchema>;
|
|
508
751
|
type McpManifestEntry = z.infer<typeof mcpManifestEntrySchema>;
|
|
752
|
+
type HookManifestEntry = z.infer<typeof hookManifestEntrySchema>;
|
|
509
753
|
type InstallManifestEntry = z.infer<typeof installManifestEntrySchema>;
|
|
510
754
|
/** A validated manifest, with defaults applied. */
|
|
511
755
|
type InstallManifest = z.infer<typeof installManifestSchema>;
|
|
@@ -753,6 +997,81 @@ declare function formatSkillMarkdown(skill: SkillDefinitionInput): string;
|
|
|
753
997
|
*/
|
|
754
998
|
declare function resolvePackSkills(requestedPacks: readonly string[], packRegistry?: PackRegistry, skillRegistry?: SkillRegistry): string[];
|
|
755
999
|
//#endregion
|
|
1000
|
+
//#region src/source/errors.d.ts
|
|
1001
|
+
declare class DuplicateTrustedSourceError extends AgentyxError {
|
|
1002
|
+
readonly sourceName: string;
|
|
1003
|
+
constructor(sourceName: string);
|
|
1004
|
+
}
|
|
1005
|
+
declare class UnknownTrustedSourceError extends AgentyxError {
|
|
1006
|
+
readonly sourceName: string;
|
|
1007
|
+
readonly knownSources: readonly string[];
|
|
1008
|
+
constructor(sourceName: string, knownSources: readonly string[]);
|
|
1009
|
+
}
|
|
1010
|
+
declare class TrustedSourceLoadError extends AgentyxError {
|
|
1011
|
+
readonly sourceName: string;
|
|
1012
|
+
constructor(sourceName: string, reason: string, options?: ErrorOptions);
|
|
1013
|
+
}
|
|
1014
|
+
//#endregion
|
|
1015
|
+
//#region src/source/schema.d.ts
|
|
1016
|
+
declare const trustedSourceNameSchema: z.ZodString;
|
|
1017
|
+
declare const trustedSourcePathSchema: z.ZodString;
|
|
1018
|
+
declare const trustedSourceReferenceSchema: z.ZodObject<{
|
|
1019
|
+
name: z.ZodString;
|
|
1020
|
+
path: z.ZodString;
|
|
1021
|
+
ref: z.ZodString;
|
|
1022
|
+
}, z.core.$strict>;
|
|
1023
|
+
declare const trustedSourceDefinitionSchema: z.ZodObject<{
|
|
1024
|
+
name: z.ZodString;
|
|
1025
|
+
displayName: z.ZodString;
|
|
1026
|
+
repository: z.ZodString;
|
|
1027
|
+
type: z.ZodLiteral<"codex-plugin">;
|
|
1028
|
+
manifestPath: z.ZodString;
|
|
1029
|
+
recommendedPath: z.ZodString;
|
|
1030
|
+
description: z.ZodString;
|
|
1031
|
+
installStatus: z.ZodEnum<{
|
|
1032
|
+
"metadata-only": "metadata-only";
|
|
1033
|
+
installable: "installable";
|
|
1034
|
+
}>;
|
|
1035
|
+
installNote: z.ZodString;
|
|
1036
|
+
}, z.core.$strict>;
|
|
1037
|
+
declare const codexPluginManifestSchema: z.ZodObject<{
|
|
1038
|
+
name: z.ZodString;
|
|
1039
|
+
version: z.ZodString;
|
|
1040
|
+
description: z.ZodString;
|
|
1041
|
+
repository: z.ZodString;
|
|
1042
|
+
license: z.ZodString;
|
|
1043
|
+
skills: z.ZodString;
|
|
1044
|
+
}, z.core.$loose>;
|
|
1045
|
+
declare const trustedSourceSkillSummarySchema: z.ZodObject<{
|
|
1046
|
+
name: z.ZodString;
|
|
1047
|
+
description: z.ZodString;
|
|
1048
|
+
hasResources: z.ZodBoolean;
|
|
1049
|
+
}, z.core.$strict>;
|
|
1050
|
+
type TrustedSourceReference = z.infer<typeof trustedSourceReferenceSchema>;
|
|
1051
|
+
type TrustedSourceDefinition = z.infer<typeof trustedSourceDefinitionSchema>;
|
|
1052
|
+
type CodexPluginManifest = z.infer<typeof codexPluginManifestSchema>;
|
|
1053
|
+
type TrustedSourceSkillSummary = z.infer<typeof trustedSourceSkillSummarySchema>;
|
|
1054
|
+
//#endregion
|
|
1055
|
+
//#region src/source/inspection.d.ts
|
|
1056
|
+
interface TrustedSourceInspection {
|
|
1057
|
+
readonly definition: TrustedSourceDefinition;
|
|
1058
|
+
readonly reference: TrustedSourceReference;
|
|
1059
|
+
readonly rootPath: string;
|
|
1060
|
+
readonly manifest: CodexPluginManifest;
|
|
1061
|
+
readonly skillsPath: string;
|
|
1062
|
+
readonly skills: readonly TrustedSourceSkillSummary[];
|
|
1063
|
+
readonly installable: boolean;
|
|
1064
|
+
readonly installNote: string;
|
|
1065
|
+
}
|
|
1066
|
+
declare function inspectTrustedSource(projectPath: string, reference: TrustedSourceReference): Promise<TrustedSourceInspection>;
|
|
1067
|
+
//#endregion
|
|
1068
|
+
//#region src/source/registry.d.ts
|
|
1069
|
+
type TrustedSourceRegistry = ReadonlyMap<string, TrustedSourceDefinition>;
|
|
1070
|
+
declare const knownTrustedSources: readonly TrustedSourceDefinition[];
|
|
1071
|
+
declare const knownTrustedSourceRegistry: TrustedSourceRegistry;
|
|
1072
|
+
declare function createTrustedSourceRegistry(definitions: Iterable<TrustedSourceDefinition>): TrustedSourceRegistry;
|
|
1073
|
+
declare function getTrustedSourceDefinition(source: string | TrustedSourceReference, registry?: TrustedSourceRegistry): TrustedSourceDefinition;
|
|
1074
|
+
//#endregion
|
|
756
1075
|
//#region src/tool/built-in.d.ts
|
|
757
1076
|
declare const builtInToolRegistry: ToolRegistry;
|
|
758
1077
|
declare const builtInToolNames: readonly string[];
|
|
@@ -778,5 +1097,5 @@ declare function filterEffectiveTools(tools: readonly ToolReference[], enabledCa
|
|
|
778
1097
|
declare function resolvePackToolReferences(requestedPacks: readonly string[], packRegistry?: PackRegistry, toolRegistry?: ToolRegistry): ToolReference[];
|
|
779
1098
|
declare function resolvePackTools(requestedPacks: readonly string[], packRegistry?: PackRegistry, toolRegistry?: ToolRegistry, enabledCapabilities?: readonly string[]): string[];
|
|
780
1099
|
//#endregion
|
|
781
|
-
export { AGENTYX_CONFIG_FILENAME, AGENTYX_CONFIG_SCHEMA_ID, AGENTYX_MANIFEST_FILENAME, type AgentyxConfig, type AgentyxConfigInput, type AgentyxConfigIssue, AgentyxConfigNotFoundError, AgentyxConfigParseError, AgentyxConfigValidationError, AgentyxError, type AgentyxIssue, AgentyxManifestParseError, AgentyxManifestValidationError, CircularPackDependencyError, DuplicateMcpServerError, DuplicatePackError, DuplicateSkillError, DuplicateToolError, INSTALL_MANIFEST_VERSION, type InstallManifest, type InstallManifestEntry, type InstallManifestInput, InvalidMcpServerError, InvalidSkillError, InvalidToolError, MCP_CAPABILITY_LEVELS, MCP_CONTEXT_COSTS, type McpCapabilityLevel, type McpContextCost, type McpEnvReference, type McpManifestEntry, type McpServerDefinition, type McpServerDefinitionInput, type McpServerMetadata, type McpServerReference, type McpServerReferenceInput, type McpServerRegistry, type McpServerSource, PACKAGE_MANAGERS, PACK_CATEGORIES, type PackCategory, type PackDefinition, type PackDefinitionInput, type PackRegistry, type PackageManagerDetection, type PackageManagerName, type ProjectDetection, type ProjectPackageJsonDetection, type ResolvedAgentyxConfig, type SkillDefinition, type SkillDefinitionInput, type SkillManifestEntry, type SkillRegistry, type SkillSource, TOOL_ACTIVATION_LEVELS, type ToolActivationLevel, type ToolDefinition, type ToolDefinitionInput, type ToolMetadata, type ToolReference, type ToolReferenceInput, type ToolRegistry, type ToolSource, UnknownEnabledCapabilityError, UnknownMcpServerError, UnknownPackError, UnknownSkillError, UnknownToolError, agentyxConfigPath, agentyxConfigSchema, agentyxCoreName, agentyxManifestPath, agentyxTargetSchema, buildAgentyxConfig, buildAgentyxConfigJsonSchema, builtInMcpServerNames, builtInMcpServerRegistry, builtInPackRegistry, builtInPacks, builtInSkillNames, builtInSkillRegistry, builtInToolNames, builtInToolRegistry, collectPackMcpServerReferences, collectPackMcpServers, collectPackToolReferences, createMcpServerRegistry, createPackRegistry, createSkillRegistry, createToolRegistry, detectProject, emptyInstallManifest, enabledCapabilityNameSchema, filterEffectiveMcpServers, filterEffectiveTools, formatAgentyxConfig, formatInstallManifest, formatSkillMarkdown, getCoreStatus, hashContent, installManifestEntrySchema, installManifestSchema, loadAgentyxConfig, loadInstallManifest, manifestEntriesByPath, mcpCapabilityLevelSchema, mcpContextCostSchema, mcpEnvReferenceSchema, mcpManifestEntrySchema, mcpServerDefinitionSchema, mcpServerReferenceSchema, packCategorySchema, packDefinitionSchema, packNameSchema, parseAgentyxConfig, parseInstallManifest, parseSkillMarkdown, resolveAgentyxConfig, resolvePackMcpServerReferences, resolvePackMcpServers, resolvePackSkills, resolvePackToolReferences, resolvePackTools, resolvePacks, skillDefinitionSchema, skillManifestEntrySchema, toolActivationLevelSchema, toolDefinitionSchema, toolNameSchema, toolReferenceSchema };
|
|
1100
|
+
export { AGENTYX_CONFIG_FILENAME, AGENTYX_CONFIG_SCHEMA_ID, AGENTYX_MANIFEST_FILENAME, type AgentyxConfig, type AgentyxConfigInput, type AgentyxConfigIssue, AgentyxConfigNotFoundError, AgentyxConfigParseError, AgentyxConfigValidationError, AgentyxError, type AgentyxIssue, AgentyxManifestParseError, AgentyxManifestValidationError, type AgentyxProject, CircularPackDependencyError, type CodexPluginManifest, DuplicateHookError, DuplicateMcpServerError, DuplicatePackError, DuplicateSkillError, DuplicateToolError, DuplicateTrustedSourceError, HOOK_ACTIVATION_LEVELS, HOOK_EVENTS, type HookActivationLevel, type HookDefinition, type HookDefinitionInput, type HookEvent, type HookManifestEntry, type HookMetadata, type HookReference, type HookReferenceInput, type HookRegistry, type HookSource, INSTALL_MANIFEST_VERSION, type InstallManifest, type InstallManifestEntry, type InstallManifestInput, InvalidHookError, InvalidMcpServerError, InvalidSkillError, InvalidToolError, LocalSkillDirectoryError, MCP_CAPABILITY_LEVELS, MCP_CONTEXT_COSTS, type McpCapabilityLevel, type McpContextCost, type McpEnvReference, type McpManifestEntry, type McpServerDefinition, type McpServerDefinitionInput, type McpServerMetadata, type McpServerReference, type McpServerReferenceInput, type McpServerRegistry, type McpServerSource, PACKAGE_MANAGERS, PACK_CATEGORIES, type PackCategory, type PackDefinition, type PackDefinitionInput, type PackRegistry, type PackageManagerDetection, type PackageManagerName, type ProjectDetection, type ProjectPackageJsonDetection, type ResolvedAgentyxConfig, type SkillDefinition, type SkillDefinitionInput, type SkillManifestEntry, type SkillRegistry, type SkillSource, TOOL_ACTIVATION_LEVELS, type ToolActivationLevel, type ToolDefinition, type ToolDefinitionInput, type ToolMetadata, type ToolReference, type ToolReferenceInput, type ToolRegistry, type ToolSource, type TrustedSourceDefinition, TrustedSourceLoadError, type TrustedSourceReference, type TrustedSourceSkillSummary, UnknownEnabledCapabilityError, UnknownHookError, UnknownMcpServerError, UnknownPackError, UnknownSkillError, UnknownToolError, UnknownTrustedSourceError, agentyxConfigPath, agentyxConfigSchema, agentyxCoreName, agentyxManifestPath, agentyxTargetSchema, buildAgentyxConfig, buildAgentyxConfigJsonSchema, builtInHookNames, builtInHookRegistry, builtInMcpServerNames, builtInMcpServerRegistry, builtInPackRegistry, builtInPacks, builtInSkillNames, builtInSkillRegistry, builtInToolNames, builtInToolRegistry, codexPluginManifestSchema, collectPackHookReferences, collectPackHooks, collectPackMcpServerReferences, collectPackMcpServers, collectPackToolReferences, createHookRegistry, createMcpServerRegistry, createPackRegistry, createSkillRegistry, createToolRegistry, createTrustedSourceRegistry, detectProject, emptyInstallManifest, enabledCapabilityNameSchema, filterEffectiveHooks, filterEffectiveMcpServers, filterEffectiveTools, formatAgentyxConfig, formatInstallManifest, formatSkillMarkdown, getCoreStatus, getTrustedSourceDefinition, hashContent, hookActivationLevelSchema, hookDefinitionSchema, hookEventSchema, hookManifestEntrySchema, hookNameSchema, hookReferenceSchema, inspectTrustedSource, installManifestEntrySchema, installManifestSchema, knownTrustedSourceRegistry, knownTrustedSources, loadAgentyxConfig, loadAgentyxProject, loadInstallManifest, manifestEntriesByPath, mcpCapabilityLevelSchema, mcpContextCostSchema, mcpEnvReferenceSchema, mcpManifestEntrySchema, mcpServerDefinitionSchema, mcpServerReferenceSchema, packCategorySchema, packDefinitionSchema, packNameSchema, parseAgentyxConfig, parseInstallManifest, parseSkillMarkdown, resolveAgentyxConfig, resolvePackHookReferences, resolvePackHooks, resolvePackMcpServerReferences, resolvePackMcpServers, resolvePackSkills, resolvePackToolReferences, resolvePackTools, resolvePacks, skillDefinitionSchema, skillDirectorySchema, skillManifestEntrySchema, toolActivationLevelSchema, toolDefinitionSchema, toolNameSchema, toolReferenceSchema, trustedSourceDefinitionSchema, trustedSourceNameSchema, trustedSourcePathSchema, trustedSourceReferenceSchema, trustedSourceSkillSummarySchema };
|
|
782
1101
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/errors.ts","../src/issues.ts","../src/config/errors.ts","../src/config/json-schema.ts","../src/config/schema.ts","../src/config/loader.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/errors.ts","../src/issues.ts","../src/config/errors.ts","../src/config/json-schema.ts","../src/config/schema.ts","../src/config/loader.ts","../src/pack/schema.ts","../src/pack/registry.ts","../src/skill/schema.ts","../src/skill/registry.ts","../src/config/project.ts","../src/hook/schema.ts","../src/hook/registry.ts","../src/mcp/schema.ts","../src/mcp/registry.ts","../src/tool/schema.ts","../src/tool/registry.ts","../src/config/resolver.ts","../src/hook/built-in.ts","../src/hook/errors.ts","../src/hook/resolver.ts","../src/manifest/errors.ts","../src/manifest/schema.ts","../src/manifest/io.ts","../src/mcp/built-in.ts","../src/mcp/errors.ts","../src/mcp/resolver.ts","../src/meta.ts","../src/pack/errors.ts","../src/pack/resolver.ts","../src/project/detector.ts","../src/skill/built-in.ts","../src/skill/errors.ts","../src/skill/markdown.ts","../src/skill/resolver.ts","../src/source/errors.ts","../src/source/schema.ts","../src/source/inspection.ts","../src/source/registry.ts","../src/tool/built-in.ts","../src/tool/errors.ts","../src/tool/resolver.ts"],"mappings":";;;;;;;;;cAOa,qBAAqB;WACvB;EAEG,YAAA,cAAc,iBAAiB,UAAU;;;;;UCPtC;;WAEN;WACA;;;;;KCDC,qBAAqB;;cAGpB,mCAAmC;WACrC;EAEG,YAAA,kBAAkB,UAAU;;;cAQ7B,gCAAgC;WAClC;EAEG,YAAA,kBAAkB,gBAAgB,UAAU;;;cAQ7C,qCAAqC;WACvC,iBAAiB;;WAEjB;EAEG,YAAA,OAAO,UAAU;;cAYlB,sCAAsC;WACxC;WACA;EAEG,YAAA,wBAAwB;;;cAczB,iCAAiC;WACnC;EAEG,YAAA,mBAAmB,gBAAgB,UAAU;;;;;cChE9C;;;;;;;;;iBAWG,gCAAgC;;;;;;;cCPnC,qBAAmB,EAAA;cAEnB,6BAA2B,EAAA;;;;;;cAa3B,sBAAoB,EAAA;;cASpB,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2B9B,EAAA,KAAA;;KAGU,gBAAgB,EAAE,aAAa;;KAG/B,qBAAqB,EAAE,aAAa;;;cCxDnC;;iBAGG,kBAAkB;;;;;;iBASlB,mBAAmB,gBAAgB,oBAAoB;;;;;;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