@riddledc/riddle-proof 0.7.172 → 0.7.173

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.
@@ -632,21 +632,28 @@ function profileSetupCanvasSignatureStableHashGroups(results) {
632
632
  }
633
633
  const warnings = [];
634
634
  for (const group of groups.values()) {
635
- const hashes = new Set(group.receipts.map((receipt) => receipt.hash));
636
- const labels = [...new Set(group.receipts.map((receipt) => receipt.label))];
637
- if (group.receipts.length < 2 || labels.length < 2 || hashes.size !== 1) continue;
638
- const visibleLabels = labels.slice(0, 8);
639
- warnings.push({
640
- selector: group.selector,
641
- frame_selector: group.frame_selector ?? null,
642
- hash: group.receipts[0].hash,
643
- count: group.receipts.length,
644
- label_count: labels.length,
645
- labels: visibleLabels,
646
- omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
647
- ordinals: group.receipts.map((receipt) => receipt.ordinal).filter((value) => value !== void 0).slice(0, 12),
648
- reason: "stable_canvas_signature_hash"
649
- });
635
+ const receiptsByHash = /* @__PURE__ */ new Map();
636
+ for (const receipt of group.receipts) {
637
+ const hashReceipts = receiptsByHash.get(receipt.hash) || [];
638
+ hashReceipts.push(receipt);
639
+ receiptsByHash.set(receipt.hash, hashReceipts);
640
+ }
641
+ for (const [hash, receipts] of receiptsByHash.entries()) {
642
+ const labels = [...new Set(receipts.map((receipt) => receipt.label))];
643
+ if (receipts.length < 2 || labels.length < 2) continue;
644
+ const visibleLabels = labels.slice(0, 8);
645
+ warnings.push({
646
+ selector: group.selector,
647
+ frame_selector: group.frame_selector ?? null,
648
+ hash,
649
+ count: receipts.length,
650
+ label_count: labels.length,
651
+ labels: visibleLabels,
652
+ omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
653
+ ordinals: receipts.map((receipt) => receipt.ordinal).filter((value) => value !== void 0).slice(0, 12),
654
+ reason: "stable_canvas_signature_hash"
655
+ });
656
+ }
650
657
  }
651
658
  return warnings;
652
659
  }
@@ -4409,24 +4416,31 @@ function profileSetupCanvasSignatureStableHashGroups(results) {
4409
4416
  }
4410
4417
  const warnings = [];
4411
4418
  for (const group of groups.values()) {
4412
- const hashes = new Set(group.receipts.map((receipt) => receipt.hash));
4413
- const labels = [...new Set(group.receipts.map((receipt) => receipt.label))];
4414
- if (group.receipts.length < 2 || labels.length < 2 || hashes.size !== 1) continue;
4415
- const visibleLabels = labels.slice(0, 8);
4416
- warnings.push({
4417
- selector: group.selector,
4418
- frame_selector: group.frame_selector || null,
4419
- hash: group.receipts[0].hash,
4420
- count: group.receipts.length,
4421
- label_count: labels.length,
4422
- labels: visibleLabels,
4423
- omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
4424
- ordinals: group.receipts
4425
- .map((receipt) => receipt.ordinal)
4426
- .filter((value) => value !== undefined)
4427
- .slice(0, 12),
4428
- reason: "stable_canvas_signature_hash",
4429
- });
4419
+ const receiptsByHash = new Map();
4420
+ for (const receipt of group.receipts) {
4421
+ const hashReceipts = receiptsByHash.get(receipt.hash) || [];
4422
+ hashReceipts.push(receipt);
4423
+ receiptsByHash.set(receipt.hash, hashReceipts);
4424
+ }
4425
+ for (const [hash, receipts] of receiptsByHash.entries()) {
4426
+ const labels = [...new Set(receipts.map((receipt) => receipt.label))];
4427
+ if (receipts.length < 2 || labels.length < 2) continue;
4428
+ const visibleLabels = labels.slice(0, 8);
4429
+ warnings.push({
4430
+ selector: group.selector,
4431
+ frame_selector: group.frame_selector || null,
4432
+ hash,
4433
+ count: receipts.length,
4434
+ label_count: labels.length,
4435
+ labels: visibleLabels,
4436
+ omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
4437
+ ordinals: receipts
4438
+ .map((receipt) => receipt.ordinal)
4439
+ .filter((value) => value !== undefined)
4440
+ .slice(0, 12),
4441
+ reason: "stable_canvas_signature_hash",
4442
+ });
4443
+ }
4430
4444
  }
