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.
- package/dist/ask-user/index.cjs +5 -2
- package/dist/ask-user/index.d.cts +10 -1
- package/dist/ask-user/index.d.ts +10 -1
- package/dist/ask-user/index.js +5 -2
- package/dist/bash/index.cjs +5 -2
- package/dist/bash/index.d.cts +14 -1
- package/dist/bash/index.d.ts +14 -1
- package/dist/bash/index.js +5 -2
- package/dist/{chunk-IEX4NOVN.cjs → chunk-2JBLVFB7.cjs} +30 -4
- package/dist/{chunk-K77GC2QI.js → chunk-2JF3ZF2J.js} +32 -2
- package/dist/{chunk-UDIG7332.js → chunk-2WSZCOJP.js} +40 -4
- package/dist/chunk-3FT4ZPB2.cjs +65 -0
- package/dist/{chunk-VLNDEVKS.js → chunk-3LGXZLBH.js} +46 -8
- package/dist/{chunk-G3ITTPGX.js → chunk-4MXDQEPA.js} +12 -1
- package/dist/{chunk-CGTPF6IS.js → chunk-4UUSERSH.js} +31 -7
- package/dist/{chunk-I6KFFQPV.cjs → chunk-5T3SQYI4.cjs} +34 -4
- package/dist/chunk-6ULQG2W2.cjs +99 -0
- package/dist/chunk-ABXTBB2N.cjs +67 -0
- package/dist/{chunk-CAEVLIQB.cjs → chunk-BIAODQ2P.cjs} +17 -1
- package/dist/chunk-CJA76MKM.js +59 -0
- package/dist/chunk-CM3VRCNX.cjs +59 -0
- package/dist/{chunk-SUSAPI5W.cjs → chunk-CXBWF5ON.cjs} +51 -4
- package/dist/{chunk-5O55DKOB.cjs → chunk-G6ZVJA4V.cjs} +30 -4
- package/dist/{chunk-P6Z5XFDS.js → chunk-GPHCXS2S.js} +41 -15
- package/dist/chunk-HG5T47NA.cjs +77 -0
- package/dist/chunk-HO4NIRU5.js +65 -0
- package/dist/{chunk-HZAQRHBT.js → chunk-IBC4QCGR.js} +27 -2
- package/dist/chunk-JYTOARJV.cjs +69 -0
- package/dist/chunk-KONXT2SF.cjs +8 -0
- package/dist/chunk-KUFZFNPT.cjs +61 -0
- package/dist/chunk-L7R4UZSK.js +61 -0
- package/dist/{chunk-FV2R5FFQ.cjs → chunk-LNAR3NJQ.cjs} +47 -9
- package/dist/chunk-M74OQYNK.js +69 -0
- package/dist/{chunk-5TDZF4IM.cjs → chunk-NQIV6LBH.cjs} +42 -6
- package/dist/chunk-NTGDU5X3.js +67 -0
- package/dist/{chunk-ONBH74ZV.cjs → chunk-OYLTQJXT.cjs} +32 -8
- package/dist/{chunk-6PQLFDGT.js → chunk-PWBVB6MN.js} +17 -1
- package/dist/{chunk-HNP7JDQC.cjs → chunk-RIGL3JTS.cjs} +41 -5
- package/dist/chunk-SFDZRLSX.cjs +91 -0
- package/dist/{chunk-ZFQZWXOI.cjs → chunk-T6STO7PS.cjs} +58 -7
- package/dist/{chunk-LPV5CN2K.js → chunk-TI4ZZ3IJ.js} +32 -2
- package/dist/{chunk-S7IVHOA6.js → chunk-TM5L4HA5.js} +54 -3
- package/dist/{chunk-4YI2H55A.js → chunk-TXZ3BMMR.js} +49 -2
- package/dist/{chunk-IRRNYFI5.js → chunk-UCA6LURO.js} +28 -2
- package/dist/{chunk-EA3YV7ZG.js → chunk-VE4U27HI.js} +35 -15
- package/dist/{chunk-E6NBEYZD.js → chunk-VHLY7LQE.js} +7 -5
- package/dist/{chunk-FW3UJ622.cjs → chunk-VPRUYL4T.cjs} +34 -4
- package/dist/{chunk-3VO6NETR.cjs → chunk-VPV6WG5V.cjs} +41 -21
- package/dist/{chunk-L5JH4I77.cjs → chunk-VQSWMGG7.cjs} +8 -6
- package/dist/{chunk-4HIATLKI.js → chunk-VZRXTFS4.js} +28 -2
- package/dist/chunk-WCR62UZ3.js +67 -0
- package/dist/chunk-X6ZY2KFU.js +8 -0
- package/dist/chunk-XGDE7S2D.cjs +67 -0
- package/dist/chunk-XPTW45XY.js +77 -0
- package/dist/{chunk-YPPPGGLA.cjs → chunk-YCWJVQYO.cjs} +28 -3
- package/dist/chunk-YGXLT6SS.js +91 -0
- package/dist/{chunk-5NW4OGRI.cjs → chunk-YTPZHJDC.cjs} +12 -1
- package/dist/{chunk-XAQGZ374.js → chunk-ZHVRP3EH.js} +40 -4
- package/dist/context-compaction/index.cjs +5 -2
- package/dist/context-compaction/index.d.cts +11 -1
- package/dist/context-compaction/index.d.ts +11 -1
- package/dist/context-compaction/index.js +5 -2
- package/dist/diff/index.cjs +6 -2
- package/dist/diff/index.d.cts +12 -2
- package/dist/diff/index.d.ts +12 -2
- package/dist/diff/index.js +7 -3
- package/dist/edit/index.cjs +7 -3
- package/dist/edit/index.d.cts +13 -3
- package/dist/edit/index.d.ts +13 -3
- package/dist/edit/index.js +8 -4
- package/dist/glob/index.cjs +5 -2
- package/dist/glob/index.d.cts +13 -3
- package/dist/glob/index.d.ts +13 -3
- package/dist/glob/index.js +5 -2
- package/dist/grep/index.cjs +6 -2
- package/dist/grep/index.d.cts +13 -3
- package/dist/grep/index.d.ts +13 -3
- package/dist/grep/index.js +6 -2
- package/dist/http-request/index.cjs +5 -2
- package/dist/http-request/index.d.cts +11 -1
- package/dist/http-request/index.d.ts +11 -1
- package/dist/http-request/index.js +5 -2
- package/dist/index.cjs +68 -25
- package/dist/index.d.cts +21 -21
- package/dist/index.d.ts +21 -21
- package/dist/index.js +73 -30
- package/dist/lsp/index.cjs +6 -2
- package/dist/lsp/index.d.cts +10 -1
- package/dist/lsp/index.d.ts +10 -1
- package/dist/lsp/index.js +6 -2
- package/dist/memory/index.cjs +6 -2
- package/dist/memory/index.d.cts +10 -1
- package/dist/memory/index.d.ts +10 -1
- package/dist/memory/index.js +6 -2
- package/dist/multi-edit/index.cjs +7 -4
- package/dist/multi-edit/index.d.cts +12 -2
- package/dist/multi-edit/index.d.ts +12 -2
- package/dist/multi-edit/index.js +7 -4
- package/dist/read/index.cjs +6 -3
- package/dist/read/index.d.cts +11 -1
- package/dist/read/index.d.ts +11 -1
- package/dist/read/index.js +6 -3
- package/dist/sleep/index.cjs +5 -2
- package/dist/sleep/index.d.cts +11 -1
- package/dist/sleep/index.d.ts +11 -1
- package/dist/sleep/index.js +5 -2
- package/dist/task-create/index.cjs +7 -3
- package/dist/task-create/index.d.cts +10 -1
- package/dist/task-create/index.d.ts +10 -1
- package/dist/task-create/index.js +7 -3
- package/dist/task-get/index.cjs +7 -3
- package/dist/task-get/index.d.cts +10 -1
- package/dist/task-get/index.d.ts +10 -1
- package/dist/task-get/index.js +7 -3
- package/dist/task-list/index.cjs +7 -3
- package/dist/task-list/index.d.cts +10 -1
- package/dist/task-list/index.d.ts +10 -1
- package/dist/task-list/index.js +7 -3
- package/dist/task-update/index.cjs +7 -3
- package/dist/task-update/index.d.cts +12 -3
- package/dist/task-update/index.d.ts +12 -3
- package/dist/task-update/index.js +7 -3
- package/dist/tool-search/index.cjs +5 -2
- package/dist/tool-search/index.d.cts +10 -1
- package/dist/tool-search/index.d.ts +10 -1
- package/dist/tool-search/index.js +5 -2
- package/dist/web-fetch/index.cjs +5 -2
- package/dist/web-fetch/index.d.cts +11 -1
- package/dist/web-fetch/index.d.ts +11 -1
- package/dist/web-fetch/index.js +5 -2
- package/dist/web-search/index.cjs +5 -2
- package/dist/web-search/index.d.cts +10 -1
- package/dist/web-search/index.d.ts +10 -1
- package/dist/web-search/index.js +5 -2
- package/dist/write/index.cjs +6 -3
- package/dist/write/index.d.cts +13 -3
- package/dist/write/index.d.ts +13 -3
- package/dist/write/index.js +6 -3
- package/package.json +1 -1
- package/dist/chunk-3EPGFWZV.cjs +0 -30
- package/dist/chunk-44AFQ2B7.js +0 -30
- package/dist/chunk-4HXAKPQH.cjs +0 -36
- package/dist/chunk-56CL4JCW.cjs +0 -53
- package/dist/chunk-6DJSWTWQ.cjs +0 -40
- package/dist/chunk-ACGW44YT.js +0 -47
- package/dist/chunk-ECYT46FP.js +0 -40
- package/dist/chunk-HDKXSKMO.js +0 -30
- package/dist/chunk-HNUL2CID.cjs +0 -34
- package/dist/chunk-LK6SQH2G.cjs +0 -30
- package/dist/chunk-LTE5NG4D.js +0 -53
- package/dist/chunk-MF7CJVIZ.js +0 -40
- package/dist/chunk-OM2UFTGS.cjs +0 -47
- package/dist/chunk-OXLQ7QVL.cjs +0 -40
- package/dist/chunk-TMW3XKKJ.js +0 -34
- package/dist/chunk-VXZ4RKJI.js +0 -36
- package/dist/chunk-ZBLQV6UO.cjs +0 -73
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunk56CL4JCWcjs = require('../chunk-56CL4JCW.cjs');
|
|
5
|
-
require('../chunk-L5JH4I77.cjs');
|
|
6
4
|
|
|
5
|
+
var _chunkSFDZRLSXcjs = require('../chunk-SFDZRLSX.cjs');
|
|
6
|
+
require('../chunk-VQSWMGG7.cjs');
|
|
7
|
+
require('../chunk-BIAODQ2P.cjs');
|
|
8
|
+
require('../chunk-KONXT2SF.cjs');
|
|
7
9
|
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.createTaskCreate = _chunkSFDZRLSXcjs.createTaskCreate; exports.taskCreate = _chunkSFDZRLSXcjs.taskCreate; exports.taskCreatePrompt = _chunkSFDZRLSXcjs.getPrompt;
|
|
@@ -1,9 +1,18 @@
|
|
|
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 task-create tool.
|
|
6
|
+
*
|
|
7
|
+
* @returns The full description string for the task-create tool.
|
|
8
|
+
*/
|
|
9
|
+
declare function getPrompt(): string;
|
|
10
|
+
|
|
4
11
|
interface TaskCreateConfig extends BaseToolConfig {
|
|
5
12
|
/** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
|
|
6
13
|
tasksFile?: string;
|
|
14
|
+
/** Override the default tool description. */
|
|
15
|
+
description?: string;
|
|
7
16
|
}
|
|
8
17
|
declare function createTaskCreate(config?: TaskCreateConfig): ai.Tool<{
|
|
9
18
|
description: string;
|
|
@@ -16,4 +25,4 @@ declare const taskCreate: ai.Tool<{
|
|
|
16
25
|
metadata?: Record<string, unknown> | undefined;
|
|
17
26
|
}, string>;
|
|
18
27
|
|
|
19
|
-
export { type TaskCreateConfig, createTaskCreate, taskCreate };
|
|
28
|
+
export { type TaskCreateConfig, createTaskCreate, taskCreate, getPrompt as taskCreatePrompt };
|
|
@@ -1,9 +1,18 @@
|
|
|
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 task-create tool.
|
|
6
|
+
*
|
|
7
|
+
* @returns The full description string for the task-create tool.
|
|
8
|
+
*/
|
|
9
|
+
declare function getPrompt(): string;
|
|
10
|
+
|
|
4
11
|
interface TaskCreateConfig extends BaseToolConfig {
|
|
5
12
|
/** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
|
|
6
13
|
tasksFile?: string;
|
|
14
|
+
/** Override the default tool description. */
|
|
15
|
+
description?: string;
|
|
7
16
|
}
|
|
8
17
|
declare function createTaskCreate(config?: TaskCreateConfig): ai.Tool<{
|
|
9
18
|
description: string;
|
|
@@ -16,4 +25,4 @@ declare const taskCreate: ai.Tool<{
|
|
|
16
25
|
metadata?: Record<string, unknown> | undefined;
|
|
17
26
|
}, string>;
|
|
18
27
|
|
|
19
|
-
export { type TaskCreateConfig, createTaskCreate, taskCreate };
|
|
28
|
+
export { type TaskCreateConfig, createTaskCreate, taskCreate, getPrompt as taskCreatePrompt };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTaskCreate,
|
|
3
|
+
getPrompt,
|
|
3
4
|
taskCreate
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-YGXLT6SS.js";
|
|
6
|
+
import "../chunk-VHLY7LQE.js";
|
|
7
|
+
import "../chunk-PWBVB6MN.js";
|
|
8
|
+
import "../chunk-X6ZY2KFU.js";
|
|
6
9
|
export {
|
|
7
10
|
createTaskCreate,
|
|
8
|
-
taskCreate
|
|
11
|
+
taskCreate,
|
|
12
|
+
getPrompt as taskCreatePrompt
|
|
9
13
|
};
|
package/dist/task-get/index.cjs
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunk4HXAKPQHcjs = require('../chunk-4HXAKPQH.cjs');
|
|
5
|
-
require('../chunk-L5JH4I77.cjs');
|
|
6
4
|
|
|
5
|
+
var _chunkXGDE7S2Dcjs = require('../chunk-XGDE7S2D.cjs');
|
|
6
|
+
require('../chunk-VQSWMGG7.cjs');
|
|
7
|
+
require('../chunk-BIAODQ2P.cjs');
|
|
8
|
+
require('../chunk-KONXT2SF.cjs');
|
|
7
9
|
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.createTaskGet = _chunkXGDE7S2Dcjs.createTaskGet; exports.taskGet = _chunkXGDE7S2Dcjs.taskGet; exports.taskGetPrompt = _chunkXGDE7S2Dcjs.getPrompt;
|
|
@@ -1,9 +1,18 @@
|
|
|
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 task-get tool.
|
|
6
|
+
*
|
|
7
|
+
* @returns The full description string for the task-get tool.
|
|
8
|
+
*/
|
|
9
|
+
declare function getPrompt(): string;
|
|
10
|
+
|
|
4
11
|
interface TaskGetConfig extends BaseToolConfig {
|
|
5
12
|
/** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
|
|
6
13
|
tasksFile?: string;
|
|
14
|
+
/** Override the default tool description. */
|
|
15
|
+
description?: string;
|
|
7
16
|
}
|
|
8
17
|
declare function createTaskGet(config?: TaskGetConfig): ai.Tool<{
|
|
9
18
|
taskId: string;
|
|
@@ -12,4 +21,4 @@ declare const taskGet: ai.Tool<{
|
|
|
12
21
|
taskId: string;
|
|
13
22
|
}, string>;
|
|
14
23
|
|
|
15
|
-
export { type TaskGetConfig, createTaskGet, taskGet };
|
|
24
|
+
export { type TaskGetConfig, createTaskGet, taskGet, getPrompt as taskGetPrompt };
|
package/dist/task-get/index.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
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 task-get tool.
|
|
6
|
+
*
|
|
7
|
+
* @returns The full description string for the task-get tool.
|
|
8
|
+
*/
|
|
9
|
+
declare function getPrompt(): string;
|
|
10
|
+
|
|
4
11
|
interface TaskGetConfig extends BaseToolConfig {
|
|
5
12
|
/** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
|
|
6
13
|
tasksFile?: string;
|
|
14
|
+
/** Override the default tool description. */
|
|
15
|
+
description?: string;
|
|
7
16
|
}
|
|
8
17
|
declare function createTaskGet(config?: TaskGetConfig): ai.Tool<{
|
|
9
18
|
taskId: string;
|
|
@@ -12,4 +21,4 @@ declare const taskGet: ai.Tool<{
|
|
|
12
21
|
taskId: string;
|
|
13
22
|
}, string>;
|
|
14
23
|
|
|
15
|
-
export { type TaskGetConfig, createTaskGet, taskGet };
|
|
24
|
+
export { type TaskGetConfig, createTaskGet, taskGet, getPrompt as taskGetPrompt };
|
package/dist/task-get/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTaskGet,
|
|
3
|
+
getPrompt,
|
|
3
4
|
taskGet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-WCR62UZ3.js";
|
|
6
|
+
import "../chunk-VHLY7LQE.js";
|
|
7
|
+
import "../chunk-PWBVB6MN.js";
|
|
8
|
+
import "../chunk-X6ZY2KFU.js";
|
|
6
9
|
export {
|
|
7
10
|
createTaskGet,
|
|
8
|
-
taskGet
|
|
11
|
+
taskGet,
|
|
12
|
+
getPrompt as taskGetPrompt
|
|
9
13
|
};
|
package/dist/task-list/index.cjs
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkHNUL2CIDcjs = require('../chunk-HNUL2CID.cjs');
|
|
5
|
-
require('../chunk-L5JH4I77.cjs');
|
|
6
4
|
|
|
5
|
+
var _chunk3FT4ZPB2cjs = require('../chunk-3FT4ZPB2.cjs');
|
|
6
|
+
require('../chunk-VQSWMGG7.cjs');
|
|
7
|
+
require('../chunk-BIAODQ2P.cjs');
|
|
8
|
+
require('../chunk-KONXT2SF.cjs');
|
|
7
9
|
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.createTaskList = _chunk3FT4ZPB2cjs.createTaskList; exports.taskList = _chunk3FT4ZPB2cjs.taskList; exports.taskListPrompt = _chunk3FT4ZPB2cjs.getPrompt;
|
|
@@ -1,11 +1,20 @@
|
|
|
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 task-list tool.
|
|
6
|
+
*
|
|
7
|
+
* @returns The full description string for the task-list tool.
|
|
8
|
+
*/
|
|
9
|
+
declare function getPrompt(): string;
|
|
10
|
+
|
|
4
11
|
interface TaskListConfig extends BaseToolConfig {
|
|
5
12
|
/** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
|
|
6
13
|
tasksFile?: string;
|
|
14
|
+
/** Override the default tool description. */
|
|
15
|
+
description?: string;
|
|
7
16
|
}
|
|
8
17
|
declare function createTaskList(config?: TaskListConfig): ai.Tool<{}, string>;
|
|
9
18
|
declare const taskList: ai.Tool<{}, string>;
|
|
10
19
|
|
|
11
|
-
export { type TaskListConfig, createTaskList, taskList };
|
|
20
|
+
export { type TaskListConfig, createTaskList, taskList, getPrompt as taskListPrompt };
|
|
@@ -1,11 +1,20 @@
|
|
|
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 task-list tool.
|
|
6
|
+
*
|
|
7
|
+
* @returns The full description string for the task-list tool.
|
|
8
|
+
*/
|
|
9
|
+
declare function getPrompt(): string;
|
|
10
|
+
|
|
4
11
|
interface TaskListConfig extends BaseToolConfig {
|
|
5
12
|
/** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
|
|
6
13
|
tasksFile?: string;
|
|
14
|
+
/** Override the default tool description. */
|
|
15
|
+
description?: string;
|
|
7
16
|
}
|
|
8
17
|
declare function createTaskList(config?: TaskListConfig): ai.Tool<{}, string>;
|
|
9
18
|
declare const taskList: ai.Tool<{}, string>;
|
|
10
19
|
|
|
11
|
-
export { type TaskListConfig, createTaskList, taskList };
|
|
20
|
+
export { type TaskListConfig, createTaskList, taskList, getPrompt as taskListPrompt };
|
package/dist/task-list/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTaskList,
|
|
3
|
+
getPrompt,
|
|
3
4
|
taskList
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-HO4NIRU5.js";
|
|
6
|
+
import "../chunk-VHLY7LQE.js";
|
|
7
|
+
import "../chunk-PWBVB6MN.js";
|
|
8
|
+
import "../chunk-X6ZY2KFU.js";
|
|
6
9
|
export {
|
|
7
10
|
createTaskList,
|
|
8
|
-
taskList
|
|
11
|
+
taskList,
|
|
12
|
+
getPrompt as taskListPrompt
|
|
9
13
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkZFQZWXOIcjs = require('../chunk-ZFQZWXOI.cjs');
|
|
5
|
-
require('../chunk-L5JH4I77.cjs');
|
|
6
4
|
|
|
5
|
+
var _chunkT6STO7PScjs = require('../chunk-T6STO7PS.cjs');
|
|
6
|
+
require('../chunk-VQSWMGG7.cjs');
|
|
7
|
+
require('../chunk-BIAODQ2P.cjs');
|
|
8
|
+
require('../chunk-KONXT2SF.cjs');
|
|
7
9
|
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.createTaskUpdate = _chunkT6STO7PScjs.createTaskUpdate; exports.taskUpdate = _chunkT6STO7PScjs.taskUpdate; exports.taskUpdatePrompt = _chunkT6STO7PScjs.getPrompt;
|
|
@@ -1,14 +1,23 @@
|
|
|
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 task-update tool.
|
|
6
|
+
*
|
|
7
|
+
* @returns The full description string for the task-update tool.
|
|
8
|
+
*/
|
|
9
|
+
declare function getPrompt(): string;
|
|
10
|
+
|
|
4
11
|
interface TaskUpdateConfig extends BaseToolConfig {
|
|
5
12
|
/** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
|
|
6
13
|
tasksFile?: string;
|
|
14
|
+
/** Override the default tool description. */
|
|
15
|
+
description?: string;
|
|
7
16
|
}
|
|
8
17
|
declare function createTaskUpdate(config?: TaskUpdateConfig): ai.Tool<{
|
|
9
18
|
taskId: string;
|
|
10
|
-
status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
|
|
11
19
|
description?: string | undefined;
|
|
20
|
+
status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
|
|
12
21
|
subject?: string | undefined;
|
|
13
22
|
metadata?: Record<string, unknown> | undefined;
|
|
14
23
|
owner?: string | undefined;
|
|
@@ -18,8 +27,8 @@ declare function createTaskUpdate(config?: TaskUpdateConfig): ai.Tool<{
|
|
|
18
27
|
}, string>;
|
|
19
28
|
declare const taskUpdate: ai.Tool<{
|
|
20
29
|
taskId: string;
|
|
21
|
-
status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
|
|
22
30
|
description?: string | undefined;
|
|
31
|
+
status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
|
|
23
32
|
subject?: string | undefined;
|
|
24
33
|
metadata?: Record<string, unknown> | undefined;
|
|
25
34
|
owner?: string | undefined;
|
|
@@ -28,4 +37,4 @@ declare const taskUpdate: ai.Tool<{
|
|
|
28
37
|
addBlockedBy?: string[] | undefined;
|
|
29
38
|
}, string>;
|
|
30
39
|
|
|
31
|
-
export { type TaskUpdateConfig, createTaskUpdate, taskUpdate };
|
|
40
|
+
export { type TaskUpdateConfig, createTaskUpdate, taskUpdate, getPrompt as taskUpdatePrompt };
|
|
@@ -1,14 +1,23 @@
|
|
|
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 task-update tool.
|
|
6
|
+
*
|
|
7
|
+
* @returns The full description string for the task-update tool.
|
|
8
|
+
*/
|
|
9
|
+
declare function getPrompt(): string;
|
|
10
|
+
|
|
4
11
|
interface TaskUpdateConfig extends BaseToolConfig {
|
|
5
12
|
/** Path to the tasks JSON file. Defaults to `<cwd>/.agentool/tasks.json`. */
|
|
6
13
|
tasksFile?: string;
|
|
14
|
+
/** Override the default tool description. */
|
|
15
|
+
description?: string;
|
|
7
16
|
}
|
|
8
17
|
declare function createTaskUpdate(config?: TaskUpdateConfig): ai.Tool<{
|
|
9
18
|
taskId: string;
|
|
10
|
-
status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
|
|
11
19
|
description?: string | undefined;
|
|
20
|
+
status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
|
|
12
21
|
subject?: string | undefined;
|
|
13
22
|
metadata?: Record<string, unknown> | undefined;
|
|
14
23
|
owner?: string | undefined;
|
|
@@ -18,8 +27,8 @@ declare function createTaskUpdate(config?: TaskUpdateConfig): ai.Tool<{
|
|
|
18
27
|
}, string>;
|
|
19
28
|
declare const taskUpdate: ai.Tool<{
|
|
20
29
|
taskId: string;
|
|
21
|
-
status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
|
|
22
30
|
description?: string | undefined;
|
|
31
|
+
status?: "pending" | "in_progress" | "completed" | "deleted" | undefined;
|
|
23
32
|
subject?: string | undefined;
|
|
24
33
|
metadata?: Record<string, unknown> | undefined;
|
|
25
34
|
owner?: string | undefined;
|
|
@@ -28,4 +37,4 @@ declare const taskUpdate: ai.Tool<{
|
|
|
28
37
|
addBlockedBy?: string[] | undefined;
|
|
29
38
|
}, string>;
|
|
30
39
|
|
|
31
|
-
export { type TaskUpdateConfig, createTaskUpdate, taskUpdate };
|
|
40
|
+
export { type TaskUpdateConfig, createTaskUpdate, taskUpdate, getPrompt as taskUpdatePrompt };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTaskUpdate,
|
|
3
|
+
getPrompt,
|
|
3
4
|
taskUpdate
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-TM5L4HA5.js";
|
|
6
|
+
import "../chunk-VHLY7LQE.js";
|
|
7
|
+
import "../chunk-PWBVB6MN.js";
|
|
8
|
+
import "../chunk-X6ZY2KFU.js";
|
|
6
9
|
export {
|
|
7
10
|
createTaskUpdate,
|
|
8
|
-
taskUpdate
|
|
11
|
+
taskUpdate,
|
|
12
|
+
getPrompt as taskUpdatePrompt
|
|
9
13
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkIEX4NOVNcjs = require('../chunk-IEX4NOVN.cjs');
|
|
5
4
|
|
|
5
|
+
var _chunk2JBLVFB7cjs = require('../chunk-2JBLVFB7.cjs');
|
|
6
|
+
require('../chunk-KONXT2SF.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.createToolSearch = _chunk2JBLVFB7cjs.createToolSearch; exports.toolSearch = _chunk2JBLVFB7cjs.toolSearch; exports.toolSearchPrompt = _chunk2JBLVFB7cjs.getPrompt;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
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
|
+
|
|
3
10
|
interface ToolSearchConfig {
|
|
4
11
|
/** Registry of available tools to search through. */
|
|
5
12
|
tools?: Record<string, {
|
|
6
13
|
description: string;
|
|
7
14
|
}>;
|
|
15
|
+
/** Override the default tool description. */
|
|
16
|
+
description?: string;
|
|
8
17
|
}
|
|
9
18
|
declare function createToolSearch(config?: ToolSearchConfig): ai.Tool<{
|
|
10
19
|
query: string;
|
|
@@ -15,4 +24,4 @@ declare const toolSearch: ai.Tool<{
|
|
|
15
24
|
max_results: number;
|
|
16
25
|
}, string>;
|
|
17
26
|
|
|
18
|
-
export { type ToolSearchConfig, createToolSearch, toolSearch };
|
|
27
|
+
export { type ToolSearchConfig, createToolSearch, toolSearch, getPrompt as toolSearchPrompt };
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
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
|
+
|
|
3
10
|
interface ToolSearchConfig {
|
|
4
11
|
/** Registry of available tools to search through. */
|
|
5
12
|
tools?: Record<string, {
|
|
6
13
|
description: string;
|
|
7
14
|
}>;
|
|
15
|
+
/** Override the default tool description. */
|
|
16
|
+
description?: string;
|
|
8
17
|
}
|
|
9
18
|
declare function createToolSearch(config?: ToolSearchConfig): ai.Tool<{
|
|
10
19
|
query: string;
|
|
@@ -15,4 +24,4 @@ declare const toolSearch: ai.Tool<{
|
|
|
15
24
|
max_results: number;
|
|
16
25
|
}, string>;
|
|
17
26
|
|
|
18
|
-
export { type ToolSearchConfig, createToolSearch, toolSearch };
|
|
27
|
+
export { type ToolSearchConfig, createToolSearch, toolSearch, getPrompt as toolSearchPrompt };
|
package/dist/web-fetch/index.cjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunk5O55DKOBcjs = require('../chunk-5O55DKOB.cjs');
|
|
5
4
|
|
|
5
|
+
var _chunkG6ZVJA4Vcjs = require('../chunk-G6ZVJA4V.cjs');
|
|
6
|
+
require('../chunk-KONXT2SF.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
|
|
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.
|
|
@@ -51,4 +61,4 @@ declare const webFetch: ai.Tool<{
|
|
|
51
61
|
url: string;
|
|
52
62
|
}, string>;
|
|
53
63
|
|
|
54
|
-
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.
|
|
@@ -51,4 +61,4 @@ declare const webFetch: ai.Tool<{
|
|
|
51
61
|
url: string;
|
|
52
62
|
}, string>;
|
|
53
63
|
|
|
54
|
-
export { type WebFetchConfig, createWebFetch, webFetch };
|
|
64
|
+
export { type WebFetchConfig, createWebFetch, webFetch, getPrompt as webFetchPrompt };
|
package/dist/web-fetch/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkLK6SQH2Gcjs = require('../chunk-LK6SQH2G.cjs');
|
|
5
4
|
|
|
5
|
+
var _chunkCM3VRCNXcjs = require('../chunk-CM3VRCNX.cjs');
|
|
6
|
+
require('../chunk-KONXT2SF.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.createWebSearch = _chunkCM3VRCNXcjs.createWebSearch; exports.webSearch = _chunkCM3VRCNXcjs.webSearch; exports.webSearchPrompt = _chunkCM3VRCNXcjs.getPrompt;
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
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
|
+
|
|
3
10
|
interface WebSearchConfig {
|
|
4
11
|
/** Callback to perform the actual search. Users provide their own implementation. */
|
|
5
12
|
onSearch?: (query: string, opts: {
|
|
6
13
|
allowed_domains?: string[];
|
|
7
14
|
blocked_domains?: string[];
|
|
8
15
|
}) => Promise<string>;
|
|
16
|
+
/** Override the default tool description. */
|
|
17
|
+
description?: string;
|
|
9
18
|
}
|
|
10
19
|
declare function createWebSearch(config?: WebSearchConfig): ai.Tool<{
|
|
11
20
|
query: string;
|
|
@@ -18,4 +27,4 @@ declare const webSearch: ai.Tool<{
|
|
|
18
27
|
blocked_domains?: string[] | undefined;
|
|
19
28
|
}, string>;
|
|
20
29
|
|
|
21
|
-
export { type WebSearchConfig, createWebSearch, webSearch };
|
|
30
|
+
export { type WebSearchConfig, createWebSearch, webSearch, getPrompt as webSearchPrompt };
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
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
|
+
|
|
3
10
|
interface WebSearchConfig {
|
|
4
11
|
/** Callback to perform the actual search. Users provide their own implementation. */
|
|
5
12
|
onSearch?: (query: string, opts: {
|
|
6
13
|
allowed_domains?: string[];
|
|
7
14
|
blocked_domains?: string[];
|
|
8
15
|
}) => Promise<string>;
|
|
16
|
+
/** Override the default tool description. */
|
|
17
|
+
description?: string;
|
|
9
18
|
}
|
|
10
19
|
declare function createWebSearch(config?: WebSearchConfig): ai.Tool<{
|
|
11
20
|
query: string;
|
|
@@ -18,4 +27,4 @@ declare const webSearch: ai.Tool<{
|
|
|
18
27
|
blocked_domains?: string[] | undefined;
|
|
19
28
|
}, string>;
|
|
20
29
|
|
|
21
|
-
export { type WebSearchConfig, createWebSearch, webSearch };
|
|
30
|
+
export { type WebSearchConfig, createWebSearch, webSearch, getPrompt as webSearchPrompt };
|
package/dist/web-search/index.js
CHANGED
package/dist/write/index.cjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
require('../chunk-
|
|
4
|
+
|
|
5
|
+
var _chunkABXTBB2Ncjs = require('../chunk-ABXTBB2N.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.createWrite =
|
|
13
|
+
exports.createWrite = _chunkABXTBB2Ncjs.createWrite; exports.write = _chunkABXTBB2Ncjs.write; exports.writePrompt = _chunkABXTBB2Ncjs.getPrompt;
|