@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/LICENSE
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
Apache License
|
|
3
2
|
Version 2.0, January 2004
|
|
4
3
|
http://www.apache.org/licenses/
|
|
@@ -176,7 +175,7 @@
|
|
|
176
175
|
|
|
177
176
|
END OF TERMS AND CONDITIONS
|
|
178
177
|
|
|
179
|
-
Copyright 2026
|
|
178
|
+
Copyright 2026 hasna
|
|
180
179
|
|
|
181
180
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
181
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -29,21 +29,6 @@ brains --help
|
|
|
29
29
|
brains-mcp
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
## HTTP mode
|
|
33
|
-
|
|
34
|
-
Run a long-lived Streamable HTTP MCP server on `127.0.0.1` (default port **8801**):
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
brains-mcp --http
|
|
38
|
-
# or: MCP_HTTP=1 brains-mcp
|
|
39
|
-
# port override: --port 8801 or MCP_HTTP_PORT=8801
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
- Health: `GET http://127.0.0.1:8801/health` → `{"status":"ok","name":"brains"}`
|
|
43
|
-
- MCP: `http://127.0.0.1:8801/mcp`
|
|
44
|
-
|
|
45
|
-
Stdio remains the default when no `--http` / `MCP_HTTP=1` is set.
|
|
46
|
-
|
|
47
32
|
## REST API
|
|
48
33
|
|
|
49
34
|
```bash
|
|
@@ -52,14 +37,18 @@ brains-serve
|
|
|
52
37
|
|
|
53
38
|
## Cloud Sync
|
|
54
39
|
|
|
55
|
-
This package supports cloud sync
|
|
40
|
+
This package supports optional cloud sync through a package-local Postgres connection:
|
|
56
41
|
|
|
57
42
|
```bash
|
|
58
|
-
|
|
59
|
-
cloud
|
|
60
|
-
cloud
|
|
43
|
+
export HASNA_BRAINS_CLOUD_DATABASE_URL=postgres://...
|
|
44
|
+
brains cloud status
|
|
45
|
+
brains cloud push
|
|
46
|
+
brains cloud pull
|
|
47
|
+
brains cloud sync
|
|
61
48
|
```
|
|
62
49
|
|
|
50
|
+
The MCP server also exposes `cloud_status`, `cloud_push`, `cloud_pull`, and `cloud_sync`.
|
|
51
|
+
|
|
63
52
|
## Data Directory
|
|
64
53
|
|
|
65
54
|
Data is stored in `~/.hasna/brains/`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/cloud.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/cloud.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqCzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6G5D"}
|