@gobestdev/agent-unittest 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/bin/index.js +21 -0
- package/package.json +13 -0
package/bin/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import degit from 'degit';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
|
|
6
|
+
// Thư mục đích muốn lưu ở máy người dùng (thư mục hiện hành đang đứng chạy lệnh)
|
|
7
|
+
const targetDir = path.join(process.cwd(), 'agent-skills');
|
|
8
|
+
|
|
9
|
+
// Cấu trúc repo: <username>/<repo>/<sub-folder>#<branch>
|
|
10
|
+
const emitter = degit('HoangGiuTienNhat/Agent-Unit-Testing/.agents/skills#main', {
|
|
11
|
+
cache: false,
|
|
12
|
+
force: true,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
console.log('⏳ Downloading agent skills from GitHub...');
|
|
16
|
+
|
|
17
|
+
emitter.clone(targetDir).then(() => {
|
|
18
|
+
console.log(`✅ Success! Skills downloaded to: ${targetDir}`);
|
|
19
|
+
}).catch(err => {
|
|
20
|
+
console.error('❌ Error downloading skills:', err.message);
|
|
21
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gobestdev/agent-unittest",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "CLI to download agent skills",
|
|
5
|
+
"main": "bin/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"get-agent-skills": "./bin/index.js"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"degit": "^2.8.4"
|
|
12
|
+
}
|
|
13
|
+
}
|