@riddledc/riddle-proof-packs 0.4.7 → 0.4.8

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/index.cjs CHANGED
@@ -1552,16 +1552,16 @@ var playback_sync_default = {
1552
1552
  label: "capture-pre-playback-state",
1553
1553
  timeout_ms: 1e4,
1554
1554
  store_return_to: "__neonProof.prePlayback",
1555
- script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const state=api?.getPlaybackState?.()||api?.getSummary?.()?.trainer||null; window.__neonProof={...(window.__neonProof||{}),prePlayback:{available:Boolean(api),state}}; return window.__neonProof.prePlayback;",
1555
+ script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const raw=api?.getPlaybackState?.()||api?.getSummary?.()||null; const trainer=raw?.trainer||raw||{}; const out={available:Boolean(api),isPlaying:Boolean(raw?.isPlaying),currentStep:Number(trainer.currentStep??-1),selectedInstrument:trainer.selectedInstrument||null,state:raw}; window.__neonProof={...(window.__neonProof||{}),prePlayback:out}; return out;",
1556
1556
  return_summary_fields: [
1557
1557
  {
1558
1558
  path: "available"
1559
1559
  },
1560
1560
  {
1561
- path: "state.selectedInstrument"
1561
+ path: "selectedInstrument"
1562
1562
  },
1563
1563
  {
1564
- path: "state.currentStep"
1564
+ path: "currentStep"
1565
1565
  }
1566
1566
  ]
1567
1567
  },
@@ -1576,6 +1576,12 @@ var playback_sync_default = {
1576
1576
  selector: "button.drum-play",
1577
1577
  timeout_ms: 1e4
1578
1578
  },
