@visualprd/mcp-server 1.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.
Files changed (58) hide show
  1. package/README.md +396 -0
  2. package/dist/cli.d.ts +9 -0
  3. package/dist/cli.d.ts.map +1 -0
  4. package/dist/cli.js +27 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/index.d.ts +20 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +243 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/intelligence/context-optimizer.d.ts +93 -0
  11. package/dist/intelligence/context-optimizer.d.ts.map +1 -0
  12. package/dist/intelligence/context-optimizer.js +481 -0
  13. package/dist/intelligence/context-optimizer.js.map +1 -0
  14. package/dist/intelligence/error-analyzer.d.ts +49 -0
  15. package/dist/intelligence/error-analyzer.d.ts.map +1 -0
  16. package/dist/intelligence/error-analyzer.js +765 -0
  17. package/dist/intelligence/error-analyzer.js.map +1 -0
  18. package/dist/intelligence/gap-filler.d.ts +56 -0
  19. package/dist/intelligence/gap-filler.d.ts.map +1 -0
  20. package/dist/intelligence/gap-filler.js +410 -0
  21. package/dist/intelligence/gap-filler.js.map +1 -0
  22. package/dist/intelligence/guidance-generator.d.ts +43 -0
  23. package/dist/intelligence/guidance-generator.d.ts.map +1 -0
  24. package/dist/intelligence/guidance-generator.js +314 -0
  25. package/dist/intelligence/guidance-generator.js.map +1 -0
  26. package/dist/intelligence/index.d.ts +132 -0
  27. package/dist/intelligence/index.d.ts.map +1 -0
  28. package/dist/intelligence/index.js +683 -0
  29. package/dist/intelligence/index.js.map +1 -0
  30. package/dist/server-http.d.ts +9 -0
  31. package/dist/server-http.d.ts.map +1 -0
  32. package/dist/server-http.js +141 -0
  33. package/dist/server-http.js.map +1 -0
  34. package/dist/services/api-key-service.d.ts +68 -0
  35. package/dist/services/api-key-service.d.ts.map +1 -0
  36. package/dist/services/api-key-service.js +298 -0
  37. package/dist/services/api-key-service.js.map +1 -0
  38. package/dist/services/llm-client.d.ts +66 -0
  39. package/dist/services/llm-client.d.ts.map +1 -0
  40. package/dist/services/llm-client.js +141 -0
  41. package/dist/services/llm-client.js.map +1 -0
  42. package/dist/services/model-registry.d.ts +135 -0
  43. package/dist/services/model-registry.d.ts.map +1 -0
  44. package/dist/services/model-registry.js +276 -0
  45. package/dist/services/model-registry.js.map +1 -0
  46. package/dist/services/visualprd-client.d.ts +191 -0
  47. package/dist/services/visualprd-client.d.ts.map +1 -0
  48. package/dist/services/visualprd-client.js +805 -0
  49. package/dist/services/visualprd-client.js.map +1 -0
  50. package/dist/tools/index.d.ts +803 -0
  51. package/dist/tools/index.d.ts.map +1 -0
  52. package/dist/tools/index.js +570 -0
  53. package/dist/tools/index.js.map +1 -0
  54. package/dist/types/index.d.ts +497 -0
  55. package/dist/types/index.d.ts.map +1 -0
  56. package/dist/types/index.js +8 -0
  57. package/dist/types/index.js.map +1 -0
  58. package/package.json +48 -0
