dsh-apk-vm 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/remote.js ADDED
@@ -0,0 +1,168 @@
1
+ /**
2
+ * SSH adb tunnel for running the Android VM on a remote Linux host.
3
+ *
4
+ * The tunnel is deliberately generic: it forwards a local loopback port to the
5
+ * remote emulator's adb port (normally 5558) with `ssh -N -L`, then the normal
6
+ * AndroidVm attach path runs `adb connect 127.0.0.1:<localPort>`. Nothing is
7
+ * stored, logged or sent to a third party. The caller owns the key path.
8
+ */
9
+ import { spawn } from 'node:child_process';
10
+ import { existsSync } from 'node:fs';
11
+ import net from 'node:net';
12
+ import path from 'node:path';
13
+
14
+ function asPort(value, fallback) {
15
+ const n = Number(value);
16
+ if (!Number.isInteger(n) || n < 1 || n > 65535) return fallback;
17
+ return n;
18
+ }
19
+
20
+ function safeHost(value) {
21
+ const host = String(value || '').trim();
22
+ if (!/^[A-Za-z0-9._:-]{1,253}$/.test(host)) throw new Error('invalid SSH host');
23
+ return host;
24
+ }
25
+
26
+ function safeUser(value) {
27
+ const user = String(value || '').trim() || 'root';
28
+ if (!/^[A-Za-z0-9._-]{1,64}$/.test(user)) throw new Error('invalid SSH user');
29
+ return user;
30
+ }
31
+
32
+ function findFreePort() {
33
+ return new Promise((resolve, reject) => {
34
+ const server = net.createServer();
35
+ server.once('error', reject);
36
+ server.listen(0, '127.0.0.1', () => {
37
+ const address = server.address();
38
+ const port = address && typeof address === 'object' ? address.port : 0;
39
+ server.close(() => resolve(port));
40
+ });
41
+ });
42
+ }
43
+
44
+ function waitForPort(port, timeoutMs = 20000) {
45
+ const deadline = Date.now() + timeoutMs;
46
+ return new Promise((resolve, reject) => {
47
+ const attempt = () => {
48
+ const socket = net.connect({ host: '127.0.0.1', port });
49
+ socket.once('connect', () => {
50
+ socket.destroy();
51
+ resolve();
52
+ });
53
+ socket.once('error', () => {
54
+ socket.destroy();
55
+ if (Date.now() >= deadline) reject(new Error(`SSH tunnel did not listen on port ${port}`));
56
+ else setTimeout(attempt, 250);
57
+ });
58
+ };
59
+ attempt();
60
+ });
61
+ }
62
+
63
+ export class SshAdbTunnel {
64
+ constructor(options = {}) {
65
+ this.sshHost = safeHost(options.host);
66
+ this.sshUser = safeUser(options.user);
67
+ this.sshPort = asPort(options.sshPort, 22);
68
+ this.remotePort = asPort(options.remotePort, 5558);
69
+ this.localPort = asPort(options.localPort, 0);
70
+ this.keyPath = String(options.keyPath || '').trim() ? path.resolve(String(options.keyPath)) : '';
71
+ if (this.keyPath && !existsSync(this.keyPath)) throw new Error(`SSH key not found: ${this.keyPath}`);
72
+ this.sshPath = String(options.sshPath || 'ssh');
73
+ this.child = null;
74
+ this.state = 'stopped';
75
+ this.lastError = null;
76
+ this.startedAt = 0;
77
+ }
78
+
79
+ buildArgs() {
80
+ const args = [
81
+ '-N',
82
+ '-o',
83
+ 'BatchMode=yes',
84
+ '-o',
85
+ 'ExitOnForwardFailure=yes',
86
+ '-o',
87
+ 'ServerAliveInterval=15',
88
+ '-p',
89
+ String(this.sshPort),
90
+ ];
91
+ if (this.keyPath) args.push('-i', this.keyPath);
92
+ args.push(
93
+ '-L',
94
+ `127.0.0.1:${this.localPort}:127.0.0.1:${this.remotePort}`,
95
+ `${this.sshUser}@${this.sshHost}`,
96
+ );
97
+ return args;
98
+ }
99
+
100
+ async start() {
101
+ if (this.state === 'running') return { ok: true, ...this.status() };
102
+ if (this.state === 'starting') throw new Error('SSH tunnel is already starting');
103
+ if (!this.localPort) this.localPort = await findFreePort();
104
+ this.state = 'starting';
105
+ const args = this.buildArgs();
106
+ const child = spawn(this.sshPath, args, { windowsHide: true, stdio: ['ignore', 'ignore', 'pipe'] });
107
+ this.child = child;
108
+ let stderr = '';
109
+ child.stderr.on('data', (chunk) => {
110
+ stderr += chunk.toString('utf8').slice(0, 4000);
111
+ });
112
+ child.once('error', (error) => {
113
+ this.state = 'error';
114
+ this.lastError = error.message;
115
+ });
116
+ child.once('exit', (code) => {
117
+ if (this.state === 'running' || this.state === 'starting') {
118
+ this.state = 'error';
119
+ this.lastError = `ssh exited (${code}): ${stderr.trim().slice(0, 500)}`;
120
+ }
121
+ this.child = null;
122
+ });
123
+ await waitForPort(this.localPort, 20000);
124
+ this.state = 'running';
125
+ this.startedAt = Date.now();
126
+ return { ok: true, ...this.status() };
127
+ }
128
+
129
+ async stop() {
130
+ const child = this.child;
131
+ this.child = null;
132
+ this.state = 'stopped';
133
+ this.lastError = null;
134
+ if (!child) return { ok: true, ...this.status() };
135
+ try {
136
+ child.kill();
137
+ } catch {
138
+ /* ignore */
139
+ }
140
+ await new Promise((resolve) => {
141
+ const timer = setTimeout(resolve, 1500);
142
+ if (typeof timer.unref === 'function') timer.unref();
143
+ child.once('exit', () => {
144
+ clearTimeout(timer);
145
+ resolve();
146
+ });
147
+ });
148
+ return { ok: true, ...this.status() };
149
+ }
150
+
151
+ status() {
152
+ return {
153
+ sshHost: this.sshHost,
154
+ sshUser: this.sshUser,
155
+ remotePort: this.remotePort,
156
+ localPort: this.localPort,
157
+ serial: this.localPort ? `127.0.0.1:${this.localPort}` : null,
158
+ state: this.state,
159
+ lastError: this.lastError,
160
+ startedAt: this.startedAt,
161
+ };
162
+ }
163
+ }
164
+
165
+ export function buildSshTunnelArgs(options) {
166
+ const tunnel = new SshAdbTunnel({ ...options, localPort: options.localPort || 15037 });
167
+ return tunnel.buildArgs();
168
+ }
@@ -5,6 +5,8 @@
5
5
  * platform and the client receives a ready-to-use `apk_vm` command for each node.
