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

main
ts 14 lines 461 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 CREATE INDEX orchestration_v2_provider_turns_codex_native_id_idx
9 ON orchestration_v2_projection_provider_turns (
10 json_extract(payload_json, '$.nativeTurnRef.nativeId')
11 )
12 WHERE json_extract(payload_json, '$.nativeTurnRef.driver') = 'codex'
13 `;
14 });