Files
oh-my-pi/packages/utils
can1357 72000acfeb
Warm bazel disk cache / Seed darwin release bazel cache: darwin-arm64 (push) Has been cancelled
Warm bazel disk cache / Seed darwin release bazel cache: darwin-x64-baseline (push) Has been cancelled
Warm bazel disk cache / Seed bun store cache (push) Has been cancelled
CI / Resolve release metadata (push) Has been cancelled
CI / Lint, type check & web build (push) Has been cancelled
CI / Validate Rust workspace (bazel) (push) Has been cancelled
CI / Build native addons (bazel) (push) Has been cancelled
OMP Nix / Evaluate flake (push) Has been cancelled
CI / Test TS workspace fast (push) Has been cancelled
CI / Test coding-agent singleton/global-state (TS) (push) Has been cancelled
CI / Test TS native/integration packages (push) Has been cancelled
CI / Test coding-agent UI/TUI (TS) (push) Has been cancelled
CI / Test coding-agent runtime/session (TS) (push) Has been cancelled
CI / Test coding-agent native/unit (TS) (push) Has been cancelled
CI / Test CLI smoke (TS) (push) Has been cancelled
CI / Install method smoke tests (push) Has been cancelled
CI / Release validation gate (push) Has been cancelled
CI / Release binary: linux-arm64 (push) Has been cancelled
CI / Release binary: linux-musl-arm64 (push) Has been cancelled
CI / Release binary: linux-musl-x64 (push) Has been cancelled
CI / Release binary: linux-x64 (push) Has been cancelled
CI / Release binary: win32-x64 (push) Has been cancelled
CI / Release binary: darwin-arm64 (push) Has been cancelled
CI / Release binary: darwin-x64 (push) Has been cancelled
CI / Publish native leaf packages (push) Has been cancelled
CI / Publish GitHub release (push) Has been cancelled
CI / Verify published release (macOS) (push) Has been cancelled
CI / Publish to npm (push) Has been cancelled
CI / Update Homebrew tap (push) Has been cancelled
chore: bump version to 17.4.0
2026-08-20 08:13:58 +02:00
..
2026-08-19 12:35:37 +02:00
2026-08-20 08:13:58 +02:00

@oh-my-pi/pi-utils

Shared utilities for oh-my-pi packages. Zero ceremony, Bun-first.

Notable modules

Module Purpose
logger Centralized logger writing to ~/.omp/logs/ with rotation (TUI-safe — never stdout)
prompt Handlebars-based prompt templating and formatting helpers
dirs Path helpers for omp config directories (~/.omp, XDG-aware on Linux)
stream readStream / readLines helpers over ReadableStream
ptree / procmgr Process trees, ChildProcess wrapper, process lifecycle management
postmortem Cleanup callbacks on exit, signals, and fatal exceptions
which $which() binary lookup with caching
fetch-retry fetch with retry/backoff policies
fs-error Errno guards (isEnoent and friends)
env / worker-host Environment plumbing and side-effect-free worker-host entry contract (workerHostEntry)
abortable / async AbortSignal-aware stream/promise helpers
peek-file Read the first N bytes of a file with pooled buffers
frontmatter, glob, mime, temp, format, color, snowflake, tab-spacing, path-tree, sanitize-text Smaller single-purpose helpers

Import from the root barrel or per-module subpaths (@oh-my-pi/pi-utils/<module>).

Install

bun add @oh-my-pi/pi-utils

Ships TypeScript source directly (no build step); requires Bun ≥ 1.3.14.

References