Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (omp-github-action-watcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
omp-github-action-watcher
Oh My Pi plugin for watching GitHub Actions workflow runs from an active OMP session.
It attaches a session-scoped watcher to a workflow run, polls GitHub periodically, and emits follow-up updates as the run moves through queued, in_progress, and completed states. Notifications include the workflow title, branch, commit SHA, run attempt, and the currently running or queued child jobs when GitHub exposes that context.
Features
- Session-scoped workflow run watches
- Tool-driven start/stop controls
- Compact follow-up notifications inside OMP
- Expanded render with workflow metadata and job context
- Automatic cleanup when the session switches, branches, or shuts down
- Targeted test coverage for API mapping, rendering, and watch state transitions
Requirements
- Bun >= 1.3.7
- Oh My Pi /
@oh-my-pi/pi-coding-agentv13 - GitHub CLI (
gh) installed and authenticated withgh auth login
Install
From npm
Install the published package directly:
omp plugin install omp-github-action-watcherLocal development link
If you are iterating on the plugin locally:
cd /path/to/omp-github-action-watcher
bun install
bun link
omp plugin install omp-github-action-watcherYou can also link the working tree directly:
omp plugin link /path/to/omp-github-action-watcherUsage
Start watching a workflow run
watch_github_action_run owner=payhawk repo=emi-service run_id=23532645155Stop watching
By watch id:
stop_github_action_watch watch_id=<watch-id>By repository + run id:
stop_github_action_watch owner=payhawk repo=emi-service run_id=23532645155Inspect active watches inside OMP
/github-action-watch list
/github-action-watch stop <watch-id>Development
bun install
bun run verifyThe extension entry point is src/extension.ts.
Release
- Pushes to
mainand pull requests run CI, verify the package, and build an npm tarball artifact. - Publishing is handled by GitHub Actions when you publish a GitHub Release, or manually via the
Publish to npmworkflow. - The repo version is now anchored at
1.0.0; each successful npm publish auto-increments the patch version and commits the new published version back tomain. - The publish workflow uses the repository
NPM_TOKENsecret and runsnpm publish --provenance.
Repository layout
src/
extension.ts # OMP extension registration and tool wiring
github-api.ts # GitHub CLI integration and workflow/job mapping
render.ts # Compact and expanded message rendering
watch-format.ts # Human-readable summaries and detail lines
watch-registry.ts # Polling, diffing, and lifecycle management
types.ts # Shared types
test/
github-api.test.ts
render.test.ts
watch-registry.test.tsLicense
MIT