@peter.naydenov/cuts 2.0.3 → 2.1.1

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.
Files changed (96) hide show
  1. package/.graphify_uncached.txt +1 -0
  2. package/.opencode/plugins/graphify.js +22 -0
  3. package/AGENTS.md +8 -0
  4. package/Changelog.md +10 -0
  5. package/README.md +154 -1
  6. package/dist/cuts.umd.js +1 -1
  7. package/graphify-out/.graphify_labels.json +56 -0
  8. package/graphify-out/.graphify_python +1 -0
  9. package/graphify-out/.graphify_root +1 -0
  10. package/graphify-out/GRAPH_REPORT.md +177 -0
  11. package/graphify-out/cache/012d3294918720b55e6b92b199990cfc018241eea880e1f6e6a0724aa6e1f17f.json +1 -0
  12. package/graphify-out/cache/01cec5959c65918486350dcf1673e6e3fc496e3f888d6872533927da64581a04.json +1 -0
  13. package/graphify-out/cache/0940319c089ade1ec8424e8d1a54cb8b4d8b5398da48bbb44dd68cefe9d33c00.json +1 -0
  14. package/graphify-out/cache/0da80b47b352499ba03cd5dee2fc281a98f09a19480e622d15faf49157df074b.json +1 -0
  15. package/graphify-out/cache/0e905bdb9bcd5a94e8d4f53d8c3a5c074283166b302d39436dbb245f2ec35e70.json +1 -0
  16. package/graphify-out/cache/0fa5cad2f351dcaa7d35b48576dee7f9ac9c5cc4b394b1f0deaff8a180e3c451.json +1 -0
  17. package/graphify-out/cache/10aa1439c5bfd598b80d729e5ba3b6cfdb58bd2b359f420c292aafc8c035a02d.json +1 -0
  18. package/graphify-out/cache/131c1daae8abc86c8218622f56273af8b1b9f9fa4aec2998ef825bca0f62913d.json +1 -0
  19. package/graphify-out/cache/17e5f2beac577cb4a9318ab14e559216c17efa10b9066767965970dbb5303aa8.json +1 -0
  20. package/graphify-out/cache/1e04390c6e1cff4babe570ffb9ca69c7dc48aedbd5a590844ad0306870c384a4.json +1 -0
  21. package/graphify-out/cache/240c8091236475ff2ee2cf2f9f9f6e80be1616c8f608aec6f0bd7df848581adc.json +1 -0
  22. package/graphify-out/cache/24418a06ce214a93595cb57c1a4c951b233e7e8fdc47122e2ba02935970a7266.json +1 -0
  23. package/graphify-out/cache/2675052ddc9cfa31333f6810c81eb9cfac04a6a627bd897a68963adcfb6a8c08.json +1 -0
  24. package/graphify-out/cache/309a7e48db971f382ade80198bb1fc2afaa016a36a2a7cfcb2a8538d79061530.json +1 -0
  25. package/graphify-out/cache/323e2198675ff4fba301afb26c3b188db91039aed029d2b3c4afd659ce75ca92.json +1 -0
  26. package/graphify-out/cache/3493a990cec8e577d0da3de4a54229b649a63400a4023ca1911c082309e27e7b.json +1 -0
  27. package/graphify-out/cache/35745072ea817929ae9707d52b4601e63a15233d033c67575cd13f4fef4a6374.json +1 -0
  28. package/graphify-out/cache/3bb336d107d9e0f7243aaf6249f4218da2af6734736192633943f0fabe04bd11.json +1 -0
  29. package/graphify-out/cache/4182a1dd2fcfa44f6ccc7615259fc5288fc1c5f23b6e41dd1d31acaad9d9672a.json +1 -0
  30. package/graphify-out/cache/4b1b786ba42a5f31760aacecaec23d8a430fdc7054d9fc94aeda68e1a814a37b.json +1 -0
  31. package/graphify-out/cache/53400873bbb9d220df1cd34714577c750185538ca2f43ce726c7e9d2064d9890.json +1 -0
  32. package/graphify-out/cache/5552036f9715ed1c0e0793131c919739e887f413ef8979efd8dac0d347d26a92.json +1 -0
  33. package/graphify-out/cache/55f4ffb8c1f3a0a68dd78016df9e1309f481b5942b468abab7f567fc8aa0f2ab.json +1 -0
  34. package/graphify-out/cache/570424b2534780740fec1c08d7435bb228af7705e3f6e9fa28ee087a6092c916.json +1 -0
  35. package/graphify-out/cache/573b92c02548ab00fcf9351dfa2c6fe7f401acca2b9315133edc7453e82a25bb.json +1 -0
  36. package/graphify-out/cache/57c611c887a762e47fff496f1438e35bff2794807b327ace69dc40b4b5126f6c.json +1 -0
  37. package/graphify-out/cache/682fea1576e6f89f0bbeecab480fdf3a3a15649f6f41b1af6db758248b4669a1.json +1 -0
  38. package/graphify-out/cache/6ca8a0aa9022e68f010ca8ece5ee0c5ba9616d31aa1716634bcb61fd7c03baf0.json +1 -0
  39. package/graphify-out/cache/7098a2a328c738b93faea79761188f18a8c8daaf530a590df89f1e3f6ecce7ed.json +1 -0
  40. package/graphify-out/cache/782b5a020c37aa0cc0163a21d32ea7af9a9677dbbf267a6c109aa9a919e5d79d.json +1 -0
  41. package/graphify-out/cache/8771f4d3ccb4ae55a13a2d1a452626e0dadb16a146ef0839dd963e42b3decfa2.json +1 -0
  42. package/graphify-out/cache/93fdbd9b92d3928bec4b31972bc7f458551868ce10157e68b624addbc310e45e.json +1 -0
  43. package/graphify-out/cache/941ca37c98b5c5e4224d8f28c98d82164fb9e047f551122ed9dd1e172c9ca210.json +1 -0
  44. package/graphify-out/cache/9603602b27e8453e47faac0e540e17de9e2473d716d2c1399b860d1ede74e649.json +1 -0
  45. package/graphify-out/cache/965a31d7d62cd7f81146f1c4c39b37535a7b0c720a800856477250781254fc23.json +1 -0
  46. package/graphify-out/cache/9a192662abf3d936dfc83c16bf18d6a46ac2ce3f16fb493050178eafcf640326.json +1 -0
  47. package/graphify-out/cache/9a4c098d43c0f0ec653bdfd3b68a482376fdd3a25c31c6b92bb92d8a49ed4de7.json +1 -0
  48. package/graphify-out/cache/9aec2f693fa17698f1d16683fff1947eab153d1fd788ee25ec4d06f6ba0b8171.json +1 -0
  49. package/graphify-out/cache/9daaa95737c689bd88ed99b880c7b4add83dfffa17ad6431aade0e8037946ce1.json +1 -0
  50. package/graphify-out/cache/a12981414bb5c59b6e9ad87b36cb4eb9c1e9b49cb7446ecb2789ab4496d1d4b3.json +1 -0
  51. package/graphify-out/cache/aa9a32d2538270661b9f591dec199134eb51488f103325c93e8eeb29f6088307.json +1 -0
  52. package/graphify-out/cache/ae75925bf4fc6a110fa7af9a0a8b20da642d6e61b8ac079b9a843c2e7848d2bf.json +1 -0
  53. package/graphify-out/cache/ast/v0.8.39/043be2e32281a59e2bacb95418b95816b558a290aa581434b22666fb9a6a3a6c.json +1 -0
  54. package/graphify-out/cache/ast/v0.8.39/151934b5e716a5f1d14f4954ebca16c64f767c94ea65182896565a0a845a99d8.json +1 -0
  55. package/graphify-out/cache/ast/v0.8.39/2b64175ef58c779348b9f3b1bc212093f30455a8c3b30e90ec66bc0c83893a17.json +1 -0
  56. package/graphify-out/cache/ast/v0.8.39/93e3201ab0f7055efb1bd85240bdae46fcc21d36089825bafeb9ba97e082b25d.json +1 -0
  57. package/graphify-out/cache/ast/v0.8.39/a54f836214535c9d3ff5d4ba866f261748789984734e148a99dff099f0977cd4.json +1 -0
  58. package/graphify-out/cache/ast/v0.8.39/ac32180db1477eed72583ce9d06051d06eb0336e02b1894789b5a039392b7255.json +1 -0
  59. package/graphify-out/cache/ast/v0.8.39/b3a576733a49496a7d162b3a08710f6ca29fd2678532e9406755046f6250acb9.json +1 -0
  60. package/graphify-out/cache/ast/v0.8.39/c2b57052ba235afaf3195c026546eabbe2ab6274aa24bc3e4481f92904fe6a9d.json +1 -0
  61. package/graphify-out/cache/b0e7e88b335107d2ebb72524803d5575fc84eeb6c065e5c8dce8e659f59b14ce.json +1 -0
  62. package/graphify-out/cache/b5bad0c1d525f2d57687ff82e3f52644140625f0bb9a91e2a40bb94f172295ba.json +1 -0
  63. package/graphify-out/cache/bb9cde14b37ae2b22720974339bda8c8698f8db8e03ae108fc4e0a1b175a5799.json +1 -0
  64. package/graphify-out/cache/bfb8682a587eb2a75f2de9a6cb68eea52c6791ce763ed9fd370e4186f2ca964d.json +1 -0
  65. package/graphify-out/cache/c0e0ab86119b69a71d7c07134e3259961c112ac293d1c1976ebdaa975c6634a1.json +1 -0
  66. package/graphify-out/cache/cbd4d1c99376a1a9cbac38a927bc9bab92bdf6715ca31f99388b02ccab3accc1.json +1 -0
  67. package/graphify-out/cache/df569c88c4ba775eea79ac5596fe3b70345f3ee7a53459d865e196e0e807d966.json +1 -0
  68. package/graphify-out/cache/f6feb53a375f42d12de35e3a7d29cc2f3263f9fca0eff30b5f0ea2dd50a4bc7f.json +1 -0
  69. package/graphify-out/cache/ffc7c58210d00973bed4dc58e0d97fe862129d2dfeba3a60ea643bcb5ae6757f.json +1 -0
  70. package/graphify-out/cache/stat-index.json +1 -0
  71. package/graphify-out/cost.json +12 -0
  72. package/graphify-out/graph.html +307 -0
  73. package/graphify-out/graph.json +5460 -0
  74. package/graphify-out/manifest.json +302 -0
  75. package/opencode.json +6 -0
  76. package/package.json +17 -13
  77. package/types/findInstructions.d.ts +1 -1
  78. package/types/findInstructions.d.ts.map +1 -1
  79. package/types/main.d.ts +76 -12
  80. package/types/main.d.ts.map +1 -1
  81. package/types/methods/hide.d.ts +1 -1
  82. package/types/methods/hide.d.ts.map +1 -1
  83. package/types/methods/jump.d.ts +1 -1
  84. package/types/methods/jump.d.ts.map +1 -1
  85. package/types/methods/jumpBack.d.ts +2 -2
  86. package/types/methods/jumpBack.d.ts.map +1 -1
  87. package/types/methods/jumpsReset.d.ts +1 -1
  88. package/types/methods/jumpsReset.d.ts.map +1 -1
  89. package/types/methods/listShortcuts.d.ts +1 -1
  90. package/types/methods/listShortcuts.d.ts.map +1 -1
  91. package/types/methods/setScenes.d.ts +11 -17
  92. package/types/methods/setScenes.d.ts.map +1 -1
  93. package/types/methods/show.d.ts +2 -2
  94. package/types/methods/show.d.ts.map +1 -1
  95. package/types/setInstruction.d.ts +1 -1
  96. package/types/setInstruction.d.ts.map +1 -1
