tenfold 0.1.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.
@@ -0,0 +1,1431 @@
1
+ import { Command } from 'commander';
2
+ import { z } from 'zod';
3
+
4
+ /**
5
+ * Component types - mirrored from the main app's provenance library
6
+ */
7
+ type ComponentType = "INSTRUCTION" | "HOOK" | "COMMAND" | "MCP_SERVER" | "SKILL" | "AGENT";
8
+ type FieldType = "PARAGRAPH" | "HOOK_CODE" | "COMMAND_CODE" | "MCP_CONFIG" | "SKILL_CODE" | "AGENT_CODE" | "CONFIG_BLOCK";
9
+ type LinkType = "FORK" | "MERGE" | "IMPORT";
10
+ interface InstructionContent {
11
+ paragraphs: string[];
12
+ metadata?: Record<string, unknown>;
13
+ }
14
+ interface HookContent {
15
+ name: string;
16
+ event: "PreToolUse" | "PostToolUse" | "Stop" | "Start" | "Subagent";
17
+ matcher?: string;
18
+ command: string;
19
+ description?: string;
20
+ metadata?: Record<string, unknown>;
21
+ }
22
+ interface CommandContent {
23
+ name: string;
24
+ description: string;
25
+ content: string;
26
+ arguments?: Array<{
27
+ name: string;
28
+ type: string;
29
+ required: boolean;
30
+ description?: string;
31
+ }>;
32
+ metadata?: Record<string, unknown>;
33
+ }
34
+ interface McpServerContent {
35
+ name: string;
36
+ command: string;
37
+ args?: string[];
38
+ env?: Record<string, string>;
39
+ description?: string;
40
+ metadata?: Record<string, unknown>;
41
+ }
42
+ interface SkillContent {
43
+ name: string;
44
+ description: string;
45
+ prompt: string;
46
+ metadata?: Record<string, unknown>;
47
+ }
48
+ interface AgentContent {
49
+ name: string;
50
+ description: string;
51
+ systemPrompt: string;
52
+ tools?: string[];
53
+ metadata?: Record<string, unknown>;
54
+ }
55
+ type ComponentContent = InstructionContent | HookContent | CommandContent | McpServerContent | SkillContent | AgentContent;
56
+ interface AttributionEntry {
57
+ authorId: string;
58
+ authorName: string;
59
+ percentage: number;
60
+ fieldCount: number;
61
+ fieldPaths: string[];
62
+ isScout: boolean;
63
+ externalSource?: string;
64
+ }
65
+ interface AttributionSnapshot {
66
+ calculatedAt: string;
67
+ versionId: string;
68
+ contentHash: string;
69
+ totalFields: number;
70
+ attributions: AttributionEntry[];
71
+ }
72
+ interface Author {
73
+ id: string;
74
+ name: string;
75
+ githubUsername: string;
76
+ avatarUrl?: string;
77
+ }
78
+ interface Component {
79
+ id: string;
80
+ type: ComponentType;
81
+ slug: string;
82
+ displayName: string;
83
+ description: string;
84
+ author: Author;
85
+ forkedFromId?: string;
86
+ installCount: number;
87
+ forkCount: number;
88
+ verified: boolean;
89
+ featured: boolean;
90
+ tags: string[];
91
+ createdAt: string;
92
+ updatedAt: string;
93
+ }
94
+ interface ComponentVersion {
95
+ id: string;
96
+ version: string;
97
+ componentId: string;
98
+ content: ComponentContent;
99
+ contentHash: string;
100
+ attributionSnapshot?: AttributionSnapshot;
101
+ createdAt: string;
102
+ }
103
+ interface ComponentWithVersions extends Component {
104
+ versions: ComponentVersion[];
105
+ }
106
+ interface BundleItem {
107
+ id: string;
108
+ bundleId: string;
109
+ componentVersionId: string;
110
+ componentVersion: ComponentVersion & {
111
+ component: Component;
112
+ };
113
+ priority: number;
114
+ }
115
+ interface Bundle {
116
+ id: string;
117
+ slug: string;
118
+ displayName: string;
119
+ description: string;
120
+ author: Author;
121
+ forkedFromId?: string;
122
+ installCount: number;
123
+ featured: boolean;
124
+ verified: boolean;
125
+ createdAt: string;
126
+ updatedAt: string;
127
+ }
128
+ interface BundleWithItems extends Bundle {
129
+ items: BundleItem[];
130
+ }
131
+ declare function isHookContent(content: ComponentContent): content is HookContent;
132
+ declare function isMcpServerContent(content: ComponentContent): content is McpServerContent;
133
+ declare function isInstructionContent(content: ComponentContent): content is InstructionContent;
134
+ declare function isCommandContent(content: ComponentContent): content is CommandContent;
135
+ declare function isSkillContent(content: ComponentContent): content is SkillContent;
136
+ declare function isAgentContent(content: ComponentContent): content is AgentContent;
137
+ declare const COMPONENT_ICONS: Record<ComponentType, string>;
138
+ declare function getComponentIcon(type: ComponentType): string;
139
+
140
+ /**
141
+ * API request/response types for tRPC endpoints
142
+ */
143
+ interface SearchOptions {
144
+ query: string;
145
+ limit?: number;
146
+ type?: string;
147
+ category?: string;
148
+ }
149
+ interface SearchResult {
150
+ components: ComponentWithVersions[];
151
+ total: number;
152
+ }
153
+ interface GetComponentInput {
154
+ slug: string;
155
+ }
156
+ interface GetComponentVersionInput {
157
+ componentId: string;
158
+ version: string;
159
+ }
160
+ interface GetAttributionInput {
161
+ versionId: string;
162
+ }
163
+ interface ListComponentsInput {
164
+ limit?: number;
165
+ offset?: number;
166
+ type?: string;
167
+ categorySlug?: string;
168
+ featured?: boolean;
169
+ verified?: boolean;
170
+ }
171
+ interface ListComponentsResult {
172
+ components: ComponentWithVersions[];
173
+ total: number;
174
+ hasMore: boolean;
175
+ }
176
+ interface GetBundleInput {
177
+ slug: string;
178
+ }
179
+ interface ListBundlesInput {
180
+ limit?: number;
181
+ offset?: number;
182
+ featured?: boolean;
183
+ }
184
+ interface ListBundlesResult {
185
+ bundles: BundleWithItems[];
186
+ total: number;
187
+ hasMore: boolean;
188
+ }
189
+ interface TrackComponentInstallInput {
190
+ componentSlug: string;
191
+ versionId?: string;
192
+ userAgent?: string;
193
+ }
194
+ interface TrackBundleInstallInput {
195
+ bundleSlug: string;
196
+ userAgent?: string;
197
+ }
198
+ interface ForkComponentInput {
199
+ sourceVersionId: string;
200
+ modifications?: {
201
+ fieldPath: string;
202
+ newContent: string;
203
+ }[];
204
+ }
205
+ interface ForkComponentResult {
206
+ component: Component;
207
+ version: ComponentVersion;
208
+ }
209
+ interface Category {
210
+ id: string;
211
+ slug: string;
212
+ name: string;
213
+ description: string;
214
+ icon?: string;
215
+ componentCount: number;
216
+ bundleCount: number;
217
+ }
218
+ interface TrpcResponse<T> {
219
+ result: {
220
+ data: {
221
+ json: T;
222
+ };
223
+ };
224
+ }
225
+ interface TrpcError {
226
+ error: {
227
+ message: string;
228
+ code: string;
229
+ data?: unknown;
230
+ };
231
+ }
232
+ interface ApiConfig {
233
+ baseUrl: string;
234
+ apiKey?: string;
235
+ timeout?: number;
236
+ }
237
+ declare const DEFAULT_API_CONFIG: ApiConfig;
238
+
239
+ declare class TenfoldApiClient {
240
+ private baseUrl;
241
+ private apiKey?;
242
+ private timeout;
243
+ constructor(options?: Partial<ApiConfig>);
244
+ setApiKey(key: string): void;
245
+ private request;
246
+ private retryRequest;
247
+ searchComponents(query: string, limit?: number): Promise<ComponentWithVersions[]>;
248
+ getComponent(slug: string): Promise<ComponentWithVersions>;
249
+ getComponentVersion(componentId: string, version: string): Promise<ComponentVersion>;
250
+ getAttribution(versionId: string): Promise<AttributionSnapshot>;
251
+ listComponents(input?: ListComponentsInput): Promise<ListComponentsResult>;
252
+ getFeaturedComponents(limit?: number): Promise<ComponentWithVersions[]>;
253
+ getTrendingComponents(limit?: number): Promise<ComponentWithVersions[]>;
254
+ searchBundles(query: string, limit?: number): Promise<BundleWithItems[]>;
255
+ getBundle(slug: string): Promise<BundleWithItems>;
256
+ listBundles(input?: ListBundlesInput): Promise<ListBundlesResult>;
257
+ listCategories(): Promise<Category[]>;
258
+ trackComponentInstall(componentSlug: string, versionId?: string): Promise<void>;
259
+ trackBundleInstall(bundleSlug: string): Promise<void>;
260
+ forkComponent(input: ForkComponentInput): Promise<ForkComponentResult>;
261
+ }
262
+ declare function getApiClient(options?: Partial<ApiConfig>): TenfoldApiClient;
263
+
264
+ /**
265
+ * Zod schemas for local configuration files
266
+ */
267
+ declare const TenfoldMetadataSchema: z.ZodObject<{
268
+ componentId: z.ZodString;
269
+ versionId: z.ZodString;
270
+ version: z.ZodString;
271
+ author: z.ZodString;
272
+ slug: z.ZodString;
273
+ installedAt: z.ZodString;
274
+ }, "strip", z.ZodTypeAny, {
275
+ author: string;
276
+ componentId: string;
277
+ versionId: string;
278
+ version: string;
279
+ slug: string;
280
+ installedAt: string;
281
+ }, {
282
+ author: string;
283
+ componentId: string;
284
+ versionId: string;
285
+ version: string;
286
+ slug: string;
287
+ installedAt: string;
288
+ }>;
289
+ type TenfoldMetadata = z.infer<typeof TenfoldMetadataSchema>;
290
+ declare const TargetFileSchema: z.ZodObject<{
291
+ type: z.ZodEnum<["claude_md", "settings_json", "mcp_json", "skill_dir", "command_file"]>;
292
+ path: z.ZodString;
293
+ section: z.ZodOptional<z.ZodString>;
294
+ key: z.ZodOptional<z.ZodString>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ path: string;
297
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
298
+ section?: string | undefined;
299
+ key?: string | undefined;
300
+ }, {
301
+ path: string;
302
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
303
+ section?: string | undefined;
304
+ key?: string | undefined;
305
+ }>;
306
+ type TargetFile = z.infer<typeof TargetFileSchema>;
307
+ declare const InstalledComponentSchema: z.ZodObject<{
308
+ componentId: z.ZodString;
309
+ versionId: z.ZodString;
310
+ author: z.ZodString;
311
+ slug: z.ZodString;
312
+ type: z.ZodEnum<["INSTRUCTION", "HOOK", "COMMAND", "MCP_SERVER", "SKILL", "AGENT"]>;
313
+ version: z.ZodString;
314
+ installedAt: z.ZodString;
315
+ updatedAt: z.ZodOptional<z.ZodString>;
316
+ targetFiles: z.ZodArray<z.ZodObject<{
317
+ type: z.ZodEnum<["claude_md", "settings_json", "mcp_json", "skill_dir", "command_file"]>;
318
+ path: z.ZodString;
319
+ section: z.ZodOptional<z.ZodString>;
320
+ key: z.ZodOptional<z.ZodString>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ path: string;
323
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
324
+ section?: string | undefined;
325
+ key?: string | undefined;
326
+ }, {
327
+ path: string;
328
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
329
+ section?: string | undefined;
330
+ key?: string | undefined;
331
+ }>, "many">;
332
+ attribution: z.ZodOptional<z.ZodArray<z.ZodObject<{
333
+ authorId: z.ZodString;
334
+ authorName: z.ZodString;
335
+ percentage: z.ZodNumber;
336
+ }, "strip", z.ZodTypeAny, {
337
+ authorId: string;
338
+ authorName: string;
339
+ percentage: number;
340
+ }, {
341
+ authorId: string;
342
+ authorName: string;
343
+ percentage: number;
344
+ }>, "many">>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ author: string;
347
+ componentId: string;
348
+ versionId: string;
349
+ version: string;
350
+ slug: string;
351
+ installedAt: string;
352
+ type: "INSTRUCTION" | "HOOK" | "COMMAND" | "MCP_SERVER" | "SKILL" | "AGENT";
353
+ targetFiles: {
354
+ path: string;
355
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
356
+ section?: string | undefined;
357
+ key?: string | undefined;
358
+ }[];
359
+ updatedAt?: string | undefined;
360
+ attribution?: {
361
+ authorId: string;
362
+ authorName: string;
363
+ percentage: number;
364
+ }[] | undefined;
365
+ }, {
366
+ author: string;
367
+ componentId: string;
368
+ versionId: string;
369
+ version: string;
370
+ slug: string;
371
+ installedAt: string;
372
+ type: "INSTRUCTION" | "HOOK" | "COMMAND" | "MCP_SERVER" | "SKILL" | "AGENT";
373
+ targetFiles: {
374
+ path: string;
375
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
376
+ section?: string | undefined;
377
+ key?: string | undefined;
378
+ }[];
379
+ updatedAt?: string | undefined;
380
+ attribution?: {
381
+ authorId: string;
382
+ authorName: string;
383
+ percentage: number;
384
+ }[] | undefined;
385
+ }>;
386
+ type InstalledComponent = z.infer<typeof InstalledComponentSchema>;
387
+ declare const InstalledManifestSchema: z.ZodObject<{
388
+ version: z.ZodLiteral<"1.0.0">;
389
+ components: z.ZodArray<z.ZodObject<{
390
+ componentId: z.ZodString;
391
+ versionId: z.ZodString;
392
+ author: z.ZodString;
393
+ slug: z.ZodString;
394
+ type: z.ZodEnum<["INSTRUCTION", "HOOK", "COMMAND", "MCP_SERVER", "SKILL", "AGENT"]>;
395
+ version: z.ZodString;
396
+ installedAt: z.ZodString;
397
+ updatedAt: z.ZodOptional<z.ZodString>;
398
+ targetFiles: z.ZodArray<z.ZodObject<{
399
+ type: z.ZodEnum<["claude_md", "settings_json", "mcp_json", "skill_dir", "command_file"]>;
400
+ path: z.ZodString;
401
+ section: z.ZodOptional<z.ZodString>;
402
+ key: z.ZodOptional<z.ZodString>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ path: string;
405
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
406
+ section?: string | undefined;
407
+ key?: string | undefined;
408
+ }, {
409
+ path: string;
410
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
411
+ section?: string | undefined;
412
+ key?: string | undefined;
413
+ }>, "many">;
414
+ attribution: z.ZodOptional<z.ZodArray<z.ZodObject<{
415
+ authorId: z.ZodString;
416
+ authorName: z.ZodString;
417
+ percentage: z.ZodNumber;
418
+ }, "strip", z.ZodTypeAny, {
419
+ authorId: string;
420
+ authorName: string;
421
+ percentage: number;
422
+ }, {
423
+ authorId: string;
424
+ authorName: string;
425
+ percentage: number;
426
+ }>, "many">>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ author: string;
429
+ componentId: string;
430
+ versionId: string;
431
+ version: string;
432
+ slug: string;
433
+ installedAt: string;
434
+ type: "INSTRUCTION" | "HOOK" | "COMMAND" | "MCP_SERVER" | "SKILL" | "AGENT";
435
+ targetFiles: {
436
+ path: string;
437
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
438
+ section?: string | undefined;
439
+ key?: string | undefined;
440
+ }[];
441
+ updatedAt?: string | undefined;
442
+ attribution?: {
443
+ authorId: string;
444
+ authorName: string;
445
+ percentage: number;
446
+ }[] | undefined;
447
+ }, {
448
+ author: string;
449
+ componentId: string;
450
+ versionId: string;
451
+ version: string;
452
+ slug: string;
453
+ installedAt: string;
454
+ type: "INSTRUCTION" | "HOOK" | "COMMAND" | "MCP_SERVER" | "SKILL" | "AGENT";
455
+ targetFiles: {
456
+ path: string;
457
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
458
+ section?: string | undefined;
459
+ key?: string | undefined;
460
+ }[];
461
+ updatedAt?: string | undefined;
462
+ attribution?: {
463
+ authorId: string;
464
+ authorName: string;
465
+ percentage: number;
466
+ }[] | undefined;
467
+ }>, "many">;
468
+ lastUpdatedAt: z.ZodString;
469
+ }, "strip", z.ZodTypeAny, {
470
+ version: "1.0.0";
471
+ components: {
472
+ author: string;
473
+ componentId: string;
474
+ versionId: string;
475
+ version: string;
476
+ slug: string;
477
+ installedAt: string;
478
+ type: "INSTRUCTION" | "HOOK" | "COMMAND" | "MCP_SERVER" | "SKILL" | "AGENT";
479
+ targetFiles: {
480
+ path: string;
481
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
482
+ section?: string | undefined;
483
+ key?: string | undefined;
484
+ }[];
485
+ updatedAt?: string | undefined;
486
+ attribution?: {
487
+ authorId: string;
488
+ authorName: string;
489
+ percentage: number;
490
+ }[] | undefined;
491
+ }[];
492
+ lastUpdatedAt: string;
493
+ }, {
494
+ version: "1.0.0";
495
+ components: {
496
+ author: string;
497
+ componentId: string;
498
+ versionId: string;
499
+ version: string;
500
+ slug: string;
501
+ installedAt: string;
502
+ type: "INSTRUCTION" | "HOOK" | "COMMAND" | "MCP_SERVER" | "SKILL" | "AGENT";
503
+ targetFiles: {
504
+ path: string;
505
+ type: "claude_md" | "settings_json" | "mcp_json" | "skill_dir" | "command_file";
506
+ section?: string | undefined;
507
+ key?: string | undefined;
508
+ }[];
509
+ updatedAt?: string | undefined;
510
+ attribution?: {
511
+ authorId: string;
512
+ authorName: string;
513
+ percentage: number;
514
+ }[] | undefined;
515
+ }[];
516
+ lastUpdatedAt: string;
517
+ }>;
518
+ type InstalledManifest = z.infer<typeof InstalledManifestSchema>;
519
+ declare const HookDefinitionSchema: z.ZodObject<{
520
+ type: z.ZodLiteral<"command">;
521
+ command: z.ZodString;
522
+ }, "strip", z.ZodTypeAny, {
523
+ command: string;
524
+ type: "command";
525
+ }, {
526
+ command: string;
527
+ type: "command";
528
+ }>;
529
+ declare const HookEntrySchema: z.ZodObject<{
530
+ matcher: z.ZodString;
531
+ hooks: z.ZodArray<z.ZodObject<{
532
+ type: z.ZodLiteral<"command">;
533
+ command: z.ZodString;
534
+ }, "strip", z.ZodTypeAny, {
535
+ command: string;
536
+ type: "command";
537
+ }, {
538
+ command: string;
539
+ type: "command";
540
+ }>, "many">;
541
+ _tenfold: z.ZodOptional<z.ZodObject<{
542
+ componentId: z.ZodString;
543
+ versionId: z.ZodString;
544
+ version: z.ZodString;
545
+ author: z.ZodString;
546
+ slug: z.ZodString;
547
+ installedAt: z.ZodString;
548
+ }, "strip", z.ZodTypeAny, {
549
+ author: string;
550
+ componentId: string;
551
+ versionId: string;
552
+ version: string;
553
+ slug: string;
554
+ installedAt: string;
555
+ }, {
556
+ author: string;
557
+ componentId: string;
558
+ versionId: string;
559
+ version: string;
560
+ slug: string;
561
+ installedAt: string;
562
+ }>>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ matcher: string;
565
+ hooks: {
566
+ command: string;
567
+ type: "command";
568
+ }[];
569
+ _tenfold?: {
570
+ author: string;
571
+ componentId: string;
572
+ versionId: string;
573
+ version: string;
574
+ slug: string;
575
+ installedAt: string;
576
+ } | undefined;
577
+ }, {
578
+ matcher: string;
579
+ hooks: {
580
+ command: string;
581
+ type: "command";
582
+ }[];
583
+ _tenfold?: {
584
+ author: string;
585
+ componentId: string;
586
+ versionId: string;
587
+ version: string;
588
+ slug: string;
589
+ installedAt: string;
590
+ } | undefined;
591
+ }>;
592
+ type HookEntry = z.infer<typeof HookEntrySchema>;
593
+ declare const ClaudeSettingsSchema: z.ZodObject<{
594
+ hooks: z.ZodOptional<z.ZodObject<{
595
+ PreToolUse: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
+ matcher: z.ZodString;
597
+ hooks: z.ZodArray<z.ZodObject<{
598
+ type: z.ZodLiteral<"command">;
599
+ command: z.ZodString;
600
+ }, "strip", z.ZodTypeAny, {
601
+ command: string;
602
+ type: "command";
603
+ }, {
604
+ command: string;
605
+ type: "command";
606
+ }>, "many">;
607
+ _tenfold: z.ZodOptional<z.ZodObject<{
608
+ componentId: z.ZodString;
609
+ versionId: z.ZodString;
610
+ version: z.ZodString;
611
+ author: z.ZodString;
612
+ slug: z.ZodString;
613
+ installedAt: z.ZodString;
614
+ }, "strip", z.ZodTypeAny, {
615
+ author: string;
616
+ componentId: string;
617
+ versionId: string;
618
+ version: string;
619
+ slug: string;
620
+ installedAt: string;
621
+ }, {
622
+ author: string;
623
+ componentId: string;
624
+ versionId: string;
625
+ version: string;
626
+ slug: string;
627
+ installedAt: string;
628
+ }>>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ matcher: string;
631
+ hooks: {
632
+ command: string;
633
+ type: "command";
634
+ }[];
635
+ _tenfold?: {
636
+ author: string;
637
+ componentId: string;
638
+ versionId: string;
639
+ version: string;
640
+ slug: string;
641
+ installedAt: string;
642
+ } | undefined;
643
+ }, {
644
+ matcher: string;
645
+ hooks: {
646
+ command: string;
647
+ type: "command";
648
+ }[];
649
+ _tenfold?: {
650
+ author: string;
651
+ componentId: string;
652
+ versionId: string;
653
+ version: string;
654
+ slug: string;
655
+ installedAt: string;
656
+ } | undefined;
657
+ }>, "many">>;
658
+ PostToolUse: z.ZodOptional<z.ZodArray<z.ZodObject<{
659
+ matcher: z.ZodString;
660
+ hooks: z.ZodArray<z.ZodObject<{
661
+ type: z.ZodLiteral<"command">;
662
+ command: z.ZodString;
663
+ }, "strip", z.ZodTypeAny, {
664
+ command: string;
665
+ type: "command";
666
+ }, {
667
+ command: string;
668
+ type: "command";
669
+ }>, "many">;
670
+ _tenfold: z.ZodOptional<z.ZodObject<{
671
+ componentId: z.ZodString;
672
+ versionId: z.ZodString;
673
+ version: z.ZodString;
674
+ author: z.ZodString;
675
+ slug: z.ZodString;
676
+ installedAt: z.ZodString;
677
+ }, "strip", z.ZodTypeAny, {
678
+ author: string;
679
+ componentId: string;
680
+ versionId: string;
681
+ version: string;
682
+ slug: string;
683
+ installedAt: string;
684
+ }, {
685
+ author: string;
686
+ componentId: string;
687
+ versionId: string;
688
+ version: string;
689
+ slug: string;
690
+ installedAt: string;
691
+ }>>;
692
+ }, "strip", z.ZodTypeAny, {
693
+ matcher: string;
694
+ hooks: {
695
+ command: string;
696
+ type: "command";
697
+ }[];
698
+ _tenfold?: {
699
+ author: string;
700
+ componentId: string;
701
+ versionId: string;
702
+ version: string;
703
+ slug: string;
704
+ installedAt: string;
705
+ } | undefined;
706
+ }, {
707
+ matcher: string;
708
+ hooks: {
709
+ command: string;
710
+ type: "command";
711
+ }[];
712
+ _tenfold?: {
713
+ author: string;
714
+ componentId: string;
715
+ versionId: string;
716
+ version: string;
717
+ slug: string;
718
+ installedAt: string;
719
+ } | undefined;
720
+ }>, "many">>;
721
+ Stop: z.ZodOptional<z.ZodArray<z.ZodObject<{
722
+ matcher: z.ZodString;
723
+ hooks: z.ZodArray<z.ZodObject<{
724
+ type: z.ZodLiteral<"command">;
725
+ command: z.ZodString;
726
+ }, "strip", z.ZodTypeAny, {
727
+ command: string;
728
+ type: "command";
729
+ }, {
730
+ command: string;
731
+ type: "command";
732
+ }>, "many">;
733
+ _tenfold: z.ZodOptional<z.ZodObject<{
734
+ componentId: z.ZodString;
735
+ versionId: z.ZodString;
736
+ version: z.ZodString;
737
+ author: z.ZodString;
738
+ slug: z.ZodString;
739
+ installedAt: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
741
+ author: string;
742
+ componentId: string;
743
+ versionId: string;
744
+ version: string;
745
+ slug: string;
746
+ installedAt: string;
747
+ }, {
748
+ author: string;
749
+ componentId: string;
750
+ versionId: string;
751
+ version: string;
752
+ slug: string;
753
+ installedAt: string;
754
+ }>>;
755
+ }, "strip", z.ZodTypeAny, {
756
+ matcher: string;
757
+ hooks: {
758
+ command: string;
759
+ type: "command";
760
+ }[];
761
+ _tenfold?: {
762
+ author: string;
763
+ componentId: string;
764
+ versionId: string;
765
+ version: string;
766
+ slug: string;
767
+ installedAt: string;
768
+ } | undefined;
769
+ }, {
770
+ matcher: string;
771
+ hooks: {
772
+ command: string;
773
+ type: "command";
774
+ }[];
775
+ _tenfold?: {
776
+ author: string;
777
+ componentId: string;
778
+ versionId: string;
779
+ version: string;
780
+ slug: string;
781
+ installedAt: string;
782
+ } | undefined;
783
+ }>, "many">>;
784
+ Start: z.ZodOptional<z.ZodArray<z.ZodObject<{
785
+ matcher: z.ZodString;
786
+ hooks: z.ZodArray<z.ZodObject<{
787
+ type: z.ZodLiteral<"command">;
788
+ command: z.ZodString;
789
+ }, "strip", z.ZodTypeAny, {
790
+ command: string;
791
+ type: "command";
792
+ }, {
793
+ command: string;
794
+ type: "command";
795
+ }>, "many">;
796
+ _tenfold: z.ZodOptional<z.ZodObject<{
797
+ componentId: z.ZodString;
798
+ versionId: z.ZodString;
799
+ version: z.ZodString;
800
+ author: z.ZodString;
801
+ slug: z.ZodString;
802
+ installedAt: z.ZodString;
803
+ }, "strip", z.ZodTypeAny, {
804
+ author: string;
805
+ componentId: string;
806
+ versionId: string;
807
+ version: string;
808
+ slug: string;
809
+ installedAt: string;
810
+ }, {
811
+ author: string;
812
+ componentId: string;
813
+ versionId: string;
814
+ version: string;
815
+ slug: string;
816
+ installedAt: string;
817
+ }>>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ matcher: string;
820
+ hooks: {
821
+ command: string;
822
+ type: "command";
823
+ }[];
824
+ _tenfold?: {
825
+ author: string;
826
+ componentId: string;
827
+ versionId: string;
828
+ version: string;
829
+ slug: string;
830
+ installedAt: string;
831
+ } | undefined;
832
+ }, {
833
+ matcher: string;
834
+ hooks: {
835
+ command: string;
836
+ type: "command";
837
+ }[];
838
+ _tenfold?: {
839
+ author: string;
840
+ componentId: string;
841
+ versionId: string;
842
+ version: string;
843
+ slug: string;
844
+ installedAt: string;
845
+ } | undefined;
846
+ }>, "many">>;
847
+ Subagent: z.ZodOptional<z.ZodArray<z.ZodObject<{
848
+ matcher: z.ZodString;
849
+ hooks: z.ZodArray<z.ZodObject<{
850
+ type: z.ZodLiteral<"command">;
851
+ command: z.ZodString;
852
+ }, "strip", z.ZodTypeAny, {
853
+ command: string;
854
+ type: "command";
855
+ }, {
856
+ command: string;
857
+ type: "command";
858
+ }>, "many">;
859
+ _tenfold: z.ZodOptional<z.ZodObject<{
860
+ componentId: z.ZodString;
861
+ versionId: z.ZodString;
862
+ version: z.ZodString;
863
+ author: z.ZodString;
864
+ slug: z.ZodString;
865
+ installedAt: z.ZodString;
866
+ }, "strip", z.ZodTypeAny, {
867
+ author: string;
868
+ componentId: string;
869
+ versionId: string;
870
+ version: string;
871
+ slug: string;
872
+ installedAt: string;
873
+ }, {
874
+ author: string;
875
+ componentId: string;
876
+ versionId: string;
877
+ version: string;
878
+ slug: string;
879
+ installedAt: string;
880
+ }>>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ matcher: string;
883
+ hooks: {
884
+ command: string;
885
+ type: "command";
886
+ }[];
887
+ _tenfold?: {
888
+ author: string;
889
+ componentId: string;
890
+ versionId: string;
891
+ version: string;
892
+ slug: string;
893
+ installedAt: string;
894
+ } | undefined;
895
+ }, {
896
+ matcher: string;
897
+ hooks: {
898
+ command: string;
899
+ type: "command";
900
+ }[];
901
+ _tenfold?: {
902
+ author: string;
903
+ componentId: string;
904
+ versionId: string;
905
+ version: string;
906
+ slug: string;
907
+ installedAt: string;
908
+ } | undefined;
909
+ }>, "many">>;
910
+ }, "strip", z.ZodTypeAny, {
911
+ PreToolUse?: {
912
+ matcher: string;
913
+ hooks: {
914
+ command: string;
915
+ type: "command";
916
+ }[];
917
+ _tenfold?: {
918
+ author: string;
919
+ componentId: string;
920
+ versionId: string;
921
+ version: string;
922
+ slug: string;
923
+ installedAt: string;
924
+ } | undefined;
925
+ }[] | undefined;
926
+ PostToolUse?: {
927
+ matcher: string;
928
+ hooks: {
929
+ command: string;
930
+ type: "command";
931
+ }[];
932
+ _tenfold?: {
933
+ author: string;
934
+ componentId: string;
935
+ versionId: string;
936
+ version: string;
937
+ slug: string;
938
+ installedAt: string;
939
+ } | undefined;
940
+ }[] | undefined;
941
+ Stop?: {
942
+ matcher: string;
943
+ hooks: {
944
+ command: string;
945
+ type: "command";
946
+ }[];
947
+ _tenfold?: {
948
+ author: string;
949
+ componentId: string;
950
+ versionId: string;
951
+ version: string;
952
+ slug: string;
953
+ installedAt: string;
954
+ } | undefined;
955
+ }[] | undefined;
956
+ Start?: {
957
+ matcher: string;
958
+ hooks: {
959
+ command: string;
960
+ type: "command";
961
+ }[];
962
+ _tenfold?: {
963
+ author: string;
964
+ componentId: string;
965
+ versionId: string;
966
+ version: string;
967
+ slug: string;
968
+ installedAt: string;
969
+ } | undefined;
970
+ }[] | undefined;
971
+ Subagent?: {
972
+ matcher: string;
973
+ hooks: {
974
+ command: string;
975
+ type: "command";
976
+ }[];
977
+ _tenfold?: {
978
+ author: string;
979
+ componentId: string;
980
+ versionId: string;
981
+ version: string;
982
+ slug: string;
983
+ installedAt: string;
984
+ } | undefined;
985
+ }[] | undefined;
986
+ }, {
987
+ PreToolUse?: {
988
+ matcher: string;
989
+ hooks: {
990
+ command: string;
991
+ type: "command";
992
+ }[];
993
+ _tenfold?: {
994
+ author: string;
995
+ componentId: string;
996
+ versionId: string;
997
+ version: string;
998
+ slug: string;
999
+ installedAt: string;
1000
+ } | undefined;
1001
+ }[] | undefined;
1002
+ PostToolUse?: {
1003
+ matcher: string;
1004
+ hooks: {
1005
+ command: string;
1006
+ type: "command";
1007
+ }[];
1008
+ _tenfold?: {
1009
+ author: string;
1010
+ componentId: string;
1011
+ versionId: string;
1012
+ version: string;
1013
+ slug: string;
1014
+ installedAt: string;
1015
+ } | undefined;
1016
+ }[] | undefined;
1017
+ Stop?: {
1018
+ matcher: string;
1019
+ hooks: {
1020
+ command: string;
1021
+ type: "command";
1022
+ }[];
1023
+ _tenfold?: {
1024
+ author: string;
1025
+ componentId: string;
1026
+ versionId: string;
1027
+ version: string;
1028
+ slug: string;
1029
+ installedAt: string;
1030
+ } | undefined;
1031
+ }[] | undefined;
1032
+ Start?: {
1033
+ matcher: string;
1034
+ hooks: {
1035
+ command: string;
1036
+ type: "command";
1037
+ }[];
1038
+ _tenfold?: {
1039
+ author: string;
1040
+ componentId: string;
1041
+ versionId: string;
1042
+ version: string;
1043
+ slug: string;
1044
+ installedAt: string;
1045
+ } | undefined;
1046
+ }[] | undefined;
1047
+ Subagent?: {
1048
+ matcher: string;
1049
+ hooks: {
1050
+ command: string;
1051
+ type: "command";
1052
+ }[];
1053
+ _tenfold?: {
1054
+ author: string;
1055
+ componentId: string;
1056
+ versionId: string;
1057
+ version: string;
1058
+ slug: string;
1059
+ installedAt: string;
1060
+ } | undefined;
1061
+ }[] | undefined;
1062
+ }>>;
1063
+ }, "strip", z.ZodTypeAny, {
1064
+ hooks?: {
1065
+ PreToolUse?: {
1066
+ matcher: string;
1067
+ hooks: {
1068
+ command: string;
1069
+ type: "command";
1070
+ }[];
1071
+ _tenfold?: {
1072
+ author: string;
1073
+ componentId: string;
1074
+ versionId: string;
1075
+ version: string;
1076
+ slug: string;
1077
+ installedAt: string;
1078
+ } | undefined;
1079
+ }[] | undefined;
1080
+ PostToolUse?: {
1081
+ matcher: string;
1082
+ hooks: {
1083
+ command: string;
1084
+ type: "command";
1085
+ }[];
1086
+ _tenfold?: {
1087
+ author: string;
1088
+ componentId: string;
1089
+ versionId: string;
1090
+ version: string;
1091
+ slug: string;
1092
+ installedAt: string;
1093
+ } | undefined;
1094
+ }[] | undefined;
1095
+ Stop?: {
1096
+ matcher: string;
1097
+ hooks: {
1098
+ command: string;
1099
+ type: "command";
1100
+ }[];
1101
+ _tenfold?: {
1102
+ author: string;
1103
+ componentId: string;
1104
+ versionId: string;
1105
+ version: string;
1106
+ slug: string;
1107
+ installedAt: string;
1108
+ } | undefined;
1109
+ }[] | undefined;
1110
+ Start?: {
1111
+ matcher: string;
1112
+ hooks: {
1113
+ command: string;
1114
+ type: "command";
1115
+ }[];
1116
+ _tenfold?: {
1117
+ author: string;
1118
+ componentId: string;
1119
+ versionId: string;
1120
+ version: string;
1121
+ slug: string;
1122
+ installedAt: string;
1123
+ } | undefined;
1124
+ }[] | undefined;
1125
+ Subagent?: {
1126
+ matcher: string;
1127
+ hooks: {
1128
+ command: string;
1129
+ type: "command";
1130
+ }[];
1131
+ _tenfold?: {
1132
+ author: string;
1133
+ componentId: string;
1134
+ versionId: string;
1135
+ version: string;
1136
+ slug: string;
1137
+ installedAt: string;
1138
+ } | undefined;
1139
+ }[] | undefined;
1140
+ } | undefined;
1141
+ }, {
1142
+ hooks?: {
1143
+ PreToolUse?: {
1144
+ matcher: string;
1145
+ hooks: {
1146
+ command: string;
1147
+ type: "command";
1148
+ }[];
1149
+ _tenfold?: {
1150
+ author: string;
1151
+ componentId: string;
1152
+ versionId: string;
1153
+ version: string;
1154
+ slug: string;
1155
+ installedAt: string;
1156
+ } | undefined;
1157
+ }[] | undefined;
1158
+ PostToolUse?: {
1159
+ matcher: string;
1160
+ hooks: {
1161
+ command: string;
1162
+ type: "command";
1163
+ }[];
1164
+ _tenfold?: {
1165
+ author: string;
1166
+ componentId: string;
1167
+ versionId: string;
1168
+ version: string;
1169
+ slug: string;
1170
+ installedAt: string;
1171
+ } | undefined;
1172
+ }[] | undefined;
1173
+ Stop?: {
1174
+ matcher: string;
1175
+ hooks: {
1176
+ command: string;
1177
+ type: "command";
1178
+ }[];
1179
+ _tenfold?: {
1180
+ author: string;
1181
+ componentId: string;
1182
+ versionId: string;
1183
+ version: string;
1184
+ slug: string;
1185
+ installedAt: string;
1186
+ } | undefined;
1187
+ }[] | undefined;
1188
+ Start?: {
1189
+ matcher: string;
1190
+ hooks: {
1191
+ command: string;
1192
+ type: "command";
1193
+ }[];
1194
+ _tenfold?: {
1195
+ author: string;
1196
+ componentId: string;
1197
+ versionId: string;
1198
+ version: string;
1199
+ slug: string;
1200
+ installedAt: string;
1201
+ } | undefined;
1202
+ }[] | undefined;
1203
+ Subagent?: {
1204
+ matcher: string;
1205
+ hooks: {
1206
+ command: string;
1207
+ type: "command";
1208
+ }[];
1209
+ _tenfold?: {
1210
+ author: string;
1211
+ componentId: string;
1212
+ versionId: string;
1213
+ version: string;
1214
+ slug: string;
1215
+ installedAt: string;
1216
+ } | undefined;
1217
+ }[] | undefined;
1218
+ } | undefined;
1219
+ }>;
1220
+ type ClaudeSettings = z.infer<typeof ClaudeSettingsSchema>;
1221
+ declare const McpServerEntrySchema: z.ZodObject<{
1222
+ command: z.ZodString;
1223
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1224
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1225
+ _tenfold: z.ZodOptional<z.ZodObject<{
1226
+ componentId: z.ZodString;
1227
+ versionId: z.ZodString;
1228
+ version: z.ZodString;
1229
+ author: z.ZodString;
1230
+ slug: z.ZodString;
1231
+ installedAt: z.ZodString;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ author: string;
1234
+ componentId: string;
1235
+ versionId: string;
1236
+ version: string;
1237
+ slug: string;
1238
+ installedAt: string;
1239
+ }, {
1240
+ author: string;
1241
+ componentId: string;
1242
+ versionId: string;
1243
+ version: string;
1244
+ slug: string;
1245
+ installedAt: string;
1246
+ }>>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ command: string;
1249
+ _tenfold?: {
1250
+ author: string;
1251
+ componentId: string;
1252
+ versionId: string;
1253
+ version: string;
1254
+ slug: string;
1255
+ installedAt: string;
1256
+ } | undefined;
1257
+ args?: string[] | undefined;
1258
+ env?: Record<string, string> | undefined;
1259
+ }, {
1260
+ command: string;
1261
+ _tenfold?: {
1262
+ author: string;
1263
+ componentId: string;
1264
+ versionId: string;
1265
+ version: string;
1266
+ slug: string;
1267
+ installedAt: string;
1268
+ } | undefined;
1269
+ args?: string[] | undefined;
1270
+ env?: Record<string, string> | undefined;
1271
+ }>;
1272
+ type McpServerEntry = z.infer<typeof McpServerEntrySchema>;
1273
+ declare const McpConfigSchema: z.ZodObject<{
1274
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1275
+ command: z.ZodString;
1276
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1277
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1278
+ _tenfold: z.ZodOptional<z.ZodObject<{
1279
+ componentId: z.ZodString;
1280
+ versionId: z.ZodString;
1281
+ version: z.ZodString;
1282
+ author: z.ZodString;
1283
+ slug: z.ZodString;
1284
+ installedAt: z.ZodString;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ author: string;
1287
+ componentId: string;
1288
+ versionId: string;
1289
+ version: string;
1290
+ slug: string;
1291
+ installedAt: string;
1292
+ }, {
1293
+ author: string;
1294
+ componentId: string;
1295
+ versionId: string;
1296
+ version: string;
1297
+ slug: string;
1298
+ installedAt: string;
1299
+ }>>;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ command: string;
1302
+ _tenfold?: {
1303
+ author: string;
1304
+ componentId: string;
1305
+ versionId: string;
1306
+ version: string;
1307
+ slug: string;
1308
+ installedAt: string;
1309
+ } | undefined;
1310
+ args?: string[] | undefined;
1311
+ env?: Record<string, string> | undefined;
1312
+ }, {
1313
+ command: string;
1314
+ _tenfold?: {
1315
+ author: string;
1316
+ componentId: string;
1317
+ versionId: string;
1318
+ version: string;
1319
+ slug: string;
1320
+ installedAt: string;
1321
+ } | undefined;
1322
+ args?: string[] | undefined;
1323
+ env?: Record<string, string> | undefined;
1324
+ }>>>;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ mcpServers?: Record<string, {
1327
+ command: string;
1328
+ _tenfold?: {
1329
+ author: string;
1330
+ componentId: string;
1331
+ versionId: string;
1332
+ version: string;
1333
+ slug: string;
1334
+ installedAt: string;
1335
+ } | undefined;
1336
+ args?: string[] | undefined;
1337
+ env?: Record<string, string> | undefined;
1338
+ }> | undefined;
1339
+ }, {
1340
+ mcpServers?: Record<string, {
1341
+ command: string;
1342
+ _tenfold?: {
1343
+ author: string;
1344
+ componentId: string;
1345
+ versionId: string;
1346
+ version: string;
1347
+ slug: string;
1348
+ installedAt: string;
1349
+ } | undefined;
1350
+ args?: string[] | undefined;
1351
+ env?: Record<string, string> | undefined;
1352
+ }> | undefined;
1353
+ }>;
1354
+ type McpConfig = z.infer<typeof McpConfigSchema>;
1355
+ declare const CredentialsSchema: z.ZodObject<{
1356
+ apiKey: z.ZodOptional<z.ZodString>;
1357
+ userId: z.ZodOptional<z.ZodString>;
1358
+ createdAt: z.ZodOptional<z.ZodString>;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ apiKey?: string | undefined;
1361
+ userId?: string | undefined;
1362
+ createdAt?: string | undefined;
1363
+ }, {
1364
+ apiKey?: string | undefined;
1365
+ userId?: string | undefined;
1366
+ createdAt?: string | undefined;
1367
+ }>;
1368
+ type Credentials = z.infer<typeof CredentialsSchema>;
1369
+ interface InstallOptions$1 {
1370
+ force?: boolean;
1371
+ dryRun?: boolean;
1372
+ version?: string;
1373
+ claudeMdStrategy?: "append" | "replace" | "section";
1374
+ }
1375
+ interface InstallResult {
1376
+ success: boolean;
1377
+ component: {
1378
+ slug: string;
1379
+ type: ComponentType;
1380
+ version: string;
1381
+ author: string;
1382
+ };
1383
+ targetFiles: TargetFile[];
1384
+ conflicts?: ConflictInfo[];
1385
+ }
1386
+ interface ConflictInfo {
1387
+ type: "mcp_server_name" | "hook_duplicate" | "command_slug" | "claude_md_section";
1388
+ severity: "blocking" | "warning";
1389
+ existing: {
1390
+ source: string;
1391
+ version: string;
1392
+ };
1393
+ incoming: {
1394
+ source: string;
1395
+ version: string;
1396
+ };
1397
+ }
1398
+ declare function createEmptyManifest(): InstalledManifest;
1399
+
1400
+ type MergeStrategy = "append" | "replace" | "section";
1401
+
1402
+ /**
1403
+ * Central config manager that orchestrates all file managers
1404
+ */
1405
+ interface InstallOptions {
1406
+ force?: boolean;
1407
+ dryRun?: boolean;
1408
+ claudeMdStrategy?: MergeStrategy;
1409
+ }
1410
+ declare class ConfigManager {
1411
+ private installed;
1412
+ private settings;
1413
+ private mcp;
1414
+ private claudeMd;
1415
+ private commands;
1416
+ private skills;
1417
+ constructor();
1418
+ private createMetadata;
1419
+ detectConflicts(component: Component, version: ComponentVersion): Promise<ConflictInfo[]>;
1420
+ installComponent(component: Component, version: ComponentVersion, options?: InstallOptions): Promise<InstallResult>;
1421
+ uninstallComponent(slug: string): Promise<boolean>;
1422
+ getInstalledComponents(): Promise<InstalledComponent[]>;
1423
+ isInstalled(slug: string): Promise<boolean>;
1424
+ getInstalledVersion(slug: string): Promise<string | null>;
1425
+ getHookDefinition(slug: string): Promise<HookContent | null>;
1426
+ }
1427
+ declare function getConfigManager(): ConfigManager;
1428
+
1429
+ declare function createProgram(): Command;
1430
+
1431
+ export { type AgentContent, type ApiConfig, type AttributionEntry, type AttributionSnapshot, type Author, type Bundle, type BundleItem, type BundleWithItems, COMPONENT_ICONS, type Category, type ClaudeSettings, ClaudeSettingsSchema, type CommandContent, type Component, type ComponentContent, type ComponentType, type ComponentVersion, type ComponentWithVersions, ConfigManager, type ConflictInfo, type Credentials, CredentialsSchema, DEFAULT_API_CONFIG, type FieldType, type ForkComponentInput, type ForkComponentResult, type GetAttributionInput, type GetBundleInput, type GetComponentInput, type GetComponentVersionInput, type HookContent, HookDefinitionSchema, type HookEntry, HookEntrySchema, type InstallOptions$1 as InstallOptions, type InstallResult, type InstalledComponent, InstalledComponentSchema, type InstalledManifest, InstalledManifestSchema, type InstructionContent, type LinkType, type ListBundlesInput, type ListBundlesResult, type ListComponentsInput, type ListComponentsResult, type McpConfig, McpConfigSchema, type McpServerContent, type McpServerEntry, McpServerEntrySchema, type SearchOptions, type SearchResult, type SkillContent, type TargetFile, TargetFileSchema, TenfoldApiClient, type TenfoldMetadata, TenfoldMetadataSchema, type TrackBundleInstallInput, type TrackComponentInstallInput, type TrpcError, type TrpcResponse, createEmptyManifest, createProgram, getApiClient, getComponentIcon, getConfigManager, isAgentContent, isCommandContent, isHookContent, isInstructionContent, isMcpServerContent, isSkillContent };