agentool 1.0.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/README.md +132 -21
  2. package/dist/ask-user/index.cjs +5 -2
  3. package/dist/ask-user/index.d.cts +10 -1
  4. package/dist/ask-user/index.d.ts +10 -1
  5. package/dist/ask-user/index.js +5 -2
  6. package/dist/bash/index.cjs +5 -2
  7. package/dist/bash/index.d.cts +14 -1
  8. package/dist/bash/index.d.ts +14 -1
  9. package/dist/bash/index.js +5 -2
  10. package/dist/chunk-2JBLVFB7.cjs +74 -0
  11. package/dist/{chunk-K77GC2QI.js → chunk-2JF3ZF2J.js} +32 -2
  12. package/dist/{chunk-XKG2A3EW.js → chunk-2WSZCOJP.js} +54 -18
  13. package/dist/chunk-3FT4ZPB2.cjs +65 -0
  14. package/dist/{chunk-VLNDEVKS.js → chunk-3LGXZLBH.js} +46 -8
  15. package/dist/{chunk-G3ITTPGX.js → chunk-4MXDQEPA.js} +12 -1
  16. package/dist/{chunk-CGTPF6IS.js → chunk-4UUSERSH.js} +31 -7
  17. package/dist/{chunk-I6KFFQPV.cjs → chunk-5T3SQYI4.cjs} +34 -4
  18. package/dist/chunk-6ULQG2W2.cjs +99 -0
  19. package/dist/chunk-ABXTBB2N.cjs +67 -0
  20. package/dist/{chunk-CAEVLIQB.cjs → chunk-BIAODQ2P.cjs} +17 -1
  21. package/dist/chunk-CJA76MKM.js +59 -0
  22. package/dist/chunk-CM3VRCNX.cjs +59 -0
  23. package/dist/{chunk-SUSAPI5W.cjs → chunk-CXBWF5ON.cjs} +51 -4
  24. package/dist/{chunk-U2YMJM25.cjs → chunk-G6ZVJA4V.cjs} +31 -8
  25. package/dist/chunk-GPHCXS2S.js +99 -0
  26. package/dist/chunk-HG5T47NA.cjs +77 -0
  27. package/dist/chunk-HO4NIRU5.js +65 -0
  28. package/dist/{chunk-HZAQRHBT.js → chunk-IBC4QCGR.js} +27 -2
  29. package/dist/chunk-JYTOARJV.cjs +69 -0
  30. package/dist/chunk-KONXT2SF.cjs +8 -0
  31. package/dist/chunk-KUFZFNPT.cjs +61 -0
  32. package/dist/chunk-L7R4UZSK.js +61 -0
  33. package/dist/{chunk-FV2R5FFQ.cjs → chunk-LNAR3NJQ.cjs} +47 -9
  34. package/dist/chunk-M74OQYNK.js +69 -0
  35. package/dist/{chunk-IMZQ7ELK.cjs → chunk-NQIV6LBH.cjs} +51 -14
  36. package/dist/chunk-NTGDU5X3.js +67 -0
  37. package/dist/{chunk-ONBH74ZV.cjs → chunk-OYLTQJXT.cjs} +32 -8
  38. package/dist/{chunk-6PQLFDGT.js → chunk-PWBVB6MN.js} +17 -1
  39. package/dist/{chunk-QEJV2KZ4.cjs → chunk-RIGL3JTS.cjs} +55 -19
  40. package/dist/chunk-SFDZRLSX.cjs +91 -0
  41. package/dist/chunk-T6STO7PS.cjs +126 -0
  42. package/dist/{chunk-LPV5CN2K.js → chunk-TI4ZZ3IJ.js} +32 -2
  43. package/dist/chunk-TM5L4HA5.js +126 -0
  44. package/dist/{chunk-4YI2H55A.js → chunk-TXZ3BMMR.js} +49 -2
  45. package/dist/chunk-UCA6LURO.js +74 -0
  46. package/dist/{chunk-EA3YV7ZG.js → chunk-VE4U27HI.js} +35 -15
  47. package/dist/chunk-VHLY7LQE.js +53 -0
  48. package/dist/{chunk-FW3UJ622.cjs → chunk-VPRUYL4T.cjs} +34 -4
  49. package/dist/{chunk-3VO6NETR.cjs → chunk-VPV6WG5V.cjs} +41 -21
  50. package/dist/chunk-VQSWMGG7.cjs +53 -0
  51. package/dist/{chunk-Y7KOKDFP.js → chunk-VZRXTFS4.js} +29 -6
  52. package/dist/chunk-WCR62UZ3.js +67 -0
  53. package/dist/chunk-X6ZY2KFU.js +8 -0
  54. package/dist/chunk-XGDE7S2D.cjs +67 -0
  55. package/dist/chunk-XPTW45XY.js +77 -0
  56. package/dist/{chunk-YPPPGGLA.cjs → chunk-YCWJVQYO.cjs} +28 -3
  57. package/dist/chunk-YGXLT6SS.js +91 -0
  58. package/dist/{chunk-5NW4OGRI.cjs → chunk-YTPZHJDC.cjs} +12 -1
  59. package/dist/{chunk-6MDPYALY.js → chunk-ZHVRP3EH.js} +49 -12
  60. package/dist/context-compaction/index.cjs +5 -2
  61. package/dist/context-compaction/index.d.cts +11 -1
  62. package/dist/context-compaction/index.d.ts +11 -1
  63. package/dist/context-compaction/index.js +5 -2
  64. package/dist/diff/index.cjs +6 -2
  65. package/dist/diff/index.d.cts +12 -2
  66. package/dist/diff/index.d.ts +12 -2
  67. package/dist/diff/index.js +7 -3
  68. package/dist/edit/index.cjs +7 -3
  69. package/dist/edit/index.d.cts +15 -5
  70. package/dist/edit/index.d.ts +15 -5
  71. package/dist/edit/index.js +8 -4
  72. package/dist/glob/index.cjs +5 -2
  73. package/dist/glob/index.d.cts +13 -3
  74. package/dist/glob/index.d.ts +13 -3
  75. package/dist/glob/index.js +5 -2
  76. package/dist/grep/index.cjs +6 -2
  77. package/dist/grep/index.d.cts +13 -3
  78. package/dist/grep/index.d.ts +13 -3
  79. package/dist/grep/index.js +6 -2
  80. package/dist/http-request/index.cjs +5 -2
  81. package/dist/http-request/index.d.cts +11 -1
  82. package/dist/http-request/index.d.ts +11 -1
  83. package/dist/http-request/index.js +5 -2
  84. package/dist/index.cjs +93 -19
  85. package/dist/index.d.cts +21 -16
  86. package/dist/index.d.ts +21 -16
  87. package/dist/index.js +113 -39
  88. package/dist/lsp/index.cjs +6 -2
  89. package/dist/lsp/index.d.cts +16 -10
  90. package/dist/lsp/index.d.ts +16 -10
  91. package/dist/lsp/index.js +6 -2
  92. package/dist/memory/index.cjs +6 -2
  93. package/dist/memory/index.d.cts +10 -1
  94. package/dist/memory/index.d.ts +10 -1
  95. package/dist/memory/index.js +6 -2
  96. package/dist/multi-edit/index.cjs +7 -4
  97. package/dist/multi-edit/index.d.cts +12 -2
  98. package/dist/multi-edit/index.d.ts +12 -2
  99. package/dist/multi-edit/index.js +7 -4
  100. package/dist/read/index.cjs +6 -3
  101. package/dist/read/index.d.cts +11 -1
  102. package/dist/read/index.d.ts +11 -1
  103. package/dist/read/index.js +6 -3
  104. package/dist/sleep/index.cjs +5 -2
  105. package/dist/sleep/index.d.cts +11 -1
  106. package/dist/sleep/index.d.ts +11 -1
  107. package/dist/sleep/index.js +5 -2
  108. package/dist/task-create/index.cjs +13 -0
  109. package/dist/task-create/index.d.cts +28 -0
  110. package/dist/task-create/index.d.ts +28 -0
  111. package/dist/task-create/index.js +13 -0
  112. package/dist/task-get/index.cjs +13 -0
  113. package/dist/task-get/index.d.cts +24 -0
  114. package/dist/task-get/index.d.ts +24 -0
  115. package/dist/task-get/index.js +13 -0
  116. package/dist/task-list/index.cjs +13 -0
  117. package/dist/task-list/index.d.cts +20 -0
  118. package/dist/task-list/index.d.ts +20 -0
  119. package/dist/task-list/index.js +13 -0
  120. package/dist/task-update/index.cjs +13 -0
  121. package/dist/task-update/index.d.cts +40 -0
  122. package/dist/task-update/index.d.ts +40 -0
  123. package/dist/task-update/index.js +13 -0
  124. package/dist/tool-search/index.cjs +11 -0
  125. package/dist/tool-search/index.d.cts +27 -0
  126. package/dist/tool-search/index.d.ts +27 -0
  127. package/dist/tool-search/index.js +11 -0
  128. package/dist/web-fetch/index.cjs +5 -2
  129. package/dist/web-fetch/index.d.cts +11 -3
  130. package/dist/web-fetch/index.d.ts +11 -3
  131. package/dist/web-fetch/index.js +5 -2
  132. package/dist/web-search/index.cjs +11 -0
  133. package/dist/web-search/index.d.cts +30 -0
  134. package/dist/web-search/index.d.ts +30 -0
  135. package/dist/web-search/index.js +11 -0
  136. package/dist/write/index.cjs +6 -3
  137. package/dist/write/index.d.cts +13 -3
  138. package/dist/write/index.d.ts +13 -3
  139. package/dist/write/index.js +6 -3
  140. package/package.json +31 -6
  141. package/dist/chunk-3EPGFWZV.cjs +0 -30
  142. package/dist/chunk-7QL4BQCH.js +0 -40
  143. package/dist/chunk-FAEGCFTO.js +0 -136
  144. package/dist/chunk-HDKXSKMO.js +0 -30
  145. package/dist/chunk-JCTBB7H2.cjs +0 -40
  146. package/dist/chunk-MF7CJVIZ.js +0 -40
  147. package/dist/chunk-MXFW3XY6.cjs +0 -73
  148. package/dist/chunk-OXLQ7QVL.cjs +0 -40
  149. package/dist/chunk-S6QEY7UY.js +0 -73
  150. package/dist/chunk-TBVHHF3H.cjs +0 -47
  151. package/dist/chunk-XLD2Y3SS.cjs +0 -136
  152. package/dist/chunk-ZHCMEQJJ.js +0 -47
  153. package/dist/task/index.cjs +0 -8
  154. package/dist/task/index.d.cts +0 -67
  155. package/dist/task/index.d.ts +0 -67
  156. package/dist/task/index.js +0 -8
