open-research 0.1.14 → 0.1.16

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 +11 -5
  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.14";
814
+ var PACKAGE_VERSION = "0.1.16";
815
815
  function getPackageVersion() {
816
816
  return PACKAGE_VERSION;
817
817
  }
@@ -4349,8 +4349,12 @@ async function discoverScholarlySources({
4349
4349
 
4350
4350
  // src/lib/agent/search-external-sources.ts
4351
4351
  async function executeSearchExternalSources(args, ctx) {
4352
- const primary = args.searches[0];
4353
- const variations = args.searches.slice(1).map((item) => item.query);
4352
+ const searches = args.searches ?? [];
4353
+ if (searches.length === 0) {
4354
+ return { result: "Error: no search queries provided.", sources: [] };
4355
+ }
4356
+ const primary = searches[0];
4357
+ const variations = searches.slice(1).map((item) => item.query);
4354
4358
  const results = await discoverScholarlySources({
4355
4359
  query: primary.query,
4356
4360
  queryVariations: variations,
@@ -7601,7 +7605,8 @@ ${msg.text}
7601
7605
  startTransition(() => {
7602
7606
  setMessages((current) => [
7603
7607
  ...current,
7604
- { role: "system", text: `Error: ${error instanceof Error ? error.message : String(error)}` }
7608
+ { role: "system", text: `Error: ${error instanceof Error ? `${error.message}
7609
+ ${error.stack}` : String(error)}` }
7605
7610
  ]);
7606
7611
  });
7607
7612
  }
@@ -7698,7 +7703,8 @@ ${msg.text}
7698
7703
  startTransition(() => {
7699
7704
  setMessages((current) => [
7700
7705
  ...current,
7701
- { role: "system", text: `Error: ${error instanceof Error ? error.message : String(error)}` }
7706
+ { role: "system", text: `Error: ${error instanceof Error ? `${error.message}
7707
+ ${error.stack}` : String(error)}` }
7702
7708
  ]);
7703
7709
  });
7704
7710
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-research",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
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",