@threadbase-sh/streamer 1.40.0 → 1.41.1

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.
@@ -1,6 +1,12 @@
1
1
  -- Managed-session registry (durable session runtime, C1 Phase 2).
2
2
  -- See docs/architecture/2026-07-24-durable-session-runtime.md.
3
3
  --
4
+ -- Lives in ~/.threadbase/runtime.db, NOT in the conversation cache. Everything
5
+ -- in cache.db is rebuildable from ~/.claude and ~/.codex; this table is the only
6
+ -- copy of startedAt, promptCount, sessionName, the Codex rollout binding and
7
+ -- status_source. It must survive "delete the cache and restart", and a cache
8
+ -- that fails to open must not take session persistence down with it.
9
+ --
4
10
  -- Until now managed session state lived only in SessionStore's in-memory Maps,
5
11
  -- so a streamer restart lost startedAt, promptCount, sessionName, projectId,
6
12
  -- the Codex placeholder→rollout binding, and failureReason outright. Sessions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadbase-sh/streamer",
3
- "version": "1.40.0",
3
+ "version": "1.41.1",
4
4
  "description": "PTY session management, WebSocket streaming, and REST API server for Claude Code conversations",
5
5
  "license": "MIT",
6
6
  "author": "Ronen Mars",
@@ -45,7 +45,7 @@
45
45
  "node": ">=18"
46
46
  },
47
47
  "scripts": {
48
- "build": "tsup && node -e \"const{cpSync}=require('fs');cpSync('src/db/migrations','dist/migrations',{recursive:true});cpSync('src/db/pg-migrations','dist/pg-migrations',{recursive:true})\"",
48
+ "build": "tsup && node -e \"const{cpSync}=require('fs');cpSync('src/db/migrations','dist/migrations',{recursive:true});cpSync('src/db/runtime-migrations','dist/runtime-migrations',{recursive:true});cpSync('src/db/pg-migrations','dist/pg-migrations',{recursive:true})\"",
49
49
  "dev": "tsup --watch",
50
50
  "dev:verbose": "npm run build && mkdir -p ~/.threadbase/logs && node dist/cli.cjs serve --verbose 2>&1 | tee -a ~/.threadbase/logs/dev.log",
51
51
  "preinstall": "node scripts/check-native-abi.mjs",