Commit c47ec4c
Fix runId validation in turso/redis facade to allow client-provided runId (#28)
Upstream now sends client-provided runId for run_created events.
Both storage.ts AND index.ts facade layers must allow non-null runId
for run_created events.
Use conditional branching with type assertions to satisfy TypeScript
overload resolution for events.create():
- null runId → RunCreatedEventRequest overload
- string runId → CreateEventRequest overload
https://claude.ai/code/session_016KjC15tQfm7ccAuTBNVyWD
Co-authored-by: Claude <noreply@anthropic.com>1 parent ddc50a6 commit c47ec4c
2 files changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
| 234 | + | |
239 | 235 | | |
240 | 236 | | |
241 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 269 | + | |
274 | 270 | | |
275 | 271 | | |
276 | 272 | | |
| |||
0 commit comments