+4
-5
@@ -34,14 +34,13 @@ import { readFileSync, writeFileSync, existsSync, mkdirSync, unlinkSync } from 'fs'; | ||
| function getCloudctxBinPath() { | ||
| // Find where cloudctx is installed globally | ||
| // Quote paths so they survive shells that split on spaces (Windows usernames | ||
| // like "Charles Needham" → "/c/Users/Charles Needham/..." otherwise breaks). | ||
| try { | ||
| const result = execSync('which cloudctx', { encoding: 'utf-8' }).trim(); | ||
| if (result) return result; | ||
| if (result) return `"${result}"`; | ||
| } catch {} | ||
| // Fallback: try node with the package path | ||
| try { | ||
| const result = execSync('npm root -g', { encoding: 'utf-8' }).trim(); | ||
| const globalBin = join(result, 'cloudctx', 'bin', 'cloudctx.js'); | ||
| if (existsSync(globalBin)) return `node ${globalBin}`; | ||
| if (existsSync(globalBin)) return `node "${globalBin}"`; | ||
| } catch {} | ||
| // Last resort: npx (will work once published to npm) | ||
| return 'npx cloudctx'; | ||
@@ -48,0 +47,0 @@ } |
+1
-1
| { | ||
| "name": "cloudctx", | ||
| "version": "0.1.7", | ||
| "version": "0.1.8", | ||
| "description": "Persistent memory for Claude Code. One command, full recall.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
84581
0.03%2160
-0.05%