@toolkit-cli/toolkode 1.3.13 → 1.3.15
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/bin/toolkode.cjs +1 -5
- package/package.json +13 -13
- package/postinstall.mjs +7 -10
package/bin/toolkode.cjs
CHANGED
|
@@ -25,11 +25,7 @@ if (envPath) {
|
|
|
25
25
|
const scriptPath = fs.realpathSync(__filename)
|
|
26
26
|
const scriptDir = path.dirname(scriptPath)
|
|
27
27
|
|
|
28
|
-
//
|
|
29
|
-
const cached = path.join(scriptDir, ".toolkode")
|
|
30
|
-
if (fs.existsSync(cached)) {
|
|
31
|
-
run(cached)
|
|
32
|
-
}
|
|
28
|
+
// Skip .toolkode cache — causes stale binary on upgrade. findBinary() resolves correctly.
|
|
33
29
|
|
|
34
30
|
const platformMap = {
|
|
35
31
|
darwin: "darwin",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolkit-cli/toolkode",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
4
4
|
"description": "The AI engineering terminal. Free.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://toolkode.com",
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"postinstall": "node ./postinstall.mjs || true"
|
|
12
12
|
},
|
|
13
13
|
"optionalDependencies": {
|
|
14
|
-
"@toolkit-cli/toolkode-darwin-arm64": "0.0.0-main-
|
|
15
|
-
"@toolkit-cli/toolkode-darwin-x64": "0.0.0-main-
|
|
16
|
-
"@toolkit-cli/toolkode-darwin-x64-baseline": "0.0.0-main-
|
|
17
|
-
"@toolkit-cli/toolkode-linux-arm64": "0.0.0-main-
|
|
18
|
-
"@toolkit-cli/toolkode-linux-arm64-musl": "0.0.0-main-
|
|
19
|
-
"@toolkit-cli/toolkode-linux-x64": "0.0.0-main-
|
|
20
|
-
"@toolkit-cli/toolkode-linux-x64-baseline": "0.0.0-main-
|
|
21
|
-
"@toolkit-cli/toolkode-linux-x64-musl": "0.0.0-main-
|
|
22
|
-
"@toolkit-cli/toolkode-linux-x64-baseline-musl": "0.0.0-main-
|
|
23
|
-
"@toolkit-cli/toolkode-windows-arm64": "0.0.0-main-
|
|
24
|
-
"@toolkit-cli/toolkode-windows-x64": "0.0.0-main-
|
|
25
|
-
"@toolkit-cli/toolkode-windows-x64-baseline": "0.0.0-main-
|
|
14
|
+
"@toolkit-cli/toolkode-darwin-arm64": "0.0.0-main-202603310359",
|
|
15
|
+
"@toolkit-cli/toolkode-darwin-x64": "0.0.0-main-202603310359",
|
|
16
|
+
"@toolkit-cli/toolkode-darwin-x64-baseline": "0.0.0-main-202603310359",
|
|
17
|
+
"@toolkit-cli/toolkode-linux-arm64": "0.0.0-main-202603310359",
|
|
18
|
+
"@toolkit-cli/toolkode-linux-arm64-musl": "0.0.0-main-202603310359",
|
|
19
|
+
"@toolkit-cli/toolkode-linux-x64": "0.0.0-main-202603310359",
|
|
20
|
+
"@toolkit-cli/toolkode-linux-x64-baseline": "0.0.0-main-202603310359",
|
|
21
|
+
"@toolkit-cli/toolkode-linux-x64-musl": "0.0.0-main-202603310359",
|
|
22
|
+
"@toolkit-cli/toolkode-linux-x64-baseline-musl": "0.0.0-main-202603310359",
|
|
23
|
+
"@toolkit-cli/toolkode-windows-arm64": "0.0.0-main-202603310359",
|
|
24
|
+
"@toolkit-cli/toolkode-windows-x64": "0.0.0-main-202603310359",
|
|
25
|
+
"@toolkit-cli/toolkode-windows-x64-baseline": "0.0.0-main-202603310359"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -106,17 +106,14 @@ async function main() {
|
|
|
106
106
|
return
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
// On non-Windows platforms,
|
|
110
|
-
// Don't
|
|
109
|
+
// On non-Windows platforms, verify the binary package exists.
|
|
110
|
+
// Don't cache via hardlink — causes stale binary issues on upgrade.
|
|
111
|
+
// The wrapper script's findBinary() resolves the correct binary at runtime.
|
|
111
112
|
const { binaryPath } = findBinary()
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
} catch {
|
|
117
|
-
fs.copyFileSync(binaryPath, target)
|
|
118
|
-
}
|
|
119
|
-
fs.chmodSync(target, 0o755)
|
|
113
|
+
console.log(`toolkode binary found: ${binaryPath}`)
|
|
114
|
+
// Clean up any stale cached binary from previous installs
|
|
115
|
+
const stale = path.join(__dirname, "bin", ".toolkode")
|
|
116
|
+
if (fs.existsSync(stale)) fs.unlinkSync(stale)
|
|
120
117
|
} catch (error) {
|
|
121
118
|
console.error("Failed to setup toolkode binary:", error.message)
|
|
122
119
|
process.exit(1)
|