@hasna/contacts 0.6.18 → 0.6.19
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/cloud.d.ts +3 -0
- package/dist/cli/cloud.d.ts.map +1 -0
- package/dist/cli/index.js +10049 -22397
- package/dist/db/cloud-sync.d.ts +33 -0
- package/dist/db/cloud-sync.d.ts.map +1 -0
- package/dist/db/database.d.ts +16 -2
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/remote-storage.d.ts +10 -0
- package/dist/db/remote-storage.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6589 -10154
- package/dist/mcp/cloud-tools.d.ts +3 -0
- package/dist/mcp/cloud-tools.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +1 -2
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +15450 -19705
- package/dist/server/index.js +1704 -37864
- package/dist/server/serve.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/mcp/http.d.ts +0 -17
- package/dist/mcp/http.d.ts.map +0 -1
- package/dist/mcp/http.test.d.ts +0 -2
- package/dist/mcp/http.test.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
|
@@ -23,21 +23,6 @@ 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
|
-
|
|
41
26
|
## REST API
|
|
42
27
|
|
|
43
28
|
```bash
|
|
@@ -46,14 +31,18 @@ contacts-serve
|
|
|
46
31
|
|
|
47
32
|
## Cloud Sync
|
|
48
33
|
|
|
49
|
-
This package supports cloud sync
|
|
34
|
+
This package supports optional cloud sync to a PostgreSQL database:
|
|
50
35
|
|
|
51
36
|
```bash
|
|
52
|
-
|
|
53
|
-
cloud
|
|
54
|
-
cloud
|
|
37
|
+
export HASNA_CONTACTS_CLOUD_DATABASE_URL="postgres://..."
|
|
38
|
+
contacts cloud status
|
|
39
|
+
contacts cloud push
|
|
40
|
+
contacts cloud pull
|
|
55
41
|
```
|
|
56
42
|
|
|
43
|
+
The cloud URL can also be provided as `OPEN_CONTACTS_CLOUD_DATABASE_URL` or
|
|
44
|
+
`CONTACTS_CLOUD_DATABASE_URL`.
|
|
45
|
+
|
|
57
46
|
## Data Directory
|
|
58
47
|
|
|
59
48
|
Data is stored in `~/.hasna/contacts/`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../src/cli/cloud.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+BzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6C5D"}
|