@@ -0,0 +1,302 @@
1
+ {
2
+ "playwright.config.js": {
3
+ "mtime": 1775747587.7230244,
4
+ "ast_hash": "1255e970a054cb38e73ac2af9d25c432",
5
+ "semantic_hash": ""
6
+ },
7
+ "vite.config.js": {
8
+ "mtime": 1775747005.1079392,
9
+ "ast_hash": "123229270d8c2e1864a8ef32eb6d6924",
10
+ "semantic_hash": ""
11
+ },
12
+ "vitest.config.js": {
13
+ "mtime": 1775749596.644355,
14
+ "ast_hash": "d4416e1518a185ef9968179ebd653cbb",
15
+ "semantic_hash": ""
16
+ },
17
+ "main.js": {
18
+ "mtime": 1702928911.6192012,
19
+ "ast_hash": "cc93cd8fa4102761e9a2e77b10ea47a3",
20
+ "semantic_hash": ""
21
+ },
22
+ "rollup.config.js": {
23
+ "mtime": 1715186404.1361377,
24
+ "ast_hash": "cc94eb190cb2b90e8dbf35dccddba6f7",
25
+ "semantic_hash": ""
26
+ },
27
+ "types/findInstructions.d.ts": {
28
+ "mtime": 1783542739.3061938,
29
+ "ast_hash": "98a75d2c0b05b7afdbea430a1590557b",
30
+ "semantic_hash": ""
31
+ },
32
+ "types/main.d.ts": {
33
+ "mtime": 1783542739.3057697,
34
+ "ast_hash": "40be7f4637f1868f8e022c637f46b916",
35
+ "semantic_hash": ""
36
+ },
37
+ "types/setInstruction.d.ts": {
38
+ "mtime": 1783542739.3050709,
39
+ "ast_hash": "320eecb32d022a084b0c682d576cc86e",
40
+ "semantic_hash": ""
41
+ },
42
+ "types/methods/hide.d.ts": {
43
+ "mtime": 1783542739.30511,
44
+ "ast_hash": "1f5fd4a88ec385fdfd9ed4cd99dc77f2",
45
+ "semantic_hash": ""
46
+ },
47
+ "types/methods/jumpsReset.d.ts": {
48
+ "mtime": 1783542739.3050199,
49
+ "ast_hash": "5f915e1ed57047066eb23bce1246a4fa",
50
+ "semantic_hash": ""
51
+ },
52
+ "types/methods/jump.d.ts": {
53
+ "mtime": 1783542739.3050845,
54
+ "ast_hash": "e8150e61f44db4d8dfcb1bb200663ad8",
55
+ "semantic_hash": ""
56
+ },
57
+ "types/methods/listShortcuts.d.ts": {
58
+ "mtime": 1783542739.304983,
59
+ "ast_hash": "9a994d0a00c5146770124e3b1d27b385",
60
+ "semantic_hash": ""
61
+ },
62
+ "types/methods/jumpBack.d.ts": {
63
+ "mtime": 1783542739.3051302,
64
+ "ast_hash": "f12d0743eba6e7024e1ac59b6978b0f3",
65
+ "semantic_hash": ""
66
+ },
67
+ "types/methods/index.d.ts": {
68
+ "mtime": 1734032993.8985457,
69
+ "ast_hash": "efaa8e9c9544d3e6e35775b93eda835e",
70
+ "semantic_hash": ""
71
+ },
72
+ "types/methods/show.d.ts": {
73
+ "mtime": 1783542739.3058105,
74
+ "ast_hash": "b17ebeef974e4e9e67ad63477e2dbe07",
75
+ "semantic_hash": ""
76
+ },
77
+ "types/methods/setScenes.d.ts": {
78
+ "mtime": 1783542739.3051052,
79
+ "ast_hash": "f02ee78e8bf2039c0d70027432dad653",
80
+ "semantic_hash": ""
81
+ },
82
+ "types/src/findInstructions.d.ts": {
83
+ "mtime": 1774331028.2620726,
84
+ "ast_hash": "7e6c6681490eb78b61fba265d254bf8b",
85
+ "semantic_hash": ""
86
+ },
87
+ "types/src/main.d.ts": {
88
+ "mtime": 1774331028.2866547,
89
+ "ast_hash": "4636f053d4be7f40dbbd36b943b3e6a2",
90
+ "semantic_hash": ""
91
+ },
92
+ "types/src/setInstruction.d.ts": {
93
+ "mtime": 1774331028.2635846,
94
+ "ast_hash": "dfdd8df7409736f6d6ab16ce75275786",
95
+ "semantic_hash": ""
96
+ },
97
+ "types/src/methods/hide.d.ts": {
98
+ "mtime": 1774331028.2649617,
99
+ "ast_hash": "4d2c8131db9d91cdcdb1fd21296639b7",
100
+ "semantic_hash": ""
101
+ },
102
+ "types/src/methods/jumpsReset.d.ts": {
103
+ "mtime": 1774331028.2733746,
104
+ "ast_hash": "68de7cbee36bbda74d5a751fcafa7449",
105
+ "semantic_hash": ""
106
+ },
107
+ "types/src/methods/jump.d.ts": {
108
+ "mtime": 1774331028.2712362,
109
+ "ast_hash": "f01c13b561194ea9a96065752e7c9f2a",
110
+ "semantic_hash": ""
111
+ },
112
+ "types/src/methods/listShortcuts.d.ts": {
113
+ "mtime": 1774331028.2657318,
114
+ "ast_hash": "b6123139eb545a56ba5182511dabf484",
115
+ "semantic_hash": ""
116
+ },
117
+ "types/src/methods/jumpBack.d.ts": {
118
+ "mtime": 1774331028.272342,
119
+ "ast_hash": "8223b9c9142689849a1e6f0276464729",
120
+ "semantic_hash": ""
121
+ },
122
+ "types/src/methods/show.d.ts": {
123
+ "mtime": 1774331028.2705016,
124
+ "ast_hash": "a1b7c91cfd5bcc35876eb793ef16c92d",
125
+ "semantic_hash": ""
126
+ },
127
+ "types/src/methods/setScenes.d.ts": {
128
+ "mtime": 1774331028.2690504,
129
+ "ast_hash": "46a38dcab8e723ada98d444a9229c679",
130
+ "semantic_hash": ""
131
+ },
132
+ "test/01-findPosition.test.js": {
133
+ "mtime": 1762684004.7208605,
134
+ "ast_hash": "c385c0cba0d70a503073a6dce9b14567",
135
+ "semantic_hash": ""
136
+ },
137
+ "test/02-cuts.test.js": {
138
+ "mtime": 1762683999.2773185,
139
+ "ast_hash": "f77c842c4efd8a19d19c697be8ef64d3",
140
+ "semantic_hash": ""
141
+ },
142
+ "test-e2e/vite.config.js": {
143
+ "mtime": 1775747576.199647,
144
+ "ast_hash": "2c038512ea00a76b2a6c70b48f3c1895",
145
+ "semantic_hash": ""
146
+ },
147
+ "test-e2e/01-general.test.js": {
148
+ "mtime": 1775748664.7938879,
149
+ "ast_hash": "756bc0b1b3bdaed16406ce6aebf70dd1",
150
+ "semantic_hash": ""
151
+ },
152
+ "coverage/lcov-report/block-navigation.js": {
153
+ "mtime": 1775749651.7539763,
154
+ "ast_hash": "",
155
+ "semantic_hash": ""
156
+ },
157
+ "coverage/lcov-report/prettify.js": {
158
+ "mtime": 1775749651.7545831,
159
+ "ast_hash": "",
160
+ "semantic_hash": ""
161
+ },
162
+ "coverage/lcov-report/sorter.js": {
163
+ "mtime": 1775749651.7543092,
164
+ "ast_hash": "",
165
+ "semantic_hash": ""
166
+ },
167
+ "src/main.js": {
168
+ "mtime": 1762682459.954932,
169
+ "ast_hash": "3a75eb6e5df7c5db478c920694278b8d",
170
+ "semantic_hash": ""
171
+ },
172
+ "src/findInstructions.js": {
173
+ "mtime": 1761203709.521908,
174
+ "ast_hash": "7b8eb9645663150b2aec77052849bcf4",
175
+ "semantic_hash": ""
176
+ },
177
+ "src/setInstruction.js": {
178
+ "mtime": 1761165393.1722348,
179
+ "ast_hash": "fa6217e5d265d1a7ba291d5ac8d963a1",
180
+ "semantic_hash": ""
181
+ },
182
+ "src/methods/listShortcuts.js": {
183
+ "mtime": 1734775137.1596165,
184
+ "ast_hash": "e712a6c59532853de31505444108c58b",
185
+ "semantic_hash": ""
186
+ },
187
+ "src/methods/jumpsReset.js": {
188
+ "mtime": 1760945941.3071249,
189
+ "ast_hash": "cee32469cac4c97e90a4c9015c34c2bb",
190
+ "semantic_hash": ""
191
+ },
192
+ "src/methods/jump.js": {
193
+ "mtime": 1760945931.6560884,
194
+ "ast_hash": "3af4e4f4d73ca19c34acce4c2947c338",
195
+ "semantic_hash": ""
196
+ },
197
+ "src/methods/show.js": {
198
+ "mtime": 1761214660.90501,
199
+ "ast_hash": "ddfde4756f0358a1f3602816b4b32ac7",
200
+ "semantic_hash": ""
201
+ },
202
+ "src/methods/jumpBack.js": {
203
+ "mtime": 1760945937.0249515,
204
+ "ast_hash": "b217605e4f72ca3571665f941cb50547",
205
+ "semantic_hash": ""
206
+ },
207
+ "src/methods/setScenes.js": {
208
+ "mtime": 1761219590.2996268,
209
+ "ast_hash": "7d477001ad2705910ad1c69f476341eb",
210
+ "semantic_hash": ""
211
+ },
212
+ "src/methods/hide.js": {
213
+ "mtime": 1761195475.0249836,
214
+ "ast_hash": "d147619de7988e3484d0d29dc7996293",
215
+ "semantic_hash": ""
216
+ },
217
+ "Changelog.md": {
218
+ "mtime": 1783542720.7995958,
219
+ "ast_hash": "a51efaeb02a5e219b8cc71dce39f58d2",
220
+ "semantic_hash": ""
221
+ },
222
+ "Migration.guide.md": {
223
+ "mtime": 1762682470.1813977,
224
+ "ast_hash": "b1341dfc2e732b6ca3d8d56c62bc1939",
225
+ "semantic_hash": ""
226
+ },
227
+ "README.md": {
228
+ "mtime": 1780838155.3072953,
229
+ "ast_hash": "4160c58f17f75910bfd62f8a6d0c95a0",
230
+ "semantic_hash": ""
231
+ },
232
+ "AGENTS.md": {
233
+ "mtime": 1780688618.8972664,
234
+ "ast_hash": "31e0358c19f45d8f8354305cd71a126a",
235
+ "semantic_hash": ""
236
+ },
237
+ "cuts.png": {
238
+ "mtime": 1762812566.1244016,
239
+ "ast_hash": "0b6d4f225efdb6c122ee41868cb15b53",
240
+ "semantic_hash": ""
241
+ },
242
+ "coverage/lcov-report/favicon.png": {
243
+ "mtime": 1775749651.7540824,
244
+ "ast_hash": "",
245
+ "semantic_hash": ""
246
+ },
247
+ "coverage/lcov-report/sort-arrow-sprite.png": {
248
+ "mtime": 1775749651.7541811,
249
+ "ast_hash": "",
250
+ "semantic_hash": ""
251
+ },
252
+ "package.json": {
253
+ "mtime": 1783542735.9145458,
254
+ "ast_hash": "4b7a0d8d1cd480bbcfe7b85172cb551f",
255
+ "semantic_hash": ""
256
+ },
257
+ "test-e2e/blue.vue": {
258
+ "mtime": 1702928911.621158,
259
+ "ast_hash": "e827023682d04a76cf3f07bbae57d09b",
260
+ "semantic_hash": ""
261
+ },
262
+ "test-e2e/dummy.vue": {
263
+ "mtime": 1702928911.6212878,
264
+ "ast_hash": "8a44cbc803e94b4834ac4f494ab239be",
265
+ "semantic_hash": ""
266
+ },
267
+ "test-e2e/gray.vue": {
268
+ "mtime": 1702928911.6213918,
269
+ "ast_hash": "4a4370b7d776611134903d6db66c2da1",
270
+ "semantic_hash": ""
271
+ },
272
+ "test-e2e/package.json": {
273
+ "mtime": 1775747107.5161173,
274
+ "ast_hash": "bed21e7025c16867b7176fe9fa25e4c8",
275
+ "semantic_hash": ""
276
+ },
277
+ "test-e2e/red.vue": {
278
+ "mtime": 1702928911.6214666,
279
+ "ast_hash": "8ed0e85e11cf56daf12e0f83b31d0d7f",
280
+ "semantic_hash": ""
281
+ },
282
+ "test-results/.last-run.json": {
283
+ "mtime": 1775749625.6012325,
284
+ "ast_hash": "f196824657d8858bc7fa44eecbba38b1",
285
+ "semantic_hash": ""
286
+ },
287
+ "tsconfig.json": {
288
+ "mtime": 1774331190.6502898,
289
+ "ast_hash": "1701bad005eff9dbaee66c58e0ee1825",
290
+ "semantic_hash": ""
291
+ },
292
+ "index.html": {
293
+ "mtime": 1734778257.9280357,
294
+ "ast_hash": "615dec619c3f8ea625e9ab5d63e0171b",
295
+ "semantic_hash": ""
296
+ },
297
+ "test-e2e/index.html": {
298
+ "mtime": 1775749479.7263045,
299
+ "ast_hash": "5b44f88a65f0e46b8433cbc3944748bb",
300
+ "semantic_hash": ""
301
+ }
302
+ }
package/opencode.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://opencode.ai/config.json",
3
+ "plugin": [
4
+ ".opencode/plugins/graphify.js"
5
+ ]
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peter.naydenov/cuts",
3
3
  "description": "SPA scene manager",
