agentskillscanner 0.1.1 → 0.1.2
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/README.md +24 -0
- package/dist/index.js +10 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,18 @@ agentskillscanner --level user,project
|
|
|
52
52
|
agentskillscanner --verbose
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
### Supported Platforms
|
|
56
|
+
|
|
57
|
+
All scan levels (User, Project, Plugin, Enterprise) are supported on macOS, Linux, and Windows.
|
|
58
|
+
|
|
59
|
+
The Enterprise-level scan directory varies by OS:
|
|
60
|
+
|
|
61
|
+
| OS | Enterprise Directory |
|
|
62
|
+
| ------- | ----------------------------------------- |
|
|
63
|
+
| macOS | `/Library/Application Support/ClaudeCode` |
|
|
64
|
+
| Linux | `/etc/claude-code` |
|
|
65
|
+
| Windows | `C:\ProgramData\ClaudeCode` |
|
|
66
|
+
|
|
55
67
|
### Development
|
|
56
68
|
|
|
57
69
|
```bash
|
|
@@ -108,6 +120,18 @@ agentskillscanner --level user,project
|
|
|
108
120
|
agentskillscanner --verbose
|
|
109
121
|
```
|
|
110
122
|
|
|
123
|
+
### 支援平台
|
|
124
|
+
|
|
125
|
+
所有掃描層級(User、Project、Plugin、Enterprise)皆支援 macOS、Linux 與 Windows。
|
|
126
|
+
|
|
127
|
+
Enterprise 層級的掃描目錄依作業系統不同:
|
|
128
|
+
|
|
129
|
+
| 作業系統 | Enterprise 目錄 |
|
|
130
|
+
| -------- | ----------------------------------------- |
|
|
131
|
+
| macOS | `/Library/Application Support/ClaudeCode` |
|
|
132
|
+
| Linux | `/etc/claude-code` |
|
|
133
|
+
| Windows | `C:\ProgramData\ClaudeCode` |
|
|
134
|
+
|
|
111
135
|
### 開發
|
|
112
136
|
|
|
113
137
|
```bash
|
package/dist/index.js
CHANGED
|
@@ -268,10 +268,17 @@ var Scanner = class {
|
|
|
268
268
|
for (const hookName of Object.keys(hooksMap).sort()) items.push(this.makePluginSkill(hookName, SkillType.HOOK, hooksJson, pinfo, hookDesc));
|
|
269
269
|
return items;
|
|
270
270
|
}
|
|
271
|
+
getEnterpriseDir() {
|
|
272
|
+
switch (platform()) {
|
|
273
|
+
case "darwin": return "/Library/Application Support/ClaudeCode";
|
|
274
|
+
case "linux": return "/etc/claude-code";
|
|
275
|
+
case "win32": return "C:\\ProgramData\\ClaudeCode";
|
|
276
|
+
default: return "";
|
|
277
|
+
}
|
|
278
|
+
}
|
|
271
279
|
scanEnterprise() {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
if (!isDir(entDir)) return [];
|
|
280
|
+
const entDir = this.getEnterpriseDir();
|
|
281
|
+
if (!entDir || !isDir(entDir)) return [];
|
|
275
282
|
const items = [];
|
|
276
283
|
const skillsSub = join(entDir, "skills");
|
|
277
284
|
if (isDir(skillsSub)) items.push(...this.scanSkillDir(skillsSub, SkillLevel.ENTERPRISE));
|