open-research 0.1.13 → 0.1.15

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.
Files changed (2) hide show
  1. package/dist/cli.js +10 -29
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -811,7 +811,7 @@ function formatDateTime(value) {
811
811
  }
812
812
 
813
813
  // src/lib/cli/version.ts
814
- var PACKAGE_VERSION = "0.1.13";
814
+ var PACKAGE_VERSION = "0.1.15";
815
815
  function getPackageVersion() {
816
816
  return PACKAGE_VERSION;
817
817
  }
@@ -7040,35 +7040,14 @@ function App({
7040
7040
  addSystemMessage("No workspace. Run /init first.");
7041
7041
  break;
7042
7042
  }
7043
- const resumeSessions2 = await listSessions(workspacePath);
7044
- if (resumeSessions2.length === 0) {
7043
+ const foundSessions = await listSessions(workspacePath);
7044
+ if (foundSessions.length === 0) {
7045
7045
  addSystemMessage("No previous sessions found.");
7046
7046
  break;
7047
7047
  }
7048
- if (!args) {
7049
- addSystemMessage("Recent sessions:");
7050
- for (let ri = 0; ri < Math.min(resumeSessions2.length, 10); ri++) {
7051
- const rs = resumeSessions2[ri];
7052
- addSystemMessage(` ${ri + 1}. ${rs.preview || "(empty)"} \u2014 ${rs.turnCount} turns \u2014 ${new Date(rs.lastActivity).toLocaleString()}`);
7053
- }
7054
- addSystemMessage("Type /resume <number> to restore a session.");
7055
- break;
7056
- }
7057
- const resumeIdx = parseInt(args, 10);
7058
- if (isNaN(resumeIdx) || resumeIdx < 1 || resumeIdx > resumeSessions2.length) {
7059
- addSystemMessage(`Invalid choice. Pick 1-${Math.min(resumeSessions2.length, 10)}.`);
7060
- break;
7061
- }
7062
- try {
7063
- const restored = await loadSessionHistory(workspacePath, resumeSessions2[resumeIdx - 1].id);
7064
- startTransition(() => {
7065
- setMessages(restored.messages);
7066
- setHistory(restored.llmHistory);
7067
- });
7068
- addSystemMessage(`Resumed session (${resumeSessions2[resumeIdx - 1].turnCount} turns). Continue where you left off.`);
7069
- } catch (err) {
7070
- addSystemMessage(`Failed: ${err instanceof Error ? err.message : String(err)}`);
7071
- }
7048
+ setResumeSessions(foundSessions);
7049
+ setScreen("resume");
7050
+ setComposerFocused(false);
7072
7051
  break;
7073
7052
  }
7074
7053
  case "config": {
@@ -7622,7 +7601,8 @@ ${msg.text}
7622
7601
  startTransition(() => {
7623
7602
  setMessages((current) => [
7624
7603
  ...current,
7625
- { role: "system", text: `Error: ${error instanceof Error ? error.message : String(error)}` }
7604
+ { role: "system", text: `Error: ${error instanceof Error ? `${error.message}
7605
+ ${error.stack}` : String(error)}` }
7626
7606
  ]);
7627
7607
  });
7628
7608
  }
@@ -7719,7 +7699,8 @@ ${msg.text}
7719
7699
  startTransition(() => {
7720
7700
  setMessages((current) => [
7721
7701
  ...current,
7722
- { role: "system", text: `Error: ${error instanceof Error ? error.message : String(error)}` }
7702
+ { role: "system", text: `Error: ${error instanceof Error ? `${error.message}
7703
+ ${error.stack}` : String(error)}` }
7723
7704
  ]);
7724
7705
  });
7725
7706
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-research",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Local-first research CLI agent — discover papers, synthesize notes, run analysis, and draft artifacts from your terminal.",
5
5
  "type": "module",
6
6
  "license": "MIT",