@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 +2 -1
- package/README.md +19 -8
- package/dist/cli/index.js +25573 -12552
- package/dist/db/database.d.ts +2 -16
- package/dist/db/database.d.ts.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10100 -6537
- package/dist/mcp/http.d.ts +17 -0
- package/dist/mcp/http.d.ts.map +1 -0
- package/dist/mcp/http.test.d.ts +2 -0
- package/dist/mcp/http.test.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +2 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +19258 -15012
- package/dist/server/index.js +37831 -1680
- package/dist/server/serve.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/cli/cloud.d.ts +0 -3
- package/dist/cli/cloud.d.ts.map +0 -1
- package/dist/db/cloud-sync.d.ts +0 -33
- package/dist/db/cloud-sync.d.ts.map +0 -1
- package/dist/db/remote-storage.d.ts +0 -10
- package/dist/db/remote-storage.d.ts.map +0 -1
- package/dist/mcp/cloud-tools.d.ts +0 -3
- package/dist/mcp/cloud-tools.d.ts.map +0 -1
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
|
|
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
|
|
49
|
+
This package supports cloud sync via `@hasna/cloud`:
|
|
35
50
|
|
|
36
51
|
```bash
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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/`.
|