Skip to content

Commit 3ce4a9b

Browse files
committed
refactor(remote): extract src/remote into the private @agent-device/remote package
1 parent b7c93e3 commit 3ce4a9b

75 files changed

Lines changed: 171 additions & 66 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎examples/sdk/tsconfig.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
{ "path": "../../packages/provision-kit" },
5858
{ "path": "../../packages/proxy" },
5959
{ "path": "../../packages/react-native" },
60+
{ "path": "../../packages/remote" },
6061
{ "path": "../../packages/replay-port" },
6162
{ "path": "../../packages/replay-test" },
6263
{ "path": "../../packages/selectors" },

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@
310310
"@agent-device/provision-kit": "workspace:*",
311311
"@agent-device/proxy": "workspace:*",
312312
"@agent-device/react-native": "workspace:*",
313+
"@agent-device/remote": "workspace:*",
313314
"@agent-device/replay-port": "workspace:*",
314315
"@agent-device/replay-test": "workspace:*",
315316
"@agent-device/selectors": "workspace:*",

‎packages/daemon/src/server/__tests__/atomic-publish-ownership.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const SIMPLE_PUBLISHERS = [
1212
new URL('../provider-lease-expiry.ts', import.meta.url),
1313
new URL('../../core/session-script-writer.ts', import.meta.url),
1414
new URL('../../../../../packages/platform-apple/src/runner/runner-lease.ts', import.meta.url),
15-
new URL('../../../../../src/remote/remote-connection-state.ts', import.meta.url),
15+
new URL('../../../../../packages/remote/src/remote-connection-state.ts', import.meta.url),
1616
] as const;
1717

1818
const PROCESS_LOCK_SOURCE = new URL(

‎packages/daemon/src/server/request-diagnostics-http.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* DAEMON host. A remote caller — a CI runner driving an EAS/limrun simulator —
77
* cannot read that filesystem, so the record has to be reachable over the same
88
* base URL and token the caller already holds. The client side is
9-
* `src/remote/remote-request-diagnostics.ts`.
9+
* `packages/remote/src/remote-request-diagnostics.ts`.
1010
*
1111
* Scope: exactly one record, addressed the way the error names it
1212
* (`DaemonError.diagnosticsRecord`). A record that was never written (the

‎packages/remote/package.json‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@agent-device/remote",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"description": "Remote-daemon client plumbing: remote config profiles and their provenance, the persisted remote connection state, request artifact upload/download, and remote diagnostics localization. Internal workspace package bundled into the published agent-device artifact.",
7+
"dependencies": {
8+
"@agent-device/capture-kit": "workspace:*",
9+
"@agent-device/contracts": "workspace:*",
10+
"@agent-device/daemon-contracts": "workspace:*",
11+
"@agent-device/host-kit": "workspace:*",
12+
"@agent-device/kernel": "workspace:*"
13+
},
14+
"exports": {
15+
"./daemon-artifacts": {
16+
"types": "./src/daemon-artifacts.ts",
17+
"default": "./src/daemon-artifacts.ts"
18+
},
19+
"./remote-config": {
20+
"types": "./src/remote-config.ts",
21+
"default": "./src/remote-config.ts"
22+
},
23+
"./remote-config-core": {
24+
"types": "./src/remote-config-core.ts",
25+
"default": "./src/remote-config-core.ts"
26+
},
27+
"./remote-config-schema": {
28+
"types": "./src/remote-config-schema.ts",
29+
"default": "./src/remote-config-schema.ts"
30+
},
31+
"./remote-connection-state": {
32+
"types": "./src/remote-connection-state.ts",
33+
"default": "./src/remote-connection-state.ts"
34+
},
35+
"./remote-request-diagnostics": {
36+
"types": "./src/remote-request-diagnostics.ts",
37+
"default": "./src/remote-request-diagnostics.ts"
38+
}
39+
},
40+
"devDependencies": {
41+
"@agent-device/test-kit": "workspace:*"
42+
}
43+
}
File renamed without changes.

src/remote/__tests__/daemon-artifacts-save-script.test.ts renamed to packages/remote/src/__tests__/daemon-artifacts-save-script.test.ts

File renamed without changes.

src/remote/__tests__/daemon-artifacts-test-command.test.ts renamed to packages/remote/src/__tests__/daemon-artifacts-test-command.test.ts

File renamed without changes.

src/remote/__tests__/remote-config-public.test.ts renamed to packages/remote/src/__tests__/remote-config-public.test.ts

File renamed without changes.

src/remote/__tests__/remote-connection-state.test.ts renamed to packages/remote/src/__tests__/remote-connection-state.test.ts

File renamed without changes.

0 commit comments

Comments
 (0)