4
- "version": "2.0.3",
4
+ "version": "2.1.1",
5
5
  "license": "MIT",
6
6
  "author": "Peter Naydenov",
7
7
  "main": "./src/main.js",
@@ -28,22 +28,22 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@peter.naydenov/visual-controller-for-vue3": "^2.3.1",
31
- "@playwright/test": "^1.59.1",
32
- "@rollup/plugin-commonjs": "^29.0.2",
31
+ "@playwright/test": "^1.61.1",
32
+ "@rollup/plugin-commonjs": "^29.0.3",
33
33
  "@rollup/plugin-node-resolve": "^16.0.3",
34
34
  "@rollup/plugin-terser": "^1.0.0",
35
- "@types/node": "^25.6.0",
36
- "@vitejs/plugin-vue": "^6.0.6",
37
- "@vitest/coverage-v8": "^4.1.5",
38
- "rollup": "^4.60.2",
39
- "typescript": "^6.0.3",
40
- "vite": "^8.0.10",
41
- "vitest": "^4.1.5",
42
- "vue": "^3.5.33"
35
+ "@types/node": "^26.1.1",
36
+ "@vitejs/plugin-vue": "^6.0.7",
37
+ "@vitest/coverage-v8": "^4.1.10",
38
+ "rollup": "^4.62.2",
39
+ "typescript": "^7.0.2",
40
+ "vite": "^8.1.3",
41
+ "vitest": "^4.1.10",
42
+ "vue": "^3.5.39"
43
43
  },
44
44
  "dependencies": {
45
45
  "@peter.naydenov/log": "^1.1.1",
46
- "@peter.naydenov/shortcuts": "^4.0.2",
46
+ "@peter.naydenov/shortcuts": "^4.1.1",
47
47
  "ask-for-promise": "^3.1.1"
48
48
  },
49
49
  "keywords": [
@@ -51,5 +51,9 @@
51
51
  "visual",
52
52
  "state",
53
53
  "manager"
54
- ]
54
+ ],
55
+ "allowScripts": {
56
+ "fsevents@2.3.3": true,
57
+ "fsevents@2.3.2": true
58
+ }
55
59
  }
@@ -1,4 +1,3 @@
1
- export default findInstructions;
2
1
  /**
3
2
  * @function findInstructions
4
3
  * @description Generator that yields instructions for transitioning between scenes
@@ -9,4 +8,5 @@ export default findInstructions;
9
8
  * @yields {Array.<string, 'show'|'hide'>} - instruction array with scene name and action
10
9
  */
11
10
  declare function findInstructions(currentName: string | null, currentParents: Array<string>, targetName: string, targetParents: Array<string>): Generator<string[], void, unknown>;
11
+ export default findInstructions;
12
12
  //# sourceMappingURL=findInstructions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"findInstructions.d.ts","sourceRoot":"","sources":["../src/findInstructions.js"],"names":[],"mappings":";AAGA;;;;;;;;GAQG;AACH,+CANW,MAAM,GAAC,IAAI,kBACX,KAAK,CAAE,MAAM,CAAC,cACd,MAAM,iBACN,KAAK,CAAE,MAAM,CAAC,sCAyExB"}
