@zenera/rag 1.1.0 → 1.1.3
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/README.md +1 -1
- package/dist/command.js +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/command.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { bold, CliError, cyan, dim, ensureHome, EXIT, isInteractive, json, KeyStore, note, parse, PROVIDERS, SHAPES, table, usageError, write, } from '@zenera/cli/lib';
|
|
1
|
+
import { bold, CliError, cyan, dim, ensureHome, envNames, EXIT, form, isInteractive, json, KeyStore, note, parse, PROVIDERS, table, usageError, write, } from '@zenera/cli/lib';
|
|
3
2
|
import { createEmbedder } from '@zenera/neo';
|
|
3
|
+
import { relative, resolve } from 'node:path';
|
|
4
4
|
import { isFormat, present } from "./present.js";
|
|
5
5
|
import { isEmpty, parseQuery, QueryError } from "./query.js";
|
|
6
6
|
import { repl } from "./repl.js";
|
|
@@ -375,7 +375,7 @@ async function embedder(ref) {
|
|
|
375
375
|
const keys = await KeyStore.open();
|
|
376
376
|
// Asked before materialising, because materialising is what erases the
|
|
377
377
|
// difference between "the environment had it" and "the keyring supplied it".
|
|
378
|
-
const fromEnv = new Set(PROVIDERS.filter((p) => process.env[
|
|
378
|
+
const fromEnv = new Set(PROVIDERS.filter((p) => envNames(p).some((n) => process.env[n])));
|
|
379
379
|
keys.materialize();
|
|
380
380
|
if (!ref) {
|
|
381
381
|
throw choices(keys, fromEnv);
|
|
@@ -404,7 +404,7 @@ function choices(keys, fromEnv) {
|
|
|
404
404
|
: keys.active(provider)
|
|
405
405
|
? 'keyring'
|
|
406
406
|
: '';
|
|
407
|
-
const row = [` ${cyan(`${provider}:${model}`)}`, dim(source ||
|
|
407
|
+
const row = [` ${cyan(`${provider}:${model}`)}`, dim(source || form(provider).env)];
|
|
408
408
|
(source ? rows : rest).push(row);
|
|
409
409
|
}
|
|
410
410
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenera/rag",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Retrieval over API descriptions: openapi/swagger documents as a searchable graph.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@apidevtools/swagger-parser": "^12.0.0",
|
|
54
54
|
"@lancedb/lancedb": "^0.38.0",
|
|
55
55
|
"graphology": "^0.26.0",
|
|
56
|
-
"@zenera/cli": "^1.1.
|
|
57
|
-
"@zenera/neo": "^1.1.
|
|
56
|
+
"@zenera/cli": "^1.1.3",
|
|
57
|
+
"@zenera/neo": "^1.1.3"
|
|
58
58
|
}
|
|
59
59
|
}
|