codesesh 0.7.1 → 0.8.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.
@@ -3330,18 +3330,18 @@ var CodexAgent = class extends BaseAgent {
3330
3330
  if (meta.parserVersion !== PARSER_VERSION) return true;
3331
3331
  if (typeof meta.sourceMtimeMs !== "number") return true;
3332
3332
  if (statSync4(meta.sourcePath).mtimeMs !== meta.sourceMtimeMs) return true;
3333
- const indexPath = meta.indexPath ?? this.getSessionIndexPath();
3334
- return this.getFileMtimeMs(indexPath) !== (meta.indexMtimeMs ?? null);
3333
+ const indexTitle = this.getTitleForSession(meta.id);
3334
+ return indexTitle !== null && indexTitle !== meta.title;
3335
3335
  }
3336
3336
  sourceFingerprint(file) {
3337
3337
  const stat = statSync4(file);
3338
- const indexPath = this.getSessionIndexPath();
3338
+ const sessionId = extractSessionId(file);
3339
3339
  return JSON.stringify([
3340
3340
  HEAD_INDEX_VERSION2,
3341
3341
  PARSER_VERSION,
3342
3342
  stat.mtimeMs,
3343
3343
  stat.size,
3344
- this.getFileMtimeMs(indexPath)
3344
+ this.getTitleForSession(sessionId)
3345
3345
  ]);
3346
3346
  }
3347
3347
  getSessionIndexPath() {
@@ -5191,7 +5191,6 @@ function extractSessionFileActivity(agentName, sessionId, projectIdentityKey, me
5191
5191
  }
5192
5192
  var CACHE_SCHEMA_VERSION = 13;
5193
5193
  var CACHE_INITIALIZATION_VERSION = "session-cache-v2";
5194
- var CACHE_TTL = 7 * 24 * 60 * 60 * 1e3;
5195
5194
  var CACHE_FILENAME = "codesesh.db";
5196
5195
  var LEGACY_CACHE_FILENAME = "scan-cache.json";
5197
5196
  var SEARCH_INDEX_BULK_SYNC_THRESHOLD = 100;
@@ -6653,14 +6652,14 @@ function deleteLegacyCacheFile() {
6653
6652
  } catch {
6654
6653
  }
6655
6654
  }
6656
- function loadCachedSessions(agentName, options = {}) {
6655
+ function loadCachedSessions(agentName) {
6657
6656
  if (!hasCacheStorage()) {
6658
6657
  return null;
6659
6658
  }
6660
6659
  return withCacheDb((db) => {
6661
6660
  const timestampRow = db.prepare("SELECT timestamp AS value FROM agent_cache WHERE agent_name = ?").get(agentName);
6662
6661
  const timestamp = Number(timestampRow?.value ?? 0);
6663
- if (!timestamp || !options.ignoreTtl && Date.now() - timestamp > CACHE_TTL) {
6662
+ if (!timestamp) {
6664
6663
  return null;
6665
6664
  }
6666
6665
  const rows = db.prepare(
@@ -8557,4 +8556,4 @@ export {
8557
8556
  importBookmarks,
8558
8557
  deleteBookmark
8559
8558
  };
8560
- //# sourceMappingURL=chunk-7GQEIPVK.js.map
8559
+ //# sourceMappingURL=chunk-XANARSZG.js.map