1
+ {"version":3,"file":"findInstructions.d.ts","sourceRoot":"","sources":["../src/findInstructions.js"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,iBAAU,gBAAgB,CAAG,WAAW,EAN7B,MAAM,GAAC,IAMsB,EAAE,cAAc,EAL7C,KAAK,CAAE,MAAM,CAKgC,EAAE,UAAU,EAJzD,MAIyD,EAAE,aAAa,EAHxE,KAAK,CAAE,MAAM,CAG2D,sCAsElF;eAIc,gBAAgB"}
package/types/main.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export default main;
2
1
  declare function main(cfg?: {
3
2
  logLevel: number;
4
3
  }): {
@@ -9,23 +8,88 @@ declare function main(cfg?: {
9
8
  scene: string;
10
9
  options?: {
11
10
  ssr: boolean;
12
- } | undefined;
11
+ };
13
12
  }, ...args?: any[]) => Promise<any>;
14
13
  jump: ({ scene }: {
15
14
  scene: string;
16
15
  }, ...args?: any[]) => Promise<any>;
17
16
  jumpBack: ({ hops }?: {
18
- hops?: number | undefined;
17
+ hops?: number;
19
18
  }, ...args?: any[]) => Promise<any> | undefined;
20
19
  jumpsReset: () => void;
21
- loadPlugins(plugins: Array<"Key" | "Click" | "Form" | "Hover" | "Scroll">): Promise<Function[]>;
22
- setDependencies(deps: any): void;
23
- getDependencies(): any;
24
- setNote(note: string): void;
25
- listScenes(): Array<string>;
26
- enablePlugin(plugin: Function, options?: any): void;
27
- disablePlugin(pluginName: string): void;
28
- getState(): Object;
29
- emit(event: string, ...args: any[]): void;
20
+ /**
21
+ * @typedef {'Key'|'Click'|'Form'|'Hover'|'Scroll' } pluginNames
22
+ * @description List of possible plugin names: 'Key', 'Click', 'Form', 'Hover', 'Scroll'
23
+ *
24
+ * Load a needed shortcut plugins - 'Key', 'Click', 'Form', 'Hover', 'Scroll' and so on.
25
+ * It's a async function. Don't forget to 'await' it.
26
+ * @function loadPlugins
27
+ * @param {Array.<pluginNames>} plugins - list of plugins to load
28
+ * @returns {Promise.<function[]>} - loaded plugins in a sequence
29
+ *
30
+ * @example
31
+ * // script is instance of cuts
32
+ * await script.loadPlugins ( ['Key', 'Click'] )
33
+ * .then ( plugins => plugins.forEach ( plugin => script.enablePlugin ( plugin ) ) )
34
+ */
35
+ loadPlugins: (plugins: Array<"Click" | "Form" | "Hover" | "Key" | "Scroll">) => Promise<Function[]>;
36
+ /**
37
+ * @function setDependencies
38
+ * @description Set dependencies for the Scenes
39
+ * @param {*} deps - dependencies objects
40
+ * @returns void
41
+ */
42
+ setDependencies: (deps: any) => void;
43
+ /**
44
+ * @function getDependencies
45
+ * @description Get dependencies for the Scenes
46
+ * @returns {*} - dependencies objects
47
+ */
48
+ getDependencies: () => any;
49
+ /**
50
+ * @function setNote
51
+ * @param {string} note - note, provided to action functions
52
+ * @returns void
53
+ */
54
+ setNote: (note: string) => void;
55
+ /**
56
+ * @function listScenes
57
+ * @description List all loaded Scene names
58
+ * @returns {Array.<string>} - list of scene names
59
+ */
60
+ listScenes: () => Array<string>;
61
+ /**
62
+ * @function enablePlugin
63
+ * @description Enable a shortcut plugin
64
+ * @param {function} plugin - plugin library
65
+ * @param {*} [options] - plugin options
66
+ * @returns void
67
+ */
68
+ enablePlugin: (plugin: Function, options?: any) => void;
69
+ /**
70
+ * Disable a shortcut plugin
71
+ * @function disablePlugin
72
+ * @param {string} pluginName - plugin name
73
+ * @returns void
74
+ */
75
+ disablePlugin: (pluginName: string) => void;
76
+ /**
77
+ * Get the current state of the application
78
+ * @function getState
79
+ * @returns {Object} with properties:
80
+ * - scene: current scene name
81
+ * - parents: current parent scene names
82
+ * - opened: boolean indicating if the application is opened
83
+ */
84
+ getState: () => Object;
85
+ /**
86
+ * @function emit
87
+ * @description Emit an event
88
+ * @param {string} event - event name
89
+ * @param {...*} args - Extra data to pass to the listeners
90
+ * @returns void
91
+ */
92
+ emit: (event: string, ...args: any[]) => void;
30
93
  };
94
+ export default main;
31
95
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":";AAsCA;;;;;;;;;;;;;;;;;;;yBA8CmB,KAAK,+CAAc,GACjB,OAAO,CAAE,UAAU,CAAC;0BAgBtB,GAAC;uBAQC,GAAC;kBAMH,MAAM;kBAQJ,KAAK,CAAE,MAAM,CAAC;6CAQhB,GAAC;8BAQD,MAAM;gBAQJ,MAAM;gBAeP,MAAM,WACH,GAAC,EAAA;EAKvB"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AAsCA,iBAAS,IAAI,CAAG,GAAG;IAAG,QAAQ;CAAG;;;;;;;;;;;;;;;;;IAuCzB;;;;;;;;;;;;;;OAcG;2BAPQ,KAAK,+CAAc,KACjB,OAAO,CAAE,UAAU,CAAC;IAajC;;;;;OAKG;4BAFQ,GAAC;IAKZ;;;;OAIG;2BADU,GAAC;IAId;;;;OAIG;oBAFQ,MAAM;IAKjB;;;;OAIG;sBADU,KAAK,CAAE,MAAM,CAAC;IAI3B;;;;;;OAMG;+CAFQ,GAAC;IAKZ;;;;;OAKG;gCAFQ,MAAM;IAKjB;;;;;;;OAOG;oBAJU,MAAM;IAYlB;;;;;;OAMG;kBAHQ,MAAM,WACH,GAAC,EAAA;EAKvB;eAIc,IAAI"}
@@ -1,3 +1,3 @@
1
- export default hide;
2
1
  declare function hide(dependencies: any, state: any): (endSteps?: number | string) => Promise<any>;
