@riddledc/riddle-proof 0.7.15 → 0.7.16

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.
@@ -265,7 +265,7 @@ function assessBasicGameplayProgressionCheck(check) {
265
265
  reason = ok ? null : "selector_still_present";
266
266
  } else if (type === "selector_text_matches") {
267
267
  if (!check.pattern && hasExplicitResult) return resolveBasicGameplayProgressionCheckWithArtifactScreenshots({ ...check, ok, reason });
268
- ok = textMatches(after?.text, check.pattern, check.flags);
268
+ ok = after?.pattern_matched === true || textMatches(after?.text, check.pattern, check.flags);
269
269
  reason = ok ? null : "selector_text_did_not_match";
270
270
  } else if (type === "number_increases") {
271
271
  ok = numericValue(before?.number) !== null && numericValue(after?.number) !== null && numberValue(after?.number) > numberValue(before?.number);
@@ -49,6 +49,7 @@ interface BasicGameplayMetric {
49
49
  property_path?: string | null;
50
50
  present?: boolean;
51
51
  text?: string | null;
52
+ pattern_matched?: boolean | null;
52
53
  number?: number | null;
53
54
  count?: number | null;
54
55
  value_type?: string | null;
@@ -49,6 +49,7 @@ interface BasicGameplayMetric {
49
49
  property_path?: string | null;
50
50
  present?: boolean;
51
51
  text?: string | null;
52
+ pattern_matched?: boolean | null;
52
53
  number?: number | null;
53
54
  count?: number | null;
54
55
  value_type?: string | null;
@@ -16,7 +16,7 @@ import {
16
16
  extractBasicGameplayEvidence,
17
17
  resolveBasicGameplayProgressionCheckWithArtifactScreenshots,
18
18
  sanitizeBasicGameplayJsonString
19
- } from "./chunk-JDM244L7.js";
19
+ } from "./chunk-GHQR2VEI.js";
20
20
  export {
21
21
  BASIC_GAMEPLAY_ACTION_TYPES,
22
22
  BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES,
@@ -225,7 +225,7 @@ function assessBasicGameplayProgressionCheck(check) {
225
225
  reason = ok ? null : "selector_still_present";
226
226
  } else if (type === "selector_text_matches") {
227
227
  if (!check.pattern && hasExplicitResult) return resolveBasicGameplayProgressionCheckWithArtifactScreenshots({ ...check, ok, reason });
228
- ok = textMatches(after?.text, check.pattern, check.flags);
228
+ ok = after?.pattern_matched === true || textMatches(after?.text, check.pattern, check.flags);
229
229
  reason = ok ? null : "selector_text_did_not_match";
230
230
  } else if (type === "number_increases") {
231
231
  ok = numericValue(before?.number) !== null && numericValue(after?.number) !== null && numberValue(after?.number) > numberValue(before?.number);
package/dist/index.cjs CHANGED
@@ -8034,7 +8034,7 @@ function assessBasicGameplayProgressionCheck(check) {
8034
8034
  reason = ok ? null : "selector_still_present";
8035
8035
  } else if (type === "selector_text_matches") {
8036
8036
  if (!check.pattern && hasExplicitResult) return resolveBasicGameplayProgressionCheckWithArtifactScreenshots({ ...check, ok, reason });
8037
- ok = textMatches(after?.text, check.pattern, check.flags);
8037
+ ok = after?.pattern_matched === true || textMatches(after?.text, check.pattern, check.flags);
8038
8038
  reason = ok ? null : "selector_text_did_not_match";
8039
8039
  } else if (type === "number_increases") {
8040
8040
  ok = numericValue3(before?.number) !== null && numericValue3(after?.number) !== null && numberValue2(after?.number) > numberValue2(before?.number);
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  extractBasicGameplayEvidence,
37
37
  resolveBasicGameplayProgressionCheckWithArtifactScreenshots,
38
38
  sanitizeBasicGameplayJsonString
39
- } from "./chunk-JDM244L7.js";
39
+ } from "./chunk-GHQR2VEI.js";
40
40
  import {
41
41
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
42
42
  RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.7.15",
3
+ "version": "0.7.16",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",