@hasna/contacts 0.6.19 → 0.6.21

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
@@ -23,6 +23,21 @@ contacts --help
23
23
  contacts-mcp
24
24
  ```
25
25
 
26
+ ## HTTP mode
27
+
28
+ Long-lived Streamable HTTP transport (stateless, bind `127.0.0.1` only):
29
+
30
+ ```bash
31
+ contacts-mcp --http # default port 8809
32
+ contacts-mcp --http --port 8809
33
+ MCP_HTTP=1 contacts-mcp
34
+ ```
35
+
36
+ - Health: `GET http://127.0.0.1:8809/health`
37
+ - MCP: `http://127.0.0.1:8809/mcp`
38
+
39
+ The REST server (`contacts-serve`) also exposes `/health` and `/mcp` when running.
40
+
26
41
  ## REST API
27
42
 
28
43
  ```bash
@@ -31,18 +46,14 @@ contacts-serve
31
46
 
32
47
  ## Cloud Sync
33
48
 
34
- This package supports optional cloud sync to a PostgreSQL database:
49
+ This package supports cloud sync via `@hasna/cloud`:
35
50
 
36
51
  ```bash
37
- export HASNA_CONTACTS_CLOUD_DATABASE_URL="postgres://..."
38
- contacts cloud status
39
- contacts cloud push
40
- contacts cloud pull
52
+ cloud setup
53
+ cloud sync push --service contacts
54
+ cloud sync pull --service contacts
41
55
  ```
42
56
 
43
- The cloud URL can also be provided as `OPEN_CONTACTS_CLOUD_DATABASE_URL` or
44
- `CONTACTS_CLOUD_DATABASE_URL`.
45
-
46
57
  ## Data Directory
47
58
 
48
59
  Data is stored in `~/.hasna/contacts/`.