@wrongstack/tools 1.0.2 → 1.0.4

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 (114) hide show
  1. package/README.md +0 -6
  2. package/dist/_util.d.ts +18 -0
  3. package/dist/_win32-resolve.d.ts +1 -6
  4. package/dist/audit.js +6 -6
  5. package/dist/bash.js +3 -3
  6. package/dist/browser/index.d.ts +1 -1
  7. package/dist/browser/index.js +9 -1
  8. package/dist/browser/tools.d.ts +14 -0
  9. package/dist/builtin.d.ts +16 -13
  10. package/dist/builtin.js +43 -47
  11. package/dist/{chunk-DL2ARI4S.js → chunk-24Q4O34E.js} +5 -5
  12. package/dist/{chunk-AQ5YBURX.js → chunk-2IC5FRD7.js} +2 -2
  13. package/dist/{chunk-4ERMPDHV.js → chunk-2QY3DC3H.js} +20 -16
  14. package/dist/{chunk-VU3QBYL4.js → chunk-2ZWQIVEW.js} +2 -2
  15. package/dist/{chunk-JDOO4P6Z.js → chunk-3F7HQ3KS.js} +2 -2
  16. package/dist/{chunk-MJSJWXBF.js → chunk-47GYABZW.js} +15 -3
  17. package/dist/{chunk-6H4ERJP7.js → chunk-4KI4HHID.js} +3 -3
  18. package/dist/{chunk-X6KXNHUO.js → chunk-5BKQVP56.js} +22 -5
  19. package/dist/{chunk-KE7A76VC.js → chunk-5U5ULQX2.js} +4 -14
  20. package/dist/{chunk-SMARDKAC.js → chunk-5UA4TNJJ.js} +2 -2
  21. package/dist/{chunk-SOR7OCYP.js → chunk-6XYFYLN7.js} +23 -1
  22. package/dist/{chunk-KVTEIUND.js → chunk-A636Z2TG.js} +3 -3
  23. package/dist/{chunk-52UXXQMP.js → chunk-AX5ZG5O5.js} +3 -3
  24. package/dist/{chunk-7HL23T3T.js → chunk-BU6VUXWG.js} +2 -2
  25. package/dist/{chunk-WEEVSWQB.js → chunk-C64UUXTA.js} +4 -4
  26. package/dist/{chunk-4WPBS45A.js → chunk-D4HWMWGE.js} +4 -4
  27. package/dist/{chunk-DRRY6SCM.js → chunk-EMA2XENR.js} +2 -2
  28. package/dist/{chunk-TU5MTW2S.js → chunk-EMCIC2JA.js} +3 -3
  29. package/dist/{chunk-ASEXQRA7.js → chunk-FEXPWYU7.js} +7 -5
  30. package/dist/{chunk-ZUFHAHTE.js → chunk-HKR56VNF.js} +15 -2
  31. package/dist/{chunk-7N5U2RAU.js → chunk-JK5WXW4S.js} +3 -3
  32. package/dist/{chunk-T3SMFF5Q.js → chunk-JQ43NVFU.js} +2 -2
  33. package/dist/{chunk-7XUEPBNT.js → chunk-KVEL4EFI.js} +3 -3
  34. package/dist/{chunk-VZGPASGD.js → chunk-MG7CUN6R.js} +2 -2
  35. package/dist/{chunk-NFX2IUQA.js → chunk-NERS6GBT.js} +3 -3
  36. package/dist/{chunk-5KS24LTS.js → chunk-NKOTOW6X.js} +3 -3
  37. package/dist/{chunk-NJX2RXKJ.js → chunk-OBVXDVLE.js} +12 -4
  38. package/dist/{chunk-HWXIRVKH.js → chunk-OSXM3O3J.js} +29 -15
  39. package/dist/{chunk-LQSOU63Z.js → chunk-OZVGRDCM.js} +3 -3
  40. package/dist/{chunk-TI5COGLY.js → chunk-PVQBD3TA.js} +46 -6
  41. package/dist/{chunk-3D5DJWOE.js → chunk-R36RWYXE.js} +12 -4
  42. package/dist/{chunk-3AU6CZWL.js → chunk-REWOZIA4.js} +2 -2
  43. package/dist/{chunk-QA6IASYX.js → chunk-S6E2AM4U.js} +4 -4
  44. package/dist/{chunk-UCXFTCAI.js → chunk-T34DVSAE.js} +236 -177
  45. package/dist/{chunk-FBUP524S.js → chunk-TGVQMKVH.js} +15 -4
  46. package/dist/{chunk-MBR5VAB5.js → chunk-VQDSIHAR.js} +40 -2
  47. package/dist/{chunk-UOYRAS4J.js → chunk-VSOVZ5JI.js} +4 -4
  48. package/dist/{chunk-RV7BVTDG.js → chunk-WKXL5XHU.js} +2 -2
  49. package/dist/{chunk-DKHMPKDG.js → chunk-WWAXJKX3.js} +4 -4
  50. package/dist/{chunk-24T5XIJU.js → chunk-YA2ZYCJY.js} +4 -4
  51. package/dist/{chunk-MGPR7VG3.js → chunk-YILT3CSO.js} +3 -3
  52. package/dist/{chunk-6GOZTS6F.js → chunk-YJQQ5F5J.js} +4 -4
  53. package/dist/{chunk-EL2NJXSK.js → chunk-YZLOYJGN.js} +2 -2
  54. package/dist/{chunk-O6BY43ZB.js → chunk-ZETZHHV5.js} +4 -4
  55. package/dist/clarify.d.ts +18 -3
  56. package/dist/codebase-index/codebase-search-tool.d.ts +2 -3
  57. package/dist/codebase-index/index.js +9 -9
  58. package/dist/codebase-index/parser-worker-script.js +3 -3
  59. package/dist/codebase-index/project-server-endpoint.d.ts +33 -0
  60. package/dist/codebase-index/project-server.js +5 -5
  61. package/dist/codebase-index/worker.js +4 -4
  62. package/dist/diff.js +2 -2
  63. package/dist/e2e.js +2 -2
  64. package/dist/edit.js +8 -8
  65. package/dist/exec.js +3 -3
  66. package/dist/fetch.js +2 -2
  67. package/dist/format.js +6 -6
  68. package/dist/git.js +2 -2
  69. package/dist/glob.js +2 -2
  70. package/dist/{go-parser-QIEXU3P2.js → go-parser-EMKTAAD3.js} +2 -2
  71. package/dist/grep.js +2 -2
  72. package/dist/index.d.ts +2 -8
  73. package/dist/index.js +68 -84
  74. package/dist/install.js +6 -6
  75. package/dist/json.js +2 -2
  76. package/dist/kanban.js +2 -2
  77. package/dist/languages/index.js +4 -4
  78. package/dist/{legacy-bridge-YXANP5QB.js → legacy-bridge-XM2GV665.js} +6 -6
  79. package/dist/lint.js +6 -6
  80. package/dist/logs.js +2 -2
  81. package/dist/outdated.js +3 -3
  82. package/dist/pack.js +44 -48
  83. package/dist/{parser-dispatch-37FT3EXQ.js → parser-dispatch-IF75EZFB.js} +4 -4
  84. package/dist/patch.js +8 -8
  85. package/dist/plan.js +4 -4
  86. package/dist/{py-parser-6GJTGUXK.js → py-parser-DDG53RXI.js} +3 -3
  87. package/dist/read-url-content.d.ts +17 -0
  88. package/dist/read.js +8 -8
  89. package/dist/replace.js +8 -8
  90. package/dist/session-kanban.js +1 -1
  91. package/dist/task.js +4 -4
  92. package/dist/test.js +6 -6
  93. package/dist/todo.js +3 -3
  94. package/dist/tool-search.js +1 -1
  95. package/dist/tool-tier.d.ts +12 -2
  96. package/dist/tool-tier.js +45 -49
  97. package/dist/tree.js +2 -2
  98. package/dist/typecheck.js +6 -6
  99. package/dist/win32.js +1 -1
  100. package/dist/write.js +8 -8
  101. package/package.json +5 -21
  102. package/dist/batch-tool-use.d.ts +0 -24
  103. package/dist/batch-tool-use.js +0 -7
  104. package/dist/chunk-7ODZTPCU.js +0 -128
  105. package/dist/chunk-CHEK3ASV.js +0 -183
  106. package/dist/chunk-KLJZ4WV4.js +0 -213
  107. package/dist/chunk-VBF2YXUW.js +0 -203
  108. package/dist/document.d.ts +0 -25
  109. package/dist/document.js +0 -8
  110. package/dist/scaffold.d.ts +0 -23
  111. package/dist/scaffold.js +0 -10
  112. package/dist/set-working-dir.d.ts +0 -17
  113. package/dist/tool-help.d.ts +0 -21
  114. package/dist/tool-help.js +0 -7
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  parseFileContent,
3
3
  parseFilesContent
