@push.rocks/smartagent 1.8.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_ts/00_commitinfo_data.js +3 -3
- package/dist_ts/index.d.ts +8 -14
- package/dist_ts/index.js +8 -24
- package/dist_ts/plugins.d.ts +8 -9
- package/dist_ts/plugins.js +10 -12
- package/dist_ts/smartagent.classes.agent.d.ts +2 -0
- package/dist_ts/smartagent.classes.agent.js +173 -0
- package/dist_ts/smartagent.classes.toolregistry.d.ts +7 -70
- package/dist_ts/smartagent.classes.toolregistry.js +11 -155
- package/dist_ts/smartagent.interfaces.d.ts +47 -283
- package/dist_ts/smartagent.interfaces.js +6 -7
- package/dist_ts/smartagent.utils.truncation.d.ts +10 -0
- package/dist_ts/smartagent.utils.truncation.js +26 -0
- package/dist_ts_compaction/index.d.ts +1 -0
- package/dist_ts_compaction/index.js +2 -0
- package/dist_ts_compaction/plugins.d.ts +4 -0
- package/dist_ts_compaction/plugins.js +3 -0
- package/dist_ts_compaction/smartagent.compaction.d.ts +10 -0
- package/dist_ts_compaction/smartagent.compaction.js +46 -0
- package/dist_ts_tools/index.d.ts +8 -0
- package/dist_ts_tools/index.js +6 -0
- package/dist_ts_tools/plugins.d.ts +15 -0
- package/dist_ts_tools/plugins.js +19 -0
- package/dist_ts_tools/tool.filesystem.d.ts +6 -0
- package/dist_ts_tools/tool.filesystem.js +102 -0
- package/dist_ts_tools/tool.http.d.ts +2 -0
- package/dist_ts_tools/tool.http.js +65 -0
- package/dist_ts_tools/tool.json.d.ts +2 -0
- package/dist_ts_tools/tool.json.js +47 -0
- package/dist_ts_tools/tool.shell.d.ts +8 -0
- package/dist_ts_tools/tool.shell.js +40 -0
- package/npmextra.json +1 -1
- package/package.json +30 -18
- package/readme.hints.md +38 -84
- package/readme.md +254 -682
- package/ts/00_commitinfo_data.ts +2 -2
- package/ts/index.ts +10 -37
- package/ts/plugins.ts +22 -21
- package/ts/smartagent.classes.agent.ts +198 -0
- package/ts/smartagent.classes.toolregistry.ts +11 -179
- package/ts/smartagent.interfaces.ts +51 -363
- package/ts/smartagent.utils.truncation.ts +39 -0
- package/ts_compaction/index.ts +1 -0
- package/ts_compaction/plugins.ts +6 -0
- package/ts_compaction/smartagent.compaction.ts +51 -0
- package/ts_tools/index.ts +8 -0
- package/ts_tools/plugins.ts +30 -0
- package/ts_tools/tool.filesystem.ts +131 -0
- package/ts_tools/tool.http.ts +78 -0
- package/ts_tools/tool.json.ts +53 -0
- package/ts_tools/tool.shell.ts +62 -0
- package/dist_ts/smartagent.classes.driveragent.d.ts +0 -134
- package/dist_ts/smartagent.classes.driveragent.js +0 -671
- package/dist_ts/smartagent.classes.dualagent.d.ts +0 -93
- package/dist_ts/smartagent.classes.dualagent.js +0 -614
- package/dist_ts/smartagent.classes.guardianagent.d.ts +0 -46
- package/dist_ts/smartagent.classes.guardianagent.js +0 -201
- package/dist_ts/smartagent.tools.base.d.ts +0 -52
- package/dist_ts/smartagent.tools.base.js +0 -42
- package/dist_ts/smartagent.tools.browser.d.ts +0 -17
- package/dist_ts/smartagent.tools.browser.js +0 -229
- package/dist_ts/smartagent.tools.deno.d.ts +0 -21
- package/dist_ts/smartagent.tools.deno.js +0 -191
- package/dist_ts/smartagent.tools.expert.d.ts +0 -27
- package/dist_ts/smartagent.tools.expert.js +0 -126
- package/dist_ts/smartagent.tools.filesystem.d.ts +0 -40
- package/dist_ts/smartagent.tools.filesystem.js +0 -801
- package/dist_ts/smartagent.tools.http.d.ts +0 -16
- package/dist_ts/smartagent.tools.http.js +0 -264
- package/dist_ts/smartagent.tools.json.d.ts +0 -24
- package/dist_ts/smartagent.tools.json.js +0 -202
- package/dist_ts/smartagent.tools.search.d.ts +0 -29
- package/dist_ts/smartagent.tools.search.js +0 -215
- package/dist_ts/smartagent.tools.shell.d.ts +0 -17
- package/dist_ts/smartagent.tools.shell.js +0 -202
- package/ts/smartagent.classes.driveragent.ts +0 -775
- package/ts/smartagent.classes.dualagent.ts +0 -692
- package/ts/smartagent.classes.guardianagent.ts +0 -241
- package/ts/smartagent.tools.base.ts +0 -83
- package/ts/smartagent.tools.browser.ts +0 -253
- package/ts/smartagent.tools.deno.ts +0 -230
- package/ts/smartagent.tools.expert.ts +0 -144
- package/ts/smartagent.tools.filesystem.ts +0 -885
- package/ts/smartagent.tools.http.ts +0 -283
- package/ts/smartagent.tools.json.ts +0 -224
- package/ts/smartagent.tools.search.ts +0 -237
- package/ts/smartagent.tools.shell.ts +0 -230
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import * as interfaces from './smartagent.interfaces.js';
|
|
2
|
-
import { BaseToolWrapper } from './smartagent.tools.base.js';
|
|
3
|
-
import { ToolRegistry } from './smartagent.classes.toolregistry.js';
|
|
4
|
-
/**
|
|
5
|
-
* DualAgentOrchestrator - Coordinates Driver and Guardian agents
|
|
6
|
-
* Manages the complete lifecycle of task execution with tool approval
|
|
7
|
-
*/
|
|
8
|
-
export declare class DualAgentOrchestrator {
|
|
9
|
-
private options;
|
|
10
|
-
private smartai;
|
|
11
|
-
private driverProvider;
|
|
12
|
-
private guardianProvider;
|
|
13
|
-
private driver;
|
|
14
|
-
private guardian;
|
|
15
|
-
private registry;
|
|
16
|
-
private isRunning;
|
|
17
|
-
private conversationHistory;
|
|
18
|
-
private ownsSmartAi;
|
|
19
|
-
constructor(options: interfaces.IDualAgentOptions);
|
|
20
|
-
/**
|
|
21
|
-
* Get provider by name
|
|
22
|
-
*/
|
|
23
|
-
private getProviderByName;
|
|
24
|
-
/**
|
|
25
|
-
* Emit a progress event if callback is configured
|
|
26
|
-
*/
|
|
27
|
-
private emitProgress;
|
|
28
|
-
/**
|
|
29
|
-
* Format a progress event into a log level and message
|
|
30
|
-
*/
|
|
31
|
-
private formatProgressEvent;
|
|
32
|
-
/**
|
|
33
|
-
* Register a custom tool with optional visibility settings
|
|
34
|
-
*/
|
|
35
|
-
registerTool(tool: BaseToolWrapper, options?: interfaces.IToolRegistrationOptions): void;
|
|
36
|
-
/**
|
|
37
|
-
* Register an expert (subagent) as a tool
|
|
38
|
-
*/
|
|
39
|
-
registerExpert(config: interfaces.IExpertConfig): void;
|
|
40
|
-
/**
|
|
41
|
-
* Enable tool search functionality
|
|
42
|
-
* This adds a 'tools' tool that allows the Driver to discover and activate on-demand tools
|
|
43
|
-
*/
|
|
44
|
-
enableToolSearch(): void;
|
|
45
|
-
/**
|
|
46
|
-
* Register all standard tools
|
|
47
|
-
*/
|
|
48
|
-
registerStandardTools(): void;
|
|
49
|
-
/**
|
|
50
|
-
* Register a scoped filesystem tool that can only access files within the specified directory
|
|
51
|
-
* @param basePath The directory to scope filesystem operations to
|
|
52
|
-
* @param excludePatterns Optional glob patterns to exclude from listings (e.g., ['.nogit/**', 'node_modules/**'])
|
|
53
|
-
*/
|
|
54
|
-
registerScopedFilesystemTool(basePath: string, excludePatterns?: string[]): void;
|
|
55
|
-
/**
|
|
56
|
-
* Initialize all tools (eager loading)
|
|
57
|
-
*/
|
|
58
|
-
start(): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* Cleanup all tools
|
|
61
|
-
*/
|
|
62
|
-
stop(): Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Run a task through the dual-agent system
|
|
65
|
-
* @param task The task description
|
|
66
|
-
* @param options Optional task run options (e.g., images for vision tasks)
|
|
67
|
-
*/
|
|
68
|
-
run(task: string, options?: interfaces.ITaskRunOptions): Promise<interfaces.IDualAgentRunResult>;
|
|
69
|
-
/**
|
|
70
|
-
* Continue an existing task with user input
|
|
71
|
-
*/
|
|
72
|
-
continueTask(userInput: string): Promise<interfaces.IDualAgentRunResult>;
|
|
73
|
-
/**
|
|
74
|
-
* Get the conversation history
|
|
75
|
-
*/
|
|
76
|
-
getHistory(): interfaces.IAgentMessage[];
|
|
77
|
-
/**
|
|
78
|
-
* Update the guardian policy
|
|
79
|
-
*/
|
|
80
|
-
setGuardianPolicy(policyPrompt: string): void;
|
|
81
|
-
/**
|
|
82
|
-
* Check if orchestrator is running
|
|
83
|
-
*/
|
|
84
|
-
isActive(): boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Get registered tool names
|
|
87
|
-
*/
|
|
88
|
-
getToolNames(): string[];
|
|
89
|
-
/**
|
|
90
|
-
* Get the tool registry for advanced operations
|
|
91
|
-
*/
|
|
92
|
-
getRegistry(): ToolRegistry;
|
|
93
|
-
}
|