@probelabs/probe 0.6.0-rc305 → 0.6.0-rc306
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-rc305-aarch64-apple-darwin.tar.gz → probe-v0.6.0-rc306-aarch64-apple-darwin.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc305-aarch64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc306-aarch64-unknown-linux-musl.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc305-x86_64-apple-darwin.tar.gz → probe-v0.6.0-rc306-x86_64-apple-darwin.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc305-x86_64-pc-windows-msvc.zip → probe-v0.6.0-rc306-x86_64-pc-windows-msvc.zip} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc305-x86_64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc306-x86_64-unknown-linux-musl.tar.gz} +0 -0
- package/build/agent/ProbeAgent.js +12 -0
- package/build/delegate.js +6 -2
- package/build/tools/vercel.js +4 -1
- package/cjs/agent/ProbeAgent.cjs +29 -2
- package/cjs/index.cjs +29 -2
- package/package.json +1 -1
- package/src/agent/ProbeAgent.js +12 -0
- package/src/delegate.js +6 -2
- package/src/tools/vercel.js +4 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -882,6 +882,18 @@ export class ProbeAgent {
|
|
|
882
882
|
outputBuffer: this._outputBuffer,
|
|
883
883
|
concurrencyLimiter: this.concurrencyLimiter, // Global AI concurrency limiter
|
|
884
884
|
isToolAllowed,
|
|
885
|
+
// MCP config for delegate subagents — these are set in constructor before tools init,
|
|
886
|
+
// so they're available here. The delegate tool closure needs them to pass to subagents
|
|
887
|
+
// so they can create their own MCPXmlBridge instances.
|
|
888
|
+
enableMcp: this.enableMcp,
|
|
889
|
+
mcpConfig: this.mcpConfig,
|
|
890
|
+
mcpConfigPath: this.mcpConfigPath,
|
|
891
|
+
// Pass parent's prompt settings so delegate subagents inherit the same persona/capabilities.
|
|
892
|
+
// Without promptType, delegate() defaulted to 'code-researcher' which doesn't exist,
|
|
893
|
+
// causing fallback to the read-only 'code-explorer' prompt.
|
|
894
|
+
promptType: this.promptType,
|
|
895
|
+
customPrompt: this.customPrompt,
|
|
896
|
+
completionPrompt: this.completionPrompt,
|
|
885
897
|
// Lazy MCP getters — MCP is initialized after tools are created, so we use
|
|
886
898
|
// getter functions that resolve at call-time to get the current MCP state
|
|
887
899
|
getMcpBridge: () => this.mcpBridge,
|
package/build/delegate.js
CHANGED
|
@@ -387,7 +387,9 @@ export async function delegate({
|
|
|
387
387
|
bashConfig = null,
|
|
388
388
|
allowEdit = false,
|
|
389
389
|
architectureFileName = null,
|
|
390
|
-
promptType =
|
|
390
|
+
promptType = undefined,
|
|
391
|
+
customPrompt = null,
|
|
392
|
+
completionPrompt = null,
|
|
391
393
|
allowedTools = null,
|
|
392
394
|
disableTools = false,
|
|
393
395
|
searchDelegate = undefined,
|
|
@@ -474,7 +476,9 @@ export async function delegate({
|
|
|
474
476
|
// Tasks do not propagate back to the parent - each subagent has its own scope.
|
|
475
477
|
const subagent = new ProbeAgent({
|
|
476
478
|
sessionId,
|
|
477
|
-
promptType, //
|
|
479
|
+
promptType, // Inherit from parent (or use parent's default)
|
|
480
|
+
customPrompt, // Inherit custom system prompt from parent
|
|
481
|
+
completionPrompt, // Inherit completion prompt from parent
|
|
478
482
|
enableDelegate: false, // Explicitly disable delegation to prevent recursion
|
|
479
483
|
disableMermaidValidation: true, // Faster processing
|
|
480
484
|
disableJsonValidation: true, // Simpler responses
|
package/build/tools/vercel.js
CHANGED
|
@@ -1135,7 +1135,7 @@ export const extractTool = (options = {}) => {
|
|
|
1135
1135
|
* @returns {Object} Configured delegate tool
|
|
1136
1136
|
*/
|
|
1137
1137
|
export const delegateTool = (options = {}) => {
|
|
1138
|
-
const { debug = false, timeout = 300, cwd, allowedFolders, workspaceRoot, enableBash = false, bashConfig, allowEdit = false, architectureFileName, enableMcp = false, mcpConfig = null, mcpConfigPath = null, delegationManager = null,
|
|
1138
|
+
const { debug = false, timeout = 300, cwd, allowedFolders, workspaceRoot, enableBash = false, bashConfig, allowEdit = false, architectureFileName, enableMcp = false, mcpConfig = null, mcpConfigPath = null, promptType: parentPromptType, customPrompt: parentCustomPrompt = null, completionPrompt: parentCompletionPrompt = null, delegationManager = null,
|
|
1139
1139
|
// Timeout settings inherited from parent agent
|
|
1140
1140
|
timeoutBehavior, maxOperationTimeout, requestTimeout, gracefulTimeoutBonusSteps,
|
|
1141
1141
|
negotiatedTimeoutBudget, negotiatedTimeoutMaxRequests, negotiatedTimeoutMaxPerRequest,
|
|
@@ -1257,6 +1257,9 @@ export const delegateTool = (options = {}) => {
|
|
|
1257
1257
|
allowEdit,
|
|
1258
1258
|
bashConfig,
|
|
1259
1259
|
architectureFileName,
|
|
1260
|
+
promptType: parentPromptType, // Inherit parent's prompt type
|
|
1261
|
+
customPrompt: parentCustomPrompt, // Inherit parent's custom system prompt
|
|
1262
|
+
completionPrompt: parentCompletionPrompt, // Inherit parent's completion prompt
|
|
1260
1263
|
searchDelegate,
|
|
1261
1264
|
enableMcp,
|
|
1262
1265
|
mcpConfig,
|
package/cjs/agent/ProbeAgent.cjs
CHANGED
|
@@ -26757,7 +26757,9 @@ async function delegate({
|
|
|
26757
26757
|
bashConfig = null,
|
|
26758
26758
|
allowEdit = false,
|
|
26759
26759
|
architectureFileName = null,
|
|
26760
|
-
promptType =
|
|
26760
|
+
promptType = void 0,
|
|
26761
|
+
customPrompt = null,
|
|
26762
|
+
completionPrompt = null,
|
|
26761
26763
|
allowedTools = null,
|
|
26762
26764
|
disableTools = false,
|
|
26763
26765
|
searchDelegate = void 0,
|
|
@@ -26823,7 +26825,11 @@ async function delegate({
|
|
|
26823
26825
|
const subagent = new ProbeAgent({
|
|
26824
26826
|
sessionId,
|
|
26825
26827
|
promptType,
|
|
26826
|
-
//
|
|
26828
|
+
// Inherit from parent (or use parent's default)
|
|
26829
|
+
customPrompt,
|
|
26830
|
+
// Inherit custom system prompt from parent
|
|
26831
|
+
completionPrompt,
|
|
26832
|
+
// Inherit completion prompt from parent
|
|
26827
26833
|
enableDelegate: false,
|
|
26828
26834
|
// Explicitly disable delegation to prevent recursion
|
|
26829
26835
|
disableMermaidValidation: true,
|
|
@@ -28930,6 +28936,9 @@ Do NOT search for analogies or loosely related concepts. If the feature does not
|
|
|
28930
28936
|
enableMcp = false,
|
|
28931
28937
|
mcpConfig = null,
|
|
28932
28938
|
mcpConfigPath = null,
|
|
28939
|
+
promptType: parentPromptType,
|
|
28940
|
+
customPrompt: parentCustomPrompt = null,
|
|
28941
|
+
completionPrompt: parentCompletionPrompt = null,
|
|
28933
28942
|
delegationManager = null,
|
|
28934
28943
|
// Timeout settings inherited from parent agent
|
|
28935
28944
|
timeoutBehavior,
|
|
@@ -29023,6 +29032,12 @@ Do NOT search for analogies or loosely related concepts. If the feature does not
|
|
|
29023
29032
|
allowEdit,
|
|
29024
29033
|
bashConfig,
|
|
29025
29034
|
architectureFileName,
|
|
29035
|
+
promptType: parentPromptType,
|
|
29036
|
+
// Inherit parent's prompt type
|
|
29037
|
+
customPrompt: parentCustomPrompt,
|
|
29038
|
+
// Inherit parent's custom system prompt
|
|
29039
|
+
completionPrompt: parentCompletionPrompt,
|
|
29040
|
+
// Inherit parent's completion prompt
|
|
29026
29041
|
searchDelegate,
|
|
29027
29042
|
enableMcp,
|
|
29028
29043
|
mcpConfig,
|
|
@@ -101512,6 +101527,18 @@ var init_ProbeAgent = __esm({
|
|
|
101512
101527
|
concurrencyLimiter: this.concurrencyLimiter,
|
|
101513
101528
|
// Global AI concurrency limiter
|
|
101514
101529
|
isToolAllowed,
|
|
101530
|
+
// MCP config for delegate subagents — these are set in constructor before tools init,
|
|
101531
|
+
// so they're available here. The delegate tool closure needs them to pass to subagents
|
|
101532
|
+
// so they can create their own MCPXmlBridge instances.
|
|
101533
|
+
enableMcp: this.enableMcp,
|
|
101534
|
+
mcpConfig: this.mcpConfig,
|
|
101535
|
+
mcpConfigPath: this.mcpConfigPath,
|
|
101536
|
+
// Pass parent's prompt settings so delegate subagents inherit the same persona/capabilities.
|
|
101537
|
+
// Without promptType, delegate() defaulted to 'code-researcher' which doesn't exist,
|
|
101538
|
+
// causing fallback to the read-only 'code-explorer' prompt.
|
|
101539
|
+
promptType: this.promptType,
|
|
101540
|
+
customPrompt: this.customPrompt,
|
|
101541
|
+
completionPrompt: this.completionPrompt,
|
|
101515
101542
|
// Lazy MCP getters — MCP is initialized after tools are created, so we use
|
|
101516
101543
|
// getter functions that resolve at call-time to get the current MCP state
|
|
101517
101544
|
getMcpBridge: () => this.mcpBridge,
|
package/cjs/index.cjs
CHANGED
|
@@ -98107,6 +98107,18 @@ var init_ProbeAgent = __esm({
|
|
|
98107
98107
|
concurrencyLimiter: this.concurrencyLimiter,
|
|
98108
98108
|
// Global AI concurrency limiter
|
|
98109
98109
|
isToolAllowed,
|
|
98110
|
+
// MCP config for delegate subagents — these are set in constructor before tools init,
|
|
98111
|
+
// so they're available here. The delegate tool closure needs them to pass to subagents
|
|
98112
|
+
// so they can create their own MCPXmlBridge instances.
|
|
98113
|
+
enableMcp: this.enableMcp,
|
|
98114
|
+
mcpConfig: this.mcpConfig,
|
|
98115
|
+
mcpConfigPath: this.mcpConfigPath,
|
|
98116
|
+
// Pass parent's prompt settings so delegate subagents inherit the same persona/capabilities.
|
|
98117
|
+
// Without promptType, delegate() defaulted to 'code-researcher' which doesn't exist,
|
|
98118
|
+
// causing fallback to the read-only 'code-explorer' prompt.
|
|
98119
|
+
promptType: this.promptType,
|
|
98120
|
+
customPrompt: this.customPrompt,
|
|
98121
|
+
completionPrompt: this.completionPrompt,
|
|
98110
98122
|
// Lazy MCP getters — MCP is initialized after tools are created, so we use
|
|
98111
98123
|
// getter functions that resolve at call-time to get the current MCP state
|
|
98112
98124
|
getMcpBridge: () => this.mcpBridge,
|
|
@@ -101912,7 +101924,9 @@ async function delegate({
|
|
|
101912
101924
|
bashConfig = null,
|
|
101913
101925
|
allowEdit = false,
|
|
101914
101926
|
architectureFileName = null,
|
|
101915
|
-
promptType =
|
|
101927
|
+
promptType = void 0,
|
|
101928
|
+
customPrompt = null,
|
|
101929
|
+
completionPrompt = null,
|
|
101916
101930
|
allowedTools = null,
|
|
101917
101931
|
disableTools = false,
|
|
101918
101932
|
searchDelegate = void 0,
|
|
@@ -101978,7 +101992,11 @@ async function delegate({
|
|
|
101978
101992
|
const subagent = new ProbeAgent({
|
|
101979
101993
|
sessionId,
|
|
101980
101994
|
promptType,
|
|
101981
|
-
//
|
|
101995
|
+
// Inherit from parent (or use parent's default)
|
|
101996
|
+
customPrompt,
|
|
101997
|
+
// Inherit custom system prompt from parent
|
|
101998
|
+
completionPrompt,
|
|
101999
|
+
// Inherit completion prompt from parent
|
|
101982
102000
|
enableDelegate: false,
|
|
101983
102001
|
// Explicitly disable delegation to prevent recursion
|
|
101984
102002
|
disableMermaidValidation: true,
|
|
@@ -103849,6 +103867,9 @@ Do NOT search for analogies or loosely related concepts. If the feature does not
|
|
|
103849
103867
|
enableMcp = false,
|
|
103850
103868
|
mcpConfig = null,
|
|
103851
103869
|
mcpConfigPath = null,
|
|
103870
|
+
promptType: parentPromptType,
|
|
103871
|
+
customPrompt: parentCustomPrompt = null,
|
|
103872
|
+
completionPrompt: parentCompletionPrompt = null,
|
|
103852
103873
|
delegationManager = null,
|
|
103853
103874
|
// Timeout settings inherited from parent agent
|
|
103854
103875
|
timeoutBehavior,
|
|
@@ -103942,6 +103963,12 @@ Do NOT search for analogies or loosely related concepts. If the feature does not
|
|
|
103942
103963
|
allowEdit,
|
|
103943
103964
|
bashConfig,
|
|
103944
103965
|
architectureFileName,
|
|
103966
|
+
promptType: parentPromptType,
|
|
103967
|
+
// Inherit parent's prompt type
|
|
103968
|
+
customPrompt: parentCustomPrompt,
|
|
103969
|
+
// Inherit parent's custom system prompt
|
|
103970
|
+
completionPrompt: parentCompletionPrompt,
|
|
103971
|
+
// Inherit parent's completion prompt
|
|
103945
103972
|
searchDelegate,
|
|
103946
103973
|
enableMcp,
|
|
103947
103974
|
mcpConfig,
|
package/package.json
CHANGED
package/src/agent/ProbeAgent.js
CHANGED
|
@@ -882,6 +882,18 @@ export class ProbeAgent {
|
|
|
882
882
|
outputBuffer: this._outputBuffer,
|
|
883
883
|
concurrencyLimiter: this.concurrencyLimiter, // Global AI concurrency limiter
|
|
884
884
|
isToolAllowed,
|
|
885
|
+
// MCP config for delegate subagents — these are set in constructor before tools init,
|
|
886
|
+
// so they're available here. The delegate tool closure needs them to pass to subagents
|
|
887
|
+
// so they can create their own MCPXmlBridge instances.
|
|
888
|
+
enableMcp: this.enableMcp,
|
|
889
|
+
mcpConfig: this.mcpConfig,
|
|
890
|
+
mcpConfigPath: this.mcpConfigPath,
|
|
891
|
+
// Pass parent's prompt settings so delegate subagents inherit the same persona/capabilities.
|
|
892
|
+
// Without promptType, delegate() defaulted to 'code-researcher' which doesn't exist,
|
|
893
|
+
// causing fallback to the read-only 'code-explorer' prompt.
|
|
894
|
+
promptType: this.promptType,
|
|
895
|
+
customPrompt: this.customPrompt,
|
|
896
|
+
completionPrompt: this.completionPrompt,
|
|
885
897
|
// Lazy MCP getters — MCP is initialized after tools are created, so we use
|
|
886
898
|
// getter functions that resolve at call-time to get the current MCP state
|
|
887
899
|
getMcpBridge: () => this.mcpBridge,
|
package/src/delegate.js
CHANGED
|
@@ -387,7 +387,9 @@ export async function delegate({
|
|
|
387
387
|
bashConfig = null,
|
|
388
388
|
allowEdit = false,
|
|
389
389
|
architectureFileName = null,
|
|
390
|
-
promptType =
|
|
390
|
+
promptType = undefined,
|
|
391
|
+
customPrompt = null,
|
|
392
|
+
completionPrompt = null,
|
|
391
393
|
allowedTools = null,
|
|
392
394
|
disableTools = false,
|
|
393
395
|
searchDelegate = undefined,
|
|
@@ -474,7 +476,9 @@ export async function delegate({
|
|
|
474
476
|
// Tasks do not propagate back to the parent - each subagent has its own scope.
|
|
475
477
|
const subagent = new ProbeAgent({
|
|
476
478
|
sessionId,
|
|
477
|
-
promptType, //
|
|
479
|
+
promptType, // Inherit from parent (or use parent's default)
|
|
480
|
+
customPrompt, // Inherit custom system prompt from parent
|
|
481
|
+
completionPrompt, // Inherit completion prompt from parent
|
|
478
482
|
enableDelegate: false, // Explicitly disable delegation to prevent recursion
|
|
479
483
|
disableMermaidValidation: true, // Faster processing
|
|
480
484
|
disableJsonValidation: true, // Simpler responses
|
package/src/tools/vercel.js
CHANGED
|
@@ -1135,7 +1135,7 @@ export const extractTool = (options = {}) => {
|
|
|
1135
1135
|
* @returns {Object} Configured delegate tool
|
|
1136
1136
|
*/
|
|
1137
1137
|
export const delegateTool = (options = {}) => {
|
|
1138
|
-
const { debug = false, timeout = 300, cwd, allowedFolders, workspaceRoot, enableBash = false, bashConfig, allowEdit = false, architectureFileName, enableMcp = false, mcpConfig = null, mcpConfigPath = null, delegationManager = null,
|
|
1138
|
+
const { debug = false, timeout = 300, cwd, allowedFolders, workspaceRoot, enableBash = false, bashConfig, allowEdit = false, architectureFileName, enableMcp = false, mcpConfig = null, mcpConfigPath = null, promptType: parentPromptType, customPrompt: parentCustomPrompt = null, completionPrompt: parentCompletionPrompt = null, delegationManager = null,
|
|
1139
1139
|
// Timeout settings inherited from parent agent
|
|
1140
1140
|
timeoutBehavior, maxOperationTimeout, requestTimeout, gracefulTimeoutBonusSteps,
|
|
1141
1141
|
negotiatedTimeoutBudget, negotiatedTimeoutMaxRequests, negotiatedTimeoutMaxPerRequest,
|
|
@@ -1257,6 +1257,9 @@ export const delegateTool = (options = {}) => {
|
|
|
1257
1257
|
allowEdit,
|
|
1258
1258
|
bashConfig,
|
|
1259
1259
|
architectureFileName,
|
|
1260
|
+
promptType: parentPromptType, // Inherit parent's prompt type
|
|
1261
|
+
customPrompt: parentCustomPrompt, // Inherit parent's custom system prompt
|
|
1262
|
+
completionPrompt: parentCompletionPrompt, // Inherit parent's completion prompt
|
|
1260
1263
|
searchDelegate,
|
|
1261
1264
|
enableMcp,
|
|
1262
1265
|
mcpConfig,
|