@@ -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
  };
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkSFDZRLSXcjs = require('../chunk-SFDZRLSX.cjs');
6
+ require('../chunk-VQSWMGG7.cjs');
7
+ require('../chunk-BIAODQ2P.cjs');
8
+ require('../chunk-KONXT2SF.cjs');
9
+
10
+
11
+
12
+
13
+ exports.createTaskCreate = _chunkSFDZRLSXcjs.createTaskCreate; exports.taskCreate = _chunkSFDZRLSXcjs.taskCreate; exports.taskCreatePrompt = _chunkSFDZRLSXcjs.getPrompt;
@@ -0,0 +1,28 @@
1
+ import * as ai from 'ai';
2
+ import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
3
+
4
+ /**
5
+ * Generate the description prompt for the task-create tool.
6
+ *
7
+ * @returns The full description string for the task-create tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
11
+ interface TaskCreateConfig extends BaseToolConfig {
12
+ /** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
13
+ tasksFile?: string;
14
+ /** Override the default tool description. */
15
+ description?: string;
16
+ }
17
+ declare function createTaskCreate(config?: TaskCreateConfig): ai.Tool<{
18
+ description: string;
19
+ subject: string;
20
+ metadata?: Record<string, unknown> | undefined;
21
+ }, string>;
22
+ declare const taskCreate: ai.Tool<{
23
+ description: string;
24
+ subject: string;
25
+ metadata?: Record<string, unknown> | undefined;
26
+ }, string>;
27
+
28
+ export { type TaskCreateConfig, createTaskCreate, taskCreate, getPrompt as taskCreatePrompt };
@@ -0,0 +1,28 @@
1
+ import * as ai from 'ai';
2
+ import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
3
+
4
+ /**
5
+ * Generate the description prompt for the task-create tool.
6
+ *
7
+ * @returns The full description string for the task-create tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
11
+ interface TaskCreateConfig extends BaseToolConfig {
12
+ /** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
13
+ tasksFile?: string;
14
+ /** Override the default tool description. */
15
+ description?: string;
16
+ }
17
+ declare function createTaskCreate(config?: TaskCreateConfig): ai.Tool<{
18
+ description: string;
19
+ subject: string;
20
+ metadata?: Record<string, unknown> | undefined;
21
+ }, string>;
22
+ declare const taskCreate: ai.Tool<{
23
+ description: string;
24
+ subject: string;
25
+ metadata?: Record<string, unknown> | undefined;
26
+ }, string>;
27
+
28
+ export { type TaskCreateConfig, createTaskCreate, taskCreate, getPrompt as taskCreatePrompt };
@@ -0,0 +1,13 @@
1
+ import {
2
+ createTaskCreate,
3
+ getPrompt,
4
+ taskCreate
5
+ } from "../chunk-YGXLT6SS.js";
6
+ import "../chunk-VHLY7LQE.js";
7
+ import "../chunk-PWBVB6MN.js";
8
+ import "../chunk-X6ZY2KFU.js";
9
+ export {
10
+ createTaskCreate,
11
+ taskCreate,
12
+ getPrompt as taskCreatePrompt
13
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkXGDE7S2Dcjs = require('../chunk-XGDE7S2D.cjs');
6
+ require('../chunk-VQSWMGG7.cjs');
7
+ require('../chunk-BIAODQ2P.cjs');
8
+ require('../chunk-KONXT2SF.cjs');
9
+
10
+
11
+
12
+
13
+ exports.createTaskGet = _chunkXGDE7S2Dcjs.createTaskGet; exports.taskGet = _chunkXGDE7S2Dcjs.taskGet; exports.taskGetPrompt = _chunkXGDE7S2Dcjs.getPrompt;
@@ -0,0 +1,24 @@
1
+ import * as ai from 'ai';
2
+ import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
3
+
4
+ /**
5
+ * Generate the description prompt for the task-get tool.
6
+ *
7
+ * @returns The full description string for the task-get tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
11
+ interface TaskGetConfig extends BaseToolConfig {
12
+ /** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
13
+ tasksFile?: string;
14
+ /** Override the default tool description. */
15
+ description?: string;
16
+ }
17
+ declare function createTaskGet(config?: TaskGetConfig): ai.Tool<{
18
+ taskId: string;
19
+ }, string>;
20
+ declare const taskGet: ai.Tool<{
21
+ taskId: string;
22
+ }, string>;
23
+
24
+ export { type TaskGetConfig, createTaskGet, taskGet, getPrompt as taskGetPrompt };
@@ -0,0 +1,24 @@
1
+ import * as ai from 'ai';
2
+ import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
3
+
4
+ /**
5
+ * Generate the description prompt for the task-get tool.
6
+ *
7
+ * @returns The full description string for the task-get tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
11
+ interface TaskGetConfig extends BaseToolConfig {
12
+ /** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
13
+ tasksFile?: string;
14
+ /** Override the default tool description. */
15
+ description?: string;
16
+ }
17
+ declare function createTaskGet(config?: TaskGetConfig): ai.Tool<{
18
+ taskId: string;
19
+ }, string>;
20
+ declare const taskGet: ai.Tool<{
21
+ taskId: string;
22
+ }, string>;
23
+
24
+ export { type TaskGetConfig, createTaskGet, taskGet, getPrompt as taskGetPrompt };
@@ -0,0 +1,13 @@
1
+ import {
2
+ createTaskGet,
3
+ getPrompt,
4
+ taskGet
5
+ } from "../chunk-WCR62UZ3.js";
6
+ import "../chunk-VHLY7LQE.js";
7
+ import "../chunk-PWBVB6MN.js";
8
+ import "../chunk-X6ZY2KFU.js";
9
+ export {
10
+ createTaskGet,
11
+ taskGet,
12
+ getPrompt as taskGetPrompt
13
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunk3FT4ZPB2cjs = require('../chunk-3FT4ZPB2.cjs');
6
+ require('../chunk-VQSWMGG7.cjs');
7
+ require('../chunk-BIAODQ2P.cjs');
8
+ require('../chunk-KONXT2SF.cjs');
9
+
10
+
11
+
12
+
13
+ exports.createTaskList = _chunk3FT4ZPB2cjs.createTaskList; exports.taskList = _chunk3FT4ZPB2cjs.taskList; exports.taskListPrompt = _chunk3FT4ZPB2cjs.getPrompt;
@@ -0,0 +1,20 @@
1
+ import * as ai from 'ai';
2
+ import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
3
+
4
+ /**
5
+ * Generate the description prompt for the task-list tool.
6
+ *
7
+ * @returns The full description string for the task-list tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
11
+ interface TaskListConfig extends BaseToolConfig {
12
+ /** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
13
+ tasksFile?: string;
14
+ /** Override the default tool description. */
15
+ description?: string;
16
+ }
17
+ declare function createTaskList(config?: TaskListConfig): ai.Tool<{}, string>;
18
+ declare const taskList: ai.Tool<{}, string>;
19
+
20
+ export { type TaskListConfig, createTaskList, taskList, getPrompt as taskListPrompt };
@@ -0,0 +1,20 @@
1
+ import * as ai from 'ai';
2
+ import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
3
+
4
+ /**
5
+ * Generate the description prompt for the task-list tool.
6
+ *
7
+ * @returns The full description string for the task-list tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
11
+ interface TaskListConfig extends BaseToolConfig {
12
+ /** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
13
+ tasksFile?: string;
14
+ /** Override the default tool description. */
15
+ description?: string;
16
+ }
17
+ declare function createTaskList(config?: TaskListConfig): ai.Tool<{}, string>;
18
+ declare const taskList: ai.Tool<{}, string>;
19
+
20
+ export { type TaskListConfig, createTaskList, taskList, getPrompt as taskListPrompt };
@@ -0,0 +1,13 @@
1
+ import {
2
+ createTaskList,
3
+ getPrompt,
4
+ taskList
5
+ } from "../chunk-HO4NIRU5.js";
6
+ import "../chunk-VHLY7LQE.js";
7
+ import "../chunk-PWBVB6MN.js";
8
+ import "../chunk-X6ZY2KFU.js";
9
+ export {
10
+ createTaskList,
11
+ taskList,
12
+ getPrompt as taskListPrompt
13
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkT6STO7PScjs = require('../chunk-T6STO7PS.cjs');
6
+ require('../chunk-VQSWMGG7.cjs');
7
+ require('../chunk-BIAODQ2P.cjs');
8
+ require('../chunk-KONXT2SF.cjs');
9
+
10
+
11
+
12
+
13
+ exports.createTaskUpdate = _chunkT6STO7PScjs.createTaskUpdate; exports.taskUpdate = _chunkT6STO7PScjs.taskUpdate; exports.taskUpdatePrompt = _chunkT6STO7PScjs.getPrompt;
@@ -0,0 +1,40 @@
1
+ import * as ai from 'ai';
2
+ import { B as BaseToolConfig } from '../types-3QPDuCXN.cjs';
3
+
4
+ /**
5
+ * Generate the description prompt for the task-update tool.
6
+ *
7
+ * @returns The full description string for the task-update tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
11
+ interface TaskUpdateConfig extends BaseToolConfig {
12
+ /** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
13
+ tasksFile?: string;
14
+ /** Override the default tool description. */
15
+ description?: string;
16
+ }
17
+ declare function createTaskUpdate(config?: TaskUpdateConfig): ai.Tool<{
18
+ taskId: string;
19
+ description?: string | undefined;
20
+ status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
21
+ subject?: string | undefined;
22
+ metadata?: Record<string, unknown> | undefined;
23
+ owner?: string | undefined;
24
+ activeForm?: string | undefined;
25
+ addBlocks?: string[] | undefined;
26
+ addBlockedBy?: string[] | undefined;
27
+ }, string>;
28
+ declare const taskUpdate: ai.Tool<{
29
+ taskId: string;
30
+ description?: string | undefined;
31
+ status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
32
+ subject?: string | undefined;
33
+ metadata?: Record<string, unknown> | undefined;
34
+ owner?: string | undefined;
35
+ activeForm?: string | undefined;
36
+ addBlocks?: string[] | undefined;
37
+ addBlockedBy?: string[] | undefined;
38
+ }, string>;
39
+
40
+ export { type TaskUpdateConfig, createTaskUpdate, taskUpdate, getPrompt as taskUpdatePrompt };
@@ -0,0 +1,40 @@
1
+ import * as ai from 'ai';
2
+ import { B as BaseToolConfig } from '../types-3QPDuCXN.js';
3
+
4
+ /**
5
+ * Generate the description prompt for the task-update tool.
6
+ *
7
+ * @returns The full description string for the task-update tool.
8
+ */
9
+ declare function getPrompt(): string;
10
+
11
+ interface TaskUpdateConfig extends BaseToolConfig {
12
+ /** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
13
+ tasksFile?: string;
14
+ /** Override the default tool description. */
15
+ description?: string;
16
+ }
17
+ declare function createTaskUpdate(config?: TaskUpdateConfig): ai.Tool<{
18
+ taskId: string;
19
+ description?: string | undefined;
20
+ status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
21
+ subject?: string | undefined;
22
+ metadata?: Record<string, unknown> | undefined;
23
+ owner?: string | undefined;
24
+ activeForm?: string | undefined;
25
+ addBlocks?: string[] | undefined;
26
+ addBlockedBy?: string[] | undefined;
27
+ }, string>;
28
+ declare const taskUpdate: ai.Tool<{
29
+ taskId: string;
30
+ description?: string | undefined;
31
+ status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
32
+ subject?: string | undefined;
33
+ metadata?: Record<string, unknown> | undefined;
34
+ owner?: string | undefined;
35
+ activeForm?: string | undefined;
36
+ addBlocks?: string[] | undefined;
37
+ addBlockedBy?: string[] | undefined;
38
+ }, string>;
39
+
40
+ export { type TaskUpdateConfig, createTaskUpdate, taskUpdate, getPrompt as taskUpdatePrompt };
@@ -0,0 +1,13 @@
1
+ import {
2
+ createTaskUpdate,
3
+ getPrompt,
4
+ taskUpdate
5
+ } from "../chunk-TM5L4HA5.js";
6
+ import "../chunk-VHLY7LQE.js";
7
+ import "../chunk-PWBVB6MN.js";
8
+ import "../chunk-X6ZY2KFU.js";
9
+ export {
10
+ createTaskUpdate,
11
+ taskUpdate,
12
+ getPrompt as taskUpdatePrompt
13
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunk2JBLVFB7cjs = require('../chunk-2JBLVFB7.cjs');
6
+ require('../chunk-KONXT2SF.cjs');
7
+
8
+
9
+
10
+
11
+ exports.createToolSearch = _chunk2JBLVFB7cjs.createToolSearch; exports.toolSearch = _chunk2JBLVFB7cjs.toolSearch; exports.toolSearchPrompt = _chunk2JBLVFB7cjs.getPrompt;
@@ -0,0 +1,27 @@
1
+ import * as ai from 'ai';
2
+
3
+ /**
4
+ * Generate the description prompt for the tool-search tool.
5
+ *
6
+ * @returns The full description string for the tool-search tool.
7
+ */
8
+ declare function getPrompt(): string;
9
+
10
+ interface ToolSearchConfig {
11
+ /** Registry of available tools to search through. */
12
+ tools?: Record<string, {
13
+ description: string;
14
+ }>;
15
+ /** Override the default tool description. */
16
+ description?: string;
17
+ }
18
+ declare function createToolSearch(config?: ToolSearchConfig): ai.Tool<{
19
+ query: string;
20
+ max_results: number;
21
+ }, string>;
22
+ declare const toolSearch: ai.Tool<{
23
+ query: string;
24
+ max_results: number;
25
+ }, string>;
26
+
27
+ export { type ToolSearchConfig, createToolSearch, toolSearch, getPrompt as toolSearchPrompt };
@@ -0,0 +1,27 @@
1
+ import * as ai from 'ai';
2
+
3
+ /**
4
+ * Generate the description prompt for the tool-search tool.
5
+ *
6
+ * @returns The full description string for the tool-search tool.
7
+ */
8
+ declare function getPrompt(): string;
9
+
10
+ interface ToolSearchConfig {
11
+ /** Registry of available tools to search through. */
12
+ tools?: Record<string, {
13
+ description: string;
14
+ }>;
15
+ /** Override the default tool description. */
16
+ description?: string;
17
+ }
18
+ declare function createToolSearch(config?: ToolSearchConfig): ai.Tool<{
19
+ query: string;
20
+ max_results: number;
21
+ }, string>;
22
+ declare const toolSearch: ai.Tool<{
23
+ query: string;
24
+ max_results: number;
25
+ }, string>;
26
+
27
+ export { type ToolSearchConfig, createToolSearch, toolSearch, getPrompt as toolSearchPrompt };
@@ -0,0 +1,11 @@
1
+ import {
2
+ createToolSearch,
3
+ getPrompt,
4
+ toolSearch
5
+ } from "../chunk-UCA6LURO.js";
6
+ import "../chunk-X6ZY2KFU.js";
7
+ export {
8
+ createToolSearch,
9
+ toolSearch,
10
+ getPrompt as toolSearchPrompt
11
+ };
@@ -1,8 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkU2YMJM25cjs = require('../chunk-U2YMJM25.cjs');
5
4
 
5
+ var _chunkG6ZVJA4Vcjs = require('../chunk-G6ZVJA4V.cjs');
6
+ require('../chunk-KONXT2SF.cjs');
6
7
 
7
8
 
8
- exports.createWebFetch = _chunkU2YMJM25cjs.createWebFetch; exports.webFetch = _chunkU2YMJM25cjs.webFetch;
9
+
10
+
11
+ exports.createWebFetch = _chunkG6ZVJA4Vcjs.createWebFetch; exports.webFetch = _chunkG6ZVJA4Vcjs.webFetch; exports.webFetchPrompt = _chunkG6ZVJA4Vcjs.getPrompt;
@@ -1,6 +1,14 @@
1
1
  import * as ai from 'ai';
2
2
  import { T as TimeoutConfig } from '../types-3QPDuCXN.cjs';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the web-fetch tool.
6
+ *
7
+ * @param config - The same config passed to {@link createWebFetch}.
8
+ * @returns The full description string for the web-fetch tool.
9
+ */
10
+ declare function getPrompt(config?: Pick<WebFetchConfig, 'timeout'>): string;
11
+
4
12
  /**
5
13
  * Configuration for the web-fetch tool.
6
14
  * Extends {@link TimeoutConfig} with optional content-length cap and user-agent.
@@ -19,6 +27,8 @@ interface WebFetchConfig extends TimeoutConfig {
19
27
  maxContentLength?: number;
20
28
  /** Custom User-Agent header sent with every request. */
21
29
  userAgent?: string;
30
+ /** Override the default tool description. */
31
+ description?: string;
22
32
  }
