@gobing-ai/ts-db 0.4.62 → 0.4.63

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 +7 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -265,6 +265,13 @@ const stats = await queue.getStats();
265
265
  // → { pending: 5, processing: 2, completed: 100, failed: 3 }
266
266
  ```
267
267
 
268
+ **Delivery semantics:** the lease path is **at-least-once, never exactly-once**. A
269
+ claimed job whose lease expires (crash, lost renewal, stalled event loop) becomes
270
+ claimable again and will execute a second time; the attempt token only fences the
271
+ *ack* (a stale `markCompleted`/`markFailed` from the lost owner is ignored), it
272
+ does not fence execution. Handlers must therefore be idempotent or carry their own
273
+ dedup key — assume any claimed job can run more than once under failure.
274
+
268
275
  ### InboxMessageDao — durable inter-agent messages
269
276
 
270
277
  `InboxMessageDao` persists directed messages for team-mode or multi-agent workflows. It lives on the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobing-ai/ts-db",
3
- "version": "0.4.62",
3
+ "version": "0.4.63",
4
4
  "description": "@gobing-ai/ts-db — a drizzle-free database facade: typed DAOs over Bun SQLite / Cloudflare D1, a small predicate query spec, single-source-of-truth tables, and migrations. Drizzle stays an internal detail.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -66,8 +66,8 @@
66
66
  "release": "echo 'Manual publish is disabled. Releases go through GitHub Actions via Trusted Publishing — push a tag: git tag @gobing-ai/ts-db-v<version> && git push --tags' && exit 1"
67
67
  },
68
68
  "dependencies": {
69
- "@gobing-ai/ts-runtime": "^0.4.62",
70
- "@gobing-ai/ts-utils": "^0.4.62"
69
+ "@gobing-ai/ts-runtime": "^0.4.63",
70
+ "@gobing-ai/ts-utils": "^0.4.63"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "drizzle-orm": ">=0.38.0",