@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 13 lines 409 Bytes
Raw
1 import * as Effect from "effect/Effect";
2 import * as SqlClient from "effect/sql/SqlClient";
3
4 export default Effect.gen(function* () {
5 const sql = yield* SqlClient.SqlClient;
6
7 yield* sql`
8 UPDATE orchestration_events
9 SET payload_json = json_set(payload_json, '$.runtimeMode', 'full-access')
10 WHERE event_type = 'thread.created'
11 AND json_type(payload_json, '$.runtimeMode') IS NULL
12 `;
13 });