sim 2.0.0-preview.15.1 → 2.0.0-preview.16.1
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/index.js +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9818,7 +9818,7 @@ var CLI_CONTRACT = {
|
|
|
9818
9818
|
},
|
|
9819
9819
|
itemsPath: "results",
|
|
9820
9820
|
columns: [
|
|
9821
|
-
{ header: "score", path: "similarity" },
|
|
9821
|
+
{ header: "score", path: "similarity", format: "score" },
|
|
9822
9822
|
{ header: "document", path: "documentName" },
|
|
9823
9823
|
{ header: "chunk", path: "chunkIndex" },
|
|
9824
9824
|
{ header: "content" }
|
|
@@ -10809,6 +10809,8 @@ function renderCell(value, format, options = {}) {
|
|
|
10809
10809
|
return bool2(value);
|
|
10810
10810
|
case "cost":
|
|
10811
10811
|
return typeof value === "number" ? `$${value.toFixed(4)}` : text(null);
|
|
10812
|
+
case "score":
|
|
10813
|
+
return typeof value === "number" ? value.toFixed(4) : text(null);
|
|
10812
10814
|
case "count":
|
|
10813
10815
|
return Array.isArray(value) ? String(value.length) : text(null);
|
|
10814
10816
|
case "folder-path":
|
|
@@ -12185,7 +12187,8 @@ function buildGeneratedCommands() {
|
|
|
12185
12187
|
var PROGRAM_DESCRIPTION = "Talk to the Sim API from your terminal";
|
|
12186
12188
|
var HELP_EPILOGUE = `
|
|
12187
12189
|
Profiles work like the AWS CLI: settings live in ~/.sim/config, keys in
|
|
12188
|
-
~/.sim/credentials (0600)
|
|
12190
|
+
~/.sim/credentials (0600), or under SIM_CONFIG_DIR when it is set. Select one
|
|
12191
|
+
with -P, --profile, or SIM_PROFILE.
|
|
12189
12192
|
|
|
12190
12193
|
Examples:
|
|
12191
12194
|
$ sim login Authorize the default profile
|