@tienne/gestalt 0.20.1 → 0.21.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.
@@ -74,34 +74,110 @@ export declare const specInputSchema: z.ZodObject<{
74
74
  constraints: z.ZodArray<z.ZodString, "many">;
75
75
  acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
76
76
  ontologySchema: z.ZodObject<{
77
- entities: z.ZodArray<z.ZodAny, "many">;
78
- relations: z.ZodArray<z.ZodAny, "many">;
77
+ entities: z.ZodArray<z.ZodObject<{
78
+ name: z.ZodString;
79
+ description: z.ZodOptional<z.ZodString>;
80
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ name: string;
83
+ description?: string | undefined;
84
+ attributes?: string[] | undefined;
85
+ }, {
86
+ name: string;
87
+ description?: string | undefined;
88
+ attributes?: string[] | undefined;
89
+ }>, "many">;
90
+ relations: z.ZodArray<z.ZodObject<{
91
+ from: z.ZodString;
92
+ to: z.ZodString;
93
+ type: z.ZodString;
94
+ }, "strip", z.ZodTypeAny, {
95
+ type: string;
96
+ from: string;
97
+ to: string;
98
+ }, {
99
+ type: string;
100
+ from: string;
101
+ to: string;
102
+ }>, "many">;
79
103
  }, "strip", z.ZodTypeAny, {
80
- entities: any[];
81
- relations: any[];
104
+ entities: {
105
+ name: string;
106
+ description?: string | undefined;
107
+ attributes?: string[] | undefined;
108
+ }[];
109
+ relations: {
110
+ type: string;
111
+ from: string;
112
+ to: string;
113
+ }[];
82
114
  }, {
83
- entities: any[];
84
- relations: any[];
115
+ entities: {
116
+ name: string;
117
+ description?: string | undefined;
118
+ attributes?: string[] | undefined;
119
+ }[];
120
+ relations: {
121
+ type: string;
122
+ from: string;
123
+ to: string;
124
+ }[];
85
125
  }>;
86
- gestaltAnalysis: z.ZodArray<z.ZodAny, "many">;
126
+ gestaltAnalysis: z.ZodArray<z.ZodObject<{
127
+ principle: z.ZodString;
128
+ finding: z.ZodString;
129
+ confidence: z.ZodOptional<z.ZodNumber>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ principle: string;
132
+ finding: string;
133
+ confidence?: number | undefined;
134
+ }, {
135
+ principle: string;
136
+ finding: string;
137
+ confidence?: number | undefined;
138
+ }>, "many">;
87
139
  }, "strip", z.ZodTypeAny, {
88
140
  goal: string;
89
141
  constraints: string[];
90
142
  acceptanceCriteria: string[];
91
143
  ontologySchema: {
92
- entities: any[];
93
- relations: any[];
144
+ entities: {
145
+ name: string;
146
+ description?: string | undefined;
147
+ attributes?: string[] | undefined;
148
+ }[];
149
+ relations: {
150
+ type: string;
151
+ from: string;
152
+ to: string;
153
+ }[];
94
154
  };
95
- gestaltAnalysis: any[];
155
+ gestaltAnalysis: {
156
+ principle: string;
157
+ finding: string;
158
+ confidence?: number | undefined;
159
+ }[];
96
160
  }, {
97
161
  goal: string;
98
162
  constraints: string[];
99
163
  acceptanceCriteria: string[];
100
164
  ontologySchema: {
101
- entities: any[];
102
- relations: any[];
165
+ entities: {
166
+ name: string;
167
+ description?: string | undefined;
168
+ attributes?: string[] | undefined;
169
+ }[];
170
+ relations: {
171
+ type: string;
172
+ from: string;
173
+ to: string;
174
+ }[];
103
175
  };
104
- gestaltAnalysis: any[];
176
+ gestaltAnalysis: {
177
+ principle: string;
178
+ finding: string;
179
+ confidence?: number | undefined;
180
+ }[];
105
181
  }>>;
