ocean-brain 0.2.0 → 0.2.1

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 CHANGED
@@ -5,7 +5,7 @@ import { execSync } from "child_process";
5
5
  import fs from "fs";
6
6
  import os from "os";
7
7
  import path from "path";
8
- import { fileURLToPath } from "url";
8
+ import { fileURLToPath, pathToFileURL } from "url";
9
9
  import { Command } from "commander";
10
10
  var __dirname = path.dirname(fileURLToPath(import.meta.url));
11
11
  var serverRoot = path.resolve(__dirname, "..", "server");
@@ -48,7 +48,8 @@ program.command("serve", { isDefault: true }).description("Start the Ocean Brain
48
48
  stdio: "inherit",
49
49
  env: { ...process.env }
50
50
  });
51
- await import(path.resolve(serverRoot, "dist/main.js"));
51
+ const serverEntry = pathToFileURL(path.resolve(serverRoot, "dist/main.js")).href;
52
+ await import(serverEntry);
52
53
  });
53
54
  program.command("mcp").description("Start MCP server for AI integration").option("-s, --server <url>", "Ocean Brain server URL", "http://localhost:6683").action(async (opts) => {
54
55
  const { startMcpServer } = await import("./mcp.js");
package/dist/mcp.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,35 +1,43 @@
1
1
  {
2
- "name": "ocean-brain",
3
- "version": "0.2.0",
4
- "type": "module",
5
- "bin": {
6
- "ocean-brain": "./dist/index.js"
7
- },
8
- "files": [
9
- "dist",
10
- "server/dist",
11
- "server/prisma/schema.prisma",
12
- "server/prisma/migrations",
13
- "server/client/dist"
14
- ],
15
- "dependencies": {
16
- "@graphql-tools/schema": "^10.0.31",
17
- "@graphql-tools/utils": "^11.0.0",
18
- "@modelcontextprotocol/sdk": "^1.20.2",
19
- "@prisma/client": "^6.19.2",
20
- "commander": "^14.0.3",
21
- "express": "^5.2.1",
22
- "express-session": "^1.19.0",
23
- "express-winston": "^4.2.0",
24
- "graphql-http": "^1.22.4",
25
- "prisma": "^6.19.2",
26
- "sqlite3": "^5.1.7",
27
- "winston": "^3.19.0",
28
- "zod": "^3.25.0"
29
- },
30
- "scripts": {
31
- "dev": "tsx src/index.ts",
32
- "build": "tsup",
33
- "type-check": "tsc --noEmit"
34
- }
35
- }
2
+ "name": "ocean-brain",
3
+ "version": "0.2.1",
4
+ "type": "module",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/baealex/ocean-brain"
8
+ },
9
+ "homepage": "https://github.com/baealex/ocean-brain",
10
+ "bugs": {
11
+ "url": "https://github.com/baealex/ocean-brain/issues"
12
+ },
13
+ "bin": {
14
+ "ocean-brain": "dist/index.js"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "server/dist",
19
+ "server/prisma/schema.prisma",
20
+ "server/prisma/migrations",
21
+ "server/client/dist"
22
+ ],
23
+ "scripts": {
24
+ "dev": "tsx src/index.ts",
25
+ "build": "tsup",
26
+ "type-check": "tsc --noEmit"
27
+ },
28
+ "dependencies": {
29
+ "@graphql-tools/schema": "^10.0.31",
30
+ "@graphql-tools/utils": "^11.0.0",
31
+ "@modelcontextprotocol/sdk": "^1.27.1",
32
+ "@prisma/client": "^6.19.2",
33
+ "commander": "^14.0.3",
34
+ "express": "^5.2.1",
35
+ "express-session": "^1.19.0",
36
+ "express-winston": "^4.2.0",
37
+ "graphql-http": "^1.22.4",
38
+ "prisma": "^6.19.2",
39
+ "sqlite3": "^5.1.7",
40
+ "winston": "^3.19.0",
41
+ "zod": "^3.25.0"
42
+ }
43
+ }