alpic 0.0.0-dev.gf7fc4b5 → 0.0.0-dev.gf848dcc

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.
@@ -0,0 +1,3 @@
1
+ import * as Sentry from "@sentry/node";
2
+ export declare function initSentry(release: string): void;
3
+ export { Sentry };
package/dist/sentry.js ADDED
@@ -0,0 +1,40 @@
1
+ import os from "node:os";
2
+ import * as Sentry from "@sentry/node";
3
+ const SENTRY_DSN = "https://b60482c4b16639fbc9c553d95a70ce7c@o4509603522478080.ingest.us.sentry.io/4511450063175680";
4
+ let initialized = false;
5
+ export function initSentry(release) {
6
+ if (initialized) {
7
+ return;
8
+ }
9
+ initialized = true;
10
+ Sentry.init({
11
+ dsn: SENTRY_DSN,
12
+ release,
13
+ // No tracing, profiling, or logs for a one-shot CLI process.
14
+ tracesSampleRate: 0,
15
+ // The default integrations register uncaughtException / unhandledRejection
16
+ // handlers and start OpenTelemetry. We init lazily after oclif has already
17
+ // caught the error, so those are pure overhead with no benefit.
18
+ defaultIntegrations: false,
19
+ beforeSend(event) {
20
+ // Stack frames and exception messages often contain the user's home
21
+ // directory. Replace it with `~` so we don't ship absolute paths to
22
+ // Sentry.
23
+ const home = os.homedir();
24
+ if (!home) {
25
+ return event;
26
+ }
27
+ const scrub = (value) => (value ? value.split(home).join("~") : value);
28
+ for (const ex of event.exception?.values ?? []) {
29
+ ex.value = scrub(ex.value);
30
+ for (const frame of ex.stacktrace?.frames ?? []) {
31
+ frame.filename = scrub(frame.filename);
32
+ frame.abs_path = scrub(frame.abs_path);
33
+ }
34
+ }
35
+ return event;
36
+ },
37
+ });
38
+ }
39
+ export { Sentry };
40
+ //# sourceMappingURL=sentry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sentry.js","sourceRoot":"","sources":["../src/sentry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,KAAK,MAAM,MAAM,cAAc,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CAAC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alpic",
3
- "version": "0.0.0-dev.gf7fc4b5",
3
+ "version": "0.0.0-dev.gf848dcc",
4
4
  "description": "The command-line interface for Alpic",
5
5
  "homepage": "https://alpic.ai",
6
6
  "preferGlobal": true,
@@ -25,11 +25,12 @@
25
25
  "author": "Alpic",
26
26
  "license": "ISC",
27
27
  "dependencies": {
28
- "@clack/prompts": "^1.4.0",
29
- "@oclif/core": "^4.11.2",
30
- "@orpc/client": "^1.14.3",
31
- "@orpc/contract": "^1.14.3",
32
- "@orpc/openapi-client": "^1.14.3",
28
+ "@clack/prompts": "^1.5.0",
29
+ "@oclif/core": "^4.11.4",
30
+ "@orpc/client": "^1.14.4",
31
+ "@orpc/contract": "^1.14.4",
32
+ "@orpc/openapi-client": "^1.14.4",
33
+ "@sentry/node": "^10.55.0",
33
34
  "@t3-oss/env-core": "^0.13.11",
34
35
  "@vercel/detect-agent": "^1.2.3",
35
36
  "chalk": "^5.6.2",
@@ -39,20 +40,20 @@
39
40
  "jwt-decode": "^4.0.0",
40
41
  "open": "^11.0.0",
41
42
  "openid-client": "^6.8.4",
42
- "posthog-node": "^5.33.7",
43
- "semver": "^7.8.0",
43
+ "posthog-node": "^5.35.9",
44
+ "semver": "^7.8.1",
44
45
  "tar": "^7.5.15",
45
- "undici": "^8.2.0",
46
+ "undici": "^8.3.0",
46
47
  "zod": "^4.4.3",
47
- "@alpic-ai/api": "0.0.0-dev.gf7fc4b5"
48
+ "@alpic-ai/api": "0.0.0-dev.gf848dcc"
48
49
  },
49
50
  "devDependencies": {
50
- "@orpc/openapi": "^1.14.3",
51
- "@orpc/server": "^1.14.3",
52
- "@orpc/zod": "^1.14.3",
51
+ "@orpc/openapi": "^1.14.4",
52
+ "@orpc/server": "^1.14.4",
53
+ "@orpc/zod": "^1.14.4",
53
54
  "@total-typescript/tsconfig": "^1.0.4",
54
55
  "@types/express": "^5.0.6",
55
- "@types/node": "^25.7.0",
56
+ "@types/node": "^25.9.1",
56
57
  "@types/semver": "^7.7.1",
57
58
  "esbuild": "^0.28.0",
58
59
  "express": "^5.2.1",
@@ -63,7 +64,7 @@
63
64
  "shx": "^0.4.0",
64
65
  "ts-node": "^10.9.2",
65
66
  "typescript": "^6.0.3",
66
- "vitest": "^4.1.6"
67
+ "vitest": "^4.1.8"
67
68
  },
68
69
  "bin": {
69
70
  "alpic": "bin/run.js"