codebuff 1.0.505 → 1.0.507
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/index.js +6 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -179,6 +179,10 @@ function getCurrentVersion() {
|
|
|
179
179
|
function compareVersions(v1, v2) {
|
|
180
180
|
if (!v1 || !v2) return 0
|
|
181
181
|
|
|
182
|
+
if (v1.match(/^\d+(\.\d+)*$/)) {
|
|
183
|
+
return -1
|
|
184
|
+
}
|
|
185
|
+
|
|
182
186
|
const parts1 = v1.split('.').map(Number)
|
|
183
187
|
const parts2 = v2.split('.').map(Number)
|
|
184
188
|
|
|
@@ -298,7 +302,8 @@ async function downloadBinary(version) {
|
|
|
298
302
|
}
|
|
299
303
|
|
|
300
304
|
async function ensureBinaryExists() {
|
|
301
|
-
|
|
305
|
+
const currentVersion = await getCurrentVersion()
|
|
306
|
+
if (currentVersion !== null && currentVersion !== 'error') {
|
|
302
307
|
return
|
|
303
308
|
}
|
|
304
309
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebuff",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.507",
|
|
4
4
|
"description": "AI coding agent",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
|
35
|
-
"url": "https://github.com/CodebuffAI/codebuff
|
|
35
|
+
"url": "https://github.com/CodebuffAI/codebuff.git"
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://codebuff.com",
|
|
38
38
|
"publishConfig": {
|