@riddledc/riddle-proof 0.6.0 → 0.7.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/README.md +65 -0
- package/dist/chunk-7NMAU4DP.js +808 -0
- package/dist/cli.cjs +950 -0
- package/dist/cli.js +192 -3
- package/dist/engine-harness.js +2 -2
- package/dist/index.cjs +823 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +38 -2
- package/dist/profile.cjs +848 -0
- package/dist/profile.d.cts +175 -0
- package/dist/profile.d.ts +175 -0
- package/dist/profile.js +38 -0
- package/examples/profiles/page-content-basic.json +26 -0
- package/package.json +8 -2
- package/dist/{chunk-2FBF2UDZ.js → chunk-D3M2FAYQ.js} +3 -3
package/README.md
CHANGED
|
@@ -92,6 +92,71 @@ file/object before resuming the run.
|
|
|
92
92
|
uses the local Codex CLI adapter underneath, but the loop contract and CLI
|
|
93
93
|
surface are intentionally not Codex-specific.
|
|
94
94
|
|
|
95
|
+
## CI / Profile Mode
|
|
96
|
+
|
|
97
|
+
Profile mode runs durable proof profiles against an existing site without an
|
|
98
|
+
implementation step. Use it for audits, regression checks, CI smoke profiles,
|
|
99
|
+
or as a stronger proof base before a change loop.
|
|
100
|
+
|
|
101
|
+
```json
|
|
102
|
+
{
|
|
103
|
+
"version": "riddle-proof.profile.v1",
|
|
104
|
+
"name": "pricing-page-basic",
|
|
105
|
+
"target": {
|
|
106
|
+
"route": "/pricing",
|
|
107
|
+
"viewports": [
|
|
108
|
+
{ "name": "mobile", "width": 390, "height": 844 },
|
|
109
|
+
{ "name": "desktop", "width": 1440, "height": 1000 }
|
|
110
|
+
],
|
|
111
|
+
"auth": "none"
|
|
112
|
+
},
|
|
113
|
+
"checks": [
|
|
114
|
+
{ "type": "route_loaded", "expected_path": "/pricing" },
|
|
115
|
+
{ "type": "selector_visible", "selector": "[data-testid='pricing-cards']" },
|
|
116
|
+
{ "type": "text_visible", "text": "Start building" },
|
|
117
|
+
{ "type": "no_mobile_horizontal_overflow" },
|
|
118
|
+
{ "type": "no_fatal_console_errors" }
|
|
119
|
+
],
|
|
120
|
+
"artifacts": ["screenshot", "console", "dom_summary", "proof_json"],
|
|
121
|
+
"failure_policy": {
|
|
122
|
+
"environment_blocked": "neutral",
|
|
123
|
+
"proof_insufficient": "fail",
|
|
124
|
+
"product_regression": "fail"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Run a profile with the hosted Riddle runner:
|
|
130
|
+
|
|
131
|
+
```sh
|
|
132
|
+
riddle-proof-loop run-profile \
|
|
133
|
+
--profile .riddle-proof/profiles/pricing.json \
|
|
134
|
+
--url https://example.com \
|
|
135
|
+
--runner riddle \
|
|
136
|
+
--output artifacts/riddle-proof/pricing
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
The package includes a generic starter profile at
|
|
140
|
+
`examples/profiles/page-content-basic.json`; copy that shape into a repository
|
|
141
|
+
profile directory and replace the selector/text checks with app-specific
|
|
142
|
+
invariants.
|
|
143
|
+
|
|
144
|
+
The result uses `riddle-proof.profile-result.v1` and separates product failures
|
|
145
|
+
from weak proof and environment blockers:
|
|
146
|
+
|
|
147
|
+
- `passed`: required evidence exists and checks passed.
|
|
148
|
+
- `product_regression`: the app loaded, but an invariant failed.
|
|
149
|
+
- `proof_insufficient`: capture did not produce enough evidence to decide.
|
|
150
|
+
- `environment_blocked`: browser, network, auth, or runner setup blocked proof.
|
|
151
|
+
- `configuration_error`: the profile or runner options are invalid.
|
|
152
|
+
- `needs_human_review`: artifacts were collected, but automation cannot safely decide.
|
|
153
|
+
|
|
154
|
+
`--output` writes `profile-result.json`, `summary.md`, and local copies of the
|
|
155
|
+
structured `proof.json`, `console.json`, and `dom-summary.json` when they are
|
|
156
|
+
available. Riddle screenshot URLs remain referenced in the result's artifact
|
|
157
|
+
list. The profile/result schema is runner-agnostic; Riddle is the first hosted
|
|
158
|
+
adapter.
|
|
159
|
+
|
|
95
160
|
## Runner Harness
|
|
96
161
|
|
|
97
162
|
`runRiddleProof` is the reusable idea-to-PR workflow driver. It does not ship
|