@quillaudits/cli 0.1.3 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +30 -17
  2. package/dist/qs.js +1357 -107
  3. package/package.json +7 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # QuillAudits CLI
2
2
 
3
- Submit Solidity projects for audit from the command line.
3
+ Paid audit workflow from the command line (same path as the web app: quote → order → pay → start).
4
4
 
5
5
  ## Install
6
6
 
@@ -15,18 +15,24 @@ Requires Node.js 18+.
15
15
  ## Quick Start
16
16
 
17
17
  ```bash
18
- # 1. Get an API key from the QuillAudits web UI
19
- # Settings → API Keys → Create API Key
18
+ # 1. Create an API key in the web UI (Settings → API Keys)
20
19
 
21
- # 2. Configure the CLI
20
+ # 2. Configure
22
21
  qs init
23
22
 
24
- # 3. Submit an audit
25
- qs audit https://github.com/org/contract --ref main --watch
23
+ # 3. Submit + pay + start (use --yes in CI / mock environments)
24
+ qs audit https://github.com/org/contract --ref main --yes --watch
26
25
 
27
- # 4. View results
26
+ # Local folder
27
+ qs audit --dir ./contracts --yes --watch
28
+
29
+ # Prepare quote only, pay later
30
+ qs audit --dir ./contracts --no-pay
31
+ qs pay <quote-id> --yes --watch
32
+
33
+ # 4. Results
28
34
  qs findings <job-id>
29
- qs report <job-id>
35
+ qs report <job-id> --out ./report.pdf
30
36
  ```
31
37
 
32
38
  ## Commands
@@ -34,27 +40,34 @@ qs report <job-id>
34
40
  | Command | Description |
35
41
  |---|---|
36
42
  | `qs init` | Configure API key + URL |
37
- | `qs audit <git-url>` | Submit a git repo for audit |
38
- | `qs audit --zip <path>` | Submit a zip/sol file for audit |
39
- | `qs status <job-id>` | Check audit status |
43
+ | `qs audit <git-url\|--zip\|--dir>` | Submit → quote → pay → start audit |
44
+ | `qs quote <version-id>` | Create a price quote |
45
+ | `qs pay <quote-id>` | Pay a quote and start the audit |
46
+ | `qs wallet` | Show prepaid / bonus / refund balances |
47
+ | `qs topup <dollars>` | Top up the wallet |
48
+ | `qs orders` / `qs order <id>` | Payment history |
49
+ | `qs status <job-id>` | Audit status |
40
50
  | `qs watch <job-id>` | Live progress stream |
41
51
  | `qs findings <job-id>` | List findings |
42
52
  | `qs report <job-id>` | Download report |
43
- | `qs projects` | List projects |
44
- | `qs versions <project-id>` | List versions |
45
- | `qs credits` | Show credit balance |
53
+ | `qs projects` / `qs versions` | List projects / versions |
46
54
  | `qs cancel <job-id>` | Cancel a running audit |
47
55
  | `qs logout` | Clear stored credentials |
48
56
 
49
57
  ## Environment Variables
50
58
 
51
- For CI/CD, set these instead of running `qs init`:
52
-
53
59
  ```bash
54
60
  export QUILLSHIELD_API_URL=https://api.quillaudits.ai
55
61
  export QUILLSHIELD_API_KEY=qs_live_xxxxxxxxxxxx
62
+ export QUILLSHIELD_ORG_ID=01… # optional
56
63
  ```
57
64
 
65
+ ## Payment notes
66
+
67
+ - With **`MOCK_PAYMENTS=true`**, the CLI confirms payment automatically (no browser).
68
+ - With live Stripe, the CLI prints/opens the Checkout URL and polls until paid.
69
+ - Always pass **`--yes`** in CI so non-interactive runs can charge.
70
+
58
71
  ## Full Documentation
59
72
 
60
- See [docs/CLI.md](https://github.com/quillai-network/quillshield-saas/blob/main/docs/CLI.md) for the complete user guide.
73
+ See [docs/CLI.md](../../docs/CLI.md) for the complete guide.