Files
yuez d2e20d428a feat: session-first workspace activity and installable daemon
Workspaces page:
- list the newest sessions across workspaces in the activity column; the
  daemon exposes GET /api/v1/sessions/recent as a disk projection and the
  browser enriches live rows from the per-workspace session relay
- put recent activity first below 1100px and fix the mobile page-header
  flex-basis gap

Smoke:
- pin PI2_HOST=127.0.0.1 in both smoke scripts and make the startup-line
  assertion follow the configured host; the daemon default stays 0.0.0.0

Install:
- standalone binary build/install scripts, packaging templates, CI/release
  hooks, CLI-first install docs and the supporting config/doctor changes
2026-10-28 10:53:48 +08:00

45 lines
1.1 KiB
Plaintext

class Pi2d < Formula
desc "Web console daemon for pi2.nvim"
homepage "https://github.com/zgs225/pi2d"
version "@@VERSION@@"
license "MIT"
on_macos do
on_arm do
url "https://github.com/zgs225/pi2d/releases/download/v@@VERSION@@/pi2d-@@VERSION@@-darwin-arm64.tar.gz"
sha256 "@@SHA256_DARWIN_ARM64@@"
end
on_intel do
url "https://github.com/zgs225/pi2d/releases/download/v@@VERSION@@/pi2d-@@VERSION@@-darwin-x64.tar.gz"
sha256 "@@SHA256_DARWIN_X64@@"
end
end
on_linux do
on_arm do
url "https://github.com/zgs225/pi2d/releases/download/v@@VERSION@@/pi2d-@@VERSION@@-linux-arm64.tar.gz"
sha256 "@@SHA256_LINUX_ARM64@@"
end
on_intel do
url "https://github.com/zgs225/pi2d/releases/download/v@@VERSION@@/pi2d-@@VERSION@@-linux-x64.tar.gz"
sha256 "@@SHA256_LINUX_X64@@"
end
end
def install
bin.install "bin/pi2"
(share/"pi2d").install "share/pi2d/web"
end
def caveats
<<~EOS
To run pi2d as a background service:
pi2 install-service --write
EOS
end
test do
assert_match version.to_s, shell_output("#{bin}/pi2 --version")
end
end