← Catalog

@juanibiapina/pi-gob

Pi extension for managing gob background jobs

Extension

Install

Install with PiG

pig install npm:@juanibiapina/pi-gob

Install with Pi

pi install npm:@juanibiapina/pi-gob
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.7.1 (README.md). PiG does not review it.

@juanibiapina/pi-gob

A pi extension for managing gob background jobs.

Features

  • Powerbar segment — Running jobs displayed in the powerbar via the gob segment, updated in real time via daemon connection
  • /gob command — Interactive list of all jobs with actions (logs, stop, start, restart, remove)
  • Daemon protocol — Connects directly to the gob daemon Unix socket for instant updates, with CLI fallback

Installation

pi install npm:@juanibiapina/pi-gob

Usage

Powerbar Segment

Add gob to your powerbar left or right segments in powerbar settings. The segment appears when there are running gob jobs in the current working directory.

  • 1 job: ⚙ npm run dev
  • Multiple jobs: ⚙ 2 jobs

The segment updates in real time via the gob daemon event stream.

/gob Command

Use /gob to open an interactive job list. Navigate with arrow keys, press Enter to see available actions.

ActionAvailable WhenDescription
logsAlwaysView last 50 lines of output
stopRunningStop the job
startStoppedStart the job again
restartAlwaysStop and start the job
removeStoppedRemove the job

How It Works

The extension connects to the gob daemon's Unix socket ($XDG_RUNTIME_DIR/gob/daemon.sock) and subscribes to job events. When jobs change, it emits powerbar:update events with segment id gob. If the daemon isn't running, the extension retries every 5 seconds and falls back to the gob CLI for the /gob command.

License

MIT