23
33
  /**
24
34
  * Factory that creates a web-fetch tool with the given configuration.
@@ -36,7 +46,6 @@ interface WebFetchConfig extends TimeoutConfig {
36
46
  */
37
47
  declare function createWebFetch(config?: WebFetchConfig): ai.Tool<{
38
48
  url: string;
39
- prompt?: string | undefined;
40
49
  }, string>;
41
50
  /**
42
51
  * Pre-configured web-fetch tool with default settings.
@@ -50,7 +59,6 @@ declare function createWebFetch(config?: WebFetchConfig): ai.Tool<{
50
59
  */
51
60
  declare const webFetch: ai.Tool<{
52
61
  url: string;
53
- prompt?: string | undefined;
54
62
  }, string>;
55
63
 
56
- export { type WebFetchConfig, createWebFetch, webFetch };
64
+ export { type WebFetchConfig, createWebFetch, webFetch, getPrompt as webFetchPrompt };
@@ -1,6 +1,14 @@
1
1
  import * as ai from 'ai';
2
2
  import { T as TimeoutConfig } from '../types-3QPDuCXN.js';
3
3
 
4
+ /**
5
+ * Generate the description prompt for the web-fetch tool.
6
+ *
7
+ * @param config - The same config passed to {@link createWebFetch}.
8
+ * @returns The full description string for the web-fetch tool.
9
+ */
10
+ declare function getPrompt(config?: Pick<WebFetchConfig, 'timeout'>): string;
11
+
4
12
  /**
5
13
  * Configuration for the web-fetch tool.
6
14
  * Extends {@link TimeoutConfig} with optional content-length cap and user-agent.
@@ -19,6 +27,8 @@ interface WebFetchConfig extends TimeoutConfig {
19
27
  maxContentLength?: number;
20
28
  /** Custom User-Agent header sent with every request. */
