@claude-sessions/core 0.4.7 → 0.4.8-beta.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/index.d.ts +50 -12
- package/dist/index.js +124 -35
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/{types-BMQErZZE.d.ts → types-CoLRUgPk.d.ts} +11 -2
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ interface Project {
|
|
|
121
121
|
displayName: string;
|
|
122
122
|
path: string;
|
|
123
123
|
sessionCount: number;
|
|
124
|
+
lastModified?: number;
|
|
124
125
|
}
|
|
125
126
|
/** A single todo item from TodoWrite tool */
|
|
126
127
|
interface TodoItem {
|
|
@@ -186,6 +187,7 @@ interface ClearSessionsResult {
|
|
|
186
187
|
removedMessageCount?: number;
|
|
187
188
|
deletedOrphanAgentCount?: number;
|
|
188
189
|
deletedOrphanTodoCount?: number;
|
|
190
|
+
deletedStaleProjectCount?: number;
|
|
189
191
|
}
|
|
190
192
|
/** Preview of sessions that would be cleaned up */
|
|
191
193
|
interface CleanupPreview {
|
|
@@ -195,6 +197,7 @@ interface CleanupPreview {
|
|
|
195
197
|
emptyWithTodosCount?: number;
|
|
196
198
|
orphanAgentCount?: number;
|
|
197
199
|
orphanTodoCount?: number;
|
|
200
|
+
isStale?: boolean;
|
|
198
201
|
}
|
|
199
202
|
/** A search result matching a session or message */
|
|
200
203
|
interface SearchResult {
|
|
@@ -260,7 +263,7 @@ interface SessionTreeData {
|
|
|
260
263
|
updatedAt?: string;
|
|
261
264
|
/** File modification time (Unix timestamp ms) */
|
|
262
265
|
fileMtime?: number;
|
|
263
|
-
/** Pre-calculated sort timestamp (Unix timestamp ms)
|
|
266
|
+
/** Pre-calculated sort timestamp (Unix timestamp ms) - reflects active sort field for display */
|
|
264
267
|
sortTimestamp: number;
|
|
265
268
|
/** All summaries in reverse order (newest first) */
|
|
266
269
|
summaries: SummaryInfo[];
|
|
@@ -282,6 +285,12 @@ interface ProjectTreeData {
|
|
|
282
285
|
*/
|
|
283
286
|
type SessionSortField = 'summary' | 'modified' | 'created' | 'updated' | 'messageCount' | 'title';
|
|
284
287
|
type SessionSortOrder = 'asc' | 'desc';
|
|
288
|
+
/**
|
|
289
|
+
* Title display mode for session list
|
|
290
|
+
* - 'message': Show first user message (default, legacy behavior)
|
|
291
|
+
* - 'datetime': Show relative/absolute date when no custom title or summary
|
|
292
|
+
*/
|
|
293
|
+
type TitleDisplayMode = 'message' | 'datetime';
|
|
285
294
|
interface SessionSortOptions {
|
|
286
295
|
field: SessionSortField;
|
|
287
296
|
order: SessionSortOrder;
|
|
@@ -417,4 +426,4 @@ interface SummarizeSessionResult {
|
|
|
417
426
|
formatted: string;
|
|
418
427
|
}
|
|
419
428
|
|
|
420
|
-
export type { AgentInfo as A, CompressSessionOptions as C, DeleteSessionResult as D, FileChange as F, MessagePayload as M, Project as P, RenameSessionResult as R, SummaryInfo as S,
|
|
429
|
+
export type { AgentInfo as A, SessionSortOrder as B, CompressSessionOptions as C, DeleteSessionResult as D, FileChange as F, MessagePayload as M, Project as P, RenameSessionResult as R, SummaryInfo as S, TitleDisplayMode as T, Message as a, SessionSortField as b, SessionTodos as c, MoveSessionResult as d, SessionSortOptions as e, ProjectTreeData as f, SummarizeSessionOptions as g, ConversationLine as h, SearchResult as i, SessionsIndex as j, SessionIndexEntry as k, ContentItem as l, SessionMeta as m, TodoItem as n, SessionFilesSummary as o, SplitSessionResult as p, ClearSessionsResult as q, CleanupPreview as r, SessionTreeData as s, ResumeSessionOptions as t, ResumeSessionResult as u, ToolUsageStats as v, SessionAnalysis as w, CompressSessionResult as x, ProjectKnowledge as y, SummarizeSessionResult as z };
|