4431
4445
  return warnings;
4432
4446
  }
package/dist/cli.cjs CHANGED
@@ -7589,21 +7589,28 @@ function profileSetupCanvasSignatureStableHashGroups(results) {
7589
7589
  }
7590
7590
  const warnings = [];
7591
7591
  for (const group of groups.values()) {
7592
- const hashes = new Set(group.receipts.map((receipt) => receipt.hash));
7593
- const labels = [...new Set(group.receipts.map((receipt) => receipt.label))];
7594
- if (group.receipts.length < 2 || labels.length < 2 || hashes.size !== 1) continue;
7595
- const visibleLabels = labels.slice(0, 8);
7596
- warnings.push({
7597
- selector: group.selector,
7598
- frame_selector: group.frame_selector ?? null,
7599
- hash: group.receipts[0].hash,
7600
- count: group.receipts.length,
7601
- label_count: labels.length,
7602
- labels: visibleLabels,
7603
- omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
7604
- ordinals: group.receipts.map((receipt) => receipt.ordinal).filter((value) => value !== void 0).slice(0, 12),
7605
- reason: "stable_canvas_signature_hash"
7606
- });
7592
+ const receiptsByHash = /* @__PURE__ */ new Map();
7593
+ for (const receipt of group.receipts) {
7594
+ const hashReceipts = receiptsByHash.get(receipt.hash) || [];
7595
+ hashReceipts.push(receipt);
7596
+ receiptsByHash.set(receipt.hash, hashReceipts);
7597
+ }
7598
+ for (const [hash, receipts] of receiptsByHash.entries()) {
7599
+ const labels = [...new Set(receipts.map((receipt) => receipt.label))];
7600
+ if (receipts.length < 2 || labels.length < 2) continue;
7601
+ const visibleLabels = labels.slice(0, 8);
7602
+ warnings.push({
7603
+ selector: group.selector,
7604
+ frame_selector: group.frame_selector ?? null,
7605
+ hash,
7606
+ count: receipts.length,
7607
+ label_count: labels.length,
7608
+ labels: visibleLabels,
7609
+ omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
7610
+ ordinals: receipts.map((receipt) => receipt.ordinal).filter((value) => value !== void 0).slice(0, 12),
7611
+ reason: "stable_canvas_signature_hash"
7612
+ });
7613
+ }
7607
7614
  }
7608
7615
  return warnings;
7609
7616
  }
@@ -11350,24 +11357,31 @@ function profileSetupCanvasSignatureStableHashGroups(results) {
11350
11357
  }
11351
11358
  const warnings = [];
