Skip to content

Commit 45a1cab

Browse files
jmbish04claude
andcommitted
chore: merge main (including PR #452) and resolve all conflicts
- Migration rename conflicts: keep both webhooks/ (main) and _archive/ (ours) - Backend: accept PR #452's improved versions for learning schemas, sentinel clarify, agent-ai (adds getAiBaseUrl, streamTextAgent, createRunner) - App.tsx: keep dual-scope routing architecture, add TrackerBeta routes to GlobalRoutes instead of inline - RepoFolder.tsx: merge imports, remove duplicate beta-tracker nav entry - wrangler.jsonc: combine all DOs from both sides (UxDesignAgent, LearningAgent, SandboxAgent) + v1_sentinel migration tag Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 parents 88b2773 + b72d9a8 commit 45a1cab

90 files changed

Lines changed: 7354 additions & 406 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

0 commit comments

Comments
 (0)