@steerable/agent-harness 0.3.0 → 0.4.0

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 (2) hide show
  1. package/dist/policy.js +8 -0
  2. package/package.json +2 -2
package/dist/policy.js CHANGED
@@ -1,5 +1,13 @@
1
+ // Side-effect-free network reads the prefix rules cannot reach. Exact
2
+ // names, not a "web_" prefix: a future web_deploy-style tool must not
3
+ // inherit the read posture. Kept in lockstep with the Python classifier
4
+ // (conformance case: tests/conformance/cases/policy/decide_tool_mode.yaml).
5
+ const READ_EXACT = new Set(["web_search", "web_fetch"]);
1
6
  export function decideToolMode(toolName) {
2
7
  const normalized = toolName.toLowerCase();
8
+ if (READ_EXACT.has(normalized)) {
9
+ return "read";
10
+ }
3
11
  if (normalized.startsWith("get_") || normalized.startsWith("list_") || normalized.startsWith("read_")) {
4
12
  return "read";
5
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerable/agent-harness",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Steerable framework Tier 2 — TypeScript facade over the Python harness (policy, budget, retry, completion, tracing) used for cross-language conformance tests. Production code should depend on the Python harness.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://steerableframework.com/",
@@ -29,7 +29,7 @@
29
29
  "README.md"
30
30
  ],
31
31
  "dependencies": {
32
- "@steerable/agent-protocol": "0.3.0"
32
+ "@steerable/agent-protocol": "0.4.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "^5.8.3",