shippingszn 0.8.5 → 0.9.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.
Files changed (3) hide show
  1. package/README.md +40 -61
  2. package/dist/index.js +2412 -274
  3. package/package.json +4 -3
package/README.md CHANGED
@@ -6,65 +6,45 @@ leaked API keys, missing crawl assets, weak browser defenses, dangerous code
6
6
  patterns, and last-mile polish gaps.
7
7
 
8
8
  ```bash
9
- npx shippingszn
9
+ npx shippingszn@latest
10
10
  # or
11
- pnpm dlx shippingszn
11
+ pnpm dlx shippingszn@latest
12
12
  ```
13
13
 
14
14
  The CLI **never writes, modifies, or deletes** any files - it only reads.
15
- By default it posts one anonymous Wall of Launches entry with score, severity
16
- counts, files scanned, scanner version, and safe stack tags. It never uploads
17
- source code, paths, filenames, repo URLs, project names, secrets, handles, or
18
- emails. Use `--no-publish` for a private local run.
15
+ Normal runs send one anonymous aggregate summary with score, severity counts,
16
+ files scanned, scanner version, and safe stack tags. It never uploads source
17
+ code, paths, filenames, repo URLs, project names, secrets, handles, or emails.
18
+ This aggregate signal is automatic and not user-configurable.
19
19
 
20
- Human output starts with a Launch Readiness Score, scope covered, the top next
21
- step to fix, and severity counts. Run with `--json` to get machine-readable
22
- findings plus the Wall/report handoff fields:
20
+ Human output starts with a Launch Readiness Score, scope covered, and severity
21
+ counts. Run with `--json` to get the same score-and-counts summary in a
22
+ machine-readable shape:
23
23
 
24
24
  ```json
25
25
  {
26
- "launchReadiness": {
27
- "score": 43,
28
- "rawScore": 43,
29
- "label": "No-go: launch blocked",
30
- "decisionLabel": "No-go: launch blocked",
31
- "goNoGoLabel": "No-go",
32
- "confidence": "high",
33
- "coveragePenalty": 0,
34
- "coverageSummary": "CLI scan covered 4 readiness areas with 4 areas requiring owner verification.",
35
- "topNextStep": "Fix Lock up your API keys and passwords: Possible OpenAI API key hardcoded in source.",
36
- "wallUrl": "https://shippingszn.com/wall",
37
- "reportUrl": "https://shippingszn.com/report"
38
- },
39
- "findings": [
40
- {
41
- "severity": "critical",
42
- "message": "Possible OpenAI API key hardcoded in source.",
43
- "whatFailed": "A secret-like token appears in a scanned file.",
44
- "whyItBlocksLaunch": "A leaked key can spend money or expose customer data before you notice."
45
- }
46
- ]
26
+ "score": 43,
27
+ "band": "no_go",
28
+ "counts": { "critical": 1, "high": 3, "medium": 4, "lower": 2 },
29
+ "filesScanned": 128,
30
+ "detailsLocked": true,
31
+ "unlockUrl": "https://shippingszn.com/fix-kit"
47
32
  }
48
33
  ```
49
34
 
50
- When Critical or High findings make paid confidence relevant, the summary also
51
- includes a `/report` link. Clean scans and lower-risk findings do not push the
52
- paid report CTA.
35
+ Finding titles, files, evidence, fix prompts, and verification steps are paid.
36
+ They unlock inside the Launch Fix Kit.
53
37
 
54
- ## Wall publishing
38
+ ## Aggregate summary
55
39
 
56
- Plain `npx shippingszn` feeds the Wall automatically. The public row is
57
- anonymous and intentionally small: score, launch label, files scanned, finding
58
- counts, detected stack tags, scanner version, and timestamp.
40
+ Plain `npx shippingszn@latest` sends the aggregate summary automatically. The
41
+ stored row is anonymous and intentionally small: score, launch label, files
42
+ scanned, finding counts, detected stack tags, scanner version, and timestamp.
59
43
 
