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.
- package/dist/cli.js +7 -3
- 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.
|
|
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
|
|
4353
|
-
|
|
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