@cortexkit/aft-opencode 0.19.1 → 0.19.2
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 +10 -6
- package/dist/tui.js +7 -7
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -8357,7 +8357,7 @@ import { join as join2 } from "path";
|
|
|
8357
8357
|
var PLATFORM_ARCH_MAP = {
|
|
8358
8358
|
darwin: { arm64: "darwin-arm64", x64: "darwin-x64" },
|
|
8359
8359
|
linux: { arm64: "linux-arm64", x64: "linux-x64" },
|
|
8360
|
-
win32: { x64: "win32-x64" }
|
|
8360
|
+
win32: { arm64: "win32-x64", x64: "win32-x64" }
|
|
8361
8361
|
};
|
|
8362
8362
|
var PLATFORM_ASSET_MAP = {
|
|
8363
8363
|
"darwin-arm64": "aft-darwin-arm64",
|
|
@@ -8388,10 +8388,11 @@ function getCachedBinaryPath(version) {
|
|
|
8388
8388
|
return existsSync(binaryPath) ? binaryPath : null;
|
|
8389
8389
|
}
|
|
8390
8390
|
async function downloadBinary(version) {
|
|
8391
|
-
const
|
|
8392
|
-
const
|
|
8393
|
-
|
|
8394
|
-
|
|
8391
|
+
const archMap = PLATFORM_ARCH_MAP[process.platform] ?? {};
|
|
8392
|
+
const platformKey = archMap[process.arch];
|
|
8393
|
+
const assetName = platformKey ? PLATFORM_ASSET_MAP[platformKey] : undefined;
|
|
8394
|
+
if (!platformKey || !assetName) {
|
|
8395
|
+
error(`Unsupported platform: ${process.platform}-${process.arch}`);
|
|
8395
8396
|
return null;
|
|
8396
8397
|
}
|
|
8397
8398
|
const tag = version ?? await fetchLatestTag();
|
|
@@ -8548,7 +8549,10 @@ function getPlatformInfo() {
|
|
|
8548
8549
|
const platformMap = ORT_PLATFORM_MAP[process.platform];
|
|
8549
8550
|
if (!platformMap)
|
|
8550
8551
|
return null;
|
|
8551
|
-
|
|
8552
|
+
const archMap = PLATFORM_ARCH_MAP[process.platform] ?? {};
|
|
8553
|
+
const platformKey = archMap[process.arch];
|
|
8554
|
+
const ortArch = platformKey ? platformKey.split("-")[1] : process.arch;
|
|
8555
|
+
return platformMap[ortArch] || null;
|
|
8552
8556
|
}
|
|
8553
8557
|
function isOrtAutoDownloadSupported() {
|
|
8554
8558
|
return getPlatformInfo() !== null;
|
package/dist/tui.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// package.json
|
|
3
3
|
var package_default = {
|
|
4
4
|
name: "@cortexkit/aft-opencode",
|
|
5
|
-
version: "0.19.
|
|
5
|
+
version: "0.19.2",
|
|
6
6
|
type: "module",
|
|
7
7
|
description: "OpenCode plugin for Agent File Tools (AFT) \u2014 tree-sitter and lsp powered code analysis",
|
|
8
8
|
main: "dist/index.js",
|
|
@@ -30,7 +30,7 @@ var package_default = {
|
|
|
30
30
|
},
|
|
31
31
|
dependencies: {
|
|
32
32
|
"@clack/prompts": "^1.2.0",
|
|
33
|
-
"@cortexkit/aft-bridge": "0.19.
|
|
33
|
+
"@cortexkit/aft-bridge": "0.19.2",
|
|
34
34
|
"@opencode-ai/plugin": "^1.2.26",
|
|
35
35
|
"@opencode-ai/sdk": "^1.2.26",
|
|
36
36
|
"comment-json": "^4.6.2",
|
|
@@ -38,11 +38,11 @@ var package_default = {
|
|
|
38
38
|
zod: "^4.1.8"
|
|
39
39
|
},
|
|
40
40
|
optionalDependencies: {
|
|
41
|
-
"@cortexkit/aft-darwin-arm64": "0.19.
|
|
42
|
-
"@cortexkit/aft-darwin-x64": "0.19.
|
|
43
|
-
"@cortexkit/aft-linux-arm64": "0.19.
|
|
44
|
-
"@cortexkit/aft-linux-x64": "0.19.
|
|
45
|
-
"@cortexkit/aft-win32-x64": "0.19.
|
|
41
|
+
"@cortexkit/aft-darwin-arm64": "0.19.2",
|
|
42
|
+
"@cortexkit/aft-darwin-x64": "0.19.2",
|
|
43
|
+
"@cortexkit/aft-linux-arm64": "0.19.2",
|
|
44
|
+
"@cortexkit/aft-linux-x64": "0.19.2",
|
|
45
|
+
"@cortexkit/aft-win32-x64": "0.19.2"
|
|
46
46
|
},
|
|
47
47
|
devDependencies: {
|
|
48
48
|
"@types/node": "^22.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-opencode",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@clack/prompts": "^1.2.0",
|
|
31
|
-
"@cortexkit/aft-bridge": "0.19.
|
|
31
|
+
"@cortexkit/aft-bridge": "0.19.2",
|
|
32
32
|
"@opencode-ai/plugin": "^1.2.26",
|
|
33
33
|
"@opencode-ai/sdk": "^1.2.26",
|
|
34
34
|
"comment-json": "^4.6.2",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"zod": "^4.1.8"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@cortexkit/aft-darwin-arm64": "0.19.
|
|
40
|
-
"@cortexkit/aft-darwin-x64": "0.19.
|
|
41
|
-
"@cortexkit/aft-linux-arm64": "0.19.
|
|
42
|
-
"@cortexkit/aft-linux-x64": "0.19.
|
|
43
|
-
"@cortexkit/aft-win32-x64": "0.19.
|
|
39
|
+
"@cortexkit/aft-darwin-arm64": "0.19.2",
|
|
40
|
+
"@cortexkit/aft-darwin-x64": "0.19.2",
|
|
41
|
+
"@cortexkit/aft-linux-arm64": "0.19.2",
|
|
42
|
+
"@cortexkit/aft-linux-x64": "0.19.2",
|
|
43
|
+
"@cortexkit/aft-win32-x64": "0.19.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^22.0.0",
|