@kaeawc/auto-mobile 0.0.45 → 0.0.47
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/README.md +3 -3
- package/README.md.backup +3 -3
- package/dist/schemas/test-plan.schema.json +129 -6
- package/dist/schemas/tool-definitions.json +1725 -285
- package/dist/src/db/migrations/2026_07_24_000_device_locks.ts +27 -0
- package/dist/src/db/migrations/2026_07_27_000_session_tool_capabilities.ts +17 -0
- package/dist/src/index.js +457 -444
- package/dist/src/index.js.map +1 -1
- package/package.json +9 -7
- package/schemas/test-plan.schema.json +129 -6
- package/schemas/tool-definitions.json +1725 -285
- package/dist/ios/screen-capture/Package.swift +0 -35
- package/dist/ios/screen-capture/Sources/ScreenCaptureCore/AudioPcm16Encoder.swift +0 -22
- package/dist/ios/screen-capture/Sources/ScreenCaptureCore/CommandLineOptions.swift +0 -152
- package/dist/ios/screen-capture/Sources/ScreenCaptureCore/DeviceInfo.swift +0 -25
- package/dist/ios/screen-capture/Sources/ScreenCaptureCore/FrameProtocol.swift +0 -113
- package/dist/ios/screen-capture/Sources/ScreenCaptureCore/FrameWriter.swift +0 -62
- package/dist/ios/screen-capture/Sources/ScreenCaptureCore/SimulatorWindowInfo.swift +0 -51
- package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/AudioSampleBuffer.swift +0 -41
- package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/CMIOSystem.swift +0 -26
- package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/DeviceCaptureSession.swift +0 -117
- package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/DeviceDiscovery.swift +0 -29
- package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/FrameWriter+PixelBuffer.swift +0 -25
- package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/SimulatorCaptureSession.swift +0 -159
- package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/SimulatorWindowDiscovery.swift +0 -37
- package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/main.swift +0 -255
- package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/AudioPcm16EncoderTests.swift +0 -17
- package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/CommandLineOptionsTests.swift +0 -181
- package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/DeviceInfoTests.swift +0 -35
- package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/FrameProtocolTests.swift +0 -123
- package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/FrameWriterTests.swift +0 -62
- package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/SimulatorAudioCaptureAvailabilityTests.swift +0 -27
- package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/SimulatorWindowInfoTests.swift +0 -40
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Kysely, sql } from "kysely";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Remember how to unlock a device, keyed by device (issue #4360).
|
|
5
|
+
*
|
|
6
|
+
* A dedicated table rather than columns on `device_sessions`: a session row only
|
|
7
|
+
* exists when device-pool autolock is enabled, and never during boot (which runs
|
|
8
|
+
* before any session), so session-scoped storage cannot deliver
|
|
9
|
+
* remember-then-reuse in the default config or at boot. `lock_credential` is
|
|
10
|
+
* stored as-is in the local `~/.auto-mobile` DB — a single-user, on-disk
|
|
11
|
+
* automation store — so a locked dev device does not have to be unlocked by hand
|
|
12
|
+
* every session.
|
|
13
|
+
*/
|
|
14
|
+
export async function up(db: Kysely<unknown>): Promise<void> {
|
|
15
|
+
await db.schema
|
|
16
|
+
.createTable("device_locks")
|
|
17
|
+
.ifNotExists()
|
|
18
|
+
.addColumn("device_id", "text", col => col.primaryKey())
|
|
19
|
+
.addColumn("lock_type", "text", col => col.notNull())
|
|
20
|
+
.addColumn("lock_credential", "text")
|
|
21
|
+
.addColumn("updated_at", "text", col => col.notNull().defaultTo(sql`(datetime('now'))`))
|
|
22
|
+
.execute();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export async function down(db: Kysely<unknown>): Promise<void> {
|
|
26
|
+
await db.schema.dropTable("device_locks").execute();
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Kysely, sql } from "kysely";
|
|
2
|
+
|
|
3
|
+
export async function up(db: Kysely<unknown>): Promise<void> {
|
|
4
|
+
await db.schema
|
|
5
|
+
.createTable("session_tool_capabilities")
|
|
6
|
+
.ifNotExists()
|
|
7
|
+
.addColumn("session_uuid", "text", col => col.notNull())
|
|
8
|
+
.addColumn("capability", "text", col => col.notNull())
|
|
9
|
+
.addColumn("enabled", "integer", col => col.notNull())
|
|
10
|
+
.addColumn("updated_at", "text", col => col.notNull().defaultTo(sql`(datetime('now'))`))
|
|
11
|
+
.addPrimaryKeyConstraint("session_tool_capabilities_pk", ["session_uuid", "capability"])
|
|
12
|
+
.execute();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export async function down(db: Kysely<unknown>): Promise<void> {
|
|
16
|
+
await db.schema.dropTable("session_tool_capabilities").ifExists().execute();
|
|
17
|
+
}
|