@accio-ai/cli 0.1.9-rc.3 → 0.1.10-rc.1

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.
Binary file
package/install.js CHANGED
@@ -34,9 +34,25 @@ function copyChildren(srcDir, destDir) {
34
34
  }
35
35
  }
36
36
 
37
+ function tryRun(command, args) {
38
+ try {
39
+ childProcess.execFileSync(command, args, { stdio: "pipe" });
40
+ return true;
41
+ } catch {
42
+ return false;
43
+ }
44
+ }
45
+
37
46
  function extractSkills(zipPath, destDir) {
38
47
  ensureCleanDir(destDir);
39
48
  if (process.platform === "win32") {
49
+ // tar.exe is built into Windows 10 1803+ and is more reliable than PowerShell
50
+ if (tryRun("tar.exe", ["-xf", zipPath, "-C", destDir])) {
51
+ return;
52
+ }
53
+ // Re-clean in case tar left partial files
54
+ ensureCleanDir(destDir);
55
+ // Fallback to PowerShell if tar is unavailable
40
56
  run("powershell.exe", [
41
57
  "-NoLogo",
42
58
  "-NoProfile",
@@ -82,8 +98,13 @@ function main() {
82
98
  return;
83
99
  }
84
100
 
85
- extractSkills(skillsPath, skillDir);
86
- installSkillsToHomes(skillDir);
101
+ try {
102
+ extractSkills(skillsPath, skillDir);
103
+ installSkillsToHomes(skillDir);
104
+ } catch (e) {
105
+ console.warn(`warning: skills installation failed (${e.message || e}), skipping`);
106
+ console.warn(" The CLI binary is still usable without skills.");
107
+ }
87
108
 
88
109
  // 清除缓存,确保用户立即看到最新命令
89
110
  clearWorkctlCache(configDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@accio-ai/cli",
3
- "version": "0.1.9-rc.3",
3
+ "version": "0.1.10-rc.1",
4
4
  "description": "Work Agent CLI - AI-native command line interface",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -18,12 +18,12 @@
18
18
  "postinstall": "node install.js"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@accio-ai/cli-darwin-arm64": "0.1.9-rc.3",
22
- "@accio-ai/cli-darwin-x64": "0.1.9-rc.3",
23
- "@accio-ai/cli-linux-arm64": "0.1.9-rc.3",
24
- "@accio-ai/cli-linux-x64": "0.1.9-rc.3",
25
- "@accio-ai/cli-win32-arm64": "0.1.9-rc.3",
26
- "@accio-ai/cli-win32-x64": "0.1.9-rc.3"
21
+ "@accio-ai/cli-darwin-arm64": "0.1.10-rc.1",
22
+ "@accio-ai/cli-darwin-x64": "0.1.10-rc.1",
23
+ "@accio-ai/cli-linux-arm64": "0.1.10-rc.1",
24
+ "@accio-ai/cli-linux-x64": "0.1.10-rc.1",
25
+ "@accio-ai/cli-win32-arm64": "0.1.10-rc.1",
26
+ "@accio-ai/cli-win32-x64": "0.1.10-rc.1"
27
27
  },
28
28
  "publishConfig": {
29
29
  "registry": "https://registry.npmjs.org"