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/plugin/supertask.js
CHANGED
|
@@ -26812,7 +26812,15 @@ var _db = null;
|
|
|
26812
26812
|
var _migrationRan = false;
|
|
26813
26813
|
function getMigrationsFolder() {
|
|
26814
26814
|
const __dirname2 = dirname(fileURLToPath(import.meta.url));
|
|
26815
|
-
|
|
26815
|
+
let dir = __dirname2;
|
|
26816
|
+
for (let i = 0; i < 5; i++) {
|
|
26817
|
+
const candidate = join(dir, "drizzle", "meta", "_journal.json");
|
|
26818
|
+
if (existsSync(candidate)) {
|
|
26819
|
+
return join(dir, "drizzle");
|
|
26820
|
+
}
|
|
26821
|
+
dir = dirname(dir);
|
|
26822
|
+
}
|
|
26823
|
+
return join(__dirname2, "../../drizzle");
|
|
26816
26824
|
}
|
|
26817
26825
|
function initDb() {
|
|
26818
26826
|
const dataDir = dirname(DB_FILE_PATH);
|