@ariaflowagents/config 0.7.0 → 0.8.1

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 (39) hide show
  1. package/dist/agent-architect/index.d.ts +10 -0
  2. package/dist/agent-architect/index.d.ts.map +1 -0
  3. package/dist/agent-architect/index.js +131 -0
  4. package/dist/agent-architect/index.js.map +1 -0
  5. package/dist/agent-architect/prompt-generator.d.ts +9 -0
  6. package/dist/agent-architect/prompt-generator.d.ts.map +1 -0
  7. package/dist/agent-architect/prompt-generator.js +155 -0
  8. package/dist/agent-architect/prompt-generator.js.map +1 -0
  9. package/dist/agent-architect/rfc-emitter.d.ts +18 -0
  10. package/dist/agent-architect/rfc-emitter.d.ts.map +1 -0
  11. package/dist/agent-architect/rfc-emitter.js +350 -0
  12. package/dist/agent-architect/rfc-emitter.js.map +1 -0
  13. package/dist/agent-architect/tool-recommender.d.ts +8 -0
  14. package/dist/agent-architect/tool-recommender.d.ts.map +1 -0
  15. package/dist/agent-architect/tool-recommender.js +87 -0
  16. package/dist/agent-architect/tool-recommender.js.map +1 -0
  17. package/dist/agent-architect/types.d.ts +904 -0
  18. package/dist/agent-architect/types.d.ts.map +1 -0
  19. package/dist/agent-architect/types.js +89 -0
  20. package/dist/agent-architect/types.js.map +1 -0
  21. package/dist/agent-architect/use-case-analyzer.d.ts +8 -0
  22. package/dist/agent-architect/use-case-analyzer.d.ts.map +1 -0
  23. package/dist/agent-architect/use-case-analyzer.js +76 -0
  24. package/dist/agent-architect/use-case-analyzer.js.map +1 -0
  25. package/dist/cli.d.ts +1 -0
  26. package/dist/cli.d.ts.map +1 -1
  27. package/dist/cli.js +890 -0
  28. package/dist/cli.js.map +1 -1
  29. package/dist/llm-flow-generator.d.ts.map +1 -1
  30. package/dist/llm-flow-generator.js +31 -73
  31. package/dist/llm-flow-generator.js.map +1 -1
  32. package/dist/loader.js +13 -13
  33. package/dist/loader.js.map +1 -1
  34. package/dist/prompt-lint.js +4 -4
  35. package/dist/prompt-lint.js.map +1 -1
  36. package/dist/types.d.ts +1 -1
  37. package/dist/types.d.ts.map +1 -1
  38. package/guide/README.md +95 -0
  39. package/package.json +10 -10
