sekura 0.4.0 → 0.4.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.
package/README.md CHANGED
@@ -32,7 +32,7 @@ Every scan you then ask for in your coding tool is quoted first, with the price
32
32
 
33
33
  The quote lists how you can pay:
34
34
 
35
- - **A saved card**, shown only by brand and last four (`Visa •••• •••• •••• 4242`). Pick one and it is charged right there, with no browser: `Charged $199 to Visa ending 4242`, then the scan id and link.
35
+ - **A saved card**, shown only by brand and last four (`Visa •••• •••• •••• 4242`). Pick one and it is charged right there, with no browser: `Charged $10 to Visa ending 4242`, then the scan id and link.
36
36
  - **Pay with a Checkout link.** The agent runs `npx sekura@latest pay "<link>" --plan <id>`, which opens Stripe Checkout in your default browser and waits. When the payment lands, the same session shows the scan id and link. Your first payment is always made this way, and the card you use is saved for next time.
37
37
  - **Change payment method.** The agent runs `npx sekura@latest billing --open`, which opens the page where you add or change a card, then shows the updated list.
38
38
 
@@ -5,6 +5,12 @@ import { openableLink, paymentState, scanLink } from '../payment.js';
5
5
  import { cross, dot, say, tick, waitFor } from '../ui.js';
6
6
  export const PAY_EXIT = { started: 0, paid: 0, notSignedIn: 4, cancelled: 3, timeout: 2, badLink: 1 };
7
7
  const planName = (p) => (p?.owner && p?.name ? `${p.owner}/${p.name}` : 'the repository');
