@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 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
@@ -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 via `@hasna/cloud`:
34
+ This package supports optional cloud sync to a PostgreSQL database:
50
35
 
51
36
  ```bash
52
- cloud setup
53
- cloud sync push --service contacts
54
- cloud sync pull --service contacts
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,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerCloudCommands(program: Command): void;
3
+ //# sourceMappingURL=cloud.d.ts.map
@@ -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"}