harmonyos-skills-pack 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/bin/cli.js +7 -0
  3. package/package.json +5 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 yibaiba
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/bin/cli.js CHANGED
@@ -38,6 +38,12 @@ const color = {
38
38
  // ── 参数解析 ──────────────────────────────────────────
39
39
  const args = process.argv.slice(2);
40
40
 
41
+ if (args.includes('--version') || args.includes('-v')) {
42
+ const pkg = require('../package.json');
43
+ console.log(pkg.version);
44
+ process.exit(0);
45
+ }
46
+
41
47
  if (args.includes('--help') || args.includes('-h')) {
42
48
  console.log(`
43
49
  ${color.bold('harmonyos-skills-pack')} — 鸿蒙 Ark AI Agent Skills 一键安装
@@ -45,6 +51,7 @@ ${color.bold('harmonyos-skills-pack')} — 鸿蒙 Ark AI Agent Skills 一键安
45
51
  ${color.cyan('用法:')}
46
52
  npx harmonyos-skills-pack 安装到当前目录
47
53
  npx harmonyos-skills-pack --target . 指定目标目录
54
+ npx harmonyos-skills-pack --version 查看版本号
48
55
  npx harmonyos-skills-pack --force 强制覆盖已有文件
49
56
  npx harmonyos-skills-pack --mirror 使用国内镜像加速下载
50
57
  npx harmonyos-skills-pack --claude-only 仅 .claude/skills
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harmonyos-skills-pack",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "一键安装鸿蒙 Ark 开发文档 + 通用产品质量 skills pack,适配 Claude/Copilot/Codex Agent",
5
5
  "keywords": [
6
6
  "harmonyos",
@@ -15,6 +15,10 @@
15
15
  ],
16
16
  "author": "yibaiba",
17
17
  "license": "MIT",
18
+ "homepage": "https://github.com/yibaiba/harmonyos-skills-pack#readme",
19
+ "bugs": {
20
+ "url": "https://github.com/yibaiba/harmonyos-skills-pack/issues"
21
+ },
18
22
  "repository": {
19
23
  "type": "git",
20
24
  "url": "https://github.com/yibaiba/harmonyos-skills-pack.git"