@@ -0,0 +1,904 @@
1
+ import { z } from 'zod';
2
+ export type AgentMode = 'llm' | 'flow' | 'hybrid';
3
+ export type AgentTarget = 'config' | 'code' | 'both';
4
+ export declare const DomainAnalysisSchema: z.ZodObject<{
5
+ domain: z.ZodString;
6
+ subDomain: z.ZodString;
7
+ entities: z.ZodArray<z.ZodString, "many">;
8
+ workflows: z.ZodArray<z.ZodString, "many">;
9
+ userIntents: z.ZodArray<z.ZodString, "many">;
10
+ keyOutcomes: z.ZodArray<z.ZodString, "many">;
11
+ constraints: z.ZodArray<z.ZodString, "many">;
12
+ }, "strip", z.ZodTypeAny, {
13
+ domain: string;
14
+ subDomain: string;
15
+ entities: string[];
16
+ workflows: string[];
17
+ userIntents: string[];
18
+ keyOutcomes: string[];
19
+ constraints: string[];
20
+ }, {
21
+ domain: string;
22
+ subDomain: string;
23
+ entities: string[];
24
+ workflows: string[];
25
+ userIntents: string[];
26
+ keyOutcomes: string[];
27
+ constraints: string[];
28
+ }>;
29
+ export type DomainAnalysis = {
30
+ domain: string;
31
+ subDomain?: string;
32
+ entities: string[];
33
+ workflows: string[];
34
+ userIntents: string[];
35
+ keyOutcomes: string[];
36
+ constraints?: string[];
37
+ };
38
+ export declare const ToolRecommendationSchema: z.ZodObject<{
39
+ toolName: z.ZodString;
40
+ description: z.ZodString;
41
+ reason: z.ZodString;
42
+ whenToUse: z.ZodString;
43
+ onError: z.ZodString;
44
+ priority: z.ZodEnum<["required", "recommended", "optional"]>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ description: string;
47
+ toolName: string;
48
+ priority: "optional" | "required" | "recommended";
49
+ reason: string;
50
+ whenToUse: string;
51
+ onError: string;
52
+ }, {
53
+ description: string;
54
+ toolName: string;
55
+ priority: "optional" | "required" | "recommended";
56
+ reason: string;
57
+ whenToUse: string;
58
+ onError: string;
59
+ }>;
60
+ export type ToolRecommendation = z.infer<typeof ToolRecommendationSchema>;
61
+ export declare const PromptLayerSchema: z.ZodObject<{
62
+ name: z.ZodString;
63
+ content: z.ZodString;
64
+ purpose: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ name: string;
67
+ content: string;
68
+ purpose: string;
69
+ }, {
70
+ name: string;
71
+ content: string;
72
+ purpose: string;
73
+ }>;
74
+ export type PromptLayer = z.infer<typeof PromptLayerSchema>;
75
+ export declare const SixLayerPromptSchema: z.ZodObject<{
76
+ identityAndRole: z.ZodObject<{
77
+ name: z.ZodString;
78
+ content: z.ZodString;
79
+ purpose: z.ZodString;
80
+ }, "strip", z.ZodTypeAny, {
81
+ name: string;
82
+ content: string;
83
+ purpose: string;
84
+ }, {
85
+ name: string;
86
+ content: string;
87
+ purpose: string;
88
+ }>;
89
+ safetyAndGuardrails: z.ZodObject<{
90
+ name: z.ZodString;
91
+ content: z.ZodString;
92
+ purpose: z.ZodString;
93
+ }, "strip", z.ZodTypeAny, {
94
+ name: string;
95
+ content: string;
96
+ purpose: string;
97
+ }, {
98
+ name: string;
99
+ content: string;
100
+ purpose: string;
101
+ }>;
102
+ toolContract: z.ZodObject<{
103
+ name: z.ZodString;
104
+ content: z.ZodString;
105
+ purpose: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ name: string;
108
+ content: string;
109
+ purpose: string;
110
+ }, {
111
+ name: string;
112
+ content: string;
113
+ purpose: string;
114
+ }>;
115
+ reasoningWorkflow: z.ZodObject<{
116
+ name: z.ZodString;
117
+ content: z.ZodString;
118
+ purpose: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ name: string;
121
+ content: string;
122
+ purpose: string;
123
+ }, {
124
+ name: string;
125
+ content: string;
126
+ purpose: string;
127
+ }>;
128
+ executionPolicy: z.ZodObject<{
129
+ name: z.ZodString;
130
+ content: z.ZodString;
131
+ purpose: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ name: string;
134
+ content: string;
135
+ purpose: string;
136
+ }, {
137
+ name: string;
138
+ content: string;
139
+ purpose: string;
140
+ }>;
141
+ outputConstraints: z.ZodObject<{
142
+ name: z.ZodString;
143
+ content: z.ZodString;
144
+ purpose: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ name: string;
147
+ content: string;
148
+ purpose: string;
149
+ }, {
150
+ name: string;
151
+ content: string;
152
+ purpose: string;
153
+ }>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ identityAndRole: {
156
+ name: string;
157
+ content: string;
158
+ purpose: string;
159
+ };
160
+ safetyAndGuardrails: {
161
+ name: string;
162
+ content: string;
163
+ purpose: string;
164
+ };
165
+ toolContract: {
166
+ name: string;
167
+ content: string;
168
+ purpose: string;
169
+ };
170
+ reasoningWorkflow: {
171
+ name: string;
172
+ content: string;
173
+ purpose: string;
174
+ };
175
+ executionPolicy: {
176
+ name: string;
177
+ content: string;
178
+ purpose: string;
179
+ };
180
+ outputConstraints: {
181
+ name: string;
182
+ content: string;
183
+ purpose: string;
184
+ };
185
+ }, {
186
+ identityAndRole: {
187
+ name: string;
188
+ content: string;
189
+ purpose: string;
190
+ };
191
+ safetyAndGuardrails: {
192
+ name: string;
193
+ content: string;
194
+ purpose: string;
195
+ };
196
+ toolContract: {
197
+ name: string;
198
+ content: string;
199
+ purpose: string;
200
+ };
201
+ reasoningWorkflow: {
202
+ name: string;
203
+ content: string;
204
+ purpose: string;
205
+ };
206
+ executionPolicy: {
207
+ name: string;
208
+ content: string;
209
+ purpose: string;
210
+ };
211
+ outputConstraints: {
212
+ name: string;
213
+ content: string;
214
+ purpose: string;
215
+ };
216
+ }>;
217
+ export type SixLayerPrompt = z.infer<typeof SixLayerPromptSchema>;
218
+ export declare const FlowNodeSchema: z.ZodObject<{
219
+ id: z.ZodString;
220
+ name: z.ZodString;
221
+ purpose: z.ZodString;
222
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
223
+ successCriteria: z.ZodArray<z.ZodString, "many">;
224
+ }, "strip", z.ZodTypeAny, {
225
+ name: string;
226
+ id: string;
227
+ purpose: string;
228
+ successCriteria: string[];
229
+ toolCalls?: string[] | undefined;
230
+ }, {
231
+ name: string;
232
+ id: string;
233
+ purpose: string;
234
+ successCriteria: string[];
235
+ toolCalls?: string[] | undefined;
236
+ }>;
237
+ export type FlowNode = z.infer<typeof FlowNodeSchema>;
238
+ export declare const FlowDesignSchema: z.ZodObject<{
239
+ nodes: z.ZodArray<z.ZodObject<{
240
+ id: z.ZodString;
241
+ name: z.ZodString;
242
+ purpose: z.ZodString;
243
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
244
+ successCriteria: z.ZodArray<z.ZodString, "many">;
245
+ }, "strip", z.ZodTypeAny, {
246
+ name: string;
247
+ id: string;
248
+ purpose: string;
249
+ successCriteria: string[];
250
+ toolCalls?: string[] | undefined;
251
+ }, {
252
+ name: string;
253
+ id: string;
254
+ purpose: string;
255
+ successCriteria: string[];
256
+ toolCalls?: string[] | undefined;
257
+ }>, "many">;
258
+ entryPoint: z.ZodString;
259
+ transitions: z.ZodArray<z.ZodObject<{
260
+ from: z.ZodString;
261
+ to: z.ZodString;
262
+ trigger: z.ZodString;
263
+ condition: z.ZodOptional<z.ZodString>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ from: string;
266
+ to: string;
267
+ trigger: string;
268
+ condition?: string | undefined;
269
+ }, {
270
+ from: string;
271
+ to: string;
272
+ trigger: string;
273
+ condition?: string | undefined;
274
+ }>, "many">;
275
+ }, "strip", z.ZodTypeAny, {
276
+ nodes: {
277
+ name: string;
278
+ id: string;
279
+ purpose: string;
280
+ successCriteria: string[];
281
+ toolCalls?: string[] | undefined;
282
+ }[];
283
+ transitions: {
284
+ from: string;
285
+ to: string;
286
+ trigger: string;
287
+ condition?: string | undefined;
288
+ }[];
289
+ entryPoint: string;
290
+ }, {
291
+ nodes: {
292
+ name: string;
293
+ id: string;
294
+ purpose: string;
295
+ successCriteria: string[];
296
+ toolCalls?: string[] | undefined;
297
+ }[];
298
+ transitions: {
299
+ from: string;
300
+ to: string;
301
+ trigger: string;
302
+ condition?: string | undefined;
303
+ }[];
304
+ entryPoint: string;
305
+ }>;
306
+ export type FlowDesign = z.infer<typeof FlowDesignSchema>;
307
+ export declare const ToolSpecificationSchema: z.ZodObject<{
308
+ name: z.ZodString;
309
+ description: z.ZodString;
310
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
311
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
312
+ integrationSteps: z.ZodArray<z.ZodString, "many">;
313
+ requiredAuth: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ name: string;
316
+ description: string;
317
+ inputSchema: Record<string, any>;
318
+ outputSchema: Record<string, any>;
319
+ integrationSteps: string[];
320
+ requiredAuth?: string[] | undefined;
321
+ }, {
322
+ name: string;
323
+ description: string;
324
+ inputSchema: Record<string, any>;
325
+ outputSchema: Record<string, any>;
326
+ integrationSteps: string[];
327
+ requiredAuth?: string[] | undefined;
328
+ }>;
329
+ export type ToolSpecification = z.infer<typeof ToolSpecificationSchema>;
330
+ export declare const ArchitectClarificationSchema: z.ZodObject<{
331
+ question: z.ZodString;
332
+ answer: z.ZodString;
333
+ }, "strip", z.ZodTypeAny, {
334
+ question: string;
335
+ answer: string;
336
+ }, {
337
+ question: string;
338
+ answer: string;
339
+ }>;
340
+ export type ArchitectClarification = z.infer<typeof ArchitectClarificationSchema>;
341
+ export declare const AgentBlueprintSchema: z.ZodObject<{
342
+ id: z.ZodString;
343
+ name: z.ZodString;
344
+ useCase: z.ZodString;
345
+ mode: z.ZodEnum<["llm", "flow", "hybrid"]>;
346
+ target: z.ZodEnum<["config", "code", "both"]>;
347
+ domainAnalysis: z.ZodObject<{
348
+ domain: z.ZodString;
349
+ subDomain: z.ZodString;
350
+ entities: z.ZodArray<z.ZodString, "many">;
351
+ workflows: z.ZodArray<z.ZodString, "many">;
352
+ userIntents: z.ZodArray<z.ZodString, "many">;
353
+ keyOutcomes: z.ZodArray<z.ZodString, "many">;
354
+ constraints: z.ZodArray<z.ZodString, "many">;
355
+ }, "strip", z.ZodTypeAny, {
356
+ domain: string;
357
+ subDomain: string;
358
+ entities: string[];
359
+ workflows: string[];
360
+ userIntents: string[];
361
+ keyOutcomes: string[];
362
+ constraints: string[];
363
+ }, {
364
+ domain: string;
365
+ subDomain: string;
366
+ entities: string[];
367
+ workflows: string[];
368
+ userIntents: string[];
369
+ keyOutcomes: string[];
370
+ constraints: string[];
371
+ }>;
372
+ selectedTools: z.ZodArray<z.ZodString, "many">;
373
+ toolRecommendations: z.ZodArray<z.ZodObject<{
374
+ toolName: z.ZodString;
375
+ description: z.ZodString;
376
+ reason: z.ZodString;
377
+ whenToUse: z.ZodString;
378
+ onError: z.ZodString;
379
+ priority: z.ZodEnum<["required", "recommended", "optional"]>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ description: string;
382
+ toolName: string;
383
+ priority: "optional" | "required" | "recommended";
384
+ reason: string;
385
+ whenToUse: string;
386
+ onError: string;
387
+ }, {
388
+ description: string;
389
+ toolName: string;
390
+ priority: "optional" | "required" | "recommended";
391
+ reason: string;
392
+ whenToUse: string;
393
+ onError: string;
394
+ }>, "many">;
395
+ toolPolicy: z.ZodRecord<z.ZodString, z.ZodString>;
396
+ promptLayers: z.ZodObject<{
397
+ identityAndRole: z.ZodObject<{
398
+ name: z.ZodString;
399
+ content: z.ZodString;
400
+ purpose: z.ZodString;
401
+ }, "strip", z.ZodTypeAny, {
402
+ name: string;
403
+ content: string;
404
+ purpose: string;
405
+ }, {
406
+ name: string;
407
+ content: string;
408
+ purpose: string;
409
+ }>;
410
+ safetyAndGuardrails: z.ZodObject<{
411
+ name: z.ZodString;
412
+ content: z.ZodString;
413
+ purpose: z.ZodString;
414
+ }, "strip", z.ZodTypeAny, {
415
+ name: string;
416
+ content: string;
417
+ purpose: string;
418
+ }, {
419
+ name: string;
420
+ content: string;
421
+ purpose: string;
422
+ }>;
423
+ toolContract: z.ZodObject<{
424
+ name: z.ZodString;
425
+ content: z.ZodString;
426
+ purpose: z.ZodString;
427
+ }, "strip", z.ZodTypeAny, {
428
+ name: string;
429
+ content: string;
430
+ purpose: string;
431
+ }, {
432
+ name: string;
433
+ content: string;
434
+ purpose: string;
435
+ }>;
436
+ reasoningWorkflow: z.ZodObject<{
437
+ name: z.ZodString;
438
+ content: z.ZodString;
439
+ purpose: z.ZodString;
440
+ }, "strip", z.ZodTypeAny, {
441
+ name: string;
442
+ content: string;
443
+ purpose: string;
444
+ }, {
445
+ name: string;
446
+ content: string;
447
+ purpose: string;
448
+ }>;
449
+ executionPolicy: z.ZodObject<{
450
+ name: z.ZodString;
451
+ content: z.ZodString;
452
+ purpose: z.ZodString;
453
+ }, "strip", z.ZodTypeAny, {
454
+ name: string;
455
+ content: string;
456
+ purpose: string;
457
+ }, {
458
+ name: string;
459
+ content: string;
460
+ purpose: string;
461
+ }>;
462
+ outputConstraints: z.ZodObject<{
463
+ name: z.ZodString;
464
+ content: z.ZodString;
465
+ purpose: z.ZodString;
466
+ }, "strip", z.ZodTypeAny, {
467
+ name: string;
468
+ content: string;
469
+ purpose: string;
470
+ }, {
471
+ name: string;
472
+ content: string;
473
+ purpose: string;
474
+ }>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ identityAndRole: {
477
+ name: string;
478
+ content: string;
479
+ purpose: string;
480
+ };
481
+ safetyAndGuardrails: {
482
+ name: string;
483
+ content: string;
484
+ purpose: string;
485
+ };
486
+ toolContract: {
487
+ name: string;
488
+ content: string;
489
+ purpose: string;
490
+ };
491
+ reasoningWorkflow: {
492
+ name: string;
493
+ content: string;
494
+ purpose: string;
495
+ };
496
+ executionPolicy: {
497
+ name: string;
498
+ content: string;
499
+ purpose: string;
500
+ };
501
+ outputConstraints: {
502
+ name: string;
503
+ content: string;
504
+ purpose: string;
505
+ };
506
+ }, {
507
+ identityAndRole: {
508
+ name: string;
509
+ content: string;
510
+ purpose: string;
511
+ };
512
+ safetyAndGuardrails: {
513
+ name: string;
514
+ content: string;
515
+ purpose: string;
516
+ };
517
+ toolContract: {
518
+ name: string;
519
+ content: string;
520
+ purpose: string;
521
+ };
522
+ reasoningWorkflow: {
523
+ name: string;
524
+ content: string;
525
+ purpose: string;
526
+ };
527
+ executionPolicy: {
528
+ name: string;
529
+ content: string;
530
+ purpose: string;
531
+ };
532
+ outputConstraints: {
533
+ name: string;
534
+ content: string;
535
+ purpose: string;
536
+ };
537
+ }>;
538
+ flowDesign: z.ZodOptional<z.ZodObject<{
539
+ nodes: z.ZodArray<z.ZodObject<{
540
+ id: z.ZodString;
541
+ name: z.ZodString;
542
+ purpose: z.ZodString;
543
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
544
+ successCriteria: z.ZodArray<z.ZodString, "many">;
545
+ }, "strip", z.ZodTypeAny, {
546
+ name: string;
547
+ id: string;
548
+ purpose: string;
549
+ successCriteria: string[];
550
+ toolCalls?: string[] | undefined;
551
+ }, {
552
+ name: string;
553
+ id: string;
554
+ purpose: string;
555
+ successCriteria: string[];
556
+ toolCalls?: string[] | undefined;
557
+ }>, "many">;
558
+ entryPoint: z.ZodString;
559
+ transitions: z.ZodArray<z.ZodObject<{
560
+ from: z.ZodString;
561
+ to: z.ZodString;
562
+ trigger: z.ZodString;
563
+ condition: z.ZodOptional<z.ZodString>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ from: string;
566
+ to: string;
567
+ trigger: string;
568
+ condition?: string | undefined;
569
+ }, {
570
+ from: string;
571
+ to: string;
572
+ trigger: string;
573
+ condition?: string | undefined;
574
+ }>, "many">;
575
+ }, "strip", z.ZodTypeAny, {
576
+ nodes: {
577
+ name: string;
578
+ id: string;
579
+ purpose: string;
580
+ successCriteria: string[];
581
+ toolCalls?: string[] | undefined;
582
+ }[];
583
+ transitions: {
584
+ from: string;
585
+ to: string;
586
+ trigger: string;
587
+ condition?: string | undefined;
588
+ }[];
589
+ entryPoint: string;
590
+ }, {
591
+ nodes: {
592
+ name: string;
593
+ id: string;
594
+ purpose: string;
595
+ successCriteria: string[];
596
+ toolCalls?: string[] | undefined;
597
+ }[];
598
+ transitions: {
599
+ from: string;
600
+ to: string;
601
+ trigger: string;
602
+ condition?: string | undefined;
603
+ }[];
604
+ entryPoint: string;
605
+ }>>;
606
+ evalPlan: z.ZodObject<{
607
+ scenarios: z.ZodArray<z.ZodString, "many">;
608
+ passCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ scenarios: string[];
611
+ passCriteria?: string[] | undefined;
612
+ }, {
613
+ scenarios: string[];
614
+ passCriteria?: string[] | undefined;
615
+ }>;
616
+ toolSpecifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
617
+ name: z.ZodString;
618
+ description: z.ZodString;
619
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
620
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
621
+ integrationSteps: z.ZodArray<z.ZodString, "many">;
622
+ requiredAuth: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ name: string;
625
+ description: string;
626
+ inputSchema: Record<string, any>;
627
+ outputSchema: Record<string, any>;
628
+ integrationSteps: string[];
629
+ requiredAuth?: string[] | undefined;
630
+ }, {
631
+ name: string;
632
+ description: string;
633
+ inputSchema: Record<string, any>;
634
+ outputSchema: Record<string, any>;
635
+ integrationSteps: string[];
636
+ requiredAuth?: string[] | undefined;
637
+ }>, "many">>;
638
+ generationMeta: z.ZodObject<{
639
+ generatedAt: z.ZodString;
640
+ model: z.ZodString;
641
+ llmRequired: z.ZodBoolean;
642
+ llmEnabled: z.ZodBoolean;
643
+ llmMode: z.ZodOptional<z.ZodString>;
644
+ interactive: z.ZodBoolean;
645
+ clarificationCount: z.ZodNumber;
646
+ clarifications: z.ZodArray<z.ZodObject<{
647
+ question: z.ZodString;
648
+ answer: z.ZodString;
649
+ }, "strip", z.ZodTypeAny, {
650
+ question: string;
651
+ answer: string;
652
+ }, {
653
+ question: string;
654
+ answer: string;
655
+ }>, "many">;
656
+ }, "strip", z.ZodTypeAny, {
657
+ model: string;
658
+ generatedAt: string;
659
+ llmRequired: boolean;
660
+ llmEnabled: boolean;
661
+ interactive: boolean;
662
+ clarificationCount: number;
663
+ clarifications: {
664
+ question: string;
665
+ answer: string;
666
+ }[];
667
+ llmMode?: string | undefined;
668
+ }, {
669
+ model: string;
670
+ generatedAt: string;
671
+ llmRequired: boolean;
672
+ llmEnabled: boolean;
673
+ interactive: boolean;
674
+ clarificationCount: number;
675
+ clarifications: {
676
+ question: string;
677
+ answer: string;
678
+ }[];
679
+ llmMode?: string | undefined;
680
+ }>;
681
+ }, "strict", z.ZodTypeAny, {
682
+ mode: "llm" | "flow" | "hybrid";
683
+ name: string;
684
+ id: string;
685
+ useCase: string;
686
+ target: "code" | "config" | "both";
687
+ domainAnalysis: {
688
+ domain: string;
689
+ subDomain: string;
690
+ entities: string[];
691
+ workflows: string[];
692
+ userIntents: string[];
693
+ keyOutcomes: string[];
694
+ constraints: string[];
695
+ };
696
+ selectedTools: string[];
697
+ toolRecommendations: {
698
+ description: string;
699
+ toolName: string;
700
+ priority: "optional" | "required" | "recommended";
701
+ reason: string;
702
+ whenToUse: string;
703
+ onError: string;
704
+ }[];
705
+ toolPolicy: Record<string, string>;
706
+ promptLayers: {
707
+ identityAndRole: {
708
+ name: string;
709
+ content: string;
710
+ purpose: string;
711
+ };
712
+ safetyAndGuardrails: {
713
+ name: string;
714
+ content: string;
715
+ purpose: string;
716
+ };
717
+ toolContract: {
718
+ name: string;
719
+ content: string;
720
+ purpose: string;
721
+ };
722
+ reasoningWorkflow: {
723
+ name: string;
724
+ content: string;
725
+ purpose: string;
726
+ };
727
+ executionPolicy: {
728
+ name: string;
729
+ content: string;
730
+ purpose: string;
731
+ };
732
+ outputConstraints: {
733
+ name: string;
734
+ content: string;
735
+ purpose: string;
736
+ };
737
+ };
738
+ evalPlan: {
739
+ scenarios: string[];
740
+ passCriteria?: string[] | undefined;
741
+ };
742
+ generationMeta: {
743
+ model: string;
744
+ generatedAt: string;
745
+ llmRequired: boolean;
746
+ llmEnabled: boolean;
747
+ interactive: boolean;
748
+ clarificationCount: number;
749
+ clarifications: {
750
+ question: string;
751
+ answer: string;
752
+ }[];
753
+ llmMode?: string | undefined;
754
+ };
755
+ flowDesign?: {
756
+ nodes: {
757
+ name: string;
758
+ id: string;
759
+ purpose: string;
760
+ successCriteria: string[];
761
+ toolCalls?: string[] | undefined;
762
+ }[];
763
+ transitions: {
764
+ from: string;
765
+ to: string;
766
+ trigger: string;
767
+ condition?: string | undefined;
768
+ }[];
769
+ entryPoint: string;
770
+ } | undefined;
771
+ toolSpecifications?: {
772
+ name: string;
773
+ description: string;
774
+ inputSchema: Record<string, any>;
775
+ outputSchema: Record<string, any>;
776
+ integrationSteps: string[];
777
+ requiredAuth?: string[] | undefined;
778
+ }[] | undefined;
779
+ }, {
780
+ mode: "llm" | "flow" | "hybrid";
781
+ name: string;
782
+ id: string;
783
+ useCase: string;
784
+ target: "code" | "config" | "both";
785
+ domainAnalysis: {
786
+ domain: string;
787
+ subDomain: string;
788
+ entities: string[];
789
+ workflows: string[];
790
+ userIntents: string[];
791
+ keyOutcomes: string[];
792
+ constraints: string[];
793
+ };
794
+ selectedTools: string[];
795
+ toolRecommendations: {
796
+ description: string;
797
+ toolName: string;
798
+ priority: "optional" | "required" | "recommended";
799
+ reason: string;
800
+ whenToUse: string;
801
+ onError: string;
802
+ }[];
803
+ toolPolicy: Record<string, string>;
804
+ promptLayers: {
805
+ identityAndRole: {
806
+ name: string;
807
+ content: string;
808
+ purpose: string;
809
+ };
810
+ safetyAndGuardrails: {
811
+ name: string;
812
+ content: string;
813
+ purpose: string;
814
+ };
815
+ toolContract: {
816
+ name: string;
817
+ content: string;
818
+ purpose: string;
819
+ };
820
+ reasoningWorkflow: {
821
+ name: string;
822
+ content: string;
823
+ purpose: string;
824
+ };
825
+ executionPolicy: {
826
+ name: string;
827
+ content: string;
828
+ purpose: string;
829
+ };
830
+ outputConstraints: {
831
+ name: string;
832
+ content: string;
833
+ purpose: string;
834
+ };
835
+ };
836
+ evalPlan: {
837
+ scenarios: string[];
838
+ passCriteria?: string[] | undefined;
839
+ };
840
+ generationMeta: {
841
+ model: string;
842
+ generatedAt: string;
843
+ llmRequired: boolean;
844
+ llmEnabled: boolean;
845
+ interactive: boolean;
846
+ clarificationCount: number;
847
+ clarifications: {
848
+ question: string;
849
+ answer: string;
850
+ }[];
851
+ llmMode?: string | undefined;
852
+ };
853
+ flowDesign?: {
854
+ nodes: {
855
+ name: string;
856
+ id: string;
857
+ purpose: string;
858
+ successCriteria: string[];
859
+ toolCalls?: string[] | undefined;
860
+ }[];
861
+ transitions: {
862
+ from: string;
863
+ to: string;
864
+ trigger: string;
865
+ condition?: string | undefined;
866
+ }[];
867
+ entryPoint: string;
868
+ } | undefined;
869
+ toolSpecifications?: {
870
+ name: string;
871
+ description: string;
872
+ inputSchema: Record<string, any>;
873
+ outputSchema: Record<string, any>;
874
+ integrationSteps: string[];
875
+ requiredAuth?: string[] | undefined;
876
+ }[] | undefined;
877
+ }>;
878
+ export type AgentBlueprint = z.infer<typeof AgentBlueprintSchema>;
879
+ export type DetailLevel = 'simple' | 'detailed';
880
+ export interface ArchitectOptions {
881
+ useCase: string;
882
+ mode?: AgentMode;
883
+ target?: AgentTarget;
884
+ name?: string;
885
+ model?: string;
886
+ contextText?: string;
887
+ interactive?: boolean;
888
+ maxQuestions?: number;
889
+ cwd?: string;
890
+ detailLevel?: DetailLevel;
891
+ }
892
+ export interface ArchitectResult {
893
+ blueprint: AgentBlueprint;
894
+ artifacts: {
895
+ prompt?: string;
896
+ flow?: object;
897
+ code?: {
898
+ prompt?: string;
899
+ flow?: string;
900
+ };
901
+ rfc?: string;
902
+ };
903
+ }
904
+ //# sourceMappingURL=types.d.ts.map