@denizokcu/haze 0.8.0 → 0.9.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 (65) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +15 -13
  3. package/dist/cli/chat/sessionRecorder.d.ts +3 -0
  4. package/dist/cli/chat/sessionRecorder.js +23 -8
  5. package/dist/cli/commands/chat.js +90 -104
  6. package/dist/cli/commands/commands.d.ts +1 -1
  7. package/dist/cli/commands/commands.js +1 -1
  8. package/dist/cli/commands/formatters.js +3 -3
  9. package/dist/cli/commands/logsCommand.js +7 -21
  10. package/dist/cli/commands/mcpWizard.js +24 -2
  11. package/dist/cli/commands/providerWizard.js +18 -5
  12. package/dist/cli/commands/runCommand.js +7 -15
  13. package/dist/cli/commands/settingsSummary.js +3 -1
  14. package/dist/cli/commands/streaming/turnOutcome.d.ts +10 -0
  15. package/dist/cli/commands/streaming/turnOutcome.js +13 -0
  16. package/dist/cli/commands/streaming.js +66 -29
  17. package/dist/cli/commands/wizardPrompts.js +1 -1
  18. package/dist/cli/commands/wizardSuggestions.js +2 -1
  19. package/dist/cli/commands/wizardTransition.d.ts +33 -0
  20. package/dist/cli/commands/wizardTransition.js +44 -0
  21. package/dist/config/contextFiles.js +6 -3
  22. package/dist/config/endpointSecurity.d.ts +2 -0
  23. package/dist/config/endpointSecurity.js +28 -0
  24. package/dist/config/inputHistory.js +4 -2
  25. package/dist/config/privateStorage.d.ts +6 -0
  26. package/dist/config/privateStorage.js +61 -0
  27. package/dist/config/settings.js +4 -4
  28. package/dist/config/updateCheck.js +4 -2
  29. package/dist/core/agent/toolOutputStore.d.ts +3 -0
  30. package/dist/core/agent/toolOutputStore.js +32 -11
  31. package/dist/core/goal/completionPolicy.d.ts +0 -28
  32. package/dist/core/goal/completionPolicy.js +0 -88
  33. package/dist/core/io/boundedRead.d.ts +15 -0
  34. package/dist/core/io/boundedRead.js +97 -0
  35. package/dist/core/limits/byteBudgets.d.ts +13 -0
  36. package/dist/core/limits/byteBudgets.js +13 -0
  37. package/dist/core/log/llmLog.d.ts +10 -0
  38. package/dist/core/log/llmLog.js +59 -13
  39. package/dist/core/persistence/orderedFileWriter.d.ts +11 -0
  40. package/dist/core/persistence/orderedFileWriter.js +29 -0
  41. package/dist/core/process/runBoundedProcess.d.ts +27 -0
  42. package/dist/core/process/runBoundedProcess.js +80 -0
  43. package/dist/core/session/sessionStore.js +48 -25
  44. package/dist/core/subagent/subagentRunner.js +1 -1
  45. package/dist/llm/client.js +4 -1
  46. package/dist/llm/hazeTools.d.ts +410 -16
  47. package/dist/llm/hazeTools.js +36 -32
  48. package/dist/llm/lsp.d.ts +21 -3
  49. package/dist/llm/lsp.js +55 -13
  50. package/dist/llm/lspTools.d.ts +96 -48
  51. package/dist/llm/mcp.d.ts +1 -1
  52. package/dist/llm/mcp.js +65 -16
  53. package/dist/llm/requestContext.d.ts +1 -0
  54. package/dist/llm/requestContext.js +6 -3
  55. package/dist/llm/toolResultTypes.d.ts +1 -1
  56. package/dist/llm/tools/bashTool.d.ts +368 -16
  57. package/dist/llm/tools/bashTool.js +19 -57
  58. package/dist/llm/tools/grepRunner.d.ts +15 -0
  59. package/dist/llm/tools/grepRunner.js +85 -0
  60. package/dist/skills/SkillLoader.js +17 -5
  61. package/dist/skills/SkillRegistry.js +19 -6
  62. package/dist/skills/types.d.ts +5 -0
  63. package/dist/utils/path.d.ts +2 -0
  64. package/dist/utils/path.js +9 -4
  65. package/package.json +1 -1
