@cortexkit/aft-opencode 0.14.0 → 0.14.1
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/index.js +12 -4
- package/dist/tools/safety.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -25163,12 +25163,20 @@ function safetyTools(ctx) {
|
|
|
25163
25163
|
list: "list_checkpoints"
|
|
25164
25164
|
};
|
|
25165
25165
|
const params = {};
|
|
25166
|
-
if (args.filePath !== undefined)
|
|
25167
|
-
params.file = args.filePath;
|
|
25168
25166
|
if (args.name !== undefined)
|
|
25169
25167
|
params.name = args.name;
|
|
25170
|
-
if (
|
|
25171
|
-
|
|
25168
|
+
if (op === "checkpoint") {
|
|
25169
|
+
if (args.files !== undefined) {
|
|
25170
|
+
params.files = args.files;
|
|
25171
|
+
} else if (args.filePath !== undefined) {
|
|
25172
|
+
params.files = [args.filePath];
|
|
25173
|
+
}
|
|
25174
|
+
} else {
|
|
25175
|
+
if (args.filePath !== undefined)
|
|
25176
|
+
params.file = args.filePath;
|
|
25177
|
+
if (args.files !== undefined)
|
|
25178
|
+
params.files = args.files;
|
|
25179
|
+
}
|
|
25172
25180
|
const response = await callBridge(ctx, context, commandMap[op], params);
|
|
25173
25181
|
if (response.success === false) {
|
|
25174
25182
|
throw new Error(response.message || `${op} failed`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safety.d.ts","sourceRoot":"","sources":["../../src/tools/safety.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAYjD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"safety.d.ts","sourceRoot":"","sources":["../../src/tools/safety.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAYjD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CA6F9E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-opencode",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenCode plugin for Agent File Tools (AFT) — tree-sitter and lsp powered code analysis",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"zod": "^4.1.8"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@cortexkit/aft-darwin-arm64": "0.14.
|
|
39
|
-
"@cortexkit/aft-darwin-x64": "0.14.
|
|
40
|
-
"@cortexkit/aft-linux-arm64": "0.14.
|
|
41
|
-
"@cortexkit/aft-linux-x64": "0.14.
|
|
42
|
-
"@cortexkit/aft-win32-x64": "0.14.
|
|
38
|
+
"@cortexkit/aft-darwin-arm64": "0.14.1",
|
|
39
|
+
"@cortexkit/aft-darwin-x64": "0.14.1",
|
|
40
|
+
"@cortexkit/aft-linux-arm64": "0.14.1",
|
|
41
|
+
"@cortexkit/aft-linux-x64": "0.14.1",
|
|
42
|
+
"@cortexkit/aft-win32-x64": "0.14.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^22.0.0",
|