@myapihq/cli 2.11.0 → 2.11.1

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.
@@ -53,6 +53,17 @@ async function activateSending(flags) {
53
53
  if (!address)
54
54
  error('Missing required arguments.\nUsage: myapi email mailbox activate-sending --address <email>');
55
55
  const res = await sdkEmail.activateSending(config.api_key, address);
56
+ // A repaired account was broken a moment ago: it held a mailbox that reported
57
+ // sending_enabled while the ACCOUNT had no credential behind it, so every send
58
+ // failed with nothing in the mailbox or domain to explain why. Reporting that
59
+ // as an ordinary activation hides the one fact the caller needs — that the
60
+ // thing which was failing is now fixed, and that they should retry.
61
+ if (res.repaired) {
62
+ success(`Sending repaired: ${address} — the account had no sending credential; it does now.`);
63
+ info('No charge was made — the mailbox was paid for at its first activation.');
64
+ info('Sending should work immediately. Retry the send that was failing.');
65
+ return;
66
+ }
56
67
  success(`Sending activated: ${address} (${res.emails_quota_remaining} emails/day quota)`);
57
68
  }
58
69
  async function setForwarding(address, forwardTo, _flags) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@myapihq/cli",
3
3
  "license": "Apache-2.0",
4
- "version": "2.11.0",
4
+ "version": "2.11.1",
5
5
  "description": "MyAPI command-line interface",
6
6
  "repository": {
7
7
  "type": "git",
@@ -46,7 +46,7 @@
46
46
  "lint:skills:strict": "node scripts/copy-skills.js && node scripts/lint-skills.js --strict"
47
47
  },
48
48
  "dependencies": {
49
- "@myapihq/sdk": "^2.11.0"
49
+ "@myapihq/sdk": "^2.11.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^25.6.0",