@jhizzard/termdeck 0.6.4 → 0.6.5
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhizzard/termdeck",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"description": "Browser-based terminal multiplexer with metadata overlays, panel flashback memory recall, and AI-aware session management",
|
|
5
5
|
"bin": {
|
|
6
6
|
"termdeck": "./packages/cli/src/index.js"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
-- 007_add_source_session_id.sql
|
|
2
|
+
--
|
|
3
|
+
-- Adds memory_items.source_session_id back to fresh Mnestra installs.
|
|
4
|
+
--
|
|
5
|
+
-- The column existed in the original rag-system schema (TEXT) and is still
|
|
6
|
+
-- present on stores that were upgraded from rag-system → Engram → Mnestra.
|
|
7
|
+
-- It was dropped from the published Mnestra migration set during the rebrand,
|
|
8
|
+
-- which created a silent contract break with Rumen.
|
|
9
|
+
--
|
|
10
|
+
-- Rumen's Extract phase groups memory_items by source_session_id to find
|
|
11
|
+
-- eligible sessions for synthesis (see rumen/src/extract.ts:61). Without this
|
|
12
|
+
-- column, every Rumen cron tick fails with:
|
|
13
|
+
-- ERROR: column m.source_session_id does not exist (SQLSTATE 42703)
|
|
14
|
+
--
|
|
15
|
+
-- Reported 2026-04-26 by a tester (Brad) whose fresh `termdeck init --mnestra`
|
|
16
|
+
-- on v0.6.3 left him with a Mnestra schema that worked for TermDeck/Flashback
|
|
17
|
+
-- but couldn't host Rumen. Surfaced after v0.6.4's access-token hint unblocked
|
|
18
|
+
-- his Rumen install — the Edge Function deployed cleanly, the manual POST test
|
|
19
|
+
-- returned 500, and the pg_cron tick keeps failing with the same query.
|
|
20
|
+
--
|
|
21
|
+
-- TEXT matches the rag-system-era type and Josh's production schema. Rumen's
|
|
22
|
+
-- UUID[] cast handles values that look like UUIDs; non-UUID values would fail
|
|
23
|
+
-- the cast (the column has only ever held UUID-shaped strings historically).
|
|
24
|
+
--
|
|
25
|
+
-- Idempotent. Safe to re-run via `termdeck init --mnestra --yes`. NULL on every
|
|
26
|
+
-- existing row is the correct default — old memories were never tagged with a
|
|
27
|
+
-- session, and Rumen's WHERE source_session_id IS NOT NULL filter excludes
|
|
28
|
+
-- them naturally.
|
|
29
|
+
|
|
30
|
+
ALTER TABLE memory_items
|
|
31
|
+
ADD COLUMN IF NOT EXISTS source_session_id TEXT;
|
|
32
|
+
|
|
33
|
+
CREATE INDEX IF NOT EXISTS idx_memory_items_source_session_id
|
|
34
|
+
ON memory_items (source_session_id)
|
|
35
|
+
WHERE source_session_id IS NOT NULL;
|