@wispbit/local 1.0.65 → 1.0.67

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/cli-bundle.js +233 -229
  2. package/cli.js +27 -2
  3. package/package.json +1 -1
package/cli.js CHANGED
@@ -23,5 +23,30 @@ process.emit = function (event, ...args) {
23
23
  return originalEmit.apply(process, [event, ...args]);
24
24
  };
25
25
 
26
- // Use the file extension to help the module resolver find the file
27
- import("./cli-bundle.js").catch(console.error);
26
+ // Initialize Sentry for Node.js (performance monitoring, no profiling)
27
+ // This runs before the main CLI to ensure all errors are captured
28
+ (async () => {
29
+ if (process.env.POWERLINT_SENTRY_DSN) {
30
+ const Sentry = await import("@sentry/node");
31
+
32
+ Sentry.init({
33
+ dsn: process.env.POWERLINT_SENTRY_DSN,
34
+ environment: "production",
35
+ sendDefaultPii: true,
36
+ tracesSampleRate: 1.0,
37
+ // No profiling integration
38
+ });
39
+
40
+ // Set CLI context for better error tracking
41
+ // Note: getCurrentVersion is in the bundle, we'll set basic context here
42
+ Sentry.setContext("cli", {
43
+ platform: process.platform,
44
+ arch: process.arch,
45
+ runtime: "node",
46
+ nodeVersion: process.version,
47
+ });
48
+ }
49
+
50
+ // Use the file extension to help the module resolver find the file
51
+ await import("./cli-bundle.js");
52
+ })().catch(console.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wispbit/local",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "type": "module",
5
5
  "main": "cli.js",
6
6
  "bin": {