{"agent":"claude","input":"Add PWA support to this SvelteKit app. Read src/app.html, static/manifest.json, src/lib/api.js, src/hooks.server.js and src/routes/login/+page.server.js first. Write src/service-worker.js using build, files and version from $service-worker: precache the build and static files on install, delete older caches on activate, never cache non-GET requests or requests to the external API origin, and serve same-origin pages network-first with a cached fallback. Add a theme-color meta tag to app.html that matches the manifest, add a 192 pixel icon resized from the existing logo, and say in the pull request that a 512 pixel icon needs source artwork. Use the Node version in .nvmrc and the pnpm version in packageManager. Run pnpm build and pnpm preview, open the preview in the browser, check that the worker registers and the manifest validates, then go offline and reload the home page and an article page. Run pnpm lint. Open a pull request that describes each caching rule and why API responses and form actions are excluded, with a screenshot of the offline reload.","resources":[{"url":"https://github.com/your-org/your-app"}]}