File tree Expand file tree Collapse file tree
routes/player/[...recordingPath] Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 return cdfPoints;
5353 }
5454
55- // Process data for all three agents
55+ // Process data for all agents dynamically
5656 $: cdfData =
5757 data .length > 0
58- ? [
59- {
60- agent: AGENT_IDS .CLAUDE ,
61- agentName: AGENT_NAMES [AGENT_IDS .CLAUDE ],
62- color: AGENT_COLORS [AGENT_IDS .CLAUDE ],
63- values: calculateCDF (AGENT_IDS .CLAUDE , data)
64- },
65- {
66- agent: AGENT_IDS .GPT5 ,
67- agentName: AGENT_NAMES [AGENT_IDS .GPT5 ],
68- color: AGENT_COLORS [AGENT_IDS .GPT5 ],
69- values: calculateCDF (AGENT_IDS .GPT5 , data)
70- },
71- {
72- agent: AGENT_IDS .HUMAN ,
73- agentName: AGENT_NAMES [AGENT_IDS .HUMAN ],
74- color: AGENT_COLORS [AGENT_IDS .HUMAN ],
75- values: calculateCDF (AGENT_IDS .HUMAN , data)
76- }
77- ]
58+ ? Object .values (AGENT_IDS ).map ((agentId ) => ({
59+ agent: agentId,
60+ agentName: AGENT_NAMES [agentId],
61+ color: AGENT_COLORS [agentId],
62+ values: calculateCDF (agentId, data)
63+ })).filter (d => d .values .length > 0 )
7864 : [];
7965
8066 // Determine which agent is selected
Original file line number Diff line number Diff line change 123123 < IntroAgents bind: this = {introAgentsRef} {scrollIndex} {scrollyContainer} / >
124124 < IntroCDF {scrollIndex} / >
125125 < / div>
126- < Scrolly bind: value= {scrollIndex} bind: container= {scrollyContainer}>
126+ < Scrolly bind: value= {scrollIndex} bind: container= {scrollyContainer} increments = { 25 } >
127127 <!-- Step 0 : Opening prompt -->
128128 < div class = " step" >
129129 < div class = " step-inner" >
209209
210210 .sticky {
211211 width: 100 % ;
212- height: 100svh ;
212+ height: 100dvh ;
213+ will- change: transform;
214+ contain: layout style paint;
213215 position: sticky;
214216 display: flex;
215217 flex- direction: column;
233235 }
234236
235237 .step : first- of - type {
236- margin- top: calc (- 100svh + 6rem );
238+ margin- top: calc (- 100dvh + 6rem );
237239 }
238240
239241 .step - inner {
Original file line number Diff line number Diff line change 6666 <Slider bind:this ={sliderEl } bind:current ={$currAgentSlide }>
6767 {#each agents as agent , i }
6868 <Slide index ={i }>
69- <AgentCard {agent } />
69+ {#if Math .abs (i - $currAgentSlide ) <= 1 }
70+ <AgentCard {agent } />
71+ {:else }
72+ <div class =" agent-card-placeholder" style =" min-height: 400px;" />
73+ {/if }
7074 </Slide >
7175 {/each }
7276 </Slider >
Original file line number Diff line number Diff line change 4141 ? Number (benchmark[" oracle/nop" ])
4242 : undefined ;
4343 $: benchmarkPath =
44- benchmark? .benchmark_decoposed || benchmark? .benchmark_without_params || " " ;
44+ benchmark? .benchmark_decomposed || benchmark? .benchmark_without_params || " " ;
4545
4646 // Reactive theme subscription
4747 let currentTheme;
122122 >
123123 </div >
124124 <div class =" metric" >
125- <span class =" metric-label" >Expert Human speedup</span >
125+ <span class =" metric-label" >Oracle speedup</span >
126126 <span class =" metric-value highlight"
127127 >{oracleSpeed !== undefined
128128 ? ` ${oracleSpeed .toFixed (4 )}x `
You can’t perform that action at this time.
0 commit comments