@kaeawc/auto-mobile 0.0.46 → 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 +3 -3
- package/README.md.backup +3 -3
- package/dist/schemas/tool-definitions.json +49 -0
- package/dist/src/db/migrations/2026_07_31_000_video_recordings_owner_session.ts +35 -0
- package/dist/src/index.js +447 -438
- package/dist/src/index.js.map +1 -1
- package/package.json +2 -1
- package/schemas/tool-definitions.json +49 -0
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|

|
|
9
9
|

|
|
10
10
|
|
|
11
|
-

|
|
12
|
+

|
|
13
|
+

|
|
14
14
|

|
|
15
15
|

|
|
16
16
|
|
package/README.md.backup
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|

|
|
9
9
|

|
|
10
10
|
|
|
11
|
-

|
|
12
|
+

|
|
13
|
+

|
|
14
14
|

|
|
15
15
|

|
|
16
16
|
|
|
@@ -6266,6 +6266,11 @@
|
|
|
6266
6266
|
"additionalProperties": {}
|
|
6267
6267
|
}
|
|
6268
6268
|
}
|
|
6269
|
+
},
|
|
6270
|
+
"_meta": {
|
|
6271
|
+
"ui": {
|
|
6272
|
+
"resourceUri": "ui://automobile/observe"
|
|
6273
|
+
}
|
|
6269
6274
|
}
|
|
6270
6275
|
},
|
|
6271
6276
|
{
|
|
@@ -7689,6 +7694,50 @@
|
|
|
7689
7694
|
"additionalProperties": false
|
|
7690
7695
|
}
|
|
7691
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
|
+
},
|
|
7692
7741
|
{
|
|
7693
7742
|
"name": "setUIState",
|
|
7694
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
|
+
}
|