agentool 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/ask-user/index.cjs +5 -2
  2. package/dist/ask-user/index.d.cts +10 -1
  3. package/dist/ask-user/index.d.ts +10 -1
  4. package/dist/ask-user/index.js +5 -2
  5. package/dist/bash/index.cjs +5 -2
  6. package/dist/bash/index.d.cts +14 -1
  7. package/dist/bash/index.d.ts +14 -1
  8. package/dist/bash/index.js +5 -2
  9. package/dist/{chunk-IEX4NOVN.cjs → chunk-2JBLVFB7.cjs} +30 -4
  10. package/dist/{chunk-K77GC2QI.js → chunk-2JF3ZF2J.js} +32 -2
  11. package/dist/{chunk-UDIG7332.js → chunk-2WSZCOJP.js} +40 -4
  12. package/dist/chunk-3FT4ZPB2.cjs +65 -0
  13. package/dist/{chunk-VLNDEVKS.js → chunk-3LGXZLBH.js} +46 -8
  14. package/dist/{chunk-G3ITTPGX.js → chunk-4MXDQEPA.js} +12 -1
  15. package/dist/{chunk-CGTPF6IS.js → chunk-4UUSERSH.js} +31 -7
  16. package/dist/{chunk-I6KFFQPV.cjs → chunk-5T3SQYI4.cjs} +34 -4
  17. package/dist/chunk-6ULQG2W2.cjs +99 -0
  18. package/dist/chunk-ABXTBB2N.cjs +67 -0
  19. package/dist/{chunk-CAEVLIQB.cjs → chunk-BIAODQ2P.cjs} +17 -1
  20. package/dist/chunk-CJA76MKM.js +59 -0
  21. package/dist/chunk-CM3VRCNX.cjs +59 -0
  22. package/dist/{chunk-SUSAPI5W.cjs → chunk-CXBWF5ON.cjs} +51 -4
  23. package/dist/{chunk-5O55DKOB.cjs → chunk-G6ZVJA4V.cjs} +30 -4
  24. package/dist/{chunk-P6Z5XFDS.js → chunk-GPHCXS2S.js} +41 -15
  25. package/dist/chunk-HG5T47NA.cjs +77 -0
  26. package/dist/chunk-HO4NIRU5.js +65 -0
  27. package/dist/{chunk-HZAQRHBT.js → chunk-IBC4QCGR.js} +27 -2
  28. package/dist/chunk-JYTOARJV.cjs +69 -0
  29. package/dist/chunk-KONXT2SF.cjs +8 -0
  30. package/dist/chunk-KUFZFNPT.cjs +61 -0
  31. package/dist/chunk-L7R4UZSK.js +61 -0
  32. package/dist/{chunk-FV2R5FFQ.cjs → chunk-LNAR3NJQ.cjs} +47 -9
  33. package/dist/chunk-M74OQYNK.js +69 -0
  34. package/dist/{chunk-5TDZF4IM.cjs → chunk-NQIV6LBH.cjs} +42 -6
  35. package/dist/chunk-NTGDU5X3.js +67 -0
  36. package/dist/{chunk-ONBH74ZV.cjs → chunk-OYLTQJXT.cjs} +32 -8
  37. package/dist/{chunk-6PQLFDGT.js → chunk-PWBVB6MN.js} +17 -1
  38. package/dist/{chunk-HNP7JDQC.cjs → chunk-RIGL3JTS.cjs} +41 -5
  39. package/dist/chunk-SFDZRLSX.cjs +91 -0
  40. package/dist/{chunk-ZFQZWXOI.cjs → chunk-T6STO7PS.cjs} +58 -7
  41. package/dist/{chunk-LPV5CN2K.js → chunk-TI4ZZ3IJ.js} +32 -2
  42. package/dist/{chunk-S7IVHOA6.js → chunk-TM5L4HA5.js} +54 -3
  43. package/dist/{chunk-4YI2H55A.js → chunk-TXZ3BMMR.js} +49 -2
  44. package/dist/{chunk-IRRNYFI5.js → chunk-UCA6LURO.js} +28 -2
  45. package/dist/{chunk-EA3YV7ZG.js → chunk-VE4U27HI.js} +35 -15
  46. package/dist/{chunk-E6NBEYZD.js → chunk-VHLY7LQE.js} +7 -5
  47. package/dist/{chunk-FW3UJ622.cjs → chunk-VPRUYL4T.cjs} +34 -4
  48. package/dist/{chunk-3VO6NETR.cjs → chunk-VPV6WG5V.cjs} +41 -21
  49. package/dist/{chunk-L5JH4I77.cjs → chunk-VQSWMGG7.cjs} +8 -6
  50. package/dist/{chunk-4HIATLKI.js → chunk-VZRXTFS4.js} +28 -2
  51. package/dist/chunk-WCR62UZ3.js +67 -0
  52. package/dist/chunk-X6ZY2KFU.js +8 -0
  53. package/dist/chunk-XGDE7S2D.cjs +67 -0
  54. package/dist/chunk-XPTW45XY.js +77 -0
  55. package/dist/{chunk-YPPPGGLA.cjs → chunk-YCWJVQYO.cjs} +28 -3
  56. package/dist/chunk-YGXLT6SS.js +91 -0
  57. package/dist/{chunk-5NW4OGRI.cjs → chunk-YTPZHJDC.cjs} +12 -1
  58. package/dist/{chunk-XAQGZ374.js → chunk-ZHVRP3EH.js} +40 -4
  59. package/dist/context-compaction/index.cjs +5 -2
  60. package/dist/context-compaction/index.d.cts +11 -1
  61. package/dist/context-compaction/index.d.ts +11 -1
  62. package/dist/context-compaction/index.js +5 -2
  63. package/dist/diff/index.cjs +6 -2
  64. package/dist/diff/index.d.cts +12 -2
  65. package/dist/diff/index.d.ts +12 -2
  66. package/dist/diff/index.js +7 -3
  67. package/dist/edit/index.cjs +7 -3
  68. package/dist/edit/index.d.cts +13 -3
  69. package/dist/edit/index.d.ts +13 -3
  70. package/dist/edit/index.js +8 -4
  71. package/dist/glob/index.cjs +5 -2
  72. package/dist/glob/index.d.cts +13 -3
  73. package/dist/glob/index.d.ts +13 -3
  74. package/dist/glob/index.js +5 -2
  75. package/dist/grep/index.cjs +6 -2
  76. package/dist/grep/index.d.cts +13 -3
  77. package/dist/grep/index.d.ts +13 -3
  78. package/dist/grep/index.js +6 -2
  79. package/dist/http-request/index.cjs +5 -2
  80. package/dist/http-request/index.d.cts +11 -1
  81. package/dist/http-request/index.d.ts +11 -1
  82. package/dist/http-request/index.js +5 -2
  83. package/dist/index.cjs +68 -25
  84. package/dist/index.d.cts +21 -21
  85. package/dist/index.d.ts +21 -21
  86. package/dist/index.js +73 -30
  87. package/dist/lsp/index.cjs +6 -2
  88. package/dist/lsp/index.d.cts +10 -1
  89. package/dist/lsp/index.d.ts +10 -1
  90. package/dist/lsp/index.js +6 -2
  91. package/dist/memory/index.cjs +6 -2
  92. package/dist/memory/index.d.cts +10 -1
  93. package/dist/memory/index.d.ts +10 -1
  94. package/dist/memory/index.js +6 -2
  95. package/dist/multi-edit/index.cjs +7 -4
  96. package/dist/multi-edit/index.d.cts +12 -2
  97. package/dist/multi-edit/index.d.ts +12 -2
  98. package/dist/multi-edit/index.js +7 -4
  99. package/dist/read/index.cjs +6 -3
  100. package/dist/read/index.d.cts +11 -1
  101. package/dist/read/index.d.ts +11 -1
  102. package/dist/read/index.js +6 -3
  103. package/dist/sleep/index.cjs +5 -2
  104. package/dist/sleep/index.d.cts +11 -1
  105. package/dist/sleep/index.d.ts +11 -1
  106. package/dist/sleep/index.js +5 -2
  107. package/dist/task-create/index.cjs +7 -3
  108. package/dist/task-create/index.d.cts +10 -1
  109. package/dist/task-create/index.d.ts +10 -1
  110. package/dist/task-create/index.js +7 -3
  111. package/dist/task-get/index.cjs +7 -3
  112. package/dist/task-get/index.d.cts +10 -1
  113. package/dist/task-get/index.d.ts +10 -1
  114. package/dist/task-get/index.js +7 -3
  115. package/dist/task-list/index.cjs +7 -3
  116. package/dist/task-list/index.d.cts +10 -1
  117. package/dist/task-list/index.d.ts +10 -1
  118. package/dist/task-list/index.js +7 -3
  119. package/dist/task-update/index.cjs +7 -3
  120. package/dist/task-update/index.d.cts +12 -3
  121. package/dist/task-update/index.d.ts +12 -3
  122. package/dist/task-update/index.js +7 -3
  123. package/dist/tool-search/index.cjs +5 -2
  124. package/dist/tool-search/index.d.cts +10 -1
  125. package/dist/tool-search/index.d.ts +10 -1
  126. package/dist/tool-search/index.js +5 -2
  127. package/dist/web-fetch/index.cjs +5 -2
  128. package/dist/web-fetch/index.d.cts +11 -1
  129. package/dist/web-fetch/index.d.ts +11 -1
  130. package/dist/web-fetch/index.js +5 -2
  131. package/dist/web-search/index.cjs +5 -2
  132. package/dist/web-search/index.d.cts +10 -1
  133. package/dist/web-search/index.d.ts +10 -1
  134. package/dist/web-search/index.js +5 -2
  135. package/dist/write/index.cjs +6 -3
  136. package/dist/write/index.d.cts +13 -3
  137. package/dist/write/index.d.ts +13 -3
  138. package/dist/write/index.js +6 -3
  139. package/package.json +1 -1
  140. package/dist/chunk-3EPGFWZV.cjs +0 -30
  141. package/dist/chunk-44AFQ2B7.js +0 -30
  142. package/dist/chunk-4HXAKPQH.cjs +0 -36
  143. package/dist/chunk-56CL4JCW.cjs +0 -53
  144. package/dist/chunk-6DJSWTWQ.cjs +0 -40
  145. package/dist/chunk-ACGW44YT.js +0 -47
  146. package/dist/chunk-ECYT46FP.js +0 -40
  147. package/dist/chunk-HDKXSKMO.js +0 -30
  148. package/dist/chunk-HNUL2CID.cjs +0 -34
  149. package/dist/chunk-LK6SQH2G.cjs +0 -30
  150. package/dist/chunk-LTE5NG4D.js +0 -53
  151. package/dist/chunk-MF7CJVIZ.js +0 -40
  152. package/dist/chunk-OM2UFTGS.cjs +0 -47
  153. package/dist/chunk-OXLQ7QVL.cjs +0 -40
  154. package/dist/chunk-TMW3XKKJ.js +0 -34
  155. package/dist/chunk-VXZ4RKJI.js +0 -36
  156. package/dist/chunk-ZBLQV6UO.cjs +0 -73
