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 CHANGED
@@ -9400,7 +9400,15 @@ import { join, dirname } from "path";
9400
9400
  import { fileURLToPath } from "url";
9401
9401
  function getMigrationsFolder() {
9402
9402
  const __dirname2 = dirname(fileURLToPath(import.meta.url));
9403
- return join(__dirname2, "../../../drizzle");
9403
+ let dir = __dirname2;
9404
+ for (let i = 0; i < 5; i++) {
9405
+ const candidate = join(dir, "drizzle", "meta", "_journal.json");
9406
+ if (existsSync(candidate)) {
9407
+ return join(dir, "drizzle");
9408
+ }
9409
+ dir = dirname(dir);
9410
+ }
9411
+ return join(__dirname2, "../../drizzle");
9404
9412
  }
9405
9413
  function initDb() {
9406
9414
  const dataDir = dirname(DB_FILE_PATH);
@@ -22727,14 +22735,9 @@ async function main() {
22727
22735
  if (cfg.dashboard.enabled) {
22728
22736
  const { dashboardApp: dashboardApp2 } = await Promise.resolve().then(() => (init_web(), web_exports));
22729
22737
  Bun.serve({
22738
+ hostname: "127.0.0.1",
22730
22739
  port: cfg.dashboard.port,
22731
- fetch(req) {
22732
- const url = new URL(req.url);
22733
- if (url.hostname !== "localhost" && url.hostname !== "127.0.0.1" && url.hostname !== "::1") {
22734
- return new Response("Forbidden", { status: 403 });
22735
- }
22736
- return dashboardApp2.fetch(req);
22737
- }
22740
+ fetch: dashboardApp2.fetch
22738
22741
  });
22739
22742
  console.log(JSON.stringify({
22740
22743
  ts: (/* @__PURE__ */ new Date()).toISOString(),