8
+ // The names a user reads for a monthly plan, keyed by the tier id the server
9
+ // sends, which stays as it is (26 November 2026 pricing). Until 27 November
10
+ // 2026 this line printed a retired plan name for 'always' and named no plan at
11
+ // all for 'pro'. 'plus' is retired but still held by some accounts, so it reads
12
+ // as "Your monthly plan" rather than by its old name.
13
+ const MONTHLY = { always: 'Weekly', pro: 'More frequently', plus: 'Your monthly plan' };
8
14
  const minutes = (raw, fallback) => {
9
15
  const n = Number(raw);
10
16
  return Number.isFinite(n) && n > 0 ? Math.min(n, 60) : fallback;
@@ -21,7 +27,8 @@ function sayOpened(link, opened) {
21
27
  function sayOutcome(state, plan) {
22
28
  const repo = planName(plan);
23
29
  if (state.kind === 'started') {
24
- const what = plan?.plan === 'always' ? `Sekura Always is on for ${repo}, and its first scan` : `The scan of ${repo}`;
30
+ const monthly = plan?.plan ? MONTHLY[plan.plan] : undefined;
31
+ const what = monthly ? `${monthly} is on for ${repo}, and its first scan` : `The scan of ${repo}`;
25
32
  say(`${tick} Payment received. ${what} has started: scan id ${state.scanId} (${state.scanStatus}).`);
26
33
  say(` ${scanLink(state.scanId)}`);
27
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sekura",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Connect your coding tool to Sekura in one command: npx sekura@latest init",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: sekura
3
- description: Use when the user wants a GitHub repository scanned for vulnerabilities, wants to read scan findings or a report, or wants to put a repository on a recurring Sekura scan. Covers the sekura MCP tools and the rule that every scan and plan is quoted first and started only after the user agrees.
4
- argument-hint: "[help | repos | scan <owner/repo> | scans | scan-status <scan> | findings <scan> | report <scan> | cancel <scan|owner/repo> | always <owner/repo> | schedule <owner/repo> | plans | billing]"
3
+ description: Use when the user wants a GitHub repository scanned for vulnerabilities, wants to read scan findings or a report, or wants to put a repository on a monthly plan. Covers the sekura MCP tools and the rule that every scan and plan is quoted first and started only after the user agrees.
4
+ argument-hint: "[help | repos | scan <owner/repo> | scans | scan-status <scan> | findings <scan> | report <scan> | cancel <scan|owner/repo> | monthly <owner/repo> | schedule <owner/repo> | plans | billing]"
5
5
  ---
6
6
 
7
7
  # Sekura
@@ -25,18 +25,26 @@ the first word:
25
25
  anything the account still needs on sekura.ai, and the repositories Sekura can
26
26
  scan, then end with "Type `/sekura help` for commands."
27
27
  - `repos`: `listRepositories`.
28
- - `scan <owner/repo>`: `quoteScan` for that repository, then the two-step rule below.
28
+ - `scan <owner/repo>`: `quoteScan` for that repository (a one-time scan), then the two-step rule below.
29
29
  - `scans`: `listScans`.
30
30
  - `scan-status <scan>`: `getScan`. `findings <scan>`: `getScanFindings`.
31
31
  - `report <scan>`: `getReportLink`.
32
32
  - `cancel <scan>`: `previewCancelScan` with that scan id. `cancel <owner/repo>`:
33
33
  `previewCancelPlan` with that repository. An argument with a `/` in it is a
34
34
  repository; anything else is a scan id. Then the two-step rule below.
35
- - `always <owner/repo>`: `quoteAlways` for that repository, then the two-step rule.
36
- It needs a schedule; if the user gave none, ask when it should run (daily,
37
- weekly on a weekday, or monthly on the Nth weekday, at what time, in which time
38
- zone) before quoting. The plan (`tier`) is `always` unless the user asks for
39
- `plus` or `pro`.
35
+ - `monthly <owner/repo>` (or `always <owner/repo>`, its older name):
36
+ `quoteAlways` for that repository, then the two-step rule. There are two
37
+ monthly plans: Weekly (`tier` `always`, the default) and More frequently
38
+ (`tier` `pro`). Use `pro` only when the user asks for More frequently, and
39
+ call it More frequently, never by its schedule kind (`daily`). It needs a
40
+ schedule; if the user gave none, ask before quoting, and always ask the time zone.
41
+ - Weekly: a weekday and a time (`schedule.kind` `weekly`), or on demand. At most
42
+ one scan in seven days.
43
+ - More frequently: every day, every second day or every third day at a time
44
+ (`schedule.kind` `daily`, `everyDays` 1, 2 or 3), or on demand. At most one scan
45
+ a day.
46
+ - On demand: `onDemand` true, keeping the plan's own `kind`, with `minute` and
47
+ `tz`. Nothing runs until the user asks; `runNow` starts each scan.
40
48
  - `schedule <owner/repo>`: `updateSchedule` for that repository with the schedule
41
49
  the user gives; ask for one if they gave none.
42
50
  - `plans`: `getPlans`. `billing`: `getBilling`.
@@ -49,16 +57,16 @@ Sekura: AI red team scans for your GitHub repositories
49
57
 
50
58
  /sekura account and repositories at a glance
51
59
  /sekura repos repositories Sekura can scan
52
- /sekura scan <owner/repo> quote a scan; it starts only after you agree
60
+ /sekura scan <owner/repo> quote a one-time scan; it starts only after you agree
53
61
  /sekura scans your scans and their status
54
62
  /sekura scan-status <scan> one scan's progress
55
63
  /sekura findings <scan> a scan's findings, with proof
56
64
  /sekura report <scan> link to the report
57
65
  /sekura cancel <scan> what cancelling a scan means; cancels only after you agree
58
- /sekura cancel <owner/repo> the same for a repository's Sekura Always plan
59
- /sekura always <owner/repo> quote a recurring Sekura Always plan
60
- /sekura schedule <owner/repo> change when a Sekura Always plan runs
61
- /sekura plans repositories on a recurring plan
66
+ /sekura cancel <owner/repo> the same for a repository's monthly plan
67
+ /sekura monthly <owner/repo> quote a monthly plan: Weekly or More frequently
68
+ /sekura schedule <owner/repo> change when a monthly plan runs
69
+ /sekura plans repositories on a monthly plan
62
70
  /sekura billing what is being billed
63
71
  /sekura help this list
64
72
 
@@ -81,22 +89,22 @@ The server has eighteen tools. Read, change nothing, no confirmation:
81
89
  - `getAccount`: who is signed in, whether the Terms are accepted and the email verified, where the Sekura GitHub App is installed, and what is billed. Call it first.
82
90
  - `listRepositories`: the repositories the Sekura GitHub App is installed on.
83
91
  - `listScans`, `getScan`, `getScanFindings`, `getReportLink`: scans, their status, their findings and the report.
84
- - `getPlans`, `getBilling`: the repositories on a recurring plan, and a billing summary without card numbers.
92
+ - `getPlans`, `getBilling`: the repositories on a monthly plan, and a billing summary without card numbers.
85
93
 
86
94
  Quote, then confirm. The quote changes nothing and charges nothing:
87
95
 
88
- - `quoteScan` → `startScan`: a Sekura Once scan of one repository.
89
- - `quoteAlways` → `startAlways`: a recurring Sekura Always plan for one repository.
96
+ - `quoteScan` → `startScan`: a one-time scan of one repository.
97
+ - `quoteAlways` → `startAlways`: a monthly plan (Weekly or More frequently) for one repository.
90
98
 
91
99
  Preview, then act. The preview cancels nothing:
92
100
 
93
101
  - `previewCancelScan` → `cancelScan`: stop a scan inside its five-minute window.
94
- - `previewCancelPlan` → `cancelPlan`: end a repository's Sekura Always plan.
102
+ - `previewCancelPlan` → `cancelPlan`: end a repository's monthly plan.
95
103
 
96
104
  One call, charges nothing:
97
105
 
98
- - `updateSchedule`: change when a repository on Sekura Always is scanned.
99
- - `runNow`: bring an Always plan's next scheduled run forward. It is one of the plan's own runs, so there is no quote.
106
+ - `updateSchedule`: change when a repository on a monthly plan is scanned.
107
+ - `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.
100
108
 
101
109
  ## The two-step rule
102
110
 
@@ -146,7 +154,7 @@ Then:
146
154
  - **A saved card**: call the confirm with that option's `payment`, which is
147
155
  `{ "savedCard": { "card": "pm_…" } }` with the card the user picked. Only that
148
156
  card is charged, in place, with no browser. Relay the answer: what was charged
149
- to which card ("Charged $199 to Visa ending 4242"), the scan id and the link.
157
+ to which card ("Charged $10 to Visa ending 4242"), the scan id and the link.
150
158
  - **Pay with a Checkout link**: call the confirm with no `payment`. It answers 402
151
159
  with `checkoutUrl` and `planId`. Run, in the terminal, with a timeout of ten
152
160
  minutes:
@@ -171,7 +179,11 @@ picked is charged.
171
179
 
172
180
  ## What to tell the user
173
181
 
174
- - Through this connection a scan is Sekura Once at the quoted price. Do not mention or offer any free scan.
182
+ - Through this connection a scan is a one-time scan at the quoted price. Do not mention or offer any free scan.
183
+ - The plans a user can buy here: a one-time scan ($10), or a monthly plan for
184
+ one repository, Weekly ($10 a month per repository) or More frequently ($25 a
185
+ month per repository). The quote's price is the one that counts. There is no
186
+ trial. Enterprise is quoted by Sekura: give no price or plan name for it.
175
187
  - When `getAccount` says the Terms or the email are not done, or the GitHub App is not installed, give the user the sekura.ai link it names; a scan cannot start before that.
176
188
  - A scan can take a while. Offer `getScan` to check on it rather than polling in a loop.
177
189
  - Findings carry proof. When summarising, keep the evidence the finding gives; do not soften a severity.