@hasna/brains 0.0.26 → 0.0.27
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/LICENSE +1 -2
- package/README.md +8 -19
- package/dist/cli/commands/cloud.d.ts.map +1 -1
- package/dist/cli/index.js +5450 -11377
- package/dist/db/cloud-sync.d.ts +33 -0
- package/dist/db/cloud-sync.d.ts.map +1 -0
- package/dist/db/index.d.ts +36 -2
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/pg-migrate.d.ts.map +1 -1
- package/dist/db/remote-storage.d.ts +12 -0
- package/dist/db/remote-storage.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9393 -13721
- package/dist/mcp/index.d.ts +1 -3
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +9625 -14516
- package/dist/server/index.js +154 -9631
- package/package.json +4 -3
- package/dist/mcp/http.d.ts +0 -18
- package/dist/mcp/http.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/brains",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "Fine-tuned model tracker and trainer — wraps OpenAI + Thinker Labs, gathers training data from todos/mementos/conversations/sessions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"start": "bun run dist/cli/index.js",
|
|
32
32
|
"clean": "rm -rf dist",
|
|
33
33
|
"typecheck": "tsc --noEmit",
|
|
34
|
-
"test": "bun test",
|
|
34
|
+
"test": "bun test $(find ./src -name '*.test.ts' -print)",
|
|
35
35
|
"db:generate": "bunx drizzle-kit generate",
|
|
36
36
|
"db:migrate": "bunx drizzle-kit migrate",
|
|
37
37
|
"db:studio": "bunx drizzle-kit studio",
|
|
@@ -64,18 +64,19 @@
|
|
|
64
64
|
"author": "Andrei Hasna <andrei@hasna.com>",
|
|
65
65
|
"license": "Apache-2.0",
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@hasna/cloud": "^0.1.24",
|
|
68
67
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
69
68
|
"chalk": "^5.4.1",
|
|
70
69
|
"commander": "^13.1.0",
|
|
71
70
|
"drizzle-orm": "^0.40.0",
|
|
72
71
|
"ink": "^5.2.0",
|
|
73
72
|
"openai": "^4.0.0",
|
|
73
|
+
"pg": "^8.13.3",
|
|
74
74
|
"react": "^18.3.1",
|
|
75
75
|
"zod": "^3.24.2"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@types/bun": "^1.2.4",
|
|
79
|
+
"@types/pg": "^8.11.11",
|
|
79
80
|
"@types/react": "^18.3.18",
|
|
80
81
|
"drizzle-kit": "^0.30.0",
|
|
81
82
|
"typescript": "^5.7.3"
|
package/dist/mcp/http.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
2
|
-
export declare const DEFAULT_MCP_HTTP_PORT = 8802;
|
|
3
|
-
export declare const MCP_HTTP_HOST = "127.0.0.1";
|
|
4
|
-
export declare const MCP_SERVICE_NAME = "brains";
|
|
5
|
-
export declare function isHttpMode(args: string[]): boolean;
|
|
6
|
-
export declare function isStdioMode(args: string[]): boolean;
|
|
7
|
-
export declare function resolveMcpHttpPort(args: string[]): number;
|
|
8
|
-
export declare function healthPayload(name?: string): {
|
|
9
|
-
status: string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
export declare function handleMcpRequest(req: Request, buildServer: () => Server): Promise<Response>;
|
|
13
|
-
export declare function startMcpHttpServer(options: {
|
|
14
|
-
name: string;
|
|
15
|
-
port: number;
|
|
16
|
-
buildServer: () => Server;
|
|
17
|
-
}): ReturnType<typeof Bun.serve>;
|
|
18
|
-
//# sourceMappingURL=http.d.ts.map
|
package/dist/mcp/http.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/mcp/http.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAExE,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,eAAO,MAAM,aAAa,cAAc,CAAC;AACzC,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAEzC,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAElD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAEnD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAQzD;AAED,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAAyB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAE/F;AAED,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,OAAO,EACZ,WAAW,EAAE,MAAM,MAAM,GACxB,OAAO,CAAC,QAAQ,CAAC,CAOnB;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,MAAM,CAAC;CAC3B,GAAG,UAAU,CAAC,OAAO,GAAG,CAAC,KAAK,CAAC,CAoB/B"}
|