@hasna/brains 0.0.27 → 0.0.29

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,3 +1,4 @@
1
+
1
2
  Apache License
2
3
  Version 2.0, January 2004
3
4
  http://www.apache.org/licenses/
@@ -175,7 +176,7 @@
175
176
 
176
177
  END OF TERMS AND CONDITIONS
177
178
 
178
- Copyright 2026 hasna
179
+ Copyright 2026 Hasna, Inc.
179
180
 
180
181
  Licensed under the Apache License, Version 2.0 (the "License");
181
182
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -29,6 +29,21 @@ 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
+
32
47
  ## REST API
33
48
 
34
49
  ```bash
@@ -37,18 +52,14 @@ brains-serve
37
52
 
38
53
  ## Cloud Sync
39
54
 
40
- This package supports optional cloud sync through a package-local Postgres connection:
55
+ This package supports cloud sync via `@hasna/cloud`:
41
56
 
42
57
  ```bash
43
- export HASNA_BRAINS_CLOUD_DATABASE_URL=postgres://...
44
- brains cloud status
45
- brains cloud push
46
- brains cloud pull
47
- brains cloud sync
58
+ cloud setup
59
+ cloud sync push --service brains
60
+ cloud sync pull --service brains
48
61
  ```
49
62
 
50
- The MCP server also exposes `cloud_status`, `cloud_push`, `cloud_pull`, and `cloud_sync`.
51
-
52
63
  ## Data Directory
53
64
 
54
65
  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;AAqCzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6G5D"}
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"}