Skip to content

Commit 25e3183

Browse files
thymikeeclaude
andcommitted
refactor(test-kit): drop the daemon-contracts dependency
spawnLegacyDaemonFixture was test-kit's only use of daemon-contracts, which now leaves the packages test-kit builds on free to declare test-kit as a devDependency. The fixture's repo-root URLs follow it one directory up. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent ebf5c9e commit 25e3183

6 files changed

Lines changed: 4 additions & 9 deletions

File tree

‎packages/test-kit/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"@agent-device/capture-kit": "workspace:*",
99
"@agent-device/command-registry": "workspace:*",
1010
"@agent-device/contracts": "workspace:*",
11-
"@agent-device/daemon-contracts": "workspace:*",
1211
"@agent-device/host-kit": "workspace:*",
1312
"@agent-device/kernel": "workspace:*"
1413
},

‎packages/test-kit/src/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export {
4444
withMockedPlatform,
4545
} from './host-execution.ts';
4646
export { pinOwnProcessStartTime } from './host-process-mock.ts';
47-
export { spawnLegacyDaemonFixture } from './legacy-daemon-fixture.ts';
4847
export {
4948
closeLoopbackServer,
5049
listenOnLoopback,

‎packages/test-kit/tsconfig.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
{ "path": "../capture-kit" },
1515
{ "path": "../command-registry" },
1616
{ "path": "../contracts" },
17-
{ "path": "../daemon-contracts" },
1817
{ "path": "../host-kit" },
1918
{ "path": "../kernel" }
2019
]

‎pnpm-lock.yaml‎

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/__tests__/daemon-registration-owner.fixtures.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ export function spawnLegacyDaemonFixture(paths: DaemonPaths, acquisitionBarrier?
5050
fs.mkdirSync(path.dirname(entry), { recursive: true });
5151
fs.writeFileSync(path.join(codeDir, 'package.json'), '{"type":"module"}');
5252
const processUrl = new URL(
53-
'../../../packages/daemon-contracts/src/daemon-process.ts',
53+
'../../packages/daemon-contracts/src/daemon-process.ts',
5454
import.meta.url,
5555
).href;
56-
const hostProcessUrl = new URL('../../../packages/host-kit/src/process.ts', import.meta.url).href;
56+
const hostProcessUrl = new URL('../../packages/host-kit/src/process.ts', import.meta.url).href;
5757
fs.writeFileSync(
5858
entry,
5959
`

‎src/__tests__/daemon-registration-owner.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import {
2020
} from '@agent-device/daemon-contracts/daemon-resolution';
2121
import { readRegisteredDaemonOwnership } from '@agent-device/daemon-contracts/daemon-registration';
2222
import { readDaemonShutdownReport } from '@agent-device/daemon-contracts/daemon-shutdown-report';
23-
import { mkdtempForTestSync, spawnLegacyDaemonFixture } from '@agent-device/test-kit';
23+
import { mkdtempForTestSync } from '@agent-device/test-kit';
24+
import { spawnLegacyDaemonFixture } from './daemon-registration-owner.fixtures.ts';
2425
import {
2526
registeredDaemonFixtureArgs,
2627
spawnRegisteredDaemonFixture,

0 commit comments

Comments
 (0)