stigmergy 1.3.24-beta.0 → 1.3.25-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stigmergy",
3
- "version": "1.3.24-beta.0",
3
+ "version": "1.3.25-beta.0",
4
4
  "description": "Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -115,22 +115,20 @@
115
115
  },
116
116
  "dependencies": {
117
117
  "chalk": "^4.1.2",
118
- "commander": "^11.1.0",
119
- "inquirer": "^8.2.6",
118
+ "commander": "^14.0.2",
119
+ "inquirer": "^13.1.0",
120
120
  "js-yaml": "^4.1.1",
121
121
  "semver": "^7.7.3"
122
122
  },
123
123
  "devDependencies": {
124
- "@playwright/browser-chromium": "^1.57.0",
125
- "@playwright/test": "^1.57.0",
126
- "eslint": "^8.57.1",
127
- "jest": "^29.7.0",
124
+ "eslint": "^9.39.2",
125
+ "jest": "^30.2.0",
128
126
  "prettier": "^3.7.4",
129
- "rimraf": "^6.1.2",
130
- "webpack": "^5.104.1",
131
- "webpack-cli": "^6.0.1",
132
- "webpack-dev-server": "^5.2.2"
127
+ "rimraf": "^6.1.2"
133
128
  },
129
+ "optionalDependencies": {},
130
+ "peerDependencies": {},
131
+ "bundledDependencies": [],
134
132
  "config": {
135
133
  "encoding": "ansi",
136
134
  "platform": "nodejs-first",
@@ -84,11 +84,23 @@ class BuiltinSkillsDeployer {
84
84
  async deployToCLI(skill, cliName) {
85
85
  try {
86
86
  const cliHomeDir = path.join(os.homedir(), `.${cliName}`);
87
+
88
+ // Check if CLI exists
89
+ if (!fs.existsSync(cliHomeDir)) {
90
+ console.warn(`[BUILTIN_SKILLS] CLI not found: ${cliName} (${cliHomeDir})`);
91
+ return { success: false, cliName, skillName: skill.name, error: 'CLI not installed' };
92
+ }
93
+
87
94
  const cliSkillsDir = path.join(cliHomeDir, 'skills', skill.name);
88
95
 
89
96
  // Create skills directory
90
97
  if (!fs.existsSync(cliSkillsDir)) {
91
- fs.mkdirSync(cliSkillsDir, { recursive: true });
98
+ try {
99
+ fs.mkdirSync(cliSkillsDir, { recursive: true });
100
+ } catch (error) {
101
+ console.error(`[BUILTIN_SKILLS] Failed to create skills directory for ${cliName}:`, error.message);
102
+ return { success: false, cliName, skillName: skill.name, error: error.message };
103
+ }
92
104
  }
93
105
 
94
106
  // Copy skill files
@@ -97,12 +109,18 @@ class BuiltinSkillsDeployer {
97
109
  const sourcePath = path.join(this.skillsBaseDir, file.source);
98
110
  const destPath = path.join(cliSkillsDir, path.basename(file.destination));
99
111
 
100
- if (fs.existsSync(sourcePath)) {
112
+ if (!fs.existsSync(sourcePath)) {
113
+ console.warn(`[BUILTIN_SKILLS] Source file not found: ${sourcePath}`);
114
+ continue;
115
+ }
116
+
117
+ try {
101
118
  const content = fs.readFileSync(sourcePath, 'utf8');
102
119
  fs.writeFileSync(destPath, content);
103
120
  console.log(`[BUILTIN_SKILLS] Deployed ${file.source} to ${cliName}`);
104
- } else {
105
- console.warn(`[BUILTIN_SKILLS] Source file not found: ${sourcePath}`);
121
+ } catch (error) {
122
+ console.error(`[BUILTIN_SKILLS] Failed to copy ${file.source} to ${cliName}:`, error.message);
123
+ return { success: false, cliName, skillName: skill.name, error: error.message };
106
124
  }
107
125
  }
108
126