@@ -1570,6 +1570,7 @@ export declare const hazeTools: {
1570
1570
  contextLines: number;
1571
1571
  maxMatches: number;
1572
1572
  caseInsensitive: boolean;
1573
+ includeIgnored: boolean;
1573
1574
  glob?: string | undefined;
1574
1575
  }>;
1575
1576
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
@@ -1579,6 +1580,7 @@ export declare const hazeTools: {
1579
1580
  contextLines: number;
1580
1581
  maxMatches: number;
1581
1582
  caseInsensitive: boolean;
1583
+ includeIgnored: boolean;
1582
1584
  glob?: string | undefined;
1583
1585
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
1584
1586
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -1592,6 +1594,7 @@ export declare const hazeTools: {
1592
1594
  contextLines: number;
1593
1595
  maxMatches: number;
1594
1596
  caseInsensitive: boolean;
1597
+ includeIgnored: boolean;
1595
1598
  glob?: string | undefined;
1596
1599
  };
1597
1600
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -1603,6 +1606,7 @@ export declare const hazeTools: {
1603
1606
  contextLines: number;
1604
1607
  maxMatches: number;
1605
1608
  caseInsensitive: boolean;
1609
+ includeIgnored: boolean;
1606
1610
  glob?: string | undefined;
1607
1611
  };
1608
1612
  output: NoInfer<{
@@ -1655,6 +1659,7 @@ export declare const hazeTools: {
1655
1659
  omittedResultLines: number;
1656
1660
  lineTruncated: boolean;
1657
1661
  truncated: boolean;
1662
+ matchCountIsLowerBound: boolean;
1658
1663
  reducerName: string;
1659
1664
  contentKind: string;
1660
1665
  lossy: boolean;
@@ -1714,6 +1719,7 @@ export declare const hazeTools: {
1714
1719
  omittedResultLines: number;
1715
1720
  lineTruncated: boolean;
1716
1721
  truncated: boolean;
1722
+ matchCountIsLowerBound: boolean;
1717
1723
  reducerName: string;
1718
1724
  contentKind: string;
1719
1725
  lossy: boolean;
@@ -1727,6 +1733,7 @@ export declare const hazeTools: {
1727
1733
  contextLines: number;
1728
1734
  maxMatches: number;
1729
1735
  caseInsensitive: boolean;
1736
+ includeIgnored: boolean;
1730
1737
  glob?: string | undefined;
1731
1738
  }, {
1732
1739
  ok: boolean;
@@ -1778,6 +1785,7 @@ export declare const hazeTools: {
1778
1785
  omittedResultLines: number;
1779
1786
  lineTruncated: boolean;
1780
1787
  truncated: boolean;
1788
+ matchCountIsLowerBound: boolean;
1781
1789
  reducerName: string;
1782
1790
  contentKind: string;
1783
1791
  lossy: boolean;
@@ -1798,6 +1806,7 @@ export declare const hazeTools: {
1798
1806
  contextLines: number;
1799
1807
  maxMatches: number;
1800
1808
  caseInsensitive: boolean;
1809
+ includeIgnored: boolean;
1801
1810
  glob?: string | undefined;
1802
1811
  }>;
1803
1812
  }[] | undefined;
@@ -1814,6 +1823,7 @@ export declare const hazeTools: {
1814
1823
  contextLines: number;
1815
1824
  maxMatches: number;
1816
1825
  caseInsensitive: boolean;
1826
+ includeIgnored: boolean;
1817
1827
  glob?: string | undefined;
1818
1828
  }, {
1819
1829
  ok: boolean;
@@ -1865,6 +1875,7 @@ export declare const hazeTools: {
1865
1875
  omittedResultLines: number;
1866
1876
  lineTruncated: boolean;
1867
1877
  truncated: boolean;
1878
+ matchCountIsLowerBound: boolean;
1868
1879
  reducerName: string;
1869
1880
  contentKind: string;
1870
1881
  lossy: boolean;
@@ -1882,6 +1893,7 @@ export declare const hazeTools: {
1882
1893
  contextLines: number;
1883
1894
  maxMatches: number;
1884
1895
  caseInsensitive: boolean;
1896
+ includeIgnored: boolean;
1885
1897
  glob?: string | undefined;
1886
1898
  }>;
1887
1899
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
@@ -1891,6 +1903,7 @@ export declare const hazeTools: {
1891
1903
  contextLines: number;
1892
1904
  maxMatches: number;
1893
1905
  caseInsensitive: boolean;
1906
+ includeIgnored: boolean;
1894
1907
  glob?: string | undefined;
1895
1908
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
1896
1909
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -1904,6 +1917,7 @@ export declare const hazeTools: {
1904
1917
  contextLines: number;
1905
1918
  maxMatches: number;
1906
1919
  caseInsensitive: boolean;
1920
+ includeIgnored: boolean;
1907
1921
  glob?: string | undefined;
1908
1922
  };
1909
1923
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -1915,6 +1929,7 @@ export declare const hazeTools: {
1915
1929
  contextLines: number;
1916
1930
  maxMatches: number;
1917
1931
  caseInsensitive: boolean;
1932
+ includeIgnored: boolean;
1918
1933
  glob?: string | undefined;
1919
1934
  };
1920
1935
  output: NoInfer<{
@@ -1967,6 +1982,7 @@ export declare const hazeTools: {
1967
1982
  omittedResultLines: number;
1968
1983
  lineTruncated: boolean;
1969
1984
  truncated: boolean;
1985
+ matchCountIsLowerBound: boolean;
1970
1986
  reducerName: string;
1971
1987
  contentKind: string;
1972
1988
  lossy: boolean;
@@ -2026,6 +2042,7 @@ export declare const hazeTools: {
2026
2042
  omittedResultLines: number;
2027
2043
  lineTruncated: boolean;
2028
2044
  truncated: boolean;
2045
+ matchCountIsLowerBound: boolean;
2029
2046
  reducerName: string;
2030
2047
  contentKind: string;
2031
2048
  lossy: boolean;
@@ -2039,6 +2056,7 @@ export declare const hazeTools: {
2039
2056
  contextLines: number;
2040
2057
  maxMatches: number;
2041
2058
  caseInsensitive: boolean;
2059
+ includeIgnored: boolean;
2042
2060
  glob?: string | undefined;
2043
2061
  }, {
2044
2062
  ok: boolean;
@@ -2090,6 +2108,7 @@ export declare const hazeTools: {
2090
2108
  omittedResultLines: number;
2091
2109
  lineTruncated: boolean;
2092
2110
  truncated: boolean;
2111
+ matchCountIsLowerBound: boolean;
2093
2112
  reducerName: string;
2094
2113
  contentKind: string;
2095
2114
  lossy: boolean;
@@ -2110,6 +2129,7 @@ export declare const hazeTools: {
2110
2129
  contextLines: number;
2111
2130
  maxMatches: number;
2112
2131
  caseInsensitive: boolean;
2132
+ includeIgnored: boolean;
2113
2133
  glob?: string | undefined;
2114
2134
  }>;
2115
2135
  }[] | undefined;
@@ -2126,6 +2146,7 @@ export declare const hazeTools: {
2126
2146
  contextLines: number;
2127
2147
  maxMatches: number;
2128
2148
  caseInsensitive: boolean;
2149
+ includeIgnored: boolean;
2129
2150
  glob?: string | undefined;
2130
2151
  }, {
2131
2152
  ok: boolean;
@@ -2177,6 +2198,7 @@ export declare const hazeTools: {
2177
2198
  omittedResultLines: number;
2178
2199
  lineTruncated: boolean;
2179
2200
  truncated: boolean;
2201
+ matchCountIsLowerBound: boolean;
2180
2202
  reducerName: string;
2181
2203
  contentKind: string;
2182
2204
  lossy: boolean;
@@ -2194,6 +2216,7 @@ export declare const hazeTools: {
2194
2216
  contextLines: number;
2195
2217
  maxMatches: number;
2196
2218
  caseInsensitive: boolean;
2219
+ includeIgnored: boolean;
2197
2220
  glob?: string | undefined;
2198
2221
  }>;
2199
2222
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
@@ -2203,6 +2226,7 @@ export declare const hazeTools: {
2203
2226
  contextLines: number;
2204
2227
  maxMatches: number;
2205
2228
  caseInsensitive: boolean;
2229
+ includeIgnored: boolean;
2206
2230
  glob?: string | undefined;
2207
2231
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
2208
2232
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -2216,6 +2240,7 @@ export declare const hazeTools: {
2216
2240
  contextLines: number;
2217
2241
  maxMatches: number;
2218
2242
  caseInsensitive: boolean;
2243
+ includeIgnored: boolean;
2219
2244
  glob?: string | undefined;
2220
2245
  };
2221
2246
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -2227,6 +2252,7 @@ export declare const hazeTools: {
2227
2252
  contextLines: number;
2228
2253
  maxMatches: number;
2229
2254
  caseInsensitive: boolean;
2255
+ includeIgnored: boolean;
2230
2256
  glob?: string | undefined;
2231
2257
  };
2232
2258
  output: NoInfer<{
@@ -2279,6 +2305,7 @@ export declare const hazeTools: {
2279
2305
  omittedResultLines: number;
2280
2306
  lineTruncated: boolean;
2281
2307
  truncated: boolean;
2308
+ matchCountIsLowerBound: boolean;
2282
2309
  reducerName: string;
2283
2310
  contentKind: string;
2284
2311
  lossy: boolean;
@@ -2338,6 +2365,7 @@ export declare const hazeTools: {
2338
2365
  omittedResultLines: number;
2339
2366
  lineTruncated: boolean;
2340
2367
  truncated: boolean;
2368
+ matchCountIsLowerBound: boolean;
2341
2369
  reducerName: string;
2342
2370
  contentKind: string;
2343
2371
  lossy: boolean;
@@ -2351,6 +2379,7 @@ export declare const hazeTools: {
2351
2379
  contextLines: number;
2352
2380
  maxMatches: number;
2353
2381
  caseInsensitive: boolean;
2382
+ includeIgnored: boolean;
2354
2383
  glob?: string | undefined;
2355
2384
  }, {
2356
2385
  ok: boolean;
@@ -2402,6 +2431,7 @@ export declare const hazeTools: {
2402
2431
  omittedResultLines: number;
2403
2432
  lineTruncated: boolean;
2404
2433
  truncated: boolean;
2434
+ matchCountIsLowerBound: boolean;
2405
2435
  reducerName: string;
2406
2436
  contentKind: string;
2407
2437
  lossy: boolean;
@@ -2426,6 +2456,7 @@ export declare const hazeTools: {
2426
2456
  contextLines: number;
2427
2457
  maxMatches: number;
2428
2458
  caseInsensitive: boolean;
2459
+ includeIgnored: boolean;
2429
2460
  glob?: string | undefined;
2430
2461
  }, {
2431
2462
  ok: boolean;
@@ -2477,6 +2508,7 @@ export declare const hazeTools: {
2477
2508
  omittedResultLines: number;
2478
2509
  lineTruncated: boolean;
2479
2510
  truncated: boolean;
2511
+ matchCountIsLowerBound: boolean;
2480
2512
  reducerName: string;
2481
2513
  contentKind: string;
2482
2514
  lossy: boolean;
@@ -2494,6 +2526,7 @@ export declare const hazeTools: {
2494
2526
  contextLines: number;
2495
2527
  maxMatches: number;
2496
2528
  caseInsensitive: boolean;
2529
+ includeIgnored: boolean;
2497
2530
  glob?: string | undefined;
2498
2531
  }>;
2499
2532
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
@@ -2503,6 +2536,7 @@ export declare const hazeTools: {
2503
2536
  contextLines: number;
2504
2537
  maxMatches: number;
2505
2538
  caseInsensitive: boolean;
2539
+ includeIgnored: boolean;
2506
2540
  glob?: string | undefined;
2507
2541
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
2508
2542
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -2516,6 +2550,7 @@ export declare const hazeTools: {
2516
2550
  contextLines: number;
2517
2551
  maxMatches: number;
2518
2552
  caseInsensitive: boolean;
2553
+ includeIgnored: boolean;
2519
2554
  glob?: string | undefined;
2520
2555
  };
2521
2556
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -2527,6 +2562,7 @@ export declare const hazeTools: {
2527
2562
  contextLines: number;
2528
2563
  maxMatches: number;
2529
2564
  caseInsensitive: boolean;
2565
+ includeIgnored: boolean;
2530
2566
  glob?: string | undefined;
2531
2567
  };
2532
2568
  output: NoInfer<{
@@ -2579,6 +2615,7 @@ export declare const hazeTools: {
2579
2615
  omittedResultLines: number;
2580
2616
  lineTruncated: boolean;
2581
2617
  truncated: boolean;
2618
+ matchCountIsLowerBound: boolean;
2582
2619
  reducerName: string;
2583
2620
  contentKind: string;
2584
2621
  lossy: boolean;
@@ -2638,6 +2675,7 @@ export declare const hazeTools: {
2638
2675
  omittedResultLines: number;
2639
2676
  lineTruncated: boolean;
2640
2677
  truncated: boolean;
2678
+ matchCountIsLowerBound: boolean;
2641
2679
  reducerName: string;
2642
2680
  contentKind: string;
2643
2681
  lossy: boolean;
@@ -2651,6 +2689,7 @@ export declare const hazeTools: {
2651
2689
  contextLines: number;
2652
2690
  maxMatches: number;
2653
2691
  caseInsensitive: boolean;
2692
+ includeIgnored: boolean;
2654
2693
  glob?: string | undefined;
2655
2694
  }, {
2656
2695
  ok: boolean;
@@ -2702,6 +2741,7 @@ export declare const hazeTools: {
2702
2741
  omittedResultLines: number;
2703
2742
  lineTruncated: boolean;
2704
2743
  truncated: boolean;
2744
+ matchCountIsLowerBound: boolean;
2705
2745
  reducerName: string;
2706
2746
  contentKind: string;
2707
2747
  lossy: boolean;
@@ -2726,6 +2766,7 @@ export declare const hazeTools: {
2726
2766
  contextLines: number;
2727
2767
  maxMatches: number;
2728
2768
  caseInsensitive: boolean;
2769
+ includeIgnored: boolean;
2729
2770
  glob?: string | undefined;
2730
2771
  }, {
2731
2772
  ok: boolean;
@@ -2777,6 +2818,7 @@ export declare const hazeTools: {
2777
2818
  omittedResultLines: number;
2778
2819
  lineTruncated: boolean;
2779
2820
  truncated: boolean;
2821
+ matchCountIsLowerBound: boolean;
2780
2822
  reducerName: string;
2781
2823
  contentKind: string;
2782
2824
  lossy: boolean;
@@ -7492,15 +7534,81 @@ export declare const hazeTools: {
7492
7534
  allowMutation: boolean;
7493
7535
  timeoutSeconds?: number | undefined;
7494
7536
  };
7495
- output: unknown;
7537
+ output: NoInfer<{
7538
+ ok: true;
7539
+ duplicateSkipped: true;
7540
+ toolName: string;
7541
+ reason: string;
7542
+ } | {
7543
+ error?: string | undefined;
7544
+ ok: boolean;
7545
+ code: number | null;
7546
+ command: string;
7547
+ cwd: string;
7548
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7549
+ durationMs: number;
7550
+ timedOut: boolean;
7551
+ aborted: boolean;
7552
+ signal: NodeJS.Signals | null;
7553
+ forcedTermination: boolean;
7554
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7555
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7556
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7557
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7558
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7559
+ }>;
7496
7560
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
7497
7561
  } & {
7498
- outputSchema?: import("ai").FlexibleSchema<unknown> | undefined;
7562
+ outputSchema?: import("ai").FlexibleSchema<{
7563
+ ok: true;
7564
+ duplicateSkipped: true;
7565
+ toolName: string;
7566
+ reason: string;
7567
+ } | {
7568
+ error?: string | undefined;
7569
+ ok: boolean;
7570
+ code: number | null;
7571
+ command: string;
7572
+ cwd: string;
7573
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7574
+ durationMs: number;
7575
+ timedOut: boolean;
7576
+ aborted: boolean;
7577
+ signal: NodeJS.Signals | null;
7578
+ forcedTermination: boolean;
7579
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7580
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7581
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7582
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7583
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7584
+ }> | undefined;
7499
7585
  execute: import("ai").ToolExecuteFunction<{
7500
7586
  command: string;
7501
7587
  allowMutation: boolean;
7502
7588
  timeoutSeconds?: number | undefined;
7503
- }, unknown, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7589
+ }, {
7590
+ ok: true;
7591
+ duplicateSkipped: true;
7592
+ toolName: string;
7593
+ reason: string;
7594
+ } | {
7595
+ error?: string | undefined;
7596
+ ok: boolean;
7597
+ code: number | null;
7598
+ command: string;
7599
+ cwd: string;
7600
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7601
+ durationMs: number;
7602
+ timedOut: boolean;
7603
+ aborted: boolean;
7604
+ signal: NodeJS.Signals | null;
7605
+ forcedTermination: boolean;
7606
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7607
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7608
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7609
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7610
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7611
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7504
7612
  } & {
7505
7613
  description?: string | ((options: {
7506
7614
  context: NoInfer<import("./tools/toolContext.js").HazeToolContext>;
@@ -7525,7 +7633,29 @@ export declare const hazeTools: {
7525
7633
  command: string;
7526
7634
  allowMutation: boolean;
7527
7635
  timeoutSeconds?: number | undefined;
7528
- }, unknown, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7636
+ }, {
7637
+ ok: true;
7638
+ duplicateSkipped: true;
7639
+ toolName: string;
7640
+ reason: string;
7641
+ } | {
7642
+ error?: string | undefined;
7643
+ ok: boolean;
7644
+ code: number | null;
7645
+ command: string;
7646
+ cwd: string;
7647
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7648
+ durationMs: number;
7649
+ timedOut: boolean;
7650
+ aborted: boolean;
7651
+ signal: NodeJS.Signals | null;
7652
+ forcedTermination: boolean;
7653
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7654
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7655
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7656
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7657
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7658
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7529
7659
  }) | ({
7530
7660
  title?: string;
7531
7661
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
@@ -7559,15 +7689,81 @@ export declare const hazeTools: {
7559
7689
  allowMutation: boolean;
7560
7690
  timeoutSeconds?: number | undefined;
7561
7691
  };
7562
- output: unknown;
7692
+ output: NoInfer<{
7693
+ ok: true;
7694
+ duplicateSkipped: true;
7695
+ toolName: string;
7696
+ reason: string;
7697
+ } | {
7698
+ error?: string | undefined;
7699
+ ok: boolean;
7700
+ code: number | null;
7701
+ command: string;
7702
+ cwd: string;
7703
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7704
+ durationMs: number;
7705
+ timedOut: boolean;
7706
+ aborted: boolean;
7707
+ signal: NodeJS.Signals | null;
7708
+ forcedTermination: boolean;
7709
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7710
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7711
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7712
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7713
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7714
+ }>;
7563
7715
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
7564
7716
  } & {
7565
- outputSchema?: import("ai").FlexibleSchema<unknown> | undefined;
7717
+ outputSchema?: import("ai").FlexibleSchema<{
7718
+ ok: true;
7719
+ duplicateSkipped: true;
7720
+ toolName: string;
7721
+ reason: string;
7722
+ } | {
7723
+ error?: string | undefined;
7724
+ ok: boolean;
7725
+ code: number | null;
7726
+ command: string;
7727
+ cwd: string;
7728
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7729
+ durationMs: number;
7730
+ timedOut: boolean;
7731
+ aborted: boolean;
7732
+ signal: NodeJS.Signals | null;
7733
+ forcedTermination: boolean;
7734
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7735
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7736
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7737
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7738
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7739
+ }> | undefined;
7566
7740
  execute: import("ai").ToolExecuteFunction<{
7567
7741
  command: string;
7568
7742
  allowMutation: boolean;
7569
7743
  timeoutSeconds?: number | undefined;
7570
- }, unknown, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7744
+ }, {
7745
+ ok: true;
7746
+ duplicateSkipped: true;
7747
+ toolName: string;
7748
+ reason: string;
7749
+ } | {
7750
+ error?: string | undefined;
7751
+ ok: boolean;
7752
+ code: number | null;
7753
+ command: string;
7754
+ cwd: string;
7755
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7756
+ durationMs: number;
7757
+ timedOut: boolean;
7758
+ aborted: boolean;
7759
+ signal: NodeJS.Signals | null;
7760
+ forcedTermination: boolean;
7761
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7762
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7763
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7764
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7765
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7766
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7571
7767
  } & {
7572
7768
  description?: string | ((options: {
7573
7769
  context: NoInfer<import("./tools/toolContext.js").HazeToolContext>;
@@ -7592,7 +7788,29 @@ export declare const hazeTools: {
7592
7788
  command: string;
7593
7789
  allowMutation: boolean;
7594
7790
  timeoutSeconds?: number | undefined;
7595
- }, unknown, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7791
+ }, {
7792
+ ok: true;
7793
+ duplicateSkipped: true;
7794
+ toolName: string;
7795
+ reason: string;
7796
+ } | {
7797
+ error?: string | undefined;
7798
+ ok: boolean;
7799
+ code: number | null;
7800
+ command: string;
7801
+ cwd: string;
7802
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7803
+ durationMs: number;
7804
+ timedOut: boolean;
7805
+ aborted: boolean;
7806
+ signal: NodeJS.Signals | null;
7807
+ forcedTermination: boolean;
7808
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7809
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7810
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7811
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7812
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7813
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7596
7814
  }) | ({
7597
7815
  title?: string;
7598
7816
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
@@ -7626,15 +7844,81 @@ export declare const hazeTools: {
7626
7844
  allowMutation: boolean;
7627
7845
  timeoutSeconds?: number | undefined;
7628
7846
  };
7629
- output: unknown;
7847
+ output: NoInfer<{
7848
+ ok: true;
7849
+ duplicateSkipped: true;
7850
+ toolName: string;
7851
+ reason: string;
7852
+ } | {
7853
+ error?: string | undefined;
7854
+ ok: boolean;
7855
+ code: number | null;
7856
+ command: string;
7857
+ cwd: string;
7858
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7859
+ durationMs: number;
7860
+ timedOut: boolean;
7861
+ aborted: boolean;
7862
+ signal: NodeJS.Signals | null;
7863
+ forcedTermination: boolean;
7864
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7865
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7866
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7867
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7868
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7869
+ }>;
7630
7870
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
7631
7871
  } & {
7632
- outputSchema?: import("ai").FlexibleSchema<unknown> | undefined;
7872
+ outputSchema?: import("ai").FlexibleSchema<{
7873
+ ok: true;
7874
+ duplicateSkipped: true;
7875
+ toolName: string;
7876
+ reason: string;
7877
+ } | {
7878
+ error?: string | undefined;
7879
+ ok: boolean;
7880
+ code: number | null;
7881
+ command: string;
7882
+ cwd: string;
7883
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7884
+ durationMs: number;
7885
+ timedOut: boolean;
7886
+ aborted: boolean;
7887
+ signal: NodeJS.Signals | null;
7888
+ forcedTermination: boolean;
7889
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7890
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7891
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7892
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7893
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7894
+ }> | undefined;
7633
7895
  execute: import("ai").ToolExecuteFunction<{
7634
7896
  command: string;
7635
7897
  allowMutation: boolean;
7636
7898
  timeoutSeconds?: number | undefined;
7637
- }, unknown, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7899
+ }, {
7900
+ ok: true;
7901
+ duplicateSkipped: true;
7902
+ toolName: string;
7903
+ reason: string;
7904
+ } | {
7905
+ error?: string | undefined;
7906
+ ok: boolean;
7907
+ code: number | null;
7908
+ command: string;
7909
+ cwd: string;
7910
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7911
+ durationMs: number;
7912
+ timedOut: boolean;
7913
+ aborted: boolean;
7914
+ signal: NodeJS.Signals | null;
7915
+ forcedTermination: boolean;
7916
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7917
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7918
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7919
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7920
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7921
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7638
7922
  } & {
7639
7923
  type: "provider";
7640
7924
  id: `${string}.${string}`;
@@ -7650,7 +7934,29 @@ export declare const hazeTools: {
7650
7934
  command: string;
7651
7935
  allowMutation: boolean;
7652
7936
  timeoutSeconds?: number | undefined;
7653
- }, unknown, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7937
+ }, {
7938
+ ok: true;
7939
+ duplicateSkipped: true;
7940
+ toolName: string;
7941
+ reason: string;
7942
+ } | {
7943
+ error?: string | undefined;
7944
+ ok: boolean;
7945
+ code: number | null;
7946
+ command: string;
7947
+ cwd: string;
7948
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7949
+ durationMs: number;
7950
+ timedOut: boolean;
7951
+ aborted: boolean;
7952
+ signal: NodeJS.Signals | null;
7953
+ forcedTermination: boolean;
7954
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
7955
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
7956
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7957
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7958
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7959
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7654
7960
  }) | ({
7655
7961
  title?: string;
7656
7962
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
@@ -7684,15 +7990,81 @@ export declare const hazeTools: {
7684
7990
  allowMutation: boolean;
7685
7991
  timeoutSeconds?: number | undefined;
7686
7992
  };
7687
- output: unknown;
7993
+ output: NoInfer<{
7994
+ ok: true;
7995
+ duplicateSkipped: true;
7996
+ toolName: string;
7997
+ reason: string;
7998
+ } | {
7999
+ error?: string | undefined;
8000
+ ok: boolean;
8001
+ code: number | null;
8002
+ command: string;
8003
+ cwd: string;
8004
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8005
+ durationMs: number;
8006
+ timedOut: boolean;
8007
+ aborted: boolean;
8008
+ signal: NodeJS.Signals | null;
8009
+ forcedTermination: boolean;
8010
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
8011
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
8012
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8013
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8014
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8015
+ }>;
7688
8016
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
7689
8017
  } & {
7690
- outputSchema?: import("ai").FlexibleSchema<unknown> | undefined;
8018
+ outputSchema?: import("ai").FlexibleSchema<{
8019
+ ok: true;
8020
+ duplicateSkipped: true;
8021
+ toolName: string;
8022
+ reason: string;
8023
+ } | {
8024
+ error?: string | undefined;
8025
+ ok: boolean;
8026
+ code: number | null;
8027
+ command: string;
8028
+ cwd: string;
8029
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8030
+ durationMs: number;
8031
+ timedOut: boolean;
8032
+ aborted: boolean;
8033
+ signal: NodeJS.Signals | null;
8034
+ forcedTermination: boolean;
8035
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
8036
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
8037
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8038
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8039
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8040
+ }> | undefined;
7691
8041
  execute: import("ai").ToolExecuteFunction<{
7692
8042
  command: string;
7693
8043
  allowMutation: boolean;
7694
8044
  timeoutSeconds?: number | undefined;
7695
- }, unknown, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
8045
+ }, {
8046
+ ok: true;
8047
+ duplicateSkipped: true;
8048
+ toolName: string;
8049
+ reason: string;
8050
+ } | {
8051
+ error?: string | undefined;
8052
+ ok: boolean;
8053
+ code: number | null;
8054
+ command: string;
8055
+ cwd: string;
8056
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8057
+ durationMs: number;
8058
+ timedOut: boolean;
8059
+ aborted: boolean;
8060
+ signal: NodeJS.Signals | null;
8061
+ forcedTermination: boolean;
8062
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
8063
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
8064
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8065
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8066
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8067
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7696
8068
  } & {
7697
8069
  type: "provider";
7698
8070
  id: `${string}.${string}`;
@@ -7708,7 +8080,29 @@ export declare const hazeTools: {
7708
8080
  command: string;
7709
8081
  allowMutation: boolean;
7710
8082
  timeoutSeconds?: number | undefined;
7711
- }, unknown, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
8083
+ }, {
8084
+ ok: true;
8085
+ duplicateSkipped: true;
8086
+ toolName: string;
8087
+ reason: string;
8088
+ } | {
8089
+ error?: string | undefined;
8090
+ ok: boolean;
8091
+ code: number | null;
8092
+ command: string;
8093
+ cwd: string;
8094
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8095
+ durationMs: number;
8096
+ timedOut: boolean;
8097
+ aborted: boolean;
8098
+ signal: NodeJS.Signals | null;
8099
+ forcedTermination: boolean;
8100
+ stdout: import("../core/bashOutput/types.js").StreamReduction;
8101
+ stderr: import("../core/bashOutput/types.js").StreamReduction;
8102
+ validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8103
+ stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8104
+ stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8105
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7712
8106
  });
7713
8107
  };
7714
8108
  export type HazeTools = typeof hazeTools;