@hatchway/cli 0.50.57 → 0.50.58

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.
@@ -15,8 +15,10 @@ if (typeof Sentry.httpIntegration === "function") {
15
15
  log('Added httpIntegration');
16
16
  }
17
17
  log(`Total integrations configured: ${integrations.length}`);
18
+ // Default DSN for Hatchway error tracking — users can override via SENTRY_DSN env var
19
+ const DEFAULT_SENTRY_DSN = "https://94f02492541e36eaa9ebfa56c4c042d2@o4508130833793024.ingest.us.sentry.io/4510156711919616";
18
20
  Sentry.init({
19
- dsn: process.env.SENTRY_DSN,
21
+ dsn: process.env.SENTRY_DSN || DEFAULT_SENTRY_DSN,
20
22
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
23
  integrations: integrations,
22
24
  tracesSampleRate: 1.0,
@@ -1 +1 @@
1
- {"version":3,"file":"instrument.js","sources":["../src/instrument.ts"],"sourcesContent":["import * as Sentry from \"@sentry/node\";\n\n// Debug logging for instrumentation (enabled via DEBUG_SENTRY=1)\nconst debugSentry = process.env.DEBUG_SENTRY === '1';\nconst log = (msg: string) => debugSentry && console.log(`[sentry-instrument] ${msg}`);\n\n// Build integrations array\nconst integrations: unknown[] = [];\n\n// Add http integration for request tracing\nif (typeof Sentry.httpIntegration === \"function\") {\n integrations.push(Sentry.httpIntegration());\n log('Added httpIntegration');\n}\n\nlog(`Total integrations configured: ${integrations.length}`);\n\nSentry.init({\n dsn: process.env.SENTRY_DSN,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n integrations: integrations as any[],\n tracesSampleRate: 1.0,\n enableLogs: true,\n debug: false,\n sendDefaultPii: false,\n // Configure trace propagation (Runner → Broker communication)\n tracePropagationTargets: [\n // Local development\n \"localhost\",\n \"localhost:3000\",\n \"localhost:4000\",\n /^https?:\\/\\/localhost:\\d+$/,\n\n // Production domains\n \"hatchway.sh\",\n \"hatchway.app\",\n \"hatchway.up.railway.app\",\n \"broker.hatchway.sh\",\n \"broker.hatchway.app\",\n \"broker.up.railway.app\",\n\n // Wildcard patterns for Railway\n /^https?:\\/\\/.*\\.railway\\.app/, // Railway deployments\n /^https?:\\/\\/.*\\.up\\.railway\\.app/, // Railway preview deployments\n /^https?:\\/\\/.*\\.hatchway\\.app/, // Custom domain subdomains\n ],\n});\n"],"names":[],"mappings":";;;;;;AAEA;AACA,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,GAAG;AACpD,MAAM,GAAG,GAAG,CAAC,GAAW,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,GAAG,CAAA,CAAE,CAAC;AAErF;AACA,MAAM,YAAY,GAAc,EAAE;AAElC;AACA,IAAI,OAAO,MAAM,CAAC,eAAe,KAAK,UAAU,EAAE;IAChD,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;IAC3C,GAAG,CAAC,uBAAuB,CAAC;AAC9B;AAEA,GAAG,CAAC,CAAA,+BAAA,EAAkC,YAAY,CAAC,MAAM,CAAA,CAAE,CAAC;AAE5D,MAAM,CAAC,IAAI,CAAC;AACV,IAAA,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;;AAE3B,IAAA,YAAY,EAAE,YAAqB;AACnC,IAAA,gBAAgB,EAAE,GAAG;AACrB,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,cAAc,EAAE,KAAK;;AAErB,IAAA,uBAAuB,EAAE;;QAEvB,WAAW;QACX,gBAAgB;QAChB,gBAAgB;QAChB,4BAA4B;;QAG5B,aAAa;QACb,cAAc;QACd,yBAAyB;QACzB,oBAAoB;QACpB,qBAAqB;QACrB,uBAAuB;;AAGvB,QAAA,8BAA8B;AAC9B,QAAA,kCAAkC;AAClC,QAAA,+BAA+B;AAChC,KAAA;AACF,CAAA,CAAC"}
1
+ {"version":3,"file":"instrument.js","sources":["../src/instrument.ts"],"sourcesContent":["import * as Sentry from \"@sentry/node\";\n\n// Debug logging for instrumentation (enabled via DEBUG_SENTRY=1)\nconst debugSentry = process.env.DEBUG_SENTRY === '1';\nconst log = (msg: string) => debugSentry && console.log(`[sentry-instrument] ${msg}`);\n\n// Build integrations array\nconst integrations: unknown[] = [];\n\n// Add http integration for request tracing\nif (typeof Sentry.httpIntegration === \"function\") {\n integrations.push(Sentry.httpIntegration());\n log('Added httpIntegration');\n}\n\nlog(`Total integrations configured: ${integrations.length}`);\n\n// Default DSN for Hatchway error tracking — users can override via SENTRY_DSN env var\nconst DEFAULT_SENTRY_DSN = \"https://94f02492541e36eaa9ebfa56c4c042d2@o4508130833793024.ingest.us.sentry.io/4510156711919616\";\n\nSentry.init({\n dsn: process.env.SENTRY_DSN || DEFAULT_SENTRY_DSN,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n integrations: integrations as any[],\n tracesSampleRate: 1.0,\n enableLogs: true,\n debug: false,\n sendDefaultPii: false,\n // Configure trace propagation (Runner → Broker communication)\n tracePropagationTargets: [\n // Local development\n \"localhost\",\n \"localhost:3000\",\n \"localhost:4000\",\n /^https?:\\/\\/localhost:\\d+$/,\n\n // Production domains\n \"hatchway.sh\",\n \"hatchway.app\",\n \"hatchway.up.railway.app\",\n \"broker.hatchway.sh\",\n \"broker.hatchway.app\",\n \"broker.up.railway.app\",\n\n // Wildcard patterns for Railway\n /^https?:\\/\\/.*\\.railway\\.app/, // Railway deployments\n /^https?:\\/\\/.*\\.up\\.railway\\.app/, // Railway preview deployments\n /^https?:\\/\\/.*\\.hatchway\\.app/, // Custom domain subdomains\n ],\n});\n"],"names":[],"mappings":";;;;;;AAEA;AACA,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,GAAG;AACpD,MAAM,GAAG,GAAG,CAAC,GAAW,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,GAAG,CAAA,CAAE,CAAC;AAErF;AACA,MAAM,YAAY,GAAc,EAAE;AAElC;AACA,IAAI,OAAO,MAAM,CAAC,eAAe,KAAK,UAAU,EAAE;IAChD,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;IAC3C,GAAG,CAAC,uBAAuB,CAAC;AAC9B;AAEA,GAAG,CAAC,CAAA,+BAAA,EAAkC,YAAY,CAAC,MAAM,CAAA,CAAE,CAAC;AAE5D;AACA,MAAM,kBAAkB,GAAG,iGAAiG;AAE5H,MAAM,CAAC,IAAI,CAAC;AACV,IAAA,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,kBAAkB;;AAEjD,IAAA,YAAY,EAAE,YAAqB;AACnC,IAAA,gBAAgB,EAAE,GAAG;AACrB,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,cAAc,EAAE,KAAK;;AAErB,IAAA,uBAAuB,EAAE;;QAEvB,WAAW;QACX,gBAAgB;QAChB,gBAAgB;QAChB,4BAA4B;;QAG5B,aAAa;QACb,cAAc;QACd,yBAAyB;QACzB,oBAAoB;QACpB,qBAAqB;QACrB,uBAAuB;;AAGvB,QAAA,8BAA8B;AAC9B,QAAA,kCAAkC;AAClC,QAAA,+BAA+B;AAChC,KAAA;AACF,CAAA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchway/cli",
3
- "version": "0.50.57",
3
+ "version": "0.50.58",
4
4
  "description": "Hatchway CLI - Build AI-powered apps with Claude. Just run: npx @hatchway/cli runner",
5
5
  "private": false,
6
6
  "type": "module",