@cortexkit/aft-opencode 0.25.1 → 0.25.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 +8 -6
- package/dist/tui.js +7 -7
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -8519,11 +8519,12 @@ async function downloadBinary(version) {
|
|
|
8519
8519
|
error(`Unsupported platform: ${process.platform}-${process.arch}`);
|
|
8520
8520
|
return null;
|
|
8521
8521
|
}
|
|
8522
|
-
const
|
|
8523
|
-
if (!
|
|
8522
|
+
const rawTag = version ?? await fetchLatestTag();
|
|
8523
|
+
if (!rawTag) {
|
|
8524
8524
|
error("Could not determine latest release version.");
|
|
8525
8525
|
return null;
|
|
8526
8526
|
}
|
|
8527
|
+
const tag = rawTag.startsWith("v") ? rawTag : `v${rawTag}`;
|
|
8527
8528
|
const versionedCacheDir = join2(getCacheDir(), tag);
|
|
8528
8529
|
const binaryName = getBinaryName();
|
|
8529
8530
|
const binaryPath = join2(versionedCacheDir, binaryName);
|
|
@@ -8585,13 +8586,14 @@ async function downloadBinary(version) {
|
|
|
8585
8586
|
}
|
|
8586
8587
|
async function ensureBinary(version) {
|
|
8587
8588
|
if (version) {
|
|
8588
|
-
const
|
|
8589
|
+
const tag = version.startsWith("v") ? version : `v${version}`;
|
|
8590
|
+
const versionCached = getCachedBinaryPath(tag);
|
|
8589
8591
|
if (versionCached) {
|
|
8590
|
-
log(`Found cached binary for ${
|
|
8592
|
+
log(`Found cached binary for ${tag}: ${versionCached}`);
|
|
8591
8593
|
return versionCached;
|
|
8592
8594
|
}
|
|
8593
|
-
log(`No cached binary for ${
|
|
8594
|
-
return downloadBinary(
|
|
8595
|
+
log(`No cached binary for ${tag}, downloading...`);
|
|
8596
|
+
return downloadBinary(tag);
|
|
8595
8597
|
}
|
|
8596
8598
|
log("No cached binary found, downloading latest...");
|
|
8597
8599
|
return downloadBinary();
|
package/dist/tui.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createMemo as createMemo2, createSignal as createSignal2, onCleanup as
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@cortexkit/aft-opencode",
|
|
7
|
-
version: "0.25.
|
|
7
|
+
version: "0.25.2",
|
|
8
8
|
type: "module",
|
|
9
9
|
description: "OpenCode plugin for Agent File Tools (AFT) \u2014 tree-sitter and lsp powered code analysis",
|
|
10
10
|
main: "dist/index.js",
|
|
@@ -32,7 +32,7 @@ var package_default = {
|
|
|
32
32
|
},
|
|
33
33
|
dependencies: {
|
|
34
34
|
"@clack/prompts": "^1.2.0",
|
|
35
|
-
"@cortexkit/aft-bridge": "0.25.
|
|
35
|
+
"@cortexkit/aft-bridge": "0.25.2",
|
|
36
36
|
"@opencode-ai/plugin": "^1.14.39",
|
|
37
37
|
"@opencode-ai/sdk": "^1.14.39",
|
|
38
38
|
"comment-json": "^4.6.2",
|
|
@@ -40,11 +40,11 @@ var package_default = {
|
|
|
40
40
|
zod: "^4.1.8"
|
|
41
41
|
},
|
|
42
42
|
optionalDependencies: {
|
|
43
|
-
"@cortexkit/aft-darwin-arm64": "0.25.
|
|
44
|
-
"@cortexkit/aft-darwin-x64": "0.25.
|
|
45
|
-
"@cortexkit/aft-linux-arm64": "0.25.
|
|
46
|
-
"@cortexkit/aft-linux-x64": "0.25.
|
|
47
|
-
"@cortexkit/aft-win32-x64": "0.25.
|
|
43
|
+
"@cortexkit/aft-darwin-arm64": "0.25.2",
|
|
44
|
+
"@cortexkit/aft-darwin-x64": "0.25.2",
|
|
45
|
+
"@cortexkit/aft-linux-arm64": "0.25.2",
|
|
46
|
+
"@cortexkit/aft-linux-x64": "0.25.2",
|
|
47
|
+
"@cortexkit/aft-win32-x64": "0.25.2"
|
|
48
48
|
},
|
|
49
49
|
devDependencies: {
|
|
50
50
|
"@types/node": "^22.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-opencode",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.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.25.
|
|
31
|
+
"@cortexkit/aft-bridge": "0.25.2",
|
|
32
32
|
"@opencode-ai/plugin": "^1.14.39",
|
|
33
33
|
"@opencode-ai/sdk": "^1.14.39",
|
|
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.25.
|
|
40
|
-
"@cortexkit/aft-darwin-x64": "0.25.
|
|
41
|
-
"@cortexkit/aft-linux-arm64": "0.25.
|
|
42
|
-
"@cortexkit/aft-linux-x64": "0.25.
|
|
43
|
-
"@cortexkit/aft-win32-x64": "0.25.
|
|
39
|
+
"@cortexkit/aft-darwin-arm64": "0.25.2",
|
|
40
|
+
"@cortexkit/aft-darwin-x64": "0.25.2",
|
|
41
|
+
"@cortexkit/aft-linux-arm64": "0.25.2",
|
|
42
|
+
"@cortexkit/aft-linux-x64": "0.25.2",
|
|
43
|
+
"@cortexkit/aft-win32-x64": "0.25.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^22.0.0",
|