1579
+ {
1580
+ type: "wait_for_text",
1581
+ selector: "button.drum-play",
1582
+ text: "Stop",
1583
+ timeout_ms: 3e4
1584
+ },
1579
1585
  {
1580
1586
  type: "wait",
1581
1587
  ms: 900
@@ -1585,16 +1591,19 @@ var playback_sync_default = {
1585
1591
  label: "capture-post-playback-state",
1586
1592
  timeout_ms: 1e4,
1587
1593
  store_return_to: "__neonProof.postPlayback",
1588
- script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const state=api?.getPlaybackState?.()||api?.getSummary?.()?.trainer||null; const summary=api?.getState?.()||api?.getSummary?.()||{}; const out={available:Boolean(api),isPlaying:Boolean(summary.isPlaying),state}; window.__neonProof={...(window.__neonProof||{}),postPlayback:out}; return out;",
1594
+ script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const raw=api?.getPlaybackState?.()||api?.getSummary?.()||null; const trainer=raw?.trainer||raw||{}; const pre=window.__neonProof?.prePlayback||{}; const currentStep=Number(trainer.currentStep??-1); const preStep=Number(pre.currentStep??-1); const out={available:Boolean(api),isPlaying:Boolean(raw?.isPlaying),currentStep,preStep,selectedInstrument:trainer.selectedInstrument||null,movedForward:currentStep>preStep,state:raw}; window.__neonProof={...(window.__neonProof||{}),postPlayback:out}; return out;",
1589
1595
  return_summary_fields: [
1590
1596
  {
1591
1597
  path: "isPlaying"
1592
1598
  },
1593
1599
  {
1594
- path: "state.currentStep"
1600
+ path: "currentStep"
1601
+ },
1602
+ {
1603
+ path: "selectedInstrument"
1595
1604
  },
1596
1605
  {
1597
- path: "state.selectedInstrument"
1606
+ path: "movedForward"
1598
1607
  }
1599
1608
  ]
1600
1609
  },
@@ -1604,6 +1613,18 @@ var playback_sync_default = {
1604
1613
  expected_value: true,
1605
1614
  timeout_ms: 1e4
1606
1615
  },
1616
+ {
1617
+ type: "assert_window_value",
1618
+ path: "__neonProof.postPlayback.isPlaying",
1619
+ expected_value: true,
1620
+ timeout_ms: 1e4
1621
+ },
1622
+ {
1623
+ type: "assert_window_value",
1624
+ path: "__neonProof.postPlayback.movedForward",
1625
+ expected_value: true,
1626
+ timeout_ms: 1e4
1627
+ },
1607
1628
  {
1608
1629
  type: "screenshot",
1609
1630
  label: "neon-playback-sync",
@@ -1648,7 +1669,9 @@ var playback_sync_default = {
1648
1669
  required_receipts: [
1649
1670
  "pre-action playback state",
1650
1671
  "play button interaction",
1651
- "post-action playback state",
1672
+ "visible Stop state after interaction",
1673
+ "post-action playback state is playing",
1674
+ "post-action trainer step moved forward",
1652
1675
  "screenshot after interaction"
1653
1676
  ],
1654
1677
  does_not_prove: [
package/dist/index.js CHANGED
@@ -1522,16 +1522,16 @@ var playback_sync_default = {
1522
1522
  label: "capture-pre-playback-state",
1523
1523
  timeout_ms: 1e4,
1524
1524
  store_return_to: "__neonProof.prePlayback",
1525
- script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const state=api?.getPlaybackState?.()||api?.getSummary?.()?.trainer||null; window.__neonProof={...(window.__neonProof||{}),prePlayback:{available:Boolean(api),state}}; return window.__neonProof.prePlayback;",
1525
+ script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const raw=api?.getPlaybackState?.()||api?.getSummary?.()||null; const trainer=raw?.trainer||raw||{}; const out={available:Boolean(api),isPlaying:Boolean(raw?.isPlaying),currentStep:Number(trainer.currentStep??-1),selectedInstrument:trainer.selectedInstrument||null,state:raw}; window.__neonProof={...(window.__neonProof||{}),prePlayback:out}; return out;",
1526
1526
  return_summary_fields: [
1527
1527
  {
1528
1528
  path: "available"
1529
1529
  },
1530
1530
  {
1531
- path: "state.selectedInstrument"
1531
+ path: "selectedInstrument"
1532
1532
  },
1533
1533
  {
1534
- path: "state.currentStep"
1534
+ path: "currentStep"
1535
1535
  }
1536
1536
  ]
1537
1537
  },
@@ -1546,6 +1546,12 @@ var playback_sync_default = {
1546
1546
  selector: "button.drum-play",
1547
1547
  timeout_ms: 1e4
1548
1548
  },
1549
+ {
1550
+ type: "wait_for_text",
1551
+ selector: "button.drum-play",
1552
+ text: "Stop",
1553
+ timeout_ms: 3e4
1554
+ },
1549
1555
  {
1550
1556
  type: "wait",
1551
1557
  ms: 900
@@ -1555,16 +1561,19 @@ var playback_sync_default = {
1555
1561
  label: "capture-post-playback-state",
1556
1562
  timeout_ms: 1e4,
1557
1563
  store_return_to: "__neonProof.postPlayback",
1558
- script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const state=api?.getPlaybackState?.()||api?.getSummary?.()?.trainer||null; const summary=api?.getState?.()||api?.getSummary?.()||{}; const out={available:Boolean(api),isPlaying:Boolean(summary.isPlaying),state}; window.__neonProof={...(window.__neonProof||{}),postPlayback:out}; return out;",
1564
+ script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const raw=api?.getPlaybackState?.()||api?.getSummary?.()||null; const trainer=raw?.trainer||raw||{}; const pre=window.__neonProof?.prePlayback||{}; const currentStep=Number(trainer.currentStep??-1); const preStep=Number(pre.currentStep??-1); const out={available:Boolean(api),isPlaying:Boolean(raw?.isPlaying),currentStep,preStep,selectedInstrument:trainer.selectedInstrument||null,movedForward:currentStep>preStep,state:raw}; window.__neonProof={...(window.__neonProof||{}),postPlayback:out}; return out;",
1559
1565
  return_summary_fields: [
1560
1566
  {
1561
1567
  path: "isPlaying"
1562
1568
  },
1563
1569
  {
1564
- path: "state.currentStep"
1570
+ path: "currentStep"
1571
+ },
1572
+ {
1573
+ path: "selectedInstrument"
1565
1574
  },
1566
1575
  {
1567
- path: "state.selectedInstrument"
1576
+ path: "movedForward"
1568
1577
  }
1569
1578
  ]
1570
1579
  },
@@ -1574,6 +1583,18 @@ var playback_sync_default = {
1574
1583
  expected_value: true,
1575
1584
  timeout_ms: 1e4
1576
1585
  },
1586
+ {
1587
+ type: "assert_window_value",
1588
+ path: "__neonProof.postPlayback.isPlaying",
1589
+ expected_value: true,
1590
+ timeout_ms: 1e4
1591
+ },
1592
+ {
1593
+ type: "assert_window_value",
1594
+ path: "__neonProof.postPlayback.movedForward",
1595
+ expected_value: true,
1596
+ timeout_ms: 1e4
1597
+ },
1577
1598
  {
1578
1599
  type: "screenshot",
1579
1600
  label: "neon-playback-sync",
@@ -1618,7 +1639,9 @@ var playback_sync_default = {
1618
1639
  required_receipts: [
1619
1640
  "pre-action playback state",
1620
1641
  "play button interaction",
1621
- "post-action playback state",
1642
+ "visible Stop state after interaction",
1643
+ "post-action playback state is playing",
1644
+ "post-action trainer step moved forward",
1622
1645
  "screenshot after interaction"
1623
1646
  ],
1624
1647
  does_not_prove: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof-packs",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Reusable proof pack profiles and metadata helpers for the Riddle proof framework.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",
@@ -18,16 +18,16 @@
18
18
  "label": "capture-pre-playback-state",
19
19
  "timeout_ms": 10000,
20
20
  "store_return_to": "__neonProof.prePlayback",
21
- "script": "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const state=api?.getPlaybackState?.()||api?.getSummary?.()?.trainer||null; window.__neonProof={...(window.__neonProof||{}),prePlayback:{available:Boolean(api),state}}; return window.__neonProof.prePlayback;",
21
+ "script": "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const raw=api?.getPlaybackState?.()||api?.getSummary?.()||null; const trainer=raw?.trainer||raw||{}; const out={available:Boolean(api),isPlaying:Boolean(raw?.isPlaying),currentStep:Number(trainer.currentStep??-1),selectedInstrument:trainer.selectedInstrument||null,state:raw}; window.__neonProof={...(window.__neonProof||{}),prePlayback:out}; return out;",
22
22
  "return_summary_fields": [
23
23
  {
24
24
  "path": "available"
25
25
  },
26
26
  {
27
- "path": "state.selectedInstrument"
27
+ "path": "selectedInstrument"
28
28
  },
29
29
  {
30
- "path": "state.currentStep"
30
+ "path": "currentStep"
31
31
  }
32
32
  ]
33
33
  },
@@ -42,6 +42,12 @@
42
42
  "selector": "button.drum-play",
43
43
  "timeout_ms": 10000
44
44
  },
45
+ {
46
+ "type": "wait_for_text",
47
+ "selector": "button.drum-play",
48
+ "text": "Stop",
49
+ "timeout_ms": 30000
50
+ },
45
51
  {
46
52
  "type": "wait",
47
53
  "ms": 900
@@ -51,16 +57,19 @@
51
57
  "label": "capture-post-playback-state",
52
58
  "timeout_ms": 10000,
53
59
  "store_return_to": "__neonProof.postPlayback",
54
- "script": "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const state=api?.getPlaybackState?.()||api?.getSummary?.()?.trainer||null; const summary=api?.getState?.()||api?.getSummary?.()||{}; const out={available:Boolean(api),isPlaying:Boolean(summary.isPlaying),state}; window.__neonProof={...(window.__neonProof||{}),postPlayback:out}; return out;",
60
+ "script": "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const raw=api?.getPlaybackState?.()||api?.getSummary?.()||null; const trainer=raw?.trainer||raw||{}; const pre=window.__neonProof?.prePlayback||{}; const currentStep=Number(trainer.currentStep??-1); const preStep=Number(pre.currentStep??-1); const out={available:Boolean(api),isPlaying:Boolean(raw?.isPlaying),currentStep,preStep,selectedInstrument:trainer.selectedInstrument||null,movedForward:currentStep>preStep,state:raw}; window.__neonProof={...(window.__neonProof||{}),postPlayback:out}; return out;",
55
61
  "return_summary_fields": [
56
62
  {
57
63
  "path": "isPlaying"
58
64
  },
59
65
  {
60
- "path": "state.currentStep"
66
+ "path": "currentStep"
67
+ },
68
+ {
69
+ "path": "selectedInstrument"
61
70
  },
62
71
  {
63
- "path": "state.selectedInstrument"
72
+ "path": "movedForward"
64
73
  }
65
74
  ]
66
75
  },
@@ -70,6 +79,18 @@
70
79
  "expected_value": true,
71
80
  "timeout_ms": 10000
72
81
  },
82
+ {
83
+ "type": "assert_window_value",
84
+ "path": "__neonProof.postPlayback.isPlaying",
85
+ "expected_value": true,
86
+ "timeout_ms": 10000
87
+ },
88
+ {
89
+ "type": "assert_window_value",
90
+ "path": "__neonProof.postPlayback.movedForward",
91
+ "expected_value": true,
92
+ "timeout_ms": 10000
93
+ },
73
94
  {
74
95
  "type": "screenshot",
75
96
  "label": "neon-playback-sync",
@@ -114,7 +135,9 @@
114
135
  "required_receipts": [
115
136
  "pre-action playback state",
116
137
  "play button interaction",
117
- "post-action playback state",
138
+ "visible Stop state after interaction",
139
+ "post-action playback state is playing",
140
+ "post-action trainer step moved forward",
118
141
  "screenshot after interaction"
119
142
  ],
120
143
  "does_not_prove": [