@taskcast/postgres 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 +40 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # @taskcast/postgres
2
+
3
+ PostgreSQL long-term store adapter for [Taskcast](https://github.com/weightwave/taskcast). Provides permanent archival of tasks and events.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @taskcast/postgres postgres
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { TaskEngine, MemoryBroadcastProvider, MemoryShortTermStore } from '@taskcast/core'
15
+ import { createPostgresAdapter } from '@taskcast/postgres'
16
+
17
+ const longTermStore = createPostgresAdapter({
18
+ url: process.env.DATABASE_URL,
19
+ })
20
+
21
+ const engine = new TaskEngine({
22
+ broadcast: new MemoryBroadcastProvider(),
23
+ shortTermStore: new MemoryShortTermStore(),
24
+ longTermStore,
25
+ })
26
+ ```
27
+
28
+ ## Features
29
+
30
+ - Permanent archival of tasks and events
31
+ - Async writes — non-blocking to the main event pipeline
32
+ - Built on the [`postgres`](https://www.npmjs.com/package/postgres) driver
33
+
34
+ ## Part of Taskcast
35
+
36
+ This is the PostgreSQL adapter package. See the [Taskcast monorepo](https://github.com/weightwave/taskcast) for the full project.
37
+
38
+ ## License
39
+
40
+ [MIT](https://github.com/weightwave/taskcast/blob/main/LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskcast/postgres",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "PostgreSQL long-term store adapter for Taskcast.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "postgres": "^3.4.5",
32
- "@taskcast/core": "0.1.1"
32
+ "@taskcast/core": "0.1.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "^5.7.0",