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 +3 -2
- package/dist/mcp.js +0 -0
- package/package.json +42 -34
- package/server/client/dist/assets/index-BJgBFWwL.css +1 -0
- package/server/client/dist/assets/index-DvNRv9YC.js +391 -0
- package/server/client/dist/assets/{note-vendor-DhbUD4OO.js → note-vendor-CUVHa9LU.js} +1 -1
- package/server/client/dist/index.html +3 -3
- package/server/client/dist/assets/index-BBmw_0Bo.css +0 -1
- package/server/client/dist/assets/index-TKn2sngc.js +0 -393
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
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
}
|