21
29
  userAgent?: string;
30
+ /** Override the default tool description. */
31
+ description?: string;
22
32
  }
23
33
  /**
24
34
  * Factory that creates a web-fetch tool with the given configuration.
@@ -36,7 +46,6 @@ interface WebFetchConfig extends TimeoutConfig {
36
46
  */
37
47
  declare function createWebFetch(config?: WebFetchConfig): ai.Tool<{
38
48
  url: string;
39
- prompt?: string | undefined;
40
49
  }, string>;
41
50
  /**
42
51
  * Pre-configured web-fetch tool with default settings.
@@ -50,7 +59,6 @@ declare function createWebFetch(config?: WebFetchConfig): ai.Tool<{
50
59
  */
51
60
  declare const webFetch: ai.Tool<{
52
61
  url: string;
53
- prompt?: string | undefined;
54
62
  }, string>;
55
63
 
56
- export { type WebFetchConfig, createWebFetch, webFetch };
64
+ export { type WebFetchConfig, createWebFetch, webFetch, getPrompt as webFetchPrompt };
@@ -1,8 +1,11 @@
1
1
  import {
2
2
  createWebFetch,
3
+ getPrompt,
3
4
  webFetch
4
- } from "../chunk-Y7KOKDFP.js";
5
+ } from "../chunk-VZRXTFS4.js";
6
+ import "../chunk-X6ZY2KFU.js";
5
7
  export {
6
8
  createWebFetch,
7
- webFetch
9
+ webFetch,
10
+ getPrompt as webFetchPrompt
8
11
  };
