Skip to content

Commit b72d9a8

Browse files
authored
Merge pull request #452 from jmbish04/claude/nostalgic-fermat
2 parents db269ec + b60b53a commit b72d9a8

93 files changed

Lines changed: 11540 additions & 42 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agent/rules/durable_objects.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# Rule: Durable Objects with SQLite State
2+
3+
NEVER use `new_classes` for SQLite-backed Durable Objects.
4+
ALWAYS use `new_sqlite_classes` in the migrations array.
5+
6+
**Wrong:**
7+
```jsonc
8+
"migrations": [{ "tag": "v1", "new_classes": ["MyAgent"] }]
9+
```
10+
11+
**Correct:**
12+
```jsonc
13+
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["MyAgent"] }]
14+
```
15+
16+
**Why:** `new_classes` does not initialize the SQLite storage layer.
17+
Any class extending `Agent` from `@cloudflare/agents` REQUIRES `new_sqlite_classes`.
18+
Violation causes runtime errors: "SQLite storage not available."
19+
20+
---
21+
122
# Rule: Durable Object & Agent Migration Strategy
223

324
## 1. Definition

.github/workflows/drizzle-schema-report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
python-version: '3.12'
2323

2424
- name: Ensure Script is Executable
25-
run: chmod +x scripts/analyze_drizzle_schema.py
25+
run: chmod +x scripts/audit_drizzle_schema.py
2626

2727
- name: Run Schema Analysis
28-
run: python scripts/analyze_drizzle_schema.py --output drizzle-schema-report.md
28+
run: python scripts/audit_drizzle_schema.py --output drizzle-schema-report.md
2929

3030
- name: Upload Report Artifact
3131
uses: actions/upload-artifact@v4
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

migrations/core/0004_add_system_config_definitions.sql renamed to migrations/webhooks/0004_add_system_config_definitions.sql

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)