Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
chore(setup): auto-install/update slash-do via npx in setup + update scripts
[._.]/ Adam Eivybb4d72f528c4
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 9259c4aa24..40788bd878 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -886,6 +886,19 @@## Changed+- **`setup.{sh,ps1}` and `update.{sh,ps1}` now auto-install/update slash-do+ via `npx slash-do@latest`.** Previously, `update.sh` and `update.ps1`+ prompted the user interactively to install `slash-do` only when the+ global binary was missing (and `setup` didn't touch it at all), so most+ installs sat on a stale or absent user-global command pool. All four+ scripts now run `npx --yes slash-do@latest` unconditionally to lay down+ the latest slash commands for whichever AI environments are detected+ (`~/.claude/commands/`, etc.). Failures are non-fatal — PortOS continues+ setup/update if the npm registry is down or the package install+ errors. The git submodule at `lib/slashdo` remains the in-repo source+ for inline command loading from CoS agents; the npx call is purely for+ keeping the user-global pool fresh.+- **TUI agents now own the simplify → push → PR sequence and self-signalcompletion.** With Claude Code TUI available as a provider type, thesystem no longer needs to drive `cleanupAgentWorktree`'s push/PR stepsdiff --git a/setup.ps1 b/setup.ps1index c2d646ebeb..8afce82aa5 100644--- a/setup.ps1+++ b/setup.ps1@@ -80,6 +80,17 @@ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }node scripts/setup-browser.jsif ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }+# Install/update slash-do (project-level slash commands for Claude Code et al.)+# via npx. Failures are non-fatal — PortOS still works without the+# user-global command pool.+Write-Host ""+Write-Host "Installing/updating slash-do commands (npx slash-do@latest)..." -ForegroundColor Yellow+npx --yes slash-do@latest+if ($LASTEXITCODE -ne 0) {+ Write-Host "⚠️ slash-do install failed — skipping (you can re-run later: npx slash-do@latest)" -ForegroundColor Yellow+ $global:LASTEXITCODE = 0+}+# Optional Ghostty setupWrite-Host ""$setupGhostty = Read-Host "Set up Ghostty terminal themes? (y/N)"diff --git a/setup.sh b/setup.shindex 0b1e3d204c..91b4eb9990 100755--- a/setup.sh+++ b/setup.sh@@ -36,6 +36,19 @@ fiecho ""+# Install/update slash-do (project-level slash commands for Claude Code et al.)+# via npx. Auto-detects the installed AI environments and lays down the latest+# command set under ~/.claude/commands (or per-environment equivalent). The+# git submodule at lib/slashdo is the in-repo source for inline command loading+# from CoS agents — `npx slash-do@latest` complements that by keeping the+# user-global command pool current. Failures are non-fatal: PortOS still works+# without the global slash commands.+echo "Installing/updating slash-do commands (npx slash-do@latest)..."+if ! npx --yes slash-do@latest; then+ echo "⚠️ slash-do install failed — skipping (you can re-run later: npx slash-do@latest)"+fi+echo ""+# Optional Ghostty setup. Skip on non-TTY (CI, piped stdin) so `read` doesn't# abort the script under `set -e`, and `||` the read itself so a Ctrl-D in an# interactive shell defaults to "skip" instead of aborting.diff --git a/update.ps1 b/update.ps1index f64423b9ed..f88064c529 100644--- a/update.ps1+++ b/update.ps1@@ -212,26 +212,17 @@ if (Test-Path $migrationsScript) {}Step "migrations" "done" "Migrations complete"-# Check for slash-do (optional, used by the PR Reviewer schedule task)-$slashDoFound = Get-Command slash-do -ErrorAction SilentlyContinue-if (-not $slashDoFound) {- Write-SafeHost "slash-do is not installed. It is used by the PR Reviewer schedule task." -ForegroundColor Yellow- if ([Environment]::UserInteractive) {- $reply = Read-Host "Install slash-do now? [y/N]"- if ($reply -match "^[Yy]$") {- Write-SafeHost "Installing slash-do..." -ForegroundColor Yellow- Invoke-Logged npm install -g slash-do@latest- if ($LASTEXITCODE -ne 0) {- Write-SafeHost "⚠️ Failed to install slash-do. Continuing without it." -ForegroundColor Red- }- } else {- Write-SafeHost "Skipping slash-do install. You can install later with: npm install -g slash-do@latest"- }- } else {- Write-SafeHost "Skipping slash-do prompt (non-interactive). Install later with: npm install -g slash-do@latest"- }- Write-SafeHost ""+# Install/update slash-do commands. Replaces the previous interactive prompt+# with an always-on `npx slash-do@latest` call so the user-global command+# pool stays current across updates. Failures are non-fatal.+Step "slash-do" "running" "Installing/updating slash-do commands..."+Invoke-Logged npx --yes slash-do@latest+if ($LASTEXITCODE -ne 0) {+ Write-SafeHost "⚠️ slash-do install/update failed. Continuing (re-run later: npx slash-do@latest)." -ForegroundColor Yellow+ $global:LASTEXITCODE = 0}+Step "slash-do" "done" "slash-do commands installed/updated"+Write-SafeHost ""# Build UI assets for production servingStep "build" "running" "Building client..."diff --git a/update.sh b/update.shindex d16b0470fa..2eb28d5e73 100755--- a/update.sh+++ b/update.sh@@ -144,25 +144,17 @@ if [ -f "$ROOT_DIR/scripts/run-migrations.js" ]; thenfistep "migrations" "done" "Migrations complete"-# Check for slash-do (optional, used by the PR Reviewer schedule task)-if ! command -v slash-do >/dev/null 2>&1; then- log "slash-do is not installed. It is used by the PR Reviewer schedule task."- if [ -t 0 ]; then- read -p "Install slash-do now? [y/N] " -n 1 -r- log ""- if [[ $REPLY =~ ^[Yy]$ ]]; then- log "Installing slash-do..."- if ! run npm install -g slash-do@latest; then- log "⚠️ Failed to install slash-do. Continuing without it."- fi- else- log "Skipping slash-do install. You can install later with: npm install -g slash-do@latest"- fi- else- log "Skipping slash-do prompt (non-interactive). Install later with: npm install -g slash-do@latest"- fi- log ""+# Install/update slash-do commands. Replaces the previous interactive prompt+# with an always-on `npx slash-do@latest` call so the user-global command+# pool stays current across updates without user intervention. Failures are+# non-fatal — the PR Reviewer schedule task is the only consumer and it+# fails gracefully if the binary is missing.+step "slash-do" "running" "Installing/updating slash-do commands..."+if ! run npx --yes slash-do@latest; then+ log "⚠️ slash-do install/update failed. Continuing without it (re-run later: npx slash-do@latest)."fi+step "slash-do" "done" "slash-do commands installed/updated"+log ""# Build UI assets for production servingstep "build" "running" "Building client..."