open-research 0.1.15 → 0.1.17

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 +27 -8
  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.17";
815
815
  function getPackageVersion() {
816
816
  return PACKAGE_VERSION;
817
817
  }
@@ -1475,9 +1475,9 @@ function TextInput({
1475
1475
  nextValue = originalValue.slice(0, cursorOffset - 1) + originalValue.slice(cursorOffset);
1476
1476
  nextCursor--;
1477
1477
  }
1478
- } else if (key.meta && key.leftArrow) {
1478
+ } else if (key.meta && key.leftArrow || key.meta && input2 === "b" || key.ctrl && key.leftArrow) {
1479
1479
  nextCursor = prevWordBoundary(originalValue, cursorOffset);
1480
- } else if (key.meta && key.rightArrow) {
1480
+ } else if (key.meta && key.rightArrow || key.meta && input2 === "f" || key.ctrl && key.rightArrow) {
1481
1481
  nextCursor = nextWordBoundary(originalValue, cursorOffset);
1482
1482
  } else if (key.ctrl && input2 === "a" || key.home) {
1483
1483
  nextCursor = 0;
@@ -2187,12 +2187,27 @@ var TOOL_SCHEMAS = [
2187
2187
  type: "function",
2188
2188
  function: {
2189
2189
  name: "search_external_sources",
2190
- description: "Search OpenAlex, Semantic Scholar, and arXiv for academic papers.",
2190
+ description: "Search OpenAlex, Semantic Scholar, and arXiv for academic papers. Provide one or more search queries. The first query is the primary search; additional queries are variations to broaden coverage.",
2191
2191
  parameters: {
2192
2192
  type: "object",
2193
2193
  properties: {
2194
- searches: { type: "array", items: { type: "object" } },
2195
- num_results: { type: "number" }
2194
+ searches: {
2195
+ type: "array",
2196
+ items: {
2197
+ type: "object",
2198
+ properties: {
2199
+ query: { type: "string", description: "The search query string." },
2200
+ intent: { type: "string", description: "Brief description of what you're looking for with this query." }
2201
+ },
2202
+ required: ["query"],
2203
+ additionalProperties: false
2204
+ },
2205
+ description: "Array of search queries. First is primary, rest are variations."
2206
+ },
2207
+ num_results: {
2208
+ type: "number",
2209
+ description: "Maximum number of results to return. Default: 8."
2210
+ }
2196
2211
  },
2197
2212
  required: ["searches"],
2198
2213
  additionalProperties: false
@@ -4349,8 +4364,12 @@ async function discoverScholarlySources({
4349
4364
 
4350
4365
  // src/lib/agent/search-external-sources.ts
4351
4366
  async function executeSearchExternalSources(args, ctx) {
4352
- const primary = args.searches[0];
4353
- const variations = args.searches.slice(1).map((item) => item.query);
4367
+ const searches = args.searches ?? [];
4368
+ if (searches.length === 0) {
4369
+ return { result: "Error: no search queries provided.", sources: [] };
4370
+ }
4371
+ const primary = searches[0];
4372
+ const variations = searches.slice(1).map((item) => item.query);
4354
4373
  const results = await discoverScholarlySources({
4355
4374
  query: primary.query,
4356
4375
  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.17",
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",