Skip to content

Commit d05eb9c

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/sentinel-engine
2 parents b5495d7 + b72d9a8 commit d05eb9c

91 files changed

Lines changed: 11464 additions & 639 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
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.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE `automation_logs` ADD `delivery_id` text;--> statement-breakpoint
2+
ALTER TABLE `automation_logs` ADD `event_name` text;

0 commit comments

Comments
 (0)