6
6
  */
7
7
 
8
+ import { createHash } from 'node:crypto';
9
+
8
10
  function decodeEntities(value) {
9
11
  return String(value || '')
10
12
  .replace(/&quot;/g, '"')
@@ -135,19 +137,59 @@ export function selectorForNode(node) {
135
137
  };
136
138
  }
137
139
 
140
+ /** Stable ID for one UIAutomator hierarchy, used to scope ephemeral control IDs. */
141
+ export function snapshotIdForXml(xml) {
142
+ return `ui-${createHash('sha1').update(String(xml || '')).digest('hex').slice(0, 12)}`;
143
+ }
144
+
145
+ function controlFeaturesForNode(node, screen) {
146
+ const features = {};
147
+ if (node.resourceId) features.resourceId = node.resourceId;
148
+ else if (node.text) features.text = node.text;
149
+ else if (node.contentDesc) features.contentDesc = node.contentDesc;
150
+ else if (node.className) features.className = node.className;
151
+ if (node.clickable) features.clickable = true;
152
+ if (screen && Number(screen.width) > 0 && Number(screen.height) > 0 && node.bounds) {
153
+ features.boundsRatio = {
154
+ x: Math.round(((node.bounds.x1 + node.bounds.x2) / 2 / Number(screen.width)) * 1000) / 1000,
155
+ y: Math.round(((node.bounds.y1 + node.bounds.y2) / 2 / Number(screen.height)) * 1000) / 1000,
156
+ };
157
+ }
158
+ return features;
159
+ }
160
+
161
+ function controlTags(node) {
162
+ const tags = [];
163
+ if (node.resourceId) tags.push(`id:${node.resourceId}`);
164
+ if (node.text) tags.push(`text:${String(node.text).slice(0, 60)}`);
165
+ if (node.contentDesc) tags.push(`desc:${String(node.contentDesc).slice(0, 60)}`);
166
+ if (node.className) tags.push(`class:${String(node.className).split('.').pop()}`);
167
+ if (node.clickable) tags.push('clickable');
168
+ if (node.scrollable) tags.push('scrollable');
169
+ if (node.focusable) tags.push('focusable');
170
+ if (node.enabled === false) tags.push('disabled');
171
+ return tags;
172
+ }
173
+
138
174
  /** Add stable labels/selectors and keep the result bounded for browser transport. */
