codebuff 1.0.588 → 1.0.590

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.
Files changed (2) hide show
  1. package/index.js +1 -57
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -192,51 +192,6 @@ function getCurrentVersion() {
192
192
  }
193
193
  }
194
194
 
195
- function runSmokeTest(binaryPath) {
196
- return new Promise((resolve) => {
197
- if (!fs.existsSync(binaryPath)) {
198
- resolve(false)
199
- return
200
- }
201
-
202
- const child = spawn(binaryPath, ['--version'], {
203
- cwd: os.homedir(),
204
- stdio: 'pipe',
205
- })
206
-
207
- let output = ''
208
-
209
- child.stdout.on('data', (data) => {
210
- output += data.toString()
211
- })
212
-
213
- const timeout = setTimeout(() => {
214
- child.kill('SIGTERM')
215
- setTimeout(() => {
216
- if (!child.killed) {
217
- child.kill('SIGKILL')
218
- }
219
- }, 1000)
220
- resolve(false)
221
- }, 5000)
222
-
223
- child.on('exit', (code) => {
224
- clearTimeout(timeout)
225
- // Check that it exits successfully and outputs something that looks like a version
226
- if (code === 0 && output.trim().match(/^\d+(\.\d+)*$/)) {
227
- resolve(true)
228
- } else {
229
- resolve(false)
230
- }
231
- })
232
-
233
- child.on('error', () => {
234
- clearTimeout(timeout)
235
- resolve(false)
236
- })
237
- })
238
- }
239
-
240
195
  function compareVersions(v1, v2) {
241
196
  if (!v1 || !v2) return 0
242
197
 
@@ -398,18 +353,7 @@ async function downloadBinary(version) {
398
353
  fs.chmodSync(tempBinaryPath, 0o755)
399
354
  }
400
355
 
401
- // Run smoke test on the downloaded binary
402
- term.write('Verifying download...')
403
- const smokeTestPassed = await runSmokeTest(tempBinaryPath)
404
-
405
- if (!smokeTestPassed) {
406
- fs.rmSync(CONFIG.tempDownloadDir, { recursive: true })
407
- const error = new Error('Downloaded binary failed smoke test (--version check)')
408
- trackUpdateFailed(error.message, version, { stage: 'smoke_test' })
409
- throw error
410
- }
411
-
412
- // Smoke test passed - move binary to final location
356
+ // Move binary to final location
413
357
  try {
414
358
  if (fs.existsSync(CONFIG.binaryPath)) {
415
359
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebuff",
3
- "version": "1.0.588",
3
+ "version": "1.0.590",
4
4
  "description": "AI coding agent",
5
5
  "license": "MIT",
6
6
  "bin": {