package/dist/index.js CHANGED
@@ -1,96 +1,121 @@
1
1
  import {
2
2
  createToolSearch,
3
+ getPrompt as getPrompt16,
3
4
  toolSearch
4
- } from "./chunk-IRRNYFI5.js";
5
+ } from "./chunk-UCA6LURO.js";
5
6
  import {
6
7
  createLsp,
8
+ getPrompt as getPrompt17,
7
9
  lsp
8
- } from "./chunk-XAQGZ374.js";
10
+ } from "./chunk-ZHVRP3EH.js";
9
11
  import {
10
12
  createHttpRequest,
13
+ getPrompt as getPrompt18,
11
14
  httpRequest
12
- } from "./chunk-LPV5CN2K.js";
15
+ } from "./chunk-TI4ZZ3IJ.js";
13
16
  import {
14
17
  contextCompaction,
15
- createContextCompaction
16
- } from "./chunk-K77GC2QI.js";
18
+ createContextCompaction,
19
+ getPrompt as getPrompt19
20
+ } from "./chunk-2JF3ZF2J.js";
17
21
  import {
18
22
  askUser,
19
- createAskUser
20
- } from "./chunk-HDKXSKMO.js";
23
+ createAskUser,
24
+ getPrompt as getPrompt20
25
+ } from "./chunk-L7R4UZSK.js";
21
26
  import {
22
27
  createSleep,
28
+ getPrompt as getPrompt21,
23
29
  sleep
24
- } from "./chunk-MF7CJVIZ.js";
30
+ } from "./chunk-M74OQYNK.js";
25
31
  import {
26
32
  createMemory,
33
+ getPrompt as getPrompt8,
27
34
  memory
28
- } from "./chunk-VLNDEVKS.js";
35
+ } from "./chunk-3LGXZLBH.js";
29
36
  import {
30
37
  createMultiEdit,
38
+ getPrompt as getPrompt9,
31
39
  multiEdit
32
- } from "./chunk-EA3YV7ZG.js";
40
+ } from "./chunk-VE4U27HI.js";
33
41
  import {
34
42
  createDiff,
35
- diff
36
- } from "./chunk-CGTPF6IS.js";
43
+ diff,
44
+ getPrompt as getPrompt10
45
+ } from "./chunk-4UUSERSH.js";
37
46
  import {
38
47
  createTaskCreate,
48
+ getPrompt as getPrompt11,
39
49
  taskCreate
40
- } from "./chunk-LTE5NG4D.js";
50
+ } from "./chunk-YGXLT6SS.js";
41
51
  import {
42
52
  createTaskGet,
53
+ getPrompt as getPrompt12,
43
54
  taskGet
44
- } from "./chunk-VXZ4RKJI.js";
55
+ } from "./chunk-WCR62UZ3.js";
45
56
  import {
46
57
  createTaskUpdate,
58
+ getPrompt as getPrompt13,
47
59
  taskUpdate
48
- } from "./chunk-S7IVHOA6.js";
60
+ } from "./chunk-TM5L4HA5.js";
49
61
  import {
50
62
  createTaskList,
63
+ getPrompt as getPrompt14,
51
64
  taskList
52
- } from "./chunk-TMW3XKKJ.js";
53
- import "./chunk-E6NBEYZD.js";
65
+ } from "./chunk-HO4NIRU5.js";
66
+ import "./chunk-VHLY7LQE.js";
54
67
  import {
55
68
  createWebSearch,
69
+ getPrompt as getPrompt15,
56
70
  webSearch
57
- } from "./chunk-44AFQ2B7.js";
71
+ } from "./chunk-CJA76MKM.js";
58
72
  import {
59
73
  bash,
60
- createBash
61
- } from "./chunk-4YI2H55A.js";
74
+ createBash,
75
+ getPrompt
76
+ } from "./chunk-TXZ3BMMR.js";
62
77
  import {
63
78
  createGrep,
79
+ getPrompt as getPrompt2,
64
80
  grep
65
- } from "./chunk-UDIG7332.js";
81
+ } from "./chunk-2WSZCOJP.js";
66
82
  import {
67
83
  createGlob,
84
+ getPrompt as getPrompt3,
68
85
  glob
69
- } from "./chunk-HZAQRHBT.js";
86
+ } from "./chunk-IBC4QCGR.js";
70
87
  import "./chunk-MJCAXASI.js";