139
175
  export function decorateUiNodes(nodes, options = {}) {
140
176
  const limit = Math.max(1, Math.min(1000, Number(options.limit) || 400));
141
177
  const all = Array.isArray(nodes) ? nodes : [];
178
+ const snapshotId = options.snapshotId || null;
142
179
  const decorated = [];
143
180
  for (const node of all) {
144
181
  if (!node) continue;
145
182
  if (!node.bounds || node.bounds.width <= 0 || node.bounds.height <= 0) continue;
146
183
  const selector = selectorForNode(node);
184
+ const controlId = Number.isInteger(node.order) ? `c${node.order + 1}` : `c${decorated.length + 1}`;
147
185
  decorated.push({
148
186
  ...node,
187
+ controlId,
188
+ ...(snapshotId ? { snapshotId } : {}),
149
189
  label: shortLabel(node),
150
190
  selector,
191
+ features: controlFeaturesForNode(node, options.screen),
192
+ tags: controlTags(node),
151
193
  // Overlay only needs interactive/meaningful boxes; containers are still
152
194
  // returned to the inspector list so Agents can see hierarchy.
153
195
  interactive: node.clickable || node.focusable || node.scrollable || Boolean(node.text),
@@ -159,13 +201,30 @@ export function decorateUiNodes(nodes, options = {}) {
159
201
 
160
202
  /** Complete payload used by GET /apk-vm/debug/inspect and the apk_vm tool. */
161
203
  export function buildInspectorPayload(dump, screen, options = {}) {
162
- const parsed = parseUiHierarchy(dump && dump.xml);
163
- const decorated = decorateUiNodes(parsed.nodes, options);
204
+ const xml = dump && dump.xml;
205
+ const snapshotId = options.snapshotId || (xml ? snapshotIdForXml(xml) : null);
206
+ const parsed = parseUiHierarchy(xml);
207
+ const decorated = decorateUiNodes(parsed.nodes, { ...options, screen, snapshotId });
208
+ const controls = decorated.nodes
209
+ .filter((node) => node.interactive)
210
+ .map((node) => ({
211
+ controlId: node.controlId,
212
+ label: node.label,
213
+ features: node.features,
214
+ tags: node.tags,
215
+ selector: node.selector,
216
+ bounds: node.bounds,
217
+ clickable: Boolean(node.clickable),
218
+ enabled: node.enabled !== false,
219
+ ...(screen && (screen.width || screen.height) ? { screen } : {}),
220
+ }));
164
221
  return {
165
222
  ok: true,
223
+ snapshotId,
166
224
  rotation: parsed.rotation,
167
225
  screen: screen || null,
168
226
  nodes: decorated.nodes,
227
+ controls,
169
228
  total: decorated.total,
170
229
  truncated: decorated.truncated,
171
230
  xmlBytes: dump && dump.bytes ? dump.bytes : null,
@@ -0,0 +1,254 @@
1
+ /**
2
+ * VM ownership leases.
3
+ *
4
+ * A running Android emulator is expensive and stateful: two conversations that
5
+ * type into it at the same time silently fight over the foreground app. This
6
+ * module records who is currently using each VM (default or extra instance)
7
+ * and lets callers choose a shared or dedicated VM without implicit takeover.
8
+ *
9
+ * Leases are intentionally small, serializable records. InstanceManager keeps
10
+ * them in memory; the lease key is derived from a DSH session id or workspace
11
+ * path, never from a PID or a human-readable display label.
12
+ */
13
+
14
+ export const OWNER_SCOPE = Object.freeze({
15
+ SHARED: 'shared',
16
+ CONVERSATION: 'conversation',
17
+ PROJECT: 'project',
18
+ });
19
+
20
+ export const OWNER_SCOPES = Object.values(OWNER_SCOPE);
21
+ export const DEFAULT_LEASE_TTL_MS = 30 * 60 * 1000;
22
+
23
+ export function normalizeScope(value, fallback = OWNER_SCOPE.SHARED) {
24
+ const text = String(value || '').trim().toLowerCase();
25
+ if (OWNER_SCOPES.includes(text)) return text;
26
+ return fallback;
27
+ }
28
+
29
+ function cleanText(value, max = 160) {
30
+ return String(value === undefined || value === null ? '' : value)
31
+ .replace(/[\u0000-\u001f\u007f]+/g, ' ')
32
+ .replace(/\s+/g, ' ')
33
+ .trim()
34
+ .slice(0, max);
35
+ }
36
+
37
+ export function shortKey(value, max = 12) {
38
+ const text = cleanText(value, 200);
39
+ if (!text) return 'unknown';
40
+ return text.length <= max ? text : text.slice(0, Math.max(4, max - 1)) + '…';
41
+ }
42
+
43
+ /** Build a stable owner key for a session/project scope. */
44
+ export function ownerKeyFor({ scope, sessionId, workspace, key } = {}) {
45
+ const normalized = normalizeScope(scope);
46
+ const explicit = cleanText(key, 200);
47
+ if (explicit) return explicit;
48
+ if (normalized === OWNER_SCOPE.CONVERSATION) {
49
+ const id = cleanText(sessionId, 200);
50
+ return id ? `session:${id}` : 'session:anonymous';
51
+ }
52
+ if (normalized === OWNER_SCOPE.PROJECT) {
53
+ const cwd = cleanText(workspace, 400);
54
+ return cwd ? `project:${cwd}` : 'project:unknown';
55
+ }
56
+ // A shared VM is still leased per conversation: two shared users must not
57
+ // silently look like the same owner just because they both chose "shared".
58
+ const sharedSession = cleanText(sessionId, 200);
59
+ return sharedSession ? `shared:${sharedSession}` : 'shared';
60
+ }
61
+
62
+ function workspaceBase(workspace) {
63
+ return cleanText(workspace, 400).split(/[\\/]/).filter(Boolean).pop() || '';
64
+ }
65
+
66
+ /** Human-readable label; the UI must never rely on the raw key for display. */
67
+ export function ownerLabelFor(owner) {
68
+ if (!owner || typeof owner !== 'object') return '未占用';
69
+ const explicit = cleanText(owner.label, 80);
70
+ if (explicit) return explicit;
71
+ const scope = normalizeScope(owner.scope);
72
+ if (scope === OWNER_SCOPE.CONVERSATION) {
73
+ const id = shortKey(owner.sessionId || owner.key, 8);
74
+ return id === 'unknown' ? '对话' : `对话 ${id}`;
75
+ }
76
+ if (scope === OWNER_SCOPE.PROJECT) {
77
+ const base = workspaceBase(owner.workspace || owner.key);
78
+ return base ? `项目 ${base}` : '项目';
79
+ }
80
+ const session = shortKey(owner.sessionId, 8);
81
+ if (session !== 'unknown') return `共享 ${session}`;
82
+ const shared = shortKey(owner.key, 12);
83
+ return shared === 'shared' || shared === 'unknown' ? '共享使用' : `共享 ${shared}`;
84
+ }
85
+
86
+ /**
87
+ * Create a normalized owner record. `since`/`lastSeenAt` are assigned by the
88
+ * lease book when the owner is first/again claimed; callers may override them
89
+ * for tests and for restoring a serialized lease.
90
+ */
91
+ export function createOwner({
92
+ key,
93
+ scope = OWNER_SCOPE.SHARED,
94
+ sessionId = null,
95
+ workspace = null,
96
+ label = '',
97
+ source = 'tool',
98
+ since = null,
99
+ lastSeenAt = null,
100
+ } = {}) {
101
+ const normalizedScope = normalizeScope(scope);
102
+ const resolvedKey = ownerKeyFor({
103
+ scope: normalizedScope,
104
+ sessionId,
105
+ workspace,
106
+ key,
107
+ });
108
+ const owner = {
109
+ key: resolvedKey,
110
+ scope: normalizedScope,
111
+ sessionId: cleanText(sessionId, 200) || null,
112
+ workspace: cleanText(workspace, 400) || null,
113
+ label: cleanText(label, 80) || ownerLabelFor({ key: resolvedKey, scope: normalizedScope, sessionId, workspace }),
114
+ source: cleanText(source, 40) || 'tool',
115
+ since: Number.isFinite(since) ? Number(since) : null,
116
+ lastSeenAt: Number.isFinite(lastSeenAt) ? Number(lastSeenAt) : null,
117
+ };
118
+ return owner;
119
+ }
120
+
121
+ /** Serialize an owner for JSON responses without exposing internal objects. */
122
+ export function publicOwner(owner) {
123
+ if (!owner) return null;
124
+ return {
125
+ key: owner.key,
126
+ scope: owner.scope,
127
+ sessionId: owner.sessionId || null,
128
+ workspace: owner.workspace || null,
129
+ label: ownerLabelFor(owner),
130
+ source: owner.source || 'tool',
131
+ since: owner.since ?? null,
132
+ lastSeenAt: owner.lastSeenAt ?? null,
133
+ expiresAt: owner.expiresAt ?? null,
134
+ };
135
+ }
136
+
137
+ export class VmLeaseConflict extends Error {
138
+ constructor(instanceId, owner, message) {
139
+ const label = owner ? ownerLabelFor(owner) : 'another conversation';
140
+ super(message || `VM ${instanceId} is in use by ${label}; pass force:true to take it over`);
141
+ this.name = 'VmLeaseConflict';
142
+ this.code = 'vm-busy';
143
+ this.status = 409;
144
+ this.instanceId = instanceId;
145
+ this.owner = publicOwner(owner);
146
+ }
147
+ }
148
+
149
+ /**
150
+ * In-memory lease table. `list()` includes a computed `expiresAt` but never
151
+ * mutates the stored owner beyond lastSeen/since bookkeeping.
152
+ */
153
+ export class VmLeaseBook {
154
+ constructor({ ttlMs = DEFAULT_LEASE_TTL_MS, now = Date.now } = {}) {
155
+ this.ttlMs = Math.max(0, Number(ttlMs) || 0);
156
+ this.now = typeof now === 'function' ? now : Date.now;
157
+ this.leases = new Map();
158
+ }
159
+
160
+ isExpired(lease, at = this.now()) {
161
+ if (!lease || this.ttlMs <= 0) return false;
162
+ const last = Number(lease.lastSeenAt || lease.since || 0);
163
+ return last > 0 && at - last > this.ttlMs;
164
+ }
165
+
166
+ get(id) {
167
+ const key = String(id || 'default');
168
+ const lease = this.leases.get(key) || null;
169
+ if (!lease) return null;
170
+ if (this.isExpired(lease)) {
171
+ this.leases.delete(key);
172
+ return null;
173
+ }
174
+ return lease;
175
+ }
176
+
177
+ claim(id, owner, { force = false } = {}) {
178
+ const instanceId = String(id || 'default');
179
+ const incoming = createOwner(owner || {});
180
+ const at = this.now();
181
+ const existing = this.get(instanceId);
182
+ if (existing && existing.key !== incoming.key && !force) {
183
+ throw new VmLeaseConflict(instanceId, existing);
184
+ }
185
+ const lease = existing && existing.key === incoming.key
186
+ ? {
187
+ ...existing,
188
+ ...incoming,
189
+ since: existing.since || at,
190
+ lastSeenAt: at,
191
+ }
192
+ : {
193
+ ...incoming,
194
+ since: at,
195
+ lastSeenAt: at,
196
+ };
197
+ lease.expiresAt = this.ttlMs > 0 ? lease.lastSeenAt + this.ttlMs : null;
198
+ this.leases.set(instanceId, lease);
199
+ return {
200
+ lease: publicOwner(lease),
201
+ previous: existing && existing.key !== lease.key ? publicOwner(existing) : null,
202
+ reclaimed: Boolean(existing && existing.key === lease.key),
203
+ };
204
+ }
205
+
206
+ touch(id, key = null) {
207
+ const instanceId = String(id || 'default');
208
+ const lease = this.get(instanceId);
209
+ if (!lease) return null;
210
+ if (key !== null && String(key) !== lease.key) return null;
211
+ const at = this.now();
212
+ lease.lastSeenAt = at;
213
+ lease.expiresAt = this.ttlMs > 0 ? at + this.ttlMs : null;
214
+ return publicOwner(lease);
215
+ }
216
+
217
+ release(id, key = null, { force = false } = {}) {
218
+ const instanceId = String(id || 'default');
219
+ const lease = this.get(instanceId);
220
+ if (!lease) return null;
221
+ if (key !== null && String(key) !== lease.key && !force) {
222
+ throw new VmLeaseConflict(instanceId, lease, `VM ${instanceId} is owned by ${ownerLabelFor(lease)}; pass force:true to release it`);
223
+ }
224
+ this.leases.delete(instanceId);
225
+ return publicOwner(lease);
226
+ }
227
+
228
+ list() {
229
+ const result = [];
230
+ for (const id of [...this.leases.keys()]) {
231
+ const lease = this.get(id);
232
+ if (lease) result.push({ id, ...publicOwner(lease) });
233
+ }
234
+ return result;
235
+ }
236
+
237
+ /** Release every lease selected by `predicate(entry)`. Used when a DSH session ends. */
238
+ releaseMatching(predicate) {
239
+ const released = [];
240
+ if (typeof predicate !== 'function') return released;
241
+ for (const entry of this.list()) {
242
+ if (!predicate(entry)) continue;
243
+ const lease = this.get(entry.id);
244
+ if (!lease) continue;
245
+ this.leases.delete(entry.id);
246
+ released.push({ id: entry.id, ...publicOwner(lease) });
247
+ }
248
+ return released;
249
+ }
250
+
251
+ clear() {
252
+ this.leases.clear();
253
+ }
254
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-apk-vm",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "Local AOSP Android VM for DeepSeek Harness: preview rooted APKs at up to 60 fps, automate UIAutomator flows, and give each Agent an isolated VM.",
6
6
  "license": "Apache-2.0",
@@ -25,9 +25,9 @@
25
25
  "registry": "https://registry.npmjs.org/"
26
26
  },
27
27
  "scripts": {
28
- "check": "node --check index.js && node --check client.js && node --check lib/android.js && node --check lib/apk-bundle.js && node --check lib/flows.js && node --check lib/storage.js && node --check lib/ui-inspector.js && node --check lib/x509.js && node --check lib/scrcpy.js && node --check lib/ws.js && node --check lib/setup.js && node --check lib/instances.js && node --check lib/video-stream.js && node --check lib/aab.js && node --check lib/har.js && node --check lib/ui-tests.js",
28
+ "check": "node --check index.js && node --check client.js && node --check lib/android.js && node --check lib/apk-bundle.js && node --check lib/flows.js && node --check lib/storage.js && node --check lib/ui-inspector.js && node --check lib/x509.js && node --check lib/scrcpy.js && node --check lib/ws.js && node --check lib/setup.js && node --check lib/instances.js && node --check lib/vm-ownership.js && node --check lib/http-owner.js && node --check lib/video-stream.js && node --check lib/aab.js && node --check lib/har.js && node --check lib/ui-tests.js && node --check lib/remote.js && node --check lib/image-features.js && node --check lib/control-codebook.js && node --check lib/app-skills.js",
29
29
  "privacy": "node scripts/privacy-scan.mjs",
30
- "test": "node spike/ui-smoke.cjs && node spike/ui-better-sidebar-smoke.cjs && node spike/setup-smoke.mjs && node spike/android/mock-device.mjs && node spike/android/launch-plan.mjs && node spike/instances-smoke.mjs && node spike/features.mjs && node spike/aab-test.mjs && node spike/har-test.mjs && node spike/ui-tests-test.mjs"
30
+ "test": "node spike/ui-smoke.cjs && node spike/ui-better-sidebar-smoke.cjs && node spike/setup-smoke.mjs && node spike/android/mock-device.mjs && node spike/android/launch-plan.mjs && node spike/instances-smoke.mjs && node spike/ownership-test.mjs && node spike/features.mjs && node spike/aab-test.mjs && node spike/har-test.mjs && node spike/ui-tests-test.mjs && node spike/remote-test.mjs && node spike/skill-test.mjs"
31
31
  },
32
32
  "exports": {
33
33
  ".": "./index.js",
@@ -49,11 +49,17 @@
49
49
  "lib/ws.js",
50
50
  "lib/setup.js",
51
51
  "lib/instances.js",
52
+ "lib/vm-ownership.js",
53
+ "lib/http-owner.js",
52
54
  "lib/video-stream.js",
53
55
  "lib/x509.js",
54
56
  "lib/aab.js",
55
57
  "lib/har.js",
56
58
  "lib/ui-tests.js",
59
+ "lib/remote.js",
60
+ "lib/image-features.js",
61
+ "lib/control-codebook.js",
62
+ "lib/app-skills.js",
57
63
  "lib/vendor/scrcpy-server-v5.0.1.jar",
58
64
  "LICENSE",
59
65
  "NOTICE",