sekura 0.5.10 → 0.5.12

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/errors.js CHANGED
@@ -10,8 +10,13 @@ export async function reach(url, init) {
10
10
  }
11
11
  }
12
12
  export function refusal(data, status) {
13
- if (status >= 500)
14
- return serverTrouble(status);
13
+ // A 5xx that names its reason says it: "GitHub is not answering sign-ins just
14
+ // now" tells the person to wait a minute, where "had a problem answering
15
+ // (HTTP 503)" read as Sekura being down (Varsha's v5 test, 30 November 2026).
16
+ if (status >= 500) {
17
+ const why = typeof data.error_description === 'string' ? data.error_description.trim() : '';
18
+ return why ? `${HOST}: ${why.replace(/\.$/, '')} (HTTP ${status}). If it keeps happening, write to ${SUPPORT}.` : serverTrouble(status);
19
+ }
15
20
  const why = typeof data.error_description === 'string' ? data.error_description : typeof data.error === 'string' ? data.error : `HTTP ${status}`;
16
21
  return `${HOST} refused the sign-in: ${why}. Run the command again; if it keeps happening, write to ${SUPPORT}.`;
17
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sekura",
3
- "version": "0.5.10",
3
+ "version": "0.5.12",
4
4
  "description": "Set up Sekura and scan your GitHub repositories from the terminal, and connect your coding tools: npx sekura@latest",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,8 +53,8 @@ the first word:
53
53
  is already on, it is a schedule change only: `quoteSchedule`, then the two-step
54
54
  rule (`updateSchedule`), never `quotePlanChange`. Otherwise `quotePlanChange` and
55
55
  the two-step rule (`changePlan`). Say the money as the quote does: an upgrade
56
- charges the difference for the rest of the month now; a downgrade charges nothing
57
- until the renewal.
56
+ charges the whole difference between the two monthly prices now; a downgrade
57
+ charges nothing. The renewal date does not change.
58
58
  - `schedule <owner/repo>`: `quoteSchedule` for that repository with the schedule
59
59
  the user gives (ask for one if they gave none), then the two-step rule.
60
60
  - `plans`: `getPlans`. `billing`: `getBilling`.
@@ -110,7 +110,7 @@ Quote, then confirm. The quote changes nothing and charges nothing:
110
110
  - `quoteScan` → `startScan`: a one-time scan of one repository.
111
111
  - `quoteAlways` → `startAlways`: a monthly plan (Weekly or More frequently) for one repository.
112
112
  - `quoteSchedule` → `updateSchedule`: change when a repository on a monthly plan is scanned. It charges nothing.
113
- - `quotePlanChange` → `changePlan`: move a repository between Weekly and More frequently. Moving up charges the difference for the rest of the month now; moving down charges nothing until the renewal.
113
+ - `quotePlanChange` → `changePlan`: move a repository between Weekly and More frequently. Moving up charges the whole difference between the two monthly prices now and keeps the renewal date; moving down charges nothing and refunds nothing, and the lower price applies from the renewal.
114
114
  - `quoteRunNow` → `runNow`: run a monthly plan's next scan now: brought forward on a schedule, started on demand. It is one of the plan's own runs, so there is no charge. Over the plan's limit it is refused with the first day a scan may start; tell the user that day.
115
115
 
116
116
  Preview, then act. The preview cancels nothing: