chron-mcp 0.1.24 → 0.1.26

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.js CHANGED
@@ -38479,7 +38479,7 @@ var init_time = __esm({
38479
38479
  var version4;
38480
38480
  var init_package = __esm({
38481
38481
  "package.json"() {
38482
- version4 = "0.1.24";
38482
+ version4 = "0.1.26";
38483
38483
  }
38484
38484
  });
38485
38485
 
@@ -39698,8 +39698,8 @@ function detectMutations(content) {
39698
39698
  }
39699
39699
  return hits;
39700
39700
  }
39701
- async function buildSummary(sessionPrefix) {
39702
- const db = await initDb();
39701
+ async function buildSummary(sessionPrefix, existingDb) {
39702
+ const db = existingDb ?? await initDb();
39703
39703
  const allSessions = await db.select().from(sessions);
39704
39704
  const session = allSessions.find((s) => s.id.startsWith(sessionPrefix));
39705
39705
  if (!session)
@@ -39771,7 +39771,7 @@ var init_summary = __esm({
39771
39771
  // src/tools/summary.ts
39772
39772
  function summarizeSession(_db) {
39773
39773
  return async (args) => {
39774
- const data = await buildSummary(args.session_id);
39774
+ const data = await buildSummary(args.session_id, _db);
39775
39775
  if (!data) {
39776
39776
  return {
39777
39777
  content: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chron-mcp",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "mcpName": "io.github.sirinivask/chron",
5
5
  "description": "Audit-grade timestamped logs for every AI conversation",
6
6
  "repository": {