Conversation
Actor-based REST client covering all 13 server endpoints (7 read + 6 write): - Read: status, worktree detail, diff, agent logs, config, templates, prompts - Write: spawn, merge, kill, restart, send input, create PR - testConnection() for verifying reachability and auth - Typed error enum: network, unauthorized, notFound, conflict, serverError, decodingError - Custom URLSession delegate for self-signed TLS via pinned CA certificate - 15s request / 30s resource timeouts Closes #78
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Add missing `enter` parameter to `sendToAgent` (server accepts enter?: bool) - Add missing `body` parameter to `createPR` (server accepts body?: string) - Fix `PRResponse` to match actual server shape (success, worktreeId, prUrl) - Ensure non-URLError/non-DecodingError exceptions propagate correctly
Summary
PPGClientSwift actor covering all 13 server endpoints with async/awaitnetwork,unauthorized,notFound,conflict,serverError,decodingError,invalidResponse,notConfigured,invalidURLtestConnection()method for verifying server reachability and authURLSessionDelegatefor self-signed TLS via pinned CA certificate (ppg-ca.der)Endpoints
/api/statusfetchStatus()/api/worktrees/:idfetchWorktree(id:)/api/worktrees/:id/difffetchDiff(worktreeId:)/api/agents/:id/logsfetchAgentLogs(agentId:lines:)/api/configfetchConfig()/api/templatesfetchTemplates()/api/promptsfetchPrompts()/api/spawnspawn(name:agent:prompt:template:base:count:)/api/agents/:id/sendsendToAgent(agentId:text:keys:)/api/agents/:id/killkillAgent(agentId:)/api/agents/:id/restartrestartAgent(agentId:prompt:)/api/worktrees/:id/mergemergeWorktree(worktreeId:strategy:force:)/api/worktrees/:id/prcreatePR(worktreeId:title:draft:)Plus
killWorktree(worktreeId:)for POST/api/worktrees/:id/kill.Test plan
testConnection()against a runningppg serveinstance.unauthorized, 404 →.notFound, 409 →.conflictppg-ca.derbundle resourceCloses #78