@taskcast/sentry 0.1.1 → 0.1.2

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 (2) hide show
  1. package/README.md +39 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @taskcast/sentry
2
+
3
+ Sentry error monitoring hooks for [Taskcast](https://github.com/weightwave/taskcast). Automatically captures task failures and timeouts.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @taskcast/sentry @sentry/node
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { TaskEngine, MemoryBroadcastProvider, MemoryShortTermStore } from '@taskcast/core'
15
+ import { createSentryHooks } from '@taskcast/sentry'
16
+
17
+ const engine = new TaskEngine({
18
+ broadcast: new MemoryBroadcastProvider(),
19
+ shortTermStore: new MemoryShortTermStore(),
20
+ hooks: createSentryHooks({
21
+ captureTaskFailures: true,
22
+ captureTaskTimeouts: true,
23
+ }),
24
+ })
25
+ ```
26
+
27
+ ## Features
28
+
29
+ - Captures task failures as Sentry exceptions
30
+ - Captures task timeouts as Sentry exceptions
31
+ - `@sentry/node` is an optional peer dependency — hooks are no-ops if Sentry is not installed
32
+
33
+ ## Part of Taskcast
34
+
35
+ This is the Sentry integration package. See the [Taskcast monorepo](https://github.com/weightwave/taskcast) for the full project.
36
+
37
+ ## License
38
+
39
+ [MIT](https://github.com/weightwave/taskcast/blob/main/LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskcast/sentry",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Sentry error monitoring hooks for Taskcast.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "provenance": true
29
29
  },
30
30
  "dependencies": {
31
- "@taskcast/core": "0.1.1"
31
+ "@taskcast/core": "0.1.2"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@sentry/node": ">=8.0.0"