hintshell 0.1.0-beta.1 → 0.1.0-beta.3

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": "hintshell",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.1.0-beta.3",
4
4
  "description": "AI-Powered Terminal Auto-Suggestion Engine — learns your command history and suggests commands in real-time",
5
5
  "keywords": [
6
6
  "terminal",
@@ -64,11 +64,9 @@ function downloadFile(url, dest) {
64
64
  function extractArchive(archivePath, destDir) {
65
65
  const platform = os.platform();
66
66
  if (platform === "win32") {
67
- // Use PowerShell to extract zip
68
- execSync(
69
- `powershell -Command "Expand-Archive -Path '${archivePath}' -DestinationPath '${destDir}' -Force"`,
70
- { stdio: "inherit" }
71
- );
67
+ // Windows 10+ has tar (bsdtar) built-in which fully supports zip files.
68
+ // It avoids execution policy and auto-load module issues from PowerShell's Expand-Archive.
69
+ execSync(`tar -xf "${archivePath}" -C "${destDir}"`, { stdio: "inherit" });
72
70
  } else {
73
71
  execSync(`tar xzf "${archivePath}" -C "${destDir}"`, { stdio: "inherit" });
74
72
  }