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 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.16";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snapfail",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "description": "CLI for snapfail — project setup, incident inspection and AI diagnostics",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -30,7 +30,7 @@ function parseArgs(argv: string[]): {
30
30
  return { command, args, flags };
31
31
  }
32
32
 
33
- const VERSION = "0.0.16";
33
+ const VERSION = "0.0.17";
34
34
 
35
35
  async function main(): Promise<void> {
36
36
  const { command, args, flags } = parseArgs(process.argv);