@guandata/guanvis 0.1.27 → 0.1.28

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
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## @guandata/guanvis 0.1.28 - 2026-06-24
4
+
5
+ - 修复自定义图表重复生成数据视图卡片的问题,减少资源包中的冗余或冲突配置。
6
+ - `install-skill` 适配 WorkBuddy 配置目录,提升本机编码助手安装兼容性。
7
+
3
8
  ## @guandata/guanvis 0.1.27 - 2026-06-17
4
9
 
5
10
  - `publish` / `upload` 避免发布前对 Card 做额外导入探测,减少无权限或跨环境场景下的误拦截。
package/README.md CHANGED
@@ -51,6 +51,11 @@ guanvis publish ./my_dashboard/ --allow-overwrite
51
51
 
52
52
  ## 版本更新
53
53
 
54
+ ### @guandata/guanvis 0.1.28
55
+
56
+ - 修复自定义图表重复生成数据视图卡片的问题,减少资源包中的冗余或冲突配置。
57
+ - `install-skill` 适配 WorkBuddy 配置目录,提升本机编码助手安装兼容性。
58
+
54
59
  ### @guandata/guanvis 0.1.27
55
60
 
56
61
  - `publish` / `upload` 避免发布前对 Card 做额外导入探测,减少无权限或跨环境场景下的误拦截。
package/bin/run.js CHANGED
@@ -51,20 +51,32 @@ function copyDirectory(src, dest) {
51
51
  }
52
52
  }
53
53
 
54
- function installCodeBuddySkill(pkgRoot, skill) {
55
- try {
56
- const srcDir = path.join(pkgRoot, "skills", skill);
57
- if (!fs.existsSync(path.join(srcDir, "SKILL.md"))) {
58
- console.warn(`Warning: skipping CodeBuddy/WorkBuddy install; skill not found: ${srcDir}`);
59
- return;
60
- }
54
+ function installBuddySkills(pkgRoot, skill) {
55
+ const srcDir = path.join(pkgRoot, "skills", skill);
56
+ if (!fs.existsSync(path.join(srcDir, "SKILL.md"))) {
57
+ console.warn(`Warning: skipping buddy install; skill not found: ${srcDir}`);
58
+ return;
59
+ }
61
60
 
62
- const configDir = process.env.CODEBUDDY_CONFIG_DIR || path.join(os.homedir(), ".codebuddy");
63
- const destDir = path.join(configDir, "skills", skill);
64
- copyDirectory(srcDir, destDir);
65
- console.log(`Installed ${skill} to CodeBuddy/WorkBuddy: ${destDir}`);
66
- } catch (err) {
67
- console.warn(`Warning: CodeBuddy/WorkBuddy install failed for ${skill}: ${err.message}`);
61
+ const targets = [
62
+ {
63
+ name: "CodeBuddy",
64
+ configDir: process.env.CODEBUDDY_CONFIG_DIR || path.join(os.homedir(), ".codebuddy"),
65
+ },
66
+ {
67
+ name: "WorkBuddy",
68
+ configDir: process.env.WORKBUDDY_CONFIG_DIR || path.join(os.homedir(), ".workbuddy"),
69
+ },
70
+ ];
71
+
72
+ for (const target of targets) {
73
+ try {
74
+ const destDir = path.join(target.configDir, "skills", skill);
75
+ copyDirectory(srcDir, destDir);
76
+ console.log(`Installed ${skill} to ${target.name}: ${destDir}`);
77
+ } catch (err) {
78
+ console.warn(`Warning: ${target.name} install failed for ${skill}: ${err.message}`);
79
+ }
68
80
  }
69
81
  }
70
82
 
@@ -91,7 +103,7 @@ if (process.argv[2] === "install-skill") {
91
103
  const result = spawnSync("npx", args, { stdio: "inherit", env: process.env, shell: true });
92
104
  if (result.error) throw result.error;
93
105
  const status = result.status || 0;
94
- if (status === 0) installCodeBuddySkill(pkgRoot, "guanvis");
106
+ if (status === 0) installBuddySkills(pkgRoot, "guanvis");
95
107
  process.exit(status);
96
108
  }
97
109
 
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guandata/guanvis",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "观远 BI Card/Page 生成工具 - 通过 JS DSL 创建图表和仪表板",
5
5
  "bin": {
6
6
  "guanvis": "bin/run.js"