openfox 1.6.79 → 1.6.81
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/dist/{auto-compaction-KTA6H4HP.js → auto-compaction-JSO3ZWSE.js} +4 -4
- package/dist/{chat-handler-EKAO6CIB.js → chat-handler-RN662HKM.js} +12 -9
- package/dist/{chunk-3JU4NOQD.js → chunk-2MHHSLNY.js} +135 -80
- package/dist/{chunk-UCZSBKG7.js → chunk-42TLGPX4.js} +43 -26
- package/dist/{chunk-HOD7GVQ5.js → chunk-6FOC2GAY.js} +2 -2
- package/dist/{chunk-2IZMUXMP.js → chunk-A5W6JUYZ.js} +3 -3
- package/dist/{chunk-RJRG2VER.js → chunk-LHKXWUEK.js} +7 -1
- package/dist/{chunk-BG7QCFGG.js → chunk-SJHWJAJA.js} +3 -3
- package/dist/{chunk-STYHKCG7.js → chunk-UF6D2IPO.js} +25 -1
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{events-ND5GZBT2.js → events-QDUOJQML.js} +2 -2
- package/dist/{orchestrator-5U4O4K7V.js → orchestrator-NJHSRHZI.js} +5 -5
- package/dist/package.json +1 -1
- package/dist/permissions-Z2IIV2V7.js +109 -0
- package/dist/{processor-O35Q3EZT.js → processor-3A32D5MI.js} +23 -16
- package/dist/project-creator-GPOIXKX4.js +111 -0
- package/dist/{protocol-4CTV7OZC.js → protocol-IXFNYZEX.js} +2 -2
- package/dist/{serve-55GF3KJW.js → serve-D4NO4GJF.js} +6 -6
- package/dist/server/index.js +5 -5
- package/dist/{tools-W6OPDFQV.js → tools-Y3S6BHBZ.js} +4 -4
- package/dist/web/assets/{index-BJtUJYiT.js → index-DuIE79t4.js} +55 -53
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/project-creator-VD7MLOWE.js +0 -65
package/dist/web/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/png" href="/assets/openfox.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, height=device-height" />
|
|
7
7
|
<title>OpenFox</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DuIE79t4.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-D4Si0Pmc.css">
|
|
10
10
|
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
|
|
11
11
|
<body class="bg-bg-primary text-text-primary font-mono">
|
package/dist/web/sw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),
|
|
1
|
+
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),c={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map(e=>c[e]||l(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"f52453ac7b8518e326e7398b75e6df1c"},{url:"__inspect__.js",revision:"878b477aaf1805c028895f3d3bb4af71"},{url:"assets/index-DuIE79t4.js",revision:null},{url:"assets/index-D4Si0Pmc.css",revision:null},{url:"assets/html2canvas.esm-QH1iLAAe.js",revision:null},{url:"assets/openfox-192.png",revision:"79feeb86d692c274854e37959a7dae67"},{url:"assets/openfox-512.png",revision:"fee24b214220594b4f595a467e73036e"},{url:"manifest.webmanifest",revision:"c25f372c782e623ab1e768a8dfe350ca"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
|
package/package.json
CHANGED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createProject
|
|
3
|
-
} from "./chunk-CMQCO27Y.js";
|
|
4
|
-
import "./chunk-KIOUKC3Z.js";
|
|
5
|
-
import "./chunk-K44MW7JJ.js";
|
|
6
|
-
|
|
7
|
-
// src/server/utils/project-creator.ts
|
|
8
|
-
import { execSync } from "child_process";
|
|
9
|
-
import { join } from "path";
|
|
10
|
-
function validateProjectName(name) {
|
|
11
|
-
if (!name || name.trim() === "") {
|
|
12
|
-
return { valid: false, error: "Project name cannot be empty" };
|
|
13
|
-
}
|
|
14
|
-
if (!/^[a-zA-Z0-9._ -]+$/.test(name)) {
|
|
15
|
-
return {
|
|
16
|
-
valid: false,
|
|
17
|
-
error: "Project name can only contain letters, numbers, hyphens, underscores, dots, and spaces"
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
if (name.includes("/") || name.includes("\\") || name.includes("..")) {
|
|
21
|
-
return { valid: false, error: "Project name cannot contain path separators" };
|
|
22
|
-
}
|
|
23
|
-
return { valid: true };
|
|
24
|
-
}
|
|
25
|
-
async function directoryExists(path) {
|
|
26
|
-
try {
|
|
27
|
-
const { access } = await import("fs/promises");
|
|
28
|
-
const { constants } = await import("fs");
|
|
29
|
-
await access(path, constants.F_OK);
|
|
30
|
-
return true;
|
|
31
|
-
} catch {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
async function createDirectoryWithGit(projectName, workdir) {
|
|
36
|
-
const validation = validateProjectName(projectName);
|
|
37
|
-
if (!validation.valid) {
|
|
38
|
-
throw new Error(validation.error);
|
|
39
|
-
}
|
|
40
|
-
const fullPath = workdir.replace(/\/+$/, "");
|
|
41
|
-
const { stat, mkdir } = await import("fs/promises");
|
|
42
|
-
try {
|
|
43
|
-
const stats = await stat(fullPath);
|
|
44
|
-
if (!stats.isDirectory()) {
|
|
45
|
-
throw new Error(`A file named '${projectName}' already exists at ${fullPath}`);
|
|
46
|
-
}
|
|
47
|
-
} catch {
|
|
48
|
-
await mkdir(fullPath, { recursive: true });
|
|
49
|
-
}
|
|
50
|
-
if (!await directoryExists(join(fullPath, ".git"))) {
|
|
51
|
-
try {
|
|
52
|
-
execSync("git init", { cwd: fullPath, stdio: "pipe" });
|
|
53
|
-
} catch (gitErr) {
|
|
54
|
-
const { rm } = await import("fs/promises");
|
|
55
|
-
await rm(fullPath, { recursive: true, force: true });
|
|
56
|
-
throw new Error(`Failed to initialize git: ${gitErr instanceof Error ? gitErr.message : "Unknown"}`);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return createProject(projectName, fullPath);
|
|
60
|
-
}
|
|
61
|
-
export {
|
|
62
|
-
createDirectoryWithGit,
|
|
63
|
-
validateProjectName
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=project-creator-VD7MLOWE.js.map
|