4
- } from "./chunk-DL2ARI4S.js";
5
- import "./chunk-3AU6CZWL.js";
4
+ } from "./chunk-24Q4O34E.js";
5
+ import "./chunk-REWOZIA4.js";
6
6
  import "./chunk-6IEBD27U.js";
7
7
  import "./chunk-ZKC5UNGD.js";
8
8
  import "./chunk-YOHO4DVT.js";
9
- import "./chunk-KE7A76VC.js";
9
+ import "./chunk-5U5ULQX2.js";
10
10
  export {
11
11
  parseFileContent,
12
12
  parseFilesContent
13
13
  };
14
- //# sourceMappingURL=parser-dispatch-37FT3EXQ.js.map
14
+ //# sourceMappingURL=parser-dispatch-IF75EZFB.js.map
package/dist/patch.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  patchTool
3
- } from "./chunk-TU5MTW2S.js";
4
- import "./chunk-TI5COGLY.js";
5
- import "./chunk-MBR5VAB5.js";
6
- import "./chunk-52UXXQMP.js";
7
- import "./chunk-DL2ARI4S.js";
8
- import "./chunk-3AU6CZWL.js";
3
+ } from "./chunk-EMCIC2JA.js";
4
+ import "./chunk-PVQBD3TA.js";
5
+ import "./chunk-VQDSIHAR.js";
6
+ import "./chunk-AX5ZG5O5.js";
7
+ import "./chunk-24Q4O34E.js";
8
+ import "./chunk-REWOZIA4.js";
9
9
  import "./chunk-6IEBD27U.js";
