1- import { daemonPlatformServicesFixture } from '../platform-services-fixture.ts' ;
1+ import { composedPlatformServicesFixture } from '../platform-services-fixture.ts' ;
22import { test , expect , vi , afterEach , beforeEach } from 'vitest' ;
33import { legacyDispatchCapture } from '../../../daemon/__tests__/legacy-snapshot-capture-fixture.ts' ;
44import { resetGetRuntimeFixture } from '../../../daemon/__tests__/interaction-get-runtime-fixture.ts' ;
@@ -89,7 +89,7 @@ test('snapshot rejects @ref scope without existing session snapshot', async () =
8989
9090 const response = await handleSnapshotCommands ( {
9191 createCommandSurface : testCreateCommandSurface ,
92- platformServices : daemonPlatformServicesFixture ( ) ,
92+ platformServices : composedPlatformServicesFixture ( ) ,
9393 req : snapshotRequest ( sessionName , 'snapshot' , { flags : { snapshotScope : '@e1' } } ) ,
9494 sessionName,
9595 logPath : '/tmp/daemon.log' ,
@@ -112,7 +112,7 @@ test('snapshot on iOS rejects sessions without a tracked app', async () => {
112112
113113 const response = await handleSnapshotCommands ( {
114114 createCommandSurface : testCreateCommandSurface ,
115- platformServices : daemonPlatformServicesFixture ( ) ,
115+ platformServices : composedPlatformServicesFixture ( ) ,
116116 req : snapshotRequest ( sessionName , 'snapshot' ) ,
117117 sessionName,
118118 logPath : '/tmp/daemon.log' ,
@@ -141,7 +141,7 @@ test('snapshot on iOS without a tracked app carries the detected open command as
141141 const sessionName = 'ios-sim-no-app-hinted' ;
142142 sessionStore . publish ( sessionName , makeSession ( sessionName , iosSimulatorDevice ) ) ;
143143
144- const platformServices = daemonPlatformServicesFixture ( ) ;
144+ const platformServices = composedPlatformServicesFixture ( ) ;
145145 const response = await handleSnapshotCommands ( {
146146 createCommandSurface : testCreateCommandSurface ,
147147 platformServices,
@@ -180,7 +180,7 @@ test('snapshot on provider-backed iOS runs without a tracked app', async () => {
180180
181181 const response = await handleSnapshotCommands ( {
182182 createCommandSurface : testCreateCommandSurface ,
183- platformServices : daemonPlatformServicesFixture ( ) ,
183+ platformServices : composedPlatformServicesFixture ( ) ,
184184 req : snapshotRequest ( sessionName , 'snapshot' ) ,
185185 sessionName,
186186 logPath : '/tmp/daemon.log' ,
@@ -205,7 +205,7 @@ test('diff on local iOS still requires a tracked app', async () => {
205205
206206 const response = await handleSnapshotCommands ( {
207207 createCommandSurface : testCreateCommandSurface ,
208- platformServices : daemonPlatformServicesFixture ( ) ,
208+ platformServices : composedPlatformServicesFixture ( ) ,
209209 req : snapshotRequest ( sessionName , 'diff' , { positionals : [ 'snapshot' ] } ) ,
210210 sessionName,
211211 logPath : '/tmp/daemon.log' ,
@@ -235,7 +235,7 @@ test('snapshot on iOS runs when the session tracks an app', async () => {
235235
236236 const response = await handleSnapshotCommands ( {
237237 createCommandSurface : testCreateCommandSurface ,
238- platformServices : daemonPlatformServicesFixture ( ) ,
238+ platformServices : composedPlatformServicesFixture ( ) ,
239239 req : snapshotRequest ( sessionName , 'snapshot' ) ,
240240 sessionName,
241241 logPath : '/tmp/daemon.log' ,
@@ -272,7 +272,7 @@ test('snapshot re-activates a complete frame; diff preserves it (ADR 0014)', asy
272272
273273 const snapshotResponse = await handleSnapshotCommands ( {
274274 createCommandSurface : testCreateCommandSurface ,
275- platformServices : daemonPlatformServicesFixture ( ) ,
275+ platformServices : composedPlatformServicesFixture ( ) ,
276276 req : snapshotRequest ( sessionName , 'snapshot' ) ,
277277 sessionName,
278278 logPath : '/tmp/daemon.log' ,
@@ -286,7 +286,7 @@ test('snapshot re-activates a complete frame; diff preserves it (ADR 0014)', asy
286286
287287 const diffResponse = await handleSnapshotCommands ( {
288288 createCommandSurface : testCreateCommandSurface ,
289- platformServices : daemonPlatformServicesFixture ( ) ,
289+ platformServices : composedPlatformServicesFixture ( ) ,
290290 req : snapshotRequest ( sessionName , 'diff' , { positionals : [ 'snapshot' ] } ) ,
291291 sessionName,
292292 logPath : '/tmp/daemon.log' ,
@@ -307,7 +307,7 @@ async function runVersionedRefsCommand(params: {
307307} ) : Promise < Record < string , unknown > | undefined > {
308308 const response = await handleSnapshotCommands ( {
309309 createCommandSurface : testCreateCommandSurface ,
310- platformServices : daemonPlatformServicesFixture ( ) ,
310+ platformServices : composedPlatformServicesFixture ( ) ,
311311 req : snapshotRequest ( params . sessionName , params . command , {
312312 positionals : params . command === 'diff' ? [ 'snapshot' ] : [ ] ,
313313 } ) ,
@@ -394,7 +394,7 @@ test('daemon-private snapshot observation advances capture state without publish
394394
395395 const response = await handleSnapshotCommands ( {
396396 createCommandSurface : testCreateCommandSurface ,
397- platformServices : daemonPlatformServicesFixture ( ) ,
397+ platformServices : composedPlatformServicesFixture ( ) ,
398398 req : snapshotRequest ( sessionName , 'snapshot' , { internal : { observationOnly : true } } ) ,
399399 sessionName,
400400 logPath : '/tmp/daemon.log' ,
@@ -418,7 +418,7 @@ test('snapshot surfaces filtered-to-zero Android guidance for interactive snapsh
418418
419419 const response = await handleSnapshotCommands ( {
420420 createCommandSurface : testCreateCommandSurface ,
421- platformServices : daemonPlatformServicesFixture ( ) ,
421+ platformServices : composedPlatformServicesFixture ( ) ,
422422 req : snapshotRequest ( sessionName , 'snapshot' , {
423423 flags : { snapshotInteractiveOnly : true , snapshotDepth : 3 } ,
424424 } ) ,
@@ -440,7 +440,7 @@ test('diff rejects unsupported kind', async () => {
440440 const sessionStore = makeSessionStore ( ) ;
441441 const response = await handleSnapshotCommands ( {
442442 createCommandSurface : testCreateCommandSurface ,
443- platformServices : daemonPlatformServicesFixture ( ) ,
443+ platformServices : composedPlatformServicesFixture ( ) ,
444444 req : snapshotRequest ( 'default' , 'diff' , { positionals : [ 'unknown' ] } ) ,
445445 sessionName : 'default' ,
446446 logPath : '/tmp/daemon.log' ,
@@ -459,7 +459,7 @@ test('diff screenshot is not handled daemon-side (client-backed command)', async
459459 const sessionStore = makeSessionStore ( ) ;
460460 const response = await handleSnapshotCommands ( {
461461 createCommandSurface : testCreateCommandSurface ,
462- platformServices : daemonPlatformServicesFixture ( ) ,
462+ platformServices : composedPlatformServicesFixture ( ) ,
463463 req : snapshotRequest ( 'default' , 'diff' , { positionals : [ 'screenshot' ] } ) ,
464464 sessionName : 'default' ,
465465 logPath : '/tmp/daemon.log' ,
0 commit comments