@agentyx/core 0.5.0 → 0.7.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 +317 -30
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +569 -87
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/agentyx.schema.json +31 -0
package/dist/index.d.mts
CHANGED
|
@@ -98,39 +98,58 @@ declare const agentyxConfigSchema: z.ZodObject<{
|
|
|
98
98
|
mcpServers: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
99
99
|
name: z.ZodString;
|
|
100
100
|
activation: z.ZodDefault<z.ZodEnum<{
|
|
101
|
-
optional: "optional";
|
|
102
101
|
default: "default";
|
|
102
|
+
optional: "optional";
|
|
103
103
|
}>>;
|
|
104
104
|
}, z.core.$strict>]>, z.ZodTransform<{
|
|
105
105
|
name: string;
|
|
106
|
-
activation: "
|
|
106
|
+
activation: "default" | "optional";
|
|
107
107
|
}, string | {
|
|
108
108
|
name: string;
|
|
109
|
-
activation: "
|
|
109
|
+
activation: "default" | "optional";
|
|
110
110
|
}>>, z.ZodObject<{
|
|
111
111
|
name: z.ZodString;
|
|
112
112
|
activation: z.ZodEnum<{
|
|
113
|
-
optional: "optional";
|
|
114
113
|
default: "default";
|
|
114
|
+
optional: "optional";
|
|
115
115
|
}>;
|
|
116
116
|
}, z.core.$strict>>>>;
|
|
117
117
|
tools: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
118
118
|
name: z.ZodString;
|
|
119
119
|
activation: z.ZodDefault<z.ZodEnum<{
|
|
120
|
-
optional: "optional";
|
|
121
120
|
default: "default";
|
|
121
|
+
optional: "optional";
|
|
122
122
|
}>>;
|
|
123
123
|
}, z.core.$strict>]>, z.ZodTransform<{
|
|
124
124
|
name: string;
|
|
125
|
-
activation: "
|
|
125
|
+
activation: "default" | "optional";
|
|
126
126
|
}, string | {
|
|
127
127
|
name: string;
|
|
128
|
-
activation: "
|
|
128
|
+
activation: "default" | "optional";
|
|
129
129
|
}>>, z.ZodObject<{
|
|
130
130
|
name: z.ZodString;
|
|
131
131
|
activation: z.ZodEnum<{
|
|
132
|
+
default: "default";
|
|
132
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<{
|
|
133
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";
|
|
134
153
|
}>;
|
|
135
154
|
}, z.core.$strict>>>>;
|
|
136
155
|
}, z.core.$strict>>>;
|
|
@@ -196,39 +215,58 @@ declare const packDefinitionSchema: z.ZodObject<{
|
|
|
196
215
|
mcpServers: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
197
216
|
name: z.ZodString;
|
|
198
217
|
activation: z.ZodDefault<z.ZodEnum<{
|
|
199
|
-
optional: "optional";
|
|
200
218
|
default: "default";
|
|
219
|
+
optional: "optional";
|
|
201
220
|
}>>;
|
|
202
221
|
}, z.core.$strict>]>, z.ZodTransform<{
|
|
203
222
|
name: string;
|
|
204
|
-
activation: "
|
|
223
|
+
activation: "default" | "optional";
|
|
205
224
|
}, string | {
|
|
206
225
|
name: string;
|
|
207
|
-
activation: "
|
|
226
|
+
activation: "default" | "optional";
|
|
208
227
|
}>>, z.ZodObject<{
|
|
209
228
|
name: z.ZodString;
|
|
210
229
|
activation: z.ZodEnum<{
|
|
211
|
-
optional: "optional";
|
|
212
230
|
default: "default";
|
|
231
|
+
optional: "optional";
|
|
213
232
|
}>;
|
|
214
233
|
}, z.core.$strict>>>>;
|
|
215
234
|
tools: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
216
235
|
name: z.ZodString;
|
|
217
236
|
activation: z.ZodDefault<z.ZodEnum<{
|
|
218
|
-
optional: "optional";
|
|
219
237
|
default: "default";
|
|
238
|
+
optional: "optional";
|
|
220
239
|
}>>;
|
|
221
240
|
}, z.core.$strict>]>, z.ZodTransform<{
|
|
222
241
|
name: string;
|
|
223
|
-
activation: "
|
|
242
|
+
activation: "default" | "optional";
|
|
224
243
|
}, string | {
|
|
225
244
|
name: string;
|
|
226
|
-
activation: "
|
|
245
|
+
activation: "default" | "optional";
|
|
227
246
|
}>>, z.ZodObject<{
|
|
228
247
|
name: z.ZodString;
|
|
229
248
|
activation: z.ZodEnum<{
|
|
249
|
+
default: "default";
|
|
230
250
|
optional: "optional";
|
|
251
|
+
}>;
|
|
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<{
|
|
231
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";
|
|
232
270
|
}>;
|
|
233
271
|
}, z.core.$strict>>>>;
|
|
234
272
|
}, z.core.$strict>;
|
|
@@ -324,11 +362,75 @@ interface AgentyxProject {
|
|
|
324
362
|
*/
|
|
325
363
|
declare function loadAgentyxProject(projectPath?: string): Promise<AgentyxProject>;
|
|
326
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
|
|
327
429
|
//#region src/mcp/schema.d.ts
|
|
328
430
|
declare const MCP_CAPABILITY_LEVELS: readonly ["default", "optional"];
|
|
329
431
|
declare const mcpCapabilityLevelSchema: z.ZodEnum<{
|
|
330
|
-
optional: "optional";
|
|
331
432
|
default: "default";
|
|
433
|
+
optional: "optional";
|
|
332
434
|
}>;
|
|
333
435
|
declare const MCP_CONTEXT_COSTS: readonly ["low", "medium", "high"];
|
|
334
436
|
declare const mcpContextCostSchema: z.ZodEnum<{
|
|
@@ -342,20 +444,20 @@ declare const mcpEnvReferenceSchema: z.ZodObject<{
|
|
|
342
444
|
declare const mcpServerReferenceSchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
343
445
|
name: z.ZodString;
|
|
344
446
|
activation: z.ZodDefault<z.ZodEnum<{
|
|
345
|
-
optional: "optional";
|
|
346
447
|
default: "default";
|
|
448
|
+
optional: "optional";
|
|
347
449
|
}>>;
|
|
348
450
|
}, z.core.$strict>]>, z.ZodTransform<{
|
|
349
451
|
name: string;
|
|
350
|
-
activation: "
|
|
452
|
+
activation: "default" | "optional";
|
|
351
453
|
}, string | {
|
|
352
454
|
name: string;
|
|
353
|
-
activation: "
|
|
455
|
+
activation: "default" | "optional";
|
|
354
456
|
}>>, z.ZodObject<{
|
|
355
457
|
name: z.ZodString;
|
|
356
458
|
activation: z.ZodEnum<{
|
|
357
|
-
optional: "optional";
|
|
358
459
|
default: "default";
|
|
460
|
+
optional: "optional";
|
|
359
461
|
}>;
|
|
360
462
|
}, z.core.$strict>>;
|
|
361
463
|
declare const mcpServerDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -366,6 +468,10 @@ declare const mcpServerDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
366
468
|
medium: "medium";
|
|
367
469
|
high: "high";
|
|
368
470
|
}>>;
|
|
471
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
472
|
+
local: "local";
|
|
473
|
+
"may-download": "may-download";
|
|
474
|
+
}>>;
|
|
369
475
|
transport: z.ZodLiteral<"stdio">;
|
|
370
476
|
command: z.ZodString;
|
|
371
477
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -380,6 +486,10 @@ declare const mcpServerDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
380
486
|
medium: "medium";
|
|
381
487
|
high: "high";
|
|
382
488
|
}>>;
|
|
489
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
490
|
+
local: "local";
|
|
491
|
+
"may-download": "may-download";
|
|
492
|
+
}>>;
|
|
383
493
|
transport: z.ZodLiteral<"http">;
|
|
384
494
|
url: z.ZodURL;
|
|
385
495
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -404,6 +514,7 @@ interface McpServerMetadata {
|
|
|
404
514
|
readonly description: string;
|
|
405
515
|
readonly transport: McpServerDefinition["transport"];
|
|
406
516
|
readonly contextCost?: McpServerDefinition["contextCost"];
|
|
517
|
+
readonly runtime?: McpServerDefinition["runtime"];
|
|
407
518
|
}
|
|
408
519
|
interface McpServerRegistry {
|
|
409
520
|
readonly names: readonly string[];
|
|
@@ -416,27 +527,27 @@ declare function createMcpServerRegistry(sources: Iterable<McpServerSource>): Mc
|
|
|
416
527
|
//#region src/tool/schema.d.ts
|
|
417
528
|
declare const TOOL_ACTIVATION_LEVELS: readonly ["default", "optional"];
|
|
418
529
|
declare const toolActivationLevelSchema: z.ZodEnum<{
|
|
419
|
-
optional: "optional";
|
|
420
530
|
default: "default";
|
|
531
|
+
optional: "optional";
|
|
421
532
|
}>;
|
|
422
533
|
declare const toolNameSchema: z.ZodString;
|
|
423
534
|
declare const toolReferenceSchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
424
535
|
name: z.ZodString;
|
|
425
536
|
activation: z.ZodDefault<z.ZodEnum<{
|
|
426
|
-
optional: "optional";
|
|
427
537
|
default: "default";
|
|
538
|
+
optional: "optional";
|
|
428
539
|
}>>;
|
|
429
540
|
}, z.core.$strict>]>, z.ZodTransform<{
|
|
430
541
|
name: string;
|
|
431
|
-
activation: "
|
|
542
|
+
activation: "default" | "optional";
|
|
432
543
|
}, string | {
|
|
433
544
|
name: string;
|
|
434
|
-
activation: "
|
|
545
|
+
activation: "default" | "optional";
|
|
435
546
|
}>>, z.ZodObject<{
|
|
436
547
|
name: z.ZodString;
|
|
437
548
|
activation: z.ZodEnum<{
|
|
438
|
-
optional: "optional";
|
|
439
549
|
default: "default";
|
|
550
|
+
optional: "optional";
|
|
440
551
|
}>;
|
|
441
552
|
}, z.core.$strict>>;
|
|
442
553
|
declare const toolDefinitionSchema: z.ZodObject<{
|
|
@@ -489,6 +600,8 @@ interface ResolvedAgentyxConfig {
|
|
|
489
600
|
readonly mcpServers: readonly string[];
|
|
490
601
|
readonly declaredTools: readonly ToolReference[];
|
|
491
602
|
readonly tools: readonly string[];
|
|
603
|
+
readonly declaredHooks: readonly HookReference[];
|
|
604
|
+
readonly hooks: readonly string[];
|
|
492
605
|
readonly enabled: readonly string[];
|
|
493
606
|
readonly targets: readonly string[];
|
|
494
607
|
}
|
|
@@ -499,7 +612,35 @@ interface ResolvedAgentyxConfig {
|
|
|
499
612
|
* @throws {UnknownPackError} when a configured pack is missing.
|
|
500
613
|
* @throws {UnknownSkillError} when a pack references an unknown skill.
|
|
501
614
|
*/
|
|
502
|
-
declare function resolveAgentyxConfig(config: AgentyxConfig, registry?: PackRegistry, skillRegistry?: SkillRegistry, mcpRegistry?: McpServerRegistry, toolRegistry?: ToolRegistry): ResolvedAgentyxConfig;
|
|
615
|
+
declare function resolveAgentyxConfig(config: AgentyxConfig, registry?: PackRegistry, skillRegistry?: SkillRegistry, mcpRegistry?: McpServerRegistry, toolRegistry?: ToolRegistry, hookRegistry?: HookRegistry): ResolvedAgentyxConfig;
|
|
616
|
+
//#endregion
|
|
617
|
+
//#region src/hook/built-in.d.ts
|
|
618
|
+
declare const builtInHookRegistry: HookRegistry;
|
|
619
|
+
declare const builtInHookNames: readonly string[];
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region src/hook/errors.d.ts
|
|
622
|
+
declare class UnknownHookError extends AgentyxError {
|
|
623
|
+
readonly hookName: string;
|
|
624
|
+
readonly requiredBy: string | undefined;
|
|
625
|
+
readonly knownHooks: readonly string[];
|
|
626
|
+
constructor(hookName: string, requiredBy: string | undefined, knownHooks: readonly string[]);
|
|
627
|
+
}
|
|
628
|
+
declare class DuplicateHookError extends AgentyxError {
|
|
629
|
+
readonly hookName: string;
|
|
630
|
+
constructor(hookName: string);
|
|
631
|
+
}
|
|
632
|
+
declare class InvalidHookError extends AgentyxError {
|
|
633
|
+
readonly origin: string;
|
|
634
|
+
readonly reason: string;
|
|
635
|
+
constructor(origin: string, reason: string | ZodError, options?: ErrorOptions);
|
|
636
|
+
}
|
|
637
|
+
//#endregion
|
|
638
|
+
//#region src/hook/resolver.d.ts
|
|
639
|
+
declare function collectPackHookReferences(resolvedPacks: readonly string[], packRegistry: PackRegistry, hookRegistry: HookRegistry): HookReference[];
|
|
640
|
+
declare function filterEffectiveHooks(hooks: readonly HookReference[], enabledCapabilities: readonly string[]): string[];
|
|
641
|
+
declare function collectPackHooks(resolvedPacks: readonly string[], packRegistry: PackRegistry, hookRegistry: HookRegistry, enabledCapabilities?: readonly string[]): string[];
|
|
642
|
+
declare function resolvePackHookReferences(requestedPacks: readonly string[], packRegistry?: PackRegistry, hookRegistry?: HookRegistry): HookReference[];
|
|
643
|
+
declare function resolvePackHooks(requestedPacks: readonly string[], packRegistry?: PackRegistry, hookRegistry?: HookRegistry, enabledCapabilities?: readonly string[]): string[];
|
|
503
644
|
//#endregion
|
|
504
645
|
//#region src/manifest/errors.d.ts
|
|
505
646
|
/** Raised when `.agentyx.lock.json` is not valid JSON. */
|
|
@@ -554,6 +695,21 @@ declare const mcpManifestEntrySchema: z.ZodObject<{
|
|
|
554
695
|
hash: z.ZodString;
|
|
555
696
|
created: z.ZodBoolean;
|
|
556
697
|
}, z.core.$strict>;
|
|
698
|
+
/**
|
|
699
|
+
* A provider hook configuration file Agentyx contributed entries to.
|
|
700
|
+
*
|
|
701
|
+
* Shares the `mcp` entry's shape and rationale: the file is shared with the
|
|
702
|
+
* user, so the entry records the hook names Agentyx added rather than
|
|
703
|
+
* claiming the whole document.
|
|
704
|
+
*/
|
|
705
|
+
declare const hookManifestEntrySchema: z.ZodObject<{
|
|
706
|
+
kind: z.ZodLiteral<"hook">;
|
|
707
|
+
path: z.ZodString;
|
|
708
|
+
hooks: z.ZodArray<z.ZodString>;
|
|
709
|
+
targets: z.ZodArray<z.ZodString>;
|
|
710
|
+
hash: z.ZodString;
|
|
711
|
+
created: z.ZodBoolean;
|
|
712
|
+
}, z.core.$strict>;
|
|
557
713
|
declare const installManifestEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
558
714
|
kind: z.ZodLiteral<"skill">;
|
|
559
715
|
path: z.ZodString;
|
|
@@ -567,6 +723,13 @@ declare const installManifestEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
567
723
|
targets: z.ZodArray<z.ZodString>;
|
|
568
724
|
hash: z.ZodString;
|
|
569
725
|
created: z.ZodBoolean;
|
|
726
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
727
|
+
kind: z.ZodLiteral<"hook">;
|
|
728
|
+
path: z.ZodString;
|
|
729
|
+
hooks: z.ZodArray<z.ZodString>;
|
|
730
|
+
targets: z.ZodArray<z.ZodString>;
|
|
731
|
+
hash: z.ZodString;
|
|
732
|
+
created: z.ZodBoolean;
|
|
570
733
|
}, z.core.$strict>], "kind">;
|
|
571
734
|
/** The `.agentyx.lock.json` record of everything Agentyx installed into a project. */
|
|
572
735
|
declare const installManifestSchema: z.ZodObject<{
|
|
@@ -584,10 +747,18 @@ declare const installManifestSchema: z.ZodObject<{
|
|
|
584
747
|
targets: z.ZodArray<z.ZodString>;
|
|
585
748
|
hash: z.ZodString;
|
|
586
749
|
created: z.ZodBoolean;
|
|
750
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
751
|
+
kind: z.ZodLiteral<"hook">;
|
|
752
|
+
path: z.ZodString;
|
|
753
|
+
hooks: z.ZodArray<z.ZodString>;
|
|
754
|
+
targets: z.ZodArray<z.ZodString>;
|
|
755
|
+
hash: z.ZodString;
|
|
756
|
+
created: z.ZodBoolean;
|
|
587
757
|
}, z.core.$strict>], "kind">>>;
|
|
588
758
|
}, z.core.$strict>;
|
|
589
759
|
type SkillManifestEntry = z.infer<typeof skillManifestEntrySchema>;
|
|
590
760
|
type McpManifestEntry = z.infer<typeof mcpManifestEntrySchema>;
|
|
761
|
+
type HookManifestEntry = z.infer<typeof hookManifestEntrySchema>;
|
|
591
762
|
type InstallManifestEntry = z.infer<typeof installManifestEntrySchema>;
|
|
592
763
|
/** A validated manifest, with defaults applied. */
|
|
593
764
|
type InstallManifest = z.infer<typeof installManifestSchema>;
|
|
@@ -706,7 +877,7 @@ declare class DuplicatePackError extends AgentyxError {
|
|
|
706
877
|
*/
|
|
707
878
|
declare function resolvePacks(requestedPacks: readonly string[], registry?: PackRegistry): string[];
|
|
708
879
|
//#endregion
|
|
709
|
-
//#region src/project/
|
|
880
|
+
//#region src/project/signals.d.ts
|
|
710
881
|
declare const PACKAGE_MANAGERS: readonly ["pnpm", "npm", "yarn", "bun"];
|
|
711
882
|
type PackageManagerName = (typeof PACKAGE_MANAGERS)[number];
|
|
712
883
|
interface PackageManagerDetection {
|
|
@@ -723,13 +894,83 @@ interface ProjectPackageJsonDetection {
|
|
|
723
894
|
readonly packageManager: string | undefined;
|
|
724
895
|
readonly error: string | undefined;
|
|
725
896
|
}
|
|
726
|
-
|
|
897
|
+
type DependencyField = "dependencies" | "devDependencies" | "peerDependencies" | "optionalDependencies";
|
|
898
|
+
/** A single matched dependency: which package, and which `package.json` field it came from. */
|
|
899
|
+
interface TechnologyMatch {
|
|
900
|
+
readonly dependency: string;
|
|
901
|
+
readonly field: DependencyField;
|
|
902
|
+
}
|
|
903
|
+
interface ContainerFileSignals {
|
|
904
|
+
readonly dockerfile: boolean;
|
|
905
|
+
readonly compose: boolean;
|
|
906
|
+
}
|
|
907
|
+
interface CiFileSignals {
|
|
908
|
+
readonly githubActions: boolean;
|
|
909
|
+
}
|
|
910
|
+
interface MonorepoSignal {
|
|
911
|
+
readonly detected: boolean;
|
|
912
|
+
readonly markers: readonly string[];
|
|
913
|
+
}
|
|
914
|
+
interface RepositorySizeSignal {
|
|
915
|
+
readonly filesScanned: number;
|
|
916
|
+
/** True when the bounded traversal stopped before finishing; `filesScanned` is a lower bound. */
|
|
917
|
+
readonly capped: boolean;
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Deliberately small, provider-neutral facts about a repository, gathered from a bounded set of
|
|
921
|
+
* known files and `package.json` dependencies — never a full filesystem listing.
|
|
922
|
+
*
|
|
923
|
+
* This is pure detection: it makes no judgement about which packs or capabilities fit. That
|
|
924
|
+
* judgement lives in `recommendCapabilities` (`./recommend.js`), which consumes these signals.
|
|
925
|
+
*/
|
|
926
|
+
interface ProjectSignals {
|
|
727
927
|
readonly projectDir: string;
|
|
728
928
|
readonly packageJson: ProjectPackageJsonDetection;
|
|
729
929
|
readonly packageManager: PackageManagerDetection;
|
|
730
|
-
readonly
|
|
731
|
-
|
|
930
|
+
readonly typescript: {
|
|
931
|
+
readonly dependency: TechnologyMatch | undefined;
|
|
932
|
+
readonly tsconfig: boolean;
|
|
933
|
+
};
|
|
934
|
+
readonly angular: TechnologyMatch | undefined;
|
|
935
|
+
readonly testFrameworks: readonly TechnologyMatch[];
|
|
936
|
+
readonly browserTesting: readonly TechnologyMatch[];
|
|
937
|
+
readonly observability: readonly TechnologyMatch[];
|
|
938
|
+
readonly dataTooling: readonly TechnologyMatch[];
|
|
939
|
+
readonly accessibilityTooling: readonly TechnologyMatch[];
|
|
940
|
+
readonly containers: ContainerFileSignals;
|
|
941
|
+
readonly ci: CiFileSignals;
|
|
942
|
+
readonly monorepo: MonorepoSignal;
|
|
943
|
+
readonly repositorySize: RepositorySizeSignal;
|
|
944
|
+
readonly localTools: {
|
|
945
|
+
readonly rtkAvailable: boolean;
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
/** Maximum directory entries visited by `scanRepositorySize`, regardless of match. */
|
|
949
|
+
declare const REPOSITORY_SCAN_ENTRY_LIMIT = 5000;
|
|
950
|
+
/** Gathers every project signal with a bounded, cheap set of reads. */
|
|
951
|
+
declare function collectProjectSignals(projectDir: string): Promise<ProjectSignals>;
|
|
952
|
+
/**
|
|
953
|
+
* Counts source-like files under a bounded traversal, ignoring dependency, VCS and build output
|
|
954
|
+
* directories. Stops after visiting `entryLimit` directory entries — cheap even on a monorepo — and
|
|
955
|
+
* reports `capped` so callers never mistake a partial scan for a complete one.
|
|
956
|
+
*/
|
|
957
|
+
declare function scanRepositorySize(projectDir: string, options?: {
|
|
958
|
+
readonly entryLimit?: number;
|
|
959
|
+
}): Promise<RepositorySizeSignal>;
|
|
960
|
+
//#endregion
|
|
961
|
+
//#region src/project/detector.d.ts
|
|
962
|
+
interface ProjectDetection {
|
|
963
|
+
readonly projectDir: string;
|
|
964
|
+
readonly packageJson: ProjectSignals["packageJson"];
|
|
965
|
+
readonly packageManager: ProjectSignals["packageManager"];
|
|
966
|
+
/** The richer, provider-neutral facts `recommendCapabilities` (`./recommend.js`) turns into suggestions. */
|
|
967
|
+
readonly signals: ProjectSignals;
|
|
732
968
|
}
|
|
969
|
+
/**
|
|
970
|
+
* Factual project detection only. It gathers `ProjectSignals` and never decides which packs or
|
|
971
|
+
* capabilities fit — that policy lives in `recommendCapabilities`, kept separate so each half stays
|
|
972
|
+
* independently testable.
|
|
973
|
+
*/
|
|
733
974
|
declare function detectProject(projectDir: string): Promise<ProjectDetection>;
|
|
734
975
|
declare function buildAgentyxConfig(input: {
|
|
735
976
|
readonly packs: readonly string[];
|
|
@@ -738,6 +979,52 @@ declare function buildAgentyxConfig(input: {
|
|
|
738
979
|
}): AgentyxConfigInput;
|
|
739
980
|
declare function formatAgentyxConfig(config: AgentyxConfigInput): string;
|
|
740
981
|
//#endregion
|
|
982
|
+
//#region src/project/executable.d.ts
|
|
983
|
+
/** Whether `command` resolves to an executable file, via `PATH` unless it already contains a `/`. */
|
|
984
|
+
declare function isExecutableOnPath(command: string): Promise<boolean>;
|
|
985
|
+
//#endregion
|
|
986
|
+
//#region src/project/recommend.d.ts
|
|
987
|
+
declare const RECOMMENDATION_CONFIDENCES: readonly ["high", "medium"];
|
|
988
|
+
type RecommendationConfidence = (typeof RECOMMENDATION_CONFIDENCES)[number];
|
|
989
|
+
type RecommendationKind = "pack" | "capability";
|
|
990
|
+
/**
|
|
991
|
+
* A deterministic suggestion, always with a human-readable reason. `high` means a direct, strong
|
|
992
|
+
* signal (an exact dependency or file match); `medium` means useful but less certain, such as a
|
|
993
|
+
* size heuristic. There is no `low` tier in v1 — a signal too weak for `medium` is not surfaced.
|
|
994
|
+
*/
|
|
995
|
+
interface Recommendation {
|
|
996
|
+
readonly kind: RecommendationKind;
|
|
997
|
+
readonly name: string;
|
|
998
|
+
readonly confidence: RecommendationConfidence;
|
|
999
|
+
readonly reasons: readonly string[];
|
|
1000
|
+
/** Packs that declare this as an optional capability. Present only for `kind: "capability"`. */
|
|
1001
|
+
readonly contributedBy?: readonly string[];
|
|
1002
|
+
}
|
|
1003
|
+
interface RecommendationResult {
|
|
1004
|
+
readonly packs: readonly Recommendation[];
|
|
1005
|
+
readonly capabilities: readonly Recommendation[];
|
|
1006
|
+
}
|
|
1007
|
+
interface RecommendCapabilitiesOptions {
|
|
1008
|
+
/** Packs already selected in the project's own `.agentyx.json`, if one exists. */
|
|
1009
|
+
readonly configuredPacks?: readonly string[] | undefined;
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Heuristic thresholds for the `codebase-memory` capability suggestion, in scanned source files.
|
|
1013
|
+
* These are approximate signals, not exact token accounting, and a monorepo is treated as already
|
|
1014
|
+
* complex enough to lower the bar.
|
|
1015
|
+
*/
|
|
1016
|
+
declare const CODEBASE_MEMORY_FILE_THRESHOLD = 2000;
|
|
1017
|
+
declare const CODEBASE_MEMORY_MONOREPO_FILE_THRESHOLD = 800;
|
|
1018
|
+
/**
|
|
1019
|
+
* Applies conservative, deterministic policy on top of `ProjectSignals`. This is the only place
|
|
1020
|
+
* that turns an observed fact into a product suggestion — `ProjectSignals` stays fact-only so it
|
|
1021
|
+
* can be tested independently of pack names or capability policy.
|
|
1022
|
+
*
|
|
1023
|
+
* Never enables anything and never touches the filesystem: the caller decides what, if anything,
|
|
1024
|
+
* to do with the result.
|
|
1025
|
+
*/
|
|
1026
|
+
declare function recommendCapabilities(signals: ProjectSignals, options?: RecommendCapabilitiesOptions): RecommendationResult;
|
|
1027
|
+
//#endregion
|
|
741
1028
|
//#region src/skill/built-in.d.ts
|
|
742
1029
|
/**
|
|
743
1030
|
* The skills Agentyx ships with. The names are the directory names under
|
|
@@ -935,5 +1222,5 @@ declare function filterEffectiveTools(tools: readonly ToolReference[], enabledCa
|
|
|
935
1222
|
declare function resolvePackToolReferences(requestedPacks: readonly string[], packRegistry?: PackRegistry, toolRegistry?: ToolRegistry): ToolReference[];
|
|
936
1223
|
declare function resolvePackTools(requestedPacks: readonly string[], packRegistry?: PackRegistry, toolRegistry?: ToolRegistry, enabledCapabilities?: readonly string[]): string[];
|
|
937
1224
|
//#endregion
|
|
938
|
-
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, DuplicateMcpServerError, DuplicatePackError, DuplicateSkillError, DuplicateToolError, DuplicateTrustedSourceError, INSTALL_MANIFEST_VERSION, type InstallManifest, type InstallManifestEntry, type InstallManifestInput, 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, UnknownMcpServerError, UnknownPackError, UnknownSkillError, UnknownToolError, UnknownTrustedSourceError, agentyxConfigPath, agentyxConfigSchema, agentyxCoreName, agentyxManifestPath, agentyxTargetSchema, buildAgentyxConfig, buildAgentyxConfigJsonSchema, builtInMcpServerNames, builtInMcpServerRegistry, builtInPackRegistry, builtInPacks, builtInSkillNames, builtInSkillRegistry, builtInToolNames, builtInToolRegistry, codexPluginManifestSchema, collectPackMcpServerReferences, collectPackMcpServers, collectPackToolReferences, createMcpServerRegistry, createPackRegistry, createSkillRegistry, createToolRegistry, createTrustedSourceRegistry, detectProject, emptyInstallManifest, enabledCapabilityNameSchema, filterEffectiveMcpServers, filterEffectiveTools, formatAgentyxConfig, formatInstallManifest, formatSkillMarkdown, getCoreStatus, getTrustedSourceDefinition, hashContent, inspectTrustedSource, installManifestEntrySchema, installManifestSchema, knownTrustedSourceRegistry, knownTrustedSources, loadAgentyxConfig, loadAgentyxProject, loadInstallManifest, manifestEntriesByPath, mcpCapabilityLevelSchema, mcpContextCostSchema, mcpEnvReferenceSchema, mcpManifestEntrySchema, mcpServerDefinitionSchema, mcpServerReferenceSchema, packCategorySchema, packDefinitionSchema, packNameSchema, parseAgentyxConfig, parseInstallManifest, parseSkillMarkdown, resolveAgentyxConfig, resolvePackMcpServerReferences, resolvePackMcpServers, resolvePackSkills, resolvePackToolReferences, resolvePackTools, resolvePacks, skillDefinitionSchema, skillDirectorySchema, skillManifestEntrySchema, toolActivationLevelSchema, toolDefinitionSchema, toolNameSchema, toolReferenceSchema, trustedSourceDefinitionSchema, trustedSourceNameSchema, trustedSourcePathSchema, trustedSourceReferenceSchema, trustedSourceSkillSummarySchema };
|
|
1225
|
+
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, CODEBASE_MEMORY_FILE_THRESHOLD, CODEBASE_MEMORY_MONOREPO_FILE_THRESHOLD, type CiFileSignals, CircularPackDependencyError, type CodexPluginManifest, type ContainerFileSignals, type DependencyField, 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, type MonorepoSignal, PACKAGE_MANAGERS, PACK_CATEGORIES, type PackCategory, type PackDefinition, type PackDefinitionInput, type PackRegistry, type PackageManagerDetection, type PackageManagerName, type ProjectDetection, type ProjectPackageJsonDetection, type ProjectSignals, RECOMMENDATION_CONFIDENCES, REPOSITORY_SCAN_ENTRY_LIMIT, type Recommendation, type RecommendationConfidence, type RecommendationKind, type RecommendationResult, type RepositorySizeSignal, type ResolvedAgentyxConfig, type SkillDefinition, type SkillDefinitionInput, type SkillManifestEntry, type SkillRegistry, type SkillSource, TOOL_ACTIVATION_LEVELS, type TechnologyMatch, 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, collectProjectSignals, 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, isExecutableOnPath, knownTrustedSourceRegistry, knownTrustedSources, loadAgentyxConfig, loadAgentyxProject, loadInstallManifest, manifestEntriesByPath, mcpCapabilityLevelSchema, mcpContextCostSchema, mcpEnvReferenceSchema, mcpManifestEntrySchema, mcpServerDefinitionSchema, mcpServerReferenceSchema, packCategorySchema, packDefinitionSchema, packNameSchema, parseAgentyxConfig, parseInstallManifest, parseSkillMarkdown, recommendCapabilities, resolveAgentyxConfig, resolvePackHookReferences, resolvePackHooks, resolvePackMcpServerReferences, resolvePackMcpServers, resolvePackSkills, resolvePackToolReferences, resolvePackTools, resolvePacks, scanRepositorySize, skillDefinitionSchema, skillDirectorySchema, skillManifestEntrySchema, toolActivationLevelSchema, toolDefinitionSchema, toolNameSchema, toolReferenceSchema, trustedSourceDefinitionSchema, trustedSourceNameSchema, trustedSourcePathSchema, trustedSourceReferenceSchema, trustedSourceSkillSummarySchema };
|
|
939
1226
|
//# 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/pack/schema.ts","../src/pack/registry.ts","../src/skill/schema.ts","../src/skill/registry.ts","../src/config/project.ts","../src/mcp/schema.ts","../src/mcp/registry.ts","../src/tool/schema.ts","../src/tool/registry.ts","../src/config/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
|
|
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/signals.ts","../src/project/detector.ts","../src/project/executable.ts","../src/project/recommend.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;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