11352
11359
  for (const group of groups.values()) {
11353
- const hashes = new Set(group.receipts.map((receipt) => receipt.hash));
11354
- const labels = [...new Set(group.receipts.map((receipt) => receipt.label))];
11355
- if (group.receipts.length < 2 || labels.length < 2 || hashes.size !== 1) continue;
11356
- const visibleLabels = labels.slice(0, 8);
11357
- warnings.push({
11358
- selector: group.selector,
11359
- frame_selector: group.frame_selector || null,
11360
- hash: group.receipts[0].hash,
11361
- count: group.receipts.length,
11362
- label_count: labels.length,
11363
- labels: visibleLabels,
11364
- omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
11365
- ordinals: group.receipts
11366
- .map((receipt) => receipt.ordinal)
11367
- .filter((value) => value !== undefined)
11368
- .slice(0, 12),
11369
- reason: "stable_canvas_signature_hash",
11370
- });
11360
+ const receiptsByHash = new Map();
11361
+ for (const receipt of group.receipts) {
11362
+ const hashReceipts = receiptsByHash.get(receipt.hash) || [];
11363
+ hashReceipts.push(receipt);
11364
+ receiptsByHash.set(receipt.hash, hashReceipts);
11365
+ }
11366
+ for (const [hash, receipts] of receiptsByHash.entries()) {
11367
+ const labels = [...new Set(receipts.map((receipt) => receipt.label))];
11368
+ if (receipts.length < 2 || labels.length < 2) continue;
11369
+ const visibleLabels = labels.slice(0, 8);
11370
+ warnings.push({
11371
+ selector: group.selector,
11372
+ frame_selector: group.frame_selector || null,
11373
+ hash,
11374
+ count: receipts.length,
11375
+ label_count: labels.length,
11376
+ labels: visibleLabels,
11377
+ omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
11378
+ ordinals: receipts
11379
+ .map((receipt) => receipt.ordinal)
11380
+ .filter((value) => value !== undefined)
11381
+ .slice(0, 12),
11382
+ reason: "stable_canvas_signature_hash",
11383
+ });
11384
+ }
11371
11385
  }
11372
11386
  return warnings;
11373
11387
  }
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  profileStatusExitCode,
14
14
  resolveRiddleProofProfileTargetUrl,
15
15
  resolveRiddleProofProfileTimeoutSec
16
- } from "./chunk-5ELOMJ7U.js";
16
+ } from "./chunk-JIAMASZX.js";
17
17
  import {
18
18
  createRiddleApiClient,
19
19
  isTerminalRiddleJobStatus,
package/dist/index.cjs CHANGED
@@ -9365,21 +9365,28 @@ function profileSetupCanvasSignatureStableHashGroups(results) {
9365
9365
  }
9366
9366
  const warnings = [];
9367
9367
  for (const group of groups.values()) {
9368
- const hashes = new Set(group.receipts.map((receipt) => receipt.hash));
9369
- const labels = [...new Set(group.receipts.map((receipt) => receipt.label))];
9370
- if (group.receipts.length < 2 || labels.length < 2 || hashes.size !== 1) continue;
9371
- const visibleLabels = labels.slice(0, 8);
9372
- warnings.push({
9373
- selector: group.selector,
9374
- frame_selector: group.frame_selector ?? null,
9375
- hash: group.receipts[0].hash,
9376
- count: group.receipts.length,
9377
- label_count: labels.length,
9378
- labels: visibleLabels,
9379
- omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
9380
- ordinals: group.receipts.map((receipt) => receipt.ordinal).filter((value) => value !== void 0).slice(0, 12),
9381
- reason: "stable_canvas_signature_hash"
9382
- });
9368
+ const receiptsByHash = /* @__PURE__ */ new Map();
9369
+ for (const receipt of group.receipts) {
9370
+ const hashReceipts = receiptsByHash.get(receipt.hash) || [];
9371
+ hashReceipts.push(receipt);
9372
+ receiptsByHash.set(receipt.hash, hashReceipts);
9373
+ }
9374
+ for (const [hash, receipts] of receiptsByHash.entries()) {
9375
+ const labels = [...new Set(receipts.map((receipt) => receipt.label))];
9376
+ if (receipts.length < 2 || labels.length < 2) continue;
9377
+ const visibleLabels = labels.slice(0, 8);
9378
+ warnings.push({
9379
+ selector: group.selector,
9380
+ frame_selector: group.frame_selector ?? null,
9381
+ hash,
9382
+ count: receipts.length,
9383
+ label_count: labels.length,
9384
+ labels: visibleLabels,
9385
+ omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
9386
+ ordinals: receipts.map((receipt) => receipt.ordinal).filter((value) => value !== void 0).slice(0, 12),
9387
+ reason: "stable_canvas_signature_hash"
9388
+ });
9389
+ }
9383
9390
  }
9384
9391
  return warnings;
9385
9392
  }