2
+ export default hide;
3
3
  //# sourceMappingURL=hide.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hide.d.ts","sourceRoot":"","sources":["../../src/methods/hide.js"],"names":[],"mappings":";AAIA,uDAOuB,WAHZ,MAAM,GAAC,MAGe,kBAmC/B"}
1
+ {"version":3,"file":"hide.d.ts","sourceRoot":"","sources":["../../src/methods/hide.js"],"names":[],"mappings":"AAIA,iBAAS,IAAI,CAAG,YAAY,KAAA,EAAE,KAAK,KAAA,eAIxB,MAAM,GAAC,MAAM,kBAsCtB;eAIa,IAAI"}
@@ -1,5 +1,5 @@
1
- export default jump;
2
1
  declare function jump(state: any, show: any): ({ scene }: {
3
2
  scene: string;
4
3
  }, ...args?: any[]) => Promise<any>;
4
+ export default jump;
5
5
  //# sourceMappingURL=jump.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jump.d.ts","sourceRoot":"","sources":["../../src/methods/jump.js"],"names":[],"mappings":";AAAA,0DAKO;IAAwB,KAAK,EAArB,MAAM;CACd,mCAQN"}
1
+ {"version":3,"file":"jump.d.ts","sourceRoot":"","sources":["../../src/methods/jump.js"],"names":[],"mappings":"AAAA,iBAAS,IAAI,CAAG,KAAK,KAAA,EAAE,IAAI,KAAA,eAKpB;IAAwB,KAAK,EAArB,MAAM,CACd;CAAA,mCAQN;eAIc,IAAI"}
@@ -1,5 +1,5 @@
1
- export default jumpBack;
2
1
  declare function jumpBack(state: any, show: any): ({ hops }?: {
3
- hops?: number | undefined;
2
+ hops?: number;
4
3
  }, ...args?: any[]) => Promise<any> | undefined;
