figranium 0.9.2 → 0.10.0
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/LICENSE +674 -674
- package/README.md +336 -318
- package/agent.js +1 -1
- package/common-utils.js +211 -166
- package/dist/assets/index--OZi5-p_.css +1 -0
- package/dist/assets/index-BwaOqbmy.js +15 -0
- package/dist/index.html +26 -26
- package/dist/novnc.html +108 -108
- package/extraction-worker.js +204 -197
- package/headful.js +522 -219
- package/html-utils.js +24 -24
- package/package.json +81 -78
- package/proxy-rotation.js +261 -261
- package/proxy-utils.js +84 -84
- package/public/novnc.html +108 -108
- package/scrape.js +371 -374
- package/server.js +517 -404
- package/src/server/cron-parser.js +316 -0
- package/src/server/routes/schedules.js +171 -0
- package/src/server/scheduler.js +381 -0
- package/url-utils.js +137 -116
- package/user-agent-settings.js +76 -76
- package/dist/assets/index-BmL_TAii.css +0 -1
- package/dist/assets/index-Cr7IFGdr.js +0 -15
package/dist/index.html
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" class="h-full">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8" />
|
|
6
|
-
<link rel="icon" type="image/svg+xml" href="/assets/favicon-DmUMR1rm.svg" />
|
|
7
|
-
<link rel="shortcut icon" href="/assets/favicon-DmUMR1rm.svg" />
|
|
8
|
-
<link rel="apple-touch-icon" href="/assets/favicon-DmUMR1rm.svg" />
|
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
10
|
-
<title>Figranium - Deterministic Control for an Agentic World</title>
|
|
11
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
12
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
13
|
-
<link
|
|
14
|
-
href="https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&family=JetBrains+Mono:wght@400;500;600;700&display=swap"
|
|
15
|
-
rel="stylesheet">
|
|
16
|
-
<link
|
|
17
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"
|
|
18
|
-
rel="stylesheet" />
|
|
19
|
-
<script type="module" crossorigin src="/assets/index-
|
|
20
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
21
|
-
</head>
|
|
22
|
-
|
|
23
|
-
<body class="bg-[#020202] text-gray-100 font-sans h-full overflow-hidden selection:bg-white selection:text-black">
|
|
24
|
-
<div id="root" class="h-full"></div>
|
|
25
|
-
</body>
|
|
26
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" class="h-full">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="/assets/favicon-DmUMR1rm.svg" />
|
|
7
|
+
<link rel="shortcut icon" href="/assets/favicon-DmUMR1rm.svg" />
|
|
8
|
+
<link rel="apple-touch-icon" href="/assets/favicon-DmUMR1rm.svg" />
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
10
|
+
<title>Figranium - Deterministic Control for an Agentic World</title>
|
|
11
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
12
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
13
|
+
<link
|
|
14
|
+
href="https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&family=JetBrains+Mono:wght@400;500;600;700&display=swap"
|
|
15
|
+
rel="stylesheet">
|
|
16
|
+
<link
|
|
17
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"
|
|
18
|
+
rel="stylesheet" />
|
|
19
|
+
<script type="module" crossorigin src="/assets/index-BwaOqbmy.js"></script>
|
|
20
|
+
<link rel="stylesheet" crossorigin href="/assets/index--OZi5-p_.css">
|
|
21
|
+
</head>
|
|
22
|
+
|
|
23
|
+
<body class="bg-[#020202] text-gray-100 font-sans h-full overflow-hidden selection:bg-white selection:text-black">
|
|
24
|
+
<div id="root" class="h-full"></div>
|
|
25
|
+
</body>
|
|
26
|
+
|
|
27
27
|
</html>
|
package/dist/novnc.html
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta
|
|
6
|
-
name="viewport"
|
|
7
|
-
content="width=device-width, initial-scale=1, maximum-scale=1"
|
|
8
|
-
/>
|
|
9
|
-
<title>Headful Browser</title>
|
|
10
|
-
<style>
|
|
11
|
-
:root {
|
|
12
|
-
color-scheme: dark;
|
|
13
|
-
}
|
|
14
|
-
html,
|
|
15
|
-
body {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
margin: 0;
|
|
19
|
-
background: #050505;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
|
|
22
|
-
}
|
|
23
|
-
#screen {
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 100%;
|
|
26
|
-
}
|
|
27
|
-
#status {
|
|
28
|
-
position: absolute;
|
|
29
|
-
top: 12px;
|
|
30
|
-
left: 12px;
|
|
31
|
-
background: rgba(0, 0, 0, 0.6);
|
|
32
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
33
|
-
padding: 6px 10px;
|
|
34
|
-
border-radius: 10px;
|
|
35
|
-
font-size: 11px;
|
|
36
|
-
letter-spacing: 0.08em;
|
|
37
|
-
text-transform: uppercase;
|
|
38
|
-
color: #d1d5db;
|
|
39
|
-
pointer-events: none;
|
|
40
|
-
}
|
|
41
|
-
#status.hidden {
|
|
42
|
-
display: none;
|
|
43
|
-
}
|
|
44
|
-
</style>
|
|
45
|
-
</head>
|
|
46
|
-
<body>
|
|
47
|
-
<div id="status">Connecting...</div>
|
|
48
|
-
<div id="screen"></div>
|
|
49
|
-
<script type="module">
|
|
50
|
-
import RFB from '/novnc/core/rfb.js';
|
|
51
|
-
|
|
52
|
-
const params = new URLSearchParams(window.location.search);
|
|
53
|
-
const host = params.get('host') || window.location.hostname;
|
|
54
|
-
const port = params.get('port') || window.location.port;
|
|
55
|
-
const rawPath = params.get('path') || 'websockify';
|
|
56
|
-
const path = rawPath.replace(/^\/+/, '');
|
|
57
|
-
const proto = window.location.protocol === 'https:' ? 'wss' : 'ws';
|
|
58
|
-
const hostPort = port ? `${host}:${port}` : host;
|
|
59
|
-
const wsUrl = `${proto}://${hostPort}/${path}`;
|
|
60
|
-
|
|
61
|
-
const statusEl = document.getElementById('status');
|
|
62
|
-
const screen = document.getElementById('screen');
|
|
63
|
-
const rfb = new RFB(screen, wsUrl);
|
|
64
|
-
rfb.scaleViewport = true;
|
|
65
|
-
rfb.resizeSession = true;
|
|
66
|
-
rfb.showDotCursor = false;
|
|
67
|
-
rfb.clipViewport = false;
|
|
68
|
-
|
|
69
|
-
const sendKey = (keysym, code, down) => {
|
|
70
|
-
if (typeof rfb.sendKey !== 'function') return;
|
|
71
|
-
try {
|
|
72
|
-
rfb.sendKey(keysym, code, down);
|
|
73
|
-
} catch (err) {
|
|
74
|
-
// ignore
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
const clearModifiers = () => {
|
|
79
|
-
const modifiers = [
|
|
80
|
-
[0xFFE1, 'ShiftLeft'],
|
|
81
|
-
[0xFFE2, 'ShiftRight'],
|
|
82
|
-
[0xFFE3, 'ControlLeft'],
|
|
83
|
-
[0xFFE4, 'ControlRight'],
|
|
84
|
-
[0xFFE9, 'AltLeft'],
|
|
85
|
-
[0xFFEA, 'AltRight'],
|
|
86
|
-
[0xFFE7, 'MetaLeft'],
|
|
87
|
-
[0xFFE8, 'MetaRight']
|
|
88
|
-
];
|
|
89
|
-
modifiers.forEach(([keysym, code]) => sendKey(keysym, code, false));
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
window.addEventListener('focus', () => {
|
|
93
|
-
clearModifiers();
|
|
94
|
-
});
|
|
95
|
-
window.addEventListener('blur', () => {
|
|
96
|
-
clearModifiers();
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
rfb.addEventListener('connect', () => {
|
|
100
|
-
statusEl.classList.add('hidden');
|
|
101
|
-
});
|
|
102
|
-
rfb.addEventListener('disconnect', () => {
|
|
103
|
-
statusEl.classList.remove('hidden');
|
|
104
|
-
statusEl.textContent = 'Disconnected';
|
|
105
|
-
});
|
|
106
|
-
</script>
|
|
107
|
-
</body>
|
|
108
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta
|
|
6
|
+
name="viewport"
|
|
7
|
+
content="width=device-width, initial-scale=1, maximum-scale=1"
|
|
8
|
+
/>
|
|
9
|
+
<title>Headful Browser</title>
|
|
10
|
+
<style>
|
|
11
|
+
:root {
|
|
12
|
+
color-scheme: dark;
|
|
13
|
+
}
|
|
14
|
+
html,
|
|
15
|
+
body {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
margin: 0;
|
|
19
|
+
background: #050505;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
|
|
22
|
+
}
|
|
23
|
+
#screen {
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
27
|
+
#status {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 12px;
|
|
30
|
+
left: 12px;
|
|
31
|
+
background: rgba(0, 0, 0, 0.6);
|
|
32
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
33
|
+
padding: 6px 10px;
|
|
34
|
+
border-radius: 10px;
|
|
35
|
+
font-size: 11px;
|
|
36
|
+
letter-spacing: 0.08em;
|
|
37
|
+
text-transform: uppercase;
|
|
38
|
+
color: #d1d5db;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
#status.hidden {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
45
|
+
</head>
|
|
46
|
+
<body>
|
|
47
|
+
<div id="status">Connecting...</div>
|
|
48
|
+
<div id="screen"></div>
|
|
49
|
+
<script type="module">
|
|
50
|
+
import RFB from '/novnc/core/rfb.js';
|
|
51
|
+
|
|
52
|
+
const params = new URLSearchParams(window.location.search);
|
|
53
|
+
const host = params.get('host') || window.location.hostname;
|
|
54
|
+
const port = params.get('port') || window.location.port;
|
|
55
|
+
const rawPath = params.get('path') || 'websockify';
|
|
56
|
+
const path = rawPath.replace(/^\/+/, '');
|
|
57
|
+
const proto = window.location.protocol === 'https:' ? 'wss' : 'ws';
|
|
58
|
+
const hostPort = port ? `${host}:${port}` : host;
|
|
59
|
+
const wsUrl = `${proto}://${hostPort}/${path}`;
|
|
60
|
+
|
|
61
|
+
const statusEl = document.getElementById('status');
|
|
62
|
+
const screen = document.getElementById('screen');
|
|
63
|
+
const rfb = new RFB(screen, wsUrl);
|
|
64
|
+
rfb.scaleViewport = true;
|
|
65
|
+
rfb.resizeSession = true;
|
|
66
|
+
rfb.showDotCursor = false;
|
|
67
|
+
rfb.clipViewport = false;
|
|
68
|
+
|
|
69
|
+
const sendKey = (keysym, code, down) => {
|
|
70
|
+
if (typeof rfb.sendKey !== 'function') return;
|
|
71
|
+
try {
|
|
72
|
+
rfb.sendKey(keysym, code, down);
|
|
73
|
+
} catch (err) {
|
|
74
|
+
// ignore
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const clearModifiers = () => {
|
|
79
|
+
const modifiers = [
|
|
80
|
+
[0xFFE1, 'ShiftLeft'],
|
|
81
|
+
[0xFFE2, 'ShiftRight'],
|
|
82
|
+
[0xFFE3, 'ControlLeft'],
|
|
83
|
+
[0xFFE4, 'ControlRight'],
|
|
84
|
+
[0xFFE9, 'AltLeft'],
|
|
85
|
+
[0xFFEA, 'AltRight'],
|
|
86
|
+
[0xFFE7, 'MetaLeft'],
|
|
87
|
+
[0xFFE8, 'MetaRight']
|
|
88
|
+
];
|
|
89
|
+
modifiers.forEach(([keysym, code]) => sendKey(keysym, code, false));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
window.addEventListener('focus', () => {
|
|
93
|
+
clearModifiers();
|
|
94
|
+
});
|
|
95
|
+
window.addEventListener('blur', () => {
|
|
96
|
+
clearModifiers();
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
rfb.addEventListener('connect', () => {
|
|
100
|
+
statusEl.classList.add('hidden');
|
|
101
|
+
});
|
|
102
|
+
rfb.addEventListener('disconnect', () => {
|
|
103
|
+
statusEl.classList.remove('hidden');
|
|
104
|
+
statusEl.textContent = 'Disconnected';
|
|
105
|
+
});
|
|
106
|
+
</script>
|
|
107
|
+
</body>
|
|
108
|
+
</html>
|