clew-code 0.2.30 → 0.2.31

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": "clew-code",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "description": "ClewCode — multi-provider AI coding agent CLI",
5
5
  "main": "./dist/main.js",
6
6
  "type": "module",
@@ -34,4 +34,7 @@ Write-Info 'Installing clew-code via bun...'
34
34
  # dynamically — it's only needed for image/ComputerUse features.
35
35
  & bun install -g clew-code --ignore-scripts
36
36
 
37
- Write-Host "`nDone! Run clew to start." -ForegroundColor Green
37
+ Write-Host "`nDone! Opening a new terminal with clew ready..." -ForegroundColor Green
38
+
39
+ # ── Open new terminal with clew ready ──────────────────────────────────────
40
+ Start-Process pwsh -ArgumentList "-NoExit", "clew"
@@ -46,4 +46,20 @@ info "Installing clew-code via bun..."
46
46
  # dynamically — it's only needed for image/ComputerUse features.
47
47
  bun install -g clew-code --ignore-scripts
48
48
 
49
- printf "\n${BOLD}Done!${NC} Run ${BOLD}clew${NC} to start.\n"
49
+ printf "\n${BOLD}Done!${NC} Opening a new terminal with ${BOLD}clew${NC} ready...\n"
50
+
51
+ # ── Open new terminal with clew ready ─────────────────────────────────────
52
+ case "$OS" in
53
+ Darwin)
54
+ osascript -e 'tell application "Terminal" to do script "clew"' &>/dev/null || true
55
+ ;;
56
+ Linux)
57
+ # Try common terminal emulators
58
+ for term in x-terminal-emulator gnome-terminal xterm konsole; do
59
+ if command -v "$term" &>/dev/null; then
60
+ ($term &) 2>/dev/null || true
61
+ break
62
+ fi
63
+ done
64
+ ;;
65
+ esac