@riddledc/riddle-proof 0.7.104 → 0.7.105

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 CHANGED
@@ -306,7 +306,10 @@ Use setup assertions when the pre-click or pre-navigation state is part of the c
306
306
  for example a fresh row must be present, stale copy must be absent, exactly one
307
307
  source link must exist before clicking into the final route, or a canvas app's
308
308
  proof state must expose a terminal flag. `assert_selector_count` accepts
309
- `expected_count`; `assert_window_value` accepts `path` / `state_path` plus
309
+ `expected_count`; `assert_text_visible` and `assert_text_absent` prefer rendered
310
+ selector text (`innerText`) so casing from CSS `text-transform` matches
311
+ `selector_text_visible`, with a `textContent` fallback for non-HTML elements.
312
+ `assert_window_value` accepts `path` / `state_path` plus
310
313
  `expected_value` / `expected` and compares JSON-safe values exactly.
311
314
  `assert_window_number` accepts `path` / `state_path` plus `expected_value`,
312
315
  `min_value`, or `max_value`, and is useful for canvas-only proof state such as
@@ -3732,7 +3732,9 @@ async function setupActionScope(action, timeout) {
3732
3732
  return { ok: true, context: frame, frame_selector: frameSelector, frame_index: frameIndex, frame_count: frameCount };
3733
3733
  }
3734
3734
  async function setupLocatorText(locator, index) {
3735
- return await locator.nth(index).textContent({ timeout: 1000 }).catch(() => "");
3735
+ const target = locator.nth(index);
3736
+ return await target.innerText({ timeout: 1000 })
3737
+ .catch(async () => await target.textContent({ timeout: 1000 }).catch(() => ""));
3736
3738
  }
3737
3739
  function compactSetupResultText(value) {
3738
3740
  const text = String(value || "").replace(/\s+/g, " ").trim();
package/dist/cli.cjs CHANGED
@@ -10609,7 +10609,9 @@ async function setupActionScope(action, timeout) {
10609
10609
  return { ok: true, context: frame, frame_selector: frameSelector, frame_index: frameIndex, frame_count: frameCount };
10610
10610
  }
10611
10611
  async function setupLocatorText(locator, index) {
10612
- return await locator.nth(index).textContent({ timeout: 1000 }).catch(() => "");
10612
+ const target = locator.nth(index);
10613
+ return await target.innerText({ timeout: 1000 })
10614
+ .catch(async () => await target.textContent({ timeout: 1000 }).catch(() => ""));
10613
10615
  }
10614
10616
  function compactSetupResultText(value) {
10615
10617
  const text = String(value || "").replace(/\s+/g, " ").trim();
package/dist/cli.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  profileStatusExitCode,
11
11
  resolveRiddleProofProfileTargetUrl,
12
12
  resolveRiddleProofProfileTimeoutSec
13
- } from "./chunk-F7T5FIXO.js";
13
+ } from "./chunk-VO5U4I7F.js";
14
14
  import {
15
15
  createRiddleApiClient,
16
16
  parseRiddleViewport
package/dist/index.cjs CHANGED
@@ -12461,7 +12461,9 @@ async function setupActionScope(action, timeout) {
12461
12461
  return { ok: true, context: frame, frame_selector: frameSelector, frame_index: frameIndex, frame_count: frameCount };
12462
12462
  }
12463
12463
  async function setupLocatorText(locator, index) {
12464
- return await locator.nth(index).textContent({ timeout: 1000 }).catch(() => "");
12464
+ const target = locator.nth(index);
12465
+ return await target.innerText({ timeout: 1000 })
12466
+ .catch(async () => await target.textContent({ timeout: 1000 }).catch(() => ""));
12465
12467
  }
12466
12468
  function compactSetupResultText(value) {
12467
12469
  const text = String(value || "").replace(/\s+/g, " ").trim();
package/dist/index.js CHANGED
@@ -58,7 +58,7 @@ import {
58
58
  resolveRiddleProofProfileTimeoutSec,
59
59
  slugifyRiddleProofProfileName,
60
60
  summarizeRiddleProofProfileResult
61
- } from "./chunk-F7T5FIXO.js";
61
+ } from "./chunk-VO5U4I7F.js";
62
62
  import {
63
63
  DEFAULT_RIDDLE_API_BASE_URL,
64
64
  DEFAULT_RIDDLE_API_KEY_FILE,
package/dist/profile.cjs CHANGED
@@ -3775,7 +3775,9 @@ async function setupActionScope(action, timeout) {
3775
3775
  return { ok: true, context: frame, frame_selector: frameSelector, frame_index: frameIndex, frame_count: frameCount };
3776
3776
  }
3777
3777
  async function setupLocatorText(locator, index) {
3778
- return await locator.nth(index).textContent({ timeout: 1000 }).catch(() => "");
3778
+ const target = locator.nth(index);
3779
+ return await target.innerText({ timeout: 1000 })
3780
+ .catch(async () => await target.textContent({ timeout: 1000 }).catch(() => ""));
3779
3781
  }
3780
3782
  function compactSetupResultText(value) {
3781
3783
  const text = String(value || "").replace(/\s+/g, " ").trim();
package/dist/profile.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  resolveRiddleProofProfileTimeoutSec,
20
20
  slugifyRiddleProofProfileName,
21
21
  summarizeRiddleProofProfileResult
22
- } from "./chunk-F7T5FIXO.js";
22
+ } from "./chunk-VO5U4I7F.js";
23
23
  export {
24
24
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
25
25
  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.104",
3
+ "version": "0.7.105",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",