open-research 0.1.15 → 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 +7 -3
  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.15";
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-research",
3
- "version": "0.1.15",
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",