agex 0.2.6 → 0.2.7

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 (48) hide show
  1. package/dist/cli.js +588 -19
  2. package/dist/index.js +16 -6
  3. package/package.json +10 -5
  4. package/assets/assets/assets/cursor.js +0 -192
  5. package/assets/assets/assets/effects.js +0 -1586
  6. package/assets/scripts/scripts/ab-close-disabled.sh +0 -5
  7. package/assets/scripts/scripts/ab-close.sh +0 -130
  8. package/assets/scripts/scripts/ab-fx.sh +0 -3
  9. package/assets/scripts/scripts/ab-move.sh +0 -19
  10. package/assets/scripts/scripts/ab-not-found.sh +0 -33
  11. package/assets/scripts/scripts/ab-open.sh +0 -17
  12. package/assets/scripts/scripts/ab-proof.sh +0 -126
  13. package/assets/scripts/scripts/ab-record-disabled.sh +0 -3
  14. package/assets/scripts/scripts/ab-record-start-disabled.sh +0 -2
  15. package/assets/scripts/scripts/ab-record-start.sh +0 -18
  16. package/assets/scripts/scripts/ab-record-stop-disabled.sh +0 -2
  17. package/assets/scripts/scripts/ab-record-stop.sh +0 -5
  18. package/assets/scripts/scripts/ab-record.sh +0 -43
  19. package/assets/scripts/scripts/ab-screenshot.sh +0 -9
  20. package/assets/scripts/scripts/agent-browser-wrapper.sh +0 -6
  21. package/assets/scripts/scripts/fx-annotation.sh +0 -13
  22. package/assets/scripts/scripts/fx-arrow.sh +0 -12
  23. package/assets/scripts/scripts/fx-circle.sh +0 -13
  24. package/assets/scripts/scripts/fx-clear.sh +0 -3
  25. package/assets/scripts/scripts/fx-highlight.sh +0 -32
  26. package/assets/scripts/scripts/fx-spotlight.sh +0 -13
  27. package/assets/scripts/scripts/fx-title.sh +0 -11
  28. package/assets/scripts/scripts/fx-wait.sh +0 -3
  29. package/dist/cli.d.ts +0 -6
  30. package/dist/cli.d.ts.map +0 -1
  31. package/dist/cli.js.map +0 -1
  32. package/dist/commands/browse.d.ts.map +0 -1
  33. package/dist/commands/browse.js +0 -112
  34. package/dist/commands/browse.js.map +0 -1
  35. package/dist/commands/prove-pr.d.ts.map +0 -1
  36. package/dist/commands/prove-pr.js +0 -120
  37. package/dist/commands/prove-pr.js.map +0 -1
  38. package/dist/commands/prove.d.ts.map +0 -1
  39. package/dist/commands/prove.js +0 -138
  40. package/dist/commands/prove.js.map +0 -1
  41. package/dist/commands/review.d.ts.map +0 -1
  42. package/dist/commands/review.js +0 -82
  43. package/dist/commands/review.js.map +0 -1
  44. package/dist/commands/run.d.ts.map +0 -1
  45. package/dist/commands/run.js +0 -132
  46. package/dist/commands/run.js.map +0 -1
  47. package/dist/index.d.ts.map +0 -1
  48. package/dist/index.js.map +0 -1
