@codebolt/codeboltjs 5.0.9 → 5.1.10
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/core/Codebolt.d.ts +20 -1
- package/dist/core/Codebolt.js +18 -16
- package/dist/core/websocket.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -3
- package/dist/modules/agentDeliberation.js +3 -1
- package/dist/modules/environment.d.ts +24 -0
- package/dist/modules/environment.js +51 -0
- package/dist/modules/swarm.d.ts +2 -8
- package/dist/modules/swarm.js +0 -14
- package/dist/tools/environment/environment-create.d.ts +23 -0
- package/dist/tools/environment/environment-create.js +90 -0
- package/dist/tools/environment/environment-delete.d.ts +17 -0
- package/dist/tools/environment/environment-delete.js +70 -0
- package/dist/tools/environment/environment-get.d.ts +17 -0
- package/dist/tools/environment/environment-get.js +73 -0
- package/dist/tools/environment/environment-list.d.ts +15 -0
- package/dist/tools/environment/environment-list.js +72 -0
- package/dist/tools/environment/environment-providers.d.ts +24 -0
- package/dist/tools/environment/environment-providers.js +130 -0
- package/dist/tools/environment/environment-restart.d.ts +17 -0
- package/dist/tools/environment/environment-restart.js +70 -0
- package/dist/tools/environment/environment-send-message.d.ts +19 -0
- package/dist/tools/environment/environment-send-message.js +74 -0
- package/dist/tools/environment/environment-start.d.ts +17 -0
- package/dist/tools/environment/environment-start.js +70 -0
- package/dist/tools/environment/environment-statistics.d.ts +15 -0
- package/dist/tools/environment/environment-statistics.js +69 -0
- package/dist/tools/environment/environment-status.d.ts +17 -0
- package/dist/tools/environment/environment-status.js +72 -0
- package/dist/tools/environment/environment-stop.d.ts +17 -0
- package/dist/tools/environment/environment-stop.js +70 -0
- package/dist/tools/environment/environment-update.d.ts +19 -0
- package/dist/tools/environment/environment-update.js +74 -0
- package/dist/tools/environment/index.d.ts +31 -0
- package/dist/tools/environment/index.js +61 -0
- package/dist/tools/index.d.ts +16 -2
- package/dist/tools/index.js +45 -5
- package/dist/tools/registry.d.ts +21 -0
- package/dist/tools/registry.js +38 -1
- package/dist/tools/tool-search.d.ts +49 -0
- package/dist/tools/tool-search.js +140 -0
- package/dist/tools/toolSearch/index.d.ts +9 -0
- package/dist/tools/toolSearch/index.js +15 -0
- package/dist/tools/toolSearch/tool-search-tool.d.ts +32 -0
- package/dist/tools/toolSearch/tool-search-tool.js +110 -0
- package/dist/types/agentDeliberation.d.ts +15 -1
- package/dist/types/agentDeliberation.js +2 -0
- package/dist/types/job.d.ts +1 -1
- package/package.json +20 -19
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Environment Statistics Tool - Gets environment statistics
|
|
4
|
+
* Wraps the SDK's cbenvironment.getEnvironmentStatistics() method
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.EnvironmentStatisticsTool = void 0;
|
|
11
|
+
const types_1 = require("../types");
|
|
12
|
+
const base_tool_1 = require("../base-tool");
|
|
13
|
+
const environment_1 = __importDefault(require("../../modules/environment"));
|
|
14
|
+
const chat_1 = __importDefault(require("../../modules/chat"));
|
|
15
|
+
class EnvironmentStatisticsInvocation extends base_tool_1.BaseToolInvocation {
|
|
16
|
+
constructor(params) {
|
|
17
|
+
super(params);
|
|
18
|
+
}
|
|
19
|
+
async execute() {
|
|
20
|
+
var _a;
|
|
21
|
+
try {
|
|
22
|
+
if (this.params.explanation) {
|
|
23
|
+
chat_1.default.sendMessage(this.params.explanation);
|
|
24
|
+
}
|
|
25
|
+
const response = await environment_1.default.getEnvironmentStatistics();
|
|
26
|
+
if (response && response.success === false) {
|
|
27
|
+
const errorMsg = response.error || 'Failed to get environment statistics';
|
|
28
|
+
return {
|
|
29
|
+
llmContent: `Failed to get environment statistics: ${errorMsg}`,
|
|
30
|
+
returnDisplay: `Error: ${errorMsg}`,
|
|
31
|
+
error: { message: errorMsg, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const stats = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.statistics) || {};
|
|
35
|
+
const output = `Environment Statistics:\n${JSON.stringify(stats, null, 2)}`;
|
|
36
|
+
return {
|
|
37
|
+
llmContent: output,
|
|
38
|
+
returnDisplay: 'Retrieved environment statistics',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
43
|
+
return {
|
|
44
|
+
llmContent: `Error getting environment statistics: ${errorMessage}`,
|
|
45
|
+
returnDisplay: `Error: ${errorMessage}`,
|
|
46
|
+
error: { message: errorMessage, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
class EnvironmentStatisticsTool extends base_tool_1.BaseDeclarativeTool {
|
|
52
|
+
constructor() {
|
|
53
|
+
super(EnvironmentStatisticsTool.Name, 'EnvironmentStatistics', 'Gets environment statistics including counts and health information.', types_1.Kind.Read, {
|
|
54
|
+
properties: {
|
|
55
|
+
explanation: {
|
|
56
|
+
description: "One sentence explanation as to why this tool is being used, and how it contributes to the goal.",
|
|
57
|
+
type: 'string',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
required: [],
|
|
61
|
+
type: 'object',
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
createInvocation(params) {
|
|
65
|
+
return new EnvironmentStatisticsInvocation(params);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.EnvironmentStatisticsTool = EnvironmentStatisticsTool;
|
|
69
|
+
EnvironmentStatisticsTool.Name = 'environment_statistics';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment Status Tool - Gets the status of an environment
|
|
3
|
+
* Wraps the SDK's cbenvironment.getEnvironmentStatus() method
|
|
4
|
+
*/
|
|
5
|
+
import type { ToolInvocation, ToolResult } from '../types';
|
|
6
|
+
import { BaseDeclarativeTool } from '../base-tool';
|
|
7
|
+
export interface EnvironmentStatusParams {
|
|
8
|
+
/** One sentence explanation of why this tool is being used */
|
|
9
|
+
explanation?: string;
|
|
10
|
+
/** The ID of the environment to check status for */
|
|
11
|
+
environmentId: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class EnvironmentStatusTool extends BaseDeclarativeTool<EnvironmentStatusParams, ToolResult> {
|
|
14
|
+
static readonly Name: string;
|
|
15
|
+
constructor();
|
|
16
|
+
protected createInvocation(params: EnvironmentStatusParams): ToolInvocation<EnvironmentStatusParams, ToolResult>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Environment Status Tool - Gets the status of an environment
|
|
4
|
+
* Wraps the SDK's cbenvironment.getEnvironmentStatus() method
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.EnvironmentStatusTool = void 0;
|
|
11
|
+
const types_1 = require("../types");
|
|
12
|
+
const base_tool_1 = require("../base-tool");
|
|
13
|
+
const environment_1 = __importDefault(require("../../modules/environment"));
|
|
14
|
+
const chat_1 = __importDefault(require("../../modules/chat"));
|
|
15
|
+
class EnvironmentStatusInvocation extends base_tool_1.BaseToolInvocation {
|
|
16
|
+
constructor(params) {
|
|
17
|
+
super(params);
|
|
18
|
+
}
|
|
19
|
+
async execute() {
|
|
20
|
+
try {
|
|
21
|
+
if (this.params.explanation) {
|
|
22
|
+
chat_1.default.sendMessage(this.params.explanation);
|
|
23
|
+
}
|
|
24
|
+
const response = await environment_1.default.getEnvironmentStatus(this.params.environmentId);
|
|
25
|
+
if (response && response.success === false) {
|
|
26
|
+
const errorMsg = response.error || 'Failed to get environment status';
|
|
27
|
+
return {
|
|
28
|
+
llmContent: `Failed to get environment status: ${errorMsg}`,
|
|
29
|
+
returnDisplay: `Error: ${errorMsg}`,
|
|
30
|
+
error: { message: errorMsg, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const data = response.data || {};
|
|
34
|
+
const output = `Environment Status (${this.params.environmentId}):\n- State: ${data.state || 'unknown'}\n- Running: ${data.isRunning}\n- Healthy: ${data.isHealthy}\n- Restart Count: ${data.restartCount || 0}\n- Error Count: ${data.errorCount || 0}${data.lastError ? `\n- Last Error: ${data.lastError}` : ''}`;
|
|
35
|
+
return {
|
|
36
|
+
llmContent: output,
|
|
37
|
+
returnDisplay: `Environment status: ${data.state || 'unknown'}`,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
42
|
+
return {
|
|
43
|
+
llmContent: `Error getting environment status: ${errorMessage}`,
|
|
44
|
+
returnDisplay: `Error: ${errorMessage}`,
|
|
45
|
+
error: { message: errorMessage, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
class EnvironmentStatusTool extends base_tool_1.BaseDeclarativeTool {
|
|
51
|
+
constructor() {
|
|
52
|
+
super(EnvironmentStatusTool.Name, 'EnvironmentStatus', 'Gets the status of an environment including state, health, and error information.', types_1.Kind.Read, {
|
|
53
|
+
properties: {
|
|
54
|
+
explanation: {
|
|
55
|
+
description: "One sentence explanation as to why this tool is being used, and how it contributes to the goal.",
|
|
56
|
+
type: 'string',
|
|
57
|
+
},
|
|
58
|
+
environmentId: {
|
|
59
|
+
description: 'The ID of the environment to check status for.',
|
|
60
|
+
type: 'string',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
required: ['environmentId'],
|
|
64
|
+
type: 'object',
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
createInvocation(params) {
|
|
68
|
+
return new EnvironmentStatusInvocation(params);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.EnvironmentStatusTool = EnvironmentStatusTool;
|
|
72
|
+
EnvironmentStatusTool.Name = 'environment_status';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment Stop Tool - Stops an environment provider
|
|
3
|
+
* Wraps the SDK's cbenvironment.stopEnvironment() method
|
|
4
|
+
*/
|
|
5
|
+
import type { ToolInvocation, ToolResult } from '../types';
|
|
6
|
+
import { BaseDeclarativeTool } from '../base-tool';
|
|
7
|
+
export interface EnvironmentStopParams {
|
|
8
|
+
/** One sentence explanation of why this tool is being used */
|
|
9
|
+
explanation?: string;
|
|
10
|
+
/** The ID of the environment to stop */
|
|
11
|
+
environmentId: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class EnvironmentStopTool extends BaseDeclarativeTool<EnvironmentStopParams, ToolResult> {
|
|
14
|
+
static readonly Name: string;
|
|
15
|
+
constructor();
|
|
16
|
+
protected createInvocation(params: EnvironmentStopParams): ToolInvocation<EnvironmentStopParams, ToolResult>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Environment Stop Tool - Stops an environment provider
|
|
4
|
+
* Wraps the SDK's cbenvironment.stopEnvironment() method
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.EnvironmentStopTool = void 0;
|
|
11
|
+
const types_1 = require("../types");
|
|
12
|
+
const base_tool_1 = require("../base-tool");
|
|
13
|
+
const environment_1 = __importDefault(require("../../modules/environment"));
|
|
14
|
+
const chat_1 = __importDefault(require("../../modules/chat"));
|
|
15
|
+
class EnvironmentStopInvocation extends base_tool_1.BaseToolInvocation {
|
|
16
|
+
constructor(params) {
|
|
17
|
+
super(params);
|
|
18
|
+
}
|
|
19
|
+
async execute() {
|
|
20
|
+
try {
|
|
21
|
+
if (this.params.explanation) {
|
|
22
|
+
chat_1.default.sendMessage(this.params.explanation);
|
|
23
|
+
}
|
|
24
|
+
const response = await environment_1.default.stopEnvironment(this.params.environmentId);
|
|
25
|
+
if (response && response.success === false) {
|
|
26
|
+
const errorMsg = response.error || 'Failed to stop environment';
|
|
27
|
+
return {
|
|
28
|
+
llmContent: `Failed to stop environment: ${errorMsg}`,
|
|
29
|
+
returnDisplay: `Error: ${errorMsg}`,
|
|
30
|
+
error: { message: errorMsg, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
llmContent: `Environment ${this.params.environmentId} stopped successfully.`,
|
|
35
|
+
returnDisplay: `Stopped environment: ${this.params.environmentId}`,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
40
|
+
return {
|
|
41
|
+
llmContent: `Error stopping environment: ${errorMessage}`,
|
|
42
|
+
returnDisplay: `Error: ${errorMessage}`,
|
|
43
|
+
error: { message: errorMessage, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
class EnvironmentStopTool extends base_tool_1.BaseDeclarativeTool {
|
|
49
|
+
constructor() {
|
|
50
|
+
super(EnvironmentStopTool.Name, 'EnvironmentStop', 'Stops an environment by ID.', types_1.Kind.Execute, {
|
|
51
|
+
properties: {
|
|
52
|
+
explanation: {
|
|
53
|
+
description: "One sentence explanation as to why this tool is being used, and how it contributes to the goal.",
|
|
54
|
+
type: 'string',
|
|
55
|
+
},
|
|
56
|
+
environmentId: {
|
|
57
|
+
description: 'The ID of the environment to stop.',
|
|
58
|
+
type: 'string',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
required: ['environmentId'],
|
|
62
|
+
type: 'object',
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
createInvocation(params) {
|
|
66
|
+
return new EnvironmentStopInvocation(params);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.EnvironmentStopTool = EnvironmentStopTool;
|
|
70
|
+
EnvironmentStopTool.Name = 'environment_stop';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment Update Tool - Updates an existing environment
|
|
3
|
+
* Wraps the SDK's cbenvironment.updateEnvironment() method
|
|
4
|
+
*/
|
|
5
|
+
import type { ToolInvocation, ToolResult } from '../types';
|
|
6
|
+
import { BaseDeclarativeTool } from '../base-tool';
|
|
7
|
+
export interface EnvironmentUpdateParams {
|
|
8
|
+
/** One sentence explanation of why this tool is being used */
|
|
9
|
+
explanation?: string;
|
|
10
|
+
/** The ID of the environment to update */
|
|
11
|
+
environmentId: string;
|
|
12
|
+
/** The data to update */
|
|
13
|
+
updateData: any;
|
|
14
|
+
}
|
|
15
|
+
export declare class EnvironmentUpdateTool extends BaseDeclarativeTool<EnvironmentUpdateParams, ToolResult> {
|
|
16
|
+
static readonly Name: string;
|
|
17
|
+
constructor();
|
|
18
|
+
protected createInvocation(params: EnvironmentUpdateParams): ToolInvocation<EnvironmentUpdateParams, ToolResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Environment Update Tool - Updates an existing environment
|
|
4
|
+
* Wraps the SDK's cbenvironment.updateEnvironment() method
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.EnvironmentUpdateTool = void 0;
|
|
11
|
+
const types_1 = require("../types");
|
|
12
|
+
const base_tool_1 = require("../base-tool");
|
|
13
|
+
const environment_1 = __importDefault(require("../../modules/environment"));
|
|
14
|
+
const chat_1 = __importDefault(require("../../modules/chat"));
|
|
15
|
+
class EnvironmentUpdateInvocation extends base_tool_1.BaseToolInvocation {
|
|
16
|
+
constructor(params) {
|
|
17
|
+
super(params);
|
|
18
|
+
}
|
|
19
|
+
async execute() {
|
|
20
|
+
try {
|
|
21
|
+
if (this.params.explanation) {
|
|
22
|
+
chat_1.default.sendMessage(this.params.explanation);
|
|
23
|
+
}
|
|
24
|
+
const response = await environment_1.default.updateEnvironment(this.params.environmentId, this.params.updateData);
|
|
25
|
+
if (response && response.success === false) {
|
|
26
|
+
const errorMsg = response.error || 'Failed to update environment';
|
|
27
|
+
return {
|
|
28
|
+
llmContent: `Failed to update environment: ${errorMsg}`,
|
|
29
|
+
returnDisplay: `Error: ${errorMsg}`,
|
|
30
|
+
error: { message: errorMsg, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
llmContent: `Environment ${this.params.environmentId} updated successfully.`,
|
|
35
|
+
returnDisplay: `Updated environment: ${this.params.environmentId}`,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
40
|
+
return {
|
|
41
|
+
llmContent: `Error updating environment: ${errorMessage}`,
|
|
42
|
+
returnDisplay: `Error: ${errorMessage}`,
|
|
43
|
+
error: { message: errorMessage, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
class EnvironmentUpdateTool extends base_tool_1.BaseDeclarativeTool {
|
|
49
|
+
constructor() {
|
|
50
|
+
super(EnvironmentUpdateTool.Name, 'EnvironmentUpdate', 'Updates an existing environment by ID.', types_1.Kind.Edit, {
|
|
51
|
+
properties: {
|
|
52
|
+
explanation: {
|
|
53
|
+
description: "One sentence explanation as to why this tool is being used, and how it contributes to the goal.",
|
|
54
|
+
type: 'string',
|
|
55
|
+
},
|
|
56
|
+
environmentId: {
|
|
57
|
+
description: 'The ID of the environment to update.',
|
|
58
|
+
type: 'string',
|
|
59
|
+
},
|
|
60
|
+
updateData: {
|
|
61
|
+
description: 'The data to update on the environment.',
|
|
62
|
+
type: 'object',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
required: ['environmentId', 'updateData'],
|
|
66
|
+
type: 'object',
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
createInvocation(params) {
|
|
70
|
+
return new EnvironmentUpdateInvocation(params);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.EnvironmentUpdateTool = EnvironmentUpdateTool;
|
|
74
|
+
EnvironmentUpdateTool.Name = 'environment_update';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment tools - Tools for environment management
|
|
3
|
+
*/
|
|
4
|
+
export { EnvironmentListTool, type EnvironmentListParams } from './environment-list';
|
|
5
|
+
export { EnvironmentGetTool, type EnvironmentGetParams } from './environment-get';
|
|
6
|
+
export { EnvironmentCreateTool, type EnvironmentCreateParams } from './environment-create';
|
|
7
|
+
export { EnvironmentUpdateTool, type EnvironmentUpdateParams } from './environment-update';
|
|
8
|
+
export { EnvironmentDeleteTool, type EnvironmentDeleteParams } from './environment-delete';
|
|
9
|
+
export { EnvironmentStartTool, type EnvironmentStartParams } from './environment-start';
|
|
10
|
+
export { EnvironmentStopTool, type EnvironmentStopParams } from './environment-stop';
|
|
11
|
+
export { EnvironmentRestartTool, type EnvironmentRestartParams } from './environment-restart';
|
|
12
|
+
export { EnvironmentStatusTool, type EnvironmentStatusParams } from './environment-status';
|
|
13
|
+
export { EnvironmentGetLocalProvidersTool, EnvironmentGetRunningProvidersTool, type EnvironmentGetLocalProvidersParams, type EnvironmentGetRunningProvidersParams } from './environment-providers';
|
|
14
|
+
export { EnvironmentStatisticsTool, type EnvironmentStatisticsParams } from './environment-statistics';
|
|
15
|
+
export { EnvironmentSendMessageTool, type EnvironmentSendMessageParams } from './environment-send-message';
|
|
16
|
+
import { EnvironmentListTool } from './environment-list';
|
|
17
|
+
import { EnvironmentGetTool } from './environment-get';
|
|
18
|
+
import { EnvironmentCreateTool } from './environment-create';
|
|
19
|
+
import { EnvironmentUpdateTool } from './environment-update';
|
|
20
|
+
import { EnvironmentDeleteTool } from './environment-delete';
|
|
21
|
+
import { EnvironmentStartTool } from './environment-start';
|
|
22
|
+
import { EnvironmentStopTool } from './environment-stop';
|
|
23
|
+
import { EnvironmentRestartTool } from './environment-restart';
|
|
24
|
+
import { EnvironmentStatusTool } from './environment-status';
|
|
25
|
+
import { EnvironmentGetLocalProvidersTool, EnvironmentGetRunningProvidersTool } from './environment-providers';
|
|
26
|
+
import { EnvironmentStatisticsTool } from './environment-statistics';
|
|
27
|
+
import { EnvironmentSendMessageTool } from './environment-send-message';
|
|
28
|
+
/**
|
|
29
|
+
* All environment tools
|
|
30
|
+
*/
|
|
31
|
+
export declare const environmentTools: (EnvironmentListTool | EnvironmentGetTool | EnvironmentCreateTool | EnvironmentUpdateTool | EnvironmentDeleteTool | EnvironmentStartTool | EnvironmentStopTool | EnvironmentRestartTool | EnvironmentStatusTool | EnvironmentGetLocalProvidersTool | EnvironmentGetRunningProvidersTool | EnvironmentStatisticsTool | EnvironmentSendMessageTool)[];
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Environment tools - Tools for environment management
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.environmentTools = exports.EnvironmentSendMessageTool = exports.EnvironmentStatisticsTool = exports.EnvironmentGetRunningProvidersTool = exports.EnvironmentGetLocalProvidersTool = exports.EnvironmentStatusTool = exports.EnvironmentRestartTool = exports.EnvironmentStopTool = exports.EnvironmentStartTool = exports.EnvironmentDeleteTool = exports.EnvironmentUpdateTool = exports.EnvironmentCreateTool = exports.EnvironmentGetTool = exports.EnvironmentListTool = void 0;
|
|
7
|
+
var environment_list_1 = require("./environment-list");
|
|
8
|
+
Object.defineProperty(exports, "EnvironmentListTool", { enumerable: true, get: function () { return environment_list_1.EnvironmentListTool; } });
|
|
9
|
+
var environment_get_1 = require("./environment-get");
|
|
10
|
+
Object.defineProperty(exports, "EnvironmentGetTool", { enumerable: true, get: function () { return environment_get_1.EnvironmentGetTool; } });
|
|
11
|
+
var environment_create_1 = require("./environment-create");
|
|
12
|
+
Object.defineProperty(exports, "EnvironmentCreateTool", { enumerable: true, get: function () { return environment_create_1.EnvironmentCreateTool; } });
|
|
13
|
+
var environment_update_1 = require("./environment-update");
|
|
14
|
+
Object.defineProperty(exports, "EnvironmentUpdateTool", { enumerable: true, get: function () { return environment_update_1.EnvironmentUpdateTool; } });
|
|
15
|
+
var environment_delete_1 = require("./environment-delete");
|
|
16
|
+
Object.defineProperty(exports, "EnvironmentDeleteTool", { enumerable: true, get: function () { return environment_delete_1.EnvironmentDeleteTool; } });
|
|
17
|
+
var environment_start_1 = require("./environment-start");
|
|
18
|
+
Object.defineProperty(exports, "EnvironmentStartTool", { enumerable: true, get: function () { return environment_start_1.EnvironmentStartTool; } });
|
|
19
|
+
var environment_stop_1 = require("./environment-stop");
|
|
20
|
+
Object.defineProperty(exports, "EnvironmentStopTool", { enumerable: true, get: function () { return environment_stop_1.EnvironmentStopTool; } });
|
|
21
|
+
var environment_restart_1 = require("./environment-restart");
|
|
22
|
+
Object.defineProperty(exports, "EnvironmentRestartTool", { enumerable: true, get: function () { return environment_restart_1.EnvironmentRestartTool; } });
|
|
23
|
+
var environment_status_1 = require("./environment-status");
|
|
24
|
+
Object.defineProperty(exports, "EnvironmentStatusTool", { enumerable: true, get: function () { return environment_status_1.EnvironmentStatusTool; } });
|
|
25
|
+
var environment_providers_1 = require("./environment-providers");
|
|
26
|
+
Object.defineProperty(exports, "EnvironmentGetLocalProvidersTool", { enumerable: true, get: function () { return environment_providers_1.EnvironmentGetLocalProvidersTool; } });
|
|
27
|
+
Object.defineProperty(exports, "EnvironmentGetRunningProvidersTool", { enumerable: true, get: function () { return environment_providers_1.EnvironmentGetRunningProvidersTool; } });
|
|
28
|
+
var environment_statistics_1 = require("./environment-statistics");
|
|
29
|
+
Object.defineProperty(exports, "EnvironmentStatisticsTool", { enumerable: true, get: function () { return environment_statistics_1.EnvironmentStatisticsTool; } });
|
|
30
|
+
var environment_send_message_1 = require("./environment-send-message");
|
|
31
|
+
Object.defineProperty(exports, "EnvironmentSendMessageTool", { enumerable: true, get: function () { return environment_send_message_1.EnvironmentSendMessageTool; } });
|
|
32
|
+
const environment_list_2 = require("./environment-list");
|
|
33
|
+
const environment_get_2 = require("./environment-get");
|
|
34
|
+
const environment_create_2 = require("./environment-create");
|
|
35
|
+
const environment_update_2 = require("./environment-update");
|
|
36
|
+
const environment_delete_2 = require("./environment-delete");
|
|
37
|
+
const environment_start_2 = require("./environment-start");
|
|
38
|
+
const environment_stop_2 = require("./environment-stop");
|
|
39
|
+
const environment_restart_2 = require("./environment-restart");
|
|
40
|
+
const environment_status_2 = require("./environment-status");
|
|
41
|
+
const environment_providers_2 = require("./environment-providers");
|
|
42
|
+
const environment_statistics_2 = require("./environment-statistics");
|
|
43
|
+
const environment_send_message_2 = require("./environment-send-message");
|
|
44
|
+
/**
|
|
45
|
+
* All environment tools
|
|
46
|
+
*/
|
|
47
|
+
exports.environmentTools = [
|
|
48
|
+
new environment_list_2.EnvironmentListTool(),
|
|
49
|
+
new environment_get_2.EnvironmentGetTool(),
|
|
50
|
+
new environment_create_2.EnvironmentCreateTool(),
|
|
51
|
+
new environment_update_2.EnvironmentUpdateTool(),
|
|
52
|
+
new environment_delete_2.EnvironmentDeleteTool(),
|
|
53
|
+
new environment_start_2.EnvironmentStartTool(),
|
|
54
|
+
new environment_stop_2.EnvironmentStopTool(),
|
|
55
|
+
new environment_restart_2.EnvironmentRestartTool(),
|
|
56
|
+
new environment_status_2.EnvironmentStatusTool(),
|
|
57
|
+
new environment_providers_2.EnvironmentGetLocalProvidersTool(),
|
|
58
|
+
new environment_providers_2.EnvironmentGetRunningProvidersTool(),
|
|
59
|
+
new environment_statistics_2.EnvironmentStatisticsTool(),
|
|
60
|
+
new environment_send_message_2.EnvironmentSendMessageTool(),
|
|
61
|
+
];
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
export * from './types';
|
|
8
8
|
export { BaseToolInvocation, DeclarativeTool, BaseDeclarativeTool, Kind, type ToolInvocation, type ToolResult, type ToolLocation, type ToolCallConfirmationDetails, } from './base-tool';
|
|
9
9
|
export { ToolRegistry, defaultRegistry } from './registry';
|
|
10
|
+
export { ToolSearchEngine, type ToolSearchResult, type ToolSearchOptions } from './tool-search';
|
|
11
|
+
export { toolSearchTools, ToolSearchTool, type ToolSearchToolParams, } from './toolSearch';
|
|
10
12
|
export * from './utils';
|
|
11
13
|
export { ReadFileTool, WriteFileTool, EditTool, ListDirectoryTool, ReadManyFilesTool, fileTools, type ReadFileToolParams, type WriteFileToolParams, type EditToolParams, type ListDirectoryToolParams, type ReadManyFilesToolParams, } from './file';
|
|
12
14
|
export { actionBlockTools, } from './actionBlock';
|
|
@@ -18,6 +20,7 @@ export { memoryIngestionTools, } from './memoryIngestion';
|
|
|
18
20
|
export { ragTools, } from './rag';
|
|
19
21
|
export { webSearchTools, } from './search/index-web';
|
|
20
22
|
export { dbmemoryTools, } from './dbmemory';
|
|
23
|
+
export { environmentTools, EnvironmentListTool, EnvironmentGetTool, EnvironmentCreateTool, EnvironmentUpdateTool, EnvironmentDeleteTool, EnvironmentStartTool, EnvironmentStopTool, EnvironmentRestartTool, EnvironmentStatusTool, EnvironmentGetLocalProvidersTool, EnvironmentGetRunningProvidersTool, EnvironmentStatisticsTool, EnvironmentSendMessageTool, type EnvironmentListParams, type EnvironmentGetParams, type EnvironmentCreateParams, type EnvironmentUpdateParams, type EnvironmentDeleteParams, type EnvironmentStartParams, type EnvironmentStopParams, type EnvironmentRestartParams, type EnvironmentStatusParams, type EnvironmentGetLocalProvidersParams, type EnvironmentGetRunningProvidersParams, type EnvironmentStatisticsParams, type EnvironmentSendMessageParams, } from './environment';
|
|
21
24
|
export { agentEventQueueTools, EventQueueAddEventTool, EventQueueSendMessageTool, EventQueueGetStatsTool, EventQueueGetPendingTool, EventQueueWaitNextTool, EventQueueAcknowledgeTool, type EventQueueAddEventParams, type EventQueueSendMessageParams, type EventQueueGetStatsParams, type EventQueueGetPendingParams, type EventQueueWaitNextParams, type EventQueueAcknowledgeParams, } from './agentEventQueue';
|
|
22
25
|
export { GlobTool, GrepTool, SearchFilesTool, CodebaseSearchTool, SearchMcpToolTool, ListCodeDefinitionNamesTool, searchTools, type GlobToolParams, type GrepToolParams, type SearchFilesToolParams, type CodebaseSearchToolParams, type SearchMcpToolToolParams, type ListCodeDefinitionNamesToolParams, } from './search';
|
|
23
26
|
export { ExecuteCommandTool, terminalTools, type ExecuteCommandToolParams, } from './terminal';
|
|
@@ -113,10 +116,11 @@ export * from './utils';
|
|
|
113
116
|
export { completionTools } from './completion';
|
|
114
117
|
export * from './completion';
|
|
115
118
|
import { ToolRegistry } from './registry';
|
|
119
|
+
import { ToolSearchTool } from './toolSearch';
|
|
116
120
|
/**
|
|
117
121
|
* All available tools combined
|
|
118
122
|
*/
|
|
119
|
-
export declare const allTools: (import("./file").ReadFileTool | import("./file").WriteFileTool | import("./file").EditTool | import("./file").ListDirectoryTool | import("./file").ReadManyFilesTool | import("./actionBlock").ListActionBlocksTool | import("./actionBlock").GetActionBlockDetailTool | import("./actionBlock").StartActionBlockTool | import("./actionPlan").GetAllActionPlansTool | import("./actionPlan").CreateActionPlanTool | import("./actionPlan").AddTaskToActionPlanTool | import("./terminal").ExecuteCommandTool | import("./thread").ThreadCreateTool | import("./thread").ThreadCreateStartTool | import("./thread").ThreadCreateBackgroundTool | import("./thread").ThreadListTool | import("./thread").ThreadGetTool | import("./thread").ThreadStartTool | import("./thread").ThreadUpdateTool | import("./thread").ThreadDeleteTool | import("./thread").ThreadGetMessagesTool | import("./thread").ThreadUpdateStatusTool | import("./orchestrator").OrchestratorListTool | import("./orchestrator").OrchestratorGetTool | import("./orchestrator").OrchestratorGetSettingsTool | import("./orchestrator").OrchestratorCreateTool | import("./orchestrator").OrchestratorUpdateTool | import("./orchestrator").OrchestratorUpdateSettingsTool | import("./orchestrator").OrchestratorDeleteTool | import("./orchestrator").OrchestratorUpdateStatusTool | import("./planning").PlanGetAllTool | import("./planning").PlanGetDetailTool | import("./planning").PlanCreateTool | import("./planning").PlanUpdateTool | import("./planning").PlanAddTaskTool | import("./planning").PlanStartTaskTool | import("./planning").RoadmapGetTool | import("./planning").RoadmapGetPhasesTool | import("./planning").RoadmapCreatePhaseTool | import("./planning").RoadmapUpdatePhaseTool | import("./planning").RoadmapDeletePhaseTool | import("./planning").RoadmapGetFeaturesTool | import("./planning").RoadmapCreateFeatureTool | import("./planning").RoadmapUpdateFeatureTool | import("./planning").RoadmapGetIdeasTool | import("./planning").RoadmapCreateIdeaTool | import("./job").JobCreateTool | import("./job").JobGetTool | import("./job").JobUpdateTool | import("./job").JobDeleteTool | import("./job").JobListTool | import("./job").JobGroupCreateTool | import("./job").JobAddDependencyTool | import("./job").JobRemoveDependencyTool | import("./job").JobGetReadyTool | import("./job").JobGetBlockedTool | import("./job").JobLockTool | import("./job").JobUnlockTool | import("./job").JobBidAddTool | import("./codebaseSearch").CodebaseSearchTool | import("./codebaseSearch").CodebaseSearchMcpToolTool | import("./requirementPlan").RequirementPlanCreateTool | import("./requirementPlan").RequirementPlanGetTool | import("./requirementPlan").RequirementPlanUpdateTool | import("./requirementPlan").RequirementPlanListTool | import("./requirementPlan").RequirementPlanAddSectionTool | import("./requirementPlan").RequirementPlanUpdateSectionTool | import("./requirementPlan").RequirementPlanRemoveSectionTool | import("./requirementPlan").RequirementPlanReorderSectionsTool | import("./requirementPlan").RequirementPlanReviewTool | import("./completion").AttemptCompletionTool)[];
|
|
123
|
+
export declare const allTools: (ToolSearchTool | import("./file").ReadFileTool | import("./file").WriteFileTool | import("./file").EditTool | import("./file").ListDirectoryTool | import("./file").ReadManyFilesTool | import("./actionBlock").ListActionBlocksTool | import("./actionBlock").GetActionBlockDetailTool | import("./actionBlock").StartActionBlockTool | import("./actionPlan").GetAllActionPlansTool | import("./actionPlan").CreateActionPlanTool | import("./actionPlan").AddTaskToActionPlanTool | import("./environment").EnvironmentListTool | import("./environment").EnvironmentGetTool | import("./environment").EnvironmentCreateTool | import("./environment").EnvironmentUpdateTool | import("./environment").EnvironmentDeleteTool | import("./environment").EnvironmentStartTool | import("./environment").EnvironmentStopTool | import("./environment").EnvironmentRestartTool | import("./environment").EnvironmentStatusTool | import("./environment").EnvironmentGetLocalProvidersTool | import("./environment").EnvironmentGetRunningProvidersTool | import("./environment").EnvironmentStatisticsTool | import("./environment").EnvironmentSendMessageTool | import("./agentEventQueue").EventQueueAddEventTool | import("./agentEventQueue").EventQueueSendMessageTool | import("./agentEventQueue").EventQueueGetStatsTool | import("./agentEventQueue").EventQueueGetPendingTool | import("./agentEventQueue").EventQueueWaitNextTool | import("./agentEventQueue").EventQueueAcknowledgeTool | import("./terminal").ExecuteCommandTool | import("./thread").ThreadCreateTool | import("./thread").ThreadCreateStartTool | import("./thread").ThreadCreateBackgroundTool | import("./thread").ThreadListTool | import("./thread").ThreadGetTool | import("./thread").ThreadStartTool | import("./thread").ThreadUpdateTool | import("./thread").ThreadDeleteTool | import("./thread").ThreadGetMessagesTool | import("./thread").ThreadUpdateStatusTool | import("./orchestrator").OrchestratorListTool | import("./orchestrator").OrchestratorGetTool | import("./orchestrator").OrchestratorGetSettingsTool | import("./orchestrator").OrchestratorCreateTool | import("./orchestrator").OrchestratorUpdateTool | import("./orchestrator").OrchestratorUpdateSettingsTool | import("./orchestrator").OrchestratorDeleteTool | import("./orchestrator").OrchestratorUpdateStatusTool | import("./planning").PlanGetAllTool | import("./planning").PlanGetDetailTool | import("./planning").PlanCreateTool | import("./planning").PlanUpdateTool | import("./planning").PlanAddTaskTool | import("./planning").PlanStartTaskTool | import("./planning").RoadmapGetTool | import("./planning").RoadmapGetPhasesTool | import("./planning").RoadmapCreatePhaseTool | import("./planning").RoadmapUpdatePhaseTool | import("./planning").RoadmapDeletePhaseTool | import("./planning").RoadmapGetFeaturesTool | import("./planning").RoadmapCreateFeatureTool | import("./planning").RoadmapUpdateFeatureTool | import("./planning").RoadmapGetIdeasTool | import("./planning").RoadmapCreateIdeaTool | import("./job").JobCreateTool | import("./job").JobGetTool | import("./job").JobUpdateTool | import("./job").JobDeleteTool | import("./job").JobListTool | import("./job").JobGroupCreateTool | import("./job").JobAddDependencyTool | import("./job").JobRemoveDependencyTool | import("./job").JobGetReadyTool | import("./job").JobGetBlockedTool | import("./job").JobLockTool | import("./job").JobUnlockTool | import("./job").JobBidAddTool | import("./codebaseSearch").CodebaseSearchTool | import("./codebaseSearch").CodebaseSearchMcpToolTool | import("./requirementPlan").RequirementPlanCreateTool | import("./requirementPlan").RequirementPlanGetTool | import("./requirementPlan").RequirementPlanUpdateTool | import("./requirementPlan").RequirementPlanListTool | import("./requirementPlan").RequirementPlanAddSectionTool | import("./requirementPlan").RequirementPlanUpdateSectionTool | import("./requirementPlan").RequirementPlanRemoveSectionTool | import("./requirementPlan").RequirementPlanReorderSectionsTool | import("./requirementPlan").RequirementPlanReviewTool | import("./completion").AttemptCompletionTool)[];
|
|
120
124
|
/**
|
|
121
125
|
* Tools module providing LLM-ready tool definitions
|
|
122
126
|
*/
|
|
@@ -124,7 +128,7 @@ declare const tools: {
|
|
|
124
128
|
/**
|
|
125
129
|
* Get all available tools
|
|
126
130
|
*/
|
|
127
|
-
getAllTools: () => (import("./file").ReadFileTool | import("./file").WriteFileTool | import("./file").EditTool | import("./file").ListDirectoryTool | import("./file").ReadManyFilesTool | import("./actionBlock").ListActionBlocksTool | import("./actionBlock").GetActionBlockDetailTool | import("./actionBlock").StartActionBlockTool | import("./actionPlan").GetAllActionPlansTool | import("./actionPlan").CreateActionPlanTool | import("./actionPlan").AddTaskToActionPlanTool | import("./terminal").ExecuteCommandTool | import("./thread").ThreadCreateTool | import("./thread").ThreadCreateStartTool | import("./thread").ThreadCreateBackgroundTool | import("./thread").ThreadListTool | import("./thread").ThreadGetTool | import("./thread").ThreadStartTool | import("./thread").ThreadUpdateTool | import("./thread").ThreadDeleteTool | import("./thread").ThreadGetMessagesTool | import("./thread").ThreadUpdateStatusTool | import("./orchestrator").OrchestratorListTool | import("./orchestrator").OrchestratorGetTool | import("./orchestrator").OrchestratorGetSettingsTool | import("./orchestrator").OrchestratorCreateTool | import("./orchestrator").OrchestratorUpdateTool | import("./orchestrator").OrchestratorUpdateSettingsTool | import("./orchestrator").OrchestratorDeleteTool | import("./orchestrator").OrchestratorUpdateStatusTool | import("./planning").PlanGetAllTool | import("./planning").PlanGetDetailTool | import("./planning").PlanCreateTool | import("./planning").PlanUpdateTool | import("./planning").PlanAddTaskTool | import("./planning").PlanStartTaskTool | import("./planning").RoadmapGetTool | import("./planning").RoadmapGetPhasesTool | import("./planning").RoadmapCreatePhaseTool | import("./planning").RoadmapUpdatePhaseTool | import("./planning").RoadmapDeletePhaseTool | import("./planning").RoadmapGetFeaturesTool | import("./planning").RoadmapCreateFeatureTool | import("./planning").RoadmapUpdateFeatureTool | import("./planning").RoadmapGetIdeasTool | import("./planning").RoadmapCreateIdeaTool | import("./job").JobCreateTool | import("./job").JobGetTool | import("./job").JobUpdateTool | import("./job").JobDeleteTool | import("./job").JobListTool | import("./job").JobGroupCreateTool | import("./job").JobAddDependencyTool | import("./job").JobRemoveDependencyTool | import("./job").JobGetReadyTool | import("./job").JobGetBlockedTool | import("./job").JobLockTool | import("./job").JobUnlockTool | import("./job").JobBidAddTool | import("./codebaseSearch").CodebaseSearchTool | import("./codebaseSearch").CodebaseSearchMcpToolTool | import("./requirementPlan").RequirementPlanCreateTool | import("./requirementPlan").RequirementPlanGetTool | import("./requirementPlan").RequirementPlanUpdateTool | import("./requirementPlan").RequirementPlanListTool | import("./requirementPlan").RequirementPlanAddSectionTool | import("./requirementPlan").RequirementPlanUpdateSectionTool | import("./requirementPlan").RequirementPlanRemoveSectionTool | import("./requirementPlan").RequirementPlanReorderSectionsTool | import("./requirementPlan").RequirementPlanReviewTool | import("./completion").AttemptCompletionTool)[];
|
|
131
|
+
getAllTools: () => (ToolSearchTool | import("./file").ReadFileTool | import("./file").WriteFileTool | import("./file").EditTool | import("./file").ListDirectoryTool | import("./file").ReadManyFilesTool | import("./actionBlock").ListActionBlocksTool | import("./actionBlock").GetActionBlockDetailTool | import("./actionBlock").StartActionBlockTool | import("./actionPlan").GetAllActionPlansTool | import("./actionPlan").CreateActionPlanTool | import("./actionPlan").AddTaskToActionPlanTool | import("./environment").EnvironmentListTool | import("./environment").EnvironmentGetTool | import("./environment").EnvironmentCreateTool | import("./environment").EnvironmentUpdateTool | import("./environment").EnvironmentDeleteTool | import("./environment").EnvironmentStartTool | import("./environment").EnvironmentStopTool | import("./environment").EnvironmentRestartTool | import("./environment").EnvironmentStatusTool | import("./environment").EnvironmentGetLocalProvidersTool | import("./environment").EnvironmentGetRunningProvidersTool | import("./environment").EnvironmentStatisticsTool | import("./environment").EnvironmentSendMessageTool | import("./agentEventQueue").EventQueueAddEventTool | import("./agentEventQueue").EventQueueSendMessageTool | import("./agentEventQueue").EventQueueGetStatsTool | import("./agentEventQueue").EventQueueGetPendingTool | import("./agentEventQueue").EventQueueWaitNextTool | import("./agentEventQueue").EventQueueAcknowledgeTool | import("./terminal").ExecuteCommandTool | import("./thread").ThreadCreateTool | import("./thread").ThreadCreateStartTool | import("./thread").ThreadCreateBackgroundTool | import("./thread").ThreadListTool | import("./thread").ThreadGetTool | import("./thread").ThreadStartTool | import("./thread").ThreadUpdateTool | import("./thread").ThreadDeleteTool | import("./thread").ThreadGetMessagesTool | import("./thread").ThreadUpdateStatusTool | import("./orchestrator").OrchestratorListTool | import("./orchestrator").OrchestratorGetTool | import("./orchestrator").OrchestratorGetSettingsTool | import("./orchestrator").OrchestratorCreateTool | import("./orchestrator").OrchestratorUpdateTool | import("./orchestrator").OrchestratorUpdateSettingsTool | import("./orchestrator").OrchestratorDeleteTool | import("./orchestrator").OrchestratorUpdateStatusTool | import("./planning").PlanGetAllTool | import("./planning").PlanGetDetailTool | import("./planning").PlanCreateTool | import("./planning").PlanUpdateTool | import("./planning").PlanAddTaskTool | import("./planning").PlanStartTaskTool | import("./planning").RoadmapGetTool | import("./planning").RoadmapGetPhasesTool | import("./planning").RoadmapCreatePhaseTool | import("./planning").RoadmapUpdatePhaseTool | import("./planning").RoadmapDeletePhaseTool | import("./planning").RoadmapGetFeaturesTool | import("./planning").RoadmapCreateFeatureTool | import("./planning").RoadmapUpdateFeatureTool | import("./planning").RoadmapGetIdeasTool | import("./planning").RoadmapCreateIdeaTool | import("./job").JobCreateTool | import("./job").JobGetTool | import("./job").JobUpdateTool | import("./job").JobDeleteTool | import("./job").JobListTool | import("./job").JobGroupCreateTool | import("./job").JobAddDependencyTool | import("./job").JobRemoveDependencyTool | import("./job").JobGetReadyTool | import("./job").JobGetBlockedTool | import("./job").JobLockTool | import("./job").JobUnlockTool | import("./job").JobBidAddTool | import("./codebaseSearch").CodebaseSearchTool | import("./codebaseSearch").CodebaseSearchMcpToolTool | import("./requirementPlan").RequirementPlanCreateTool | import("./requirementPlan").RequirementPlanGetTool | import("./requirementPlan").RequirementPlanUpdateTool | import("./requirementPlan").RequirementPlanListTool | import("./requirementPlan").RequirementPlanAddSectionTool | import("./requirementPlan").RequirementPlanUpdateSectionTool | import("./requirementPlan").RequirementPlanRemoveSectionTool | import("./requirementPlan").RequirementPlanReorderSectionsTool | import("./requirementPlan").RequirementPlanReviewTool | import("./completion").AttemptCompletionTool)[];
|
|
128
132
|
/**
|
|
129
133
|
* Get the tool registry
|
|
130
134
|
*/
|
|
@@ -153,6 +157,14 @@ declare const tools: {
|
|
|
153
157
|
* Get tool names
|
|
154
158
|
*/
|
|
155
159
|
getToolNames: () => string[];
|
|
160
|
+
/**
|
|
161
|
+
* Search for tools matching a query using full-text search (powered by MiniSearch)
|
|
162
|
+
*/
|
|
163
|
+
searchTools: (query: string, options?: import("./tool-search").ToolSearchOptions) => import("./tool-search").ToolSearchResult[];
|
|
164
|
+
/**
|
|
165
|
+
* Get auto-complete suggestions for a partial tool query
|
|
166
|
+
*/
|
|
167
|
+
suggestTools: (query: string, options?: import("./tool-search").ToolSearchOptions) => import("./tool-search").ToolSearchResult[];
|
|
156
168
|
file: (import("./file").ReadFileTool | import("./file").WriteFileTool | import("./file").EditTool | import("./file").ListDirectoryTool | import("./file").ReadManyFilesTool)[];
|
|
157
169
|
search: (import("./search").GlobTool | import("./search").GrepTool | import("./search").SearchFilesTool | import("./search").CodebaseSearchTool | import("./search").SearchMcpToolTool | import("./search").ListCodeDefinitionNamesTool)[];
|
|
158
170
|
terminal: import("./terminal").ExecuteCommandTool[];
|
|
@@ -211,5 +223,7 @@ declare const tools: {
|
|
|
211
223
|
utils: import("./utils").UtilsEditFileAndApplyDiffTool[];
|
|
212
224
|
agentEventQueue: (import("./agentEventQueue").EventQueueAddEventTool | import("./agentEventQueue").EventQueueSendMessageTool | import("./agentEventQueue").EventQueueGetStatsTool | import("./agentEventQueue").EventQueueGetPendingTool | import("./agentEventQueue").EventQueueWaitNextTool | import("./agentEventQueue").EventQueueAcknowledgeTool)[];
|
|
213
225
|
completion: import("./completion").AttemptCompletionTool[];
|
|
226
|
+
environment: (import("./environment").EnvironmentListTool | import("./environment").EnvironmentGetTool | import("./environment").EnvironmentCreateTool | import("./environment").EnvironmentUpdateTool | import("./environment").EnvironmentDeleteTool | import("./environment").EnvironmentStartTool | import("./environment").EnvironmentStopTool | import("./environment").EnvironmentRestartTool | import("./environment").EnvironmentStatusTool | import("./environment").EnvironmentGetLocalProvidersTool | import("./environment").EnvironmentGetRunningProvidersTool | import("./environment").EnvironmentStatisticsTool | import("./environment").EnvironmentSendMessageTool)[];
|
|
227
|
+
toolSearch: ToolSearchTool[];
|
|
214
228
|
};
|
|
215
229
|
export default tools;
|