agent-scenario-loop 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 +21 -0
- package/README.md +119 -0
- package/app/profile-session.ts +812 -0
- package/core/config-template.json +41 -0
- package/dist/core/agent-summary.d.ts +15 -0
- package/dist/core/agent-summary.js +177 -0
- package/dist/core/artifact-contract.d.ts +151 -0
- package/dist/core/artifact-contract.js +897 -0
- package/dist/core/artifact-layout.d.ts +56 -0
- package/dist/core/artifact-layout.js +61 -0
- package/dist/core/artifact-writer.d.ts +44 -0
- package/dist/core/artifact-writer.js +55 -0
- package/dist/core/comparison.d.ts +133 -0
- package/dist/core/comparison.js +294 -0
- package/dist/core/evidence-interpreter.d.ts +28 -0
- package/dist/core/evidence-interpreter.js +69 -0
- package/dist/core/execution-plan.d.ts +44 -0
- package/dist/core/execution-plan.js +95 -0
- package/dist/core/planner.d.ts +132 -0
- package/dist/core/planner.js +812 -0
- package/dist/core/ports.d.ts +198 -0
- package/dist/core/ports.js +146 -0
- package/dist/core/run-index.d.ts +62 -0
- package/dist/core/run-index.js +143 -0
- package/dist/core/schema-validator.d.ts +86 -0
- package/dist/core/schema-validator.js +407 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +27 -0
- package/dist/runner/agent-device-driver.d.ts +126 -0
- package/dist/runner/agent-device-driver.js +168 -0
- package/dist/runner/agent-device.d.ts +295 -0
- package/dist/runner/agent-device.js +1271 -0
- package/dist/runner/android-adb-driver.d.ts +175 -0
- package/dist/runner/android-adb-driver.js +399 -0
- package/dist/runner/android-adb.d.ts +254 -0
- package/dist/runner/android-adb.js +1618 -0
- package/dist/runner/argent-driver.d.ts +183 -0
- package/dist/runner/argent-driver.js +297 -0
- package/dist/runner/argent.d.ts +349 -0
- package/dist/runner/argent.js +1211 -0
- package/dist/runner/check-plan.d.ts +45 -0
- package/dist/runner/check-plan.js +210 -0
- package/dist/runner/cli.d.ts +20 -0
- package/dist/runner/cli.js +23 -0
- package/dist/runner/compare-latest.d.ts +99 -0
- package/dist/runner/compare-latest.js +233 -0
- package/dist/runner/compare.d.ts +58 -0
- package/dist/runner/compare.js +157 -0
- package/dist/runner/demo-loop.d.ts +45 -0
- package/dist/runner/demo-loop.js +170 -0
- package/dist/runner/example-android-live.d.ts +137 -0
- package/dist/runner/example-android-live.js +454 -0
- package/dist/runner/example-ios-live.d.ts +137 -0
- package/dist/runner/example-ios-live.js +471 -0
- package/dist/runner/host-doctor.d.ts +131 -0
- package/dist/runner/host-doctor.js +628 -0
- package/dist/runner/init-project.d.ts +88 -0
- package/dist/runner/init-project.js +263 -0
- package/dist/runner/ios-simctl-driver.d.ts +69 -0
- package/dist/runner/ios-simctl-driver.js +97 -0
- package/dist/runner/ios-simctl.d.ts +254 -0
- package/dist/runner/ios-simctl.js +1415 -0
- package/dist/runner/live-android.d.ts +137 -0
- package/dist/runner/live-android.js +539 -0
- package/dist/runner/live-comparison.d.ts +67 -0
- package/dist/runner/live-comparison.js +147 -0
- package/dist/runner/live-ios.d.ts +137 -0
- package/dist/runner/live-ios.js +460 -0
- package/dist/runner/live-proof-summary.d.ts +263 -0
- package/dist/runner/live-proof-summary.js +465 -0
- package/dist/runner/live-proof.d.ts +467 -0
- package/dist/runner/live-proof.js +920 -0
- package/dist/runner/local-env.d.ts +64 -0
- package/dist/runner/local-env.js +155 -0
- package/dist/runner/profile-android.d.ts +82 -0
- package/dist/runner/profile-android.js +671 -0
- package/dist/runner/profile-ios.d.ts +108 -0
- package/dist/runner/profile-ios.js +532 -0
- package/dist/runner/profile-mobile.d.ts +254 -0
- package/dist/runner/profile-mobile.js +1307 -0
- package/dist/runner/validate-project.d.ts +273 -0
- package/dist/runner/validate-project.js +1501 -0
- package/docs/adapters.md +145 -0
- package/docs/api.md +94 -0
- package/docs/authoring.md +196 -0
- package/docs/concepts.md +136 -0
- package/docs/consumer-rehearsal.md +115 -0
- package/docs/contracts.md +267 -0
- package/docs/live-proofs.md +270 -0
- package/docs/principles.md +46 -0
- package/examples/event-logs/app-startup-baseline.log +4 -0
- package/examples/event-logs/app-startup-current.log +4 -0
- package/examples/minimal-app/README.md +70 -0
- package/examples/mobile-app/README.md +302 -0
- package/examples/mobile-app/app.json +22 -0
- package/examples/mobile-app/asl/package-scripts.json +32 -0
- package/examples/mobile-app/asl.config.json +37 -0
- package/examples/mobile-app/event-logs/android-app-startup.log +4 -0
- package/examples/mobile-app/event-logs/android-open-close-cycle.log +12 -0
- package/examples/mobile-app/event-logs/android-scroll-settle.log +12 -0
- package/examples/mobile-app/event-logs/app-startup.log +4 -0
- package/examples/mobile-app/event-logs/open-close-cycle.log +12 -0
- package/examples/mobile-app/event-logs/scroll-settle.log +12 -0
- package/examples/mobile-app/index.ts +20 -0
- package/examples/mobile-app/metro.config.js +20 -0
- package/examples/mobile-app/package.json +62 -0
- package/examples/mobile-app/patches/expo-modules-jsi@56.0.10.patch +19 -0
- package/examples/mobile-app/plugins/with-ios-build-compat.js +271 -0
- package/examples/mobile-app/pnpm-lock.yaml +4440 -0
- package/examples/mobile-app/runner-manifests/evidence-provider.json +79 -0
- package/examples/mobile-app/runner-manifests/primary-runner.json +19 -0
- package/examples/mobile-app/scenarios/android/app-startup-video.json +73 -0
- package/examples/mobile-app/scenarios/android/app-startup.json +44 -0
- package/examples/mobile-app/scenarios/android/open-close-cycle.json +54 -0
- package/examples/mobile-app/scenarios/android/scroll-settle.json +49 -0
- package/examples/mobile-app/scenarios/ios/app-startup.json +44 -0
- package/examples/mobile-app/scenarios/ios/open-close-cycle.json +54 -0
- package/examples/mobile-app/scenarios/ios/scroll-settle.json +49 -0
- package/examples/mobile-app/scenarios/mobile/app-startup.json +91 -0
- package/examples/mobile-app/scenarios/mobile/open-close-cycle.json +160 -0
- package/examples/mobile-app/scenarios/mobile/scroll-settle.json +148 -0
- package/examples/mobile-app/scripts/asl-capture-accessibility-provider.mjs +112 -0
- package/examples/mobile-app/scripts/asl-capture-profiler-provider.mjs +127 -0
- package/examples/mobile-app/src/devtools/profile-session.ts +7 -0
- package/examples/mobile-app/src/example-screen.tsx +322 -0
- package/examples/mobile-app/tsconfig.json +16 -0
- package/examples/mobile-app/tsconfig.typecheck.json +13 -0
- package/examples/runners/README.md +44 -0
- package/examples/runners/adb-android.json +25 -0
- package/examples/runners/agent-device-android.json +27 -0
- package/examples/runners/agent-device-ios.json +27 -0
- package/examples/runners/argent-android.json +32 -0
- package/examples/runners/argent-ios.json +32 -0
- package/examples/runners/argent-react-profiler-provider.json +15 -0
- package/examples/runners/axe-accessibility-provider.json +24 -0
- package/examples/runners/manual-log-ingest.json +9 -0
- package/examples/runners/rozenite-profiler-provider.json +9 -0
- package/examples/runners/script-accessibility-provider.json +24 -0
- package/examples/runners/script-memory-provider.json +24 -0
- package/examples/runners/script-network-provider.json +24 -0
- package/examples/runners/script-profiler-provider.json +30 -0
- package/examples/runners/xcodebuildmcp-ios.json +29 -0
- package/examples/scenarios/ios/app-startup.json +28 -0
- package/examples/scenarios/ios/open-close-cycle.json +35 -0
- package/examples/scenarios/mobile/app-startup.json +72 -0
- package/examples/scenarios/mobile/media-open-close.json +141 -0
- package/examples/scenarios/mobile/open-close-cycle.json +135 -0
- package/examples/scenarios/mobile/scroll-settle.json +106 -0
- package/package.json +240 -0
- package/schemas/budget-verdict.schema.json +115 -0
- package/schemas/causal-run.schema.json +279 -0
- package/schemas/comparison.schema.json +196 -0
- package/schemas/health.schema.json +108 -0
- package/schemas/live-proof-set.schema.json +195 -0
- package/schemas/live-proof.schema.json +413 -0
- package/schemas/manifest.schema.json +204 -0
- package/schemas/metrics.schema.json +137 -0
- package/schemas/project-validation.schema.json +343 -0
- package/schemas/runner-capabilities.schema.json +217 -0
- package/schemas/scenario.schema.json +400 -0
- package/schemas/verdict.schema.json +88 -0
- package/templates/evidence-provider.json +83 -0
- package/templates/gitignore-snippet +9 -0
- package/templates/integration-readme.md +125 -0
- package/templates/mobile-scenario.json +133 -0
- package/templates/package-scripts.json +32 -0
- package/templates/primary-runner.json +19 -0
- package/templates/project.config.json +37 -0
- package/templates/scripts/asl-capture-accessibility-provider.mjs +112 -0
- package/templates/scripts/asl-capture-profiler-provider.mjs +127 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-scenario-loop.dev/schemas/comparison.schema.json",
|
|
4
|
+
"title": "Agent Scenario Loop Comparison",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"scenarioId",
|
|
10
|
+
"runId",
|
|
11
|
+
"baselineRunId",
|
|
12
|
+
"comparisonStatus",
|
|
13
|
+
"healthStatus",
|
|
14
|
+
"verdictStatus",
|
|
15
|
+
"summary"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schemaVersion": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^1\\.0\\.0$"
|
|
21
|
+
},
|
|
22
|
+
"scenarioId": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"flowId": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"runId": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"baselineRunId": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"comparisonStatus": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": ["better", "worse", "unchanged", "mixed", "inconclusive"]
|
|
37
|
+
},
|
|
38
|
+
"healthStatus": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": ["passed", "failed", "partial"]
|
|
41
|
+
},
|
|
42
|
+
"verdictStatus": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": ["passed", "failed", "inconclusive", "not_evaluated"]
|
|
45
|
+
},
|
|
46
|
+
"comparisonBasis": {
|
|
47
|
+
"$ref": "#/$defs/comparisonBasis"
|
|
48
|
+
},
|
|
49
|
+
"metricComparisons": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"$ref": "#/$defs/metricComparison"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"evidence": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"properties": {
|
|
59
|
+
"missingRequired": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"warnings": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"summary": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"$defs": {
|
|
78
|
+
"comparisonBasis": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"required": ["strategy", "baseline", "current"],
|
|
82
|
+
"properties": {
|
|
83
|
+
"strategy": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"enum": ["explicit", "latest_trusted_prior"]
|
|
86
|
+
},
|
|
87
|
+
"baseline": {
|
|
88
|
+
"$ref": "#/$defs/comparisonRunBasis"
|
|
89
|
+
},
|
|
90
|
+
"current": {
|
|
91
|
+
"$ref": "#/$defs/comparisonRunBasis"
|
|
92
|
+
},
|
|
93
|
+
"selection": {
|
|
94
|
+
"$ref": "#/$defs/comparisonSelectionBasis"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"comparisonRunBasis": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": ["runId"],
|
|
102
|
+
"properties": {
|
|
103
|
+
"runId": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"runDir": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"healthStatus": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"verdictStatus": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"comparisonSelectionBasis": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"properties": {
|
|
121
|
+
"artifactRoot": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"candidatesInspected": {
|
|
125
|
+
"type": "integer",
|
|
126
|
+
"minimum": 0
|
|
127
|
+
},
|
|
128
|
+
"scenarioId": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"comparisonLane": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
"scenarioHash": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
137
|
+
},
|
|
138
|
+
"selectedRunDir": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"selectedRunId": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"skippedCurrentRun": {
|
|
145
|
+
"type": "boolean"
|
|
146
|
+
},
|
|
147
|
+
"trustedCandidates": {
|
|
148
|
+
"type": "integer",
|
|
149
|
+
"minimum": 0
|
|
150
|
+
},
|
|
151
|
+
"trustedPriorCandidates": {
|
|
152
|
+
"type": "integer",
|
|
153
|
+
"minimum": 0
|
|
154
|
+
},
|
|
155
|
+
"trustedComparableCandidates": {
|
|
156
|
+
"type": "integer",
|
|
157
|
+
"minimum": 0
|
|
158
|
+
},
|
|
159
|
+
"trustedScenarioContractCandidates": {
|
|
160
|
+
"type": "integer",
|
|
161
|
+
"minimum": 0
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"metricComparison": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"required": ["name", "unit", "baseline", "current", "delta", "status"],
|
|
169
|
+
"properties": {
|
|
170
|
+
"name": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"unit": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"enum": ["ms", "count", "bytes", "percent", "boolean"]
|
|
176
|
+
},
|
|
177
|
+
"baseline": {
|
|
178
|
+
"type": ["number", "integer", "boolean", "null"]
|
|
179
|
+
},
|
|
180
|
+
"current": {
|
|
181
|
+
"type": ["number", "integer", "boolean", "null"]
|
|
182
|
+
},
|
|
183
|
+
"delta": {
|
|
184
|
+
"type": ["number", "integer", "boolean", "null"]
|
|
185
|
+
},
|
|
186
|
+
"status": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"enum": ["better", "worse", "unchanged", "inconclusive"]
|
|
189
|
+
},
|
|
190
|
+
"notes": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-scenario-loop.dev/schemas/health.schema.json",
|
|
4
|
+
"title": "Agent Scenario Loop Health",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "scenarioId", "runId", "healthStatus", "checks"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^1\\.0\\.0$"
|
|
12
|
+
},
|
|
13
|
+
"scenarioId": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"flowId": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"runId": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"healthStatus": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["passed", "failed", "partial"]
|
|
25
|
+
},
|
|
26
|
+
"checks": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"items": {
|
|
30
|
+
"$ref": "#/$defs/healthCheck"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"warnings": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"$ref": "#/$defs/healthCheck"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"matched": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"properties": {
|
|
43
|
+
"platforms": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"capabilities": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"driverActions": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"artifacts": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"evidenceProviders": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"$defs": {
|
|
77
|
+
"healthCheck": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"required": ["name", "status", "source"],
|
|
81
|
+
"properties": {
|
|
82
|
+
"name": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"status": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": ["passed", "failed", "partial", "warning"]
|
|
88
|
+
},
|
|
89
|
+
"source": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"enum": ["planner", "runner", "truth", "evidence"]
|
|
92
|
+
},
|
|
93
|
+
"code": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"message": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"metadata": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": {
|
|
102
|
+
"type": ["string", "number", "boolean", "null"]
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-scenario-loop.dev/schemas/live-proof-set.schema.json",
|
|
4
|
+
"title": "Agent Scenario Loop Live Proof Set",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"runId",
|
|
10
|
+
"status",
|
|
11
|
+
"proofCount",
|
|
12
|
+
"requiredPlatforms",
|
|
13
|
+
"presentPlatforms",
|
|
14
|
+
"missingPlatforms",
|
|
15
|
+
"proofs",
|
|
16
|
+
"failureReasons",
|
|
17
|
+
"nextAction",
|
|
18
|
+
"summary"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schemaVersion": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^1\\.0\\.0$"
|
|
24
|
+
},
|
|
25
|
+
"runId": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"status": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": ["passed", "failed"]
|
|
31
|
+
},
|
|
32
|
+
"proofCount": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"minimum": 0
|
|
35
|
+
},
|
|
36
|
+
"requiredPlatforms": {
|
|
37
|
+
"$ref": "#/$defs/platformList"
|
|
38
|
+
},
|
|
39
|
+
"presentPlatforms": {
|
|
40
|
+
"$ref": "#/$defs/platformList"
|
|
41
|
+
},
|
|
42
|
+
"missingPlatforms": {
|
|
43
|
+
"$ref": "#/$defs/platformList"
|
|
44
|
+
},
|
|
45
|
+
"proofs": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"$ref": "#/$defs/proofPointer"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"failureReasons": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"nextAction": {
|
|
59
|
+
"$ref": "#/$defs/nextAction"
|
|
60
|
+
},
|
|
61
|
+
"summary": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"$defs": {
|
|
66
|
+
"platform": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": ["android", "ios"]
|
|
69
|
+
},
|
|
70
|
+
"platformList": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"$ref": "#/$defs/platform"
|
|
74
|
+
},
|
|
75
|
+
"uniqueItems": true
|
|
76
|
+
},
|
|
77
|
+
"proofPointer": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"required": [
|
|
81
|
+
"filePath",
|
|
82
|
+
"platform",
|
|
83
|
+
"runId",
|
|
84
|
+
"status",
|
|
85
|
+
"comparisonStatus",
|
|
86
|
+
"summaryPath",
|
|
87
|
+
"profileCount",
|
|
88
|
+
"interactionProofCount",
|
|
89
|
+
"interactionWarningCount",
|
|
90
|
+
"nextAction"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"filePath": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"platform": {
|
|
97
|
+
"$ref": "#/$defs/platform"
|
|
98
|
+
},
|
|
99
|
+
"runId": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"status": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": ["passed", "failed"]
|
|
105
|
+
},
|
|
106
|
+
"comparisonStatus": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": ["baseline_missing", "improved", "inconclusive", "mixed", "not_compared", "regressed", "unchanged"]
|
|
109
|
+
},
|
|
110
|
+
"summaryPath": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"profileCount": {
|
|
114
|
+
"type": "integer",
|
|
115
|
+
"minimum": 0
|
|
116
|
+
},
|
|
117
|
+
"interactionProofCount": {
|
|
118
|
+
"type": "integer",
|
|
119
|
+
"minimum": 0
|
|
120
|
+
},
|
|
121
|
+
"interactionWarningCount": {
|
|
122
|
+
"type": "integer",
|
|
123
|
+
"minimum": 0
|
|
124
|
+
},
|
|
125
|
+
"interactionWarnings": {
|
|
126
|
+
"type": "array",
|
|
127
|
+
"items": {
|
|
128
|
+
"$ref": "#/$defs/interactionWarningPointer"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"nextAction": {
|
|
132
|
+
"$ref": "#/$defs/nextAction"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"interactionWarningPointer": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"required": ["label", "runnerId", "scenarioId", "runId", "checks"],
|
|
140
|
+
"properties": {
|
|
141
|
+
"label": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"runnerId": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"scenarioId": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"runId": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
153
|
+
"checks": {
|
|
154
|
+
"type": "array",
|
|
155
|
+
"minItems": 1,
|
|
156
|
+
"items": {
|
|
157
|
+
"$ref": "#/$defs/interactionWarningCheck"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"interactionWarningCheck": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"required": ["name", "code", "message"],
|
|
166
|
+
"properties": {
|
|
167
|
+
"name": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"code": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"message": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"nextAction": {
|
|
177
|
+
"$ref": "#/$defs/nextAction"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"nextAction": {
|
|
182
|
+
"type": "object",
|
|
183
|
+
"additionalProperties": false,
|
|
184
|
+
"required": ["code", "summary"],
|
|
185
|
+
"properties": {
|
|
186
|
+
"code": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"summary": {
|
|
190
|
+
"type": "string"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|