@referalli/cli 0.4.10 → 0.4.11

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/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to `@referalli/cli` are recorded here. The format follows
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Before 1.0, a minor
6
6
  bump may include breaking changes; they are called out under **Changed**.
7
7
 
8
+ ## 0.4.11 - 2026-11-11
9
+
10
+ ### Fixed
11
+ - `doctor --program`: integration-health findings about org-wide connections follow the billing section's scope, and go into the other-programs line once the program has a connection of its own. Findings with `severity: "info"` show as ℹ.
12
+
8
13
  ## 0.4.10 - 2026-11-11
9
14
 
10
15
  ### Fixed
@@ -236,7 +236,9 @@ async function trackingCheck(client, env, programs, scope) {
236
236
  async function healthChecks(client, scope, billing, tally) {
237
237
  const res = await client.request('GET', '/v1/integration-health');
238
238
  // RF-1: a check about another program's billing connection (billing.<provider>.<id>) goes into the tally.
239
- const others = new Set(billing.filter((c) => outside(scope, c.programIds)).map((c) => c.id));
239
+ // Also org-wide connections, once the scoped programs have connections of their own (as in billingChecks).
240
+ const hasOwn = !!scope && billing.some((c) => scope.some((p) => c.programIds?.includes(p)));
241
+ const others = new Set(billing.filter((c) => outside(scope, c.programIds) || (hasOwn && !c.programIds?.length)).map((c) => c.id));
240
242
  const theirs = (h) => h.id.split('.').some((part) => others.has(part));
241
243
  tally.other += res.checks.filter((h) => !h.ok && theirs(h)).length;
242
244
  return res.checks.filter((h) => !theirs(h)).map((h) => {
@@ -245,7 +247,8 @@ async function healthChecks(client, scope, billing, tally) {
245
247
  return { id, status: 'ok', message: h.detail };
246
248
  const severe = !scope && (h.severity === 'error' || h.severity === 'critical');
247
249
  const fix = [h.fix, h.docs].filter(Boolean).join(' ');
248
- return { id, status: severe ? 'fail' : 'warn', message: h.detail, ...(fix ? { fix } : {}) };
250
+ const status = severe ? 'fail' : h.severity === 'info' ? 'info' : 'warn';
251
+ return { id, status, message: h.detail, ...(fix ? { fix } : {}) };
249
252
  });
250
253
  }
251
254
  /** A program settling by payout with no payout connection: partners can only be paid by hand. Test mode pays through the test rail. */
@@ -1,2 +1,2 @@
1
1
  /** Kept in step with package.json by test/version.test.ts. */
2
- export declare const VERSION = "0.4.10";
2
+ export declare const VERSION = "0.4.11";
@@ -1,2 +1,2 @@
1
1
  /** Kept in step with package.json by test/version.test.ts. */
2
- export const VERSION = '0.4.10';
2
+ export const VERSION = '0.4.11';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@referalli/cli",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "The Referalli command line: sign in, forward webhooks to localhost, trigger test events, tail events and API logs.",
5
5
  "license": "MIT",
6
6
  "type": "module",