codebuff 0.0.4-legacy.0 → 0.0.6-legacy.0

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 -3
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -92,9 +92,7 @@ function httpGet(url, options = {}) {
92
92
 
93
93
  async function getLatestLegacyVersion() {
94
94
  try {
95
- const res = await httpGet(
96
- `https://registry.npmjs.org/${packageName}/legacy`,
97
- )
95
+ const res = await httpGet(`https://registry.npmjs.org/codebuff/legacy`)
98
96
 
99
97
  if (res.statusCode !== 200) return null
100
98
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebuff",
3
- "version": "0.0.4-legacy.0",
3
+ "version": "0.0.6-legacy.0",
4
4
  "description": "AI coding agent",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -8,6 +8,7 @@
8
8
  "cb": "index.js"
9
9
  },
10
10
  "scripts": {
11
+ "postinstall": "node -e \"const fs = require('fs'); const path = require('path'); const os = require('os'); const binaryPath = path.join(os.homedir(), '.config', 'manicode', process.platform === 'win32' ? 'codebuff.exe' : 'codebuff'); try { fs.unlinkSync(binaryPath) } catch (e) { /* ignore if file doesn't exist */ }\"",
11
12
  "preuninstall": "node -e \"const fs = require('fs'); const path = require('path'); const os = require('os'); const binaryPath = path.join(os.homedir(), '.config', 'manicode', process.platform === 'win32' ? 'codebuff.exe' : 'codebuff'); try { fs.unlinkSync(binaryPath) } catch (e) { /* ignore if file doesn't exist */ }\""
12
13
  },
13
14
  "files": [