@@ -13142,24 +13149,31 @@ function profileSetupCanvasSignatureStableHashGroups(results) {
13142
13149
  }
13143
13150
  const warnings = [];
13144
13151
  for (const group of groups.values()) {
13145
- const hashes = new Set(group.receipts.map((receipt) => receipt.hash));
13146
- const labels = [...new Set(group.receipts.map((receipt) => receipt.label))];
13147
- if (group.receipts.length < 2 || labels.length < 2 || hashes.size !== 1) continue;
13148
- const visibleLabels = labels.slice(0, 8);
13149
- warnings.push({
13150
- selector: group.selector,
13151
- frame_selector: group.frame_selector || null,
13152
- hash: group.receipts[0].hash,
13153
- count: group.receipts.length,
13154
- label_count: labels.length,
13155
- labels: visibleLabels,
13156
- omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
13157
- ordinals: group.receipts
13158
- .map((receipt) => receipt.ordinal)
13159
- .filter((value) => value !== undefined)
13160
- .slice(0, 12),
13161
- reason: "stable_canvas_signature_hash",
13162
- });
13152
+ const receiptsByHash = new Map();
13153
+ for (const receipt of group.receipts) {
13154
+ const hashReceipts = receiptsByHash.get(receipt.hash) || [];
13155
+ hashReceipts.push(receipt);
13156
+ receiptsByHash.set(receipt.hash, hashReceipts);
13157
+ }
13158
+ for (const [hash, receipts] of receiptsByHash.entries()) {
13159
+ const labels = [...new Set(receipts.map((receipt) => receipt.label))];
13160
+ if (receipts.length < 2 || labels.length < 2) continue;
13161
+ const visibleLabels = labels.slice(0, 8);
13162
+ warnings.push({
13163
+ selector: group.selector,
13164
+ frame_selector: group.frame_selector || null,
13165
+ hash,
13166
+ count: receipts.length,
13167
+ label_count: labels.length,
13168
+ labels: visibleLabels,
13169
+ omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
13170
+ ordinals: receipts
13171
+ .map((receipt) => receipt.ordinal)
13172
+ .filter((value) => value !== undefined)
13173
+ .slice(0, 12),
13174
+ reason: "stable_canvas_signature_hash",
13175
+ });
13176
+ }
13163
13177
  }
13164
13178
  return warnings;
13165
13179
  }
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  resolveRiddleProofProfileTimeoutSec,
63
63
  slugifyRiddleProofProfileName,
64
64
  summarizeRiddleProofProfileResult
65
- } from "./chunk-5ELOMJ7U.js";
65
+ } from "./chunk-JIAMASZX.js";
66
66
  import {
67
67
  DEFAULT_RIDDLE_API_BASE_URL,
68
68
  DEFAULT_RIDDLE_API_KEY_FILE,
package/dist/profile.cjs CHANGED
@@ -679,21 +679,28 @@ function profileSetupCanvasSignatureStableHashGroups(results) {
679
679
  }
680
680
  const warnings = [];
681
681
  for (const group of groups.values()) {
682
- const hashes = new Set(group.receipts.map((receipt) => receipt.hash));
683
- const labels = [...new Set(group.receipts.map((receipt) => receipt.label))];
684
- if (group.receipts.length < 2 || labels.length < 2 || hashes.size !== 1) continue;
685
- const visibleLabels = labels.slice(0, 8);
686
- warnings.push({
687
- selector: group.selector,
688
- frame_selector: group.frame_selector ?? null,
689
- hash: group.receipts[0].hash,
690
- count: group.receipts.length,
691
- label_count: labels.length,
692
- labels: visibleLabels,
693
- omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
694
- ordinals: group.receipts.map((receipt) => receipt.ordinal).filter((value) => value !== void 0).slice(0, 12),
695
- reason: "stable_canvas_signature_hash"
696
- });
682
+ const receiptsByHash = /* @__PURE__ */ new Map();
683
+ for (const receipt of group.receipts) {
684
+ const hashReceipts = receiptsByHash.get(receipt.hash) || [];
685
+ hashReceipts.push(receipt);
686
+ receiptsByHash.set(receipt.hash, hashReceipts);
687
+ }
688
+ for (const [hash, receipts] of receiptsByHash.entries()) {
689
+ const labels = [...new Set(receipts.map((receipt) => receipt.label))];
690
+ if (receipts.length < 2 || labels.length < 2) continue;
691
+ const visibleLabels = labels.slice(0, 8);
692
+ warnings.push({
693
+ selector: group.selector,
694
+ frame_selector: group.frame_selector ?? null,
695
+ hash,
696
+ count: receipts.length,
697
+ label_count: labels.length,
698
+ labels: visibleLabels,
699
+ omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
700
+ ordinals: receipts.map((receipt) => receipt.ordinal).filter((value) => value !== void 0).slice(0, 12),
701
+ reason: "stable_canvas_signature_hash"
702
+ });
703
+ }
697
704
  }
698
705
  return warnings;
699
706
  }
