session-steward 0.4.0 → 0.5.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.
- package/CHANGELOG.md +31 -0
- package/README.md +13 -0
- package/bin/session-steward-cli.mjs +14 -0
- package/dist/assets/index-B8U6eLCA.css +2 -0
- package/dist/assets/index-JaDHeyls.js +9 -0
- package/dist/index.html +2 -2
- package/lib/cli.mjs +134 -2
- package/lib/providers/claude-code/events.mjs +498 -0
- package/lib/providers/claude-code/index.mjs +2 -0
- package/lib/providers/claude-code/store.mjs +6 -1
- package/lib/providers/codex/database-families.mjs +2 -2
- package/lib/providers/codex/events.mjs +779 -0
- package/lib/providers/codex/index.mjs +2 -0
- package/lib/providers/codex/store.mjs +82 -4
- package/lib/server.mjs +62 -1
- package/lib/session-event-reader.mjs +126 -0
- package/lib/session-events.mjs +307 -0
- package/lib/storage/jsonl.mjs +148 -0
- package/package.json +6 -2
- package/dist/assets/index-BQ6SUqXr.css +0 -2
- package/dist/assets/index-QhQbSn0H.js +0 -9
|
@@ -12,9 +12,13 @@ import { readJsonlEntries, rewriteJsonlFile } from "../../storage/jsonl.mjs";
|
|
|
12
12
|
const PROVIDER_ID = "claude-code";
|
|
13
13
|
const COMPATIBILITY_PROFILE = Object.freeze({
|
|
14
14
|
id: "claude-local-store-2026-08",
|
|
15
|
-
builtFor: {
|
|
15
|
+
builtFor: {
|
|
16
|
+
claudeCli: ["2.1.199", "2.1.220", "2.1.228"],
|
|
17
|
+
claudeDesktop: ["1.24012.9", "1.28929.0"],
|
|
18
|
+
},
|
|
16
19
|
});
|
|
17
20
|
const SUPPORTED_ENTRYPOINTS = new Set(["cli", "claude-desktop"]);
|
|
21
|
+
const SHARED_DESKTOP_STATE_FILES = new Set(["scheduled-tasks.json"]);
|
|
18
22
|
const KNOWN_TOP_LEVEL = new Set([
|
|
19
23
|
".DS_Store", ".last-cleanup", ".last-update-result.json", "agents", "backups", "cache", "commands", "debug", "downloads", "file-history", "history.jsonl",
|
|
20
24
|
"ide", "paste-cache", "plans", "plugins", "projects", "session-env", "sessions", "settings.json",
|
|
@@ -315,6 +319,7 @@ async function listDesktopStates(directory) {
|
|
|
315
319
|
const target = path.join(current, entry.name);
|
|
316
320
|
if (entry.isDirectory()) { pending.push(target); continue; }
|
|
317
321
|
if (!entry.isFile() || !entry.name.endsWith(".json")) continue;
|
|
322
|
+
if (SHARED_DESKTOP_STATE_FILES.has(entry.name)) continue;
|
|
318
323
|
try {
|
|
319
324
|
const state = JSON.parse(await fs.readFile(target, "utf8"));
|
|
320
325
|
if (typeof state?.cliSessionId !== "string" || typeof state?.sessionId !== "string") {
|
|
@@ -8,8 +8,8 @@ const CACHE_TTL_MS = 2_000;
|
|
|
8
8
|
export const CODEX_DATABASE_PROFILE = Object.freeze({
|
|
9
9
|
id: "codex-local-store-2026-08",
|
|
10
10
|
builtFor: {
|
|
11
|
-
chatgptDesktop: ["26.727.40816"],
|
|
12
|
-
codexCli: ["0.144.1", "0.146.0"],
|
|
11
|
+
chatgptDesktop: ["26.727.40816", "26.803.61601"],
|
|
12
|
+
codexCli: ["0.144.1", "0.146.0", "0.147.0"],
|
|
13
13
|
},
|
|
14
14
|
});
|
|
15
15
|
|