feat: modified agent behavior for a more test centric workflow
This commit is contained in:
@@ -98,9 +98,14 @@ When writing or modifying Eleventy files:
|
||||
---
|
||||
|
||||
## 4. Validation & Verification
|
||||
|
||||
Always follow the project TDD standard: write automated tests (including adversarial edge cases) in `test/` before modifying functional templates, filters, or configuration. Ensure all test cases pass before presenting the final output.
|
||||
|
||||
Run these commands to test Eleventy builds:
|
||||
Run these commands to test and verify builds:
|
||||
```bash
|
||||
# Run complete test suite (unit tests, filters, server, design rules, build integrity)
|
||||
npm test
|
||||
|
||||
# Validate Eleventy configuration and build static output
|
||||
npx @11ty/eleventy --dryrun
|
||||
|
||||
@@ -110,3 +115,4 @@ npx @11ty/eleventy
|
||||
# Launch local dev server with auto-refresh
|
||||
npx @11ty/eleventy --serve
|
||||
```
|
||||
|
||||
|
||||
@@ -100,3 +100,13 @@ The Obsidian plugin runs inside Obsidian desktop/mobile and interacts with the O
|
||||
If using CouchDB-based self-hosted LiveSync:
|
||||
- A local watcher or CouchDB change listener daemon can be configured to detect updates to notes marked with `published: true` or in a dedicated `Blog/` folder.
|
||||
- When an update event fires, the daemon pulls the latest revision from the CouchDB database, runs the normalization pipeline, and saves it to `src/posts/`.
|
||||
|
||||
---
|
||||
|
||||
## 6. Validation & Verification
|
||||
|
||||
Always write automated test cases in `test/ingestion-api.test.js` before modifying or adding any functional synchronization or endpoint code:
|
||||
- **Mandatory Adversarial Testing:** Include adversarial tests covering unauthorized tokens, invalid/missing frontmatter schemas, path traversals in slugs, and malformed base64 asset payloads.
|
||||
- **Pre-Presentation Verification:** Run `npm test` and ensure all test cases pass before presenting the final output.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user