snow-flow 9.0.176 → 9.0.178

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/postinstall.cjs +3 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "9.0.176",
3
+ "version": "9.0.178",
4
4
  "name": "snow-flow",
5
5
  "description": "Snow-Flow - AI-powered ServiceNow development CLI with 410+ MCP tools",
6
6
  "type": "module",
package/postinstall.cjs CHANGED
@@ -124,14 +124,9 @@ async function downloadBinary() {
124
124
  const tarballPath = path.join(tmpDir, tarballName);
125
125
  fs.writeFileSync(tarballPath, tarballData);
126
126
 
127
- // Ensure bin directory exists
128
- if (!fs.existsSync(binDir)) {
129
- fs.mkdirSync(binDir, { recursive: true });
130
- }
131
-
132
- // Extract using tar command
133
- console.log('Extracting binary...');
134
- execSync(`tar -xzf "${tarballPath}" -C "${binDir}" --strip-components=1`, { stdio: 'pipe' });
127
+ // Extract using tar command (extracts bin/ and bundled-skills/ to packageDir)
128
+ console.log('Extracting binary and bundled skills...');
129
+ execSync(`tar -xzf "${tarballPath}" -C "${packageDir}"`, { stdio: 'pipe' });
135
130
 
136
131
  // Clean up
137
132
  fs.unlinkSync(tarballPath);