@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 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 Hasna, Inc.
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 via `@hasna/cloud`:
40
+ This package supports optional cloud sync through a package-local Postgres connection:
56
41
 
57
42
  ```bash
58
- cloud setup
59
- cloud sync push --service brains
60
- cloud sync pull --service brains
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;AAGzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyL5D"}
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"}