- Update `wrangler.jsonc` to correct the `CUSTOM_AGENT_WEBHOOK` URL. - Enhance `page.tsx` to load custom agents from localStorage and merge them with predefined agents. - Modify `route.ts` to validate `systemPrompt` for custom agents and include it in the webhook payload. - Adjust `chat-interface.tsx` to handle custom agents more effectively, including system prompt integration and event dispatching for pinned agents. - Remove obsolete `CUSTOM_AGENT_EXECUTION_PRD.md` and `DIFF_TOOL_USAGE.md` files as part of cleanup.
687 B
687 B
Deploy the application to cloudflare workers.
Deployment Instructions
- Never use npm; all commands must use pnpm.
- Run pnpm build.
- Run npx @opennextjs/cloudflare build; if this fails, fix before proceeding.
- Fix any lint errors found (pnpm lint) before deploying.
- Run npx wrangler deploy with no --env flags (uses wrangler.jsonc default route agents.nicholai.work).
- After deploy succeeds, open the site and manually verify UI, tool calls, and custom agent flows.
- Once verification passes, update CLAUDE.md, .cursorrules, and README.md with any new instructions or changes discovered.
- A deploy is only compliant if every step above completes successfully in order.