@hasna/domains 0.0.19 → 0.0.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.
Files changed (45) hide show
  1. package/README.md +145 -53
  2. package/dist/cli/commands/config.d.ts.map +1 -1
  3. package/dist/cli/commands/domain.d.ts.map +1 -1
  4. package/dist/cli/commands/provider.d.ts.map +1 -1
  5. package/dist/cli/commands/providers.d.ts.map +1 -1
  6. package/dist/cli/commands/storage.d.ts +3 -0
  7. package/dist/cli/commands/storage.d.ts.map +1 -0
  8. package/dist/cli/commands/wallet.d.ts +2 -2
  9. package/dist/cli/commands/wallet.d.ts.map +1 -1
  10. package/dist/cli/index.js +6958 -516
  11. package/dist/db/database.d.ts +1 -1
  12. package/dist/db/database.d.ts.map +1 -1
  13. package/dist/db/pg-migrations.d.ts +5 -0
  14. package/dist/db/pg-migrations.d.ts.map +1 -0
  15. package/dist/db/remote-storage.d.ts +10 -0
  16. package/dist/db/remote-storage.d.ts.map +1 -0
  17. package/dist/db/storage-sync.d.ts +55 -0
  18. package/dist/db/storage-sync.d.ts.map +1 -0
  19. package/dist/index.d.ts +5 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +5658 -93
  22. package/dist/lib/brandsight.d.ts +2 -3
  23. package/dist/lib/brandsight.d.ts.map +1 -1
  24. package/dist/lib/capability.d.ts.map +1 -1
  25. package/dist/lib/cloudflare-auth.d.ts +2 -3
  26. package/dist/lib/cloudflare-auth.d.ts.map +1 -1
  27. package/dist/lib/creds-check.d.ts +1 -2
  28. package/dist/lib/creds-check.d.ts.map +1 -1
  29. package/dist/lib/env-aliases.d.ts +43 -0
  30. package/dist/lib/env-aliases.d.ts.map +1 -0
  31. package/dist/lib/namecheap.d.ts +13 -0
  32. package/dist/lib/namecheap.d.ts.map +1 -1
  33. package/dist/lib/registrar.d.ts +36 -2
  34. package/dist/lib/registrar.d.ts.map +1 -1
  35. package/dist/lib/route53.d.ts.map +1 -1
  36. package/dist/lib/sedo.d.ts +7 -0
  37. package/dist/lib/sedo.d.ts.map +1 -1
  38. package/dist/mcp/index.d.ts.map +1 -1
  39. package/dist/mcp/index.js +13638 -10230
  40. package/dist/mcp/storage-tools.d.ts +3 -0
  41. package/dist/mcp/storage-tools.d.ts.map +1 -0
  42. package/dist/storage.d.ts +5 -0
  43. package/dist/storage.d.ts.map +1 -0
  44. package/dist/storage.js +5703 -0
  45. package/package.json +11 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/domains",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Domain portfolio and DNS management for AI agents — CLI + MCP server with SQLite",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -13,6 +13,10 @@
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
15
  "import": "./dist/index.js"
16
+ },
17
+ "./storage": {
18
+ "types": "./dist/storage.d.ts",
19
+ "import": "./dist/storage.js"
16
20
  }
17
21
  },
18
22
  "files": [
@@ -21,7 +25,8 @@
21
25
  "README.md"
22
26
  ],
23
27
  "scripts": {
24
- "build": "bun build src/cli/index.ts --outdir dist/cli --target bun --external ink --external react --external chalk --external ink-text-input --external @modelcontextprotocol/sdk --external @hasna/cloud && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk --external @hasna/cloud && bun build src/index.ts --outdir dist --target bun --external @hasna/cloud && tsc --emitDeclarationOnly --outDir dist",
28
+ "clean": "rm -rf dist",
29
+ "build": "bun run clean && bun build src/cli/index.ts --outdir dist/cli --target bun --external ink --external react --external chalk --external ink-text-input --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk && bun build src/index.ts src/storage.ts --outdir dist --target bun && tsc --emitDeclarationOnly --outDir dist",
25
30
  "typecheck": "tsc --noEmit",
26
31
  "test": "bun test",
27
32
  "dev:cli": "bun run src/cli/index.ts",
@@ -61,19 +66,20 @@
61
66
  "dependencies": {
62
67
  "@aws-sdk/client-route-53": "^3.1017.0",
63
68
  "@aws-sdk/client-route-53-domains": "^3.1017.0",
64
- "@hasna/cloud": "^0.1.24",
65
- "@hasna/contacts": "^0.6.16",
66
- "@hasna/wallets": "^0.1.7",
69
+ "@hasna/contacts": "^0.6.19",
70
+ "@hasna/events": "^0.1.3",
67
71
  "@modelcontextprotocol/sdk": "^1.12.1",
68
72
  "chalk": "^5.4.1",
69
73
  "commander": "^13.1.0",
70
74
  "ink": "^5.2.0",
71
75
  "ink-text-input": "^6.0.0",
76
+ "pg": "^8.13.3",
72
77
  "react": "^18.3.1",
73
78
  "zod": "^3.24.2"
74
79
  },
75
80
  "devDependencies": {
76
81
  "@types/bun": "^1.2.4",
82
+ "@types/pg": "^8.20.0",
77
83
  "@types/react": "^18.3.18",
78
84
  "ink-testing-library": "^4.0.0",
79
85
  "typescript": "^5.7.3"