@kaeawc/auto-mobile 0.0.47 → 0.0.48

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 CHANGED
@@ -8,9 +8,9 @@
8
8
  ![Platform: macOS](https://img.shields.io/badge/platform-macOS-lightgrey)
9
9
  ![Platform: Linux](https://img.shields.io/badge/platform-Linux-lightgrey)
10
10
 
11
- ![TypeScript tests: 9,903](https://img.shields.io/badge/TypeScript_tests-9%2C903-3178C6)
12
- ![Kotlin tests: 2,222](https://img.shields.io/badge/Kotlin_tests-2%2C222-7F52FF)
13
- ![Swift tests: 873](https://img.shields.io/badge/Swift_tests-873-F05138)
11
+ ![TypeScript tests: 10,175](https://img.shields.io/badge/TypeScript_tests-10%2C175-3178C6)
12
+ ![Kotlin tests: 2,409](https://img.shields.io/badge/Kotlin_tests-2%2C409-7F52FF)
13
+ ![Swift tests: 879](https://img.shields.io/badge/Swift_tests-879-F05138)
14
14
  ![Kotlin coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/kotlin-coverage-badge.json)
15
15
  ![Swift coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/swift-coverage-badge.json)
16
16
 
package/README.md.backup CHANGED
@@ -8,9 +8,9 @@
8
8
  ![Platform: macOS](https://img.shields.io/badge/platform-macOS-lightgrey)
9
9
  ![Platform: Linux](https://img.shields.io/badge/platform-Linux-lightgrey)
10
10
 
11
- ![TypeScript tests: 9,903](https://img.shields.io/badge/TypeScript_tests-9%2C903-3178C6)
12
- ![Kotlin tests: 2,222](https://img.shields.io/badge/Kotlin_tests-2%2C222-7F52FF)
13
- ![Swift tests: 873](https://img.shields.io/badge/Swift_tests-873-F05138)
11
+ ![TypeScript tests: 10,175](https://img.shields.io/badge/TypeScript_tests-10%2C175-3178C6)
12
+ ![Kotlin tests: 2,409](https://img.shields.io/badge/Kotlin_tests-2%2C409-7F52FF)
13
+ ![Swift tests: 879](https://img.shields.io/badge/Swift_tests-879-F05138)
14
14
  ![Kotlin coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/kotlin-coverage-badge.json)
15
15
  ![Swift coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/swift-coverage-badge.json)
16
16
 
@@ -7694,6 +7694,50 @@
7694
7694
  "additionalProperties": false
7695
7695
  }
7696
7696
  },
7697
+ {
7698
+ "name": "setToolCapability",
7699
+ "description": "Enable or disable an optional AutoMobile tool capability for this MCP session.",
7700
+ "inputSchema": {
7701
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
7702
+ "type": "object",
7703
+ "properties": {
7704
+ "capability": {
7705
+ "type": "string",
7706
+ "enum": [
7707
+ "clipboard",
7708
+ "advanced-interaction",
7709
+ "app-permissions",
7710
+ "device-settings",
7711
+ "app-data-interop",
7712
+ "notifications",
7713
+ "telephony",
7714
+ "accessibility-tools",
7715
+ "screen-artifacts",
7716
+ "test-authoring",
7717
+ "network-inspection",
7718
+ "app-routing",
7719
+ "navigation-modeling",
7720
+ "biometric-auth"
7721
+ ],
7722
+ "description": "Optional tool capability to enable or disable for this MCP session."
7723
+ },
7724
+ "enabled": {
7725
+ "description": "Whether to enable the capability (default: true).",
7726
+ "default": true,
7727
+ "type": "boolean"
7728
+ },
7729
+ "sessionUuid": {
7730
+ "description": "Active connection or routing-session profile to update. Omit to update this MCP connection's profile.",
7731
+ "type": "string",
7732
+ "minLength": 1
7733
+ }
7734
+ },
7735
+ "required": [
7736
+ "capability"
7737
+ ],
7738
+ "additionalProperties": false
7739
+ }
7740
+ },
7697
7741
  {
7698
7742
  "name": "setUIState",
7699
7743
  "description": "Set multiple form fields by desired state.",
@@ -0,0 +1,35 @@
1
+ import type { Kysely } from "kysely";
2
+
3
+ /**
4
+ * Session-scope the video recording archive (issue #4752).
5
+ *
6
+ * Adds a nullable `owner_session_uuid` column recording the daemon session that
7
+ * started a recording. The column is deliberately nullable: rows that predate
8
+ * this migration have no known owner and keep a NULL owner. The read policy
9
+ * (see `VideoRecordingRepository`) treats a NULL-owner row as legacy/unowned and
10
+ * readable by any session, while a row with a non-null owner is only returned to
11
+ * that owner — so this migration hardens new recordings without orphaning the
12
+ * existing archive.
13
+ */
14
+ export async function up(db: Kysely<unknown>): Promise<void> {
15
+ await db.schema
16
+ .alterTable("video_recordings")
17
+ .addColumn("owner_session_uuid", "text")
18
+ .execute();
19
+
20
+ await db.schema
21
+ .createIndex("idx_video_recordings_owner_session")
22
+ .ifNotExists()
23
+ .on("video_recordings")
24
+ .column("owner_session_uuid")
25
+ .execute();
26
+ }
27
+
28
+ export async function down(db: Kysely<unknown>): Promise<void> {
29
+ await db.schema.dropIndex("idx_video_recordings_owner_session").execute();
30
+
31
+ await db.schema
32
+ .alterTable("video_recordings")
33
+ .dropColumn("owner_session_uuid")
34
+ .execute();
35
+ }