@hasna/contacts 0.6.22 → 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 +24 -6
- package/dist/cli/commands/core.d.ts.map +1 -1
- package/dist/cli/index.js +1350 -269
- package/dist/cli/storage.d.ts.map +1 -1
- package/dist/db/database.d.ts.map +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/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1002 -7
- package/dist/mcp/index.js +1073 -60
- package/dist/mcp/storage-tools.d.ts.map +1 -1
- package/dist/server/index.js +1073 -60
- package/package.json +8 -4
- package/dist/cli/storage-contract.test.d.ts +0 -2
- package/dist/cli/storage-contract.test.d.ts.map +0 -1
- 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/database.test.d.ts +0 -2
- package/dist/db/database.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/sqlite-adapter.test.d.ts +0 -2
- package/dist/db/sqlite-adapter.test.d.ts.map +0 -1
- package/dist/db/storage.test.d.ts +0 -2
- package/dist/db/storage.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/dist/mcp/storage-contract.test.d.ts +0 -2
- package/dist/mcp/storage-contract.test.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/contacts",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.23",
|
|
4
4
|
"description": "Contact management for AI coding agents — CLI + MCP + Web",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,15 +23,17 @@
|
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"clean": "rm -rf dist dashboard/dist",
|
|
27
|
+
"clean:core": "rm -rf dist",
|
|
28
|
+
"build": "bun run clean && cd dashboard && bun run build && cd .. && bun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external pg --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external pg --external @modelcontextprotocol/sdk && bun build src/server/index.ts --outdir dist/server --target bun --external pg && bun build src/index.ts --outdir dist --target bun --external pg && tsc -p tsconfig.build.json --emitDeclarationOnly --outDir dist",
|
|
29
|
+
"build:core": "bun run clean:core && bun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external pg --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external pg --external @modelcontextprotocol/sdk && bun build src/server/index.ts --outdir dist/server --target bun --external pg && bun build src/index.ts --outdir dist --target bun --external pg && tsc -p tsconfig.build.json --emitDeclarationOnly --outDir dist",
|
|
28
30
|
"typecheck": "tsc --noEmit",
|
|
29
31
|
"test": "bun test",
|
|
30
32
|
"dev:cli": "bun run src/cli/index.tsx",
|
|
31
33
|
"dev:mcp": "bun run src/mcp/index.ts",
|
|
32
34
|
"dev:serve": "bun run src/server/index.ts",
|
|
33
35
|
"prepublishOnly": "bun run typecheck && bun test && bun run build",
|
|
34
|
-
"postinstall": "mkdir -p $HOME/.hasna/contacts/{backups,images,documents} 2>/dev/null || true"
|
|
36
|
+
"postinstall": "install -d -m 700 \"$HOME/.hasna/contacts\" \"$HOME/.hasna/contacts/backups\" \"$HOME/.hasna/contacts/images\" \"$HOME/.hasna/contacts/documents\" 2>/dev/null || mkdir -p $HOME/.hasna/contacts/{backups,images,documents} 2>/dev/null || true"
|
|
35
37
|
},
|
|
36
38
|
"keywords": [
|
|
37
39
|
"contacts",
|
|
@@ -66,11 +68,13 @@
|
|
|
66
68
|
"chalk": "^5.4.1",
|
|
67
69
|
"commander": "^13.1.0",
|
|
68
70
|
"ink": "^5.2.0",
|
|
71
|
+
"pg": "^8.13.3",
|
|
69
72
|
"react": "^18.3.1",
|
|
70
73
|
"zod": "^3.24.2"
|
|
71
74
|
},
|
|
72
75
|
"devDependencies": {
|
|
73
76
|
"@types/bun": "^1.2.4",
|
|
77
|
+
"@types/pg": "^8.11.11",
|
|
74
78
|
"@types/react": "^18.3.18",
|
|
75
79
|
"typescript": "^5.7.3"
|
|
76
80
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage-contract.test.d.ts","sourceRoot":"","sources":["../../src/cli/storage-contract.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activity.test.d.ts","sourceRoot":"","sources":["../../src/db/activity.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applications.test.d.ts","sourceRoot":"","sources":["../../src/db/applications.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"companies.test.d.ts","sourceRoot":"","sources":["../../src/db/companies.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact-tasks.test.d.ts","sourceRoot":"","sources":["../../src/db/contact-tasks.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.test.d.ts","sourceRoot":"","sources":["../../src/db/contacts.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coordination.test.d.ts","sourceRoot":"","sources":["../../src/db/coordination.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"database.test.d.ts","sourceRoot":"","sources":["../../src/db/database.test.ts"],"names":[],"mappings":""}
|
package/dist/db/deals.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deals.test.d.ts","sourceRoot":"","sources":["../../src/db/deals.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documents.test.d.ts","sourceRoot":"","sources":["../../src/db/documents.test.ts"],"names":[],"mappings":""}
|
package/dist/db/events.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.test.d.ts","sourceRoot":"","sources":["../../src/db/events.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-history.test.d.ts","sourceRoot":"","sources":["../../src/db/field-history.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"freshness.test.d.ts","sourceRoot":"","sources":["../../src/db/freshness.test.ts"],"names":[],"mappings":""}
|
package/dist/db/graph.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph.test.d.ts","sourceRoot":"","sources":["../../src/db/graph.test.ts"],"names":[],"mappings":""}
|
package/dist/db/groups.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groups.test.d.ts","sourceRoot":"","sources":["../../src/db/groups.test.ts"],"names":[],"mappings":""}
|
package/dist/db/health.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"health.test.d.ts","sourceRoot":"","sources":["../../src/db/health.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"identity.test.d.ts","sourceRoot":"","sources":["../../src/db/identity.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"job-history.test.d.ts","sourceRoot":"","sources":["../../src/db/job-history.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"learnings.test.d.ts","sourceRoot":"","sources":["../../src/db/learnings.test.ts"],"names":[],"mappings":""}
|
package/dist/db/notes.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notes.test.d.ts","sourceRoot":"","sources":["../../src/db/notes.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org-chart.test.d.ts","sourceRoot":"","sources":["../../src/db/org-chart.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org-members.test.d.ts","sourceRoot":"","sources":["../../src/db/org-members.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relationships.test.d.ts","sourceRoot":"","sources":["../../src/db/relationships.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signals.test.d.ts","sourceRoot":"","sources":["../../src/db/signals.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-adapter.test.d.ts","sourceRoot":"","sources":["../../src/db/sqlite-adapter.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.test.d.ts","sourceRoot":"","sources":["../../src/db/storage.test.ts"],"names":[],"mappings":""}
|
package/dist/db/tags.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tags.test.d.ts","sourceRoot":"","sources":["../../src/db/tags.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vendor-comms.test.d.ts","sourceRoot":"","sources":["../../src/db/vendor-comms.test.ts"],"names":[],"mappings":""}
|
package/dist/lib/audit.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit.test.d.ts","sourceRoot":"","sources":["../../src/lib/audit.test.ts"],"names":[],"mappings":""}
|
package/dist/lib/brief.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brief.test.d.ts","sourceRoot":"","sources":["../../src/lib/brief.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.test.d.ts","sourceRoot":"","sources":["../../src/lib/config.test.ts"],"names":[],"mappings":""}
|
package/dist/lib/dedup.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dedup.test.d.ts","sourceRoot":"","sources":["../../src/lib/dedup.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.test.d.ts","sourceRoot":"","sources":["../../src/lib/export.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gmail-import.test.d.ts","sourceRoot":"","sources":["../../src/lib/gmail-import.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"google-contacts.test.d.ts","sourceRoot":"","sources":["../../src/lib/google-contacts.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"import.test.d.ts","sourceRoot":"","sources":["../../src/lib/import.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signature-parser.test.d.ts","sourceRoot":"","sources":["../../src/lib/signature-parser.test.ts"],"names":[],"mappings":""}
|
package/dist/lib/stats.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stats.test.d.ts","sourceRoot":"","sources":["../../src/lib/stats.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timeline.test.d.ts","sourceRoot":"","sources":["../../src/lib/timeline.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upcoming.test.d.ts","sourceRoot":"","sources":["../../src/lib/upcoming.test.ts"],"names":[],"mappings":""}
|
package/dist/mcp/http.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http.test.d.ts","sourceRoot":"","sources":["../../src/mcp/http.test.ts"],"names":[],"mappings":""}
|
package/dist/mcp/mcp.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.test.d.ts","sourceRoot":"","sources":["../../src/mcp/mcp.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage-contract.test.d.ts","sourceRoot":"","sources":["../../src/mcp/storage-contract.test.ts"],"names":[],"mappings":""}
|