@@ -0,0 +1,11 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkCM3VRCNXcjs = require('../chunk-CM3VRCNX.cjs');
6
+ require('../chunk-KONXT2SF.cjs');
7
+
8
+
9
+
10
+
11
+ exports.createWebSearch = _chunkCM3VRCNXcjs.createWebSearch; exports.webSearch = _chunkCM3VRCNXcjs.webSearch; exports.webSearchPrompt = _chunkCM3VRCNXcjs.getPrompt;
@@ -0,0 +1,30 @@
1
+ import * as ai from 'ai';
2
+
3
+ /**
4
+ * Generate the description prompt for the web-search tool.
5
+ *
6
+ * @returns The full description string for the web-search tool.
7
+ */
8
+ declare function getPrompt(): string;
9
+
10
+ interface WebSearchConfig {
11
+ /** Callback to perform the actual search. Users provide their own implementation. */
12
+ onSearch?: (query: string, opts: {
13
+ allowed_domains?: string[];
14
+ blocked_domains?: string[];
15
+ }) => Promise<string>;
16
+ /** Override the default tool description. */
17
+ description?: string;
18
+ }
19
+ declare function createWebSearch(config?: WebSearchConfig): ai.Tool<{
20
+ query: string;
21
+ allowed_domains?: string[] | undefined;
22
+ blocked_domains?: string[] | undefined;
23
+ }, string>;
24
+ declare const webSearch: ai.Tool<{
25
+ query: string;
26
+ allowed_domains?: string[] | undefined;
27
+ blocked_domains?: string[] | undefined;
28
+ }, string>;
29
+
30
+ export { type WebSearchConfig, createWebSearch, webSearch, getPrompt as webSearchPrompt };