@frida/injest 0.1.0
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/LICENSE.md +21 -0
- package/README.md +184 -0
- package/dist/agent/expect.d.ts +56 -0
- package/dist/agent/expect.d.ts.map +1 -0
- package/dist/agent/expect.js +235 -0
- package/dist/agent/expect.js.map +1 -0
- package/dist/agent/runtime.d.ts +29 -0
- package/dist/agent/runtime.d.ts.map +1 -0
- package/dist/agent/runtime.js +180 -0
- package/dist/agent/runtime.js.map +1 -0
- package/dist/host/bundle.d.ts +9 -0
- package/dist/host/bundle.d.ts.map +1 -0
- package/dist/host/bundle.js +95 -0
- package/dist/host/bundle.js.map +1 -0
- package/dist/host/cli.d.ts +3 -0
- package/dist/host/cli.d.ts.map +1 -0
- package/dist/host/cli.js +214 -0
- package/dist/host/cli.js.map +1 -0
- package/dist/host/config.d.ts +27 -0
- package/dist/host/config.d.ts.map +1 -0
- package/dist/host/config.js +35 -0
- package/dist/host/config.js.map +1 -0
- package/dist/host/index.d.ts +4 -0
- package/dist/host/index.d.ts.map +1 -0
- package/dist/host/index.js +3 -0
- package/dist/host/index.js.map +1 -0
- package/dist/host/run.d.ts +50 -0
- package/dist/host/run.d.ts.map +1 -0
- package/dist/host/run.js +270 -0
- package/dist/host/run.js.map +1 -0
- package/dist/host/session.d.ts +13 -0
- package/dist/host/session.d.ts.map +1 -0
- package/dist/host/session.js +55 -0
- package/dist/host/session.js.map +1 -0
- package/dist/host/source.d.ts +14 -0
- package/dist/host/source.d.ts.map +1 -0
- package/dist/host/source.js +83 -0
- package/dist/host/source.js.map +1 -0
- package/package.json +73 -0
- package/schema/injest.config.schema.json +92 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/frida/injest/main/packages/injest/schema/injest.config.schema.json",
|
|
4
|
+
"title": "injest configuration",
|
|
5
|
+
"description": "Configuration for the injest runner (injest.config.json).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["targets"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Path or URL to this schema, for editor autocomplete and validation."
|
|
13
|
+
},
|
|
14
|
+
"default": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Target used when --target is omitted. Must be a key in \"targets\"."
|
|
17
|
+
},
|
|
18
|
+
"targets": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"description": "Named target profiles (device + session + optional runtime/timeout).",
|
|
21
|
+
"minProperties": 1,
|
|
22
|
+
"additionalProperties": { "$ref": "#/definitions/target" }
|
|
23
|
+
},
|
|
24
|
+
"include": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"description": "Globs for test files, relative to the project root (default: [\"tests/**/*.test.{ts,js}\"]).",
|
|
27
|
+
"items": { "type": "string" }
|
|
28
|
+
},
|
|
29
|
+
"exclude": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"description": "Globs subtracted from the included files.",
|
|
32
|
+
"items": { "type": "string" }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"definitions": {
|
|
36
|
+
"target": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"required": ["device", "session"],
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"properties": {
|
|
41
|
+
"device": { "$ref": "#/definitions/device" },
|
|
42
|
+
"session": { "$ref": "#/definitions/session" },
|
|
43
|
+
"runtime": {
|
|
44
|
+
"description": "GumJS runtime (default: qjs).",
|
|
45
|
+
"enum": ["qjs", "v8"]
|
|
46
|
+
},
|
|
47
|
+
"timeout": {
|
|
48
|
+
"description": "Default per-test timeout in milliseconds (default: 10000).",
|
|
49
|
+
"type": "number",
|
|
50
|
+
"exclusiveMinimum": 0
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"device": {
|
|
55
|
+
"description": "\"local\", \"usb\" (first USB device), or { \"id\": \"<udid>\" } (a specific device).",
|
|
56
|
+
"oneOf": [
|
|
57
|
+
{ "type": "string", "enum": ["local", "usb"] },
|
|
58
|
+
{
|
|
59
|
+
"type": "object",
|
|
60
|
+
"required": ["id"],
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"properties": {
|
|
63
|
+
"id": { "type": "string", "minLength": 1, "description": "Device id (udid)." }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"session": {
|
|
69
|
+
"description": "\"system\", or { \"spawn\": \"<program-or-bundle-id>\", \"args\": [...] }.",
|
|
70
|
+
"oneOf": [
|
|
71
|
+
{ "type": "string", "const": "system" },
|
|
72
|
+
{
|
|
73
|
+
"type": "object",
|
|
74
|
+
"required": ["spawn"],
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"properties": {
|
|
77
|
+
"spawn": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"minLength": 1,
|
|
80
|
+
"description": "Program path or bundle id to spawn (started suspended)."
|
|
81
|
+
},
|
|
82
|
+
"args": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"description": "Extra argv passed to the spawned program.",
|
|
85
|
+
"items": { "type": "string" }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|