@@ -1,192 +0,0 @@
1
- (() => {
2
- let hasMoved = false;
3
- let clickRippleEnabled = true;
4
- let trailEnabled = false;
5
- let trailPoints = [];
6
-
7
- function createCursor() {
8
- if (document.getElementById('agex-cursor')) return;
9
-
10
- const cursor = document.createElement('div');
11
- cursor.id = 'agex-cursor';
12
- cursor.style.cssText = `
13
- width: 24px;
14
- height: 24px;
15
- background: rgba(255, 50, 50, 0.85);
16
- border: 2px solid white;
17
- border-radius: 50%;
18
- position: fixed;
19
- pointer-events: none;
20
- z-index: 2147483647;
21
- transform: translate(-50%, -50%);
22
- box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
23
- left: -100px;
24
- top: -100px;
25
- opacity: 0;
26
- transition: left 0.08s ease-out, top 0.08s ease-out, opacity 0.15s, transform 0.1s, background 0.1s;
27
- `;
28
- document.body.appendChild(cursor);
29
-
30
- const style = document.createElement('style');
31
- style.id = 'agex-cursor-style';
32
- style.textContent = `
33
- .agex-cursor-ripple {
34
- position: fixed;
35
- border-radius: 50%;
36
- background: rgba(255, 50, 50, 0.4);
37
- pointer-events: none;
38
- z-index: 2147483646;
39
- transform: translate(-50%, -50%) scale(0);
40
- animation: agex-ripple 0.4s ease-out forwards;
41
- }
42
- @keyframes agex-ripple {
43
- to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
44
- }
45
- .agex-cursor-trail {
46
- position: fixed;
47
- width: 8px;
48
- height: 8px;
49
- background: rgba(255, 50, 50, 0.3);
50
- border-radius: 50%;
51
- pointer-events: none;
52
- z-index: 2147483645;
53
- transform: translate(-50%, -50%);
54
- }
55
- `;
56
- document.head.appendChild(style);
57
-
58
- document.addEventListener('mousemove', (e) => {
59
- const c = document.getElementById('agex-cursor');
60
- if (c) {
61
- c.style.left = `${e.clientX}px`;
62
- c.style.top = `${e.clientY}px`;
63
- if (!hasMoved) {
64
- hasMoved = true;
65
- c.style.opacity = '1';
66
- }
67
-
68
- if (trailEnabled) {
69
- createTrailPoint(e.clientX, e.clientY);
70
- }
71
- }
72
- }, true);
73
-
74
- document.addEventListener('mousedown', (e) => {
75
- const c = document.getElementById('agex-cursor');
76
- if (c) {
77
- c.style.transform = 'translate(-50%, -50%) scale(0.8)';
78
- c.style.background = 'rgba(255, 200, 50, 1)';
79
-
80
- if (clickRippleEnabled) {
81
- createClickRipple(e.clientX, e.clientY);
82
- }
83
- }
84
- }, true);
85
-
86
- document.addEventListener('mouseup', () => {
87
- const c = document.getElementById('agex-cursor');
88
- if (c) {
89
- c.style.transform = 'translate(-50%, -50%) scale(1)';
90
- c.style.background = 'rgba(255, 50, 50, 0.85)';
91
- }
92
- }, true);
93
- }
94
-
95
- function createClickRipple(x, y) {
96
- const ripple = document.createElement('div');
97
- ripple.className = 'agex-cursor-ripple';
98
- ripple.style.left = `${x}px`;
99
- ripple.style.top = `${y}px`;
100
- ripple.style.width = '60px';
101
- ripple.style.height = '60px';
102
- document.body.appendChild(ripple);
103
- setTimeout(() => ripple.remove(), 400);
104
- }
105
-
106
- function createTrailPoint(x, y) {
107
- const point = document.createElement('div');
108
- point.className = 'agex-cursor-trail';
109
- point.style.left = `${x}px`;
110
- point.style.top = `${y}px`;
111
- document.body.appendChild(point);
112
- trailPoints.push(point);
113
-
114
- setTimeout(() => {
115
- point.style.opacity = '0';
116
- point.style.transition = 'opacity 0.3s';
117
- }, 100);
118
-
119
- setTimeout(() => {
120
- point.remove();
121
- trailPoints = trailPoints.filter(p => p !== point);
122
- }, 400);
123
- }
124
-
125
- // Expose cursor configuration API
126
- window.__agexCursor = {
127
- setSize(size) {
128
- const cursor = document.getElementById('agex-cursor');
129
- if (!cursor) return;
130
- const sizes = { normal: 16, large: 24, 'extra-large': 32 };
131
- const s = sizes[size] || sizes.large;
132
- cursor.style.width = `${s}px`;
133
- cursor.style.height = `${s}px`;
134
- },
135
- setClickRipple(enabled) {
136
- clickRippleEnabled = enabled;
137
- },
138
- setTrail(enabled) {
139
- trailEnabled = enabled;
140
- },
141
- configure(options = {}) {
142
- if (options.size) this.setSize(options.size);
143
- if (options.clickRipple !== undefined) this.setClickRipple(options.clickRipple);
144
- if (options.trail !== undefined) this.setTrail(options.trail);
145
- },
146
- sync() {
147
- const cursor = document.getElementById('agex-cursor');
148
- if (!cursor) return Promise.resolve('no cursor');
149
- return new Promise(resolve => {
150
- const handler = function(e) {
151
- cursor.style.left = e.clientX + 'px';
152
- cursor.style.top = e.clientY + 'px';
153
- cursor.style.opacity = '1';
154
- resolve('moved to ' + e.clientX + ',' + e.clientY);
155
- };
156
- document.addEventListener('mousemove', handler, { once: true });
157
- setTimeout(function() {
158
- document.removeEventListener('mousemove', handler);
159
- resolve('hover complete');
160
- }, 150);
161
- });
162
- }
163
- };
164
-
165
- if (document.readyState === 'loading') {
166
- document.addEventListener('DOMContentLoaded', createCursor);
167
- } else {
168
- createCursor();
169
- }
170
-
171
- const observer = new MutationObserver(() => {
172
- if (!document.getElementById('agex-cursor') && document.body) {
173
- createCursor();
174
- }
175
- });
176
-
177
- if (document.body) {
178
- observer.observe(document.body, { childList: true, subtree: true });
179
- } else {
180
- document.addEventListener('DOMContentLoaded', () => {
181
- observer.observe(document.body, { childList: true, subtree: true });
182
- });
183
- }
184
-
185
- window.addEventListener('load', createCursor);
186
-
187
- setInterval(() => {
188
- if (!document.getElementById('agex-cursor') && document.body) {
189
- createCursor();
190
- }
191
- }, 500);
192
- })();