@codebolt/codeboltjs 5.0.8 → 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 +48 -5
- package/dist/core/Codebolt.js +76 -16
- package/dist/core/websocket.js +16 -18
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -3
- package/dist/modules/agentDeliberation.js +3 -1
- package/dist/modules/dynamicPanel.d.ts +106 -0
- package/dist/modules/dynamicPanel.js +122 -0
- package/dist/modules/environment.d.ts +24 -0
- package/dist/modules/environment.js +51 -0
- package/dist/modules/mcp.js +3 -0
- package/dist/tools/actionBlock/action-block-start.js +1 -4
- package/dist/tools/actionPlan/action-plan-create.js +1 -2
- package/dist/tools/completion/attempt-completion.d.ts +25 -0
- package/dist/tools/completion/attempt-completion.js +45 -0
- package/dist/tools/completion/index.d.ts +3 -0
- package/dist/tools/completion/index.js +9 -0
- 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 +20 -3
- package/dist/tools/index.js +55 -8
- package/dist/tools/job/index.d.ts +3 -1
- package/dist/tools/job/index.js +5 -1
- package/dist/tools/job/job-remove-dependency.d.ts +28 -0
- package/dist/tools/job/job-remove-dependency.js +86 -0
- package/dist/tools/registry.d.ts +21 -0
- package/dist/tools/registry.js +38 -1
- package/dist/tools/requirementPlan/requirement-plan-review.js +1 -1
- package/dist/tools/thread/thread-create-background.js +1 -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/tools/utils/schema-validator.d.ts +1 -0
- package/dist/tools/utils/schema-validator.js +13 -1
- package/dist/types/agentDeliberation.d.ts +15 -1
- package/dist/types/agentDeliberation.js +2 -0
- package/package.json +20 -19
- package/dist/modules/codeboltEvent.d.ts +0 -57
- package/dist/modules/codeboltEvent.js +0 -217
- package/dist/tools/browser/browser-action.d.ts +0 -56
- package/dist/tools/browser/browser-action.js +0 -265
- package/dist/tools/codeboltEvent/event-add-running-agent.d.ts +0 -25
- package/dist/tools/codeboltEvent/event-add-running-agent.js +0 -69
- package/dist/tools/codeboltEvent/event-check-background-agent-completion.d.ts +0 -19
- package/dist/tools/codeboltEvent/event-check-background-agent-completion.js +0 -64
- package/dist/tools/codeboltEvent/event-get-running-agent-count.d.ts +0 -19
- package/dist/tools/codeboltEvent/event-get-running-agent-count.js +0 -55
- package/dist/tools/codeboltEvent/event-on-background-agent-completion.d.ts +0 -19
- package/dist/tools/codeboltEvent/event-on-background-agent-completion.js +0 -56
- package/dist/tools/codeboltEvent/event-wait-for-external-event.d.ts +0 -19
- package/dist/tools/codeboltEvent/event-wait-for-external-event.js +0 -55
- package/dist/tools/codeboltEvent/index.d.ts +0 -19
- package/dist/tools/codeboltEvent/index.js +0 -33
- package/dist/tools/event/event-add-running-agent.d.ts +0 -32
- package/dist/tools/event/event-add-running-agent.js +0 -77
- package/dist/tools/event/event-check-agent-event.d.ts +0 -19
- package/dist/tools/event/event-check-agent-event.js +0 -63
- package/dist/tools/event/event-check-completion.d.ts +0 -19
- package/dist/tools/event/event-check-completion.js +0 -73
- package/dist/tools/event/event-check-grouped-completion.d.ts +0 -19
- package/dist/tools/event/event-check-grouped-completion.js +0 -63
- package/dist/tools/event/event-get-running-count.d.ts +0 -19
- package/dist/tools/event/event-get-running-count.js +0 -55
- package/dist/tools/event/event-on-agent-event.d.ts +0 -19
- package/dist/tools/event/event-on-agent-event.js +0 -63
- package/dist/tools/event/event-on-completion.d.ts +0 -19
- package/dist/tools/event/event-on-completion.js +0 -73
- package/dist/tools/event/event-on-grouped-completion.d.ts +0 -19
- package/dist/tools/event/event-on-grouped-completion.js +0 -63
- package/dist/tools/event/event-wait-any.d.ts +0 -19
- package/dist/tools/event/event-wait-any.js +0 -66
- package/dist/tools/event/index.d.ts +0 -25
- package/dist/tools/event/index.js +0 -48
- package/dist/tools/git/git-action.d.ts +0 -48
- package/dist/tools/git/git-action.js +0 -279
- package/dist/tools/kvStore/kv-store-create-instance.d.ts +0 -26
- package/dist/tools/kvStore/kv-store-create-instance.js +0 -79
- package/dist/tools/kvStore/kv-store-get.d.ts +0 -30
- package/dist/tools/kvStore/kv-store-get.js +0 -80
- package/dist/tools/kvStore/kv-store-set.d.ts +0 -38
- package/dist/tools/kvStore/kv-store-set.js +0 -86
- package/dist/tools/memoryIngestion/mi-create-pipeline.d.ts +0 -44
- package/dist/tools/memoryIngestion/mi-create-pipeline.js +0 -114
- package/dist/tools/memoryIngestion/mi-list.d.ts +0 -22
- package/dist/tools/memoryIngestion/mi-list.js +0 -66
- package/dist/tools/orchestration/agent-details.d.ts +0 -15
- package/dist/tools/orchestration/agent-details.js +0 -98
- package/dist/tools/orchestration/agent-find.d.ts +0 -18
- package/dist/tools/orchestration/agent-find.js +0 -125
- package/dist/tools/orchestration/agent-list.d.ts +0 -13
- package/dist/tools/orchestration/agent-list.js +0 -106
- package/dist/tools/orchestration/agent-management.d.ts +0 -44
- package/dist/tools/orchestration/agent-management.js +0 -250
- package/dist/tools/orchestration/agent-start.d.ts +0 -18
- package/dist/tools/orchestration/agent-start.js +0 -90
- package/dist/tools/orchestration/index.d.ts +0 -49
- package/dist/tools/orchestration/index.js +0 -102
- package/dist/tools/orchestration/task-assign.d.ts +0 -18
- package/dist/tools/orchestration/task-assign.js +0 -84
- package/dist/tools/orchestration/task-create.d.ts +0 -20
- package/dist/tools/orchestration/task-create.js +0 -97
- package/dist/tools/orchestration/task-delete.d.ts +0 -16
- package/dist/tools/orchestration/task-delete.js +0 -77
- package/dist/tools/orchestration/task-execute.d.ts +0 -18
- package/dist/tools/orchestration/task-execute.js +0 -84
- package/dist/tools/orchestration/task-get.d.ts +0 -16
- package/dist/tools/orchestration/task-get.js +0 -89
- package/dist/tools/orchestration/task-list.d.ts +0 -13
- package/dist/tools/orchestration/task-list.js +0 -74
- package/dist/tools/orchestration/task-management.d.ts +0 -52
- package/dist/tools/orchestration/task-management.js +0 -231
- package/dist/tools/orchestration/task-update.d.ts +0 -22
- package/dist/tools/orchestration/task-update.js +0 -96
- package/dist/tools/orchestration/thread-create-background.d.ts +0 -18
- package/dist/tools/orchestration/thread-create-background.js +0 -94
- package/dist/tools/orchestration/thread-create-start.d.ts +0 -16
- package/dist/tools/orchestration/thread-create-start.js +0 -85
- package/dist/tools/orchestration/thread-create.d.ts +0 -16
- package/dist/tools/orchestration/thread-create.js +0 -85
- package/dist/tools/orchestration/thread-delete.d.ts +0 -16
- package/dist/tools/orchestration/thread-delete.js +0 -77
- package/dist/tools/orchestration/thread-get-messages.d.ts +0 -24
- package/dist/tools/orchestration/thread-get-messages.js +0 -122
- package/dist/tools/orchestration/thread-get.d.ts +0 -16
- package/dist/tools/orchestration/thread-get.js +0 -85
- package/dist/tools/orchestration/thread-list.d.ts +0 -16
- package/dist/tools/orchestration/thread-list.js +0 -85
- package/dist/tools/orchestration/thread-start.d.ts +0 -16
- package/dist/tools/orchestration/thread-start.js +0 -82
- package/dist/tools/orchestration/thread-update-status.d.ts +0 -18
- package/dist/tools/orchestration/thread-update-status.js +0 -89
- package/dist/tools/orchestration/thread-update.d.ts +0 -18
- package/dist/tools/orchestration/thread-update.js +0 -89
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Event On Completion Tool - Waits for background agent completion
|
|
4
|
-
* Wraps the SDK's codeboltEvent.onBackgroundAgentCompletion() 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.EventOnCompletionTool = void 0;
|
|
11
|
-
const types_1 = require("../types");
|
|
12
|
-
const base_tool_1 = require("../base-tool");
|
|
13
|
-
const codeboltEvent_1 = __importDefault(require("../../modules/codeboltEvent"));
|
|
14
|
-
class EventOnCompletionInvocation extends base_tool_1.BaseToolInvocation {
|
|
15
|
-
constructor(params) {
|
|
16
|
-
super(params);
|
|
17
|
-
}
|
|
18
|
-
async execute() {
|
|
19
|
-
try {
|
|
20
|
-
const completion = await codeboltEvent_1.default.onBackgroundAgentCompletion();
|
|
21
|
-
if (completion === null) {
|
|
22
|
-
return {
|
|
23
|
-
llmContent: 'No background agent completion received.',
|
|
24
|
-
returnDisplay: 'No completion',
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
const count = Array.isArray(completion) ? completion.length : 1;
|
|
28
|
-
let llmContent = `Background agent completion received.\n\n`;
|
|
29
|
-
if (Array.isArray(completion)) {
|
|
30
|
-
llmContent += `${count} agent(s) completed:\n`;
|
|
31
|
-
for (let i = 0; i < completion.length; i++) {
|
|
32
|
-
llmContent += `\nCompletion ${i + 1}:\n`;
|
|
33
|
-
llmContent += JSON.stringify(completion[i], null, 2) + '\n';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
llmContent += JSON.stringify(completion, null, 2);
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
llmContent,
|
|
41
|
-
returnDisplay: `Received ${count} completion(s)`,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
catch (error) {
|
|
45
|
-
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
46
|
-
return {
|
|
47
|
-
llmContent: `Error waiting for background agent completion: ${errorMessage}`,
|
|
48
|
-
returnDisplay: `Error: ${errorMessage}`,
|
|
49
|
-
error: {
|
|
50
|
-
message: errorMessage,
|
|
51
|
-
type: types_1.ToolErrorType.EXECUTION_FAILED,
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Tool for waiting for background agent completion
|
|
59
|
-
*/
|
|
60
|
-
class EventOnCompletionTool extends base_tool_1.BaseDeclarativeTool {
|
|
61
|
-
constructor() {
|
|
62
|
-
super(EventOnCompletionTool.Name, 'Wait for Background Agent Completion', 'Wait for a background agent to complete. This is a blocking call that resolves when an agent completes.', types_1.Kind.Other, {
|
|
63
|
-
type: 'object',
|
|
64
|
-
properties: {},
|
|
65
|
-
required: []
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
createInvocation(params) {
|
|
69
|
-
return new EventOnCompletionInvocation(params);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.EventOnCompletionTool = EventOnCompletionTool;
|
|
73
|
-
EventOnCompletionTool.Name = 'event_on_completion';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event On Grouped Completion Tool - Waits for grouped background agent completion
|
|
3
|
-
* Wraps the SDK's codeboltEvent.onBackgroundGroupedAgentCompletion() method
|
|
4
|
-
*/
|
|
5
|
-
import type { ToolInvocation, ToolResult } from '../types';
|
|
6
|
-
import { BaseDeclarativeTool } from '../base-tool';
|
|
7
|
-
/**
|
|
8
|
-
* Parameters for the EventOnGroupedCompletion tool
|
|
9
|
-
*/
|
|
10
|
-
export interface EventOnGroupedCompletionParams {
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Tool for waiting for grouped background agent completion
|
|
14
|
-
*/
|
|
15
|
-
export declare class EventOnGroupedCompletionTool extends BaseDeclarativeTool<EventOnGroupedCompletionParams, ToolResult> {
|
|
16
|
-
static readonly Name: string;
|
|
17
|
-
constructor();
|
|
18
|
-
protected createInvocation(params: EventOnGroupedCompletionParams): ToolInvocation<EventOnGroupedCompletionParams, ToolResult>;
|
|
19
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Event On Grouped Completion Tool - Waits for grouped background agent completion
|
|
4
|
-
* Wraps the SDK's codeboltEvent.onBackgroundGroupedAgentCompletion() 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.EventOnGroupedCompletionTool = void 0;
|
|
11
|
-
const types_1 = require("../types");
|
|
12
|
-
const base_tool_1 = require("../base-tool");
|
|
13
|
-
const codeboltEvent_1 = __importDefault(require("../../modules/codeboltEvent"));
|
|
14
|
-
class EventOnGroupedCompletionInvocation extends base_tool_1.BaseToolInvocation {
|
|
15
|
-
constructor(params) {
|
|
16
|
-
super(params);
|
|
17
|
-
}
|
|
18
|
-
async execute() {
|
|
19
|
-
try {
|
|
20
|
-
const completion = await codeboltEvent_1.default.onBackgroundGroupedAgentCompletion();
|
|
21
|
-
if (completion === null) {
|
|
22
|
-
return {
|
|
23
|
-
llmContent: 'No grouped background agent completion received.',
|
|
24
|
-
returnDisplay: 'No grouped completion',
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
let llmContent = `Grouped background agent completion received.\n\n`;
|
|
28
|
-
llmContent += JSON.stringify(completion, null, 2);
|
|
29
|
-
return {
|
|
30
|
-
llmContent,
|
|
31
|
-
returnDisplay: 'Received grouped completion',
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
36
|
-
return {
|
|
37
|
-
llmContent: `Error waiting for grouped background agent completion: ${errorMessage}`,
|
|
38
|
-
returnDisplay: `Error: ${errorMessage}`,
|
|
39
|
-
error: {
|
|
40
|
-
message: errorMessage,
|
|
41
|
-
type: types_1.ToolErrorType.EXECUTION_FAILED,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Tool for waiting for grouped background agent completion
|
|
49
|
-
*/
|
|
50
|
-
class EventOnGroupedCompletionTool extends base_tool_1.BaseDeclarativeTool {
|
|
51
|
-
constructor() {
|
|
52
|
-
super(EventOnGroupedCompletionTool.Name, 'Wait for Grouped Agent Completion', 'Wait for a grouped background agent to complete. This is a blocking call that resolves when a grouped agent completes.', types_1.Kind.Other, {
|
|
53
|
-
type: 'object',
|
|
54
|
-
properties: {},
|
|
55
|
-
required: []
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
createInvocation(params) {
|
|
59
|
-
return new EventOnGroupedCompletionInvocation(params);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.EventOnGroupedCompletionTool = EventOnGroupedCompletionTool;
|
|
63
|
-
EventOnGroupedCompletionTool.Name = 'event_on_grouped_completion';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event Wait Any Tool - Waits for any external event
|
|
3
|
-
* Wraps the SDK's codeboltEvent.waitForAnyExternalEvent() method
|
|
4
|
-
*/
|
|
5
|
-
import type { ToolInvocation, ToolResult } from '../types';
|
|
6
|
-
import { BaseDeclarativeTool } from '../base-tool';
|
|
7
|
-
/**
|
|
8
|
-
* Parameters for the EventWaitAny tool
|
|
9
|
-
*/
|
|
10
|
-
export interface EventWaitAnyParams {
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Tool for waiting for any external event
|
|
14
|
-
*/
|
|
15
|
-
export declare class EventWaitAnyTool extends BaseDeclarativeTool<EventWaitAnyParams, ToolResult> {
|
|
16
|
-
static readonly Name: string;
|
|
17
|
-
constructor();
|
|
18
|
-
protected createInvocation(params: EventWaitAnyParams): ToolInvocation<EventWaitAnyParams, ToolResult>;
|
|
19
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Event Wait Any Tool - Waits for any external event
|
|
4
|
-
* Wraps the SDK's codeboltEvent.waitForAnyExternalEvent() 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.EventWaitAnyTool = void 0;
|
|
11
|
-
const types_1 = require("../types");
|
|
12
|
-
const base_tool_1 = require("../base-tool");
|
|
13
|
-
const codeboltEvent_1 = __importDefault(require("../../modules/codeboltEvent"));
|
|
14
|
-
class EventWaitAnyInvocation extends base_tool_1.BaseToolInvocation {
|
|
15
|
-
constructor(params) {
|
|
16
|
-
super(params);
|
|
17
|
-
}
|
|
18
|
-
async execute() {
|
|
19
|
-
try {
|
|
20
|
-
const result = await codeboltEvent_1.default.waitForAnyExternalEvent();
|
|
21
|
-
if (!result) {
|
|
22
|
-
return {
|
|
23
|
-
llmContent: 'No external event received.',
|
|
24
|
-
returnDisplay: 'No event',
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
const eventType = result.type;
|
|
28
|
-
const eventData = result.data;
|
|
29
|
-
let llmContent = `External event received.\n`;
|
|
30
|
-
llmContent += `Type: ${eventType}\n\n`;
|
|
31
|
-
llmContent += `Data:\n${JSON.stringify(eventData, null, 2)}`;
|
|
32
|
-
return {
|
|
33
|
-
llmContent,
|
|
34
|
-
returnDisplay: `Received: ${eventType}`,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
39
|
-
return {
|
|
40
|
-
llmContent: `Error waiting for external event: ${errorMessage}`,
|
|
41
|
-
returnDisplay: `Error: ${errorMessage}`,
|
|
42
|
-
error: {
|
|
43
|
-
message: errorMessage,
|
|
44
|
-
type: types_1.ToolErrorType.EXECUTION_FAILED,
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Tool for waiting for any external event
|
|
52
|
-
*/
|
|
53
|
-
class EventWaitAnyTool extends base_tool_1.BaseDeclarativeTool {
|
|
54
|
-
constructor() {
|
|
55
|
-
super(EventWaitAnyTool.Name, 'Wait for Any External Event', 'Wait for any external event (Background Completion, Group Completion, or Agent Event). This is a blocking call that resolves when any of these events occur.', types_1.Kind.Other, {
|
|
56
|
-
type: 'object',
|
|
57
|
-
properties: {},
|
|
58
|
-
required: []
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
createInvocation(params) {
|
|
62
|
-
return new EventWaitAnyInvocation(params);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.EventWaitAnyTool = EventWaitAnyTool;
|
|
66
|
-
EventWaitAnyTool.Name = 'event_wait_any';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event tools
|
|
3
|
-
*/
|
|
4
|
-
export { EventAddRunningAgentTool, type EventAddRunningAgentParams } from './event-add-running-agent';
|
|
5
|
-
export { EventGetRunningCountTool, type EventGetRunningCountParams } from './event-get-running-count';
|
|
6
|
-
export { EventCheckCompletionTool, type EventCheckCompletionParams } from './event-check-completion';
|
|
7
|
-
export { EventOnCompletionTool, type EventOnCompletionParams } from './event-on-completion';
|
|
8
|
-
export { EventCheckGroupedCompletionTool, type EventCheckGroupedCompletionParams } from './event-check-grouped-completion';
|
|
9
|
-
export { EventOnGroupedCompletionTool, type EventOnGroupedCompletionParams } from './event-on-grouped-completion';
|
|
10
|
-
export { EventCheckAgentEventTool, type EventCheckAgentEventParams } from './event-check-agent-event';
|
|
11
|
-
export { EventOnAgentEventTool, type EventOnAgentEventParams } from './event-on-agent-event';
|
|
12
|
-
export { EventWaitAnyTool, type EventWaitAnyParams } from './event-wait-any';
|
|
13
|
-
import { EventAddRunningAgentTool } from './event-add-running-agent';
|
|
14
|
-
import { EventGetRunningCountTool } from './event-get-running-count';
|
|
15
|
-
import { EventCheckCompletionTool } from './event-check-completion';
|
|
16
|
-
import { EventOnCompletionTool } from './event-on-completion';
|
|
17
|
-
import { EventCheckGroupedCompletionTool } from './event-check-grouped-completion';
|
|
18
|
-
import { EventOnGroupedCompletionTool } from './event-on-grouped-completion';
|
|
19
|
-
import { EventCheckAgentEventTool } from './event-check-agent-event';
|
|
20
|
-
import { EventOnAgentEventTool } from './event-on-agent-event';
|
|
21
|
-
import { EventWaitAnyTool } from './event-wait-any';
|
|
22
|
-
/**
|
|
23
|
-
* All event tools
|
|
24
|
-
*/
|
|
25
|
-
export declare const eventTools: (EventAddRunningAgentTool | EventCheckAgentEventTool | EventCheckCompletionTool | EventCheckGroupedCompletionTool | EventGetRunningCountTool | EventOnAgentEventTool | EventOnCompletionTool | EventOnGroupedCompletionTool | EventWaitAnyTool)[];
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Event tools
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.eventTools = exports.EventWaitAnyTool = exports.EventOnAgentEventTool = exports.EventCheckAgentEventTool = exports.EventOnGroupedCompletionTool = exports.EventCheckGroupedCompletionTool = exports.EventOnCompletionTool = exports.EventCheckCompletionTool = exports.EventGetRunningCountTool = exports.EventAddRunningAgentTool = void 0;
|
|
7
|
-
var event_add_running_agent_1 = require("./event-add-running-agent");
|
|
8
|
-
Object.defineProperty(exports, "EventAddRunningAgentTool", { enumerable: true, get: function () { return event_add_running_agent_1.EventAddRunningAgentTool; } });
|
|
9
|
-
var event_get_running_count_1 = require("./event-get-running-count");
|
|
10
|
-
Object.defineProperty(exports, "EventGetRunningCountTool", { enumerable: true, get: function () { return event_get_running_count_1.EventGetRunningCountTool; } });
|
|
11
|
-
var event_check_completion_1 = require("./event-check-completion");
|
|
12
|
-
Object.defineProperty(exports, "EventCheckCompletionTool", { enumerable: true, get: function () { return event_check_completion_1.EventCheckCompletionTool; } });
|
|
13
|
-
var event_on_completion_1 = require("./event-on-completion");
|
|
14
|
-
Object.defineProperty(exports, "EventOnCompletionTool", { enumerable: true, get: function () { return event_on_completion_1.EventOnCompletionTool; } });
|
|
15
|
-
var event_check_grouped_completion_1 = require("./event-check-grouped-completion");
|
|
16
|
-
Object.defineProperty(exports, "EventCheckGroupedCompletionTool", { enumerable: true, get: function () { return event_check_grouped_completion_1.EventCheckGroupedCompletionTool; } });
|
|
17
|
-
var event_on_grouped_completion_1 = require("./event-on-grouped-completion");
|
|
18
|
-
Object.defineProperty(exports, "EventOnGroupedCompletionTool", { enumerable: true, get: function () { return event_on_grouped_completion_1.EventOnGroupedCompletionTool; } });
|
|
19
|
-
var event_check_agent_event_1 = require("./event-check-agent-event");
|
|
20
|
-
Object.defineProperty(exports, "EventCheckAgentEventTool", { enumerable: true, get: function () { return event_check_agent_event_1.EventCheckAgentEventTool; } });
|
|
21
|
-
var event_on_agent_event_1 = require("./event-on-agent-event");
|
|
22
|
-
Object.defineProperty(exports, "EventOnAgentEventTool", { enumerable: true, get: function () { return event_on_agent_event_1.EventOnAgentEventTool; } });
|
|
23
|
-
var event_wait_any_1 = require("./event-wait-any");
|
|
24
|
-
Object.defineProperty(exports, "EventWaitAnyTool", { enumerable: true, get: function () { return event_wait_any_1.EventWaitAnyTool; } });
|
|
25
|
-
// Create instances for convenience
|
|
26
|
-
const event_add_running_agent_2 = require("./event-add-running-agent");
|
|
27
|
-
const event_get_running_count_2 = require("./event-get-running-count");
|
|
28
|
-
const event_check_completion_2 = require("./event-check-completion");
|
|
29
|
-
const event_on_completion_2 = require("./event-on-completion");
|
|
30
|
-
const event_check_grouped_completion_2 = require("./event-check-grouped-completion");
|
|
31
|
-
const event_on_grouped_completion_2 = require("./event-on-grouped-completion");
|
|
32
|
-
const event_check_agent_event_2 = require("./event-check-agent-event");
|
|
33
|
-
const event_on_agent_event_2 = require("./event-on-agent-event");
|
|
34
|
-
const event_wait_any_2 = require("./event-wait-any");
|
|
35
|
-
/**
|
|
36
|
-
* All event tools
|
|
37
|
-
*/
|
|
38
|
-
exports.eventTools = [
|
|
39
|
-
new event_add_running_agent_2.EventAddRunningAgentTool(),
|
|
40
|
-
new event_get_running_count_2.EventGetRunningCountTool(),
|
|
41
|
-
new event_check_completion_2.EventCheckCompletionTool(),
|
|
42
|
-
new event_on_completion_2.EventOnCompletionTool(),
|
|
43
|
-
new event_check_grouped_completion_2.EventCheckGroupedCompletionTool(),
|
|
44
|
-
new event_on_grouped_completion_2.EventOnGroupedCompletionTool(),
|
|
45
|
-
new event_check_agent_event_2.EventCheckAgentEventTool(),
|
|
46
|
-
new event_on_agent_event_2.EventOnAgentEventTool(),
|
|
47
|
-
new event_wait_any_2.EventWaitAnyTool(),
|
|
48
|
-
];
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Git Action Tool - Performs various Git operations
|
|
3
|
-
* Wraps the SDK's gitService methods
|
|
4
|
-
*/
|
|
5
|
-
import type { ToolInvocation, ToolResult } from '../types';
|
|
6
|
-
import { BaseDeclarativeTool } from '../base-tool';
|
|
7
|
-
/**
|
|
8
|
-
* Supported Git actions
|
|
9
|
-
*/
|
|
10
|
-
export type GitActionType = 'init' | 'status' | 'add' | 'commit' | 'push' | 'pull' | 'checkout' | 'branch' | 'logs' | 'diff' | 'clone';
|
|
11
|
-
/**
|
|
12
|
-
* Parameters for the GitAction tool
|
|
13
|
-
*/
|
|
14
|
-
export interface GitActionToolParams {
|
|
15
|
-
/**
|
|
16
|
-
* The Git action to perform
|
|
17
|
-
*/
|
|
18
|
-
action: GitActionType;
|
|
19
|
-
/**
|
|
20
|
-
* Path for init/logs/clone operations
|
|
21
|
-
*/
|
|
22
|
-
path?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Commit message for commit operation
|
|
25
|
-
*/
|
|
26
|
-
message?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Branch name for checkout/branch operations
|
|
29
|
-
*/
|
|
30
|
-
branch?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Commit hash for diff operation
|
|
33
|
-
*/
|
|
34
|
-
commit_hash?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Repository URL for clone operation
|
|
37
|
-
*/
|
|
38
|
-
url?: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Implementation of the GitAction tool logic
|
|
42
|
-
*/
|
|
43
|
-
export declare class GitActionTool extends BaseDeclarativeTool<GitActionToolParams, ToolResult> {
|
|
44
|
-
static readonly Name: string;
|
|
45
|
-
constructor();
|
|
46
|
-
protected validateToolParamValues(params: GitActionToolParams): string | null;
|
|
47
|
-
protected createInvocation(params: GitActionToolParams): ToolInvocation<GitActionToolParams, ToolResult>;
|
|
48
|
-
}
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Git Action Tool - Performs various Git operations
|
|
4
|
-
* Wraps the SDK's gitService methods
|
|
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.GitActionTool = void 0;
|
|
11
|
-
const types_1 = require("../types");
|
|
12
|
-
const base_tool_1 = require("../base-tool");
|
|
13
|
-
const git_1 = __importDefault(require("../../modules/git"));
|
|
14
|
-
class GitActionToolInvocation extends base_tool_1.BaseToolInvocation {
|
|
15
|
-
constructor(params) {
|
|
16
|
-
super(params);
|
|
17
|
-
}
|
|
18
|
-
async execute() {
|
|
19
|
-
var _a;
|
|
20
|
-
try {
|
|
21
|
-
const action = this.params.action;
|
|
22
|
-
let response;
|
|
23
|
-
let successMessage;
|
|
24
|
-
switch (action) {
|
|
25
|
-
case 'init':
|
|
26
|
-
if (!this.params.path) {
|
|
27
|
-
return this.createError("'path' is required for init action");
|
|
28
|
-
}
|
|
29
|
-
response = await git_1.default.init(this.params.path);
|
|
30
|
-
successMessage = `Initialized Git repository at ${this.params.path}`;
|
|
31
|
-
break;
|
|
32
|
-
case 'status':
|
|
33
|
-
response = await git_1.default.status();
|
|
34
|
-
successMessage = 'Git status retrieved';
|
|
35
|
-
break;
|
|
36
|
-
case 'add':
|
|
37
|
-
response = await git_1.default.addAll();
|
|
38
|
-
successMessage = 'Added all changes to staging';
|
|
39
|
-
break;
|
|
40
|
-
case 'commit':
|
|
41
|
-
if (!this.params.message) {
|
|
42
|
-
return this.createError("'message' is required for commit action");
|
|
43
|
-
}
|
|
44
|
-
response = await git_1.default.commit(this.params.message);
|
|
45
|
-
successMessage = `Committed with message: "${this.params.message}"`;
|
|
46
|
-
break;
|
|
47
|
-
case 'push':
|
|
48
|
-
response = await git_1.default.push();
|
|
49
|
-
successMessage = 'Pushed changes to remote';
|
|
50
|
-
break;
|
|
51
|
-
case 'pull':
|
|
52
|
-
response = await git_1.default.pull();
|
|
53
|
-
successMessage = 'Pulled changes from remote';
|
|
54
|
-
break;
|
|
55
|
-
case 'checkout':
|
|
56
|
-
if (!this.params.branch) {
|
|
57
|
-
return this.createError("'branch' is required for checkout action");
|
|
58
|
-
}
|
|
59
|
-
response = await git_1.default.checkout(this.params.branch);
|
|
60
|
-
successMessage = `Checked out branch: ${this.params.branch}`;
|
|
61
|
-
break;
|
|
62
|
-
case 'branch':
|
|
63
|
-
if (!this.params.branch) {
|
|
64
|
-
return this.createError("'branch' is required for branch action");
|
|
65
|
-
}
|
|
66
|
-
response = await git_1.default.branch(this.params.branch);
|
|
67
|
-
successMessage = `Created branch: ${this.params.branch}`;
|
|
68
|
-
break;
|
|
69
|
-
case 'logs':
|
|
70
|
-
if (!this.params.path) {
|
|
71
|
-
return this.createError("'path' is required for logs action");
|
|
72
|
-
}
|
|
73
|
-
response = await git_1.default.logs(this.params.path);
|
|
74
|
-
successMessage = 'Git logs retrieved';
|
|
75
|
-
break;
|
|
76
|
-
case 'diff':
|
|
77
|
-
if (!this.params.commit_hash) {
|
|
78
|
-
return this.createError("'commit_hash' is required for diff action");
|
|
79
|
-
}
|
|
80
|
-
response = await git_1.default.diff(this.params.commit_hash);
|
|
81
|
-
successMessage = `Diff for commit: ${this.params.commit_hash}`;
|
|
82
|
-
break;
|
|
83
|
-
case 'clone':
|
|
84
|
-
if (!this.params.url) {
|
|
85
|
-
return this.createError("'url' is required for clone action");
|
|
86
|
-
}
|
|
87
|
-
response = await git_1.default.clone(this.params.url, this.params.path);
|
|
88
|
-
successMessage = `Cloned repository from ${this.params.url}`;
|
|
89
|
-
break;
|
|
90
|
-
default:
|
|
91
|
-
return this.createError(`Unknown action: ${action}`);
|
|
92
|
-
}
|
|
93
|
-
// Check for errors
|
|
94
|
-
if (!response.success && response.success !== undefined) {
|
|
95
|
-
const errorMsg = typeof response.error === 'string'
|
|
96
|
-
? response.error
|
|
97
|
-
: ((_a = response.error) === null || _a === void 0 ? void 0 : _a.message) || 'Git operation failed';
|
|
98
|
-
return {
|
|
99
|
-
llmContent: `Git ${action} failed: ${errorMsg}`,
|
|
100
|
-
returnDisplay: `Error: ${errorMsg}`,
|
|
101
|
-
error: {
|
|
102
|
-
message: errorMsg,
|
|
103
|
-
type: types_1.ToolErrorType.GIT_EXECUTION_ERROR,
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
// Format output based on action
|
|
108
|
-
let output = successMessage;
|
|
109
|
-
if (action === 'status' && response.status) {
|
|
110
|
-
output += '\n\n' + this.formatStatus(response.status);
|
|
111
|
-
}
|
|
112
|
-
else if (action === 'logs' && response.logs) {
|
|
113
|
-
output += '\n\n' + this.formatLogs(response.logs);
|
|
114
|
-
}
|
|
115
|
-
else if (action === 'diff' && response.diff) {
|
|
116
|
-
output += '\n\n' + response.diff;
|
|
117
|
-
}
|
|
118
|
-
else if (response.message) {
|
|
119
|
-
output += '\n\n' + response.message;
|
|
120
|
-
}
|
|
121
|
-
else if (response.result) {
|
|
122
|
-
output += '\n\n' + (typeof response.result === 'string' ? response.result : JSON.stringify(response.result, null, 2));
|
|
123
|
-
}
|
|
124
|
-
return {
|
|
125
|
-
llmContent: output,
|
|
126
|
-
returnDisplay: successMessage,
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
catch (error) {
|
|
130
|
-
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
131
|
-
return {
|
|
132
|
-
llmContent: `Error executing git ${this.params.action}: ${errorMessage}`,
|
|
133
|
-
returnDisplay: `Error: ${errorMessage}`,
|
|
134
|
-
error: {
|
|
135
|
-
message: errorMessage,
|
|
136
|
-
type: types_1.ToolErrorType.EXECUTION_FAILED,
|
|
137
|
-
},
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
createError(message) {
|
|
142
|
-
return {
|
|
143
|
-
llmContent: `Error: ${message}`,
|
|
144
|
-
returnDisplay: `Error: ${message}`,
|
|
145
|
-
error: {
|
|
146
|
-
message,
|
|
147
|
-
type: types_1.ToolErrorType.INVALID_TOOL_PARAMS,
|
|
148
|
-
},
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
formatStatus(status) {
|
|
152
|
-
var _a, _b, _c;
|
|
153
|
-
if (typeof status === 'string')
|
|
154
|
-
return status;
|
|
155
|
-
let output = '';
|
|
156
|
-
if (status.current)
|
|
157
|
-
output += `Current branch: ${status.current}\n`;
|
|
158
|
-
if (status.tracking)
|
|
159
|
-
output += `Tracking: ${status.tracking}\n`;
|
|
160
|
-
if (status.files && status.files.length > 0) {
|
|
161
|
-
output += '\nChanges:\n';
|
|
162
|
-
for (const file of status.files) {
|
|
163
|
-
const path = file.path || file;
|
|
164
|
-
const index = file.index || '?';
|
|
165
|
-
const working_dir = file.working_dir || '?';
|
|
166
|
-
output += ` ${index}${working_dir} ${path}\n`;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
else if (status.modified || status.created || status.deleted) {
|
|
170
|
-
if ((_a = status.modified) === null || _a === void 0 ? void 0 : _a.length) {
|
|
171
|
-
output += '\nModified:\n';
|
|
172
|
-
status.modified.forEach((f) => output += ` M ${f}\n`);
|
|
173
|
-
}
|
|
174
|
-
if ((_b = status.created) === null || _b === void 0 ? void 0 : _b.length) {
|
|
175
|
-
output += '\nNew files:\n';
|
|
176
|
-
status.created.forEach((f) => output += ` A ${f}\n`);
|
|
177
|
-
}
|
|
178
|
-
if ((_c = status.deleted) === null || _c === void 0 ? void 0 : _c.length) {
|
|
179
|
-
output += '\nDeleted:\n';
|
|
180
|
-
status.deleted.forEach((f) => output += ` D ${f}\n`);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
output += '\nNo changes detected.';
|
|
185
|
-
}
|
|
186
|
-
return output;
|
|
187
|
-
}
|
|
188
|
-
formatLogs(logs) {
|
|
189
|
-
if (!Array.isArray(logs))
|
|
190
|
-
return String(logs);
|
|
191
|
-
return logs.slice(0, 10).map(log => {
|
|
192
|
-
const hash = (log.hash || log.commit || '').substring(0, 7);
|
|
193
|
-
const message = log.message || log.subject || '';
|
|
194
|
-
const author = log.author_name || log.author || '';
|
|
195
|
-
const date = log.date || '';
|
|
196
|
-
return `${hash} - ${message} (${author}, ${date})`;
|
|
197
|
-
}).join('\n');
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Implementation of the GitAction tool logic
|
|
202
|
-
*/
|
|
203
|
-
class GitActionTool extends base_tool_1.BaseDeclarativeTool {
|
|
204
|
-
constructor() {
|
|
205
|
-
super(GitActionTool.Name, 'GitAction', `Performs Git operations like init, status, add, commit, push, pull, checkout, branch, logs, diff, and clone. Use this for version control operations.`, types_1.Kind.Execute, {
|
|
206
|
-
properties: {
|
|
207
|
-
action: {
|
|
208
|
-
description: "The Git action to perform: 'init', 'status', 'add', 'commit', 'push', 'pull', 'checkout', 'branch', 'logs', 'diff', or 'clone'.",
|
|
209
|
-
type: 'string',
|
|
210
|
-
enum: ['init', 'status', 'add', 'commit', 'push', 'pull', 'checkout', 'branch', 'logs', 'diff', 'clone'],
|
|
211
|
-
},
|
|
212
|
-
path: {
|
|
213
|
-
description: "Path for init/logs/clone operations.",
|
|
214
|
-
type: 'string',
|
|
215
|
-
},
|
|
216
|
-
message: {
|
|
217
|
-
description: "Commit message (required for 'commit' action).",
|
|
218
|
-
type: 'string',
|
|
219
|
-
},
|
|
220
|
-
branch: {
|
|
221
|
-
description: "Branch name (required for 'checkout' and 'branch' actions).",
|
|
222
|
-
type: 'string',
|
|
223
|
-
},
|
|
224
|
-
commit_hash: {
|
|
225
|
-
description: "Commit hash (required for 'diff' action).",
|
|
226
|
-
type: 'string',
|
|
227
|
-
},
|
|
228
|
-
url: {
|
|
229
|
-
description: "Repository URL (required for 'clone' action).",
|
|
230
|
-
type: 'string',
|
|
231
|
-
},
|
|
232
|
-
},
|
|
233
|
-
required: ['action'],
|
|
234
|
-
type: 'object',
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
validateToolParamValues(params) {
|
|
238
|
-
const validActions = ['init', 'status', 'add', 'commit', 'push', 'pull', 'checkout', 'branch', 'logs', 'diff', 'clone'];
|
|
239
|
-
if (!validActions.includes(params.action)) {
|
|
240
|
-
return `Invalid action: ${params.action}. Must be one of: ${validActions.join(', ')}`;
|
|
241
|
-
}
|
|
242
|
-
// Action-specific validation
|
|
243
|
-
switch (params.action) {
|
|
244
|
-
case 'init':
|
|
245
|
-
case 'logs':
|
|
246
|
-
if (!params.path) {
|
|
247
|
-
return `'path' is required for ${params.action} action`;
|
|
248
|
-
}
|
|
249
|
-
break;
|
|
250
|
-
case 'commit':
|
|
251
|
-
if (!params.message) {
|
|
252
|
-
return "'message' is required for commit action";
|
|
253
|
-
}
|
|
254
|
-
break;
|
|
255
|
-
case 'checkout':
|
|
256
|
-
case 'branch':
|
|
257
|
-
if (!params.branch) {
|
|
258
|
-
return `'branch' is required for ${params.action} action`;
|
|
259
|
-
}
|
|
260
|
-
break;
|
|
261
|
-
case 'diff':
|
|
262
|
-
if (!params.commit_hash) {
|
|
263
|
-
return "'commit_hash' is required for diff action";
|
|
264
|
-
}
|
|
265
|
-
break;
|
|
266
|
-
case 'clone':
|
|
267
|
-
if (!params.url) {
|
|
268
|
-
return "'url' is required for clone action";
|
|
269
|
-
}
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
return null;
|
|
273
|
-
}
|
|
274
|
-
createInvocation(params) {
|
|
275
|
-
return new GitActionToolInvocation(params);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
exports.GitActionTool = GitActionTool;
|
|
279
|
-
GitActionTool.Name = 'git_action';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create KV Store Instance Tool - Creates a new key-value store instance
|
|
3
|
-
*/
|
|
4
|
-
import type { ToolInvocation, ToolResult } from '../types';
|
|
5
|
-
import { BaseDeclarativeTool } from '../base-tool';
|
|
6
|
-
/**
|
|
7
|
-
* Parameters for the CreateKVInstance tool
|
|
8
|
-
*/
|
|
9
|
-
export interface CreateKVInstanceParams {
|
|
10
|
-
/**
|
|
11
|
-
* Instance name
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* Optional description
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* One sentence explanation of why this tool is being used
|
|
20
|
-
*/
|
|
21
|
-
explanation?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare class CreateKVInstanceTool extends BaseDeclarativeTool<CreateKVInstanceParams, ToolResult> {
|
|
24
|
-
constructor();
|
|
25
|
-
createInvocation(params: CreateKVInstanceParams, invocationId: string): ToolInvocation;
|
|
26
|
-
}
|