@arbidocs/cli 0.3.50 → 0.3.52

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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.52
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.51...HEAD)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - Promote Developer Config out of Conversation Settings to sidebar ([#657](https://github.com/arbicity/ARBI-frontend/pull/657))
10
+
11
+ ### 🩹 Fixes
12
+
13
+ - **grid:** Dedupe across in-flight applyTransactionAsync calls ([#653](https://github.com/arbicity/ARBI-frontend/pull/653), [#654](https://github.com/arbicity/ARBI-frontend/pull/654))
14
+ - Avoid <button>-in-<button> nesting on Documents Review tab ([#655](https://github.com/arbicity/ARBI-frontend/pull/655), [#656](https://github.com/arbicity/ARBI-frontend/pull/656))
15
+
16
+ ## v0.3.51
17
+
18
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.50...HEAD)
19
+
20
+ ### 🔥 Performance
21
+
22
+ - Stop auto-refetching workspace documents/conversations/tags ([#650](https://github.com/arbicity/ARBI-frontend/pull/650), [#651](https://github.com/arbicity/ARBI-frontend/pull/651))
23
+
24
+ ### 🩹 Fixes
25
+
26
+ - Exclude /arbi-files/ from static-asset nginx location so image uploads reach MinIO ([#646](https://github.com/arbicity/ARBI-frontend/pull/646))
27
+ - Make workspace switch sequential and race-free ([#648](https://github.com/arbicity/ARBI-frontend/pull/648), [#649](https://github.com/arbicity/ARBI-frontend/pull/649))
28
+ - Omit doc_ext_ids by default in retrieve, cap explicit selection at 5000 ([#652](https://github.com/arbicity/ARBI-frontend/pull/652))
29
+
3
30
  ## v0.3.50
4
31
 
5
32
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.49...HEAD)
package/dist/index.js CHANGED
@@ -3641,7 +3641,7 @@ function getLatestVersion(skipCache = false) {
3641
3641
  }
3642
3642
  }
3643
3643
  function getCurrentVersion() {
3644
- return "0.3.50";
3644
+ return "0.3.52";
3645
3645
  }
3646
3646
  function readChangelog(fromVersion, toVersion) {
3647
3647
  try {
@@ -3694,17 +3694,17 @@ function showChangelog(fromVersion, toVersion) {
3694
3694
  async function checkForUpdates(autoUpdate) {
3695
3695
  try {
3696
3696
  const latest = getLatestVersion();
3697
- if (!latest || latest === "0.3.50") return;
3697
+ if (!latest || latest === "0.3.52") return;
3698
3698
  if (autoUpdate) {
3699
3699
  warn(`
3700
- Your arbi version is out of date (${"0.3.50"} \u2192 ${latest}). Updating...`);
3700
+ Your arbi version is out of date (${"0.3.52"} \u2192 ${latest}). Updating...`);
3701
3701
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3702
- showChangelog("0.3.50", latest);
3702
+ showChangelog("0.3.52", latest);
3703
3703
  console.log(`Updated to ${latest}.`);
3704
3704
  } else {
3705
3705
  warn(
3706
3706
  `
3707
- Your arbi version is out of date (${"0.3.50"} \u2192 ${latest}).
3707
+ Your arbi version is out of date (${"0.3.52"} \u2192 ${latest}).
3708
3708
  Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
3709
3709
  );
3710
3710
  }
@@ -3714,9 +3714,9 @@ Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
3714
3714
  function hintUpdateOnError() {
3715
3715
  try {
3716
3716
  const cached = readCache();
3717
- if (cached && cached.latest !== "0.3.50") {
3717
+ if (cached && cached.latest !== "0.3.52") {
3718
3718
  warn(
3719
- `Your arbi version is out of date (${"0.3.50"} \u2192 ${cached.latest}). Run "arbi update".`
3719
+ `Your arbi version is out of date (${"0.3.52"} \u2192 ${cached.latest}). Run "arbi update".`
3720
3720
  );
3721
3721
  }
3722
3722
  } catch {
@@ -6924,6 +6924,7 @@ function printCitationDetail(num, resolved) {
6924
6924
  console.log(chalk2__default.default.dim(" (no passage data available)"));
6925
6925
  }
6926
6926
  }
6927
+ var MAX_INDIVIDUALLY_SELECTED_DOCS = 5e3;
6927
6928
  function chunkScore(chunk) {
6928
6929
  return chunk.metadata.rerank_score ?? chunk.metadata.score ?? 0;
6929
6930
  }
@@ -6936,20 +6937,28 @@ function fmtScore(score) {
6936
6937
  return `[${pct}%]`;
6937
6938
  }
6938
6939
  function registerFindCommand(program2) {
6939
- program2.command("find <query...>").description("Search documents without LLM generation (retrieve only)").option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("-m, --mode <mode>", "Search mode: semantic, keyword, hybrid", "semantic").option("-d, --docs <ids>", "Comma-separated document IDs to search within").option("--min-score <n>", "Minimum relevance score 0-1", "0.2").option("-l, --limit <n>", "Max results to display", "20").option("--flat", "Flat list sorted by relevance (instead of grouped by document)").option("--toc <ids>", "Comma-separated doc IDs to fetch table of contents for").option("--full-context <ids>", "Comma-separated doc IDs to fetch full content for").option("--json", "Raw JSON output for scripting").action(
6940
+ program2.command("find <query...>").description("Search documents without LLM generation (retrieve only)").option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("-m, --mode <mode>", "Search mode: semantic, keyword, hybrid", "semantic").option(
6941
+ "-d, --docs <ids>",
6942
+ `Comma-separated document IDs to search within (omit to search the whole workspace; max ${MAX_INDIVIDUALLY_SELECTED_DOCS} when set)`
6943
+ ).option("--min-score <n>", "Minimum relevance score 0-1", "0.2").option("-l, --limit <n>", "Max results to display", "20").option("--flat", "Flat list sorted by relevance (instead of grouped by document)").option("--toc <ids>", "Comma-separated doc IDs to fetch table of contents for").option("--full-context <ids>", "Comma-separated doc IDs to fetch full content for").option("--json", "Raw JSON output for scripting").action(
6940
6944
  (words, opts) => runAction(async () => {
6941
6945
  const query = words.join(" ");
6942
6946
  const { arbi, workspaceId } = await resolveWorkspace(opts.workspace);
6943
6947
  let docIds;
6944
6948
  if (opts.docs) {
6945
- docIds = opts.docs.split(",").map((id) => id.trim());
6949
+ docIds = opts.docs.split(",").map((id) => id.trim()).filter((id) => id.length > 0);
6950
+ if (docIds.length > MAX_INDIVIDUALLY_SELECTED_DOCS) {
6951
+ console.error(
6952
+ chalk2__default.default.red(
6953
+ `Error: ${docIds.length.toLocaleString()} document IDs supplied \u2014 maximum is ${MAX_INDIVIDUALLY_SELECTED_DOCS.toLocaleString()}.
6954
+ Narrow your selection, or omit -d to search the whole workspace.`
6955
+ )
6956
+ );
6957
+ process.exitCode = 1;
6958
+ return;
6959
+ }
6946
6960
  } else {
6947
- const docs = await sdk.documents.listDocuments(arbi);
6948
- docIds = docs.map((d) => d.external_id);
6949
- }
6950
- if (docIds.length === 0) {
6951
- console.log("No documents found in workspace.");
6952
- return;
6961
+ docIds = [];
6953
6962
  }
6954
6963
  const searchMode = opts.mode ?? "semantic";
6955
6964
  const tocDocIds = opts.toc ? opts.toc.split(",").map((id) => id.trim()) : void 0;
@@ -8740,7 +8749,7 @@ console.info = (...args) => {
8740
8749
  _origInfo(...args);
8741
8750
  };
8742
8751
  var program = new commander.Command();
8743
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.50");
8752
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.52");
8744
8753
  registerConfigCommand(program);
8745
8754
  registerLoginCommand(program);
8746
8755
  registerRegisterCommand(program);