cursor-history-mcp 0.1.4 → 0.1.5

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.cjs CHANGED
@@ -11553,7 +11553,7 @@ var listSessionsTool = {
11553
11553
  async function handleListSessions(args) {
11554
11554
  try {
11555
11555
  const parsed = ListInputSchema.parse(args);
11556
- const result = listSessions2({
11556
+ const result = await listSessions2({
11557
11557
  limit: parsed.limit,
11558
11558
  offset: parsed.offset,
11559
11559
  workspace: parsed.workspace
@@ -11619,7 +11619,7 @@ var showSessionTool = {
11619
11619
  async function handleShowSession(args) {
11620
11620
  try {
11621
11621
  const parsed = ShowInputSchema.parse(args);
11622
- const session = getSession2(parsed.sessionIndex - 1);
11622
+ const session = await getSession2(parsed.sessionIndex - 1);
11623
11623
  const workspaceName = session.workspace ? session.workspace.split("/").pop() ?? session.workspace : "No workspace";
11624
11624
  const date = new Date(session.timestamp).toLocaleString();
11625
11625
  const lines = [
@@ -11703,7 +11703,7 @@ var searchTool = {
11703
11703
  async function handleSearch(args) {
11704
11704
  try {
11705
11705
  const parsed = SearchInputSchema.parse(args);
11706
- const results = searchSessions2(parsed.query, {
11706
+ const results = await searchSessions2(parsed.query, {
11707
11707
  limit: parsed.limit,
11708
11708
  context: parsed.context
11709
11709
  });
@@ -11765,10 +11765,10 @@ async function handleExport(args) {
11765
11765
  const format = parsed.format ?? "markdown";
11766
11766
  const index = parsed.sessionIndex - 1;
11767
11767
  if (format === "json") {
11768
- const result = exportSessionToJson(index);
11768
+ const result = await exportSessionToJson(index);
11769
11769
  return JSON.stringify(result, null, 2);
11770
11770
  } else {
11771
- const result = exportSessionToMarkdown(index);
11771
+ const result = await exportSessionToMarkdown(index);
11772
11772
  return result;
11773
11773
  }
11774
11774
  } catch (error) {
@@ -11937,7 +11937,7 @@ async function handleMigrate(args) {
11937
11937
  const parsed = MigrateInputSchema.parse(args);
11938
11938
  const mode = parsed.mode ?? "move";
11939
11939
  const zeroBasedIndexes = parsed.sessionIndexes.map((i) => i - 1);
11940
- const results = migrateSession2({
11940
+ const results = await migrateSession2({
11941
11941
  sessions: zeroBasedIndexes,
11942
11942
  destination: parsed.destination,
11943
11943
  mode