Morgan's system prompt is now generated at build time and embedded directly in the code, making it available in Cloudflare Worker environments where file system access isn't available. Changes: - Add scripts/generate-morgan-prompt.js to generate TypeScript constant from markdown - Generate src/lib/agents/morgan-system-prompt.ts with full Fortura Agent Bundle - Update agent definitions to import and use the embedded constant - Update package.json build scripts to generate prompt before building - Remove runtime file system access (readFileSync) that failed on Cloudflare This ensures Morgan agent has full system prompt capabilities on all deployments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Test Suite Overview
The tests in this directory act as executable specifications. They were copied from real projects and are meant to be adapted, not run verbatim.
How to use them:
- Rename folders to match the first features you build.
- Replace imports from
@/...with your actual modules once they exist. - Trim scenarios that do not apply and add new ones that cover risky behaviours or integrations you care about.
- Keep the error-handling and edge-case checks—they are the reason these suites exist.
Once your implementation is in place, run pnpm test (or your preferred command) and fix failing specs until everything passes. The goal is to evolve these tests into living documentation for the application you are building off this template.