@@ -11,7 +11,7 @@ import {
1111 type DesktopAppActivationResponse ,
1212} from "@t3tools/contracts" ;
1313import { resolveDesktopAppControlAddress } from "@t3tools/shared/desktopAppControl" ;
14- import { HostProcessPlatform , HostProcessUserId } from "@t3tools/shared/hostProcess " ;
14+ import * as HostProcess from "@t3tools/shared/HostProcess " ;
1515import { it } from "@effect/vitest" ;
1616import * as Effect from "effect/Effect" ;
1717import { afterEach , describe , expect } from "vite-plus/test" ;
@@ -83,8 +83,8 @@ function exchange(address: string, payload: DesktopAppActivationRequest) {
8383describe ( "desktop app control server" , ( ) => {
8484 it . effect ( "roundtrips a request and removes its socket on shutdown" , ( ) =>
8585 Effect . gen ( function * ( ) {
86- const platform = yield * HostProcessPlatform ;
87- const userId = yield * HostProcessUserId ;
86+ const platform = yield * HostProcess . Platform ;
87+ const userId = yield * HostProcess . UserId ;
8888 yield * Effect . promise ( async ( ) => {
8989 const root = await NodeFSP . mkdtemp ( NodePath . join ( NodeOS . tmpdir ( ) , "t3-app-control-test-" ) ) ;
9090 const target = makeTarget ( NodePath . join ( root , "userdata" ) , platform , userId ) ;
@@ -123,8 +123,8 @@ describe("desktop app control server", () => {
123123
124124 it . effect ( "cancels a queued request when the client disconnects" , ( ) =>
125125 Effect . gen ( function * ( ) {
126- const platform = yield * HostProcessPlatform ;
127- const userId = yield * HostProcessUserId ;
126+ const platform = yield * HostProcess . Platform ;
127+ const userId = yield * HostProcess . UserId ;
128128 yield * Effect . promise ( async ( ) => {
129129 const root = await NodeFSP . mkdtemp ( NodePath . join ( NodeOS . tmpdir ( ) , "t3-app-cancel-test-" ) ) ;
130130 const target = makeTarget ( NodePath . join ( root , "userdata" ) , platform , userId ) ;
@@ -162,8 +162,8 @@ describe("desktop app control server", () => {
162162 // Two desktop apps can share one state dir, such as nightly and a preview build.
163163 it . effect ( "keeps a newer app's socket when an older app on the same state dir quits" , ( ) =>
164164 Effect . gen ( function * ( ) {
165- const platform = yield * HostProcessPlatform ;
166- const userId = yield * HostProcessUserId ;
165+ const platform = yield * HostProcess . Platform ;
166+ const userId = yield * HostProcess . UserId ;
167167 if ( platform === "win32" ) return ;
168168 yield * Effect . promise ( async ( ) => {
169169 const root = await NodeFSP . mkdtemp ( NodePath . join ( NodeOS . tmpdir ( ) , "t3-app-takeover-test-" ) ) ;
@@ -183,8 +183,8 @@ describe("desktop app control server", () => {
183183
184184 it . effect ( "binds its address again after the socket file is removed" , ( ) =>
185185 Effect . gen ( function * ( ) {
186- const platform = yield * HostProcessPlatform ;
187- const userId = yield * HostProcessUserId ;
186+ const platform = yield * HostProcess . Platform ;
187+ const userId = yield * HostProcess . UserId ;
188188 if ( platform === "win32" ) return ;
189189 yield * Effect . promise ( async ( ) => {
190190 const root = await NodeFSP . mkdtemp ( NodePath . join ( NodeOS . tmpdir ( ) , "t3-app-reclaim-test-" ) ) ;
0 commit comments