session-steward 0.5.2 → 0.7.0

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.
@@ -41,7 +41,12 @@ export async function* readJsonlEntries(filePath) {
41
41
  }
42
42
 
43
43
  function appendLineBytes(state, bytes, maxLineBytes) {
44
- if (state.oversized || bytes.length === 0) return;
44
+ if (bytes.length === 0) return;
45
+
46
+ // Counted even once a line is oversized, because the largest records in a
47
+ // transcript are exactly the ones that stop being buffered.
48
+ state.totalBytes += bytes.length;
49
+ if (state.oversized) return;
45
50
 
46
51
  if (state.length + bytes.length > maxLineBytes) {
47
52
  state.length = 0;
@@ -69,17 +74,20 @@ function createLineState(maxLineBytes) {
69
74
  buffer: Buffer.allocUnsafe(Math.min(JSONL_STARTING_LINE_BYTES, maxLineBytes)),
70
75
  length: 0,
71
76
  oversized: false,
77
+ totalBytes: 0,
72
78
  };
73
79
  }
74
80
 
75
81
  function resetLineState(state) {
76
82
  state.length = 0;
77
83
  state.oversized = false;
84
+ state.totalBytes = 0;
78
85
  }
79
86
 
80
87
  function snapshotEntry(state, index) {
81
88
  if (state.oversized) {
82
89
  return {
90
+ bytes: state.totalBytes,
83
91
  index,
84
92
  oversized: true,
85
93
  parsed: null,
@@ -93,6 +101,7 @@ function snapshotEntry(state, index) {
93
101
 
94
102
  const entry = parseLine(bytes.toString("utf8"), index);
95
103
  return {
104
+ bytes: state.totalBytes,
96
105
  index: entry.index,
97
106
  oversized: false,
98
107
  parsed: entry.parsed,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "session-steward",
3
- "version": "0.5.2",
4
- "description": "A local Codex and Claude Code session manager for safely reviewing and deleting old sessions.",
3
+ "version": "0.7.0",
4
+ "description": "Codex and Claude Code session manager - browse, back up, and delete old sessions. Local browser UI + CLI.",
5
5
  "license": "MIT",
6
6
  "author": "Mallik Cheripally",
7
7
  "type": "module",
@@ -17,28 +17,25 @@
17
17
  "bugs": "https://github.com/mallikcheripally/session-steward/issues",
18
18
  "keywords": [
19
19
  "codex",
20
- "claude-code",
21
- "claude-code-sessions",
22
- "claude-desktop",
23
20
  "codex-cli",
24
- "openai-codex",
25
21
  "codex-sessions",
26
- "codex-session-manager",
27
- "codex-session-cleanup",
28
22
  "codex-cleanup",
29
- "codex-history",
30
- "delete-codex-sessions",
31
- "session-manager",
32
- "session-cleanup",
33
- "ai-session-manager",
23
+ "openai-codex",
34
24
  "chatgpt-desktop",
35
- "chatgpt-history",
36
- "ai-coding-agent",
37
- "chatgpt-app-cleanup"
25
+ "claude-code",
26
+ "claude-code-sessions",
27
+ "claude-code-cleanup",
28
+ "claude-desktop",
29
+ "session-cleanup",
30
+ "session-history",
31
+ "session-manager",
32
+ "disk-space",
33
+ "disk-cleanup"
38
34
  ],
39
35
  "os": [
40
36
  "darwin",
41
- "linux"
37
+ "linux",
38
+ "win32"
42
39
  ],
43
40
  "files": [
44
41
  "bin",
@@ -56,6 +53,7 @@
56
53
  },
57
54
  "scripts": {
58
55
  "build": "vite build",
56
+ "benchmark:claude-discovery": "node --expose-gc test/benchmarks/claude-discovery.mjs",
59
57
  "benchmark:discovery": "node --expose-gc test/benchmarks/codex-discovery.mjs",
60
58
  "benchmark:events": "node --expose-gc test/benchmarks/session-events.mjs",
61
59
  "benchmark:overview": "node --expose-gc test/benchmarks/codex-overview.mjs",