vibora 9.4.0 → 9.5.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.
- package/README.md +8 -9
- package/bin/vibora.js +170 -15
- package/dist/assets/{index-VmQIGond.js → index-CIDCJjL_.js} +117 -117
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/index.js +11 -5
package/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/png" href="/logo.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Vibora - Harness Attention. Ship.</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CIDCJjL_.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-CYo_ATvM.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -5705,7 +5705,7 @@ class DtachService {
|
|
|
5705
5705
|
}
|
|
5706
5706
|
getAttachCommand(terminalId) {
|
|
5707
5707
|
const socketPath = this.getSocketPath(terminalId);
|
|
5708
|
-
return ["
|
|
5708
|
+
return ["bash", "-c", `stty -echoctl && exec dtach -a ${socketPath} -z`];
|
|
5709
5709
|
}
|
|
5710
5710
|
killSession(terminalId) {
|
|
5711
5711
|
const socketPath = this.getSocketPath(terminalId);
|
|
@@ -183352,7 +183352,7 @@ function createApp() {
|
|
|
183352
183352
|
});
|
|
183353
183353
|
if (process.env.VIBORA_PACKAGE_ROOT) {
|
|
183354
183354
|
const distPath = getDistPath();
|
|
183355
|
-
const serveFile = async (filePath) => {
|
|
183355
|
+
const serveFile = async (filePath, immutableCache = false) => {
|
|
183356
183356
|
const ext2 = filePath.split(".").pop()?.toLowerCase();
|
|
183357
183357
|
const mimeTypes2 = {
|
|
183358
183358
|
html: "text/html",
|
|
@@ -183371,14 +183371,18 @@ function createApp() {
|
|
|
183371
183371
|
ogg: "audio/ogg"
|
|
183372
183372
|
};
|
|
183373
183373
|
const content = await readFile7(filePath);
|
|
183374
|
+
const cacheControl = immutableCache ? "public, max-age=31536000, immutable" : "no-cache, must-revalidate";
|
|
183374
183375
|
return new Response(content, {
|
|
183375
|
-
headers: {
|
|
183376
|
+
headers: {
|
|
183377
|
+
"Content-Type": mimeTypes2[ext2 || ""] || "application/octet-stream",
|
|
183378
|
+
"Cache-Control": cacheControl
|
|
183379
|
+
}
|
|
183376
183380
|
});
|
|
183377
183381
|
};
|
|
183378
183382
|
app21.get("/assets/*", async (c) => {
|
|
183379
183383
|
const assetPath = join27(distPath, c.req.path);
|
|
183380
183384
|
if (existsSync20(assetPath)) {
|
|
183381
|
-
return serveFile(assetPath);
|
|
183385
|
+
return serveFile(assetPath, true);
|
|
183382
183386
|
}
|
|
183383
183387
|
return c.notFound();
|
|
183384
183388
|
});
|
|
@@ -183405,7 +183409,9 @@ function createApp() {
|
|
|
183405
183409
|
return next();
|
|
183406
183410
|
}
|
|
183407
183411
|
const html = await readFile7(join27(distPath, "index.html"), "utf-8");
|
|
183408
|
-
return c.html(html
|
|
183412
|
+
return c.html(html, {
|
|
183413
|
+
headers: { "Cache-Control": "no-cache, must-revalidate" }
|
|
183414
|
+
});
|
|
183409
183415
|
});
|
|
183410
183416
|
}
|
|
183411
183417
|
return app21;
|