@flowdular/sandbox 0.4.1 → 0.4.3
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/bin/register-types.mjs +5 -2
- package/dist/client/assets/App-ClMOrpyg.js +11 -0
- package/dist/client/assets/PreviewHost-BHiHrfbQ.js +1 -0
- package/dist/client/assets/auto-buGEq6de.js +3 -0
- package/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/dist/client/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/dist/client/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
- package/dist/client/assets/index-CvwhlQ87.js +4 -0
- package/dist/client/assets/styles-BPWaGf55.js +3 -0
- package/dist/client/assets/styles-Dx1_KOag.css +1 -0
- package/dist/client/favicon.svg +1 -0
- package/dist/server/assets/auto-CVGNYyb3.js +12785 -0
- package/dist/server/assets/chunk-DDJLRBDX-3OUNo51g.js +4125 -0
- package/dist/server/assets/nodefs-DVSI7kG0.js +24 -0
- package/dist/server/assets/opfs-ahp-D56iokt1.js +388 -0
- package/dist/server/assets/token-Bvaq7Anz.js +55 -0
- package/dist/server/assets/token-util-BqSvdIPQ.js +3 -0
- package/dist/server/assets/token-util-CktFFT4z.js +494 -0
- package/dist/server/entry.js +91671 -0
- package/dist/server/favicon.svg +1 -0
- package/dist/server/index.html +161 -0
- package/package.json +2 -2
- package/src/server/preview-worker-manager.ts +7 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="5.4" fill="#2557D6"/><g transform="translate(12 12) scale(0.64) translate(-12 -12)"><circle cx="7.9" cy="3.4" r="1.7" fill="#fff"/><rect x="6.2" y="3.4" width="3.4" height="1.6" fill="#fff"/><rect x="6.2" y="10.8" width="3.4" height="9.8" fill="#fff"/><circle cx="7.9" cy="20.6" r="1.7" fill="#fff"/><circle cx="16.1" cy="3.4" r="1.7" fill="#fff"/><rect x="14.4" y="3.4" width="3.4" height="9.8" fill="#fff"/><rect x="14.4" y="19" width="3.4" height="1.6" fill="#fff"/><circle cx="16.1" cy="20.6" r="1.7" fill="#fff"/><circle cx="3.4" cy="7.9" r="1.7" fill="#fff"/><rect x="3.4" y="6.2" width="9.8" height="3.4" fill="#fff"/><rect x="19" y="6.2" width="1.6" height="3.4" fill="#fff"/><circle cx="20.6" cy="7.9" r="1.7" fill="#fff"/><circle cx="3.4" cy="16.1" r="1.7" fill="#fff"/><rect x="3.4" y="14.4" width="1.6" height="3.4" fill="#fff"/><rect x="10.8" y="14.4" width="9.8" height="3.4" fill="#fff"/><circle cx="20.6" cy="16.1" r="1.7" fill="#fff"/></g></svg>
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" class="coreloom-booting">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta name="theme-color" content="#ffffff" />
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
8
|
+
<title>Coreloom Sandbox</title>
|
|
9
|
+
<style id="coreloom-critical-splash">
|
|
10
|
+
html,
|
|
11
|
+
body,
|
|
12
|
+
#root {
|
|
13
|
+
min-height: 100%;
|
|
14
|
+
margin: 0;
|
|
15
|
+
background: #ffffff;
|
|
16
|
+
}
|
|
17
|
+
.coreloom-splash {
|
|
18
|
+
position: fixed;
|
|
19
|
+
inset: 0;
|
|
20
|
+
z-index: 2147483647;
|
|
21
|
+
display: grid;
|
|
22
|
+
place-items: center;
|
|
23
|
+
background: #ffffff;
|
|
24
|
+
color: #141b2e;
|
|
25
|
+
transition: opacity 180ms ease;
|
|
26
|
+
}
|
|
27
|
+
.coreloom-splash__content {
|
|
28
|
+
display: grid;
|
|
29
|
+
justify-items: center;
|
|
30
|
+
gap: 14px;
|
|
31
|
+
font:
|
|
32
|
+
600 13px/1.2 ui-sans-serif,
|
|
33
|
+
system-ui,
|
|
34
|
+
sans-serif;
|
|
35
|
+
letter-spacing: 0.14em;
|
|
36
|
+
text-transform: uppercase;
|
|
37
|
+
}
|
|
38
|
+
.coreloom-splash__stage {
|
|
39
|
+
min-width: 190px;
|
|
40
|
+
font-size: 10px;
|
|
41
|
+
font-weight: 500;
|
|
42
|
+
color: #64738f;
|
|
43
|
+
letter-spacing: 0.08em;
|
|
44
|
+
text-align: center;
|
|
45
|
+
text-transform: none;
|
|
46
|
+
}
|
|
47
|
+
.coreloom-splash__mark {
|
|
48
|
+
display: block;
|
|
49
|
+
width: 40px;
|
|
50
|
+
height: 40px;
|
|
51
|
+
animation: coreloom-pulse 1.4s ease-in-out infinite alternate;
|
|
52
|
+
}
|
|
53
|
+
.coreloom-splash--leaving {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
57
|
+
@keyframes coreloom-pulse {
|
|
58
|
+
to {
|
|
59
|
+
opacity: 0.45;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
@media (prefers-reduced-motion: reduce) {
|
|
63
|
+
.coreloom-splash__mark {
|
|
64
|
+
animation: none;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
</style>
|
|
68
|
+
<!--ssr-head-->
|
|
69
|
+
<script type="module" crossorigin src="/assets/index-CvwhlQ87.js"></script>
|
|
70
|
+
</head>
|
|
71
|
+
<body aria-busy="true">
|
|
72
|
+
<div
|
|
73
|
+
id="coreloom-splash"
|
|
74
|
+
class="coreloom-splash"
|
|
75
|
+
role="status"
|
|
76
|
+
aria-live="polite"
|
|
77
|
+
>
|
|
78
|
+
<div class="coreloom-splash__content">
|
|
79
|
+
<svg
|
|
80
|
+
class="coreloom-splash__mark"
|
|
81
|
+
viewBox="0 0 24 24"
|
|
82
|
+
aria-hidden="true"
|
|
83
|
+
>
|
|
84
|
+
<g fill="#141b2e">
|
|
85
|
+
<circle cx="7.9" cy="3.4" r="1.7" />
|
|
86
|
+
<rect x="6.2" y="3.4" width="3.4" height="1.6" />
|
|
87
|
+
<rect x="6.2" y="10.8" width="3.4" height="9.8" />
|
|
88
|
+
<circle cx="7.9" cy="20.6" r="1.7" />
|
|
89
|
+
<circle cx="16.1" cy="3.4" r="1.7" />
|
|
90
|
+
<rect x="14.4" y="3.4" width="3.4" height="9.8" />
|
|
91
|
+
<rect x="14.4" y="19" width="3.4" height="1.6" />
|
|
92
|
+
<circle cx="16.1" cy="20.6" r="1.7" />
|
|
93
|
+
</g>
|
|
94
|
+
<g fill="#e08a45">
|
|
95
|
+
<circle cx="3.4" cy="7.9" r="1.7" />
|
|
96
|
+
<rect x="3.4" y="6.2" width="9.8" height="3.4" />
|
|
97
|
+
<rect x="19" y="6.2" width="1.6" height="3.4" />
|
|
98
|
+
<circle cx="20.6" cy="7.9" r="1.7" />
|
|
99
|
+
<circle cx="3.4" cy="16.1" r="1.7" />
|
|
100
|
+
<rect x="3.4" y="14.4" width="1.6" height="3.4" />
|
|
101
|
+
<rect x="10.8" y="14.4" width="9.8" height="3.4" />
|
|
102
|
+
<circle cx="20.6" cy="16.1" r="1.7" />
|
|
103
|
+
</g>
|
|
104
|
+
</svg>
|
|
105
|
+
<span>Coreloom sandbox</span>
|
|
106
|
+
<small id="coreloom-splash-stage" class="coreloom-splash__stage"
|
|
107
|
+
>Starting the sandbox</small
|
|
108
|
+
>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div id="root"><!--ssr-body--></div>
|
|
112
|
+
<script>
|
|
113
|
+
(() => {
|
|
114
|
+
const startedAt = performance.now();
|
|
115
|
+
const stages = [
|
|
116
|
+
'Reading the workspace',
|
|
117
|
+
'Probing coding agents',
|
|
118
|
+
'Connecting to the application',
|
|
119
|
+
'Preparing sessions',
|
|
120
|
+
];
|
|
121
|
+
let stageIndex = 0;
|
|
122
|
+
let ready = false;
|
|
123
|
+
let stageTimer;
|
|
124
|
+
const stage = document.getElementById('coreloom-splash-stage');
|
|
125
|
+
const advance = () => {
|
|
126
|
+
if (!stage || ready) return;
|
|
127
|
+
stage.textContent = stages[Math.min(stageIndex, stages.length - 1)];
|
|
128
|
+
stageIndex += 1;
|
|
129
|
+
};
|
|
130
|
+
const finish = () => {
|
|
131
|
+
if (ready) return;
|
|
132
|
+
ready = true;
|
|
133
|
+
clearInterval(stageTimer);
|
|
134
|
+
const splash = document.getElementById('coreloom-splash');
|
|
135
|
+
if (!splash) return;
|
|
136
|
+
const leave = () => {
|
|
137
|
+
splash.classList.add('coreloom-splash--leaving');
|
|
138
|
+
document.documentElement.classList.remove('coreloom-booting');
|
|
139
|
+
document.body.setAttribute('aria-busy', 'false');
|
|
140
|
+
setTimeout(() => splash.remove(), 200);
|
|
141
|
+
};
|
|
142
|
+
const remaining = Math.max(0, 650 - (performance.now() - startedAt));
|
|
143
|
+
setTimeout(leave, remaining);
|
|
144
|
+
};
|
|
145
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
146
|
+
advance();
|
|
147
|
+
stageTimer = setInterval(advance, 320);
|
|
148
|
+
});
|
|
149
|
+
window.addEventListener('coreloom:ready', finish, { once: true });
|
|
150
|
+
})();
|
|
151
|
+
</script>
|
|
152
|
+
<noscript
|
|
153
|
+
><style>
|
|
154
|
+
.coreloom-splash {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
|
157
|
+
</style></noscript
|
|
158
|
+
>
|
|
159
|
+
<div hidden data-octane-hydrate-marker></div>
|
|
160
|
+
</body>
|
|
161
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowdular/sandbox",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "The Flowdular sandbox: chat a change, build it behind the gates, preview it in the real application, deliver it as code.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/flowdular/flowdular/tree/main/packages/sandbox#readme",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"octane": "0.1.51",
|
|
58
58
|
"segment-state": "0.2.1",
|
|
59
59
|
"vite": "8.2.2",
|
|
60
|
-
"@flowdular/sdk": "0.4.
|
|
60
|
+
"@flowdular/sdk": "0.4.3"
|
|
61
61
|
},
|
|
62
62
|
"imports": {
|
|
63
63
|
"#coding-agent": "./internal/coding-agent/src/index.ts"
|
|
@@ -184,9 +184,14 @@ function startWorker(
|
|
|
184
184
|
readable.add(sdkRoot);
|
|
185
185
|
addDependencies(sdkRoot);
|
|
186
186
|
} catch (error) {
|
|
187
|
+
/* A workspace nested inside another checkout resolves past the roots the
|
|
188
|
+
host may read, and Node answers that with a denial rather than a miss;
|
|
189
|
+
both mean this deployment has no consumer SDK to grant. */
|
|
190
|
+
const code = (error as NodeJS.ErrnoException).code;
|
|
187
191
|
if (
|
|
188
|
-
|
|
189
|
-
|
|
192
|
+
code !== 'MODULE_NOT_FOUND' &&
|
|
193
|
+
code !== 'ERR_PACKAGE_PATH_NOT_EXPORTED' &&
|
|
194
|
+
code !== 'ERR_ACCESS_DENIED'
|
|
190
195
|
)
|
|
191
196
|
throw error;
|
|
192
197
|
}
|