@lebronj/pi-suite 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -12,10 +12,10 @@ pi install npm:pi-mcp-adapter
12
12
  pi install npm:pi-subagents
13
13
  ```
14
14
 
15
- Or use the bootstrap script to install Pi, configure the team OpenAI-compatible endpoint, install this suite, and optionally set up qmd for memory search:
15
+ Or use the bootstrap script to install Pi, configure the team OpenAI-compatible endpoint, install this suite, and set up Bun + qmd for memory search:
16
16
 
17
17
  ```bash
18
- bash scripts/bootstrap.sh
18
+ curl -fsSL https://registry.npmjs.org/@lebronj/pi-suite/-/pi-suite-0.1.2.tgz | tar -xzO package/scripts/bootstrap.sh | bash
19
19
  ```
20
20
 
21
21
  ## What Is Included
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lebronj/pi-suite",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "JHP's Pi extension suite for team coding workflows",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -65,21 +65,41 @@ NODE
65
65
  echo "Installing Pi extension suite: $PI_SUITE"
66
66
  pi install "$PI_SUITE"
67
67
 
68
- echo "Setting up qmd for memory_search when possible..."
69
- if command -v bun >/dev/null 2>&1; then
68
+ ensure_bun() {
69
+ if command -v bun >/dev/null 2>&1; then
70
+ return 0
71
+ fi
72
+ if ! command -v curl >/dev/null 2>&1; then
73
+ echo "curl is required to auto-install Bun for qmd." >&2
74
+ return 1
75
+ fi
76
+
77
+ echo "Installing Bun for qmd..."
78
+ curl -fsSL https://bun.sh/install | bash
79
+ export BUN_INSTALL="${BUN_INSTALL:-$HOME/.bun}"
80
+ export PATH="$BUN_INSTALL/bin:$PATH"
81
+
82
+ command -v bun >/dev/null 2>&1
83
+ }
84
+
85
+ echo "Setting up qmd for memory_search..."
86
+ if ensure_bun; then
70
87
  bun install -g https://github.com/tobi/qmd
71
- export PATH="$HOME/.bun/bin:$PATH"
88
+ export BUN_INSTALL="${BUN_INSTALL:-$HOME/.bun}"
89
+ export PATH="$BUN_INSTALL/bin:$PATH"
72
90
  mkdir -p "$HOME/.pi/agent/memory"
73
91
  if command -v qmd >/dev/null 2>&1; then
74
92
  qmd collection add "$HOME/.pi/agent/memory" --name pi-memory || true
75
- qmd embed || true
93
+ qmd embed || echo "qmd embed failed; run 'qmd embed' later to enable semantic memory_search."
76
94
  else
77
95
  echo "qmd was installed but is not on PATH. Add ~/.bun/bin to PATH, then run qmd embed."
78
96
  fi
79
97
  else
80
98
  cat <<'MSG'
81
- Bun not found. Core memory tools still work, but memory_search needs qmd.
82
- Install qmd later with:
99
+ Could not auto-install Bun, so qmd setup was skipped.
100
+ Core memory tools still work, but memory_search needs qmd.
101
+ Install later with:
102
+ curl -fsSL https://bun.sh/install | bash
83
103
  bun install -g https://github.com/tobi/qmd
84
104
  qmd collection add ~/.pi/agent/memory --name pi-memory
85
105
  qmd embed