@hasna/domains 0.0.38 → 0.0.39

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/dist/cli/index.js CHANGED
@@ -28946,7 +28946,7 @@ var init_bowser = __esm(() => {
28946
28946
 
28947
28947
  // node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
28948
28948
  var require_client2 = __commonJS((exports) => {
28949
- var __dirname = "/home/hasna/.hasna/repos/worktrees/domains/0a933b3e-a459-4bcb-b94d-6ab12a2ec235/node_modules/@aws-sdk/core/dist-cjs/submodules/client";
28949
+ var __dirname = "/home/hasna/.hasna/repos/worktrees/open-domains/3eaa2d7b/node_modules/@aws-sdk/core/dist-cjs/submodules/client";
28950
28950
  var retry = require_retry();
28951
28951
  var protocols = require_protocols();
28952
28952
  var lambdaInvokeStore = require_invoke_store();
@@ -56324,7 +56324,7 @@ WHOIS for ${result.domain} [${result.source}]:`);
56324
56324
  await new Promise((r4) => setTimeout(r4, 1e4));
56325
56325
  const s2 = await getRegistrationStatus(reg.operationId);
56326
56326
  status = s2.status;
56327
- process.stdout.write(` Status: ${status}\r`);
56327
+ writeStdout(` Status: ${status}\r`);
56328
56328
  }
56329
56329
  printLine();
56330
56330
  if (status !== "SUCCESSFUL") {
@@ -56398,7 +56398,7 @@ Setting up ${name}`);
56398
56398
  printLine(` Registrar: ${registrarName} | DNS: ${dnsName}
56399
56399
  `);
56400
56400
  try {
56401
- process.stdout.write(opts.wait ? "[1/5] Checking availability... " : "[1/4] Checking availability... ");
56401
+ writeStdout(opts.wait ? "[1/5] Checking availability... " : "[1/4] Checking availability... ");
56402
56402
  const avail = await checkAvailability3(name);
56403
56403
  if (!avail.available) {
56404
56404
  printLine("not available");
@@ -56418,7 +56418,7 @@ Setting up ${name}`);
56418
56418
  printErrorLine(`Error: ${e4 instanceof Error ? e4.message : String(e4)}`);
56419
56419
  process.exit(1);
56420
56420
  }
56421
- process.stdout.write(opts.wait ? "[2/5] Registering domain... " : "[2/4] Registering domain... ");
56421
+ writeStdout(opts.wait ? "[2/5] Registering domain... " : "[2/4] Registering domain... ");
56422
56422
  const reg = await registerDomain2(name, contact, parseInt(opts.years));
56423
56423
  printLine(`submitted (${reg.operationId})`);
56424
56424
  if (opts.wait) {
@@ -56427,7 +56427,7 @@ Setting up ${name}`);
56427
56427
  await new Promise((r4) => setTimeout(r4, 1e4));
56428
56428
  const s2 = await getRegistrationStatus(reg.operationId);
56429
56429
  status = s2.status;
56430
- process.stdout.write(` Waiting: ${status}...\r`);
56430
+ writeStdout(` Waiting: ${status}...\r`);
56431
56431
  }
56432
56432
  printLine();
56433
56433
  if (status !== "SUCCESSFUL") {
@@ -56436,7 +56436,7 @@ Setting up ${name}`);
56436
56436
  }
56437
56437
  printLine(" Registration confirmed");
56438
56438
  }
56439
- process.stdout.write(opts.wait ? "[3/5] Creating DNS zone... " : "[3/4] Creating DNS zone... ");
56439
+ writeStdout(opts.wait ? "[3/5] Creating DNS zone... " : "[3/4] Creating DNS zone... ");
56440
56440
  let nameservers = [];
56441
56441
  if (dnsName === "cloudflare") {
56442
56442
  const zone = await ensureZone(name);
@@ -56449,7 +56449,7 @@ Setting up ${name}`);
56449
56449
  }
56450
56450
  if (nameservers.length > 0) {
56451
56451
  if (opts.wait) {
56452
- process.stdout.write("[4/5] Updating registrar nameservers... ");
56452
+ writeStdout("[4/5] Updating registrar nameservers... ");
56453
56453
  if (registrarName !== "route53") {
56454
56454
  printLine("skipped");
56455
56455
  printErrorLine("Only Route53 nameserver delegation is currently implemented for setup.");
@@ -56461,7 +56461,7 @@ Setting up ${name}`);
56461
56461
  printLine(" Nameserver delegation skipped until registration completes; re-run with --wait or use domains r53 domain-info/status first.");
56462
56462
  }
56463
56463
  }
56464
- process.stdout.write(opts.wait ? "[5/5] Adding to portfolio... " : "[4/4] Adding to portfolio... ");
56464
+ writeStdout(opts.wait ? "[5/5] Adding to portfolio... " : "[4/4] Adding to portfolio... ");
56465
56465
  const existing = await getDomainByName2(name);
56466
56466
  const dbInput = { registrar: `AWS Route 53`, status: "active", auto_renew: true, nameservers };
56467
56467
  if (existing)
@@ -58711,7 +58711,7 @@ ${compactHint(page, "record(s)", "Use --all for every record or --json for full
58711
58711
  await new Promise((r4) => setTimeout(r4, 1e4));
58712
58712
  const s2 = await getRegistrationStatus(reg.operationId);
58713
58713
  status = s2.status;
58714
- process.stdout.write(` Status: ${status}\r`);
58714
+ writeStdout(` Status: ${status}\r`);
58715
58715
  }
58716
58716
  printLine();
58717
58717
  if (status !== "SUCCESSFUL") {
package/dist/index.js CHANGED
@@ -12578,7 +12578,7 @@ var init_bowser = __esm(() => {
12578
12578
 
12579
12579
  // node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
12580
12580
  var require_client2 = __commonJS((exports) => {
12581
- var __dirname = "/home/hasna/.hasna/repos/worktrees/domains/0a933b3e-a459-4bcb-b94d-6ab12a2ec235/node_modules/@aws-sdk/core/dist-cjs/submodules/client";
12581
+ var __dirname = "/home/hasna/.hasna/repos/worktrees/open-domains/3eaa2d7b/node_modules/@aws-sdk/core/dist-cjs/submodules/client";
12582
12582
  var retry = require_retry();
12583
12583
  var protocols = require_protocols();
12584
12584
  var lambdaInvokeStore = require_invoke_store();
package/dist/mcp/index.js CHANGED
@@ -15752,7 +15752,7 @@ var init_bowser = __esm(() => {
15752
15752
 
15753
15753
  // node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
15754
15754
  var require_client2 = __commonJS((exports) => {
15755
- var __dirname = "/home/hasna/.hasna/repos/worktrees/domains/0a933b3e-a459-4bcb-b94d-6ab12a2ec235/node_modules/@aws-sdk/core/dist-cjs/submodules/client";
15755
+ var __dirname = "/home/hasna/.hasna/repos/worktrees/open-domains/3eaa2d7b/node_modules/@aws-sdk/core/dist-cjs/submodules/client";
15756
15756
  var retry = require_retry();
15757
15757
  var protocols = require_protocols();
15758
15758
  var lambdaInvokeStore = require_invoke_store();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/domains",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "Domain portfolio, registrar, marketplace, and DNS management for AI agents — CLI + MCP + HTTP API + SDK, local SQLite or cloud Postgres",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",