@velum-labs/routekit-tool-cursor 1.4.0 → 1.5.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.
- package/dist/driver.js +0 -17
- package/package.json +5 -5
package/dist/driver.js
CHANGED
|
@@ -39,20 +39,6 @@ function itemTypeForToolKind(kind) {
|
|
|
39
39
|
return "dynamic_tool_call";
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
/** Map an ACP permission option kind onto our approval decision. */
|
|
43
|
-
function decisionForOptionKind(kind) {
|
|
44
|
-
switch (kind) {
|
|
45
|
-
case "allow_always":
|
|
46
|
-
return "acceptForSession";
|
|
47
|
-
case "allow_once":
|
|
48
|
-
return "accept";
|
|
49
|
-
case "reject_always":
|
|
50
|
-
case "reject_once":
|
|
51
|
-
return "decline";
|
|
52
|
-
default:
|
|
53
|
-
return "decline";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
42
|
/** The request type an ACP permission maps to, from its tool-call kind. */
|
|
57
43
|
function requestTypeForToolKind(kind) {
|
|
58
44
|
switch (kind) {
|
|
@@ -73,7 +59,6 @@ class CursorSession {
|
|
|
73
59
|
#pending = new PendingRequests();
|
|
74
60
|
#approvalPolicy;
|
|
75
61
|
#reasoning;
|
|
76
|
-
#optionKindById = new Map();
|
|
77
62
|
#sessionId;
|
|
78
63
|
#channel;
|
|
79
64
|
#turnId;
|
|
@@ -169,8 +154,6 @@ class CursorSession {
|
|
|
169
154
|
async requestPermission(params) {
|
|
170
155
|
const kind = params.toolCall.kind;
|
|
171
156
|
const requestType = requestTypeForToolKind(kind);
|
|
172
|
-
for (const option of params.options)
|
|
173
|
-
this.#optionKindById.set(option.optionId, option.kind);
|
|
174
157
|
const auto = decideApproval(this.#approvalPolicy, requestType);
|
|
175
158
|
const decision = auto ?? (await this.#surface(params, requestType));
|
|
176
159
|
if (decision === "decline" || decision === "cancel") {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velum-labs/routekit-tool-cursor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/velum-labs/routekit.git",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@agentclientprotocol/sdk": "0.4.5",
|
|
38
38
|
"zod": "4.4.3",
|
|
39
|
-
"@velum-labs/routekit-contracts": "1.
|
|
40
|
-
"@velum-labs/routekit-harness-core": "1.
|
|
41
|
-
"@velum-labs/routekit-runtime": "1.
|
|
42
|
-
"@velum-labs/routekit-tools": "1.
|
|
39
|
+
"@velum-labs/routekit-contracts": "1.5.0",
|
|
40
|
+
"@velum-labs/routekit-harness-core": "1.5.0",
|
|
41
|
+
"@velum-labs/routekit-runtime": "1.5.0",
|
|
42
|
+
"@velum-labs/routekit-tools": "1.5.0"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"llm",
|