10
10
  import "./chunk-ZKC5UNGD.js";
11
11
  import "./chunk-YOHO4DVT.js";
12
12
  import "./chunk-2CTZW6JQ.js";
13
- import "./chunk-KE7A76VC.js";
14
- import "./chunk-ZUFHAHTE.js";
13
+ import "./chunk-5U5ULQX2.js";
14
+ import "./chunk-HKR56VNF.js";
15
15
  export {
16
16
  patchTool
17
17
  };
package/dist/plan.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  planTool
3
- } from "./chunk-5KS24LTS.js";
4
- import "./chunk-FBUP524S.js";
5
- import "./chunk-SMARDKAC.js";
6
- import "./chunk-X6KXNHUO.js";
3
+ } from "./chunk-NKOTOW6X.js";
4
+ import "./chunk-TGVQMKVH.js";
5
+ import "./chunk-5UA4TNJJ.js";
6
+ import "./chunk-5BKQVP56.js";
7
7
  export {
8
8
  planTool
9
9
  };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  parseSymbols,
3
3
  resolvePythonBinary
4
- } from "./chunk-3AU6CZWL.js";
4
+ } from "./chunk-REWOZIA4.js";
5
5
  import "./chunk-6IEBD27U.js";
6
6
  import "./chunk-ZKC5UNGD.js";
7
7
  import {
8
8
  detectLang
9
9
  } from "./chunk-YOHO4DVT.js";
10
- import "./chunk-KE7A76VC.js";
10
+ import "./chunk-5U5ULQX2.js";
11
11
  export {
12
12
  detectLang,
13
13
  parseSymbols,
14
14
  resolvePythonBinary
15
15
  };
16
- //# sourceMappingURL=py-parser-6GJTGUXK.js.map
16
+ //# sourceMappingURL=py-parser-DDG53RXI.js.map
@@ -0,0 +1,17 @@
1
+ import type { Tool } from '@wrongstack/core/types';
2
+ export interface ReadUrlContentInput {
3
+ /** Target web page URL to read. */
4
+ url?: string | undefined;
5
+ /** Antigravity parameter alias. */
6
+ Url?: string | undefined;
7
+ /** Maximum bytes to retrieve and return (default: 131,072 bytes). */
8
+ maxBytes?: number | undefined;
9
+ }
10
+ export interface ReadUrlContentOutput {
11
+ url: string;
12
+ status: number;
13
+ content_type: string;
14
+ content: string;
15
+ }
16
+ export declare const readUrlContentTool: Tool<ReadUrlContentInput, ReadUrlContentOutput>;
17
+ //# sourceMappingURL=read-url-content.d.ts.map
package/dist/read.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  readTool
3
- } from "./chunk-UOYRAS4J.js";
4
- import "./chunk-TI5COGLY.js";
5
- import "./chunk-MBR5VAB5.js";
6
- import "./chunk-52UXXQMP.js";
7
- import "./chunk-DL2ARI4S.js";
8
- import "./chunk-3AU6CZWL.js";
3
+ } from "./chunk-VSOVZ5JI.js";
4
+ import "./chunk-PVQBD3TA.js";
5
+ import "./chunk-VQDSIHAR.js";
6
+ import "./chunk-AX5ZG5O5.js";
7
+ import "./chunk-24Q4O34E.js";
8
+ import "./chunk-REWOZIA4.js";
9
9
  import "./chunk-6IEBD27U.js";
10
10
  import "./chunk-ZKC5UNGD.js";
11
11
  import "./chunk-YOHO4DVT.js";
12
12
  import "./chunk-2CTZW6JQ.js";
13
- import "./chunk-KE7A76VC.js";
14
- import "./chunk-ZUFHAHTE.js";
13
+ import "./chunk-5U5ULQX2.js";
14
+ import "./chunk-HKR56VNF.js";
15
15
  export {
16
16
  readTool
17
17
  };
