kanbanai-agent 1.0.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.
- package/bombus-darwin +2 -0
- package/bombus-linux +2 -0
- package/bombus-win.exe +1 -0
- package/index.js +45 -0
- package/package.json +26 -0
- package/vendor/bombus-darwin +2 -0
package/bombus-darwin
ADDED
package/bombus-linux
ADDED
package/bombus-win.exe
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hello Bombus (Windows)
|
package/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const BinWrapper = require('bin-wrapper');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
// TODO: ์ค์ ๋ฐฐํฌ ์ ๋ณธ์ธ์ GitHub Release ์ฃผ์๋ก ๋ณ๊ฒฝํด์ผ ํฉ๋๋ค.
|
|
7
|
+
const baseUrl = 'https://github.com/pajamasi726/bombus-release/releases/download/v1.0.0/';
|
|
8
|
+
|
|
9
|
+
// OS๋ณ๋ก ๋ค์ด๋ก๋๋๋ ํ์ผ๋ช
์ด ๋ค๋ฅด๋ฏ๋ก, ์คํํ ํ์ผ๋ช
๋ ๊ทธ์ ๋ง์ถฐ์ค์ผ ํฉ๋๋ค.
|
|
10
|
+
let binName = '';
|
|
11
|
+
if (process.platform === 'win32') {
|
|
12
|
+
binName = 'bombus-win.exe';
|
|
13
|
+
} else if (process.platform === 'darwin') {
|
|
14
|
+
binName = 'bombus-darwin';
|
|
15
|
+
} else {
|
|
16
|
+
binName = 'bombus-linux';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const bin = new BinWrapper()
|
|
20
|
+
// 1. MacOS์ฉ ๋ฐ์ด๋๋ฆฌ ๋งคํ
|
|
21
|
+
.src(`${baseUrl}bombus-darwin`, 'darwin')
|
|
22
|
+
// 2. Linux์ฉ ๋ฐ์ด๋๋ฆฌ ๋งคํ
|
|
23
|
+
.src(`${baseUrl}bombus-linux`, 'linux')
|
|
24
|
+
// 3. Windows์ฉ ๋ฐ์ด๋๋ฆฌ ๋งคํ (.exe)
|
|
25
|
+
.src(`${baseUrl}bombus-win.exe`, 'win32')
|
|
26
|
+
.dest(path.join(__dirname, 'vendor'))
|
|
27
|
+
.use(binName); // ์์ ๋จ: ๋ค์ด๋ก๋๋ ํ์ผ๋ช
๊ณผ ๋์ผํ ์ด๋ฆ์ ์ฌ์ฉํ๋๋ก ๋ณ๊ฒฝ
|
|
28
|
+
|
|
29
|
+
// --install ํ๋๊ทธ๊ฐ ์์ผ๋ฉด ๋ค์ด๋ก๋๋ง ์ํ (postinstall์ฉ)
|
|
30
|
+
if (process.argv.includes('--install')) {
|
|
31
|
+
bin.download().then(() => {
|
|
32
|
+
console.log('โ KanbanAI Agent downloaded successfully.');
|
|
33
|
+
}).catch(err => {
|
|
34
|
+
console.error('โ Failed to download KanbanAI Agent:', err);
|
|
35
|
+
process.exit(1);
|
|
36
|
+
});
|
|
37
|
+
} else {
|
|
38
|
+
// ๊ทธ ์ธ์๋ ๋ค์ด๋ก๋๋ ๋ฐ์ด๋๋ฆฌ๋ฅผ ์คํํ๊ณ ์ธ์(args)๋ฅผ ์ ๋ฌ
|
|
39
|
+
bin.run(process.argv.slice(2), err => {
|
|
40
|
+
if (err) {
|
|
41
|
+
console.error('โ Error running KanbanAI Agent:', err);
|
|
42
|
+
process.exit(1);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "kanbanai-agent",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "KanbanAI: AI Development Agent Wrapper",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"kanbanai": "index.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"postinstall": "node index.js --install"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"ai",
|
|
15
|
+
"agent",
|
|
16
|
+
"kanbanai",
|
|
17
|
+
"spring-boot",
|
|
18
|
+
"wrapper"
|
|
19
|
+
],
|
|
20
|
+
"author": "steve",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"type": "commonjs",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"bin-wrapper": "^4.1.0"
|
|
25
|
+
}
|
|
26
|
+
}
|