{"_id":"@arvoretech/pi-ci-watch","_rev":"3-75f1597dc39c36c377833b50d0faa621","name":"@arvoretech/pi-ci-watch","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@arvoretech/pi-ci-watch","version":"1.0.0","keywords":["pi-package","pi","extension","ci","github-actions","auto-fix"],"author":{"name":"Arvore"},"license":"MIT","_id":"@arvoretech/pi-ci-watch@1.0.0","maintainers":[{"name":"joao.barros.arvore","email":"joao.barros@arvore.com.br"},{"name":"rafsouza","email":"rafasouza@protonmail.com"},{"name":"pedro.adas","email":"pedro.adas@gmail.com"},{"name":"ricardoraposorfox","email":"ricardorbxx1@gmail.com"},{"name":"jott4","email":"jvgcunha2002@gmail.com"},{"name":"vitor.piovezan","email":"vitor.piovezan@arvore.com.br"}],"homepage":"https://github.com/arvoreeducacao/arvore-pi-extensions#readme","bugs":{"url":"https://github.com/arvoreeducacao/arvore-pi-extensions/issues"},"pi":{"extensions":["./dist/index.js"]},"dist":{"shasum":"2fd5e6c7b438eff49e183e7c0ead6f6ee19b5f5f","tarball":"https://registry.npmjs.org/@arvoretech/pi-ci-watch/-/pi-ci-watch-1.0.0.tgz","fileCount":1,"integrity":"sha512-jlcr2SIiPv0RxOgnjzIi6IWzJR2JWXwTTPWGx7m48BYokmMSEIjr9HJ8H6xUNIB0Qs86mFxJ325RKWGIY4atHg==","signatures":[{"sig":"MEUCID4ycvZt++Jq19kmVF7+DLIWtMlcSj22fjW5QCboMjjoAiEA2lRWwI6+6qMtaaA87DeQUtILRJyj1s7IuMMo71CfeP4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":975},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"ad3b986b81094dfa0806265b5bfb261bbb039827","scripts":{"dev":"tsc --watch","lint":"tsc --noEmit","build":"tsc"},"_npmUser":{"name":"ricardoraposorfox","email":"ricardorbxx1@gmail.com"},"repository":{"url":"git+https://github.com/arvoreeducacao/arvore-pi-extensions.git","type":"git","directory":"packages/ci-watch"},"_npmVersion":"11.13.0","description":"PI extension that monitors CI status on a PR and auto-fixes failures","directories":{},"_nodeVersion":"26.1.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.0","@types/node":"^20.10.0","@earendil-works/pi-ai":"latest","@earendil-works/pi-coding-agent":"latest"},"peerDependencies":{"@earendil-works/pi-coding-agent":">=0.74.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ci-watch_1.0.0_1781643165844_0.31166092850810045","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@arvoretech/pi-ci-watch","version":"1.0.1","description":"PI extension that monitors CI status on a PR and auto-fixes failures","main":"dist/index.js","types":"dist/index.d.ts","type":"module","peerDependencies":{"@earendil-works/pi-coding-agent":">=0.74.0"},"devDependencies":{"@earendil-works/pi-coding-agent":"latest","@earendil-works/pi-ai":"latest","@types/node":"^20.10.0","typescript":"^5.3.0"},"pi":{"extensions":["./dist/index.js"]},"keywords":["pi-package","pi","extension","ci","github-actions","auto-fix"],"repository":{"type":"git","url":"git+https://github.com/arvoreeducacao/arvore-pi-extensions.git","directory":"packages/ci-watch"},"author":{"name":"Arvore"},"license":"MIT","scripts":{"build":"tsc","dev":"tsc --watch","lint":"tsc --noEmit"},"_id":"@arvoretech/pi-ci-watch@1.0.1","bugs":{"url":"https://github.com/arvoreeducacao/arvore-pi-extensions/issues"},"homepage":"https://github.com/arvoreeducacao/arvore-pi-extensions#readme","_integrity":"sha512-FBAGs8qUhMz77KoyGUZ3UX6ybv7MMaiQP22pRktbgg0IsU6LchiD8/gEDpmS/vn6lRMzzh77WDx71kVHUAoNRA==","_resolved":"/tmp/arvoretech-pi-ci-watch-1.0.1.tgz","_from":"file:/tmp/arvoretech-pi-ci-watch-1.0.1.tgz","_nodeVersion":"22.22.3","_npmVersion":"11.17.0","dist":{"integrity":"sha512-FBAGs8qUhMz77KoyGUZ3UX6ybv7MMaiQP22pRktbgg0IsU6LchiD8/gEDpmS/vn6lRMzzh77WDx71kVHUAoNRA==","shasum":"112057e3d3b475fb84599561fdfa5eac3e45cfce","tarball":"https://registry.npmjs.org/@arvoretech/pi-ci-watch/-/pi-ci-watch-1.0.1.tgz","fileCount":6,"unpackedSize":26948,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@arvoretech%2fpi-ci-watch@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHmEcDwFeo7jDkq6I5l+bygZMr1zyD1mkWvcSkimEyTtAiBRxz+/+s6V98x04bxDlgNiRKTb6hP7Y6VpFxIJQvsl/A=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:19abb4b7-36ec-4e71-a979-a7e6ada843d6"}},"directories":{},"maintainers":[{"name":"joao.barros.arvore","email":"joao.barros@arvore.com.br"},{"name":"rafsouza","email":"rafasouza@protonmail.com"},{"name":"pedro.adas","email":"pedro.adas@gmail.com"},{"name":"guilhermebs","email":"guilhermebscontact@gmail.com"},{"name":"ricardoraposorfox","email":"ricardorbxx1@gmail.com"},{"name":"jott4","email":"jvgcunha2002@gmail.com"},{"name":"vitor.piovezan","email":"vitor.piovezan@arvore.com.br"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-ci-watch_1.0.1_1781723945222_0.7855124353800247"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-16T20:52:45.642Z","modified":"2026-06-17T19:19:05.913Z","1.0.0":"2026-06-16T20:52:46.001Z","1.0.1":"2026-06-17T19:19:05.478Z"},"bugs":{"url":"https://github.com/arvoreeducacao/arvore-pi-extensions/issues"},"author":{"name":"Arvore"},"license":"MIT","homepage":"https://github.com/arvoreeducacao/arvore-pi-extensions#readme","keywords":["pi-package","pi","extension","ci","github-actions","auto-fix"],"repository":{"type":"git","url":"git+https://github.com/arvoreeducacao/arvore-pi-extensions.git","directory":"packages/ci-watch"},"description":"PI extension that monitors CI status on a PR and auto-fixes failures","maintainers":[{"name":"joao.barros.arvore","email":"joao.barros@arvore.com.br"},{"name":"rafsouza","email":"rafasouza@protonmail.com"},{"name":"pedro.adas","email":"pedro.adas@gmail.com"},{"name":"guilhermebs","email":"guilhermebscontact@gmail.com"},{"name":"ricardoraposorfox","email":"ricardorbxx1@gmail.com"},{"name":"jott4","email":"jvgcunha2002@gmail.com"},{"name":"vitor.piovezan","email":"vitor.piovezan@arvore.com.br"}],"readme":"# @arvoretech/pi-ci-watch\n\nMonitors CI status for GitHub PRs and auto-fixes failures. Closes the feedback loop between CI and the coding agent.\n\n## Install\n\n```bash\npi install npm:@arvoretech/pi-ci-watch\n```\n\nOr in `.pi/settings.json`:\n\n```json\n{\n  \"packages\": [\"npm:@arvoretech/pi-ci-watch\"]\n}\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `/ci-watch <pr>` | Monitor CI and auto-fix failures (up to 3 attempts) |\n| `/ci-notify <pr>` | Monitor CI and notify when done (no auto-fix) |\n| `/ci-auto on\\|off` | Auto-watch after every push (default: off) |\n| `/ci-config <min> <max> <step>` | Configure poll intervals in seconds |\n| `/ci-config` | Show current config |\n\n## How it works\n\n1. Polls `gh pr checks` with a smart interval (30s → 45s → 60s → 30s...)\n2. If CI passed: notifies ✅\n3. If CI failed: fetches logs via `gh run view --log-failed`, returns them to the LLM to fix\n4. LLM reads the error, fixes the code, commits, pushes\n5. Repeats until CI passes (max 3 attempts)\n\n## Auto mode\n\nWhen enabled with `/ci-auto on`, the extension detects `git push` output and automatically starts monitoring the associated PR.\n\n## Poll configuration\n\nDefault: 30s min, 60s max, 15s step. The interval grows from min to max, then resets — never grows infinitely.\n\n```\n/ci-config 20 90 10\n```\n\nSets: 20s → 30s → 40s → ... → 90s → 20s → ...\n\n## Requirements\n\n- `gh` CLI installed and authenticated\n- Repository with GitHub Actions CI\n","readmeFilename":"README.md"}