package/dist/replace.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  __resetRgDetectionForTests,
3
3
  replaceTool
4
- } from "./chunk-DKHMPKDG.js";
4
+ } from "./chunk-WWAXJKX3.js";
5
5
  import "./chunk-YJTXRH5Y.js";
6
6
  import "./chunk-ZBMANLYH.js";
7
- import "./chunk-TI5COGLY.js";
8
- import "./chunk-MBR5VAB5.js";
9
- import "./chunk-52UXXQMP.js";
10
- import "./chunk-DL2ARI4S.js";
11
- import "./chunk-3AU6CZWL.js";
7
+ import "./chunk-PVQBD3TA.js";
8
+ import "./chunk-VQDSIHAR.js";
9
+ import "./chunk-AX5ZG5O5.js";
10
+ import "./chunk-24Q4O34E.js";
11
+ import "./chunk-REWOZIA4.js";
12
12
  import "./chunk-6IEBD27U.js";
13
13
  import "./chunk-ZKC5UNGD.js";
14
14
  import "./chunk-YOHO4DVT.js";
15
15
  import "./chunk-2CTZW6JQ.js";
16
- import "./chunk-KE7A76VC.js";
17
- import "./chunk-ZUFHAHTE.js";
16
+ import "./chunk-5U5ULQX2.js";
17
+ import "./chunk-HKR56VNF.js";
18
18
  export {
19
19
  __resetRgDetectionForTests,
20
20
  replaceTool
@@ -25,7 +25,7 @@ import {
25
25
  taskFileToSerializedGraph,
26
26
  todoListToSerializedGraph,
27
27
  todosNeedingSessionMirror
28
- } from "./chunk-X6KXNHUO.js";
28
+ } from "./chunk-5BKQVP56.js";
29
29
  export {
30
30
  PLAN_STATUS_TO_TASK,
31
31
  SESSION_KANBAN_COLUMNS,
package/dist/task.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  taskTool
3
- } from "./chunk-LQSOU63Z.js";
4
- import "./chunk-FBUP524S.js";
5
- import "./chunk-SMARDKAC.js";
6
- import "./chunk-X6KXNHUO.js";
3
+ } from "./chunk-OZVGRDCM.js";
4
+ import "./chunk-TGVQMKVH.js";
5
+ import "./chunk-5UA4TNJJ.js";
6
+ import "./chunk-5BKQVP56.js";
7
7
  export {
8
8
  taskTool
9
9
  };
package/dist/test.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  testTool
3
- } from "./chunk-QA6IASYX.js";
4
- import "./chunk-T3SMFF5Q.js";
5
- import "./chunk-7N5U2RAU.js";
6
- import "./chunk-DRRY6SCM.js";
3
+ } from "./chunk-S6E2AM4U.js";
4
+ import "./chunk-JQ43NVFU.js";
5
+ import "./chunk-JK5WXW4S.js";
6
+ import "./chunk-EMA2XENR.js";
7
7
  import "./chunk-SCMRM6NL.js";
8
8
  import "./chunk-HDYUBRMF.js";
9
9
  import "./chunk-7JJFC6CT.js";
10
- import "./chunk-KE7A76VC.js";
11
- import "./chunk-ZUFHAHTE.js";
10
+ import "./chunk-5U5ULQX2.js";
11
+ import "./chunk-HKR56VNF.js";
12
12
  export {
13
13
  testTool
14
14
  };
package/dist/todo.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  todoTool
3
- } from "./chunk-FBUP524S.js";
4
- import "./chunk-SMARDKAC.js";
5
- import "./chunk-X6KXNHUO.js";
3
+ } from "./chunk-TGVQMKVH.js";
4
+ import "./chunk-5UA4TNJJ.js";
5
+ import "./chunk-5BKQVP56.js";
6
6
  export {
7
7
  todoTool
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toolSearchTool
3
- } from "./chunk-24T5XIJU.js";
3
+ } from "./chunk-YA2ZYCJY.js";
4
4
  export {
5
5
  toolSearchTool
6
6
  };
@@ -7,8 +7,18 @@ import type { ConcreteTokenSavingTier, Tool } from '@wrongstack/core/types';
7
7
  *
8
8
  * Website (`website/src/pages/ToolsPage.tsx`) and any other consumer that
9
9
  * wants to render tier counts without actually loading the catalog should
