@hasna/contacts 0.6.21 → 0.6.23
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/README.md +30 -5
- package/dist/cli/commands/core.d.ts.map +1 -1
- package/dist/cli/index.js +2728 -11458
- package/dist/cli/storage.d.ts +3 -0
- package/dist/cli/storage.d.ts.map +1 -0
- package/dist/db/database.d.ts +2 -2
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/feedback.d.ts +15 -0
- package/dist/db/feedback.d.ts.map +1 -0
- package/dist/db/pg-migrations.d.ts +1 -1
- package/dist/db/remote-storage.d.ts +14 -0
- package/dist/db/remote-storage.d.ts.map +1 -0
- package/dist/db/remote-sync.d.ts +49 -0
- package/dist/db/remote-sync.d.ts.map +1 -0
- package/dist/db/sqlite-adapter.d.ts +15 -0
- package/dist/db/sqlite-adapter.d.ts.map +1 -0
- package/dist/db/storage.d.ts +15 -0
- package/dist/db/storage.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1825 -10067
- package/dist/mcp/index.js +2638 -11449
- package/dist/mcp/storage-tools.d.ts +3 -0
- package/dist/mcp/storage-tools.d.ts.map +1 -0
- package/dist/server/index.js +2887 -11700
- package/package.json +10 -7
- package/dist/db/activity.test.d.ts +0 -2
- package/dist/db/activity.test.d.ts.map +0 -1
- package/dist/db/applications.test.d.ts +0 -2
- package/dist/db/applications.test.d.ts.map +0 -1
- package/dist/db/companies.test.d.ts +0 -2
- package/dist/db/companies.test.d.ts.map +0 -1
- package/dist/db/contact-tasks.test.d.ts +0 -2
- package/dist/db/contact-tasks.test.d.ts.map +0 -1
- package/dist/db/contacts.test.d.ts +0 -2
- package/dist/db/contacts.test.d.ts.map +0 -1
- package/dist/db/coordination.test.d.ts +0 -2
- package/dist/db/coordination.test.d.ts.map +0 -1
- package/dist/db/deals.test.d.ts +0 -2
- package/dist/db/deals.test.d.ts.map +0 -1
- package/dist/db/documents.test.d.ts +0 -2
- package/dist/db/documents.test.d.ts.map +0 -1
- package/dist/db/events.test.d.ts +0 -2
- package/dist/db/events.test.d.ts.map +0 -1
- package/dist/db/field-history.test.d.ts +0 -2
- package/dist/db/field-history.test.d.ts.map +0 -1
- package/dist/db/freshness.test.d.ts +0 -2
- package/dist/db/freshness.test.d.ts.map +0 -1
- package/dist/db/graph.test.d.ts +0 -2
- package/dist/db/graph.test.d.ts.map +0 -1
- package/dist/db/groups.test.d.ts +0 -2
- package/dist/db/groups.test.d.ts.map +0 -1
- package/dist/db/health.test.d.ts +0 -2
- package/dist/db/health.test.d.ts.map +0 -1
- package/dist/db/identity.test.d.ts +0 -2
- package/dist/db/identity.test.d.ts.map +0 -1
- package/dist/db/job-history.test.d.ts +0 -2
- package/dist/db/job-history.test.d.ts.map +0 -1
- package/dist/db/learnings.test.d.ts +0 -2
- package/dist/db/learnings.test.d.ts.map +0 -1
- package/dist/db/notes.test.d.ts +0 -2
- package/dist/db/notes.test.d.ts.map +0 -1
- package/dist/db/org-chart.test.d.ts +0 -2
- package/dist/db/org-chart.test.d.ts.map +0 -1
- package/dist/db/org-members.test.d.ts +0 -2
- package/dist/db/org-members.test.d.ts.map +0 -1
- package/dist/db/relationships.test.d.ts +0 -2
- package/dist/db/relationships.test.d.ts.map +0 -1
- package/dist/db/signals.test.d.ts +0 -2
- package/dist/db/signals.test.d.ts.map +0 -1
- package/dist/db/tags.test.d.ts +0 -2
- package/dist/db/tags.test.d.ts.map +0 -1
- package/dist/db/vendor-comms.test.d.ts +0 -2
- package/dist/db/vendor-comms.test.d.ts.map +0 -1
- package/dist/lib/audit.test.d.ts +0 -2
- package/dist/lib/audit.test.d.ts.map +0 -1
- package/dist/lib/brief.test.d.ts +0 -2
- package/dist/lib/brief.test.d.ts.map +0 -1
- package/dist/lib/config.test.d.ts +0 -2
- package/dist/lib/config.test.d.ts.map +0 -1
- package/dist/lib/dedup.test.d.ts +0 -2
- package/dist/lib/dedup.test.d.ts.map +0 -1
- package/dist/lib/export.test.d.ts +0 -2
- package/dist/lib/export.test.d.ts.map +0 -1
- package/dist/lib/gmail-import.test.d.ts +0 -2
- package/dist/lib/gmail-import.test.d.ts.map +0 -1
- package/dist/lib/google-contacts.test.d.ts +0 -2
- package/dist/lib/google-contacts.test.d.ts.map +0 -1
- package/dist/lib/import.test.d.ts +0 -2
- package/dist/lib/import.test.d.ts.map +0 -1
- package/dist/lib/signature-parser.test.d.ts +0 -2
- package/dist/lib/signature-parser.test.d.ts.map +0 -1
- package/dist/lib/stats.test.d.ts +0 -2
- package/dist/lib/stats.test.d.ts.map +0 -1
- package/dist/lib/timeline.test.d.ts +0 -2
- package/dist/lib/timeline.test.d.ts.map +0 -1
- package/dist/lib/upcoming.test.d.ts +0 -2
- package/dist/lib/upcoming.test.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/dist/mcp/mcp.test.d.ts +0 -2
- package/dist/mcp/mcp.test.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -44,16 +44,41 @@ The REST server (`contacts-serve`) also exposes `/health` and `/mcp` when runnin
|
|
|
44
44
|
contacts-serve
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
##
|
|
47
|
+
## Storage
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
Contacts owns its local SQLite storage directly. It does not depend on shared
|
|
50
|
+
cloud runtime commands or MCP tools.
|
|
50
51
|
|
|
51
52
|
```bash
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
contacts storage status
|
|
54
|
+
contacts storage status --json
|
|
55
|
+
contacts storage push --tables contacts,companies
|
|
56
|
+
contacts storage pull --tables contacts,companies
|
|
57
|
+
contacts storage sync
|
|
55
58
|
```
|
|
56
59
|
|
|
60
|
+
Optional cross-machine sync uses contacts-owned PostgreSQL storage. Set one of:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
export HASNA_CONTACTS_POSTGRES_URL="postgres://..."
|
|
64
|
+
# or OPEN_CONTACTS_POSTGRES_URL / CONTACTS_POSTGRES_URL
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Remote PostgreSQL connections require verified TLS for non-local hosts. Local
|
|
68
|
+
PostgreSQL development URLs can disable TLS explicitly.
|
|
69
|
+
|
|
70
|
+
By default, remote sync covers contacts, companies, tags, and the other
|
|
71
|
+
non-sensitive relationship tables. `webhooks`, `contact_documents`, and
|
|
72
|
+
`contact_health` are excluded until explicitly requested with `--tables`. Sync
|
|
73
|
+
is a non-destructive merge: it inserts or updates rows and does not propagate
|
|
74
|
+
deletes or tombstones.
|
|
75
|
+
|
|
76
|
+
`contacts cloud status`, `contacts cloud push`, `contacts cloud pull`, and
|
|
77
|
+
`contacts cloud sync` remain compatibility aliases for the contacts-owned
|
|
78
|
+
storage commands. They do not load or depend on the deprecated shared cloud
|
|
79
|
+
runtime. `contacts cloud feedback` saves feedback locally in the contacts
|
|
80
|
+
database.
|
|
81
|
+
|
|
57
82
|
## Data Directory
|
|
58
83
|
|
|
59
84
|
Data is stored in `~/.hasna/contacts/`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/core.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6CzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/core.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6CzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA03B3D"}
|