@supercheck/cli 0.1.0-beta.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 ADDED
@@ -0,0 +1,79 @@
1
+ # @supercheck/cli
2
+
3
+ Supercheck CLI — monitoring-as-code for Playwright and k6.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @supercheck/cli
9
+ ```
10
+
11
+ Or use with npx:
12
+
13
+ ```bash
14
+ npx @supercheck/cli
15
+ ```
16
+
17
+ ## Quick Start
18
+
19
+ ```bash
20
+ # Initialize a new project
21
+ supercheck init
22
+
23
+ # Authenticate
24
+ supercheck login --token <your-token>
25
+
26
+ # Validate config
27
+ supercheck config validate
28
+
29
+ # Check API health
30
+ supercheck health
31
+ ```
32
+
33
+ ## Configuration
34
+
35
+ Create a `supercheck.config.ts` in your project root:
36
+
37
+ ```typescript
38
+ import { defineConfig } from '@supercheck/cli'
39
+
40
+ export default defineConfig({
41
+ schemaVersion: '1.0',
42
+ project: {
43
+ organization: 'my-org',
44
+ project: 'my-project',
45
+ },
46
+ tests: {
47
+ playwright: {
48
+ testMatch: '_supercheck_/tests/**/*.pw.ts',
49
+ browser: 'chromium',
50
+ },
51
+ k6: {
52
+ testMatch: '_supercheck_/tests/**/*.k6.ts',
53
+ },
54
+ },
55
+ })
56
+ ```
57
+
58
+ ## File Conventions
59
+
60
+ ```
61
+ _supercheck_/
62
+ ├── tests/
63
+ │ ├── homepage.pw.ts # Playwright test
64
+ │ └── load-test.k6.ts # k6 test
65
+ ├── monitors/
66
+ │ └── api-monitor.ts # Monitor definition
67
+ └── status-pages/
68
+ └── main-status.ts # Status page definition
69
+ ```
70
+
71
+ ## Development
72
+
73
+ ```bash
74
+ npm install
75
+ npm run dev # Watch mode
76
+ npm run build # Production build
77
+ npm run typecheck # Type checking
78
+ npm run supercheck # Run CLI in dev mode
79
+ ```