pi-desktop-ui 1.0.1

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 ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "pi-desktop-ui",
3
+ "version": "1.0.1",
4
+ "type": "module",
5
+ "description": "A native desktop GUI for pi — full chat window with real-time streaming, markdown rendering, and workspace management",
6
+ "keywords": ["pi-package"],
7
+ "author": "pvjagtap",
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/pvjagtap/pi-desktop-ui"
12
+ },
13
+ "pi": {
14
+ "extensions": [
15
+ "./index.ts"
16
+ ],
17
+ "image": "https://raw.githubusercontent.com/pvjagtap/pi-desktop-ui/main/assets/Screenshot_1.png"
18
+ },
19
+ "dependencies": {
20
+ "glimpseui": "^0.6.0",
21
+ "marked": "^17.0.5",
22
+ "ws": "^8.20.0"
23
+ },
24
+ "peerDependencies": {
25
+ "@mariozechner/pi-coding-agent": "*"
26
+ }
27
+ }
package/pi-desktop.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+ set PI_DESKTOP=1
3
+ pi --desktop %*
package/pi-desktop.sh ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ # Resolve script directory so it works on double-click
5
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
6
+ cd "$SCRIPT_DIR"
7
+
8
+ # Source profile so `pi` is on PATH (nvm, fnm, etc.)
9
+ if [ -f "$HOME/.bashrc" ]; then
10
+ . "$HOME/.bashrc" 2>/dev/null
11
+ elif [ -f "$HOME/.zshrc" ]; then
12
+ . "$HOME/.zshrc" 2>/dev/null
13
+ elif [ -f "$HOME/.profile" ]; then
14
+ . "$HOME/.profile" 2>/dev/null
15
+ fi
16
+
17
+ export PI_DESKTOP=1
18
+
19
+ if ! command -v pi >/dev/null 2>&1; then
20
+ echo "Error: 'pi' command not found in PATH."
21
+ echo "Make sure pi is installed and available."
22
+ echo ""
23
+ echo "Press Enter to close..."
24
+ read -r _
25
+ exit 1
26
+ fi
27
+
28
+ pi --desktop "$@"