@@ -0,0 +1,803 @@
1
+ /**
2
+ * MCP Tools
3
+ *
4
+ * Defines the tools exposed to AI agents via the MCP protocol.
5
+ * Each tool has a schema definition and handler function.
6
+ */
7
+ import { z } from 'zod';
8
+ import { IntelligenceLayer } from '../intelligence/index.js';
9
+ export declare const ToolSchemas: {
10
+ get_next_build_step: z.ZodObject<{
11
+ skipCompleted: z.ZodOptional<z.ZodBoolean>;
12
+ preferCategory: z.ZodOptional<z.ZodEnum<["scaffold", "database", "pages", "integration", "testing", "deployment", "feature", "bugfix"]>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ skipCompleted?: boolean | undefined;
15
+ preferCategory?: "scaffold" | "database" | "pages" | "integration" | "testing" | "deployment" | "feature" | "bugfix" | undefined;
16
+ }, {
17
+ skipCompleted?: boolean | undefined;
18
+ preferCategory?: "scaffold" | "database" | "pages" | "integration" | "testing" | "deployment" | "feature" | "bugfix" | undefined;
19
+ }>;
20
+ mark_step_complete: z.ZodObject<{
21
+ promptId: z.ZodString;
22
+ completionNotes: z.ZodOptional<z.ZodString>;
23
+ filesCreated: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
+ testResults: z.ZodOptional<z.ZodObject<{
25
+ passed: z.ZodNumber;
26
+ failed: z.ZodNumber;
27
+ skipped: z.ZodOptional<z.ZodNumber>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ failed: number;
30
+ passed: number;
31
+ skipped?: number | undefined;
32
+ }, {
33
+ failed: number;
34
+ passed: number;
35
+ skipped?: number | undefined;
36
+ }>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ promptId: string;
39
+ completionNotes?: string | undefined;
40
+ filesCreated?: string[] | undefined;
41
+ testResults?: {
42
+ failed: number;
43
+ passed: number;
44
+ skipped?: number | undefined;
45
+ } | undefined;
46
+ }, {
47
+ promptId: string;
48
+ completionNotes?: string | undefined;
49
+ filesCreated?: string[] | undefined;
50
+ testResults?: {
51
+ failed: number;
52
+ passed: number;
53
+ skipped?: number | undefined;
54
+ } | undefined;
55
+ }>;
56
+ report_error: z.ZodObject<{
57
+ promptId: z.ZodString;
58
+ errorType: z.ZodEnum<["compile_error", "runtime_error", "test_failure", "missing_dependency", "other"]>;
59
+ errorMessage: z.ZodString;
60
+ stackTrace: z.ZodOptional<z.ZodString>;
61
+ context: z.ZodOptional<z.ZodString>;
62
+ affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ promptId: string;
65
+ errorType: "other" | "compile_error" | "runtime_error" | "test_failure" | "missing_dependency";
66
+ errorMessage: string;
67
+ stackTrace?: string | undefined;
68
+ context?: string | undefined;
69
+ affectedFiles?: string[] | undefined;
70
+ }, {
71
+ promptId: string;
72
+ errorType: "other" | "compile_error" | "runtime_error" | "test_failure" | "missing_dependency";
73
+ errorMessage: string;
74
+ stackTrace?: string | undefined;
75
+ context?: string | undefined;
76
+ affectedFiles?: string[] | undefined;
77
+ }>;
78
+ get_entity_details: z.ZodObject<{
79
+ entityType: z.ZodEnum<["page", "schema", "endpoint", "tech"]>;
80
+ entityId: z.ZodString;
81
+ includeRelationships: z.ZodOptional<z.ZodBoolean>;
82
+ includeUsageExamples: z.ZodOptional<z.ZodBoolean>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ entityType: "page" | "schema" | "endpoint" | "tech";
85
+ entityId: string;
86
+ includeRelationships?: boolean | undefined;
87
+ includeUsageExamples?: boolean | undefined;
88
+ }, {
89
+ entityType: "page" | "schema" | "endpoint" | "tech";
90
+ entityId: string;
91
+ includeRelationships?: boolean | undefined;
92
+ includeUsageExamples?: boolean | undefined;
93
+ }>;
94
+ get_debug_suggestions: z.ZodObject<{
95
+ currentTask: z.ZodString;
96
+ issue: z.ZodString;
97
+ context: z.ZodOptional<z.ZodString>;
98
+ attemptedSolutions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ currentTask: string;
101
+ issue: string;
102
+ context?: string | undefined;
103
+ attemptedSolutions?: string[] | undefined;
104
+ }, {
105
+ currentTask: string;
106
+ issue: string;
107
+ context?: string | undefined;
108
+ attemptedSolutions?: string[] | undefined;
109
+ }>;
110
+ inject_dynamic_step: z.ZodObject<{
111
+ insertAfter: z.ZodString;
112
+ title: z.ZodString;
113
+ category: z.ZodEnum<["scaffold", "database", "pages", "integration", "testing", "deployment", "feature", "bugfix"]>;
114
+ reason: z.ZodString;
115
+ instruction: z.ZodString;
116
+ relatedEntities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
117
+ estimatedMinutes: z.ZodOptional<z.ZodNumber>;
118
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ title: string;
121
+ category: "scaffold" | "database" | "pages" | "integration" | "testing" | "deployment" | "feature" | "bugfix";
122
+ instruction: string;
123
+ insertAfter: string;
124
+ reason: string;
125
+ estimatedMinutes?: number | undefined;
126
+ dependsOn?: string[] | undefined;
127
+ relatedEntities?: string[] | undefined;
128
+ }, {
129
+ title: string;
130
+ category: "scaffold" | "database" | "pages" | "integration" | "testing" | "deployment" | "feature" | "bugfix";
131
+ instruction: string;
132
+ insertAfter: string;
133
+ reason: string;
134
+ estimatedMinutes?: number | undefined;
135
+ dependsOn?: string[] | undefined;
136
+ relatedEntities?: string[] | undefined;
137
+ }>;
138
+ get_build_progress: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
139
+ get_design_system: z.ZodObject<{
140
+ section: z.ZodOptional<z.ZodEnum<["all", "colors", "typography", "spacing", "components"]>>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ section?: "typography" | "spacing" | "all" | "colors" | "components" | undefined;
143
+ }, {
144
+ section?: "typography" | "spacing" | "all" | "colors" | "components" | undefined;
145
+ }>;
146
+ set_thinking_model: z.ZodObject<{
147
+ model: z.ZodString;
148
+ }, "strip", z.ZodTypeAny, {
149
+ model: string;
150
+ }, {
151
+ model: string;
152
+ }>;
153
+ set_intelligence_mode: z.ZodObject<{
154
+ mode: z.ZodEnum<["fast", "deep"]>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ mode: "fast" | "deep";
157
+ }, {
158
+ mode: "fast" | "deep";
159
+ }>;
160
+ get_next_step_v2: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
161
+ submit_work: z.ZodObject<{
162
+ promptId: z.ZodString;
163
+ summary: z.ZodString;
164
+ filesCreated: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
165
+ errorsEncountered: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
166
+ notesForReview: z.ZodOptional<z.ZodString>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ promptId: string;
169
+ summary: string;
170
+ filesCreated?: string[] | undefined;
171
+ errorsEncountered?: string[] | undefined;
172
+ notesForReview?: string | undefined;
173
+ }, {
174
+ promptId: string;
175
+ summary: string;
176
+ filesCreated?: string[] | undefined;
177
+ errorsEncountered?: string[] | undefined;
178
+ notesForReview?: string | undefined;
179
+ }>;
180
+ get_build_progress_v2: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
181
+ };
182
+ export declare const ToolDefinitions: ({
183
+ name: string;
184
+ description: string;
185
+ inputSchema: {
186
+ type: string;
187
+ properties: {
188
+ skipCompleted: {
189
+ type: string;
190
+ description: string;
191
+ };
192
+ preferCategory: {
193
+ type: string;
194
+ enum: string[];
195
+ description: string;
196
+ };
197
+ promptId?: undefined;
198
+ completionNotes?: undefined;
199
+ filesCreated?: undefined;
200
+ testResults?: undefined;
201
+ errorType?: undefined;
202
+ errorMessage?: undefined;
203
+ stackTrace?: undefined;
204
+ context?: undefined;
205
+ affectedFiles?: undefined;
206
+ entityType?: undefined;
207
+ entityId?: undefined;
208
+ includeRelationships?: undefined;
209
+ includeUsageExamples?: undefined;
210
+ currentTask?: undefined;
211
+ issue?: undefined;
212
+ attemptedSolutions?: undefined;
213
+ insertAfter?: undefined;
214
+ title?: undefined;
215
+ category?: undefined;
216
+ reason?: undefined;
217
+ instruction?: undefined;
218
+ relatedEntities?: undefined;
219
+ estimatedMinutes?: undefined;
220
+ dependsOn?: undefined;
221
+ section?: undefined;
222
+ model?: undefined;
223
+ mode?: undefined;
224
+ summary?: undefined;
225
+ errorsEncountered?: undefined;
226
+ notesForReview?: undefined;
227
+ };
228
+ required?: undefined;
229
+ };
230
+ } | {
231
+ name: string;
232
+ description: string;
233
+ inputSchema: {
234
+ type: string;
235
+ properties: {
236
+ promptId: {
237
+ type: string;
238
+ description: string;
239
+ };
240
+ completionNotes: {
241
+ type: string;
242
+ description: string;
243
+ };
244
+ filesCreated: {
245
+ type: string;
246
+ items: {
247
+ type: string;
248
+ };
249
+ description: string;
250
+ };
251
+ testResults: {
252
+ type: string;
253
+ properties: {
254
+ passed: {
255
+ type: string;
256
+ };
257
+ failed: {
258
+ type: string;
259
+ };
260
+ skipped: {
261
+ type: string;
262
+ };
263
+ };
264
+ description: string;
265
+ };
266
+ skipCompleted?: undefined;
267
+ preferCategory?: undefined;
268
+ errorType?: undefined;
269
+ errorMessage?: undefined;
270
+ stackTrace?: undefined;
271
+ context?: undefined;
272
+ affectedFiles?: undefined;
273
+ entityType?: undefined;
274
+ entityId?: undefined;
275
+ includeRelationships?: undefined;
276
+ includeUsageExamples?: undefined;
277
+ currentTask?: undefined;
278
+ issue?: undefined;
279
+ attemptedSolutions?: undefined;
280
+ insertAfter?: undefined;
281
+ title?: undefined;
282
+ category?: undefined;
283
+ reason?: undefined;
284
+ instruction?: undefined;
285
+ relatedEntities?: undefined;
286
+ estimatedMinutes?: undefined;
287
+ dependsOn?: undefined;
288
+ section?: undefined;
289
+ model?: undefined;
290
+ mode?: undefined;
291
+ summary?: undefined;
292
+ errorsEncountered?: undefined;
293
+ notesForReview?: undefined;
294
+ };
295
+ required: string[];
296
+ };
297
+ } | {
298
+ name: string;
299
+ description: string;
300
+ inputSchema: {
301
+ type: string;
302
+ properties: {
303
+ promptId: {
304
+ type: string;
305
+ description: string;
306
+ };
307
+ errorType: {
308
+ type: string;
309
+ enum: string[];
310
+ description: string;
311
+ };
312
+ errorMessage: {
313
+ type: string;
314
+ description: string;
315
+ };
316
+ stackTrace: {
317
+ type: string;
318
+ description: string;
319
+ };
320
+ context: {
321
+ type: string;
322
+ description: string;
323
+ };
324
+ affectedFiles: {
325
+ type: string;
326
+ items: {
327
+ type: string;
328
+ };
329
+ description: string;
330
+ };
331
+ skipCompleted?: undefined;
332
+ preferCategory?: undefined;
333
+ completionNotes?: undefined;
334
+ filesCreated?: undefined;
335
+ testResults?: undefined;
336
+ entityType?: undefined;
337
+ entityId?: undefined;
338
+ includeRelationships?: undefined;
339
+ includeUsageExamples?: undefined;
340
+ currentTask?: undefined;
341
+ issue?: undefined;
342
+ attemptedSolutions?: undefined;
343
+ insertAfter?: undefined;
344
+ title?: undefined;
345
+ category?: undefined;
346
+ reason?: undefined;
347
+ instruction?: undefined;
348
+ relatedEntities?: undefined;
349
+ estimatedMinutes?: undefined;
350
+ dependsOn?: undefined;
351
+ section?: undefined;
352
+ model?: undefined;
353
+ mode?: undefined;
354
+ summary?: undefined;
355
+ errorsEncountered?: undefined;
356
+ notesForReview?: undefined;
357
+ };
358
+ required: string[];
359
+ };
360
+ } | {
361
+ name: string;
362
+ description: string;
363
+ inputSchema: {
364
+ type: string;
365
+ properties: {
366
+ entityType: {
367
+ type: string;
368
+ enum: string[];
369
+ description: string;
370
+ };
371
+ entityId: {
372
+ type: string;
373
+ description: string;
374
+ };
375
+ includeRelationships: {
376
+ type: string;
377
+ description: string;
378
+ };
379
+ includeUsageExamples: {
380
+ type: string;
381
+ description: string;
382
+ };
383
+ skipCompleted?: undefined;
384
+ preferCategory?: undefined;
385
+ promptId?: undefined;
386
+ completionNotes?: undefined;
387
+ filesCreated?: undefined;
388
+ testResults?: undefined;
389
+ errorType?: undefined;
390
+ errorMessage?: undefined;
391
+ stackTrace?: undefined;
392
+ context?: undefined;
393
+ affectedFiles?: undefined;
394
+ currentTask?: undefined;
395
+ issue?: undefined;
396
+ attemptedSolutions?: undefined;
397
+ insertAfter?: undefined;
398
+ title?: undefined;
399
+ category?: undefined;
400
+ reason?: undefined;
401
+ instruction?: undefined;
402
+ relatedEntities?: undefined;
403
+ estimatedMinutes?: undefined;
404
+ dependsOn?: undefined;
405
+ section?: undefined;
406
+ model?: undefined;
407
+ mode?: undefined;
408
+ summary?: undefined;
409
+ errorsEncountered?: undefined;
410
+ notesForReview?: undefined;
411
+ };
412
+ required: string[];
413
+ };
414
+ } | {
415
+ name: string;
416
+ description: string;
417
+ inputSchema: {
418
+ type: string;
419
+ properties: {
420
+ currentTask: {
421
+ type: string;
422
+ description: string;
423
+ };
424
+ issue: {
425
+ type: string;
426
+ description: string;
427
+ };
428
+ context: {
429
+ type: string;
430
+ description: string;
431
+ };
432
+ attemptedSolutions: {
433
+ type: string;
434
+ items: {
435
+ type: string;
436
+ };
437
+ description: string;
438
+ };
439
+ skipCompleted?: undefined;
440
+ preferCategory?: undefined;
441
+ promptId?: undefined;
442
+ completionNotes?: undefined;
443
+ filesCreated?: undefined;
444
+ testResults?: undefined;
445
+ errorType?: undefined;
446
+ errorMessage?: undefined;
447
+ stackTrace?: undefined;
448
+ affectedFiles?: undefined;
449
+ entityType?: undefined;
450
+ entityId?: undefined;
451
+ includeRelationships?: undefined;
452
+ includeUsageExamples?: undefined;
453
+ insertAfter?: undefined;
454
+ title?: undefined;
455
+ category?: undefined;
456
+ reason?: undefined;
457
+ instruction?: undefined;
458
+ relatedEntities?: undefined;
459
+ estimatedMinutes?: undefined;
460
+ dependsOn?: undefined;
461
+ section?: undefined;
462
+ model?: undefined;
463
+ mode?: undefined;
464
+ summary?: undefined;
465
+ errorsEncountered?: undefined;
466
+ notesForReview?: undefined;
467
+ };
468
+ required: string[];
469
+ };
470
+ } | {
471
+ name: string;
472
+ description: string;
473
+ inputSchema: {
474
+ type: string;
475
+ properties: {
476
+ insertAfter: {
477
+ type: string;
478
+ description: string;
479
+ };
480
+ title: {
481
+ type: string;
482
+ description: string;
483
+ };
484
+ category: {
485
+ type: string;
486
+ enum: string[];
487
+ description: string;
488
+ };
489
+ reason: {
490
+ type: string;
491
+ description: string;
492
+ };
493
+ instruction: {
494
+ type: string;
495
+ description: string;
496
+ };
497
+ relatedEntities: {
498
+ type: string;
499
+ items: {
500
+ type: string;
501
+ };
502
+ description: string;
503
+ };
504
+ estimatedMinutes: {
505
+ type: string;
506
+ description: string;
507
+ };
508
+ dependsOn: {
509
+ type: string;
510
+ items: {
511
+ type: string;
512
+ };
513
+ description: string;
514
+ };
515
+ skipCompleted?: undefined;
516
+ preferCategory?: undefined;
517
+ promptId?: undefined;
518
+ completionNotes?: undefined;
519
+ filesCreated?: undefined;
520
+ testResults?: undefined;
521
+ errorType?: undefined;
522
+ errorMessage?: undefined;
523
+ stackTrace?: undefined;
524
+ context?: undefined;
525
+ affectedFiles?: undefined;
526
+ entityType?: undefined;
527
+ entityId?: undefined;
528
+ includeRelationships?: undefined;
529
+ includeUsageExamples?: undefined;
530
+ currentTask?: undefined;
531
+ issue?: undefined;
532
+ attemptedSolutions?: undefined;
533
+ section?: undefined;
534
+ model?: undefined;
535
+ mode?: undefined;
536
+ summary?: undefined;
537
+ errorsEncountered?: undefined;
538
+ notesForReview?: undefined;
539
+ };
540
+ required: string[];
541
+ };
542
+ } | {
543
+ name: string;
544
+ description: string;
545
+ inputSchema: {
546
+ type: string;
547
+ properties: {
548
+ skipCompleted?: undefined;
549
+ preferCategory?: undefined;
550
+ promptId?: undefined;
551
+ completionNotes?: undefined;
552
+ filesCreated?: undefined;
553
+ testResults?: undefined;
554
+ errorType?: undefined;
555
+ errorMessage?: undefined;
556
+ stackTrace?: undefined;
557
+ context?: undefined;
558
+ affectedFiles?: undefined;
559
+ entityType?: undefined;
560
+ entityId?: undefined;
561
+ includeRelationships?: undefined;
562
+ includeUsageExamples?: undefined;
563
+ currentTask?: undefined;
564
+ issue?: undefined;
565
+ attemptedSolutions?: undefined;
566
+ insertAfter?: undefined;
567
+ title?: undefined;
568
+ category?: undefined;
569
+ reason?: undefined;
570
+ instruction?: undefined;
571
+ relatedEntities?: undefined;
572
+ estimatedMinutes?: undefined;
573
+ dependsOn?: undefined;
574
+ section?: undefined;
575
+ model?: undefined;
576
+ mode?: undefined;
577
+ summary?: undefined;
578
+ errorsEncountered?: undefined;
579
+ notesForReview?: undefined;
580
+ };
581
+ required?: undefined;
582
+ };
583
+ } | {
584
+ name: string;
585
+ description: string;
586
+ inputSchema: {
587
+ type: string;
588
+ properties: {
589
+ section: {
590
+ type: string;
591
+ enum: string[];
592
+ description: string;
593
+ };
594
+ skipCompleted?: undefined;
595
+ preferCategory?: undefined;
596
+ promptId?: undefined;
597
+ completionNotes?: undefined;
598
+ filesCreated?: undefined;
599
+ testResults?: undefined;
600
+ errorType?: undefined;
601
+ errorMessage?: undefined;
602
+ stackTrace?: undefined;
603
+ context?: undefined;
604
+ affectedFiles?: undefined;
605
+ entityType?: undefined;
606
+ entityId?: undefined;
607
+ includeRelationships?: undefined;
608
+ includeUsageExamples?: undefined;
609
+ currentTask?: undefined;
610
+ issue?: undefined;
611
+ attemptedSolutions?: undefined;
612
+ insertAfter?: undefined;
613
+ title?: undefined;
614
+ category?: undefined;
615
+ reason?: undefined;
616
+ instruction?: undefined;
617
+ relatedEntities?: undefined;
618
+ estimatedMinutes?: undefined;
619
+ dependsOn?: undefined;
620
+ model?: undefined;
621
+ mode?: undefined;
622
+ summary?: undefined;
623
+ errorsEncountered?: undefined;
624
+ notesForReview?: undefined;
625
+ };
626
+ required?: undefined;
627
+ };
628
+ } | {
629
+ name: string;
630
+ description: string;
631
+ inputSchema: {
632
+ type: string;
633
+ properties: {
634
+ model: {
635
+ type: string;
636
+ description: string;
637
+ };
638
+ skipCompleted?: undefined;
639
+ preferCategory?: undefined;
640
+ promptId?: undefined;
641
+ completionNotes?: undefined;
642
+ filesCreated?: undefined;
643
+ testResults?: undefined;
644
+ errorType?: undefined;
645
+ errorMessage?: undefined;
646
+ stackTrace?: undefined;
647
+ context?: undefined;
648
+ affectedFiles?: undefined;
649
+ entityType?: undefined;
650
+ entityId?: undefined;
651
+ includeRelationships?: undefined;
652
+ includeUsageExamples?: undefined;
653
+ currentTask?: undefined;
654
+ issue?: undefined;
655
+ attemptedSolutions?: undefined;
656
+ insertAfter?: undefined;
657
+ title?: undefined;
658
+ category?: undefined;
659
+ reason?: undefined;
660
+ instruction?: undefined;
661
+ relatedEntities?: undefined;
662
+ estimatedMinutes?: undefined;
663
+ dependsOn?: undefined;
664
+ section?: undefined;
665
+ mode?: undefined;
666
+ summary?: undefined;
667
+ errorsEncountered?: undefined;
668
+ notesForReview?: undefined;
669
+ };
670
+ required: string[];
671
+ };
672
+ } | {
673
+ name: string;
674
+ description: string;
675
+ inputSchema: {
676
+ type: string;
677
+ properties: {
678
+ mode: {
679
+ type: string;
680
+ enum: string[];
681
+ description: string;
682
+ };
683
+ skipCompleted?: undefined;
684
+ preferCategory?: undefined;
685
+ promptId?: undefined;
686
+ completionNotes?: undefined;
687
+ filesCreated?: undefined;
688
+ testResults?: undefined;
689
+ errorType?: undefined;
690
+ errorMessage?: undefined;
691
+ stackTrace?: undefined;
692
+ context?: undefined;
693
+ affectedFiles?: undefined;
694
+ entityType?: undefined;
695
+ entityId?: undefined;
696
+ includeRelationships?: undefined;
697
+ includeUsageExamples?: undefined;
698
+ currentTask?: undefined;
699
+ issue?: undefined;
700
+ attemptedSolutions?: undefined;
701
+ insertAfter?: undefined;
702
+ title?: undefined;
703
+ category?: undefined;
704
+ reason?: undefined;
705
+ instruction?: undefined;
706
+ relatedEntities?: undefined;
707
+ estimatedMinutes?: undefined;
708
+ dependsOn?: undefined;
709
+ section?: undefined;
710
+ model?: undefined;
711
+ summary?: undefined;
712
+ errorsEncountered?: undefined;
713
+ notesForReview?: undefined;
714
+ };
715
+ required: string[];
716
+ };
717
+ } | {
718
+ name: string;
719
+ description: string;
720
+ inputSchema: {
721
+ type: string;
722
+ properties: {
723
+ promptId: {
724
+ type: string;
725
+ description: string;
726
+ };
727
+ summary: {
728
+ type: string;
729
+ description: string;
730
+ };
731
+ filesCreated: {
732
+ type: string;
733
+ items: {
734
+ type: string;
735
+ };
736
+ description: string;
737
+ };
738
+ errorsEncountered: {
739
+ type: string;
740
+ items: {
741
+ type: string;
742
+ };
743
+ description: string;
744
+ };
745
+ notesForReview: {
746
+ type: string;
747
+ description: string;
748
+ };
749
+ skipCompleted?: undefined;
750
+ preferCategory?: undefined;
751
+ completionNotes?: undefined;
752
+ testResults?: undefined;
753
+ errorType?: undefined;
754
+ errorMessage?: undefined;
755
+ stackTrace?: undefined;
756
+ context?: undefined;
757
+ affectedFiles?: undefined;
758
+ entityType?: undefined;
759
+ entityId?: undefined;
760
+ includeRelationships?: undefined;
761
+ includeUsageExamples?: undefined;
762
+ currentTask?: undefined;
763
+ issue?: undefined;
764
+ attemptedSolutions?: undefined;
765
+ insertAfter?: undefined;
766
+ title?: undefined;
767
+ category?: undefined;
768
+ reason?: undefined;
769
+ instruction?: undefined;
770
+ relatedEntities?: undefined;
771
+ estimatedMinutes?: undefined;
772
+ dependsOn?: undefined;
773
+ section?: undefined;
774
+ model?: undefined;
775
+ mode?: undefined;
776
+ };
777
+ required: string[];
778
+ };
779
+ })[];
780
+ /**
781
+ * Tool Handlers
782
+ *
783
+ * Execute tool requests using the Intelligence Layer
784
+ */
785
+ export declare class ToolHandlers {
786
+ private intelligence;
787
+ constructor(intelligence: IntelligenceLayer);
788
+ handleToolCall(toolName: string, args: Record<string, any>): Promise<any>;
789
+ private handleGetNextStep;
790
+ private handleMarkComplete;
791
+ private handleReportError;
792
+ private handleGetEntity;
793
+ private handleGetDebugSuggestions;
794
+ private handleInjectStep;
795
+ private handleGetProgress;
796
+ private handleGetDesignSystem;
797
+ private handleSetThinkingModel;
798
+ private handleSetIntelligenceMode;
799
+ private handleGetNextStepV2;
800
+ private handleSubmitWork;
801
+ private handleGetProgressV2;
802
+ }
803
+ //# sourceMappingURL=index.d.ts.map