60
- Use this when you want a completely private local run:
61
-
62
- ```bash
63
- npx shippingszn --no-publish
64
- ```
65
-
66
- For a paid-report handoff, run `npx shippingszn --json > shippingszn-scan.json`
67
- and paste or upload the file at `https://shippingszn.com/scan`.
44
+ For a scan-specific paid-report handoff, run `npx shippingszn@latest --proof`.
45
+ That uploads the canonical scan result, returns a proof URL plus a
46
+ `/fix-kit?scanResultId=...` URL, and gives the paid Launch Fix Kit the evidence
47
+ it needs after checkout.
68
48
 
69
49
  ## What gets checked
70
50
 
@@ -90,8 +70,9 @@ maps back to one of the items on the checklist.
90
70
  - Placeholder content (`lorem ipsum`, `John Doe`, `test@example.com`) and
91
71
  `TODO` / `FIXME` / `XXX` / `HACK` comments.
92
72
 
93
- Each finding is tagged Critical, High, Medium, or Lower and links back to the
94
- relevant checklist item on shippingszn.com.
73
+ Internally each finding is tagged Critical, High, Medium, or Lower and maps to
74
+ the relevant checklist item. The free CLI output keeps that finding-level detail
75
+ locked.
95
76
 
96
77
  ## Suppressing false positives
97
78
 
@@ -141,12 +122,12 @@ ship.
141
122
  shippingszn [path] [options]
142
123
 
143
124
  Options:
144
- --json Output a machine-readable JSON report.
145
- --publish Legacy alias. Anonymous Wall stats publish by default.
146
- --no-publish Disable the anonymous Wall post for this run.
147
- --base-url <url> Base URL used to build links back to checklist items.
125
+ --json Output a machine-readable JSON summary.
126
+ --proof Upload full scan evidence and return a scan-specific
127
+ Launch Fix Kit URL.
128
+ --base-url <url> Base URL used to build checkout and Fix Kit links.
148
129
  --cwd <path> Directory to scan. Default: current working directory.
149
- --no-color Disable ANSI colors in the human-readable report.
130
+ --no-color Disable ANSI colors in the human-readable summary.
150
131
  -h, --help Show help.
151
132
  -v, --version Print version.
152
133
  ```
@@ -161,22 +142,20 @@ This makes the CLI suitable for CI:
161
142
 
162
143
  ```yaml
163
144
  # .github/workflows/launch-check.yml
164
- - run: npx shippingszn --json > launch-check.json
145
+ - run: npx shippingszn@latest --json > launch-check.json
165
146
  ```
166
147
 
167
148
  For PR scan signal, have GitHub Actions run the scanner and post the JSON
168
- summary as a comment: score, severity counts, top next step, Wall URL, report
169
- URL, and worst Critical/High findings.
149
+ summary as a comment: score, severity counts, and unlock URL.
170
150
 
171
151
  ## Privacy
172
152
 
173
153
  `shippingszn` reads files on your machine. It never uploads source code. By
174
- default it makes one best-effort outbound request to post anonymous Wall stats:
175
- score, launch label, files scanned count, finding counts by severity, detected
176
- stack tags, scanner version, and timestamp. It never uploads source code, file
177
- paths, filenames, project names, repo URLs, secrets, emails, handles, or report
178
- contents. Use `--no-publish` or `SHIPPINGSZN_DISABLE_PUBLISH=1` to disable that
179
- request.
154
+ default it makes one best-effort outbound request to post an anonymous aggregate
155
+ summary: score, launch label, files scanned count, finding counts by severity,
156
+ detected stack tags, scanner version, and timestamp. It never uploads source
157
+ code, file paths, filenames, project names, repo URLs, secrets, emails, handles,
158
+ or report contents. The aggregate summary is automatic and not user-configurable.
180
159
 
181
160
  ## License
182
161