claude-code-session-manager 0.130.0 → 0.130.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/dist/assets/{AgentLibrary-ctvNes4y.js → AgentLibrary-Dlhtc8Ty.js} +1 -1
- package/dist/assets/{AppSettings-C03qTDSi.js → AppSettings-A3KoPcmL.js} +1 -1
- package/dist/assets/{Button-fOCJry21.js → Button-DvTXa_-4.js} +1 -1
- package/dist/assets/{Extensions-BWiDwigT.js → Extensions-Ddb4sQpO.js} +3 -3
- package/dist/assets/{History-BIQFPXM8.js → History-DcnZxMoU.js} +1 -1
- package/dist/assets/{Library-BGmD-xZN.js → Library-LftcMs6C.js} +1 -1
- package/dist/assets/{ListDetail-BeO3lY8t.js → ListDetail-CnL1azR0.js} +1 -1
- package/dist/assets/{Memory-BeXuYIcE.js → Memory-smN9-Yoo.js} +1 -1
- package/dist/assets/{Panel-OUbLHNsS.js → Panel-CA6TdCHv.js} +1 -1
- package/dist/assets/{ProvenanceBadge-kr7arZqu.js → ProvenanceBadge-Y3DhyiJo.js} +1 -1
- package/dist/assets/{Scheduler-DycegnjH.js → Scheduler-Ca1qo_kp.js} +1 -1
- package/dist/assets/{Settings-BSq6VASG.js → Settings-BFwlV-as.js} +1 -1
- package/dist/assets/{SkillReferenceGraph-CvPdxg56.js → SkillReferenceGraph-2WMsKdmr.js} +1 -1
- package/dist/assets/{SourceChip-C2YMnlV8.js → SourceChip-CeprSxwb.js} +1 -1
- package/dist/assets/{SystemPrompt-fpXEK_Rm.js → SystemPrompt-B8TXIGXo.js} +1 -1
- package/dist/assets/{TiptapBody-DusJg0je.js → TiptapBody-BvxcQ_tS.js} +1 -1
- package/dist/assets/{Toggle-BnJF4V6k.js → Toggle-keTV_HDb.js} +1 -1
- package/dist/assets/{ViewTabs-BYrRSHb6.js → ViewTabs-fupn9keJ.js} +1 -1
- package/dist/assets/{VoiceButton-Bk66E-fP.js → VoiceButton-5ETBv9eI.js} +1 -1
- package/dist/assets/{historyTotals-DnuVADtI.js → historyTotals-NAZqiuzd.js} +1 -1
- package/dist/assets/{index-DfWJO7nP.js → index-QJxszEhM.js} +304 -304
- package/dist/index.html +1 -1
- package/dist-web/app.js +339 -339
- package/package.json +1 -1
- package/src/main/build-info.json +4 -4
- package/src/main/lib/activeSessions.cjs +6 -2
- package/src/main/promptSessionsIpc.cjs +39 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-session-manager",
|
|
3
|
-
"version": "0.130.
|
|
3
|
+
"version": "0.130.1",
|
|
4
4
|
"description": "Local cockpit for the Claude Code CLI — multi-tab terminal, full config surface, scheduler, voice dictation, and live observability.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main/index.cjs",
|
package/src/main/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.130.
|
|
3
|
-
"gitSha": "
|
|
4
|
-
"gitShortSha": "
|
|
2
|
+
"version": "0.130.1",
|
|
3
|
+
"gitSha": "c44cbe32642cfc821a0014f430cd6db3235e48e8",
|
|
4
|
+
"gitShortSha": "c44cbe32",
|
|
5
5
|
"gitBranch": "HEAD",
|
|
6
|
-
"builtAt": "2026-11-
|
|
6
|
+
"builtAt": "2026-11-07T08:09:17.697Z",
|
|
7
7
|
"dirty": false
|
|
8
8
|
}
|
|
@@ -448,6 +448,10 @@ function deriveCwds(records, maxAgeMin, maxCwds, tmpDropRoots) {
|
|
|
448
448
|
const cutoffMs = Date.now() - maxAgeMin * 60 * 1000;
|
|
449
449
|
const seen = new Set();
|
|
450
450
|
const result = [];
|
|
451
|
+
// Read once per call: the TMP_DROP_ROOTS getters do mkdirSync work, so
|
|
452
|
+
// reading them per record cost ~66% of each allProjectCwds() call.
|
|
453
|
+
const prefixDropRoots = tmpDropRoots.prefixDropRoots;
|
|
454
|
+
const exactDropCwds = tmpDropRoots.exactDropCwds;
|
|
451
455
|
|
|
452
456
|
function addCwd(rawCwd) {
|
|
453
457
|
if (!rawCwd || typeof rawCwd !== 'string') return;
|
|
@@ -470,8 +474,8 @@ function deriveCwds(records, maxAgeMin, maxCwds, tmpDropRoots) {
|
|
|
470
474
|
// worktree-scratch root after projectRootOf's normalization is one
|
|
471
475
|
// worktreeMainRootOf could not resolve to a main tree — never a real
|
|
472
476
|
// project.
|
|
473
|
-
if (
|
|
474
|
-
const isUnderPrefixDropRoot =
|
|
477
|
+
if (exactDropCwds.includes(cwd)) return;
|
|
478
|
+
const isUnderPrefixDropRoot = prefixDropRoots.some((root) => {
|
|
475
479
|
if (cwd === root) return true;
|
|
476
480
|
const rel = path.relative(root, cwd);
|
|
477
481
|
return rel !== '' && !rel.startsWith('..') && !path.isAbsolute(rel);
|
|
@@ -36,10 +36,48 @@ function defaultProjectRoots() {
|
|
|
36
36
|
return roots;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Short-lived Set of registered roots. Rebuilds when older than ttlMs; a miss
|
|
41
|
+
* rebuilds at most once per missRefreshMs before answering false. Holds only
|
|
42
|
+
* roots from source(), never caller-supplied strings.
|
|
43
|
+
*/
|
|
44
|
+
function makeRegisteredRootsCache(source, { ttlMs = 10000, missRefreshMs = 1000, now = Date.now } = {}) {
|
|
45
|
+
let set = null;
|
|
46
|
+
let builtAt = 0;
|
|
47
|
+
function rebuild() {
|
|
48
|
+
const { projectRootOf } = require('./lib/activeSessions.cjs');
|
|
49
|
+
const next = new Set();
|
|
50
|
+
for (const r of source() || []) {
|
|
51
|
+
if (typeof r !== 'string' || !r) continue;
|
|
52
|
+
next.add(norm(r));
|
|
53
|
+
next.add(norm(projectRootOf(r) || r));
|
|
54
|
+
}
|
|
55
|
+
set = next;
|
|
56
|
+
builtAt = now();
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
has(cwd) {
|
|
60
|
+
if (!set || now() - builtAt >= ttlMs) rebuild();
|
|
61
|
+
if (set.has(cwd)) return true;
|
|
62
|
+
if (now() - builtAt < missRefreshMs) return false;
|
|
63
|
+
rebuild();
|
|
64
|
+
return set.has(cwd);
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
let defaultRootsCache = null;
|
|
70
|
+
function __resetRegisteredRootsCacheForTests() { defaultRootsCache = null; }
|
|
71
|
+
|
|
39
72
|
function assertRegistered(cwd, projectRoots) {
|
|
40
73
|
if (typeof cwd !== 'string' || !cwd || !path.isAbsolute(cwd)) throw new Error('cwd must be an absolute project path');
|
|
41
74
|
const { projectRootOf } = require('./lib/activeSessions.cjs');
|
|
42
75
|
const want = norm(projectRootOf(cwd) || cwd);
|
|
76
|
+
if (projectRoots === defaultProjectRoots) {
|
|
77
|
+
if (!defaultRootsCache) defaultRootsCache = makeRegisteredRootsCache(defaultProjectRoots);
|
|
78
|
+
if (defaultRootsCache.has(want)) return;
|
|
79
|
+
throw new Error('cwd is not a registered project root');
|
|
80
|
+
}
|
|
43
81
|
for (const r of projectRoots() || []) {
|
|
44
82
|
if (typeof r !== 'string' || !r) continue;
|
|
45
83
|
if (norm(r) === want || norm(projectRootOf(r) || r) === want) return;
|
|
@@ -128,4 +166,4 @@ function registerPromptSessionsReadHandlers() {
|
|
|
128
166
|
ipcMain.handle('promptSessions:read-session-transcript', v(s.promptSessionsReadSessionTranscript, ({ cwd, sessionId }) => readSessionTranscript(cwd, sessionId)));
|
|
129
167
|
}
|
|
130
168
|
|
|
131
|
-
module.exports = { loadActiveIndex, listArchived, readArchived, readSessionTranscript, writeArchive, registerPromptSessionsReadHandlers };
|
|
169
|
+
module.exports = { makeRegisteredRootsCache, __resetRegisteredRootsCacheForTests, loadActiveIndex, listArchived, readArchived, readSessionTranscript, writeArchive, registerPromptSessionsReadHandlers };
|