@miriad-systems/nuum 0.1.2 → 0.1.4
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.js +8 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -22818,8 +22818,13 @@ var Log;
|
|
|
22818
22818
|
var log = Log.create({ service: "migrate" });
|
|
22819
22819
|
function getMigrationsDir() {
|
|
22820
22820
|
const currentDir = dirname(new URL(import.meta.url).pathname);
|
|
22821
|
-
if (currentDir.includes("/
|
|
22822
|
-
|
|
22821
|
+
if (currentDir.includes("node_modules/@miriad-systems/nuum")) {
|
|
22822
|
+
const packageRoot = currentDir.split("node_modules/@miriad-systems/nuum")[0] + "node_modules/@miriad-systems/nuum";
|
|
22823
|
+
return join(packageRoot, "src/storage/migrations");
|
|
22824
|
+
}
|
|
22825
|
+
if (currentDir.includes("/dist")) {
|
|
22826
|
+
const projectRoot = currentDir.replace(/\/dist.*$/, "");
|
|
22827
|
+
return join(projectRoot, "src/storage/migrations");
|
|
22823
22828
|
}
|
|
22824
22829
|
return join(currentDir, "migrations");
|
|
22825
22830
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miriad-systems/nuum",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "AI coding agent with continuous memory - infinite context across sessions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"src/storage/migrations"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "bun build ./src/cli/index.ts --outdir ./dist --target bun",
|
|
14
|
+
"build": "bun build ./src/cli/index.ts --outdir ./dist --target bun && sed -i '' '1s|#!/usr/bin/env node|#!/usr/bin/env bun|' ./dist/index.js",
|
|
15
15
|
"dev": "bun run ./src/cli/index.ts",
|
|
16
16
|
"typecheck": "tsc --noEmit",
|
|
17
17
|
"test": "bun test",
|