freebuff 0.0.122 → 0.0.124
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/http.js +231 -10
- package/index.js +26 -981
- package/launcher.js +1211 -0
- package/package.json +4 -4
- package/postinstall.js +0 -33
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "freebuff",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.124",
|
|
4
4
|
"description": "The world's strongest free coding agent",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
7
7
|
"freebuff": "index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"prepack": "node ../../../cli/release-core/prepare-package.js",
|
|
11
|
+
"postpack": "node ../../../cli/release-core/prepare-package.js --clean"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"index.js",
|
|
15
|
+
"launcher.js",
|
|
15
16
|
"http.js",
|
|
16
|
-
"postinstall.js",
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
19
|
"os": [
|
package/postinstall.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const os = require('os');
|
|
5
|
-
const path = require('path');
|
|
6
|
-
|
|
7
|
-
// Clean up old binary to force fresh download on next launch
|
|
8
|
-
const binaryPath = path.join(
|
|
9
|
-
os.homedir(),
|
|
10
|
-
'.config',
|
|
11
|
-
'manicode',
|
|
12
|
-
process.platform === 'win32' ? 'freebuff.exe' : 'freebuff'
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
try {
|
|
16
|
-
fs.unlinkSync(binaryPath);
|
|
17
|
-
} catch (e) {
|
|
18
|
-
/* ignore if file doesn't exist */
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
console.log('\n');
|
|
22
|
-
console.log('⚡ Welcome to Freebuff!');
|
|
23
|
-
console.log('\n');
|
|
24
|
-
console.log('To get started:');
|
|
25
|
-
console.log(' 1. cd to your project directory');
|
|
26
|
-
console.log(' 2. Run: freebuff');
|
|
27
|
-
console.log('\n');
|
|
28
|
-
console.log('Example:');
|
|
29
|
-
console.log(' $ cd ~/my-project');
|
|
30
|
-
console.log(' $ freebuff');
|
|
31
|
-
console.log('\n');
|
|
32
|
-
console.log('For more information, visit: https://codebuff.com/docs');
|
|
33
|
-
console.log('\n');
|