@cortexkit/aft-pi 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/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -31027,7 +31027,7 @@ import { join as join2 } from "node:path";
|
|
|
31027
31027
|
var PLATFORM_ARCH_MAP = {
|
|
31028
31028
|
darwin: { arm64: "darwin-arm64", x64: "darwin-x64" },
|
|
31029
31029
|
linux: { arm64: "linux-arm64", x64: "linux-x64" },
|
|
31030
|
-
win32: { x64: "win32-x64" }
|
|
31030
|
+
win32: { arm64: "win32-x64", x64: "win32-x64" }
|
|
31031
31031
|
};
|
|
31032
31032
|
var PLATFORM_ASSET_MAP = {
|
|
31033
31033
|
"darwin-arm64": "aft-darwin-arm64",
|
|
@@ -31058,10 +31058,11 @@ function getCachedBinaryPath(version) {
|
|
|
31058
31058
|
return existsSync(binaryPath) ? binaryPath : null;
|
|
31059
31059
|
}
|
|
31060
31060
|
async function downloadBinary(version) {
|
|
31061
|
-
const
|
|
31062
|
-
const
|
|
31063
|
-
|
|
31064
|
-
|
|
31061
|
+
const archMap = PLATFORM_ARCH_MAP[process.platform] ?? {};
|
|
31062
|
+
const platformKey = archMap[process.arch];
|
|
31063
|
+
const assetName = platformKey ? PLATFORM_ASSET_MAP[platformKey] : undefined;
|
|
31064
|
+
if (!platformKey || !assetName) {
|
|
31065
|
+
error(`Unsupported platform: ${process.platform}-${process.arch}`);
|
|
31065
31066
|
return null;
|
|
31066
31067
|
}
|
|
31067
31068
|
const tag = version ?? await fetchLatestTag();
|
|
@@ -31218,7 +31219,10 @@ function getPlatformInfo() {
|
|
|
31218
31219
|
const platformMap = ORT_PLATFORM_MAP[process.platform];
|
|
31219
31220
|
if (!platformMap)
|
|
31220
31221
|
return null;
|
|
31221
|
-
|
|
31222
|
+
const archMap = PLATFORM_ARCH_MAP[process.platform] ?? {};
|
|
31223
|
+
const platformKey = archMap[process.arch];
|
|
31224
|
+
const ortArch = platformKey ? platformKey.split("-")[1] : process.arch;
|
|
31225
|
+
return platformMap[ortArch] || null;
|
|
31222
31226
|
}
|
|
31223
31227
|
function getManualInstallHint() {
|
|
31224
31228
|
if (process.platform === "darwin" && process.arch === "x64") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.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.19.
|
|
25
|
+
"@cortexkit/aft-bridge": "0.19.2",
|
|
26
26
|
"@sinclair/typebox": "^0.34.33",
|
|
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.19.
|
|
33
|
-
"@cortexkit/aft-darwin-x64": "0.19.
|
|
34
|
-
"@cortexkit/aft-linux-arm64": "0.19.
|
|
35
|
-
"@cortexkit/aft-linux-x64": "0.19.
|
|
36
|
-
"@cortexkit/aft-win32-x64": "0.19.
|
|
32
|
+
"@cortexkit/aft-darwin-arm64": "0.19.2",
|
|
33
|
+
"@cortexkit/aft-darwin-x64": "0.19.2",
|
|
34
|
+
"@cortexkit/aft-linux-arm64": "0.19.2",
|
|
35
|
+
"@cortexkit/aft-linux-x64": "0.19.2",
|
|
36
|
+
"@cortexkit/aft-win32-x64": "0.19.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@mariozechner/pi-coding-agent": "*",
|