71
88
  import {
72
89
  createRead,
90
+ getPrompt as getPrompt4,
73
91
  read
74
- } from "./chunk-ACGW44YT.js";
92
+ } from "./chunk-XPTW45XY.js";
75
93
  import {
76
94
  createEdit,
77
- edit
78
- } from "./chunk-P6Z5XFDS.js";
79
- import "./chunk-G3ITTPGX.js";
95
+ edit,
96
+ getPrompt as getPrompt5
97
+ } from "./chunk-GPHCXS2S.js";
98
+ import "./chunk-4MXDQEPA.js";
80
99
  import {
81
100
  createWrite,
101
+ getPrompt as getPrompt6,
82
102
  write
83
- } from "./chunk-ECYT46FP.js";
84
- import "./chunk-6PQLFDGT.js";
103
+ } from "./chunk-NTGDU5X3.js";
104
+ import "./chunk-PWBVB6MN.js";
85
105
  import "./chunk-I3ONDY7P.js";
86
106
  import {
87
107
  createWebFetch,
108
+ getPrompt as getPrompt7,
88
109
  webFetch
89
- } from "./chunk-4HIATLKI.js";
110
+ } from "./chunk-VZRXTFS4.js";
111
+ import "./chunk-X6ZY2KFU.js";
90
112
  export {
91
113
  askUser,
114
+ getPrompt20 as askUserPrompt,
92
115
  bash,
116
+ getPrompt as bashPrompt,
93
117
  contextCompaction,
118
+ getPrompt19 as contextCompactionPrompt,
94
119
  createAskUser,
95
120
  createBash,
96
121
  createContextCompaction,
@@ -113,21 +138,39 @@ export {
113
138
  createWebSearch,
114
139
  createWrite,
115
140
  diff,
141
+ getPrompt10 as diffPrompt,
116
142
  edit,
143
+ getPrompt5 as editPrompt,
117
144
  glob,
145
+ getPrompt3 as globPrompt,
118
146
  grep,
147
+ getPrompt2 as grepPrompt,
119
148
  httpRequest,
149
+ getPrompt18 as httpRequestPrompt,
120
150
  lsp,
151
+ getPrompt17 as lspPrompt,
121
152
  memory,
153
+ getPrompt8 as memoryPrompt,
122
154
  multiEdit,
155
+ getPrompt9 as multiEditPrompt,
123
156
  read,
157
+ getPrompt4 as readPrompt,
124
158
  sleep,
159
+ getPrompt21 as sleepPrompt,
125
160
  taskCreate,
161
+ getPrompt11 as taskCreatePrompt,
126
162
  taskGet,
163
+ getPrompt12 as taskGetPrompt,
127
164
  taskList,
165
+ getPrompt14 as taskListPrompt,
128
166
  taskUpdate,
167
+ getPrompt13 as taskUpdatePrompt,
129
168
  toolSearch,
169
+ getPrompt16 as toolSearchPrompt,
130
170
  webFetch,
171
+ getPrompt7 as webFetchPrompt,
131
172
  webSearch,
132
- write
173
+ getPrompt15 as webSearchPrompt,
174
+ write,
175
+ getPrompt6 as writePrompt
133
176
  };
@@ -2,9 +2,13 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk5TDZF4IMcjs = require('../chunk-5TDZF4IM.cjs');
6
5
 
6
+ var _chunkNQIV6LBHcjs = require('../chunk-NQIV6LBH.cjs');
7
+ require('../chunk-BIAODQ2P.cjs');
8
+ require('../chunk-KONXT2SF.cjs');
7
9
 
8
10
 
9
11
 
10
- exports.createLsp = _chunk5TDZF4IMcjs.createLsp; exports.executeLspOperation = _chunk5TDZF4IMcjs.executeLspOperation; exports.lsp = _chunk5TDZF4IMcjs.lsp;
12
+
13
+
14
+ exports.createLsp = _chunkNQIV6LBHcjs.createLsp; exports.executeLspOperation = _chunkNQIV6LBHcjs.executeLspOperation; exports.lsp = _chunkNQIV6LBHcjs.lsp; exports.lspPrompt = _chunkNQIV6LBHcjs.getPrompt;
@@ -1,6 +1,13 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the LSP tool.
6
+ *
7
+ * @returns The full description string for the LSP tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
4
11
  interface LspServerConfig {
5
12
  command: string;
6
13
  args?: string[];
@@ -8,6 +15,8 @@ interface LspServerConfig {
8
15
  interface LspConfig extends BaseToolConfig {
9
16
  servers?: Record<string, LspServerConfig>;
10
17
  timeout?: number;
18
+ /** Override the default tool description. */
19
+ description?: string;
11
20
  }
12
21
  interface LspRequest {
13
22
  operation: string;
@@ -32,4 +41,4 @@ declare const lsp: ai.Tool<{
32
41
  character: number;
33
42
  }, string>;
34
43
 
35
- export { type LspConfig, type LspServerConfig, createLsp, executeLspOperation, lsp };
44
+ export { type LspConfig, type LspServerConfig, createLsp, executeLspOperation, lsp, getPrompt as lspPrompt };
@@ -1,6 +1,13 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the LSP tool.
6
+ *
7
+ * @returns The full description string for the LSP tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
4
11
  interface LspServerConfig {
5
12
  command: string;
6
13
  args?: string[];
@@ -8,6 +15,8 @@ interface LspServerConfig {
8
15
  interface LspConfig extends BaseToolConfig {
9
16
  servers?: Record<string, LspServerConfig>;
10
17
  timeout?: number;
18
+ /** Override the default tool description. */
19
+ description?: string;
11
20
  }
12
21
  interface LspRequest {
13
22
  operation: string;
@@ -32,4 +41,4 @@ declare const lsp: ai.Tool<{
32
41
  character: number;
33
42
  }, string>;
34
43
 
35
- export { type LspConfig, type LspServerConfig, createLsp, executeLspOperation, lsp };
44
+ export { type LspConfig, type LspServerConfig, createLsp, executeLspOperation, lsp, getPrompt as lspPrompt };
package/dist/lsp/index.js CHANGED
@@ -1,10 +1,14 @@
1
1
  import {
2
2
  createLsp,
3
3
  executeLspOperation,
4
+ getPrompt,
4
5
  lsp
5
- } from "../chunk-XAQGZ374.js";
6
+ } from "../chunk-ZHVRP3EH.js";
7
+ import "../chunk-PWBVB6MN.js";
8
+ import "../chunk-X6ZY2KFU.js";
6
9
  export {
7
10
  createLsp,
8
11
  executeLspOperation,
9
- lsp
12
+ lsp,
13
+ getPrompt as lspPrompt
10
14
  };
@@ -1,9 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkFV2R5FFQcjs = require('../chunk-FV2R5FFQ.cjs');
4
+
5
+ var _chunkLNAR3NJQcjs = require('../chunk-LNAR3NJQ.cjs');
6
+ require('../chunk-BIAODQ2P.cjs');
5
7
  require('../chunk-QZ5GS6HW.cjs');
8
+ require('../chunk-KONXT2SF.cjs');
9
+
6
10
 
7
11
 
8
12
 
9
- exports.createMemory = _chunkFV2R5FFQcjs.createMemory; exports.memory = _chunkFV2R5FFQcjs.memory;
13
+ exports.createMemory = _chunkLNAR3NJQcjs.createMemory; exports.memory = _chunkLNAR3NJQcjs.memory; exports.memoryPrompt = _chunkLNAR3NJQcjs.getPrompt;
@@ -1,6 +1,13 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the memory tool.
6
+ *
7
+ * @returns The full description string for the memory tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
4
11
  /**
5
12
  * Configuration for the memory tool.
6
13
  * Extends {@link BaseToolConfig} with an optional memory directory path.
@@ -14,6 +21,8 @@ import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
14
21
  interface MemoryConfig extends BaseToolConfig {
15
22
  /** Directory for memory files. Defaults to `<cwd>/.agentool/memory`. */
16
23
  memoryDir?: string;
24
+ /** Override the default tool description. */
25
+ description?: string;
17
26
  }
18
27
  /**
19
28
  * Creates a memory tool that provides file-based key-value storage.
@@ -60,4 +69,4 @@ declare const memory: ai.Tool<{
60
69
  key?: string | undefined;
61
70
  }, string>;
62
71
 
63
- export { type MemoryConfig, createMemory, memory };
72
+ export { type MemoryConfig, createMemory, memory, getPrompt as memoryPrompt };
@@ -1,6 +1,13 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the memory tool.
6
+ *
7
+ * @returns The full description string for the memory tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
4
11
  /**
5
12
  * Configuration for the memory tool.
6
13
  * Extends {@link BaseToolConfig} with an optional memory directory path.
@@ -14,6 +21,8 @@ import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
14
21
  interface MemoryConfig extends BaseToolConfig {
15
22
  /** Directory for memory files. Defaults to `<cwd>/.agentool/memory`. */
16
23
  memoryDir?: string;
24
+ /** Override the default tool description. */
25
+ description?: string;
17
26
  }
18
27
  /**
19
28
  * Creates a memory tool that provides file-based key-value storage.
@@ -60,4 +69,4 @@ declare const memory: ai.Tool<{
60
69
  key?: string | undefined;
61
70
  }, string>;
62
71
 
63
- export { type MemoryConfig, createMemory, memory };
72
+ export { type MemoryConfig, createMemory, memory, getPrompt as memoryPrompt };
@@ -1,9 +1,13 @@
1
1
  import {
2
2
  createMemory,
3
+ getPrompt,
3
4
  memory
4
- } from "../chunk-VLNDEVKS.js";
5
+ } from "../chunk-3LGXZLBH.js";
6
+ import "../chunk-PWBVB6MN.js";
5
7
  import "../chunk-I3ONDY7P.js";
8
+ import "../chunk-X6ZY2KFU.js";
6
9
  export {
7
10
  createMemory,
8
- memory
11
+ memory,
12
+ getPrompt as memoryPrompt
9
13
  };
@@ -1,11 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk3VO6NETRcjs = require('../chunk-3VO6NETR.cjs');
5
- require('../chunk-5NW4OGRI.cjs');
6
- require('../chunk-CAEVLIQB.cjs');
4
+
5
+ var _chunkVPV6WG5Vcjs = require('../chunk-VPV6WG5V.cjs');
6
+ require('../chunk-YTPZHJDC.cjs');
7
+ require('../chunk-BIAODQ2P.cjs');
7
8
  require('../chunk-QZ5GS6HW.cjs');
9
+ require('../chunk-KONXT2SF.cjs');
10
+
8
11
 
9
12
 
10
13
 
11
- exports.createMultiEdit = _chunk3VO6NETRcjs.createMultiEdit; exports.multiEdit = _chunk3VO6NETRcjs.multiEdit;
14
+ exports.createMultiEdit = _chunkVPV6WG5Vcjs.createMultiEdit; exports.multiEdit = _chunkVPV6WG5Vcjs.multiEdit; exports.multiEditPrompt = _chunkVPV6WG5Vcjs.getPrompt;
@@ -1,6 +1,13 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the multi-edit tool.
6
+ *
7
+ * @returns The full description string for the multi-edit tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
4
11
  /**
5
12
  * Configuration for the multi-edit tool.
6
13
  *
@@ -10,7 +17,10 @@ import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
10
17
  * const config: MultiEditConfig = { cwd: '/my/project' };
11
18
  * ```
12
19
  */
13
- type MultiEditConfig = BaseToolConfig;
20
+ type MultiEditConfig = BaseToolConfig & {
21
+ /** Override the default tool description. */
22
+ description?: string;
23
+ };
14
24
  /**
15
25
  * Creates a multi-edit tool that atomically applies multiple string
16
26
  * replacements to a single file.
@@ -69,4 +79,4 @@ declare const multiEdit: ai.Tool<{
69
79
  }[];
70
80
  }, string>;
71
81
 
72
- export { type MultiEditConfig, createMultiEdit, multiEdit };
82
+ export { type MultiEditConfig, createMultiEdit, multiEdit, getPrompt as multiEditPrompt };
@@ -1,6 +1,13 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the multi-edit tool.
6
+ *
7
+ * @returns The full description string for the multi-edit tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
4
11
  /**
5
12
  * Configuration for the multi-edit tool.
6
13
  *
@@ -10,7 +17,10 @@ import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
10
17
  * const config: MultiEditConfig = { cwd: '/my/project' };
11
18
  * ```
12
19
  */
13
- type MultiEditConfig = BaseToolConfig;
20
+ type MultiEditConfig = BaseToolConfig & {
21
+ /** Override the default tool description. */
22
+ description?: string;
23
+ };
14
24
  /**
15
25
  * Creates a multi-edit tool that atomically applies multiple string
16
26
  * replacements to a single file.
@@ -69,4 +79,4 @@ declare const multiEdit: ai.Tool<{
69
79
  }[];
70
80
  }, string>;
71
81
 
72
- export { type MultiEditConfig, createMultiEdit, multiEdit };
82
+ export { type MultiEditConfig, createMultiEdit, multiEdit, getPrompt as multiEditPrompt };
@@ -1,11 +1,14 @@
1
1
  import {
2
2
  createMultiEdit,
3
+ getPrompt,
3
4
  multiEdit
4
- } from "../chunk-EA3YV7ZG.js";
5
- import "../chunk-G3ITTPGX.js";
6
- import "../chunk-6PQLFDGT.js";
5
+ } from "../chunk-VE4U27HI.js";
6
+ import "../chunk-4MXDQEPA.js";
7
+ import "../chunk-PWBVB6MN.js";
7
8
  import "../chunk-I3ONDY7P.js";
9
+ import "../chunk-X6ZY2KFU.js";
8
10
  export {
9
11
  createMultiEdit,
10
- multiEdit
12
+ multiEdit,
13
+ getPrompt as multiEditPrompt
11
14
  };
@@ -1,10 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOM2UFTGScjs = require('../chunk-OM2UFTGS.cjs');
5
- require('../chunk-CAEVLIQB.cjs');
4
+
5
+ var _chunkHG5T47NAcjs = require('../chunk-HG5T47NA.cjs');
6
+ require('../chunk-BIAODQ2P.cjs');
6
7
  require('../chunk-QZ5GS6HW.cjs');
8
+ require('../chunk-KONXT2SF.cjs');
9
+
7
10
 
8
11
 
9
12
 
10
- exports.createRead = _chunkOM2UFTGScjs.createRead; exports.read = _chunkOM2UFTGScjs.read;
13
+ exports.createRead = _chunkHG5T47NAcjs.createRead; exports.read = _chunkHG5T47NAcjs.read; exports.readPrompt = _chunkHG5T47NAcjs.getPrompt;
@@ -1,6 +1,14 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the read tool based on its configuration.
6
+ *
7
+ * @param config - The same config passed to {@link createRead}.
8
+ * @returns The full description string for the read tool.
9
+ */
10
+ declare function getPrompt(config?: Pick<ReadConfig, 'maxLines'>): string;
11
+
4
12
  /**
5
13
  * Configuration for the read tool.
6
14
  * Extends {@link BaseToolConfig} with an optional maximum line count.
@@ -17,6 +25,8 @@ interface ReadConfig extends BaseToolConfig {
17
25
  * @default 2000
18
26
  */
19
27
  maxLines?: number;
28
+ /** Override the default tool description. */
29
+ description?: string;
20
30
  }
21
31
  /**
22
32
  * Creates a read tool that reads file contents with line numbers.
@@ -64,4 +74,4 @@ declare const read: ai.Tool<{
64
74
  limit?: number | undefined;
65
75
  }, string>;
66
76
 
67
- export { type ReadConfig, createRead, read };
77
+ export { type ReadConfig, createRead, read, getPrompt as readPrompt };
@@ -1,6 +1,14 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the read tool based on its configuration.
6
+ *
7
+ * @param config - The same config passed to {@link createRead}.
8
+ * @returns The full description string for the read tool.
9
+ */
10
+ declare function getPrompt(config?: Pick<ReadConfig, 'maxLines'>): string;
11
+
4
12
  /**
5
13
  * Configuration for the read tool.
6
14
  * Extends {@link BaseToolConfig} with an optional maximum line count.
@@ -17,6 +25,8 @@ interface ReadConfig extends BaseToolConfig {
17
25
  * @default 2000
18
26
  */
19
27
  maxLines?: number;
28
+ /** Override the default tool description. */
29
+ description?: string;
20
30
  }
21
31
  /**
22
32
  * Creates a read tool that reads file contents with line numbers.
@@ -64,4 +74,4 @@ declare const read: ai.Tool<{
64
74
  limit?: number | undefined;
65
75
  }, string>;
66
76
 
67
- export { type ReadConfig, createRead, read };
77
+ export { type ReadConfig, createRead, read, getPrompt as readPrompt };
@@ -1,10 +1,13 @@
1
1
  import {
2
2
  createRead,
3
+ getPrompt,
3
4
  read
4
- } from "../chunk-ACGW44YT.js";
5
- import "../chunk-6PQLFDGT.js";
5
+ } from "../chunk-XPTW45XY.js";
6
+ import "../chunk-PWBVB6MN.js";
6
7
  import "../chunk-I3ONDY7P.js";
8
+ import "../chunk-X6ZY2KFU.js";
7
9
  export {
8
10
  createRead,
9
- read
11
+ read,
12
+ getPrompt as readPrompt
10
13
  };
@@ -1,8 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOXLQ7QVLcjs = require('../chunk-OXLQ7QVL.cjs');
5
4
 
5
+ var _chunkJYTOARJVcjs = require('../chunk-JYTOARJV.cjs');
6
+ require('../chunk-KONXT2SF.cjs');
6
7
 
7
8
 
8
- exports.createSleep = _chunkOXLQ7QVLcjs.createSleep; exports.sleep = _chunkOXLQ7QVLcjs.sleep;
9
+
10
+
11
+ exports.createSleep = _chunkJYTOARJVcjs.createSleep; exports.sleep = _chunkJYTOARJVcjs.sleep; exports.sleepPrompt = _chunkJYTOARJVcjs.getPrompt;
@@ -1,6 +1,14 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the sleep tool based on its configuration.
6
+ *
7
+ * @param config - The same config passed to {@link createSleep}.
8
+ * @returns The full description string for the sleep tool.
9
+ */
10
+ declare function getPrompt(config?: Pick<SleepConfig, 'maxDuration'>): string;
11
+
4
12
  /**
5
13
  * Configuration for the sleep tool.
6
14
  * Extends {@link BaseToolConfig} with an optional maximum duration cap.
@@ -18,6 +26,8 @@ interface SleepConfig extends BaseToolConfig {
18
26
  * @default 300000 (5 minutes)
19
27
  */
20
28
  maxDuration?: number;
29
+ /** Override the default tool description. */
30
+ description?: string;
21
31
  }
22
32
  /**
23
33
  * Creates a sleep tool that pauses execution for a specified duration.
@@ -57,4 +67,4 @@ declare const sleep: ai.Tool<{
57
67
  reason?: string | undefined;
58
68
  }, string>;
59
69
 
60
- export { type SleepConfig, createSleep, sleep };
70
+ export { type SleepConfig, createSleep, sleep, getPrompt as sleepPrompt };
@@ -1,6 +1,14 @@
1
1
  import * as ai from 'ai';
2
2
  import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the sleep tool based on its configuration.
6
+ *
7
+ * @param config - The same config passed to {@link createSleep}.
8
+ * @returns The full description string for the sleep tool.
9
+ */
10
+ declare function getPrompt(config?: Pick<SleepConfig, 'maxDuration'>): string;
11
+
4
12
  /**
5
13
  * Configuration for the sleep tool.
6
14
  * Extends {@link BaseToolConfig} with an optional maximum duration cap.
@@ -18,6 +26,8 @@ interface SleepConfig extends BaseToolConfig {
18
26
  * @default 300000 (5 minutes)
19
27
  */
20
28
  maxDuration?: number;
29
+ /** Override the default tool description. */
30
+ description?: string;
21
31
  }
22
32
  /**
23
33
  * Creates a sleep tool that pauses execution for a specified duration.
@@ -57,4 +67,4 @@ declare const sleep: ai.Tool<{
57
67
  reason?: string | undefined;
58
68
  }, string>;
59
69
 
60
- export { type SleepConfig, createSleep, sleep };
70
+ export { type SleepConfig, createSleep, sleep, getPrompt as sleepPrompt };
@@ -1,8 +1,11 @@
1
1
  import {
2
2
  createSleep,
3
+ getPrompt,
3
4
  sleep
4
- } from "../chunk-MF7CJVIZ.js";
5
+ } from "../chunk-M74OQYNK.js";
6
+ import "../chunk-X6ZY2KFU.js";
5
7
  export {
6
8
  createSleep,
7
- sleep
9
+ sleep,
10
+ getPrompt as sleepPrompt
8
11
  };