@velum-labs/routekit-tool-claude 0.16.6 → 0.16.7

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.
@@ -22,11 +22,15 @@ function scriptedQuery(sessionId = "claude-session-1") {
22
22
  throw Object.assign(new Error("aborted"), { name: "AbortError" });
23
23
  }
24
24
  if (prompt.includes("APPROVE") && options.canUseTool !== undefined) {
25
- const result = await options.canUseTool("Bash", { command: "npm test" }, {
25
+ // Keep the stand-in compatible across the Agent SDK transition that
26
+ // made requestId required and allowed a null permission result.
27
+ const permissionOptions = {
26
28
  signal: controller?.signal ?? new AbortController().signal,
27
- toolUseID: "tool-use-1"
28
- });
29
- if (result.behavior === "deny") {
29
+ toolUseID: "tool-use-1",
30
+ requestId: "permission-request-1"
31
+ };
32
+ const result = await options.canUseTool("Bash", { command: "npm test" }, permissionOptions);
33
+ if (result?.behavior === "deny") {
30
34
  yield {
31
35
  type: "result",
32
36
  subtype: "error_during_execution",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@velum-labs/routekit-tool-claude",
3
3
  "private": false,
4
- "version": "0.16.6",
4
+ "version": "0.16.7",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/velum-labs/routekit.git",
@@ -28,11 +28,11 @@
28
28
  "dependencies": {
29
29
  "@anthropic-ai/claude-agent-sdk": "0.3.198",
30
30
  "zod": "4.4.3",
31
- "@velum-labs/routekit-contracts": "0.16.6",
32
- "@velum-labs/routekit-harness-core": "0.16.6",
33
- "@velum-labs/routekit-registry": "0.16.6",
34
- "@velum-labs/routekit-runtime": "0.16.6",
35
- "@velum-labs/routekit-tools": "0.16.6"
31
+ "@velum-labs/routekit-contracts": "0.16.7",
32
+ "@velum-labs/routekit-harness-core": "0.16.7",
33
+ "@velum-labs/routekit-registry": "0.16.7",
34
+ "@velum-labs/routekit-runtime": "0.16.7",
35
+ "@velum-labs/routekit-tools": "0.16.7"
36
36
  },
37
37
  "keywords": [
38
38
  "llm",