@kilocode/cli 7.0.29 → 7.0.32
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/kilo +9 -0
- package/package.json +12 -12
- package/postinstall.mjs +8 -2
package/bin/kilo
CHANGED
|
@@ -22,6 +22,15 @@ if (envPath) {
|
|
|
22
22
|
run(envPath)
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
const scriptPath = fs.realpathSync(__filename)
|
|
26
|
+
const scriptDir = path.dirname(scriptPath)
|
|
27
|
+
|
|
28
|
+
//
|
|
29
|
+
const cached = path.join(scriptDir, ".kilo")
|
|
30
|
+
if (fs.existsSync(cached)) {
|
|
31
|
+
run(cached)
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
const platformMap = {
|
|
26
35
|
darwin: "darwin",
|
|
27
36
|
linux: "linux",
|
package/package.json
CHANGED
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
"scripts": {
|
|
8
8
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
9
9
|
},
|
|
10
|
-
"version": "7.0.
|
|
10
|
+
"version": "7.0.32",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@kilocode/cli-
|
|
14
|
-
"@kilocode/cli-linux-x64-
|
|
15
|
-
"@kilocode/cli-
|
|
16
|
-
"@kilocode/cli-linux-
|
|
17
|
-
"@kilocode/cli-
|
|
18
|
-
"@kilocode/cli-
|
|
19
|
-
"@kilocode/cli-
|
|
20
|
-
"@kilocode/cli-
|
|
21
|
-
"@kilocode/cli-
|
|
22
|
-
"@kilocode/cli-
|
|
23
|
-
"@kilocode/cli-
|
|
13
|
+
"@kilocode/cli-linux-arm64": "7.0.32",
|
|
14
|
+
"@kilocode/cli-linux-x64-musl": "7.0.32",
|
|
15
|
+
"@kilocode/cli-darwin-arm64": "7.0.32",
|
|
16
|
+
"@kilocode/cli-linux-arm64-musl": "7.0.32",
|
|
17
|
+
"@kilocode/cli-windows-x64": "7.0.32",
|
|
18
|
+
"@kilocode/cli-linux-x64-baseline-musl": "7.0.32",
|
|
19
|
+
"@kilocode/cli-linux-x64": "7.0.32",
|
|
20
|
+
"@kilocode/cli-darwin-x64-baseline": "7.0.32",
|
|
21
|
+
"@kilocode/cli-darwin-x64": "7.0.32",
|
|
22
|
+
"@kilocode/cli-windows-x64-baseline": "7.0.32",
|
|
23
|
+
"@kilocode/cli-linux-x64-baseline": "7.0.32"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
package/postinstall.mjs
CHANGED
|
@@ -109,8 +109,14 @@ async function main() {
|
|
|
109
109
|
// On non-Windows platforms, just verify the binary package exists
|
|
110
110
|
// Don't replace the wrapper script - it handles binary execution
|
|
111
111
|
const { binaryPath } = findBinary()
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
const target = path.join(__dirname, "bin", ".kilo") // kilocode_change
|
|
113
|
+
if (fs.existsSync(target)) fs.unlinkSync(target)
|
|
114
|
+
try {
|
|
115
|
+
fs.linkSync(binaryPath, target)
|
|
116
|
+
} catch {
|
|
117
|
+
fs.copyFileSync(binaryPath, target)
|
|
118
|
+
}
|
|
119
|
+
fs.chmodSync(target, 0o755)
|
|
114
120
|
} catch (error) {
|
|
115
121
|
console.error("Failed to setup kilo binary:", error.message)
|
|
116
122
|
process.exit(1)
|