mtech-ai-local-runner 0.1.67 → 0.1.68

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.
@@ -1,12 +1,16 @@
1
1
  import { compilePrompt as compileBrief } from "../prompt-compiler.js";
2
2
  import { LOCAL_TOOL_GUIDANCE, repositoryScope } from "../local-tool-prompt.js";
3
3
  // Claude's working directory is the job's private control directory, so without these rules it sends that directory's
4
- // absolute path or shell commands to the ai_local tools (P4 Investigate of Work Item 1c8026f1, 2026-10-28).
4
+ // absolute path or shell commands to the ai_local tools (P4 Investigate of Work Item 1c8026f1, 2026-10-28). Without the
5
+ // search and citation rules it searched several words, found nothing and cited lines counted from a whole-file read.
5
6
  const CLAUDE_PATH_RULES = "## Local tool path rules\n" +
6
7
  "Every path argument is one checkout-relative file path inside the approved scope, without a leading slash: write " +
7
8
  "/Modules/Example.php as Modules/Example.php. Never pass your working directory or any absolute path. " +
8
9
  "local_search searches only inside that one file; there is no directory listing or repository-wide search, so take " +
9
- "file paths from the objective and from files you have read. local_test runs only a registered command ID, never a " +
10
+ "file paths from the objective and from files you have read. local_search returns the lines that contain the query " +
11
+ "exactly, case-sensitive, each with its line number, so search for one identifier or literal, such as assertBranchHead, " +
12
+ "not several words. Cite a line number only from a local_search match or a local_read with start_line and end_line, and " +
13
+ "never count lines in a whole-file read. local_test runs only a registered command ID, never a " +
10
14
  "shell command. A DENIED_* result names the rule your call broke, such as DENIED_PATH for an absolute path, " +
11
15
  "DENIED_FILE for a directory, DENIED_SCOPE for a path outside the approved scope or DENIED_COMMAND for an unregistered " +
12
16
  "command: send a corrected call instead of concluding that source is unavailable. LOCAL_TOOL_FAILED means the call " +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mtech-ai-local-runner",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "bin": {