@minhpnq1807/contextos 0.5.29 → 0.5.30

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
+ ## 0.5.30
4
+
5
+ - **Fix Windows skillshare post-install hang:** After the PowerShell installer adds skillshare to PATH, the current Node.js process still has the old `process.env.PATH`. Now injects the known Windows install directory (`%LOCALAPPDATA%\\Programs\\skillshare`) into `process.env.PATH` immediately after install, so `skillshare --version`, `skillshare init`, and subsequent calls resolve without restarting the terminal.
6
+
3
7
  ## 0.5.29
4
8
 
5
9
  - **Fix Windows skillshare install `iex` not recognized:** The PowerShell pipe `irm ... | iex` was being intercepted by `cmd.exe` (the outer shell via `shell: true`) instead of PowerShell. Switched to `execSync` with properly double-quoted `-Command` argument so the pipe stays inside PowerShell's scope.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minhpnq1807/contextos",
3
- "version": "0.5.29",
3
+ "version": "0.5.30",
4
4
  "description": "Task-aware AGENTS.md context injection and compliance reporting for Codex, Claude Code, and Antigravity.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -121,6 +121,13 @@ export async function installSkillshare({
121
121
  const osName = detectOS(platform);
122
122
  if (osName === "windows") {
123
123
  runShellCommand(`powershell -NoProfile -ExecutionPolicy Bypass -Command "irm ${INSTALL_PS_URL} | iex"`, { stdio: "inherit", dryRun });
124
+ // The installer adds to the system PATH, but the current Node process
125
+ // still has the old PATH. Inject the known install dir so subsequent
126
+ // skillshare calls in this session can resolve the binary.
127
+ const winInstallDir = path.join(os.homedir(), "AppData", "Local", "Programs", "skillshare");
128
+ if (!dryRun && !process.env.PATH.includes(winInstallDir)) {
129
+ process.env.PATH = `${winInstallDir}${path.delimiter}${process.env.PATH}`;
130
+ }
124
131
  } else {
125
132
  runShellCommand(`curl -fsSL ${INSTALL_SH_URL} | sh`, { stdio: "inherit", dryRun });
126
133
  }