@hasna/domains 0.0.9 → 0.0.10
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 +2 -1
- package/README.md +15 -0
- package/dist/cli/commands/domain.d.ts.map +1 -1
- package/dist/cli/commands/domains.d.ts.map +1 -1
- package/dist/cli/commands/history.d.ts +3 -0
- package/dist/cli/commands/history.d.ts.map +1 -0
- package/dist/cli/commands/outreach.d.ts +3 -0
- package/dist/cli/commands/outreach.d.ts.map +1 -0
- package/dist/cli/commands/owner.d.ts +3 -0
- package/dist/cli/commands/owner.d.ts.map +1 -0
- package/dist/cli/commands/research.d.ts +3 -0
- package/dist/cli/commands/research.d.ts.map +1 -0
- package/dist/cli/commands/sedo.d.ts +3 -0
- package/dist/cli/commands/sedo.d.ts.map +1 -0
- package/dist/cli/commands/wallet.d.ts +29 -0
- package/dist/cli/commands/wallet.d.ts.map +1 -0
- package/dist/cli/index.js +25851 -32666
- package/dist/db/dns-tools.d.ts +70 -1
- package/dist/db/dns-tools.d.ts.map +1 -1
- package/dist/db/domain-history.d.ts +80 -0
- package/dist/db/domain-history.d.ts.map +1 -0
- package/dist/db/domain-owners.d.ts +80 -0
- package/dist/db/domain-owners.d.ts.map +1 -0
- package/dist/db/domain-records.d.ts +105 -4
- package/dist/db/domain-records.d.ts.map +1 -1
- package/dist/db/domain-reputation.d.ts +80 -0
- package/dist/db/domain-reputation.d.ts.map +1 -0
- package/dist/db/domain-research.d.ts +51 -0
- package/dist/db/domain-research.d.ts.map +1 -0
- package/dist/db/domains.d.ts +2 -2
- package/dist/db/domains.d.ts.map +1 -1
- package/dist/db/migrations.d.ts.map +1 -1
- package/dist/db/monitoring.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +688 -9662
- package/dist/lib/brandsight.d.ts.map +1 -1
- package/dist/lib/registrar.d.ts +4 -0
- package/dist/lib/registrar.d.ts.map +1 -1
- package/dist/lib/route53.d.ts.map +1 -1
- package/dist/lib/sedo.d.ts +108 -0
- package/dist/lib/sedo.d.ts.map +1 -0
- package/dist/mcp/http.d.ts +17 -0
- package/dist/mcp/http.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +2 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +2264 -10724
- package/package.json +4 -2
package/LICENSE
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
Apache License
|
|
2
3
|
Version 2.0, January 2004
|
|
3
4
|
http://www.apache.org/licenses/
|
|
@@ -175,7 +176,7 @@
|
|
|
175
176
|
|
|
176
177
|
END OF TERMS AND CONDITIONS
|
|
177
178
|
|
|
178
|
-
Copyright 2026
|
|
179
|
+
Copyright 2026 Hasna, Inc.
|
|
179
180
|
|
|
180
181
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
182
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -100,6 +100,21 @@ Add to your Claude/agent config:
|
|
|
100
100
|
}
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
## HTTP mode
|
|
104
|
+
|
|
105
|
+
Long-lived Streamable HTTP transport for shared agent sessions (binds `127.0.0.1` only):
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
domains-mcp --http # default port 8814
|
|
109
|
+
domains-mcp --http --port 8814
|
|
110
|
+
MCP_HTTP=1 MCP_HTTP_PORT=8814 domains-mcp
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
- `GET /health` → `{"status":"ok","name":"domains"}`
|
|
114
|
+
- `POST /mcp` — Streamable HTTP MCP endpoint
|
|
115
|
+
|
|
116
|
+
Stdio remains the default transport for gradual rollout.
|
|
117
|
+
|
|
103
118
|
## Environment Variables
|
|
104
119
|
|
|
105
120
|
| Variable | Description |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiDzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA4tB5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domains.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/domains.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"domains.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/domains.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuBzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyb7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAqI7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outreach.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/outreach.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmH9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owner.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/owner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0BzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA4T3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/research.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA4K9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sedo.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/sedo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAgM1D"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wallet payment integration for domain purchases
|
|
3
|
+
*
|
|
4
|
+
* Uses @hasna/wallets virtual cards to pay for domain registrations,
|
|
5
|
+
* renewals, and marketplace purchases (Sedo, etc.)
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "commander";
|
|
8
|
+
export interface WalletCard {
|
|
9
|
+
id: string;
|
|
10
|
+
provider_id: string;
|
|
11
|
+
external_id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
last_four: string;
|
|
14
|
+
brand: string;
|
|
15
|
+
balance: number;
|
|
16
|
+
currency: string;
|
|
17
|
+
}
|
|
18
|
+
export interface WalletTransaction {
|
|
19
|
+
id: string;
|
|
20
|
+
card_id: string;
|
|
21
|
+
amount: number;
|
|
22
|
+
currency: string;
|
|
23
|
+
type: string;
|
|
24
|
+
status: string;
|
|
25
|
+
merchant: string | null;
|
|
26
|
+
description: string | null;
|
|
27
|
+
}
|
|
28
|
+
export declare function registerWalletCommand(program: Command): void;
|
|
29
|
+
//# sourceMappingURL=wallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/wallet.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AA2BD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyL5D"}
|