@codebolt/codeboltjs 5.1.10 → 5.1.12
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 +1 -0
- package/dist/modules/environment.d.ts +1 -0
- package/dist/modules/environment.js +3 -0
- package/dist/modules/thread.d.ts +6 -0
- package/dist/modules/thread.js +6 -0
- package/dist/tools/environment/environment-start-agent.d.ts +23 -0
- package/dist/tools/environment/environment-start-agent.js +83 -0
- package/dist/tools/environment/index.d.ts +3 -1
- package/dist/tools/environment/index.js +5 -1
- package/dist/tools/index.d.ts +3 -3
- package/package.json +2 -2
package/dist/core/Codebolt.d.ts
CHANGED
|
@@ -925,6 +925,7 @@ declare class Codebolt {
|
|
|
925
925
|
getLocalProviders: () => Promise<any>;
|
|
926
926
|
getEnvironmentStatistics: () => Promise<any>;
|
|
927
927
|
sendMessageToEnvironment: (environmentId: string, message: any) => Promise<any>;
|
|
928
|
+
startAgentInEnvironment: (environmentId: string, task: string, agentId?: string, threadId?: string) => Promise<any>;
|
|
928
929
|
};
|
|
929
930
|
/**
|
|
930
931
|
* User message utilities for accessing current user message and context
|
|
@@ -20,5 +20,6 @@ declare const cbenvironment: {
|
|
|
20
20
|
getLocalProviders: () => Promise<any>;
|
|
21
21
|
getEnvironmentStatistics: () => Promise<any>;
|
|
22
22
|
sendMessageToEnvironment: (environmentId: string, message: any) => Promise<any>;
|
|
23
|
+
startAgentInEnvironment: (environmentId: string, task: string, agentId?: string, threadId?: string) => Promise<any>;
|
|
23
24
|
};
|
|
24
25
|
export default cbenvironment;
|
|
@@ -47,5 +47,8 @@ const cbenvironment = {
|
|
|
47
47
|
sendMessageToEnvironment: (environmentId, message) => {
|
|
48
48
|
return websocket_1.default.messageManager.sendAndWaitForResponse({ "type": "environment.sendMessageToEnvironment", "params": { id: environmentId, message } }, "sendMessageToEnvironmentResponse");
|
|
49
49
|
},
|
|
50
|
+
startAgentInEnvironment: (environmentId, task, agentId, threadId) => {
|
|
51
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({ "type": "environment.startAgentInEnvironment", "params": { environmentId, agentId, task, threadId } }, "startAgentInEnvironmentResponse");
|
|
52
|
+
},
|
|
50
53
|
};
|
|
51
54
|
exports.default = cbenvironment;
|
package/dist/modules/thread.d.ts
CHANGED
|
@@ -16,12 +16,18 @@ declare const threadService: {
|
|
|
16
16
|
/**
|
|
17
17
|
* Creates and immediately starts a new thread.
|
|
18
18
|
* @param {CreateAndStartThreadOptions} options - The thread creation and start parameters
|
|
19
|
+
* @param {boolean} [options.remoteEnv] - If true, creates a remote environment and starts the agent there. If false/undefined, runs locally.
|
|
20
|
+
* @param {Object} [options.environmentProvider] - The environment provider to use when remoteEnv is true. If not specified, the first available provider is used.
|
|
21
|
+
* @param {string} [options.environmentName] - Optional custom name for the remote environment.
|
|
19
22
|
* @returns {Promise<StartThreadResponse>} A promise that resolves with the thread start response
|
|
20
23
|
*/
|
|
21
24
|
createAndStartThread: (options: CreateAndStartThreadOptions) => Promise<StartThreadResponse>;
|
|
22
25
|
/**
|
|
23
26
|
* Creates a thread in the background and resolves when the agent starts or fails.
|
|
24
27
|
* @param {CreateAndStartThreadOptions} options - The thread creation and start parameters
|
|
28
|
+
* @param {boolean} [options.remoteEnv] - If true, creates a remote environment and starts the agent there. If false/undefined, runs locally.
|
|
29
|
+
* @param {Object} [options.environmentProvider] - The environment provider to use when remoteEnv is true.
|
|
30
|
+
* @param {string} [options.environmentName] - Optional custom name for the remote environment.
|
|
25
31
|
* @returns {Promise<ThreadAgentStartedResponse | ThreadAgentStartFailedResponse>} A promise that resolves with ThreadAgentStarted or ThreadAgentStartFailed response
|
|
26
32
|
*/
|
|
27
33
|
createThreadInBackground: (options: CreateAndStartThreadOptions) => Promise<ThreadAgentStartedResponse | ThreadAgentStartFailedResponse>;
|
package/dist/modules/thread.js
CHANGED
|
@@ -29,6 +29,9 @@ const threadService = {
|
|
|
29
29
|
/**
|
|
30
30
|
* Creates and immediately starts a new thread.
|
|
31
31
|
* @param {CreateAndStartThreadOptions} options - The thread creation and start parameters
|
|
32
|
+
* @param {boolean} [options.remoteEnv] - If true, creates a remote environment and starts the agent there. If false/undefined, runs locally.
|
|
33
|
+
* @param {Object} [options.environmentProvider] - The environment provider to use when remoteEnv is true. If not specified, the first available provider is used.
|
|
34
|
+
* @param {string} [options.environmentName] - Optional custom name for the remote environment.
|
|
32
35
|
* @returns {Promise<StartThreadResponse>} A promise that resolves with the thread start response
|
|
33
36
|
*/
|
|
34
37
|
createAndStartThread: async (options) => {
|
|
@@ -48,6 +51,9 @@ const threadService = {
|
|
|
48
51
|
/**
|
|
49
52
|
* Creates a thread in the background and resolves when the agent starts or fails.
|
|
50
53
|
* @param {CreateAndStartThreadOptions} options - The thread creation and start parameters
|
|
54
|
+
* @param {boolean} [options.remoteEnv] - If true, creates a remote environment and starts the agent there. If false/undefined, runs locally.
|
|
55
|
+
* @param {Object} [options.environmentProvider] - The environment provider to use when remoteEnv is true.
|
|
56
|
+
* @param {string} [options.environmentName] - Optional custom name for the remote environment.
|
|
51
57
|
* @returns {Promise<ThreadAgentStartedResponse | ThreadAgentStartFailedResponse>} A promise that resolves with ThreadAgentStarted or ThreadAgentStartFailed response
|
|
52
58
|
*/
|
|
53
59
|
createThreadInBackground: async (options) => {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment Start Agent Tool - Starts an agent in an environment
|
|
3
|
+
* Wraps the SDK's cbenvironment.startAgentInEnvironment() method
|
|
4
|
+
*/
|
|
5
|
+
import type { ToolInvocation, ToolResult } from '../types';
|
|
6
|
+
import { BaseDeclarativeTool } from '../base-tool';
|
|
7
|
+
export interface EnvironmentStartAgentParams {
|
|
8
|
+
/** One sentence explanation of why this tool is being used */
|
|
9
|
+
explanation?: string;
|
|
10
|
+
/** The ID of the environment to run the agent in */
|
|
11
|
+
environmentId: string;
|
|
12
|
+
/** The ID of the agent to start. If not provided, uses the default agent. */
|
|
13
|
+
agentId?: string;
|
|
14
|
+
/** The task/instruction for the agent */
|
|
15
|
+
task: string;
|
|
16
|
+
/** Optional thread ID for conversation context tracking */
|
|
17
|
+
threadId?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class EnvironmentStartAgentTool extends BaseDeclarativeTool<EnvironmentStartAgentParams, ToolResult> {
|
|
20
|
+
static readonly Name: string;
|
|
21
|
+
constructor();
|
|
22
|
+
protected createInvocation(params: EnvironmentStartAgentParams): ToolInvocation<EnvironmentStartAgentParams, ToolResult>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Environment Start Agent Tool - Starts an agent in an environment
|
|
4
|
+
* Wraps the SDK's cbenvironment.startAgentInEnvironment() 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.EnvironmentStartAgentTool = 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 EnvironmentStartAgentInvocation 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.startAgentInEnvironment(this.params.environmentId, this.params.task, (_a = this.params.agentId) !== null && _a !== void 0 ? _a : undefined, this.params.threadId);
|
|
26
|
+
if (response && response.success === false) {
|
|
27
|
+
const errorMsg = response.error || 'Failed to start agent in environment';
|
|
28
|
+
return {
|
|
29
|
+
llmContent: `Failed to start agent in environment: ${errorMsg}`,
|
|
30
|
+
returnDisplay: `Error: ${errorMsg}`,
|
|
31
|
+
error: { message: errorMsg, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
llmContent: `Agent ${this.params.agentId} started in environment ${this.params.environmentId} successfully. ${response.message || ''}`,
|
|
36
|
+
returnDisplay: `Started agent ${this.params.agentId} in environment ${this.params.environmentId}`,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
41
|
+
return {
|
|
42
|
+
llmContent: `Error starting agent in environment: ${errorMessage}`,
|
|
43
|
+
returnDisplay: `Error: ${errorMessage}`,
|
|
44
|
+
error: { message: errorMessage, type: types_1.ToolErrorType.EXECUTION_FAILED },
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
class EnvironmentStartAgentTool extends base_tool_1.BaseDeclarativeTool {
|
|
50
|
+
constructor() {
|
|
51
|
+
super(EnvironmentStartAgentTool.Name, 'EnvironmentStartAgent', 'Starts an agent in a specified environment. Sends the task to the environment provider which launches and runs the agent.', types_1.Kind.Execute, {
|
|
52
|
+
properties: {
|
|
53
|
+
explanation: {
|
|
54
|
+
description: "One sentence explanation as to why this tool is being used, and how it contributes to the goal.",
|
|
55
|
+
type: 'string',
|
|
56
|
+
},
|
|
57
|
+
environmentId: {
|
|
58
|
+
description: 'The ID of the environment to run the agent in.',
|
|
59
|
+
type: 'string',
|
|
60
|
+
},
|
|
61
|
+
agentId: {
|
|
62
|
+
description: 'The ID of the agent to start. If not provided, uses the default agent.',
|
|
63
|
+
type: 'string',
|
|
64
|
+
},
|
|
65
|
+
task: {
|
|
66
|
+
description: 'The task or instruction for the agent to execute.',
|
|
67
|
+
type: 'string',
|
|
68
|
+
},
|
|
69
|
+
threadId: {
|
|
70
|
+
description: 'Optional thread ID for tracking conversation context.',
|
|
71
|
+
type: 'string',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
required: ['environmentId', 'task'],
|
|
75
|
+
type: 'object',
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
createInvocation(params) {
|
|
79
|
+
return new EnvironmentStartAgentInvocation(params);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.EnvironmentStartAgentTool = EnvironmentStartAgentTool;
|
|
83
|
+
EnvironmentStartAgentTool.Name = 'environment_start_agent';
|
|
@@ -13,6 +13,7 @@ export { EnvironmentStatusTool, type EnvironmentStatusParams } from './environme
|
|
|
13
13
|
export { EnvironmentGetLocalProvidersTool, EnvironmentGetRunningProvidersTool, type EnvironmentGetLocalProvidersParams, type EnvironmentGetRunningProvidersParams } from './environment-providers';
|
|
14
14
|
export { EnvironmentStatisticsTool, type EnvironmentStatisticsParams } from './environment-statistics';
|
|
15
15
|
export { EnvironmentSendMessageTool, type EnvironmentSendMessageParams } from './environment-send-message';
|
|
16
|
+
export { EnvironmentStartAgentTool, type EnvironmentStartAgentParams } from './environment-start-agent';
|
|
16
17
|
import { EnvironmentListTool } from './environment-list';
|
|
17
18
|
import { EnvironmentGetTool } from './environment-get';
|
|
18
19
|
import { EnvironmentCreateTool } from './environment-create';
|
|
@@ -25,7 +26,8 @@ import { EnvironmentStatusTool } from './environment-status';
|
|
|
25
26
|
import { EnvironmentGetLocalProvidersTool, EnvironmentGetRunningProvidersTool } from './environment-providers';
|
|
26
27
|
import { EnvironmentStatisticsTool } from './environment-statistics';
|
|
27
28
|
import { EnvironmentSendMessageTool } from './environment-send-message';
|
|
29
|
+
import { EnvironmentStartAgentTool } from './environment-start-agent';
|
|
28
30
|
/**
|
|
29
31
|
* All environment tools
|
|
30
32
|
*/
|
|
31
|
-
export declare const environmentTools: (EnvironmentListTool | EnvironmentGetTool | EnvironmentCreateTool | EnvironmentUpdateTool | EnvironmentDeleteTool | EnvironmentStartTool | EnvironmentStopTool | EnvironmentRestartTool | EnvironmentStatusTool | EnvironmentGetLocalProvidersTool | EnvironmentGetRunningProvidersTool | EnvironmentStatisticsTool | EnvironmentSendMessageTool)[];
|
|
33
|
+
export declare const environmentTools: (EnvironmentListTool | EnvironmentGetTool | EnvironmentCreateTool | EnvironmentUpdateTool | EnvironmentDeleteTool | EnvironmentStartTool | EnvironmentStopTool | EnvironmentRestartTool | EnvironmentStatusTool | EnvironmentGetLocalProvidersTool | EnvironmentGetRunningProvidersTool | EnvironmentStatisticsTool | EnvironmentSendMessageTool | EnvironmentStartAgentTool)[];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Environment tools - Tools for environment management
|
|
4
4
|
*/
|
|
5
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;
|
|
6
|
+
exports.environmentTools = exports.EnvironmentStartAgentTool = 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
7
|
var environment_list_1 = require("./environment-list");
|
|
8
8
|
Object.defineProperty(exports, "EnvironmentListTool", { enumerable: true, get: function () { return environment_list_1.EnvironmentListTool; } });
|
|
9
9
|
var environment_get_1 = require("./environment-get");
|
|
@@ -29,6 +29,8 @@ var environment_statistics_1 = require("./environment-statistics");
|
|
|
29
29
|
Object.defineProperty(exports, "EnvironmentStatisticsTool", { enumerable: true, get: function () { return environment_statistics_1.EnvironmentStatisticsTool; } });
|
|
30
30
|
var environment_send_message_1 = require("./environment-send-message");
|
|
31
31
|
Object.defineProperty(exports, "EnvironmentSendMessageTool", { enumerable: true, get: function () { return environment_send_message_1.EnvironmentSendMessageTool; } });
|
|
32
|
+
var environment_start_agent_1 = require("./environment-start-agent");
|
|
33
|
+
Object.defineProperty(exports, "EnvironmentStartAgentTool", { enumerable: true, get: function () { return environment_start_agent_1.EnvironmentStartAgentTool; } });
|
|
32
34
|
const environment_list_2 = require("./environment-list");
|
|
33
35
|
const environment_get_2 = require("./environment-get");
|
|
34
36
|
const environment_create_2 = require("./environment-create");
|
|
@@ -41,6 +43,7 @@ const environment_status_2 = require("./environment-status");
|
|
|
41
43
|
const environment_providers_2 = require("./environment-providers");
|
|
42
44
|
const environment_statistics_2 = require("./environment-statistics");
|
|
43
45
|
const environment_send_message_2 = require("./environment-send-message");
|
|
46
|
+
const environment_start_agent_2 = require("./environment-start-agent");
|
|
44
47
|
/**
|
|
45
48
|
* All environment tools
|
|
46
49
|
*/
|
|
@@ -58,4 +61,5 @@ exports.environmentTools = [
|
|
|
58
61
|
new environment_providers_2.EnvironmentGetRunningProvidersTool(),
|
|
59
62
|
new environment_statistics_2.EnvironmentStatisticsTool(),
|
|
60
63
|
new environment_send_message_2.EnvironmentSendMessageTool(),
|
|
64
|
+
new environment_start_agent_2.EnvironmentStartAgentTool(),
|
|
61
65
|
];
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ import { ToolSearchTool } from './toolSearch';
|
|
|
120
120
|
/**
|
|
121
121
|
* All available tools combined
|
|
122
122
|
*/
|
|
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)[];
|
|
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("./environment").EnvironmentStartAgentTool | 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)[];
|
|
124
124
|
/**
|
|
125
125
|
* Tools module providing LLM-ready tool definitions
|
|
126
126
|
*/
|
|
@@ -128,7 +128,7 @@ declare const tools: {
|
|
|
128
128
|
/**
|
|
129
129
|
* Get all available tools
|
|
130
130
|
*/
|
|
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)[];
|
|
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("./environment").EnvironmentStartAgentTool | 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)[];
|
|
132
132
|
/**
|
|
133
133
|
* Get the tool registry
|
|
134
134
|
*/
|
|
@@ -223,7 +223,7 @@ declare const tools: {
|
|
|
223
223
|
utils: import("./utils").UtilsEditFileAndApplyDiffTool[];
|
|
224
224
|
agentEventQueue: (import("./agentEventQueue").EventQueueAddEventTool | import("./agentEventQueue").EventQueueSendMessageTool | import("./agentEventQueue").EventQueueGetStatsTool | import("./agentEventQueue").EventQueueGetPendingTool | import("./agentEventQueue").EventQueueWaitNextTool | import("./agentEventQueue").EventQueueAcknowledgeTool)[];
|
|
225
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)[];
|
|
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 | import("./environment").EnvironmentStartAgentTool)[];
|
|
227
227
|
toolSearch: ToolSearchTool[];
|
|
228
228
|
};
|
|
229
229
|
export default tools;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codebolt/codeboltjs",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@codebolt/types": "5.1.
|
|
41
|
+
"@codebolt/types": "5.1.11",
|
|
42
42
|
"@types/uuid": "^10.0.0",
|
|
43
43
|
"buffer": "^6.0.3",
|
|
44
44
|
"execa": "^9.5.2",
|