4
+ export default jumpBack;
5
5
  //# sourceMappingURL=jumpBack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jumpBack.d.ts","sourceRoot":"","sources":["../../src/methods/jumpBack.js"],"names":[],"mappings":";AAAA,8DAKO;IAAyB,IAAI;CAC7B,sBACU,eAAQ,SAAS,CAWjC"}
1
+ {"version":3,"file":"jumpBack.d.ts","sourceRoot":"","sources":["../../src/methods/jumpBack.js"],"names":[],"mappings":"AAAA,iBAAS,QAAQ,CAAG,KAAK,KAAA,EAAE,IAAI,KAAA,eAKxB;IAAyB,IAAI,AAA7B,CACA,EADQ,MAAM,CACd;CAAA,sBACU,eAAQ,SAAS,CAWjC;eAGc,QAAQ"}
@@ -1,3 +1,3 @@
1
- export default jumpsReset;
2
1
  declare function jumpsReset(state: any): () => void;
2
+ export default jumpsReset;
3
3
  //# sourceMappingURL=jumpsReset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jumpsReset.d.ts","sourceRoot":"","sources":["../../src/methods/jumpsReset.js"],"names":[],"mappings":";AAAA,+CAIiB,IAAI,CAKpB"}
1
+ {"version":3,"file":"jumpsReset.d.ts","sourceRoot":"","sources":["../../src/methods/jumpsReset.js"],"names":[],"mappings":"AAAA,iBAAS,UAAU,CAAG,KAAK,KAAA,SAIV,IAAI,CAKpB;eAIc,UAAU"}
@@ -1,3 +1,3 @@
1
- export default listShortcuts;
2
1
  declare function listShortcuts(dependencies: any, state: any): (sceneName: string) => (Array<string> | null);
2
+ export default listShortcuts;
3
3
  //# sourceMappingURL=listShortcuts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listShortcuts.d.ts","sourceRoot":"","sources":["../../src/methods/listShortcuts.js"],"names":[],"mappings":";AAEA,gEAOgC,WAHrB,MAG8B,KAF5B,CAAC,KAAK,CAAE,MAAM,CAAC,GAAC,IAAI,CAAC,CAOhC"}
