opencode-supertask 0.1.19 → 0.1.20
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/cli/index.js +11 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/gateway/index.js +11 -8
- package/dist/gateway/index.js.map +1 -1
- package/dist/plugin/supertask.js +9 -1
- package/dist/plugin/supertask.js.map +1 -1
- package/dist/web/index.js +9 -1
- package/dist/web/index.js.map +1 -1
- package/dist/worker/index.js +9 -1
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
package/dist/gateway/index.js
CHANGED
|
@@ -6084,7 +6084,15 @@ import { join, dirname } from "path";
|
|
|
6084
6084
|
import { fileURLToPath } from "url";
|
|
6085
6085
|
function getMigrationsFolder() {
|
|
6086
6086
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6087
|
-
|
|
6087
|
+
let dir = __dirname;
|
|
6088
|
+
for (let i = 0; i < 5; i++) {
|
|
6089
|
+
const candidate = join(dir, "drizzle", "meta", "_journal.json");
|
|
6090
|
+
if (existsSync(candidate)) {
|
|
6091
|
+
return join(dir, "drizzle");
|
|
6092
|
+
}
|
|
6093
|
+
dir = dirname(dir);
|
|
6094
|
+
}
|
|
6095
|
+
return join(__dirname, "../../drizzle");
|
|
6088
6096
|
}
|
|
6089
6097
|
function initDb() {
|
|
6090
6098
|
const dataDir = dirname(DB_FILE_PATH);
|
|
@@ -19373,14 +19381,9 @@ async function main() {
|
|
|
19373
19381
|
if (cfg.dashboard.enabled) {
|
|
19374
19382
|
const { dashboardApp: dashboardApp2 } = await Promise.resolve().then(() => (init_web(), web_exports));
|
|
19375
19383
|
Bun.serve({
|
|
19384
|
+
hostname: "127.0.0.1",
|
|
19376
19385
|
port: cfg.dashboard.port,
|
|
19377
|
-
fetch
|
|
19378
|
-
const url = new URL(req.url);
|
|
19379
|
-
if (url.hostname !== "localhost" && url.hostname !== "127.0.0.1" && url.hostname !== "::1") {
|
|
19380
|
-
return new Response("Forbidden", { status: 403 });
|
|
19381
|
-
}
|
|
19382
|
-
return dashboardApp2.fetch(req);
|
|
19383
|
-
}
|
|
19386
|
+
fetch: dashboardApp2.fetch
|
|
19384
19387
|
});
|
|
19385
19388
|
console.log(JSON.stringify({
|
|
19386
19389
|
ts: (/* @__PURE__ */ new Date()).toISOString(),
|