@botbotgo/agent-harness 0.0.431 → 0.0.432

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,2 +1,2 @@
1
- export declare const AGENT_HARNESS_VERSION = "0.0.431";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.432";
2
2
  export declare const AGENT_HARNESS_RELEASE_DATE = "2026-05-03";
@@ -1,2 +1,2 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.431";
1
+ export const AGENT_HARNESS_VERSION = "0.0.432";
2
2
  export const AGENT_HARNESS_RELEASE_DATE = "2026-05-03";
@@ -1,13 +1,36 @@
1
1
  import { getBindingPrimaryTools } from "../../support/compiled-binding.js";
2
2
  import { resolveToolApprovalDecisionMode } from "../../adapter/tool/tool-hitl.js";
3
3
  import { compiledToolHasInputSchema } from "../tool-schema.js";
4
+ const FILESYSTEM_INPUT_KEYS = new Set(["path", "paths", "file", "files", "root", "rootDir", "dir", "directory", "folder", "cwd"]);
5
+ function hasStructuredKey(value, keys, depth = 0) {
6
+ if (depth > 4) {
7
+ return false;
8
+ }
9
+ if (Array.isArray(value)) {
10
+ return value.some((item) => hasStructuredKey(item, keys, depth + 1));
11
+ }
12
+ if (typeof value !== "object" || value === null) {
13
+ return false;
14
+ }
15
+ const record = value;
16
+ for (const [key, nested] of Object.entries(record)) {
17
+ if (keys.has(key)) {
18
+ return true;
19
+ }
20
+ if (key === "properties" || key === "items" || key === "anyOf" || key === "oneOf" || key === "allOf") {
21
+ if (hasStructuredKey(nested, keys, depth + 1)) {
22
+ return true;
23
+ }
24
+ }
25
+ }
26
+ return false;
27
+ }
4
28
  function inputHints(binding, tool) {
5
29
  const hints = new Set();
6
- const target = `${tool.name} ${tool.description}`.toLowerCase();
7
- if (/(path|file|dir|directory|folder|workspace|repo|repository)/.test(target)) {
30
+ if (tool.config?.filesystem || hasStructuredKey(tool.modelSchema, FILESYSTEM_INPUT_KEYS)) {
8
31
  hints.add("filesystem-scope");
9
32
  }
10
- if (/(memory|knowledge|store|recall)/.test(target)) {
33
+ if (tool.config?.memory) {
11
34
  hints.add("memory-scope");
12
35
  }
13
36
  if (tool.config?.mcp) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.431",
3
+ "version": "0.0.432",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",