@kaeawc/auto-mobile 0.0.45 → 0.0.46

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.
Files changed (33) hide show
  1. package/README.md +3 -3
  2. package/README.md.backup +3 -3
  3. package/dist/schemas/test-plan.schema.json +129 -6
  4. package/dist/schemas/tool-definitions.json +1720 -285
  5. package/dist/src/db/migrations/2026_07_24_000_device_locks.ts +27 -0
  6. package/dist/src/db/migrations/2026_07_27_000_session_tool_capabilities.ts +17 -0
  7. package/dist/src/index.js +388 -384
  8. package/dist/src/index.js.map +1 -1
  9. package/package.json +9 -7
  10. package/schemas/test-plan.schema.json +129 -6
  11. package/schemas/tool-definitions.json +1720 -285
  12. package/dist/ios/screen-capture/Package.swift +0 -35
  13. package/dist/ios/screen-capture/Sources/ScreenCaptureCore/AudioPcm16Encoder.swift +0 -22
  14. package/dist/ios/screen-capture/Sources/ScreenCaptureCore/CommandLineOptions.swift +0 -152
  15. package/dist/ios/screen-capture/Sources/ScreenCaptureCore/DeviceInfo.swift +0 -25
  16. package/dist/ios/screen-capture/Sources/ScreenCaptureCore/FrameProtocol.swift +0 -113
  17. package/dist/ios/screen-capture/Sources/ScreenCaptureCore/FrameWriter.swift +0 -62
  18. package/dist/ios/screen-capture/Sources/ScreenCaptureCore/SimulatorWindowInfo.swift +0 -51
  19. package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/AudioSampleBuffer.swift +0 -41
  20. package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/CMIOSystem.swift +0 -26
  21. package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/DeviceCaptureSession.swift +0 -117
  22. package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/DeviceDiscovery.swift +0 -29
  23. package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/FrameWriter+PixelBuffer.swift +0 -25
  24. package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/SimulatorCaptureSession.swift +0 -159
  25. package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/SimulatorWindowDiscovery.swift +0 -37
  26. package/dist/ios/screen-capture/Sources/ScreenCaptureHelper/main.swift +0 -255
  27. package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/AudioPcm16EncoderTests.swift +0 -17
  28. package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/CommandLineOptionsTests.swift +0 -181
  29. package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/DeviceInfoTests.swift +0 -35
  30. package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/FrameProtocolTests.swift +0 -123
  31. package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/FrameWriterTests.swift +0 -62
  32. package/dist/ios/screen-capture/Tests/ScreenCaptureCoreTests/SimulatorAudioCaptureAvailabilityTests.swift +0 -27
  33. 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
+ }