snapfail 0.0.16 → 0.0.17
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 +33 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# snapfail
|
|
2
|
+
|
|
3
|
+
CLI for [snapfail](https://snapfail.com) — automatic error capture and AI diagnostics for your web app.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g snapfail
|
|
9
|
+
# or
|
|
10
|
+
bun add -g snapfail
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Set up snapfail in your project (one time)
|
|
17
|
+
snapfail init
|
|
18
|
+
|
|
19
|
+
# View unresolved incidents
|
|
20
|
+
snapfail incidents
|
|
21
|
+
|
|
22
|
+
# View incident detail
|
|
23
|
+
snapfail incident <id>
|
|
24
|
+
|
|
25
|
+
# Get AI diagnosis
|
|
26
|
+
snapfail explain <id>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`snapfail init` detects your framework, authenticates, lets you pick or create a project, writes `SNAPFAIL_PROJECT_KEY` to `.env`, and injects the browser SDK into your config automatically.
|
|
30
|
+
|
|
31
|
+
## Documentation
|
|
32
|
+
|
|
33
|
+
Full docs at [snapfail.com](https://snapfail.com)
|
package/dist/index.js
CHANGED
|
@@ -2318,7 +2318,7 @@ function parseArgs(argv) {
|
|
|
2318
2318
|
}
|
|
2319
2319
|
return { command, args, flags };
|
|
2320
2320
|
}
|
|
2321
|
-
var VERSION = "0.0.
|
|
2321
|
+
var VERSION = "0.0.17";
|
|
2322
2322
|
async function main() {
|
|
2323
2323
|
const { command, args, flags } = parseArgs(process.argv);
|
|
2324
2324
|
const json = flags["json"] === true;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED