@kaeawc/auto-mobile 0.0.11 → 0.0.13
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 +16 -1
- package/README.md.backup +16 -1
- package/dist/src/db/migrations/2026_01_30_000_performance_live_metrics.ts +31 -17
- package/dist/src/index.js +209 -209
- package/dist/src/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# AutoMobile
|
|
2
2
|
|
|
3
|
+
[](https://github.com/kaeawc/auto-mobile/actions/workflows/pull_request.yml)
|
|
4
|
+
[](https://github.com/kaeawc/auto-mobile/actions/workflows/merge.yml)
|
|
5
|
+
[](https://github.com/kaeawc/auto-mobile/actions/workflows/nightly.yml)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+

|
|
10
|
+
|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+

|
|
17
|
+
|
|
3
18
|

|
|
4
19
|
|
|
5
20
|
**AutoMobile lets AI agents control your mobile devices using natural language.** Tell an AI what you want to do, and it interacts with your Android or iOS app.
|
|
@@ -36,7 +51,7 @@ It can do all this by being an MCP server that uses standard platform tools like
|
|
|
36
51
|
You can use our interactive installer to step through all host platform requirements and configuration options. It checks host dependencies, optionally downloads Android or iOS developer tools, and configured the MCP daemon.
|
|
37
52
|
|
|
38
53
|
``` bash title="One-line install (click to copy)"
|
|
39
|
-
curl -fsSL https://raw.githubusercontent.com/kaeawc/auto-mobile/main/scripts/install
|
|
54
|
+
curl -fsSL https://raw.githubusercontent.com/kaeawc/auto-mobile/refs/heads/main/scripts/install.sh | bash
|
|
40
55
|
```
|
|
41
56
|
|
|
42
57
|
or you can read and follow the [step-by-step manual guide](https://github.com/kaeawc/auto-mobile/blob/main/docs/install.md).
|
package/README.md.backup
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# AutoMobile
|
|
2
2
|
|
|
3
|
+
[](https://github.com/kaeawc/auto-mobile/actions/workflows/pull_request.yml)
|
|
4
|
+
[](https://github.com/kaeawc/auto-mobile/actions/workflows/merge.yml)
|
|
5
|
+
[](https://github.com/kaeawc/auto-mobile/actions/workflows/nightly.yml)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+

|
|
10
|
+
|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+

|
|
17
|
+
|
|
3
18
|

|
|
4
19
|
|
|
5
20
|
**AutoMobile lets AI agents control your mobile devices using natural language.** Tell an AI what you want to do, and it interacts with your Android or iOS app.
|
|
@@ -36,7 +51,7 @@ It can do all this by being an MCP server that uses standard platform tools like
|
|
|
36
51
|
You can use our interactive installer to step through all host platform requirements and configuration options. It checks host dependencies, optionally downloads Android or iOS developer tools, and configured the MCP daemon.
|
|
37
52
|
|
|
38
53
|
``` bash title="One-line install (click to copy)"
|
|
39
|
-
curl -fsSL https://raw.githubusercontent.com/kaeawc/auto-mobile/main/scripts/install
|
|
54
|
+
curl -fsSL https://raw.githubusercontent.com/kaeawc/auto-mobile/refs/heads/main/scripts/install.sh | bash
|
|
40
55
|
```
|
|
41
56
|
|
|
42
57
|
or you can read and follow the [step-by-step manual guide](docs/install.md).
|
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
import type { Kysely } from "kysely";
|
|
2
|
+
import { sql } from "kysely";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
.execute();
|
|
4
|
+
async function columnExists(
|
|
5
|
+
db: Kysely<unknown>,
|
|
6
|
+
tableName: string,
|
|
7
|
+
columnName: string
|
|
8
|
+
): Promise<boolean> {
|
|
9
|
+
const result = await sql<{ name: string }>`
|
|
10
|
+
SELECT name FROM pragma_table_info(${tableName}) WHERE name = ${columnName}
|
|
11
|
+
`.execute(db);
|
|
12
|
+
return result.rows.length > 0;
|
|
13
|
+
}
|
|
14
14
|
|
|
15
|
+
async function addColumnIfNotExists(
|
|
16
|
+
db: Kysely<unknown>,
|
|
17
|
+
tableName: string,
|
|
18
|
+
columnName: string,
|
|
19
|
+
columnType: string
|
|
20
|
+
): Promise<void> {
|
|
21
|
+
if (await columnExists(db, tableName, columnName)) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
15
24
|
await db.schema
|
|
16
|
-
.alterTable(
|
|
17
|
-
.addColumn(
|
|
25
|
+
.alterTable(tableName)
|
|
26
|
+
.addColumn(columnName, columnType)
|
|
18
27
|
.execute();
|
|
28
|
+
}
|
|
19
29
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
export async function up(db: Kysely<unknown>): Promise<void> {
|
|
31
|
+
// Add new columns to performance_audit_results table for live metrics
|
|
32
|
+
await addColumnIfNotExists(db, "performance_audit_results", "time_to_first_frame_ms", "real");
|
|
33
|
+
await addColumnIfNotExists(db, "performance_audit_results", "time_to_interactive_ms", "real");
|
|
34
|
+
await addColumnIfNotExists(db, "performance_audit_results", "frame_rate_fps", "real");
|
|
35
|
+
await addColumnIfNotExists(db, "performance_audit_results", "node_id", "integer");
|
|
24
36
|
|
|
25
37
|
// Create index on node_id for navigation node lookups
|
|
26
38
|
await db.schema
|
|
27
39
|
.createIndex("idx_performance_audit_results_node_id")
|
|
40
|
+
.ifNotExists()
|
|
28
41
|
.on("performance_audit_results")
|
|
29
42
|
.column("node_id")
|
|
30
43
|
.execute();
|
|
@@ -32,6 +45,7 @@ export async function up(db: Kysely<unknown>): Promise<void> {
|
|
|
32
45
|
// Create composite index on (package_name, timestamp) for efficient pruning
|
|
33
46
|
await db.schema
|
|
34
47
|
.createIndex("idx_performance_audit_results_package_timestamp")
|
|
48
|
+
.ifNotExists()
|
|
35
49
|
.on("performance_audit_results")
|
|
36
50
|
.columns(["package_name", "timestamp"])
|
|
37
51
|
.execute();
|