@myapihq/cli 2.23.1 → 2.23.2

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.
@@ -30,8 +30,20 @@ async function create(addressArg, flags) {
30
30
  error('Missing required arguments.\nUsage: myapi email mailbox create <user@domain> [--display-name <name>]\n or: myapi email mailbox create --username <u> --domain <d> [--display-name <name>]\n(Or set default: myapi config set-domain <domain>)');
31
31
  }
32
32
  const res = await sdkEmail.createMailbox(config.api_key, domain, username, flags['display-name']);
33
- // Backend response sometimes omits address; we know it from the inputs.
34
- success(`Mailbox created: ${res.address || `${username}@${domain}`}`);
33
+ // The address comes back as `mailbox`. It is not "sometimes omitted" — the
34
+ // previous comment here encoded a wrong theory, which turned a permanent
35
+ // contract mismatch into an imagined intermittent one and kept it patched
36
+ // instead of reported. Kept the fallback anyway: the address is derivable
37
+ // from the inputs, and a create that succeeded should still print what it
38
+ // made if the field ever moves again.
39
+ success(`Mailbox created: ${res.mailbox || `${username}@${domain}`}`);
40
+ // A warning on a 2xx means something is configured but incomplete — here, a
41
+ // missing CAN-SPAM mailing address, which refuses every send LATER rather
42
+ // than now. Printing it while the customer is set up in front of the
43
+ // terminal is the whole point of the backend adding it; dropping it silently
44
+ // meant the fix reached nobody using the CLI.
45
+ if (res.warning)
46
+ info(`› ${res.warning}`);
35
47
  }
36
48
  async function list(flags) {
37
49
  const config = requireConfig();
@@ -316,7 +316,14 @@ export async function runs(id, flags) {
316
316
  error: r.error_message || '',
317
317
  })), {
318
318
  flags,
319
- empty: 'No runs recorded yet for this function.',
319
+ // An empty list here means "we do not measure this", not "it did not
320
+ // happen": function_runs has one writer, the workflow engine. A direct call
321
+ // to the invocation URL is served at the edge and never reaches the backend
322
+ // to be recorded. ImmoPilot read the old sentence as proof the API was
323
+ // never called and ruled out the branch of a login investigation that was
324
+ // the actual problem — the function had run hundreds of times that day.
325
+ empty: 'No workflow-triggered runs. Direct calls to the invocation URL are served at the edge '
326
+ + 'and are not recorded here, so an empty list does NOT mean the function was not called.',
320
327
  });
321
328
  }
322
329
  // ── Dispatcher ───────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@myapihq/cli",
3
3
  "license": "Apache-2.0",
4
- "version": "2.23.1",
4
+ "version": "2.23.2",
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.23.1"
49
+ "@myapihq/sdk": "^2.23.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^25.6.0",