@kilocode/cli 7.3.22 → 7.3.28
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/package.json +13 -13
- package/postinstall.mjs +13 -1
package/package.json
CHANGED
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
"scripts": {
|
|
8
8
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
9
9
|
},
|
|
10
|
-
"version": "7.3.
|
|
10
|
+
"version": "7.3.28",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@kilocode/cli-linux-arm64-musl": "7.3.
|
|
14
|
-
"@kilocode/cli-darwin-x64-baseline": "7.3.
|
|
15
|
-
"@kilocode/cli-windows-arm64": "7.3.
|
|
16
|
-
"@kilocode/cli-linux-arm64": "7.3.
|
|
17
|
-
"@kilocode/cli-linux-x64": "7.3.
|
|
18
|
-
"@kilocode/cli-darwin-arm64": "7.3.
|
|
19
|
-
"@kilocode/cli-windows-x64": "7.3.
|
|
20
|
-
"@kilocode/cli-linux-x64-musl": "7.3.
|
|
21
|
-
"@kilocode/cli-windows-x64-baseline": "7.3.
|
|
22
|
-
"@kilocode/cli-darwin-x64": "7.3.
|
|
23
|
-
"@kilocode/cli-linux-x64-baseline-musl": "7.3.
|
|
24
|
-
"@kilocode/cli-linux-x64-baseline": "7.3.
|
|
13
|
+
"@kilocode/cli-linux-arm64-musl": "7.3.28",
|
|
14
|
+
"@kilocode/cli-darwin-x64-baseline": "7.3.28",
|
|
15
|
+
"@kilocode/cli-windows-arm64": "7.3.28",
|
|
16
|
+
"@kilocode/cli-linux-arm64": "7.3.28",
|
|
17
|
+
"@kilocode/cli-linux-x64": "7.3.28",
|
|
18
|
+
"@kilocode/cli-darwin-arm64": "7.3.28",
|
|
19
|
+
"@kilocode/cli-windows-x64": "7.3.28",
|
|
20
|
+
"@kilocode/cli-linux-x64-musl": "7.3.28",
|
|
21
|
+
"@kilocode/cli-windows-x64-baseline": "7.3.28",
|
|
22
|
+
"@kilocode/cli-darwin-x64": "7.3.28",
|
|
23
|
+
"@kilocode/cli-linux-x64-baseline-musl": "7.3.28",
|
|
24
|
+
"@kilocode/cli-linux-x64-baseline": "7.3.28"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
package/postinstall.mjs
CHANGED
|
@@ -126,7 +126,7 @@ function findBinary() {
|
|
|
126
126
|
}
|
|
127
127
|
// kilocode_change end
|
|
128
128
|
|
|
129
|
-
// kilocode_change start - copy
|
|
129
|
+
// kilocode_change start - copy runtime resources next to cached binary
|
|
130
130
|
function copyTreeSitterResources(binaryPath) {
|
|
131
131
|
const source = path.join(path.dirname(binaryPath), "tree-sitter")
|
|
132
132
|
const target = path.join(__dirname, "bin", "tree-sitter")
|
|
@@ -137,6 +137,17 @@ function copyTreeSitterResources(binaryPath) {
|
|
|
137
137
|
fs.rmSync(target, { recursive: true, force: true })
|
|
138
138
|
fs.cpSync(source, target, { recursive: true })
|
|
139
139
|
}
|
|
140
|
+
|
|
141
|
+
function copyConsoleResources(binaryPath) {
|
|
142
|
+
const source = path.join(path.dirname(binaryPath), "console")
|
|
143
|
+
const target = path.join(__dirname, "bin", "console")
|
|
144
|
+
const index = path.join(source, "index.html")
|
|
145
|
+
|
|
146
|
+
if (!fs.existsSync(index)) return
|
|
147
|
+
|
|
148
|
+
fs.rmSync(target, { recursive: true, force: true })
|
|
149
|
+
fs.cpSync(source, target, { recursive: true })
|
|
150
|
+
}
|
|
140
151
|
// kilocode_change end
|
|
141
152
|
|
|
142
153
|
function main() {
|
|
@@ -155,6 +166,7 @@ function main() {
|
|
|
155
166
|
fs.copyFileSync(binaryPath, target)
|
|
156
167
|
}
|
|
157
168
|
copyTreeSitterResources(binaryPath) // kilocode_change
|
|
169
|
+
copyConsoleResources(binaryPath) // kilocode_change
|
|
158
170
|
fs.chmodSync(target, 0o755)
|
|
159
171
|
}
|
|
160
172
|
|