@probelabs/probe 0.6.0-rc264 → 0.6.0-rc266

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.
Files changed (41) hide show
  1. package/bin/binaries/probe-v0.6.0-rc266-aarch64-apple-darwin.tar.gz +0 -0
  2. package/bin/binaries/probe-v0.6.0-rc266-aarch64-unknown-linux-musl.tar.gz +0 -0
  3. package/bin/binaries/probe-v0.6.0-rc266-x86_64-apple-darwin.tar.gz +0 -0
  4. package/bin/binaries/probe-v0.6.0-rc266-x86_64-pc-windows-msvc.zip +0 -0
  5. package/bin/binaries/probe-v0.6.0-rc266-x86_64-unknown-linux-musl.tar.gz +0 -0
  6. package/build/agent/ProbeAgent.js +640 -1441
  7. package/build/agent/engines/enhanced-vercel.js +0 -7
  8. package/build/agent/index.js +3972 -5938
  9. package/build/agent/mcp/index.js +6 -15
  10. package/build/agent/mcp/xmlBridge.js +24 -324
  11. package/build/agent/shared/prompts.js +25 -2
  12. package/build/agent/tasks/index.js +0 -1
  13. package/build/agent/tools.js +11 -181
  14. package/build/index.js +13 -35
  15. package/build/tools/common.js +15 -707
  16. package/build/tools/edit.js +7 -0
  17. package/build/tools/executePlan.js +2 -2
  18. package/build/tools/index.js +8 -11
  19. package/cjs/agent/ProbeAgent.cjs +3503 -5461
  20. package/cjs/index.cjs +4429 -6362
  21. package/package.json +2 -2
  22. package/src/agent/ProbeAgent.js +640 -1441
  23. package/src/agent/engines/enhanced-vercel.js +0 -7
  24. package/src/agent/index.js +10 -2
  25. package/src/agent/mcp/index.js +6 -15
  26. package/src/agent/mcp/xmlBridge.js +24 -324
  27. package/src/agent/shared/prompts.js +25 -2
  28. package/src/agent/tasks/index.js +0 -1
  29. package/src/agent/tools.js +11 -181
  30. package/src/index.js +13 -35
  31. package/src/tools/common.js +15 -707
  32. package/src/tools/edit.js +7 -0
  33. package/src/tools/executePlan.js +2 -2
  34. package/src/tools/index.js +8 -11
  35. package/bin/binaries/probe-v0.6.0-rc264-aarch64-apple-darwin.tar.gz +0 -0
  36. package/bin/binaries/probe-v0.6.0-rc264-aarch64-unknown-linux-musl.tar.gz +0 -0
  37. package/bin/binaries/probe-v0.6.0-rc264-x86_64-apple-darwin.tar.gz +0 -0
  38. package/bin/binaries/probe-v0.6.0-rc264-x86_64-pc-windows-msvc.zip +0 -0
  39. package/bin/binaries/probe-v0.6.0-rc264-x86_64-unknown-linux-musl.tar.gz +0 -0
  40. package/build/agent/xmlParsingUtils.js +0 -221
  41. package/src/agent/xmlParsingUtils.js +0 -221
@@ -448,6 +448,13 @@ Parameters:
448
448
  return `Error editing file: Multiple occurrences found - the old_string appears ${occurrences} times in ${file_path}. To fix: (1) Set replace_all=true to replace all occurrences, or (2) Include more surrounding lines in old_string to make the match unique (add the full line or adjacent lines for context).`;
449
449
  }
450
450
 
451
+ // Guard against over-scoped text edits (replacing large blocks with tiny replacements)
452
+ const oldLines = matchTarget.split('\n').length;
453
+ const newLines = new_string.split('\n').length;
454
+ if (oldLines >= 20 && newLines < oldLines * 0.5) {
455
+ return `Error editing file: Edit scope too large — replacing ${oldLines} lines with ${newLines} lines risks accidental content deletion. To fix: (1) Use line-targeted editing (start_line/end_line) instead to constrain scope, or (2) Split into smaller, focused edits that each target only the lines you intend to change.`;
456
+ }
457
+
451
458
  // Perform the replacement
452
459
  let newContent;
453
460
  if (replace_all) {
@@ -393,7 +393,7 @@ export function createExecutePlanTool(options) {
393
393
  description: 'Execute a JavaScript DSL program to orchestrate tool calls. ' +
394
394
  'Use for batch processing, paginated APIs, multi-step workflows where intermediate data is large. ' +
395
395
  'Write simple synchronous-looking code — do NOT use async/await.',
396
- parameters: executePlanSchema,
396
+ inputSchema: executePlanSchema,
397
397
  execute: async ({ code, description }) => {
398
398
  // Generate a unique session ID for this execute_plan invocation
399
399
  // This ensures search pagination is isolated per execute_plan call
@@ -1051,7 +1051,7 @@ export function createCleanupExecutePlanTool(options) {
1051
1051
  return tool({
1052
1052
  description: 'Clean up output buffer and session store from previous execute_plan calls. ' +
1053
1053
  'Use this when a previous execute_plan failed and left stale data, or before starting a fresh analysis.',
1054
- parameters: cleanupExecutePlanSchema,
1054
+ inputSchema: cleanupExecutePlanSchema,
1055
1055
  execute: async ({ clearOutputBuffer = true, clearSessionStore = false }) => {
1056
1056
  const span = tracer?.createToolSpan?.('cleanup_execute_plan', {
1057
1057
  'cleanup.clear_output_buffer': clearOutputBuffer,
@@ -12,7 +12,7 @@ export { editTool, createTool, multiEditTool } from './edit.js';
12
12
  export { createSearchTool, createQueryTool, createExtractTool } from './langchain.js';
13
13
 
14
14
  // Export execute_plan and cleanup_execute_plan tools
15
- export { createExecutePlanTool, getExecutePlanToolDefinition, createCleanupExecutePlanTool, getCleanupExecutePlanToolDefinition } from './executePlan.js';
15
+ export { createExecutePlanTool, createCleanupExecutePlanTool } from './executePlan.js';
16
16
 
17
17
  // Export common schemas and utilities
18
18
  export {
@@ -24,15 +24,15 @@ export {
24
24
  executePlanSchema,
25
25
  cleanupExecutePlanSchema,
26
26
  delegateDescription,
27
- delegateToolDefinition,
28
27
  bashDescription,
29
- bashToolDefinition,
30
28
  attemptCompletionSchema,
31
- attemptCompletionToolDefinition,
32
29
  parseAndResolvePaths,
33
30
  resolveTargetPath,
34
- DEFAULT_VALID_TOOLS,
35
- buildToolTagPattern
31
+ listFilesSchema,
32
+ searchFilesSchema,
33
+ readImageSchema,
34
+ listSkillsSchema,
35
+ useSkillSchema
36
36
  } from './common.js';
37
37
 
38
38
  // Export edit and create schemas
@@ -42,10 +42,7 @@ export {
42
42
  multiEditSchema,
43
43
  editDescription,
44
44
  createDescription,
45
- multiEditDescription,
46
- editToolDefinition,
47
- createToolDefinition,
48
- multiEditToolDefinition
45
+ multiEditDescription
49
46
  } from './edit.js';
50
47
 
51
48
  // Export system message
@@ -66,4 +63,4 @@ const tools = {
66
63
  DEFAULT_SYSTEM_MESSAGE
67
64
  };
68
65
 
69
- export { tools };
66
+ export { tools };