{"_id":"@brianmichel/pi-awake","name":"@brianmichel/pi-awake","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@brianmichel/pi-awake","version":"0.1.0","description":"Pi extension package that keeps macOS awake while pi is actively working.","repository":{"type":"git","url":"git+https://github.com/brianmichel/pi-awake.git"},"homepage":"https://github.com/brianmichel/pi-awake#readme","bugs":{"url":"https://github.com/brianmichel/pi-awake/issues"},"type":"module","keywords":["pi-package","pi-extension","caffeinate","macos"],"publishConfig":{"access":"public"},"scripts":{"clean":"rm -f tsconfig.tsbuildinfo","check":"tsc --noEmit","build":"npm run check","test":"tsx --test tests/**/*.test.ts"},"devDependencies":{"@types/node":"^24.8.1","tsx":"^4.20.6","typescript":"^5.9.3"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*"},"pi":{"extensions":["./extensions/pi-awake/index.ts"]},"gitHead":"642fac7982b917dd8678307137b83042cf4add1e","_id":"@brianmichel/pi-awake@0.1.0","_nodeVersion":"26.1.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-i7cKzM3LOp4WSyxZ7WMaawp9iPqxcNyWFmWrOvnlHWnomeK3eiuo06N4MikY3wJ+Yk1Fphkra0jQ2FE0zSfOUQ==","shasum":"ec5aa87b5100616ee07a6db0719a9ba6110c9446","tarball":"https://registry.npmjs.org/@brianmichel/pi-awake/-/pi-awake-0.1.0.tgz","fileCount":7,"unpackedSize":6684,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@brianmichel%2fpi-awake@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDKj+Kn36SHnN/9RCONOJDaN8F3hB1+KLmS/yRB4RivTQIhANA3SQQY2s9RgRBWHIIaPYDhq0zhNg0oD3jCD6uoPT1e"}]},"_npmUser":{"name":"brianmichel","email":"brian.michel@gmail.com"},"directories":{},"maintainers":[{"name":"brianmichel","email":"brian.michel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-awake_0.1.0_1778556146150_0.3637578435920217"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-12T03:22:26.062Z","0.1.0":"2026-05-12T03:22:26.311Z","modified":"2026-05-12T03:22:26.696Z"},"maintainers":[{"name":"brianmichel","email":"brian.michel@gmail.com"}],"description":"Pi extension package that keeps macOS awake while pi is actively working.","homepage":"https://github.com/brianmichel/pi-awake#readme","keywords":["pi-package","pi-extension","caffeinate","macos"],"repository":{"type":"git","url":"git+https://github.com/brianmichel/pi-awake.git"},"bugs":{"url":"https://github.com/brianmichel/pi-awake/issues"},"readme":"# pi-awake\n\n`pi-awake` is a pi extension that keeps your machine awake while pi is actively working.\n\nOn macOS it runs `caffeinate` during active agent work and stops it again when pi goes idle.\n\n## Features\n\n- starts automatically when pi begins working\n- stops automatically when work finishes\n- shows a compact footer status while active\n- uses a built-in default configuration\n- structured so Linux and Windows support can be added later\n\n## Requirements\n\n- macOS for the current implementation\n- [pi](https://pi.dev/)\n- Node.js via `mise` or your local toolchain\n\n## Repo layout\n\n- `extensions/pi-awake/index.ts` — extension entrypoint\n- `extensions/pi-awake/platform.ts` — platform-specific power inhibition\n- `extensions/pi-awake/status.ts` — pi status rendering\n- `extensions/pi-awake/types.ts` — shared types\n- `package.json` — pi package manifest\n- `mise.toml` — local tooling tasks\n\n## Install dependencies\n\n### With mise\n\n```bash\nmise install\nmise run install\n```\n\n### With npm\n\n```bash\nnpm install\n```\n\n## Validate\n\n```bash\nmise run check\n```\n\nor:\n\n```bash\nnpm run check\n```\n\n## Test\n\n```bash\nmise run test\n```\n\nor:\n\n```bash\nnpm test\n```\n\n## Run in pi\n\n### Load directly from this repo\n\n```bash\npi -e .\n```\n\n### Install into pi\n\n```bash\npi install .\n```\n\nIf pi is already running, use `/reload`.\n\n## Testing\n\n1. Start pi with the extension loaded.\n2. Give pi a task that takes a little time.\n3. Confirm the footer status appears while pi is active.\n4. Confirm the status disappears when pi becomes idle.\n5. Optionally verify `caffeinate` is running from another terminal:\n\n```bash\npgrep -fl caffeinate\n```\n\n## Notes\n\nPi loads TypeScript extensions directly, so there is no separate transpile step right now. `build` currently just runs the typecheck.\n","readmeFilename":"README.md","_rev":"1-30a868573ad5e2fa56bdb4c303eec4c1"}