@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/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as ResumeSessionOptions, s as ResumeSessionResult } from './types-BMQErZZE.js';
1
+ import { t as ResumeSessionOptions, u as ResumeSessionResult } from './types-CoLRUgPk.js';
2
2
 
3
3
  /**
4
4
  * Resume a session using claude CLI
@@ -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) for 'summary' field */
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, TodoItem as T, Message as a, SessionTodos as b, MoveSessionResult as c, SessionSortOptions as d, ProjectTreeData as e, SummarizeSessionOptions as f, ConversationLine as g, SearchResult as h, SessionsIndex as i, SessionIndexEntry as j, ContentItem as k, SessionMeta as l, SessionFilesSummary as m, SplitSessionResult as n, ClearSessionsResult as o, CleanupPreview as p, SessionTreeData as q, ResumeSessionOptions as r, ResumeSessionResult as s, ToolUsageStats as t, SessionAnalysis as u, CompressSessionResult as v, ProjectKnowledge as w, SummarizeSessionResult as x, SessionSortField as y, SessionSortOrder as z };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-sessions/core",
3
- "version": "0.4.7",
3
+ "version": "0.4.8-beta.1",
4
4
  "description": "Core library for Claude Code session management",
5
5
  "type": "module",
6
6
  "license": "MIT",