@@ -21,18 +21,6 @@ export const SHOWCASE_SCENES = [
2121] as const ;
2222export type ShowcaseScene = ( typeof SHOWCASE_SCENES ) [ number ] ;
2323
24- const PROJECTOR_NAMES = [
25- "projection.projects" ,
26- "projection.threads" ,
27- "projection.thread-messages" ,
28- "projection.thread-proposed-plans" ,
29- "projection.thread-activities" ,
30- "projection.thread-sessions" ,
31- "projection.thread-turns" ,
32- "projection.checkpoints" ,
33- "projection.pending-approvals" ,
34- ] as const ;
35-
3624const MODEL_SELECTION = JSON . stringify ( { instanceId : "codex" , model : "gpt-5.4" } ) ;
3725const PROJECT_SCRIPTS = JSON . stringify ( [
3826 {
@@ -392,23 +380,6 @@ function insertThread(
392380 snoozedUntil ,
393381 snoozedAt ,
394382 ) ;
395- database
396- . prepare (
397- `INSERT INTO projection_turns (
398- thread_id, turn_id, pending_message_id, assistant_message_id, state, requested_at,
399- started_at, completed_at, checkpoint_turn_count, checkpoint_ref, checkpoint_status,
400- checkpoint_files_json, source_proposed_plan_thread_id, source_proposed_plan_id
401- ) VALUES (?, ?, NULL, ?, ?, ?, ?, ?, NULL, NULL, NULL, '[]', NULL, NULL)` ,
402- )
403- . run (
404- input . id ,
405- turnId ,
406- isWorking ? null : `${ input . id } -answer` ,
407- isWorking ? "running" : "completed" ,
408- minutesBefore ( now , input . minutesAgo + 2 ) ,
409- minutesBefore ( now , input . minutesAgo + 2 ) ,
410- isWorking ? null : updatedAt ,
411- ) ;
412383 database
413384 . prepare (
414385 `INSERT INTO projection_thread_sessions (
@@ -424,14 +395,9 @@ function insertThread(
424395// do not read the V1 thread rows; moving the seed to V2 is tracked in
425396// https://github.com/pingdotgg/t3code/issues/15013.
426397const SEEDED_V1_TABLES = [
427- "projection_pending_approvals" ,
428- "projection_thread_proposed_plans" ,
429- "projection_thread_activities" ,
430398 "projection_thread_messages" ,
431399 "projection_thread_sessions" ,
432- "projection_turns" ,
433400 "projection_threads" ,
434- "projection_state" ,
435401] as const ;
436402
437403const SEEDED_PROJECTION_TABLES = [ ...SEEDED_V1_TABLES , "projection_projects" ] as const ;
@@ -558,62 +524,6 @@ function seedDatabase(
558524 }
559525 }
560526
561- const turnId = `${ SHOWCASE_THREAD_ID } -turn` ;
562- const insertActivity = database . prepare (
563- `INSERT INTO projection_thread_activities (
564- activity_id, thread_id, turn_id, tone, kind, summary, payload_json, sequence, created_at
565- ) VALUES (?, ?, ?, 'tool', 'tool.completed', ?, ?, ?, ?)` ,
566- ) ;
567- insertActivity . run (
568- "trace-remote-handoff" ,
569- SHOWCASE_THREAD_ID ,
570- turnId ,
571- "Traced the remote handoff path" ,
572- JSON . stringify ( {
573- itemType : "command_execution" ,
574- title : "Traced the remote handoff path" ,
575- detail : "Three environments, one continuous workspace" ,
576- status : "completed" ,
577- } ) ,
578- 1 ,
579- minutesBefore ( now , 8 ) ,
580- ) ;
581- insertActivity . run (
582- "sync-command-center" ,
583- SHOWCASE_THREAD_ID ,
584- turnId ,
585- "Synced the command center" ,
586- JSON . stringify ( {
587- itemType : "file_change" ,
588- title : "Synced the command center" ,
589- detail : "2 files changed · instant handoffs · calm reconnects" ,
590- status : "completed" ,
591- } ) ,
592- 2 ,
593- minutesBefore ( now , 6 ) ,
594- ) ;
595- insertActivity . run (
596- "run-changed-suite" ,
597- SHOWCASE_THREAD_ID ,
598- turnId ,
599- "Ran the changed workspace" ,
600- JSON . stringify ( {
601- itemType : "command_execution" ,
602- title : "Ran the changed workspace" ,
603- detail : "612 tests passed · 3 environments online" ,
604- status : "completed" ,
605- } ) ,
606- 3 ,
607- minutesBefore ( now , 4 ) ,
608- ) ;
609-
610- for ( const [ index , projector ] of PROJECTOR_NAMES . entries ( ) ) {
611- database
612- . prepare (
613- "INSERT INTO projection_state (projector, last_applied_sequence, updated_at) VALUES (?, ?, ?)" ,
614- )
615- . run ( projector , index + 1 , minutesBefore ( now , 1 ) ) ;
616- }
617527 database . exec ( "COMMIT" ) ;
618528 } catch ( error ) {
619529 // A failed BEGIN (or an error SQLite already auto-rolled back) leaves no
0 commit comments