- extend provider and orchestration contracts for runtime mode-aware events - persist runtime mode fields in projection thread session storage and migration 006 - update adapters, reactors, projections, websocket/web session logic, and tests - add plan mode deep dive docs and probe artifacts for ACP behavior
20 lines
503 B
TypeScript
20 lines
503 B
TypeScript
import * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
import * as Effect from "effect/Effect";
|
|
|
|
const DEFAULT_RUNTIME_MODE = "full-access";
|
|
|
|
export default Effect.gen(function* () {
|
|
const sql = yield* SqlClient.SqlClient;
|
|
|
|
yield* sql`
|
|
ALTER TABLE projection_thread_sessions
|
|
ADD COLUMN runtime_mode TEXT NOT NULL DEFAULT 'full-access'
|
|
`;
|
|
|
|
yield* sql`
|
|
UPDATE projection_thread_sessions
|
|
SET runtime_mode = ${DEFAULT_RUNTIME_MODE}
|
|
WHERE runtime_mode IS NULL
|
|
`;
|
|
});
|