sekura 0.5.12 → 0.5.14
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 +1 -1
- package/dist/commands/plans.js +4 -2
- package/dist/commands/shared.js +5 -0
- package/dist/payment.js +1 -1
- package/package.json +1 -1
- package/skills/sekura/SKILL.md +5 -5
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ The GitHub-code sign-in, the Terms in the terminal, the report download and a fr
|
|
|
27
27
|
7. **The Terms.** It prints the consent sentence and links to the documents, then asks **I accept** or **Not now**, and whether you want product emails. Nothing is accepted for you: `--yes` skips this step.
|
|
28
28
|
8. **The GitHub App.** If Sekura cannot scan anything yet, or not the repository in this folder, it opens the install page on github.com and carries on by itself once the repository shows up. Enter skips the wait.
|
|
29
29
|
9. **A repository.** This folder's GitHub remote first, otherwise your pick. It is saved as the default for `scan` and `plan`.
|
|
30
|
-
10. **A first scan**, when the account has none yet. The quote is printed as Sekura gives it, with the authorization wording and the price, and nothing starts until you agree.
|
|
30
|
+
10. **A first scan**, when the account has none yet. The quote is printed as Sekura gives it, with the authorization wording and the price, and nothing starts until you agree. It is the $10 one-time scan: Stripe Checkout opens, the code FREESCAN10 entered there makes it $0, and the CLI waits for the payment. After the first scan, a repository is scanned on a monthly plan (`plan start`); Sekura sells no other one-time scan. Then it follows the scan (Enter stops watching; the scan carries on), prints the findings by severity and saves the report as `sekura-report-<scan-id>.html`.
|
|
31
31
|
11. **Says what is next in each tool**, such as "Claude Code: start a new Claude Code session, then type /sekura", and how to scan again from the terminal.
|
|
32
32
|
|
|
33
33
|
## Commands
|
package/dist/commands/plans.js
CHANGED
|
@@ -13,7 +13,9 @@ const stateOf = (p) => p.status === 'pending' ? 'waiting on a payment'
|
|
|
13
13
|
: p.status;
|
|
14
14
|
const COLUMNS = [
|
|
15
15
|
{ header: 'REPOSITORY', value: (p) => (p.owner && p.name ? `${p.owner}/${p.name}` : p.id) },
|
|
16
|
-
|
|
16
|
+
// The first scan made free by FREESCAN10 is named for what it was, as the
|
|
17
|
+
// dashboard does (30 November 2026); never worded as an offer.
|
|
18
|
+
{ header: 'PLAN', value: (p) => monthlyName(p) ?? (p.billing === 'free' ? 'First scan (free)' : 'One-time scan') },
|
|
17
19
|
{ header: 'SCHEDULE', value: (p) => (monthlyName(p) ? p.schedule?.description ?? '' : '') },
|
|
18
20
|
{ header: 'STATE', value: stateOf },
|
|
19
21
|
{ header: 'NEXT RUN (UTC)', value: (p) => when(p.nextRunAt) },
|
|
@@ -24,7 +26,7 @@ export async function runPlans(opts = {}) {
|
|
|
24
26
|
const data = await ready(() => getPlans(key));
|
|
25
27
|
const plans = data.plans ?? [];
|
|
26
28
|
if (!plans.length && !opts.json) {
|
|
27
|
-
say(`${dot} No plans yet.
|
|
29
|
+
say(`${dot} No plans yet. Your first scan: npx sekura@latest scan owner/repo. A monthly plan: npx sekura@latest plan start owner/repo`);
|
|
28
30
|
return;
|
|
29
31
|
}
|
|
30
32
|
printTable(plans, COLUMNS, { json: opts.json, data });
|
package/dist/commands/shared.js
CHANGED
|
@@ -105,6 +105,11 @@ const PERSON_REWRITES = [
|
|
|
105
105
|
[/; call \w+ again for how it would be paid now\./g, '; run the same command again to see how it would be paid now.'],
|
|
106
106
|
[/,? or call \w+ again for how it would be paid now\./g, ', or run the same command again to see how it would be paid now.'],
|
|
107
107
|
[/\b[Cc]all (\w+)(?: again)?(?: with the same arguments)?,? (?:to )?show the person [^.]*?only once they (?:agree|pick one)\./g, 'Run the same command again to see it.'],
|
|
108
|
+
// After the first scan there is no one-time scan (Sudhir, 30 November 2026):
|
|
109
|
+
// the server's refusal names the plan tool, the reader gets the command.
|
|
110
|
+
[/To scan (\S+?), put it on a monthly plan: (.+?)\. Call \w+ with the repository and a schedule\./g,
|
|
111
|
+
(_m, repo, plans) => `To scan ${repo}, put it on a monthly plan: ${plans}. Start one with: npx sekura@latest plan start ${repo}`],
|
|
112
|
+
[/this is the account's first scan\./g, 'this is your first scan.'],
|
|
108
113
|
[/in the person's browser/g, 'in your browser'],
|
|
109
114
|
[/the person's name/g, 'your name'],
|
|
110
115
|
[/as the person chooses/g, 'as you choose'],
|
package/dist/payment.js
CHANGED
|
@@ -40,7 +40,7 @@ export const cardsFingerprint = (b) => (b.cards ?? []).map((c) => `${c.masked}:$
|
|
|
40
40
|
// still held by some accounts, so it reads as "Your monthly plan" rather than by
|
|
41
41
|
// its old name. A row's `plan` is 'always' for every monthly tier, so the
|
|
42
42
|
// tier is read first: by `plan` alone a More frequently plan reads as Weekly.
|
|
43
|
-
const TIER_NAMES = { once: 'One-time scan', free: '
|
|
43
|
+
const TIER_NAMES = { once: 'One-time scan', free: 'First scan (free)', always: 'Weekly', pro: 'More frequently', plus: 'Your monthly plan' };
|
|
44
44
|
/** A monthly plan's name, or undefined for a one-time scan. */
|
|
45
45
|
export function monthlyName(p) {
|
|
46
46
|
if (!p)
|
package/package.json
CHANGED
package/skills/sekura/SKILL.md
CHANGED
|
@@ -25,7 +25,7 @@ the first word:
|
|
|
25
25
|
anything the account still needs (see Setup, below), and the repositories
|
|
26
26
|
Sekura can scan, then end with "Type `/sekura help` for commands."
|
|
27
27
|
- `repos`: `listRepositories`.
|
|
28
|
-
- `scan <owner/repo>`: `quoteScan` for that repository
|
|
28
|
+
- `scan <owner/repo>`: `quoteScan` for that repository, then the two-step rule below. Only the account's first scan (free with the code FREESCAN10) or a scan Sekura owes is quoted; any other answers `once_not_sold`: offer Weekly or More frequently and quote with `quoteAlways`.
|
|
29
29
|
- `scans`: `listScans`.
|
|
30
30
|
- `scan-status <scan>`: `getScan`. `findings <scan>`: `getScanFindings`.
|
|
31
31
|
- `report <scan>`: `getReportLink`.
|
|
@@ -67,7 +67,7 @@ Sekura: AI red team scans for your GitHub repositories
|
|
|
67
67
|
|
|
68
68
|
/sekura account and repositories at a glance
|
|
69
69
|
/sekura repos repositories Sekura can scan
|
|
70
|
-
/sekura scan <owner/repo> quote
|
|
70
|
+
/sekura scan <owner/repo> quote your first scan; it starts only after you agree
|
|
71
71
|
/sekura scans your scans and their status
|
|
72
72
|
/sekura scan-status <scan> one scan's progress
|
|
73
73
|
/sekura findings <scan> a scan's findings, with proof
|
|
@@ -107,7 +107,7 @@ The server has twenty tools. Read, change nothing, no confirmation:
|
|
|
107
107
|
|
|
108
108
|
Quote, then confirm. The quote changes nothing and charges nothing:
|
|
109
109
|
|
|
110
|
-
- `quoteScan` → `startScan`: a
|
|
110
|
+
- `quoteScan` → `startScan`: the account's first scan, or a scan Sekura owes. After the first scan there is no one-time scan.
|
|
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
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.
|
|
@@ -211,8 +211,8 @@ the GitHub App), 6 that agreement is needed, 7 that a payment needs a browser.
|
|
|
211
211
|
|
|
212
212
|
## What to tell the user
|
|
213
213
|
|
|
214
|
-
-
|
|
215
|
-
- The plans a user can buy here: a
|
|
214
|
+
- After the first scan, a repository is scanned on a monthly plan; Sekura sells no one-time scan. A new account's first scan is started by the user themselves, in a terminal, with `npx sekura@latest`, and is free with the code FREESCAN10 on Stripe's page: say so when the user asks about it, and let them run it.
|
|
215
|
+
- The plans a user can buy here: a monthly plan for
|
|
216
216
|
one repository, Weekly ($10 a month per repository) or More frequently ($25 a
|
|
217
217
|
month per repository). The quote's price is the one that counts. There is no
|
|
218
218
|
trial. Enterprise is quoted by Sekura: give no price or plan name for it.
|