vibora 7.2.0 → 7.2.2
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/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-bwtM7HYR.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-Cy_VxuHp.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -172037,6 +172037,7 @@ import { join as join13 } from "path";
|
|
|
172037
172037
|
import { tmpdir } from "os";
|
|
172038
172038
|
import { execSync as execSync5 } from "child_process";
|
|
172039
172039
|
init_logger2();
|
|
172040
|
+
init_settings();
|
|
172040
172041
|
var app10 = new Hono2;
|
|
172041
172042
|
function isUvInstalled() {
|
|
172042
172043
|
try {
|
|
@@ -172181,10 +172182,11 @@ app10.post("/create", async (c) => {
|
|
|
172181
172182
|
}, 400);
|
|
172182
172183
|
}
|
|
172183
172184
|
const body = await c.req.json();
|
|
172184
|
-
const { templateSource, outputPath, answers, projectName, trust } = body;
|
|
172185
|
-
if (!templateSource || !
|
|
172185
|
+
const { templateSource, outputPath: rawOutputPath, answers, projectName, trust } = body;
|
|
172186
|
+
if (!templateSource || !rawOutputPath || !projectName) {
|
|
172186
172187
|
return c.json({ error: "templateSource, outputPath, and projectName are required" }, 400);
|
|
172187
172188
|
}
|
|
172189
|
+
const outputPath = expandPath(rawOutputPath);
|
|
172188
172190
|
const repo = db.select().from(repositories).where(eq(repositories.id, templateSource)).get();
|
|
172189
172191
|
const templatePath = repo ? repo.path : templateSource;
|
|
172190
172192
|
const fullOutputPath = join13(outputPath, projectName);
|