1
+ {"version":3,"file":"listShortcuts.d.ts","sourceRoot":"","sources":["../../src/methods/listShortcuts.js"],"names":[],"mappings":"AAEA,iBAAS,aAAa,CAAG,YAAY,KAAA,EAAE,KAAK,KAAA,eAIjC,MAAM,KACJ,CAAC,KAAK,CAAE,MAAM,CAAC,GAAC,IAAI,CAAC,CAOhC;eAIa,aAAa"}
@@ -1,4 +1,3 @@
1
- export default setScenes;
2
1
  export type AskObject = {
3
2
  /**
4
3
  * - Mark the task as done
@@ -7,35 +6,29 @@ export type AskObject = {
7
6
  };
8
7
  export type SceneObject = {
9
8
  /**
10
- * - load interface and prerequisites for the scene;
9
+ * ({task: AskObject, dependencies: *}): void} show - load interface and prerequisites for the scene;
11
10
  */
12
- show: (arg0: {
13
- task: AskObject;
14
- dependencies: any;
15
- }) => void;
11
+ : Function;
16
12
  /**
17
- * - run after scene is loaded. Optional. Returns true to continue loading, false to cancel;
13
+ * ():boolean} [afterShow] - run after scene is loaded. Optional. Returns true to continue loading, false to cancel;
18
14
  */
19
- afterShow?: (() => boolean) | undefined;
15
+ : Function;
20
16
  /**
21
- * - Reverse the settings from 'show';
17
+ * ({task: AskObject, dependencies: *}): void} hide - Reverse the settings from 'show';
22
18
  */
23
- hide: (arg0: {
24
- task: AskObject;
25
- dependencies: any;
26
- }) => void;
19
+ : Function;
27
20
  /**
28
- * - Run before scene is hidden. Optional;
21
+ * ():void} [beforeHide] - Run before scene is hidden. Optional;
29
22
  */
30
- beforeHide?: (() => void) | undefined;
23
+ : Function;
31
24
  /**
32
25
  * - list of parent scene names.
33
26
  */
34
- parents?: string[] | undefined;
27
+ parents?: Array<string>;
35
28
  /**
36
29
  * - shortcut descriptions
37
30
  */
38
- "": any;
31
+ : any;
39
32
  };
40
33
  export type sceneDescription = {
41
34
  /**
@@ -66,4 +59,5 @@ export type sceneDescription = {
66
59
  * @property {SceneObject} scene - object should contain 'show' and 'hide' + shortcuts and action functions
67
60
  */
68
61
  declare function setScenes(dependencies: any, state: any): (list: sceneDescription[]) => void;
62
+ export default setScenes;
69
63
  //# sourceMappingURL=setScenes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setScenes.d.ts","sourceRoot":"","sources":["../../src/methods/setScenes.js"],"names":[],"mappings":";;;;;;;;;;;UASc,CAAS,IAAkC,EAAlC;QAAC,IAAI,EAAE,SAAS,CAAC;QAAC,YAAY,EAAE,GAAC,CAAA;KAAC,KAAG,IAAI;;;;uBACvC,OAAO;;;;UAClB,CAAS,IAAkC,EAAlC;QAAC,IAAI,EAAE,SAAS,CAAC;QAAC,YAAY,EAAE,GAAC,CAAA;KAAC,KAAG,IAAI;;;;wBACvC,IAAI;;;;;;;;QAEf,GAAC;;;;;;UAOD,MAAM;;;;WACN,WAAW;;AAnBzB;;;GAGG;AACH;;;;;;;;GAQG;AAIH;;;;GAIG;AAKH,4DAOgC,MAJhB,gBAAgB,EAII,UAkClC"}
1
+ {"version":3,"file":"setScenes.d.ts","sourceRoot":"","sources":["../../src/methods/setScenes.js"],"names":[],"mappings":"AAIG,YAAkB,SAAS,GAC3B;;;;IAAqB,IAAI,WAC3B;CAAA,CAAA;AAEE,YAAkB,WAAW,GAC7B;;;;IAAmB,WACnB;;;;IAAmB,WACnB;;;;IAAmB,WACnB;;;;IAAmB,WACnB;;;;IAA4B,OAAO,AAAnC,CACA,EADW,KAAK,CAAE,MAAM,CAAC,CACzB;;;;IAAkB,AAAD,EAAN,GAAC,CACd;CAAA,CAAA;AAKE,YAAkB,gBAAgB,GAClC;;;;IAAmB,IAAI,EAAZ,MAAM,CACjB;;;;IAAwB,KAAK,EAAlB,WAAW,CACxB;CAAA,CAAA;AApBD;;;GAGG;AACH;;;;;;;;GAQG;AAIH;;;;GAIG;AAKH,iBAAS,SAAS,CAAG,YAAY,KAAA,EAAE,KAAK,KAAA,UAGxB,gBAAgB,EAAE,UAsChC;eAIa,SAAS"}
@@ -1,8 +1,8 @@
1
- export default show;
2
1
  declare function show(dependencies: any, state: any): ({ scene: requestedScene, options }: {
3
2
  scene: string;
4
3
  options?: {
5
4
  ssr: boolean;
6
- } | undefined;
5
+ };
7
6
  }, ...args?: any[]) => Promise<any>;
7
+ export default show;
8
8
  //# sourceMappingURL=show.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../src/methods/show.js"],"names":[],"mappings":";AAIA,2FAKG;IAAwB,KAAK,EAArB,MAAM;IACW,OAAO;aACxB,OAAO;;CACf,mCA4GF"}
1
+ {"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../src/methods/show.js"],"names":[],"mappings":"AAIA,iBAAS,IAAI,CAAG,YAAY,KAAA,EAAE,KAAK,KAAA,wCAKhC;IAAwB,KAAK,EAArB,MAAM,CACd;IAAyB,OAAO,AAAhC,CAEA,EADA;QAAiC,GAAG,EAA5B,OAAO,CACf;KAAA,CAAA;CAAA,mCA4GF;eAIc,IAAI"}
@@ -1,3 +1,3 @@
1
- export default setInstruction;
2
1
  declare function setInstruction(dependencies: any): (fn: Function, ...args: any[]) => Function;
2
+ export default setInstruction;
3
3
  //# sourceMappingURL=setInstruction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setInstruction.d.ts","sourceRoot":"","sources":["../src/setInstruction.js"],"names":[],"mappings":";AAEA,qDAQiC,YAAE,EAAE,GAAG,MAHtB,GAAC,EAGyB,cAO1C"}
1
+ {"version":3,"file":"setInstruction.d.ts","sourceRoot":"","sources":["../src/setInstruction.js"],"names":[],"mappings":"AAEA,iBAAS,cAAc,CAAG,YAAY,KAAA,2BAKpB,GAAC,EAAA,cAUjB;eAIa,cAAc"}