@cortexkit/aft-pi 0.25.0 → 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 +15 -13
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -31189,11 +31189,12 @@ async function downloadBinary(version) {
|
|
|
31189
31189
|
error(`Unsupported platform: ${process.platform}-${process.arch}`);
|
|
31190
31190
|
return null;
|
|
31191
31191
|
}
|
|
31192
|
-
const
|
|
31193
|
-
if (!
|
|
31192
|
+
const rawTag = version ?? await fetchLatestTag();
|
|
31193
|
+
if (!rawTag) {
|
|
31194
31194
|
error("Could not determine latest release version.");
|
|
31195
31195
|
return null;
|
|
31196
31196
|
}
|
|
31197
|
+
const tag = rawTag.startsWith("v") ? rawTag : `v${rawTag}`;
|
|
31197
31198
|
const versionedCacheDir = join2(getCacheDir(), tag);
|
|
31198
31199
|
const binaryName = getBinaryName();
|
|
31199
31200
|
const binaryPath = join2(versionedCacheDir, binaryName);
|
|
@@ -31255,13 +31256,14 @@ async function downloadBinary(version) {
|
|
|
31255
31256
|
}
|
|
31256
31257
|
async function ensureBinary(version) {
|
|
31257
31258
|
if (version) {
|
|
31258
|
-
const
|
|
31259
|
+
const tag = version.startsWith("v") ? version : `v${version}`;
|
|
31260
|
+
const versionCached = getCachedBinaryPath(tag);
|
|
31259
31261
|
if (versionCached) {
|
|
31260
|
-
log(`Found cached binary for ${
|
|
31262
|
+
log(`Found cached binary for ${tag}: ${versionCached}`);
|
|
31261
31263
|
return versionCached;
|
|
31262
31264
|
}
|
|
31263
|
-
log(`No cached binary for ${
|
|
31264
|
-
return downloadBinary(
|
|
31265
|
+
log(`No cached binary for ${tag}, downloading...`);
|
|
31266
|
+
return downloadBinary(tag);
|
|
31265
31267
|
}
|
|
31266
31268
|
log("No cached binary found, downloading latest...");
|
|
31267
31269
|
return downloadBinary();
|
|
@@ -32999,7 +33001,7 @@ import {
|
|
|
32999
33001
|
// package.json
|
|
33000
33002
|
var package_default = {
|
|
33001
33003
|
name: "@cortexkit/aft-pi",
|
|
33002
|
-
version: "0.25.
|
|
33004
|
+
version: "0.25.2",
|
|
33003
33005
|
type: "module",
|
|
33004
33006
|
description: "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
33005
33007
|
main: "dist/index.js",
|
|
@@ -33021,18 +33023,18 @@ var package_default = {
|
|
|
33021
33023
|
prepublishOnly: "bun run build"
|
|
33022
33024
|
},
|
|
33023
33025
|
dependencies: {
|
|
33024
|
-
"@cortexkit/aft-bridge": "0.25.
|
|
33026
|
+
"@cortexkit/aft-bridge": "0.25.2",
|
|
33025
33027
|
typebox: "^1.1.24",
|
|
33026
33028
|
"comment-json": "^5.0.0",
|
|
33027
33029
|
diff: "^8.0.4",
|
|
33028
33030
|
zod: "^4.1.8"
|
|
33029
33031
|
},
|
|
33030
33032
|
optionalDependencies: {
|
|
33031
|
-
"@cortexkit/aft-darwin-arm64": "0.25.
|
|
33032
|
-
"@cortexkit/aft-darwin-x64": "0.25.
|
|
33033
|
-
"@cortexkit/aft-linux-arm64": "0.25.
|
|
33034
|
-
"@cortexkit/aft-linux-x64": "0.25.
|
|
33035
|
-
"@cortexkit/aft-win32-x64": "0.25.
|
|
33033
|
+
"@cortexkit/aft-darwin-arm64": "0.25.2",
|
|
33034
|
+
"@cortexkit/aft-darwin-x64": "0.25.2",
|
|
33035
|
+
"@cortexkit/aft-linux-arm64": "0.25.2",
|
|
33036
|
+
"@cortexkit/aft-linux-x64": "0.25.2",
|
|
33037
|
+
"@cortexkit/aft-win32-x64": "0.25.2"
|
|
33036
33038
|
},
|
|
33037
33039
|
devDependencies: {
|
|
33038
33040
|
"@earendil-works/pi-coding-agent": "*",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"prepublishOnly": "bun run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@cortexkit/aft-bridge": "0.25.
|
|
25
|
+
"@cortexkit/aft-bridge": "0.25.2",
|
|
26
26
|
"typebox": "^1.1.24",
|
|
27
27
|
"comment-json": "^5.0.0",
|
|
28
28
|
"diff": "^8.0.4",
|
|
29
29
|
"zod": "^4.1.8"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@cortexkit/aft-darwin-arm64": "0.25.
|
|
33
|
-
"@cortexkit/aft-darwin-x64": "0.25.
|
|
34
|
-
"@cortexkit/aft-linux-arm64": "0.25.
|
|
35
|
-
"@cortexkit/aft-linux-x64": "0.25.
|
|
36
|
-
"@cortexkit/aft-win32-x64": "0.25.
|
|
32
|
+
"@cortexkit/aft-darwin-arm64": "0.25.2",
|
|
33
|
+
"@cortexkit/aft-darwin-x64": "0.25.2",
|
|
34
|
+
"@cortexkit/aft-linux-arm64": "0.25.2",
|
|
35
|
+
"@cortexkit/aft-linux-x64": "0.25.2",
|
|
36
|
+
"@cortexkit/aft-win32-x64": "0.25.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@earendil-works/pi-coding-agent": "*",
|