@@ -4456,24 +4463,31 @@ function profileSetupCanvasSignatureStableHashGroups(results) {
4456
4463
  }
4457
4464
  const warnings = [];
4458
4465
  for (const group of groups.values()) {
4459
- const hashes = new Set(group.receipts.map((receipt) => receipt.hash));
4460
- const labels = [...new Set(group.receipts.map((receipt) => receipt.label))];
4461
- if (group.receipts.length < 2 || labels.length < 2 || hashes.size !== 1) continue;
4462
- const visibleLabels = labels.slice(0, 8);
4463
- warnings.push({
4464
- selector: group.selector,
4465
- frame_selector: group.frame_selector || null,
4466
- hash: group.receipts[0].hash,
4467
- count: group.receipts.length,
4468
- label_count: labels.length,
4469
- labels: visibleLabels,
4470
- omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
4471
- ordinals: group.receipts
4472
- .map((receipt) => receipt.ordinal)
4473
- .filter((value) => value !== undefined)
4474
- .slice(0, 12),
4475
- reason: "stable_canvas_signature_hash",
4476
- });
4466
+ const receiptsByHash = new Map();
4467
+ for (const receipt of group.receipts) {
4468
+ const hashReceipts = receiptsByHash.get(receipt.hash) || [];
4469
+ hashReceipts.push(receipt);
4470
+ receiptsByHash.set(receipt.hash, hashReceipts);
4471
+ }
4472
+ for (const [hash, receipts] of receiptsByHash.entries()) {
4473
+ const labels = [...new Set(receipts.map((receipt) => receipt.label))];
4474
+ if (receipts.length < 2 || labels.length < 2) continue;
4475
+ const visibleLabels = labels.slice(0, 8);
4476
+ warnings.push({
4477
+ selector: group.selector,
4478
+ frame_selector: group.frame_selector || null,
4479
+ hash,
4480
+ count: receipts.length,
4481
+ label_count: labels.length,
4482
+ labels: visibleLabels,
4483
+ omitted_label_count: Math.max(0, labels.length - visibleLabels.length),
4484
+ ordinals: receipts
4485
+ .map((receipt) => receipt.ordinal)
4486
+ .filter((value) => value !== undefined)
4487
+ .slice(0, 12),
4488
+ reason: "stable_canvas_signature_hash",
4489
+ });
4490
+ }
4477
4491
  }
4478
4492
  return warnings;
4479
4493
  }
package/dist/profile.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  resolveRiddleProofProfileTimeoutSec,
24
24
  slugifyRiddleProofProfileName,
25
25
  summarizeRiddleProofProfileResult
26
- } from "./chunk-5ELOMJ7U.js";
26
+ } from "./chunk-JIAMASZX.js";
27
27
  export {
28
28
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
29
29
  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.172",
3
+ "version": "0.7.173",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",