@cloudglab/confluence-cli 0.0.1 → 0.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.0.2 - 2026-06-16
6
+
7
+ ### Fixed
8
+
9
+ - `createSkillAddArgs` 默认向 `npx -y skills add <source> --yes` 追加 `--global`,让 `npx -y @cloudglab/confluence-cli@latest install` 把 skill 装到 user-level 全局目录(`vercel-labs/skills` 的 `-g, --global` 选项)。修复 `npx ... install` 在 npx 临时目录里跑完被清理、导致 agent 找不到 skill 的问题。
10
+ - `tests/install.test.ts` 同步更新 3 处 `npx -y skills add` 期望参数为 `--global --yes`,覆盖默认安装、`--skill-source=npm` 与 `--skill-local-path` 三条路径。
11
+
12
+ ### Notes
13
+
14
+ - `runUninstallCommand` 链路已经通过 `createSkillRemoveArgs(true)` 覆盖全局 skill 清理,升级到 0.0.2 后 `confluence uninstall --confirm true` 会同时清理项目级与全局级残留,幂等。
15
+ - 0.0.1 → 0.0.2 升级仅影响 `npx ... install` / `npx ... update` 触发的 skill 安装路径,已经在 0.0.1 装到项目级的用户可以重新执行 `npx -y @cloudglab/confluence-cli@latest install` 让 skill 迁回全局。
16
+
5
17
  ## 0.0.1 - 2026-06-15
6
18
 
7
19
  ### Added
package/README.md CHANGED
@@ -32,6 +32,8 @@ confluence-reader list
32
32
  confluence-writer list
33
33
  ```
34
34
 
35
+ > `install` / `update` 默认把 Confluence skill 装到 user-level 全局目录(`npx -y skills add ... --global --yes`),不会落到当前项目目录。卸载链路会同时清理项目级与全局级残留。
36
+
35
37
  卸载入口(默认仅打印卸载计划,真实执行需显式确认):
36
38
 
37
39
  ```bash
package/dist/install.js CHANGED
@@ -159,7 +159,10 @@ function shouldRemoveConfig(options) {
159
159
  return !options.keepConfig && !options.cliOnly && !options.skillOnly;
160
160
  }
161
161
  function createSkillAddArgs(source) {
162
- return ["-y", "skills", "add", source, "--yes"];
162
+ // 默认装到全局(user-level)skill 目录,避免 `npx ... install` 在临时目录里
163
+ // 跑完被回收、导致 agent 找不到 skill。`--global` 与 `--yes` 配合 vercel-labs/skills
164
+ // 的 add 选项;卸载时通过 createSkillRemoveArgs(true) 同样走全局路径。
165
+ return ["-y", "skills", "add", source, "--global", "--yes"];
163
166
  }
164
167
  function createSkillRemoveArgs(global = false) {
165
168
  return ["-y", "skills", "remove", "confluence-cli", "--yes", ...(global ? ["--global"] : [])];
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.1",
2
+ "version": "0.0.2",
3
3
  "commands": [
4
4
  "addComment",
5
5
  "addLabels",
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.0.1";
1
+ export declare const VERSION = "0.0.2";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "0.0.1";
1
+ export const VERSION = "0.0.2";
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudglab/confluence-cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Confluence REST CLI for agents and local automation",
5
5
  "repository": {
6
6
  "type": "git",