@probelabs/probe 0.6.0-rc209 → 0.6.0-rc211
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/bin/binaries/probe-v0.6.0-rc211-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc211-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc211-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc211-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc211-x86_64-unknown-linux-musl.tar.gz +0 -0
- package/build/agent/ProbeAgent.js +100 -7
- package/build/agent/bashCommandUtils.js +98 -12
- package/build/agent/bashPermissions.js +207 -1
- package/build/agent/index.js +911 -90
- package/build/agent/probeTool.js +11 -2
- package/build/agent/tools.js +8 -0
- package/build/delegate.js +11 -2
- package/build/index.js +6 -1
- package/build/search.js +2 -2
- package/build/tools/analyzeAll.js +624 -0
- package/build/tools/common.js +149 -85
- package/build/tools/langchain.js +1 -1
- package/build/tools/vercel.js +66 -4
- package/cjs/agent/ProbeAgent.cjs +9841 -6642
- package/cjs/index.cjs +9955 -6750
- package/package.json +1 -1
- package/src/agent/ProbeAgent.js +100 -7
- package/src/agent/bashCommandUtils.js +98 -12
- package/src/agent/bashPermissions.js +207 -1
- package/src/agent/probeTool.js +11 -2
- package/src/agent/tools.js +8 -0
- package/src/delegate.js +11 -2
- package/src/index.js +6 -1
- package/src/search.js +2 -2
- package/src/tools/analyzeAll.js +624 -0
- package/src/tools/common.js +149 -85
- package/src/tools/langchain.js +1 -1
- package/src/tools/vercel.js +66 -4
- package/bin/binaries/probe-v0.6.0-rc209-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc209-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc209-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc209-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc209-x86_64-unknown-linux-musl.tar.gz +0 -0
package/build/agent/probeTool.js
CHANGED
|
@@ -196,12 +196,21 @@ export function createWrappedTools(baseTools) {
|
|
|
196
196
|
// Wrap delegate tool
|
|
197
197
|
if (baseTools.delegateTool) {
|
|
198
198
|
wrappedTools.delegateToolInstance = wrapToolWithEmitter(
|
|
199
|
-
baseTools.delegateTool,
|
|
200
|
-
'delegate',
|
|
199
|
+
baseTools.delegateTool,
|
|
200
|
+
'delegate',
|
|
201
201
|
baseTools.delegateTool.execute
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
// Wrap analyze_all tool
|
|
206
|
+
if (baseTools.analyzeAllTool) {
|
|
207
|
+
wrappedTools.analyzeAllToolInstance = wrapToolWithEmitter(
|
|
208
|
+
baseTools.analyzeAllTool,
|
|
209
|
+
'analyze_all',
|
|
210
|
+
baseTools.analyzeAllTool.execute
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
205
214
|
// Wrap bash tool
|
|
206
215
|
if (baseTools.bashTool) {
|
|
207
216
|
wrappedTools.bashToolInstance = wrapToolWithEmitter(
|
package/build/agent/tools.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
queryTool,
|
|
5
5
|
extractTool,
|
|
6
6
|
delegateTool,
|
|
7
|
+
analyzeAllTool,
|
|
7
8
|
bashTool,
|
|
8
9
|
editTool,
|
|
9
10
|
createTool,
|
|
@@ -14,6 +15,7 @@ import {
|
|
|
14
15
|
querySchema,
|
|
15
16
|
extractSchema,
|
|
16
17
|
delegateSchema,
|
|
18
|
+
analyzeAllSchema,
|
|
17
19
|
bashSchema,
|
|
18
20
|
editSchema,
|
|
19
21
|
createSchema,
|
|
@@ -21,6 +23,7 @@ import {
|
|
|
21
23
|
queryToolDefinition,
|
|
22
24
|
extractToolDefinition,
|
|
23
25
|
delegateToolDefinition,
|
|
26
|
+
analyzeAllToolDefinition,
|
|
24
27
|
bashToolDefinition,
|
|
25
28
|
editToolDefinition,
|
|
26
29
|
createToolDefinition,
|
|
@@ -53,6 +56,9 @@ export function createTools(configOptions) {
|
|
|
53
56
|
if (configOptions.enableDelegate && isToolAllowed('delegate')) {
|
|
54
57
|
tools.delegateTool = delegateTool(configOptions);
|
|
55
58
|
}
|
|
59
|
+
if (isToolAllowed('analyze_all')) {
|
|
60
|
+
tools.analyzeAllTool = analyzeAllTool(configOptions);
|
|
61
|
+
}
|
|
56
62
|
|
|
57
63
|
// Add bash tool if enabled
|
|
58
64
|
if (configOptions.enableBash && isToolAllowed('bash')) {
|
|
@@ -88,6 +94,7 @@ export {
|
|
|
88
94
|
querySchema,
|
|
89
95
|
extractSchema,
|
|
90
96
|
delegateSchema,
|
|
97
|
+
analyzeAllSchema,
|
|
91
98
|
bashSchema,
|
|
92
99
|
editSchema,
|
|
93
100
|
createSchema,
|
|
@@ -96,6 +103,7 @@ export {
|
|
|
96
103
|
queryToolDefinition,
|
|
97
104
|
extractToolDefinition,
|
|
98
105
|
delegateToolDefinition,
|
|
106
|
+
analyzeAllToolDefinition,
|
|
99
107
|
bashToolDefinition,
|
|
100
108
|
editToolDefinition,
|
|
101
109
|
createToolDefinition,
|
package/build/delegate.js
CHANGED
|
@@ -186,6 +186,9 @@ const delegationManager = new DelegationManager();
|
|
|
186
186
|
* @param {boolean} [options.searchDelegate] - Use delegated search in the subagent
|
|
187
187
|
* @param {Object|string} [options.schema] - Optional JSON schema to enforce response format
|
|
188
188
|
* @param {boolean} [options.enableTasks=false] - Enable task management for the subagent (isolated instance)
|
|
189
|
+
* @param {boolean} [options.enableMcp=false] - Enable MCP tool integration (inherited from parent)
|
|
190
|
+
* @param {Object} [options.mcpConfig] - MCP configuration object (inherited from parent)
|
|
191
|
+
* @param {string} [options.mcpConfigPath] - Path to MCP configuration file (inherited from parent)
|
|
189
192
|
* @returns {Promise<string>} The response from the delegate agent
|
|
190
193
|
*/
|
|
191
194
|
export async function delegate({
|
|
@@ -208,7 +211,10 @@ export async function delegate({
|
|
|
208
211
|
disableTools = false,
|
|
209
212
|
searchDelegate = undefined,
|
|
210
213
|
schema = null,
|
|
211
|
-
enableTasks = false
|
|
214
|
+
enableTasks = false,
|
|
215
|
+
enableMcp = false,
|
|
216
|
+
mcpConfig = null,
|
|
217
|
+
mcpConfigPath = null
|
|
212
218
|
}) {
|
|
213
219
|
if (!task || typeof task !== 'string') {
|
|
214
220
|
throw new Error('Task parameter is required and must be a string');
|
|
@@ -270,7 +276,10 @@ export async function delegate({
|
|
|
270
276
|
allowedTools,
|
|
271
277
|
disableTools,
|
|
272
278
|
searchDelegate,
|
|
273
|
-
enableTasks // Inherit from parent (subagent gets isolated TaskManager)
|
|
279
|
+
enableTasks, // Inherit from parent (subagent gets isolated TaskManager)
|
|
280
|
+
enableMcp, // Inherit from parent (subagent creates own MCPXmlBridge)
|
|
281
|
+
mcpConfig, // Inherit from parent
|
|
282
|
+
mcpConfigPath // Inherit from parent
|
|
274
283
|
});
|
|
275
284
|
|
|
276
285
|
if (debug) {
|
package/build/index.js
CHANGED
|
@@ -25,12 +25,14 @@ import {
|
|
|
25
25
|
querySchema,
|
|
26
26
|
extractSchema,
|
|
27
27
|
delegateSchema,
|
|
28
|
+
analyzeAllSchema,
|
|
28
29
|
attemptCompletionSchema,
|
|
29
30
|
bashSchema,
|
|
30
31
|
searchToolDefinition,
|
|
31
32
|
queryToolDefinition,
|
|
32
33
|
extractToolDefinition,
|
|
33
34
|
delegateToolDefinition,
|
|
35
|
+
analyzeAllToolDefinition,
|
|
34
36
|
attemptCompletionToolDefinition,
|
|
35
37
|
bashToolDefinition,
|
|
36
38
|
parseXmlToolCall
|
|
@@ -41,7 +43,7 @@ import {
|
|
|
41
43
|
editToolDefinition,
|
|
42
44
|
createToolDefinition
|
|
43
45
|
} from './tools/edit.js';
|
|
44
|
-
import { searchTool, queryTool, extractTool, delegateTool } from './tools/vercel.js';
|
|
46
|
+
import { searchTool, queryTool, extractTool, delegateTool, analyzeAllTool } from './tools/vercel.js';
|
|
45
47
|
import { bashTool } from './tools/bash.js';
|
|
46
48
|
import { editTool, createTool } from './tools/edit.js';
|
|
47
49
|
import { ProbeAgent } from './agent/ProbeAgent.js';
|
|
@@ -85,6 +87,7 @@ export {
|
|
|
85
87
|
queryTool,
|
|
86
88
|
extractTool,
|
|
87
89
|
delegateTool,
|
|
90
|
+
analyzeAllTool,
|
|
88
91
|
bashTool,
|
|
89
92
|
editTool,
|
|
90
93
|
createTool,
|
|
@@ -96,6 +99,7 @@ export {
|
|
|
96
99
|
querySchema,
|
|
97
100
|
extractSchema,
|
|
98
101
|
delegateSchema,
|
|
102
|
+
analyzeAllSchema,
|
|
99
103
|
attemptCompletionSchema,
|
|
100
104
|
bashSchema,
|
|
101
105
|
editSchema,
|
|
@@ -105,6 +109,7 @@ export {
|
|
|
105
109
|
queryToolDefinition,
|
|
106
110
|
extractToolDefinition,
|
|
107
111
|
delegateToolDefinition,
|
|
112
|
+
analyzeAllToolDefinition,
|
|
108
113
|
attemptCompletionToolDefinition,
|
|
109
114
|
bashToolDefinition,
|
|
110
115
|
editToolDefinition,
|
package/build/search.js
CHANGED
|
@@ -94,8 +94,8 @@ export async function search(options) {
|
|
|
94
94
|
|
|
95
95
|
// Set default maxTokens if not provided
|
|
96
96
|
if (!options.maxTokens) {
|
|
97
|
-
options.maxTokens =
|
|
98
|
-
cliArgs.push('--max-tokens', '
|
|
97
|
+
options.maxTokens = 20000;
|
|
98
|
+
cliArgs.push('--max-tokens', '20000');
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
// Set default timeout if not provided
|