106
182
  }, "strip", z.ZodTypeAny, {
107
183
  force: boolean;
@@ -111,10 +187,22 @@ export declare const specInputSchema: z.ZodObject<{
111
187
  constraints: string[];
112
188
  acceptanceCriteria: string[];
113
189
  ontologySchema: {
114
- entities: any[];
115
- relations: any[];
190
+ entities: {
191
+ name: string;
192
+ description?: string | undefined;
193
+ attributes?: string[] | undefined;
194
+ }[];
195
+ relations: {
196
+ type: string;
197
+ from: string;
198
+ to: string;
199
+ }[];
116
200
  };
117
- gestaltAnalysis: any[];
201
+ gestaltAnalysis: {
202
+ principle: string;
203
+ finding: string;
204
+ confidence?: number | undefined;
205
+ }[];
118
206
  } | undefined;
119
207
  text?: string | undefined;
120
208
  sessionId?: string | undefined;
@@ -125,10 +213,22 @@ export declare const specInputSchema: z.ZodObject<{
125
213
  constraints: string[];
126
214
  acceptanceCriteria: string[];
127
215
  ontologySchema: {
128
- entities: any[];
129
- relations: any[];
216
+ entities: {
217
+ name: string;
218
+ description?: string | undefined;
219
+ attributes?: string[] | undefined;
220
+ }[];
221
+ relations: {
222
+ type: string;
223
+ from: string;
224
+ to: string;
225
+ }[];
130
226
  };
131
- gestaltAnalysis: any[];
227
+ gestaltAnalysis: {
228
+ principle: string;
229
+ finding: string;
230
+ confidence?: number | undefined;
231
+ }[];
132
232
  } | undefined;
133
233
  text?: string | undefined;
134
234
  sessionId?: string | undefined;
@@ -145,16 +245,68 @@ export declare const executeInputSchema: z.ZodObject<{
145
245
  constraints: z.ZodArray<z.ZodString, "many">;
146
246
  acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
147
247
  ontologySchema: z.ZodObject<{
148
- entities: z.ZodArray<z.ZodAny, "many">;
149
- relations: z.ZodArray<z.ZodAny, "many">;
248
+ entities: z.ZodArray<z.ZodObject<{
249
+ name: z.ZodString;
250
+ description: z.ZodOptional<z.ZodString>;
251
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ name: string;
254
+ description?: string | undefined;
255
+ attributes?: string[] | undefined;
256
+ }, {
257
+ name: string;
258
+ description?: string | undefined;
259
+ attributes?: string[] | undefined;
260
+ }>, "many">;
261
+ relations: z.ZodArray<z.ZodObject<{
262
+ from: z.ZodString;
263
+ to: z.ZodString;
264
+ type: z.ZodString;
265
+ }, "strip", z.ZodTypeAny, {
266
+ type: string;
267
+ from: string;
268
+ to: string;
269
+ }, {
270
+ type: string;
271
+ from: string;
272
+ to: string;
273
+ }>, "many">;
150
274
  }, "strip", z.ZodTypeAny, {
151
- entities: any[];
152
- relations: any[];
275
+ entities: {
276
+ name: string;
277
+ description?: string | undefined;
278
+ attributes?: string[] | undefined;
279
+ }[];
280
+ relations: {
281
+ type: string;
282
+ from: string;
283
+ to: string;
284
+ }[];
153
285
  }, {
154
- entities: any[];
155
- relations: any[];
286
+ entities: {
287
+ name: string;
288
+ description?: string | undefined;
289
+ attributes?: string[] | undefined;
290
+ }[];
291
+ relations: {
292
+ type: string;
293
+ from: string;
294
+ to: string;
295
+ }[];
156
296
  }>;
157
- gestaltAnalysis: z.ZodArray<z.ZodAny, "many">;
297
+ gestaltAnalysis: z.ZodArray<z.ZodObject<{
298
+ principle: z.ZodString;
299
+ finding: z.ZodString;
300
+ confidence: z.ZodOptional<z.ZodNumber>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ principle: string;
303
+ finding: string;
304
+ confidence?: number | undefined;
305
+ }, {
306
+ principle: string;
307
+ finding: string;
308
+ confidence?: number | undefined;
309
+ }>, "many">;
158
310
  metadata: z.ZodObject<{
159
311
  specId: z.ZodString;
160
312
  interviewSessionId: z.ZodString;
@@ -177,10 +329,22 @@ export declare const executeInputSchema: z.ZodObject<{
177
329
  constraints: string[];
178
330
  acceptanceCriteria: string[];
179
331
  ontologySchema: {
180
- entities: any[];
181
- relations: any[];
332
+ entities: {
333
+ name: string;
334
+ description?: string | undefined;
335
+ attributes?: string[] | undefined;
336
+ }[];
337
+ relations: {
338
+ type: string;
339
+ from: string;
340
+ to: string;
341
+ }[];
182
342
  };
183
- gestaltAnalysis: any[];
343
+ gestaltAnalysis: {
344
+ principle: string;
345
+ finding: string;
346
+ confidence?: number | undefined;
347
+ }[];
184
348
  metadata: {
185
349
  specId: string;
186
350
  interviewSessionId: string;
@@ -193,10 +357,22 @@ export declare const executeInputSchema: z.ZodObject<{
193
357
  constraints: string[];
194
358
  acceptanceCriteria: string[];
195
359
  ontologySchema: {
196
- entities: any[];
197
- relations: any[];
360
+ entities: {
361
+ name: string;
362
+ description?: string | undefined;
363
+ attributes?: string[] | undefined;
364
+ }[];
365
+ relations: {
366
+ type: string;
367
+ from: string;
368
+ to: string;
369
+ }[];
198
370
  };
199
- gestaltAnalysis: any[];
371
+ gestaltAnalysis: {
372
+ principle: string;
373
+ finding: string;
374
+ confidence?: number | undefined;
375
+ }[];
200
376
  metadata: {
201
377
  specId: string;
202
378
  interviewSessionId: string;
@@ -929,10 +1105,22 @@ export declare const executeInputSchema: z.ZodObject<{
929
1105
  constraints: string[];
930
1106
  acceptanceCriteria: string[];
931
1107
  ontologySchema: {
932
- entities: any[];
933
- relations: any[];
1108
+ entities: {
1109
+ name: string;
1110
+ description?: string | undefined;
1111
+ attributes?: string[] | undefined;
1112
+ }[];
1113
+ relations: {
1114
+ type: string;
1115
+ from: string;
1116
+ to: string;
1117
+ }[];
934
1118
  };
935
- gestaltAnalysis: any[];
1119
+ gestaltAnalysis: {
1120
+ principle: string;
1121
+ finding: string;
1122
+ confidence?: number | undefined;
1123
+ }[];
936
1124
  metadata: {
937
1125
  specId: string;
938
1126
  interviewSessionId: string;
@@ -1127,10 +1315,22 @@ export declare const executeInputSchema: z.ZodObject<{
1127
1315
  constraints: string[];
1128
1316
  acceptanceCriteria: string[];
1129
1317
  ontologySchema: {
1130
- entities: any[];
1131
- relations: any[];
1318
+ entities: {
1319
+ name: string;
1320
+ description?: string | undefined;
1321
+ attributes?: string[] | undefined;
1322
+ }[];
1323
+ relations: {
1324
+ type: string;
1325
+ from: string;
1326
+ to: string;
1327
+ }[];
1132
1328
  };
1133
- gestaltAnalysis: any[];
1329
+ gestaltAnalysis: {
1330
+ principle: string;
1331
+ finding: string;
1332
+ confidence?: number | undefined;
1333
+ }[];
1134
1334
  metadata: {
1135
1335
  specId: string;
1136
1336
  interviewSessionId: string;
@@ -1320,6 +1520,866 @@ export declare const executeInputSchema: z.ZodObject<{
1320
1520
  reviewSessionId?: string | undefined;
1321
1521
  }>;
1322
1522
  export type ExecuteInput = z.infer<typeof executeInputSchema>;
1523
+ export declare const executeToolSchema: {
1524
+ action: z.ZodEnum<["start", "plan_step", "plan_complete", "execute_start", "execute_task", "evaluate", "status", "resume", "audit", "spawn", "evolve_fix", "evolve", "evolve_patch", "evolve_re_execute", "evolve_lateral", "evolve_lateral_result", "role_match", "role_consensus", "review_start", "review_submit", "review_consensus", "review_fix"]>;
1525
+ spec: z.ZodOptional<z.ZodObject<{
1526
+ version: z.ZodString;
1527
+ goal: z.ZodString;
1528
+ constraints: z.ZodArray<z.ZodString, "many">;
1529
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1530
+ ontologySchema: z.ZodObject<{
1531
+ entities: z.ZodArray<z.ZodObject<{
1532
+ name: z.ZodString;
1533
+ description: z.ZodOptional<z.ZodString>;
1534
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1535
+ }, "strip", z.ZodTypeAny, {
1536
+ name: string;
1537
+ description?: string | undefined;
1538
+ attributes?: string[] | undefined;
1539
+ }, {
1540
+ name: string;
1541
+ description?: string | undefined;
1542
+ attributes?: string[] | undefined;
1543
+ }>, "many">;
1544
+ relations: z.ZodArray<z.ZodObject<{
1545
+ from: z.ZodString;
1546
+ to: z.ZodString;
1547
+ type: z.ZodString;
1548
+ }, "strip", z.ZodTypeAny, {
1549
+ type: string;
1550
+ from: string;
1551
+ to: string;
1552
+ }, {
1553
+ type: string;
1554
+ from: string;
1555
+ to: string;
1556
+ }>, "many">;
1557
+ }, "strip", z.ZodTypeAny, {
1558
+ entities: {
1559
+ name: string;
1560
+ description?: string | undefined;
1561
+ attributes?: string[] | undefined;
1562
+ }[];
1563
+ relations: {
1564
+ type: string;
1565
+ from: string;
1566
+ to: string;
1567
+ }[];
1568
+ }, {
1569
+ entities: {
1570
+ name: string;
1571
+ description?: string | undefined;
1572
+ attributes?: string[] | undefined;
1573
+ }[];
1574
+ relations: {
1575
+ type: string;
1576
+ from: string;
1577
+ to: string;
1578
+ }[];
1579
+ }>;
1580
+ gestaltAnalysis: z.ZodArray<z.ZodObject<{
1581
+ principle: z.ZodString;
1582
+ finding: z.ZodString;
1583
+ confidence: z.ZodOptional<z.ZodNumber>;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ principle: string;
1586
+ finding: string;
1587
+ confidence?: number | undefined;
1588
+ }, {
1589
+ principle: string;
1590
+ finding: string;
1591
+ confidence?: number | undefined;
1592
+ }>, "many">;
1593
+ metadata: z.ZodObject<{
1594
+ specId: z.ZodString;
1595
+ interviewSessionId: z.ZodString;
1596
+ resolutionScore: z.ZodNumber;
1597
+ generatedAt: z.ZodString;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ specId: string;
1600
+ interviewSessionId: string;
1601
+ resolutionScore: number;
1602
+ generatedAt: string;
1603
+ }, {
1604
+ specId: string;
1605
+ interviewSessionId: string;
1606
+ resolutionScore: number;
1607
+ generatedAt: string;
1608
+ }>;
1609
+ }, "strip", z.ZodTypeAny, {
1610
+ goal: string;
1611
+ version: string;
1612
+ constraints: string[];
1613
+ acceptanceCriteria: string[];
1614
+ ontologySchema: {
1615
+ entities: {
1616
+ name: string;
1617
+ description?: string | undefined;
1618
+ attributes?: string[] | undefined;
1619
+ }[];
1620
+ relations: {
1621
+ type: string;
1622
+ from: string;
1623
+ to: string;
1624
+ }[];
1625
+ };
1626
+ gestaltAnalysis: {
1627
+ principle: string;
1628
+ finding: string;
1629
+ confidence?: number | undefined;
1630
+ }[];
1631
+ metadata: {
1632
+ specId: string;
1633
+ interviewSessionId: string;
1634
+ resolutionScore: number;
1635
+ generatedAt: string;
1636
+ };
1637
+ }, {
1638
+ goal: string;
1639
+ version: string;
1640
+ constraints: string[];
1641
+ acceptanceCriteria: string[];
1642
+ ontologySchema: {
1643
+ entities: {
1644
+ name: string;
1645
+ description?: string | undefined;
1646
+ attributes?: string[] | undefined;
1647
+ }[];
1648
+ relations: {
1649
+ type: string;
1650
+ from: string;
1651
+ to: string;
1652
+ }[];
1653
+ };
1654
+ gestaltAnalysis: {
1655
+ principle: string;
1656
+ finding: string;
1657
+ confidence?: number | undefined;
1658
+ }[];
1659
+ metadata: {
1660
+ specId: string;
1661
+ interviewSessionId: string;
1662
+ resolutionScore: number;
1663
+ generatedAt: string;
1664
+ };
1665
+ }>>;
1666
+ sessionId: z.ZodOptional<z.ZodString>;
1667
+ codeGraphRepoRoot: z.ZodOptional<z.ZodString>;
1668
+ cwd: z.ZodOptional<z.ZodString>;
1669
+ stepResult: z.ZodOptional<z.ZodObject<{
1670
+ principle: z.ZodEnum<["figure_ground", "closure", "proximity", "continuity"]>;
1671
+ classifiedACs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1672
+ acIndex: z.ZodNumber;
1673
+ acText: z.ZodString;
1674
+ classification: z.ZodEnum<["figure", "ground"]>;
1675
+ priority: z.ZodEnum<["critical", "high", "medium", "low"]>;
1676
+ reasoning: z.ZodString;
1677
+ }, "strip", z.ZodTypeAny, {
1678
+ reasoning: string;
1679
+ acIndex: number;
1680
+ acText: string;
1681
+ classification: "figure" | "ground";
1682
+ priority: "critical" | "high" | "medium" | "low";
1683
+ }, {
1684
+ reasoning: string;
1685
+ acIndex: number;
1686
+ acText: string;
1687
+ classification: "figure" | "ground";
1688
+ priority: "critical" | "high" | "medium" | "low";
1689
+ }>, "many">>;
1690
+ atomicTasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1691
+ taskId: z.ZodString;
1692
+ title: z.ZodString;
1693
+ description: z.ZodString;
1694
+ sourceAC: z.ZodArray<z.ZodNumber, "many">;
1695
+ isImplicit: z.ZodBoolean;
1696
+ estimatedComplexity: z.ZodEnum<["low", "medium", "high"]>;
1697
+ dependsOn: z.ZodArray<z.ZodString, "many">;
1698
+ }, "strip", z.ZodTypeAny, {
1699
+ description: string;
1700
+ taskId: string;
1701
+ title: string;
1702
+ sourceAC: number[];
1703
+ isImplicit: boolean;
1704
+ estimatedComplexity: "high" | "medium" | "low";
1705
+ dependsOn: string[];
1706
+ }, {
1707
+ description: string;
1708
+ taskId: string;
1709
+ title: string;
1710
+ sourceAC: number[];
1711
+ isImplicit: boolean;
1712
+ estimatedComplexity: "high" | "medium" | "low";
1713
+ dependsOn: string[];
1714
+ }>, "many">>;
1715
+ taskGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
1716
+ groupId: z.ZodString;
1717
+ name: z.ZodString;
1718
+ domain: z.ZodString;
1719
+ taskIds: z.ZodArray<z.ZodString, "many">;
1720
+ reasoning: z.ZodString;
1721
+ }, "strip", z.ZodTypeAny, {
1722
+ reasoning: string;
1723
+ name: string;
1724
+ domain: string;
1725
+ groupId: string;
1726
+ taskIds: string[];
1727
+ }, {
1728
+ reasoning: string;
1729
+ name: string;
1730
+ domain: string;
1731
+ groupId: string;
1732
+ taskIds: string[];
1733
+ }>, "many">>;
1734
+ dagValidation: z.ZodOptional<z.ZodObject<{
1735
+ isValid: z.ZodBoolean;
1736
+ hasCycles: z.ZodBoolean;
1737
+ cycleDetails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1738
+ hasConflicts: z.ZodBoolean;
1739
+ conflictDetails: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1740
+ topologicalOrder: z.ZodArray<z.ZodString, "many">;
1741
+ criticalPath: z.ZodArray<z.ZodString, "many">;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ isValid: boolean;
1744
+ hasCycles: boolean;
1745
+ hasConflicts: boolean;
1746
+ topologicalOrder: string[];
1747
+ criticalPath: string[];
1748
+ cycleDetails?: string[] | undefined;
1749
+ conflictDetails?: string[] | undefined;
1750
+ }, {
1751
+ isValid: boolean;
1752
+ hasCycles: boolean;
1753
+ hasConflicts: boolean;
1754
+ topologicalOrder: string[];
1755
+ criticalPath: string[];
1756
+ cycleDetails?: string[] | undefined;
1757
+ conflictDetails?: string[] | undefined;
1758
+ }>>;
1759
+ }, "strip", z.ZodTypeAny, {
1760
+ principle: "closure" | "proximity" | "figure_ground" | "continuity";
1761
+ classifiedACs?: {
1762
+ reasoning: string;
1763
+ acIndex: number;
1764
+ acText: string;
1765
+ classification: "figure" | "ground";
1766
+ priority: "critical" | "high" | "medium" | "low";
1767
+ }[] | undefined;
1768
+ atomicTasks?: {
1769
+ description: string;
1770
+ taskId: string;
1771
+ title: string;
1772
+ sourceAC: number[];
1773
+ isImplicit: boolean;
1774
+ estimatedComplexity: "high" | "medium" | "low";
1775
+ dependsOn: string[];
1776
+ }[] | undefined;
1777
+ taskGroups?: {
1778
+ reasoning: string;
1779
+ name: string;
1780
+ domain: string;
1781
+ groupId: string;
1782
+ taskIds: string[];
1783
+ }[] | undefined;
1784
+ dagValidation?: {
1785
+ isValid: boolean;
1786
+ hasCycles: boolean;
1787
+ hasConflicts: boolean;
1788
+ topologicalOrder: string[];
1789
+ criticalPath: string[];
1790
+ cycleDetails?: string[] | undefined;
1791
+ conflictDetails?: string[] | undefined;
1792
+ } | undefined;
1793
+ }, {
1794
+ principle: "closure" | "proximity" | "figure_ground" | "continuity";
1795
+ classifiedACs?: {
1796
+ reasoning: string;
1797
+ acIndex: number;
1798
+ acText: string;
1799
+ classification: "figure" | "ground";
1800
+ priority: "critical" | "high" | "medium" | "low";
1801
+ }[] | undefined;
1802
+ atomicTasks?: {
1803
+ description: string;
1804
+ taskId: string;
1805
+ title: string;
1806
+ sourceAC: number[];
1807
+ isImplicit: boolean;
1808
+ estimatedComplexity: "high" | "medium" | "low";
1809
+ dependsOn: string[];
1810
+ }[] | undefined;
1811
+ taskGroups?: {
1812
+ reasoning: string;
1813
+ name: string;
1814
+ domain: string;
1815
+ groupId: string;
1816
+ taskIds: string[];
1817
+ }[] | undefined;
1818
+ dagValidation?: {
1819
+ isValid: boolean;
1820
+ hasCycles: boolean;
1821
+ hasConflicts: boolean;
1822
+ topologicalOrder: string[];
1823
+ criticalPath: string[];
1824
+ cycleDetails?: string[] | undefined;
1825
+ conflictDetails?: string[] | undefined;
1826
+ } | undefined;
1827
+ }>>;
1828
+ taskResult: z.ZodOptional<z.ZodObject<{
1829
+ taskId: z.ZodString;
1830
+ status: z.ZodEnum<["pending", "in_progress", "completed", "failed", "skipped"]>;
1831
+ output: z.ZodString;
1832
+ artifacts: z.ZodArray<z.ZodString, "many">;
1833
+ suggestedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ status: "in_progress" | "completed" | "failed" | "pending" | "skipped";
1836
+ taskId: string;
1837
+ output: string;
1838
+ artifacts: string[];
1839
+ suggestedFiles?: string[] | undefined;
1840
+ }, {
1841
+ status: "in_progress" | "completed" | "failed" | "pending" | "skipped";
1842
+ taskId: string;
1843
+ output: string;
1844
+ artifacts: string[];
1845
+ suggestedFiles?: string[] | undefined;
1846
+ }>>;
1847
+ structuralResult: z.ZodOptional<z.ZodObject<{
1848
+ commands: z.ZodArray<z.ZodObject<{
1849
+ name: z.ZodString;
1850
+ command: z.ZodString;
1851
+ exitCode: z.ZodNumber;
1852
+ output: z.ZodString;
1853
+ }, "strip", z.ZodTypeAny, {
1854
+ name: string;
1855
+ output: string;
1856
+ command: string;
1857
+ exitCode: number;
1858
+ }, {
1859
+ name: string;
1860
+ output: string;
1861
+ command: string;
1862
+ exitCode: number;
1863
+ }>, "many">;
1864
+ allPassed: z.ZodBoolean;
1865
+ }, "strip", z.ZodTypeAny, {
1866
+ commands: {
1867
+ name: string;
1868
+ output: string;
1869
+ command: string;
1870
+ exitCode: number;
1871
+ }[];
1872
+ allPassed: boolean;
1873
+ }, {
1874
+ commands: {
1875
+ name: string;
1876
+ output: string;
1877
+ command: string;
1878
+ exitCode: number;
1879
+ }[];
1880
+ allPassed: boolean;
1881
+ }>>;
1882
+ evaluationResult: z.ZodOptional<z.ZodObject<{
1883
+ verifications: z.ZodArray<z.ZodObject<{
1884
+ acIndex: z.ZodNumber;
1885
+ satisfied: z.ZodBoolean;
1886
+ evidence: z.ZodString;
1887
+ gaps: z.ZodArray<z.ZodString, "many">;
1888
+ }, "strip", z.ZodTypeAny, {
1889
+ acIndex: number;
1890
+ satisfied: boolean;
1891
+ evidence: string;
1892
+ gaps: string[];
1893
+ }, {
1894
+ acIndex: number;
1895
+ satisfied: boolean;
1896
+ evidence: string;
1897
+ gaps: string[];
1898
+ }>, "many">;
1899
+ overallScore: z.ZodNumber;
1900
+ goalAlignment: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1901
+ recommendations: z.ZodArray<z.ZodString, "many">;
1902
+ }, "strip", z.ZodTypeAny, {
1903
+ verifications: {
1904
+ acIndex: number;
1905
+ satisfied: boolean;
1906
+ evidence: string;
1907
+ gaps: string[];
1908
+ }[];
1909
+ overallScore: number;
1910
+ goalAlignment: number;
1911
+ recommendations: string[];
1912
+ }, {
1913
+ verifications: {
1914
+ acIndex: number;
1915
+ satisfied: boolean;
1916
+ evidence: string;
1917
+ gaps: string[];
1918
+ }[];
1919
+ overallScore: number;
1920
+ recommendations: string[];
1921
+ goalAlignment?: number | undefined;
1922
+ }>>;
1923
+ fixTasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1924
+ taskId: z.ZodString;
1925
+ failedCommand: z.ZodString;
1926
+ errorOutput: z.ZodString;
1927
+ fixDescription: z.ZodString;
1928
+ artifacts: z.ZodArray<z.ZodString, "many">;
1929
+ }, "strip", z.ZodTypeAny, {
1930
+ taskId: string;
1931
+ artifacts: string[];
1932
+ failedCommand: string;
1933
+ errorOutput: string;
1934
+ fixDescription: string;
1935
+ }, {
1936
+ taskId: string;
1937
+ artifacts: string[];
1938
+ failedCommand: string;
1939
+ errorOutput: string;
1940
+ fixDescription: string;
1941
+ }>, "many">>;
1942
+ specPatch: z.ZodOptional<z.ZodObject<{
1943
+ acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1944
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1945
+ ontologySchema: z.ZodOptional<z.ZodObject<{
1946
+ entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1947
+ name: z.ZodString;
1948
+ description: z.ZodString;
1949
+ attributes: z.ZodArray<z.ZodString, "many">;
1950
+ }, "strip", z.ZodTypeAny, {
1951
+ name: string;
1952
+ description: string;
1953
+ attributes: string[];
1954
+ }, {
1955
+ name: string;
1956
+ description: string;
1957
+ attributes: string[];
1958
+ }>, "many">>;
1959
+ relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1960
+ from: z.ZodString;
1961
+ to: z.ZodString;
1962
+ type: z.ZodString;
1963
+ }, "strip", z.ZodTypeAny, {
1964
+ type: string;
1965
+ from: string;
1966
+ to: string;
1967
+ }, {
1968
+ type: string;
1969
+ from: string;
1970
+ to: string;
1971
+ }>, "many">>;
1972
+ }, "strip", z.ZodTypeAny, {
1973
+ entities?: {
1974
+ name: string;
1975
+ description: string;
1976
+ attributes: string[];
1977
+ }[] | undefined;
1978
+ relations?: {
1979
+ type: string;
1980
+ from: string;
1981
+ to: string;
1982
+ }[] | undefined;
1983
+ }, {
1984
+ entities?: {
1985
+ name: string;
1986
+ description: string;
1987
+ attributes: string[];
1988
+ }[] | undefined;
1989
+ relations?: {
1990
+ type: string;
1991
+ from: string;
1992
+ to: string;
1993
+ }[] | undefined;
1994
+ }>>;
1995
+ }, "strip", z.ZodTypeAny, {
1996
+ constraints?: string[] | undefined;
1997
+ acceptanceCriteria?: string[] | undefined;
1998
+ ontologySchema?: {
1999
+ entities?: {
2000
+ name: string;
2001
+ description: string;
2002
+ attributes: string[];
2003
+ }[] | undefined;
2004
+ relations?: {
2005
+ type: string;
2006
+ from: string;
2007
+ to: string;
2008
+ }[] | undefined;
2009
+ } | undefined;
2010
+ }, {
2011
+ constraints?: string[] | undefined;
2012
+ acceptanceCriteria?: string[] | undefined;
2013
+ ontologySchema?: {
2014
+ entities?: {
2015
+ name: string;
2016
+ description: string;
2017
+ attributes: string[];
2018
+ }[] | undefined;
2019
+ relations?: {
2020
+ type: string;
2021
+ from: string;
2022
+ to: string;
2023
+ }[] | undefined;
2024
+ } | undefined;
2025
+ }>>;
2026
+ reExecuteTaskResult: z.ZodOptional<z.ZodObject<{
2027
+ taskId: z.ZodString;
2028
+ status: z.ZodEnum<["pending", "in_progress", "completed", "failed", "skipped"]>;
2029
+ output: z.ZodString;
2030
+ artifacts: z.ZodArray<z.ZodString, "many">;
2031
+ }, "strip", z.ZodTypeAny, {
2032
+ status: "in_progress" | "completed" | "failed" | "pending" | "skipped";
2033
+ taskId: string;
2034
+ output: string;
2035
+ artifacts: string[];
2036
+ }, {
2037
+ status: "in_progress" | "completed" | "failed" | "pending" | "skipped";
2038
+ taskId: string;
2039
+ output: string;
2040
+ artifacts: string[];
2041
+ }>>;
2042
+ terminateReason: z.ZodOptional<z.ZodEnum<["caller"]>>;
2043
+ matchResult: z.ZodOptional<z.ZodArray<z.ZodObject<{
2044
+ agentName: z.ZodString;
2045
+ domain: z.ZodArray<z.ZodString, "many">;
2046
+ relevanceScore: z.ZodNumber;
2047
+ reasoning: z.ZodString;
2048
+ }, "strip", z.ZodTypeAny, {
2049
+ reasoning: string;
2050
+ domain: string[];
2051
+ agentName: string;
2052
+ relevanceScore: number;
2053
+ }, {
2054
+ reasoning: string;
2055
+ domain: string[];
2056
+ agentName: string;
2057
+ relevanceScore: number;
2058
+ }>, "many">>;
2059
+ perspectives: z.ZodOptional<z.ZodArray<z.ZodObject<{
2060
+ agentName: z.ZodString;
2061
+ perspective: z.ZodString;
2062
+ confidence: z.ZodNumber;
2063
+ }, "strip", z.ZodTypeAny, {
2064
+ confidence: number;
2065
+ agentName: string;
2066
+ perspective: string;
2067
+ }, {
2068
+ confidence: number;
2069
+ agentName: string;
2070
+ perspective: string;
2071
+ }>, "many">>;
2072
+ consensus: z.ZodOptional<z.ZodObject<{
2073
+ consensus: z.ZodString;
2074
+ conflictResolutions: z.ZodArray<z.ZodString, "many">;
2075
+ perspectives: z.ZodArray<z.ZodObject<{
2076
+ agentName: z.ZodString;
2077
+ perspective: z.ZodString;
2078
+ confidence: z.ZodNumber;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ confidence: number;
2081
+ agentName: string;
2082
+ perspective: string;
2083
+ }, {
2084
+ confidence: number;
2085
+ agentName: string;
2086
+ perspective: string;
2087
+ }>, "many">;
2088
+ }, "strip", z.ZodTypeAny, {
2089
+ consensus: string;
2090
+ perspectives: {
2091
+ confidence: number;
2092
+ agentName: string;
2093
+ perspective: string;
2094
+ }[];
2095
+ conflictResolutions: string[];
2096
+ }, {
2097
+ consensus: string;
2098
+ perspectives: {
2099
+ confidence: number;
2100
+ agentName: string;
2101
+ perspective: string;
2102
+ }[];
2103
+ conflictResolutions: string[];
2104
+ }>>;
2105
+ lateralResult: z.ZodOptional<z.ZodObject<{
2106
+ persona: z.ZodEnum<["multistability", "simplicity", "reification", "invariance"]>;
2107
+ specPatch: z.ZodObject<{
2108
+ acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2109
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2110
+ ontologySchema: z.ZodOptional<z.ZodObject<{
2111
+ entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
2112
+ name: z.ZodString;
2113
+ description: z.ZodString;
2114
+ attributes: z.ZodArray<z.ZodString, "many">;
2115
+ }, "strip", z.ZodTypeAny, {
2116
+ name: string;
2117
+ description: string;
2118
+ attributes: string[];
2119
+ }, {
2120
+ name: string;
2121
+ description: string;
2122
+ attributes: string[];
2123
+ }>, "many">>;
2124
+ relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2125
+ from: z.ZodString;
2126
+ to: z.ZodString;
2127
+ type: z.ZodString;
2128
+ }, "strip", z.ZodTypeAny, {
2129
+ type: string;
2130
+ from: string;
2131
+ to: string;
2132
+ }, {
2133
+ type: string;
2134
+ from: string;
2135
+ to: string;
2136
+ }>, "many">>;
2137
+ }, "strip", z.ZodTypeAny, {
2138
+ entities?: {
2139
+ name: string;
2140
+ description: string;
2141
+ attributes: string[];
2142
+ }[] | undefined;
2143
+ relations?: {
2144
+ type: string;
2145
+ from: string;
2146
+ to: string;
2147
+ }[] | undefined;
2148
+ }, {
2149
+ entities?: {
2150
+ name: string;
2151
+ description: string;
2152
+ attributes: string[];
2153
+ }[] | undefined;
2154
+ relations?: {
2155
+ type: string;
2156
+ from: string;
2157
+ to: string;
2158
+ }[] | undefined;
2159
+ }>>;
2160
+ }, "strip", z.ZodTypeAny, {
2161
+ constraints?: string[] | undefined;
2162
+ acceptanceCriteria?: string[] | undefined;
2163
+ ontologySchema?: {
2164
+ entities?: {
2165
+ name: string;
2166
+ description: string;
2167
+ attributes: string[];
2168
+ }[] | undefined;
2169
+ relations?: {
2170
+ type: string;
2171
+ from: string;
2172
+ to: string;
2173
+ }[] | undefined;
2174
+ } | undefined;
2175
+ }, {
2176
+ constraints?: string[] | undefined;
2177
+ acceptanceCriteria?: string[] | undefined;
2178
+ ontologySchema?: {
2179
+ entities?: {
2180
+ name: string;
2181
+ description: string;
2182
+ attributes: string[];
2183
+ }[] | undefined;
2184
+ relations?: {
2185
+ type: string;
2186
+ from: string;
2187
+ to: string;
2188
+ }[] | undefined;
2189
+ } | undefined;
2190
+ }>;
2191
+ description: z.ZodString;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ description: string;
2194
+ specPatch: {
2195
+ constraints?: string[] | undefined;
2196
+ acceptanceCriteria?: string[] | undefined;
2197
+ ontologySchema?: {
2198
+ entities?: {
2199
+ name: string;
2200
+ description: string;
2201
+ attributes: string[];
2202
+ }[] | undefined;
2203
+ relations?: {
2204
+ type: string;
2205
+ from: string;
2206
+ to: string;
2207
+ }[] | undefined;
2208
+ } | undefined;
2209
+ };
2210
+ persona: "multistability" | "simplicity" | "reification" | "invariance";
2211
+ }, {
2212
+ description: string;
2213
+ specPatch: {
2214
+ constraints?: string[] | undefined;
2215
+ acceptanceCriteria?: string[] | undefined;
2216
+ ontologySchema?: {
2217
+ entities?: {
2218
+ name: string;
2219
+ description: string;
2220
+ attributes: string[];
2221
+ }[] | undefined;
2222
+ relations?: {
2223
+ type: string;
2224
+ from: string;
2225
+ to: string;
2226
+ }[] | undefined;
2227
+ } | undefined;
2228
+ };
2229
+ persona: "multistability" | "simplicity" | "reification" | "invariance";
2230
+ }>>;
2231
+ codebaseSnapshot: z.ZodOptional<z.ZodString>;
2232
+ auditResult: z.ZodOptional<z.ZodObject<{
2233
+ implementedACs: z.ZodArray<z.ZodNumber, "many">;
2234
+ partialACs: z.ZodArray<z.ZodNumber, "many">;
2235
+ missingACs: z.ZodArray<z.ZodNumber, "many">;
2236
+ gapAnalysis: z.ZodString;
2237
+ }, "strip", z.ZodTypeAny, {
2238
+ implementedACs: number[];
2239
+ partialACs: number[];
2240
+ missingACs: number[];
2241
+ gapAnalysis: string;
2242
+ }, {
2243
+ implementedACs: number[];
2244
+ partialACs: number[];
2245
+ missingACs: number[];
2246
+ gapAnalysis: string;
2247
+ }>>;
2248
+ parentTaskId: z.ZodOptional<z.ZodString>;
2249
+ subTasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2250
+ title: z.ZodString;
2251
+ description: z.ZodString;
2252
+ dependsOn: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2253
+ }, "strip", z.ZodTypeAny, {
2254
+ description: string;
2255
+ title: string;
2256
+ dependsOn: string[];
2257
+ }, {
2258
+ description: string;
2259
+ title: string;
2260
+ dependsOn?: string[] | undefined;
2261
+ }>, "many">>;
2262
+ verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2263
+ reviewAgentName: z.ZodOptional<z.ZodString>;
2264
+ reviewResult: z.ZodOptional<z.ZodObject<{
2265
+ issues: z.ZodArray<z.ZodObject<{
2266
+ id: z.ZodString;
2267
+ severity: z.ZodEnum<["critical", "high", "warning"]>;
2268
+ category: z.ZodString;
2269
+ file: z.ZodString;
2270
+ line: z.ZodOptional<z.ZodNumber>;
2271
+ message: z.ZodString;
2272
+ suggestion: z.ZodString;
2273
+ }, "strip", z.ZodTypeAny, {
2274
+ message: string;
2275
+ id: string;
2276
+ severity: "critical" | "high" | "warning";
2277
+ category: string;
2278
+ file: string;
2279
+ suggestion: string;
2280
+ line?: number | undefined;
2281
+ }, {
2282
+ message: string;
2283
+ id: string;
2284
+ severity: "critical" | "high" | "warning";
2285
+ category: string;
2286
+ file: string;
2287
+ suggestion: string;
2288
+ line?: number | undefined;
2289
+ }>, "many">;
2290
+ approved: z.ZodBoolean;
2291
+ summary: z.ZodString;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ issues: {
2294
+ message: string;
2295
+ id: string;
2296
+ severity: "critical" | "high" | "warning";
2297
+ category: string;
2298
+ file: string;
2299
+ suggestion: string;
2300
+ line?: number | undefined;
2301
+ }[];
2302
+ approved: boolean;
2303
+ summary: string;
2304
+ }, {
2305
+ issues: {
2306
+ message: string;
2307
+ id: string;
2308
+ severity: "critical" | "high" | "warning";
2309
+ category: string;
2310
+ file: string;
2311
+ suggestion: string;
2312
+ line?: number | undefined;
2313
+ }[];
2314
+ approved: boolean;
2315
+ summary: string;
2316
+ }>>;
2317
+ reviewConsensus: z.ZodOptional<z.ZodObject<{
2318
+ mergedIssues: z.ZodArray<z.ZodObject<{
2319
+ id: z.ZodString;
2320
+ severity: z.ZodEnum<["critical", "high", "warning"]>;
2321
+ category: z.ZodString;
2322
+ file: z.ZodString;
2323
+ line: z.ZodOptional<z.ZodNumber>;
2324
+ message: z.ZodString;
2325
+ suggestion: z.ZodString;
2326
+ reportedBy: z.ZodString;
2327
+ }, "strip", z.ZodTypeAny, {
2328
+ message: string;
2329
+ id: string;
2330
+ severity: "critical" | "high" | "warning";
2331
+ category: string;
2332
+ file: string;
2333
+ suggestion: string;
2334
+ reportedBy: string;
2335
+ line?: number | undefined;
2336
+ }, {
2337
+ message: string;
2338
+ id: string;
2339
+ severity: "critical" | "high" | "warning";
2340
+ category: string;
2341
+ file: string;
2342
+ suggestion: string;
2343
+ reportedBy: string;
2344
+ line?: number | undefined;
2345
+ }>, "many">;
2346
+ approvedBy: z.ZodArray<z.ZodString, "many">;
2347
+ blockedBy: z.ZodArray<z.ZodString, "many">;
2348
+ summary: z.ZodString;
2349
+ overallApproved: z.ZodBoolean;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ summary: string;
2352
+ mergedIssues: {
2353
+ message: string;
2354
+ id: string;
2355
+ severity: "critical" | "high" | "warning";
2356
+ category: string;
2357
+ file: string;
2358
+ suggestion: string;
2359
+ reportedBy: string;
2360
+ line?: number | undefined;
2361
+ }[];
2362
+ approvedBy: string[];
2363
+ blockedBy: string[];
2364
+ overallApproved: boolean;
2365
+ }, {
2366
+ summary: string;
2367
+ mergedIssues: {
2368
+ message: string;
2369
+ id: string;
2370
+ severity: "critical" | "high" | "warning";
2371
+ category: string;
2372
+ file: string;
2373
+ suggestion: string;
2374
+ reportedBy: string;
2375
+ line?: number | undefined;
2376
+ }[];
2377
+ approvedBy: string[];
2378
+ blockedBy: string[];
2379
+ overallApproved: boolean;
2380
+ }>>;
2381
+ reviewSessionId: z.ZodOptional<z.ZodString>;
2382
+ };
1323
2383
  export declare const agentCreateInputSchema: z.ZodObject<{
1324
2384
  action: z.ZodEnum<["start", "submit"]>;
1325
2385
  sessionId: z.ZodString;