10
- * mirror this map. When `TIER1_TOOLS` / `TIER2_TOOLS` / `TIER3_TOOLS` change,
11
- * regenerate these numbers from a smoke test (or update both together).
10
+ * mirror this map. When `TIER1_TOOLS` / `TIER2_TOOLS` change, regenerate these
11
+ * numbers from a smoke test (or update both together).
12
+ *
13
+ * `TIER3_TOOLS` deliberately appears in no tier below `off`: the specialized
14
+ * tools it names reach the model through `tool_search` / `tool_use` instead of
15
+ * costing a schema on every request. That pair therefore lives in
16
+ * `TIER1_TOOLS` and in `DIRECT_LAZY_GATEWAYS`
17
+ * (packages/runtime/src/tool-registration.ts) — while it did not, this comment
18
+ * described a route that did not exist and every withheld tool was simply
19
+ * unreachable. `aggressive` selects the same Tier-1 set as `minimal` - the two
20
+ * differ only in how far tool descriptions are trimmed by the prompt builder,
21
+ * not in which tools are exposed.
12
22
  */
13
23
  export declare const BUILTIN_TIER_COUNTS: Readonly<Record<ConcreteTokenSavingTier, number>>;
14
24
  /**
package/dist/tool-tier.js CHANGED
@@ -2,71 +2,67 @@ import {
2
2
  BUILTIN_TIER_COUNTS,
3
3
  registerBuiltinToolTier,
4
4
  selectBuiltinToolsForTier
5
- } from "./chunk-NFX2IUQA.js";
6
- import "./chunk-EL2NJXSK.js";
7
- import "./chunk-UCXFTCAI.js";
8
- import "./chunk-RV7BVTDG.js";
9
- import "./chunk-HWXIRVKH.js";
5
+ } from "./chunk-NERS6GBT.js";
6
+ import "./chunk-YZLOYJGN.js";
7
+ import "./chunk-T34DVSAE.js";
8
+ import "./chunk-WKXL5XHU.js";
9
+ import "./chunk-OSXM3O3J.js";
10
10
  import "./chunk-XRNN44QY.js";
11
- import "./chunk-5KS24LTS.js";
12
- import "./chunk-LQSOU63Z.js";
13
- import "./chunk-24T5XIJU.js";
14
- import "./chunk-B3MGJBFI.js";
15
- import "./chunk-VBF2YXUW.js";
16
- import "./chunk-7ODZTPCU.js";
17
11
  import "./chunk-IXIS7RSG.js";
18
- import "./chunk-QA6IASYX.js";
19
- import "./chunk-O6BY43ZB.js";
20
- import "./chunk-WEEVSWQB.js";
21
- import "./chunk-6GOZTS6F.js";
22
- import "./chunk-VU3QBYL4.js";
23
- import "./chunk-CHEK3ASV.js";
24
- import "./chunk-KLJZ4WV4.js";
25
- import "./chunk-AQ5YBURX.js";
26
- import "./chunk-TU5MTW2S.js";
27
- import "./chunk-VZGPASGD.js";
28
- import "./chunk-7HL23T3T.js";
29
- import "./chunk-JDOO4P6Z.js";
30
- import "./chunk-3D5DJWOE.js";
31
- import "./chunk-NJX2RXKJ.js";
32
- import "./chunk-4WPBS45A.js";
33
- import "./chunk-T3SMFF5Q.js";
34
- import "./chunk-7N5U2RAU.js";
35
- import "./chunk-DRRY6SCM.js";
36
- import "./chunk-DKHMPKDG.js";
37
- import "./chunk-ASEXQRA7.js";
38
- import "./chunk-4ERMPDHV.js";
12
+ import "./chunk-NKOTOW6X.js";
13
+ import "./chunk-OZVGRDCM.js";
14
+ import "./chunk-S6E2AM4U.js";
15
+ import "./chunk-ZETZHHV5.js";
16
+ import "./chunk-C64UUXTA.js";
17
+ import "./chunk-YJQQ5F5J.js";
18
+ import "./chunk-2ZWQIVEW.js";
19
+ import "./chunk-YA2ZYCJY.js";
20
+ import "./chunk-B3MGJBFI.js";
21
+ import "./chunk-2IC5FRD7.js";
22
+ import "./chunk-EMCIC2JA.js";
23
+ import "./chunk-MG7CUN6R.js";
24
+ import "./chunk-BU6VUXWG.js";
25
+ import "./chunk-3F7HQ3KS.js";
26
+ import "./chunk-R36RWYXE.js";
27
+ import "./chunk-OBVXDVLE.js";
28
+ import "./chunk-D4HWMWGE.js";
29
+ import "./chunk-JQ43NVFU.js";
30
+ import "./chunk-JK5WXW4S.js";
31
+ import "./chunk-EMA2XENR.js";
32
+ import "./chunk-WWAXJKX3.js";
33
+ import "./chunk-FEXPWYU7.js";
34
+ import "./chunk-2QY3DC3H.js";
39
35
  import "./chunk-YJTXRH5Y.js";
40
36
  import "./chunk-ZBMANLYH.js";
41
- import "./chunk-6H4ERJP7.js";
42
- import "./chunk-MGPR7VG3.js";
37
+ import "./chunk-4KI4HHID.js";
38
+ import "./chunk-YILT3CSO.js";
43
39
  import "./chunk-BTSFTGIL.js";
44
40
  import "./chunk-PVCB7RUZ.js";
45
41
  import "./chunk-SCMRM6NL.js";
46
42
  import "./chunk-HDYUBRMF.js";
47
43
  import "./chunk-7JJFC6CT.js";
48
- import "./chunk-MJSJWXBF.js";
44
+ import "./chunk-47GYABZW.js";
49
45
  import "./chunk-62OAECEQ.js";
50
46
  import "./chunk-NBDZMMG2.js";
51
- import "./chunk-FBUP524S.js";
52
- import "./chunk-SMARDKAC.js";
53
- import "./chunk-X6KXNHUO.js";
54
- import "./chunk-SOR7OCYP.js";
55
- import "./chunk-UOYRAS4J.js";
56
- import "./chunk-KVTEIUND.js";
57
- import "./chunk-7XUEPBNT.js";
47
+ import "./chunk-TGVQMKVH.js";
48
+ import "./chunk-5UA4TNJJ.js";
49
+ import "./chunk-5BKQVP56.js";
50
+ import "./chunk-6XYFYLN7.js";
51
+ import "./chunk-VSOVZ5JI.js";
52
+ import "./chunk-A636Z2TG.js";
53
+ import "./chunk-KVEL4EFI.js";
58
54
  import "./chunk-MSOAX3GC.js";
59
- import "./chunk-TI5COGLY.js";
60
- import "./chunk-MBR5VAB5.js";
61
- import "./chunk-52UXXQMP.js";
62
- import "./chunk-DL2ARI4S.js";
63
- import "./chunk-3AU6CZWL.js";
55
+ import "./chunk-PVQBD3TA.js";
56
+ import "./chunk-VQDSIHAR.js";
57
+ import "./chunk-AX5ZG5O5.js";
58
+ import "./chunk-24Q4O34E.js";
59
+ import "./chunk-REWOZIA4.js";
64
60
  import "./chunk-6IEBD27U.js";
65
61
  import "./chunk-ZKC5UNGD.js";
66
62
  import "./chunk-YOHO4DVT.js";
67
63
  import "./chunk-2CTZW6JQ.js";
68
- import "./chunk-KE7A76VC.js";
69
- import "./chunk-ZUFHAHTE.js";
64
+ import "./chunk-5U5ULQX2.js";
65
+ import "./chunk-HKR56VNF.js";
70
66
  export {
71
67
  BUILTIN_TIER_COUNTS,
72
68
  registerBuiltinToolTier,
package/dist/tree.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  DEFAULT_MAX_TREE_ENTRIES,
3
3
  MAX_TREE_OUTPUT_BYTES,
4
4
  treeTool
5
- } from "./chunk-JDOO4P6Z.js";
6
- import "./chunk-ZUFHAHTE.js";
5
+ } from "./chunk-3F7HQ3KS.js";
6
+ import "./chunk-HKR56VNF.js";
7
7
  export {
8
8
  DEFAULT_MAX_TREE_ENTRIES,
9
9
  MAX_TREE_OUTPUT_BYTES,
package/dist/typecheck.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  typecheckTool
3
- } from "./chunk-4WPBS45A.js";
4
- import "./chunk-T3SMFF5Q.js";
5
- import "./chunk-7N5U2RAU.js";
6
- import "./chunk-DRRY6SCM.js";
3
+ } from "./chunk-D4HWMWGE.js";
4
+ import "./chunk-JQ43NVFU.js";
5
+ import "./chunk-JK5WXW4S.js";
6
+ import "./chunk-EMA2XENR.js";
7
7
  import "./chunk-SCMRM6NL.js";
8
8
  import "./chunk-HDYUBRMF.js";
9
9
  import "./chunk-7JJFC6CT.js";
10
- import "./chunk-KE7A76VC.js";
11
- import "./chunk-ZUFHAHTE.js";
10
+ import "./chunk-5U5ULQX2.js";
11
+ import "./chunk-HKR56VNF.js";
12
12
  export {
13
13
  typecheckTool
14
14
  };
package/dist/win32.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  buildWin32CmdShimInvocation,
4
4
  resolvePowerShell,
5
5
  resolveWin32Command
6
- } from "./chunk-KE7A76VC.js";
6
+ } from "./chunk-5U5ULQX2.js";
7
7
  export {
8
8
  assertSafeWin32ShellArgs,
9
9
  buildWin32CmdShimInvocation,
package/dist/write.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  writeTool
3
- } from "./chunk-KVTEIUND.js";
3
+ } from "./chunk-A636Z2TG.js";
4
4
  import "./chunk-MSOAX3GC.js";
5
- import "./chunk-TI5COGLY.js";
6
- import "./chunk-MBR5VAB5.js";
7
- import "./chunk-52UXXQMP.js";
8
- import "./chunk-DL2ARI4S.js";
9
- import "./chunk-3AU6CZWL.js";
5
+ import "./chunk-PVQBD3TA.js";
6
+ import "./chunk-VQDSIHAR.js";
7
+ import "./chunk-AX5ZG5O5.js";
8
+ import "./chunk-24Q4O34E.js";
9
+ import "./chunk-REWOZIA4.js";
10
10
  import "./chunk-6IEBD27U.js";
11
11
  import "./chunk-ZKC5UNGD.js";
12
12
  import "./chunk-YOHO4DVT.js";
13
13
  import "./chunk-2CTZW6JQ.js";
14
- import "./chunk-KE7A76VC.js";
15
- import "./chunk-ZUFHAHTE.js";
14
+ import "./chunk-5U5ULQX2.js";
15
+ import "./chunk-HKR56VNF.js";
16
16
  export {
17
17
  writeTool
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/tools",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack built-in tools: read/write/edit, bash/exec, grep/glob, git, fetch, test, lint, and more.",
6
6
  "repository": {
@@ -160,14 +160,6 @@
160
160
  "types": "./dist/logs.d.ts",
161
161
  "import": "./dist/logs.js"
162
162
  },
163
- "./document": {
164
- "types": "./dist/document.d.ts",
165
- "import": "./dist/document.js"
166
- },
167
- "./scaffold": {
168
- "types": "./dist/scaffold.d.ts",
169
- "import": "./dist/scaffold.js"
170
- },
171
163
  "./tool-search": {
172
164
  "types": "./dist/tool-search.d.ts",
173
165
  "import": "./dist/tool-search.js"
@@ -176,14 +168,6 @@
176
168
  "types": "./dist/tool-use.d.ts",
177
169
  "import": "./dist/tool-use.js"
178
170
  },
179
- "./batch-tool-use": {
180
- "types": "./dist/batch-tool-use.d.ts",
181
- "import": "./dist/batch-tool-use.js"
182
- },
183
- "./tool-help": {
184
- "types": "./dist/tool-help.d.ts",
185
- "import": "./dist/tool-help.js"
186
- },
187
171
  "./memory": {
188
172
  "types": "./dist/memory.d.ts",
189
173
  "import": "./dist/memory.js"
@@ -249,10 +233,10 @@
249
233
  "@msgpack/msgpack": "^3.1.3",
250
234
  "@playwright/test": "^1.62.1",
251
235
  "@typescript/typescript6": "^6.0.2",
252
- "@wrongstack/core": "1.0.2",
253
- "@wrongstack/kanban": "1.0.2",
254
- "@wrongstack/persistence": "1.0.2",
255
- "@wrongstack/primitives": "1.0.2",
236
+ "@wrongstack/core": "1.0.4",
237
+ "@wrongstack/kanban": "1.0.4",
238
+ "@wrongstack/persistence": "1.0.4",
239
+ "@wrongstack/primitives": "1.0.4",
256
240
  "tree-sitter-wasm": "1.1.4",
257
241
  "turndown": "^7.2.4",
258
242
  "undici": "^8.10.0",
@@ -1,24 +0,0 @@
1
- import { type Tool } from '@wrongstack/core/types';
2
- export interface BatchToolUseInput {
3
- calls: {
4
- tool: string;
5
- input: Record<string, unknown>;
6
- }[];
7
- stop_on_error?: boolean | undefined;
8
- parallel?: boolean | undefined;
9
- }
10
- export interface BatchToolUseOutput {
11
- results: {
12
- tool: string;
13
- success: boolean;
14
- result?: unknown | undefined;
15
- error?: string | undefined;
16
- executionMs: number;
17
- }[];
18
- total: number;
19
- succeeded: number;
20
- failed: number;
21
- stop_on_error: boolean;
22
- }
23
- export declare const batchToolUseTool: Tool<BatchToolUseInput, BatchToolUseOutput>;
24
- //# sourceMappingURL=batch-tool-use.d.ts.map
@@ -1,7 +0,0 @@
1
- import {
2
- batchToolUseTool
3
- } from "./chunk-VBF2YXUW.js";
4
- export {
5
- batchToolUseTool
6
- };
7
- //# sourceMappingURL=batch-tool-use.js.map
@@ -1,128 +0,0 @@
1
- // src/tool-help.ts
2
- var toolHelpTool = {
3
- name: "tool_help",
4
- category: "Meta",
5
- description: "Get detailed help for a specific tool, including its full input schema and usage guidance. If you do not know which tool to use, search with `tool_search` first, then call this with the tool name.",
6
- usageHint: "USE WHEN YOU NEED PRECISE TOOL INFORMATION:\n\n- Call with a specific `tool` name when you want the full schema and current usageHint.\n- Omit `tool` to get an overview of all available tools.\n- Different `format` options give you different levels of detail.\n- Tip: use `tool_search` to find the right tool name, then `tool_help` for the full schema.\nThis tool is extremely valuable for self-correction when you are unsure about a tool's interface.",
7
- permission: "auto",
8
- mutating: false,
9
- timeoutMs: 5e3,
10
- capabilities: ["tool.meta"],
11
- icon: "meta",
12
- inputSchema: {
13
- type: "object",
14
- properties: {
15
- tool: {
16
- type: "string",
17
- description: "Specific tool name to get detailed help for. Omit to get a list of all tools."
18
- },
19
- format: {
20
- type: "string",
21
- enum: ["short", "full", "markdown"],
22
- description: 'Level of detail: "short" (summary), "full" (with full schema), "markdown" (human readable).'
23
- },
24
- include_examples: {
25
- type: "boolean",
26
- description: "Whether to include example usage in the response."
27
- }
28
- }
29
- },
30
- async execute(input, ctx) {
31
- const format = input.format ?? "short";
32
- const includeExamples = input.include_examples ?? false;
33
- if (input.tool) {
34
- const tool = (ctx.catalogTools ?? ctx.tools).find((t) => t.name === input.tool);
35
- if (!tool) {
36
- return {
37
- tool: input.tool,
38
- help: `No tool found with name "${input.tool}"`,
39
- tools: [],
40
- total: 0
41
- };
42
- }
43
- return {
44
- tool: tool.name,
45
- help: formatToolHelp(tool, format, includeExamples),
46
- tools: [
47
- {
48
- name: tool.name,
49
- description: tool.description,
50
- usageHint: tool.usageHint ?? "",
51
- inputSchema: tool.inputSchema,
52
- permission: tool.permission,
53
- mutating: tool.mutating
54
- }
55
- ],
56
- total: 1
57
- };
58
- }
59
- const allTools = (ctx.catalogTools ?? ctx.tools).map((t) => ({
60
- name: t.name,
61
- description: t.description,
62
- usageHint: t.usageHint ?? "",
63
- inputSchema: format === "full" ? t.inputSchema : void 0,
64
- permission: t.permission,
65
- mutating: t.mutating
66
- }));
67
- return {
68
- help: format === "markdown" ? formatAllToolsMarkdown(allTools) : formatAllToolsShort(allTools),
69
- tools: allTools,
70
- total: allTools.length
71
- };
72
- }
73
- };
74
- function formatToolHelp(tool, format, includeExamples) {
75
- const lines = [];
76
- if (format === "short") {
77
- lines.push(`${tool.name}: ${tool.description}`);
78
- if (tool.usageHint) lines.push(`Hint: ${tool.usageHint}`);
79
- return lines.join("\n");
80
- }
81
- if (format === "markdown") {
82
- lines.push(`## ${tool.name}`);
83
- lines.push("");
84
- lines.push(tool.description);
85
- lines.push("");
86
- lines.push("**Permission:** " + tool.permission);
87
- lines.push("**Mutating:** " + (tool.mutating ? "yes" : "no"));
88
- if (tool.usageHint) {
89
- lines.push("");
90
- lines.push("### Usage Hint");
91
- lines.push(tool.usageHint);
92
- }
93
- if (includeExamples && tool.inputSchema) {
94
- lines.push("");
95
- lines.push("### Input Schema");
96
- lines.push("```json");
97
- lines.push(JSON.stringify(tool.inputSchema, null, 2));
98
- lines.push("```");
99
- }
100
- return lines.join("\n");
101
- }
102
- lines.push(`Tool: ${tool.name}`);
103
- lines.push(`Description: ${tool.description}`);
104
- lines.push(`Permission: ${tool.permission}`);
105
- lines.push(`Mutating: ${tool.mutating}`);
106
- if (tool.usageHint) lines.push(`Usage: ${tool.usageHint}`);
107
- if (format === "full" && tool.inputSchema) {
108
- lines.push("Schema: " + JSON.stringify(tool.inputSchema, null, 2));
109
- }
110
- return lines.join("\n");
111
- }
112
- function formatAllToolsShort(tools) {
113
- return tools.map((t) => ` ${t.name.padEnd(16)} ${t.description}`).join("\n");
114
- }
115
- function formatAllToolsMarkdown(tools) {
116
- const lines = ["## Available Tools", ""];
117
- lines.push("| Tool | Description |");
118
- lines.push("|------|-------------|");
119
- for (const t of tools) {
120
- lines.push(`| \`${t.name}\` | ${t.description.replaceAll("|", "\\|")} |`);
121
- }
122
- return lines.join("\n");
123
- }
124
-
125
- export {
126
- toolHelpTool
127
- };
128
- //# sourceMappingURL=chunk-7ODZTPCU.js.map