diff --git a/packages/test-kit/package.json b/packages/test-kit/package.json index fba5bef435..5f7d065876 100644 --- a/packages/test-kit/package.json +++ b/packages/test-kit/package.json @@ -8,7 +8,6 @@ "@agent-device/capture-kit": "workspace:*", "@agent-device/command-registry": "workspace:*", "@agent-device/contracts": "workspace:*", - "@agent-device/daemon-contracts": "workspace:*", "@agent-device/host-kit": "workspace:*", "@agent-device/kernel": "workspace:*" }, diff --git a/packages/test-kit/src/index.ts b/packages/test-kit/src/index.ts index 6075087256..4e18cb8069 100644 --- a/packages/test-kit/src/index.ts +++ b/packages/test-kit/src/index.ts @@ -44,7 +44,6 @@ export { withMockedPlatform, } from './host-execution.ts'; export { pinOwnProcessStartTime } from './host-process-mock.ts'; -export { spawnLegacyDaemonFixture } from './legacy-daemon-fixture.ts'; export { closeLoopbackServer, listenOnLoopback, diff --git a/packages/test-kit/tsconfig.json b/packages/test-kit/tsconfig.json index 5cc3fe88c7..ab0246c7e8 100644 --- a/packages/test-kit/tsconfig.json +++ b/packages/test-kit/tsconfig.json @@ -14,7 +14,6 @@ { "path": "../capture-kit" }, { "path": "../command-registry" }, { "path": "../contracts" }, - { "path": "../daemon-contracts" }, { "path": "../host-kit" }, { "path": "../kernel" } ] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aadb93b9c0..1963fa7ebe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -736,9 +736,6 @@ importers: '@agent-device/contracts': specifier: workspace:* version: link:../contracts - '@agent-device/daemon-contracts': - specifier: workspace:* - version: link:../daemon-contracts '@agent-device/host-kit': specifier: workspace:* version: link:../host-kit diff --git a/packages/test-kit/src/legacy-daemon-fixture.ts b/src/__tests__/daemon-registration-owner.fixtures.ts similarity index 96% rename from packages/test-kit/src/legacy-daemon-fixture.ts rename to src/__tests__/daemon-registration-owner.fixtures.ts index 8e2d526096..4148af46bd 100644 --- a/packages/test-kit/src/legacy-daemon-fixture.ts +++ b/src/__tests__/daemon-registration-owner.fixtures.ts @@ -50,10 +50,10 @@ export function spawnLegacyDaemonFixture(paths: DaemonPaths, acquisitionBarrier? fs.mkdirSync(path.dirname(entry), { recursive: true }); fs.writeFileSync(path.join(codeDir, 'package.json'), '{"type":"module"}'); const processUrl = new URL( - '../../../packages/daemon-contracts/src/daemon-process.ts', + '../../packages/daemon-contracts/src/daemon-process.ts', import.meta.url, ).href; - const hostProcessUrl = new URL('../../../packages/host-kit/src/process.ts', import.meta.url).href; + const hostProcessUrl = new URL('../../packages/host-kit/src/process.ts', import.meta.url).href; fs.writeFileSync( entry, ` diff --git a/src/__tests__/daemon-registration-owner.test.ts b/src/__tests__/daemon-registration-owner.test.ts index 618a1bd8d5..da8e9e7227 100644 --- a/src/__tests__/daemon-registration-owner.test.ts +++ b/src/__tests__/daemon-registration-owner.test.ts @@ -20,7 +20,8 @@ import { } from '@agent-device/daemon-contracts/daemon-resolution'; import { readRegisteredDaemonOwnership } from '@agent-device/daemon-contracts/daemon-registration'; import { readDaemonShutdownReport } from '@agent-device/daemon-contracts/daemon-shutdown-report'; -import { mkdtempForTestSync, spawnLegacyDaemonFixture } from '@agent-device/test-kit'; +import { mkdtempForTestSync } from '@agent-device/test-kit'; +import { spawnLegacyDaemonFixture } from './daemon-registration-owner.fixtures.ts'; import { registeredDaemonFixtureArgs, spawnRegisteredDaemonFixture,