Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

feat(statusline): add GeneratePaiState tool and daily Pulse job

Open brycemagera opened this issue 6 months ago • 0 comments

Summary

Adds GeneratePaiState.ts — a lightweight tool that reads TELOS/DIMENSIONS.md, computes the cur/ideal percentage for each life dimension, and writes PAI_STATE.json. Wires it as a daily Pulse cron job (6am) so the statusline STATE meter populates automatically on fresh installs and stays current without manual steps.

Also corrects the statusline comment that incorrectly named ComputeGap.ts as the writer of PAI_STATE.json.

Changes

  • PAI/TOOLS/GeneratePaiState.ts — new tool; reads pipe-delimited DIMENSIONS.md rows, writes PAI_STATE.json with per-dimension pct, cur, ideal, velo
  • PAI/PULSE/PULSE.toml — new [[job]] name = "generate-pai-state", daily at 6am, enabled
  • PAI/statusline-command.sh — comment updated to name GeneratePaiState.ts as the writer

Why daily at 6am?

DIMENSIONS.md is manually maintained — values only change after a life review or /interview run. Daily regeneration keeps PAI_STATE.json fresh without wasted cycles. Users can also run bun GeneratePaiState.ts directly for an immediate refresh after editing DIMENSIONS.md.

Standalone

No dependency on other open PRs.

brycemagera avatar May 12 '26 17:05 brycemagera