@dayinxisheng/skillctl 1.1.0 → 1.2.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/CHANGELOG.md +58 -58
- package/LICENSE +21 -21
- package/README.md +389 -389
- package/dist/commands/repo.d.ts +14 -0
- package/dist/commands/repo.d.ts.map +1 -0
- package/dist/commands/repo.js +50 -0
- package/dist/commands/repo.js.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/repo-handler.d.ts +27 -0
- package/dist/lib/repo-handler.d.ts.map +1 -0
- package/dist/lib/repo-handler.js +284 -0
- package/dist/lib/repo-handler.js.map +1 -0
- package/dist/types/index.d.ts +33 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/errors.d.ts +5 -0
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +8 -0
- package/dist/utils/errors.js.map +1 -1
- package/package.json +56 -56
- package/dist/commands/set-repo.d.ts +0 -6
- package/dist/commands/set-repo.d.ts.map +0 -1
- package/dist/commands/set-repo.js +0 -19
- package/dist/commands/set-repo.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dayinxisheng/skillctl",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Claude Skills 管理工具 - 管理 Claude Skills 的激活状态和项目归档",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"skillctl": "dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"type": "module",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
12
|
-
"dev": "tsc --watch",
|
|
13
|
-
"test": "vitest",
|
|
14
|
-
"test:ui": "vitest --ui",
|
|
15
|
-
"test:coverage": "vitest --coverage",
|
|
16
|
-
"lint": "eslint src --ext .ts",
|
|
17
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
18
|
-
"prepublishOnly": "npm run build"
|
|
19
|
-
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"claude",
|
|
22
|
-
"skills",
|
|
23
|
-
"cli",
|
|
24
|
-
"management",
|
|
25
|
-
"symlink"
|
|
26
|
-
],
|
|
27
|
-
"author": "hrjlab",
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"chalk": "^5.3.0",
|
|
31
|
-
"cli-table3": "^0.6.5",
|
|
32
|
-
"commander": "^12.1.0",
|
|
33
|
-
"ora": "^8.1.1"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/node": "^22.10.5",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
38
|
-
"@typescript-eslint/parser": "^8.19.1",
|
|
39
|
-
"@vitest/ui": "^2.1.8",
|
|
40
|
-
"eslint": "^9.17.0",
|
|
41
|
-
"typescript": "^5.7.2",
|
|
42
|
-
"vitest": "^2.1.8"
|
|
43
|
-
},
|
|
44
|
-
"engines": {
|
|
45
|
-
"node": ">=18.0.0"
|
|
46
|
-
},
|
|
47
|
-
"files": [
|
|
48
|
-
"dist",
|
|
49
|
-
"README.md",
|
|
50
|
-
"LICENSE",
|
|
51
|
-
"CHANGELOG.md"
|
|
52
|
-
],
|
|
53
|
-
"publishConfig": {
|
|
54
|
-
"access": "public"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dayinxisheng/skillctl",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Claude Skills 管理工具 - 管理 Claude Skills 的激活状态和项目归档",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"skillctl": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"dev": "tsc --watch",
|
|
13
|
+
"test": "vitest",
|
|
14
|
+
"test:ui": "vitest --ui",
|
|
15
|
+
"test:coverage": "vitest --coverage",
|
|
16
|
+
"lint": "eslint src --ext .ts",
|
|
17
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
18
|
+
"prepublishOnly": "npm run build"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"claude",
|
|
22
|
+
"skills",
|
|
23
|
+
"cli",
|
|
24
|
+
"management",
|
|
25
|
+
"symlink"
|
|
26
|
+
],
|
|
27
|
+
"author": "hrjlab",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"chalk": "^5.3.0",
|
|
31
|
+
"cli-table3": "^0.6.5",
|
|
32
|
+
"commander": "^12.1.0",
|
|
33
|
+
"ora": "^8.1.1"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^22.10.5",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
38
|
+
"@typescript-eslint/parser": "^8.19.1",
|
|
39
|
+
"@vitest/ui": "^2.1.8",
|
|
40
|
+
"eslint": "^9.17.0",
|
|
41
|
+
"typescript": "^5.7.2",
|
|
42
|
+
"vitest": "^2.1.8"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18.0.0"
|
|
46
|
+
},
|
|
47
|
+
"files": [
|
|
48
|
+
"dist",
|
|
49
|
+
"README.md",
|
|
50
|
+
"LICENSE",
|
|
51
|
+
"CHANGELOG.md"
|
|
52
|
+
],
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-repo.d.ts","sourceRoot":"","sources":["../../src/commands/set-repo.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,wBAAsB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAG7D;AAED,wBAAsB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAO7C"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Set-repo 命令 - 设置仓库路径
|
|
3
|
-
*/
|
|
4
|
-
import { setRepository, getRepository } from '../lib/config-manager.js';
|
|
5
|
-
import { printSuccess, printInfo } from '../utils/output.js';
|
|
6
|
-
export async function setRepo(repoPath) {
|
|
7
|
-
await setRepository(repoPath);
|
|
8
|
-
printSuccess(`仓库路径已设置: ${repoPath}`);
|
|
9
|
-
}
|
|
10
|
-
export async function getRepo() {
|
|
11
|
-
const repo = await getRepository();
|
|
12
|
-
if (repo) {
|
|
13
|
-
printInfo(`当前仓库: ${repo}`);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
printInfo('未设置仓库路径');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=set-repo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-repo.js","sourceRoot":"","sources":["../../src/commands/set-repo.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,QAAgB;IAC5C,MAAM,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC9B,YAAY,CAAC,YAAY,QAAQ,EAAE,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,OAAO;IAC3B,MAAM,IAAI,GAAG,MAAM,aAAa,EAAE,CAAC;IACnC,IAAI,IAAI,EAAE,CAAC;QACT,SAAS,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IAC7B,CAAC;SAAM,CAAC;QACN,SAAS,CAAC,SAAS,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
|