@probelabs/probe 0.6.0-rc208 → 0.6.0-rc209

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.
@@ -68,9 +68,11 @@ export interface ProbeAgentOptions {
68
68
  disableMermaidValidation?: boolean;
69
69
  /** Disable automatic JSON validation and fixing (prevents infinite recursion in JsonFixingAgent) */
70
70
  disableJsonValidation?: boolean;
71
- /** Enable agent skills discovery and activation */
71
+ /** Enable agent skills discovery and activation (disabled by default) */
72
+ allowSkills?: boolean;
73
+ /** @deprecated Use allowSkills instead. Enable agent skills discovery and activation (disabled by default) */
72
74
  enableSkills?: boolean;
73
- /** Disable agent skills (overrides enableSkills) */
75
+ /** Disable agent skills (overrides allowSkills/enableSkills) */
74
76
  disableSkills?: boolean;
75
77
  /** Skill directories to scan relative to repo root */
76
78
  skillDirs?: string[];
@@ -210,7 +210,8 @@ export class ProbeAgent {
210
210
  this.maxIterations = options.maxIterations || null;
211
211
  this.disableMermaidValidation = !!options.disableMermaidValidation;
212
212
  this.disableJsonValidation = !!options.disableJsonValidation;
213
- this.enableSkills = options.disableSkills ? false : (options.enableSkills !== undefined ? !!options.enableSkills : true);
213
+ // Skills are disabled by default; enable via allowSkills or enableSkills
214
+ this.enableSkills = options.disableSkills ? false : !!(options.allowSkills || options.enableSkills);
214
215
  if (Array.isArray(options.skillDirs)) {
215
216
  this.skillDirs = options.skillDirs;
216
217
  } else if (typeof options.skillDirs === 'string') {
@@ -58583,7 +58583,7 @@ var init_client = __esm({
58583
58583
  clientInfo.client.callTool({
58584
58584
  name: tool4.originalName,
58585
58585
  arguments: args
58586
- }),
58586
+ }, void 0, { timeout }),
58587
58587
  timeoutPromise
58588
58588
  ]);
58589
58589
  const durationMs = Date.now() - startTime;
@@ -69138,7 +69138,7 @@ var init_ProbeAgent = __esm({
69138
69138
  this.maxIterations = options.maxIterations || null;
69139
69139
  this.disableMermaidValidation = !!options.disableMermaidValidation;
69140
69140
  this.disableJsonValidation = !!options.disableJsonValidation;
69141
- this.enableSkills = options.disableSkills ? false : options.enableSkills !== void 0 ? !!options.enableSkills : true;
69141
+ this.enableSkills = options.disableSkills ? false : !!(options.allowSkills || options.enableSkills);
69142
69142
  if (Array.isArray(options.skillDirs)) {
69143
69143
  this.skillDirs = options.skillDirs;
69144
69144
  } else if (typeof options.skillDirs === "string") {
@@ -73115,8 +73115,8 @@ function parseArgs() {
73115
73115
  // Tool filtering: ['*'] = all, [] = none, ['tool1', 'tool2'] = specific
73116
73116
  disableTools: false,
73117
73117
  // Convenience flag to disable all tools
73118
- disableSkills: false,
73119
- // Disable skill discovery and activation
73118
+ allowSkills: false,
73119
+ // Enable skill discovery and activation (disabled by default)
73120
73120
  skillDirs: null,
73121
73121
  // Comma-separated list of repo-relative skill directories
73122
73122
  // Task management
@@ -73188,8 +73188,8 @@ function parseArgs() {
73188
73188
  }
73189
73189
  } else if (arg === "--disable-tools") {
73190
73190
  config.disableTools = true;
73191
- } else if (arg === "--no-skills") {
73192
- config.disableSkills = true;
73191
+ } else if (arg === "--allow-skills") {
73192
+ config.allowSkills = true;
73193
73193
  } else if (arg === "--skills-dir" && i + 1 < args.length) {
73194
73194
  config.skillDirs = args[++i].split(",").map((dir) => dir.trim()).filter(Boolean);
73195
73195
  } else if (arg === "--allow-tasks") {
@@ -73246,8 +73246,8 @@ Options:
73246
73246
  Supports exclusion: '*,!bash' (all except bash)
73247
73247
  --disable-tools Disable all tools (raw AI mode, no code analysis)
73248
73248
  Convenience flag equivalent to --allowed-tools none
73249
+ --allow-skills Enable skill discovery and activation (disabled by default)
73249
73250
  --skills-dir <dirs> Comma-separated list of repo-relative skill directories to scan
73250
- --no-skills Disable skill discovery and activation
73251
73251
  --allow-tasks Enable task management for tracking multi-step progress
73252
73252
  --verbose Enable verbose output
73253
73253
  --outline Use outline-xml format for code search results
@@ -73719,7 +73719,7 @@ async function main() {
73719
73719
  disableMermaidValidation: config.noMermaidValidation,
73720
73720
  allowedTools: config.allowedTools,
73721
73721
  disableTools: config.disableTools,
73722
- enableSkills: !config.disableSkills,
73722
+ allowSkills: config.allowSkills,
73723
73723
  skillDirs: config.skillDirs,
73724
73724
  enableBash: config.enableBash,
73725
73725
  bashConfig,
@@ -474,11 +474,12 @@ export class MCPClientManager {
474
474
  });
475
475
 
476
476
  // Race between the actual call and timeout
477
+ // Pass timeout to SDK's callTool to override its default 60s timeout
477
478
  const result = await Promise.race([
478
479
  clientInfo.client.callTool({
479
480
  name: tool.originalName,
480
481
  arguments: args
481
- }),
482
+ }, undefined, { timeout }),
482
483
  timeoutPromise
483
484
  ]);
484
485
 
@@ -85275,7 +85275,7 @@ var init_client2 = __esm({
85275
85275
  clientInfo.client.callTool({
85276
85276
  name: tool4.originalName,
85277
85277
  arguments: args
85278
- }),
85278
+ }, void 0, { timeout }),
85279
85279
  timeoutPromise
85280
85280
  ]);
85281
85281
  const durationMs = Date.now() - startTime;
@@ -95829,7 +95829,7 @@ var init_ProbeAgent = __esm({
95829
95829
  this.maxIterations = options.maxIterations || null;
95830
95830
  this.disableMermaidValidation = !!options.disableMermaidValidation;
95831
95831
  this.disableJsonValidation = !!options.disableJsonValidation;
95832
- this.enableSkills = options.disableSkills ? false : options.enableSkills !== void 0 ? !!options.enableSkills : true;
95832
+ this.enableSkills = options.disableSkills ? false : !!(options.allowSkills || options.enableSkills);
95833
95833
  if (Array.isArray(options.skillDirs)) {
95834
95834
  this.skillDirs = options.skillDirs;
95835
95835
  } else if (typeof options.skillDirs === "string") {
package/cjs/index.cjs CHANGED
@@ -82879,7 +82879,7 @@ var init_client2 = __esm({
82879
82879
  clientInfo.client.callTool({
82880
82880
  name: tool4.originalName,
82881
82881
  arguments: args
82882
- }),
82882
+ }, void 0, { timeout }),
82883
82883
  timeoutPromise
82884
82884
  ]);
82885
82885
  const durationMs = Date.now() - startTime;
@@ -93433,7 +93433,7 @@ var init_ProbeAgent = __esm({
93433
93433
  this.maxIterations = options.maxIterations || null;
93434
93434
  this.disableMermaidValidation = !!options.disableMermaidValidation;
93435
93435
  this.disableJsonValidation = !!options.disableJsonValidation;
93436
- this.enableSkills = options.disableSkills ? false : options.enableSkills !== void 0 ? !!options.enableSkills : true;
93436
+ this.enableSkills = options.disableSkills ? false : !!(options.allowSkills || options.enableSkills);
93437
93437
  if (Array.isArray(options.skillDirs)) {
93438
93438
  this.skillDirs = options.skillDirs;
93439
93439
  } else if (typeof options.skillDirs === "string") {
package/index.d.ts CHANGED
@@ -49,9 +49,11 @@ export interface ProbeAgentOptions {
49
49
  disableMermaidValidation?: boolean;
50
50
  /** Disable automatic JSON validation and fixing (prevents infinite recursion in JsonFixingAgent) */
51
51
  disableJsonValidation?: boolean;
52
- /** Enable agent skills discovery and activation */
52
+ /** Enable agent skills discovery and activation (disabled by default) */
53
+ allowSkills?: boolean;
54
+ /** @deprecated Use allowSkills instead. Enable agent skills discovery and activation (disabled by default) */
53
55
  enableSkills?: boolean;
54
- /** Disable agent skills (overrides enableSkills) */
56
+ /** Disable agent skills (overrides allowSkills/enableSkills) */
55
57
  disableSkills?: boolean;
56
58
  /** Skill directories to scan relative to repo root */
57
59
  skillDirs?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@probelabs/probe",
3
- "version": "0.6.0-rc208",
3
+ "version": "0.6.0-rc209",
4
4
  "description": "Node.js wrapper for the probe code search tool",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -68,9 +68,11 @@ export interface ProbeAgentOptions {
68
68
  disableMermaidValidation?: boolean;
69
69
  /** Disable automatic JSON validation and fixing (prevents infinite recursion in JsonFixingAgent) */
70
70
  disableJsonValidation?: boolean;
71
- /** Enable agent skills discovery and activation */
71
+ /** Enable agent skills discovery and activation (disabled by default) */
72
+ allowSkills?: boolean;
73
+ /** @deprecated Use allowSkills instead. Enable agent skills discovery and activation (disabled by default) */
72
74
  enableSkills?: boolean;
73
- /** Disable agent skills (overrides enableSkills) */
75
+ /** Disable agent skills (overrides allowSkills/enableSkills) */
74
76
  disableSkills?: boolean;
75
77
  /** Skill directories to scan relative to repo root */
76
78
  skillDirs?: string[];
@@ -210,7 +210,8 @@ export class ProbeAgent {
210
210
  this.maxIterations = options.maxIterations || null;
211
211
  this.disableMermaidValidation = !!options.disableMermaidValidation;
212
212
  this.disableJsonValidation = !!options.disableJsonValidation;
213
- this.enableSkills = options.disableSkills ? false : (options.enableSkills !== undefined ? !!options.enableSkills : true);
213
+ // Skills are disabled by default; enable via allowSkills or enableSkills
214
+ this.enableSkills = options.disableSkills ? false : !!(options.allowSkills || options.enableSkills);
214
215
  if (Array.isArray(options.skillDirs)) {
215
216
  this.skillDirs = options.skillDirs;
216
217
  } else if (typeof options.skillDirs === 'string') {
@@ -138,7 +138,7 @@ function parseArgs() {
138
138
  noMermaidValidation: false, // New flag to disable mermaid validation
139
139
  allowedTools: null, // Tool filtering: ['*'] = all, [] = none, ['tool1', 'tool2'] = specific
140
140
  disableTools: false, // Convenience flag to disable all tools
141
- disableSkills: false, // Disable skill discovery and activation
141
+ allowSkills: false, // Enable skill discovery and activation (disabled by default)
142
142
  skillDirs: null, // Comma-separated list of repo-relative skill directories
143
143
  // Task management
144
144
  enableTasks: false, // Enable task tracking for progress management
@@ -212,8 +212,8 @@ function parseArgs() {
212
212
  } else if (arg === '--disable-tools') {
213
213
  // Convenience flag to disable all tools (raw AI mode)
214
214
  config.disableTools = true;
215
- } else if (arg === '--no-skills') {
216
- config.disableSkills = true;
215
+ } else if (arg === '--allow-skills') {
216
+ config.allowSkills = true;
217
217
  } else if (arg === '--skills-dir' && i + 1 < args.length) {
218
218
  config.skillDirs = args[++i].split(',').map(dir => dir.trim()).filter(Boolean);
219
219
  } else if (arg === '--allow-tasks') {
@@ -280,8 +280,8 @@ Options:
280
280
  Supports exclusion: '*,!bash' (all except bash)
281
281
  --disable-tools Disable all tools (raw AI mode, no code analysis)
282
282
  Convenience flag equivalent to --allowed-tools none
283
+ --allow-skills Enable skill discovery and activation (disabled by default)
283
284
  --skills-dir <dirs> Comma-separated list of repo-relative skill directories to scan
284
- --no-skills Disable skill discovery and activation
285
285
  --allow-tasks Enable task management for tracking multi-step progress
286
286
  --verbose Enable verbose output
287
287
  --outline Use outline-xml format for code search results
@@ -841,7 +841,7 @@ async function main() {
841
841
  disableMermaidValidation: config.noMermaidValidation,
842
842
  allowedTools: config.allowedTools,
843
843
  disableTools: config.disableTools,
844
- enableSkills: !config.disableSkills,
844
+ allowSkills: config.allowSkills,
845
845
  skillDirs: config.skillDirs,
846
846
  enableBash: config.enableBash,
847
847
  bashConfig: bashConfig,
@@ -474,11 +474,12 @@ export class MCPClientManager {
474
474
  });
475
475
 
476
476
  // Race between the actual call and timeout
477
+ // Pass timeout to SDK's callTool to override its default 60s timeout
477
478
  const result = await Promise.race([
478
479
  clientInfo.client.callTool({
479
480
  name: tool.originalName,
480
481
  arguments: args
481
- }),
482
+ }, undefined, { timeout }),
482
483
  timeoutPromise
483
484
  ]);
484
485