@riddledc/riddle-proof 0.7.106 → 0.7.107
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/dist/{chunk-7JB3XKEE.js → chunk-BZ3XERXC.js} +10 -4
- package/dist/cli.cjs +10 -4
- package/dist/cli.js +1 -1
- package/dist/index.cjs +10 -4
- package/dist/index.js +1 -1
- package/dist/profile.cjs +10 -4
- package/dist/profile.js +1 -1
- package/dist/proof-run-engine.d.cts +3 -3
- package/dist/proof-run-engine.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1556,13 +1556,16 @@ function assessCheckFromEvidence(check, evidence) {
|
|
|
1556
1556
|
const results = viewports.map((viewport) => {
|
|
1557
1557
|
const texts = textSequenceForCheck(viewport, check);
|
|
1558
1558
|
const matches = texts.filter((text) => matchText(text, check));
|
|
1559
|
+
const matched = matches.length > 0;
|
|
1560
|
+
const failedAgainstExpectation = matched !== expectedVisible;
|
|
1561
|
+
const sampleTexts = matches.length ? matches : failedAgainstExpectation ? texts : [];
|
|
1559
1562
|
return {
|
|
1560
1563
|
viewport: viewport.name,
|
|
1561
1564
|
selector_count: viewport.selectors?.[key]?.count || 0,
|
|
1562
1565
|
visible_count: viewport.selectors?.[key]?.visible_count || 0,
|
|
1563
1566
|
matched_count: matches.length,
|
|
1564
|
-
matched
|
|
1565
|
-
samples:
|
|
1567
|
+
matched,
|
|
1568
|
+
samples: sampleTexts.slice(0, 3).map((text) => text.slice(0, 240))
|
|
1566
1569
|
};
|
|
1567
1570
|
});
|
|
1568
1571
|
const failed = results.filter((result) => result.matched !== expectedVisible).length;
|
|
@@ -3136,13 +3139,16 @@ function assessProfile(profile, evidence) {
|
|
|
3136
3139
|
const results = checkViewports.map((viewport) => {
|
|
3137
3140
|
const texts = textSequenceForCheck(viewport, check);
|
|
3138
3141
|
const matches = texts.filter((text) => textMatches(text, check));
|
|
3142
|
+
const matched = matches.length > 0;
|
|
3143
|
+
const failedAgainstExpectation = matched !== expectedVisible;
|
|
3144
|
+
const sampleTexts = matches.length ? matches : failedAgainstExpectation ? texts : [];
|
|
3139
3145
|
return {
|
|
3140
3146
|
viewport: viewport.name,
|
|
3141
3147
|
selector_count: viewport.selectors && viewport.selectors[selector] ? viewport.selectors[selector].count : 0,
|
|
3142
3148
|
visible_count: viewport.selectors && viewport.selectors[selector] ? viewport.selectors[selector].visible_count : 0,
|
|
3143
3149
|
matched_count: matches.length,
|
|
3144
|
-
matched
|
|
3145
|
-
samples:
|
|
3150
|
+
matched,
|
|
3151
|
+
samples: sampleTexts.slice(0, 3).map((text) => text.slice(0, 240)),
|
|
3146
3152
|
};
|
|
3147
3153
|
});
|
|
3148
3154
|
const failed = results.filter((result) => result.matched !== expectedVisible).length;
|
package/dist/cli.cjs
CHANGED
|
@@ -8449,13 +8449,16 @@ function assessCheckFromEvidence(check, evidence) {
|
|
|
8449
8449
|
const results = viewports.map((viewport) => {
|
|
8450
8450
|
const texts = textSequenceForCheck(viewport, check);
|
|
8451
8451
|
const matches = texts.filter((text) => matchText(text, check));
|
|
8452
|
+
const matched = matches.length > 0;
|
|
8453
|
+
const failedAgainstExpectation = matched !== expectedVisible;
|
|
8454
|
+
const sampleTexts = matches.length ? matches : failedAgainstExpectation ? texts : [];
|
|
8452
8455
|
return {
|
|
8453
8456
|
viewport: viewport.name,
|
|
8454
8457
|
selector_count: viewport.selectors?.[key]?.count || 0,
|
|
8455
8458
|
visible_count: viewport.selectors?.[key]?.visible_count || 0,
|
|
8456
8459
|
matched_count: matches.length,
|
|
8457
|
-
matched
|
|
8458
|
-
samples:
|
|
8460
|
+
matched,
|
|
8461
|
+
samples: sampleTexts.slice(0, 3).map((text) => text.slice(0, 240))
|
|
8459
8462
|
};
|
|
8460
8463
|
});
|
|
8461
8464
|
const failed = results.filter((result) => result.matched !== expectedVisible).length;
|
|
@@ -10013,13 +10016,16 @@ function assessProfile(profile, evidence) {
|
|
|
10013
10016
|
const results = checkViewports.map((viewport) => {
|
|
10014
10017
|
const texts = textSequenceForCheck(viewport, check);
|
|
10015
10018
|
const matches = texts.filter((text) => textMatches(text, check));
|
|
10019
|
+
const matched = matches.length > 0;
|
|
10020
|
+
const failedAgainstExpectation = matched !== expectedVisible;
|
|
10021
|
+
const sampleTexts = matches.length ? matches : failedAgainstExpectation ? texts : [];
|
|
10016
10022
|
return {
|
|
10017
10023
|
viewport: viewport.name,
|
|
10018
10024
|
selector_count: viewport.selectors && viewport.selectors[selector] ? viewport.selectors[selector].count : 0,
|
|
10019
10025
|
visible_count: viewport.selectors && viewport.selectors[selector] ? viewport.selectors[selector].visible_count : 0,
|
|
10020
10026
|
matched_count: matches.length,
|
|
10021
|
-
matched
|
|
10022
|
-
samples:
|
|
10027
|
+
matched,
|
|
10028
|
+
samples: sampleTexts.slice(0, 3).map((text) => text.slice(0, 240)),
|
|
10023
10029
|
};
|
|
10024
10030
|
});
|
|
10025
10031
|
const failed = results.filter((result) => result.matched !== expectedVisible).length;
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -10285,13 +10285,16 @@ function assessCheckFromEvidence(check, evidence) {
|
|
|
10285
10285
|
const results = viewports.map((viewport) => {
|
|
10286
10286
|
const texts = textSequenceForCheck(viewport, check);
|
|
10287
10287
|
const matches = texts.filter((text) => matchText(text, check));
|
|
10288
|
+
const matched = matches.length > 0;
|
|
10289
|
+
const failedAgainstExpectation = matched !== expectedVisible;
|
|
10290
|
+
const sampleTexts = matches.length ? matches : failedAgainstExpectation ? texts : [];
|
|
10288
10291
|
return {
|
|
10289
10292
|
viewport: viewport.name,
|
|
10290
10293
|
selector_count: viewport.selectors?.[key]?.count || 0,
|
|
10291
10294
|
visible_count: viewport.selectors?.[key]?.visible_count || 0,
|
|
10292
10295
|
matched_count: matches.length,
|
|
10293
|
-
matched
|
|
10294
|
-
samples:
|
|
10296
|
+
matched,
|
|
10297
|
+
samples: sampleTexts.slice(0, 3).map((text) => text.slice(0, 240))
|
|
10295
10298
|
};
|
|
10296
10299
|
});
|
|
10297
10300
|
const failed = results.filter((result) => result.matched !== expectedVisible).length;
|
|
@@ -11865,13 +11868,16 @@ function assessProfile(profile, evidence) {
|
|
|
11865
11868
|
const results = checkViewports.map((viewport) => {
|
|
11866
11869
|
const texts = textSequenceForCheck(viewport, check);
|
|
11867
11870
|
const matches = texts.filter((text) => textMatches(text, check));
|
|
11871
|
+
const matched = matches.length > 0;
|
|
11872
|
+
const failedAgainstExpectation = matched !== expectedVisible;
|
|
11873
|
+
const sampleTexts = matches.length ? matches : failedAgainstExpectation ? texts : [];
|
|
11868
11874
|
return {
|
|
11869
11875
|
viewport: viewport.name,
|
|
11870
11876
|
selector_count: viewport.selectors && viewport.selectors[selector] ? viewport.selectors[selector].count : 0,
|
|
11871
11877
|
visible_count: viewport.selectors && viewport.selectors[selector] ? viewport.selectors[selector].visible_count : 0,
|
|
11872
11878
|
matched_count: matches.length,
|
|
11873
|
-
matched
|
|
11874
|
-
samples:
|
|
11879
|
+
matched,
|
|
11880
|
+
samples: sampleTexts.slice(0, 3).map((text) => text.slice(0, 240)),
|
|
11875
11881
|
};
|
|
11876
11882
|
});
|
|
11877
11883
|
const failed = results.filter((result) => result.matched !== expectedVisible).length;
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
resolveRiddleProofProfileTimeoutSec,
|
|
59
59
|
slugifyRiddleProofProfileName,
|
|
60
60
|
summarizeRiddleProofProfileResult
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-BZ3XERXC.js";
|
|
62
62
|
import {
|
|
63
63
|
DEFAULT_RIDDLE_API_BASE_URL,
|
|
64
64
|
DEFAULT_RIDDLE_API_KEY_FILE,
|
package/dist/profile.cjs
CHANGED
|
@@ -1599,13 +1599,16 @@ function assessCheckFromEvidence(check, evidence) {
|
|
|
1599
1599
|
const results = viewports.map((viewport) => {
|
|
1600
1600
|
const texts = textSequenceForCheck(viewport, check);
|
|
1601
1601
|
const matches = texts.filter((text) => matchText(text, check));
|
|
1602
|
+
const matched = matches.length > 0;
|
|
1603
|
+
const failedAgainstExpectation = matched !== expectedVisible;
|
|
1604
|
+
const sampleTexts = matches.length ? matches : failedAgainstExpectation ? texts : [];
|
|
1602
1605
|
return {
|
|
1603
1606
|
viewport: viewport.name,
|
|
1604
1607
|
selector_count: viewport.selectors?.[key]?.count || 0,
|
|
1605
1608
|
visible_count: viewport.selectors?.[key]?.visible_count || 0,
|
|
1606
1609
|
matched_count: matches.length,
|
|
1607
|
-
matched
|
|
1608
|
-
samples:
|
|
1610
|
+
matched,
|
|
1611
|
+
samples: sampleTexts.slice(0, 3).map((text) => text.slice(0, 240))
|
|
1609
1612
|
};
|
|
1610
1613
|
});
|
|
1611
1614
|
const failed = results.filter((result) => result.matched !== expectedVisible).length;
|
|
@@ -3179,13 +3182,16 @@ function assessProfile(profile, evidence) {
|
|
|
3179
3182
|
const results = checkViewports.map((viewport) => {
|
|
3180
3183
|
const texts = textSequenceForCheck(viewport, check);
|
|
3181
3184
|
const matches = texts.filter((text) => textMatches(text, check));
|
|
3185
|
+
const matched = matches.length > 0;
|
|
3186
|
+
const failedAgainstExpectation = matched !== expectedVisible;
|
|
3187
|
+
const sampleTexts = matches.length ? matches : failedAgainstExpectation ? texts : [];
|
|
3182
3188
|
return {
|
|
3183
3189
|
viewport: viewport.name,
|
|
3184
3190
|
selector_count: viewport.selectors && viewport.selectors[selector] ? viewport.selectors[selector].count : 0,
|
|
3185
3191
|
visible_count: viewport.selectors && viewport.selectors[selector] ? viewport.selectors[selector].visible_count : 0,
|
|
3186
3192
|
matched_count: matches.length,
|
|
3187
|
-
matched
|
|
3188
|
-
samples:
|
|
3193
|
+
matched,
|
|
3194
|
+
samples: sampleTexts.slice(0, 3).map((text) => text.slice(0, 240)),
|
|
3189
3195
|
};
|
|
3190
3196
|
});
|
|
3191
3197
|
const failed = results.filter((result) => result.matched !== expectedVisible).length;
|
package/dist/profile.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
resolveRiddleProofProfileTimeoutSec,
|
|
20
20
|
slugifyRiddleProofProfileName,
|
|
21
21
|
summarizeRiddleProofProfileResult
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BZ3XERXC.js";
|
|
23
23
|
export {
|
|
24
24
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
25
25
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|
|
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
292
292
|
blocking?: boolean;
|
|
293
293
|
details?: Record<string, unknown>;
|
|
294
294
|
ok: boolean;
|
|
295
|
-
action: "
|
|
295
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
296
296
|
state_path: string;
|
|
297
297
|
stage: any;
|
|
298
298
|
summary: string;
|
|
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
382
382
|
continueWithStage?: WorkflowStage | null;
|
|
383
383
|
blocking?: boolean;
|
|
384
384
|
details?: Record<string, unknown>;
|
|
385
|
-
action: "
|
|
385
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
386
386
|
state_path: string;
|
|
387
387
|
stage: any;
|
|
388
388
|
checkpoint: string;
|
|
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
659
659
|
error?: undefined;
|
|
660
660
|
} | {
|
|
661
661
|
ok: boolean;
|
|
662
|
-
action: "
|
|
662
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|
|
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
292
292
|
blocking?: boolean;
|
|
293
293
|
details?: Record<string, unknown>;
|
|
294
294
|
ok: boolean;
|
|
295
|
-
action: "
|
|
295
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
296
296
|
state_path: string;
|
|
297
297
|
stage: any;
|
|
298
298
|
summary: string;
|
|
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
382
382
|
continueWithStage?: WorkflowStage | null;
|
|
383
383
|
blocking?: boolean;
|
|
384
384
|
details?: Record<string, unknown>;
|
|
385
|
-
action: "
|
|
385
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
386
386
|
state_path: string;
|
|
387
387
|
stage: any;
|
|
388
388
|
checkpoint: string;
|
|
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
659
659
|
error?: undefined;
|
|
660
660
|
} | {
|
|
661
661
|
ok: boolean;
|
|
662
|
-
action: "
|
|
662
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|