@guandata/guanetl 0.1.16 → 0.1.17

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## @guandata/guanetl 0.1.17 - 2026-06-24
4
+
5
+ - `install-skill` 适配 WorkBuddy 配置目录,提升本机编码助手安装兼容性。
6
+
3
7
  ## @guandata/guanetl 0.1.16 - 2026-06-17
4
8
 
5
9
  - `save --dry-run` 增加保存影响预览基础能力,帮助在提交前检查关键配置变化。
package/README.md CHANGED
@@ -39,6 +39,10 @@ guanetl install-skill
39
39
 
40
40
  ## 版本更新
41
41
 
42
+ ### @guandata/guanetl 0.1.17
43
+
44
+ - `install-skill` 适配 WorkBuddy 配置目录,提升本机编码助手安装兼容性。
45
+
42
46
  ### @guandata/guanetl 0.1.16
43
47
 
44
48
  - `save --dry-run` 增加保存影响预览基础能力,帮助在提交前检查关键配置变化。
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, "guanetl");
106
+ if (status === 0) installBuddySkills(pkgRoot, "guanetl");
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/guanetl",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "观远 ETL 本地开发工具 - 拉取、编辑、导出、预览、保存 ETL",
5
5
  "bin": {
6
6
  "guanetl": "bin/run.js"