@arbidocs/cli 0.4.146 → 0.4.150
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 +15 -0
- package/dist/index.js +11 -12
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.4.150
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.146...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🚀 Enhancements
|
|
8
|
+
|
|
9
|
+
- **people:** One people source for every picker; mail recipient suggestions; duplicate-contact 409 ([#1679](https://github.com/arbicity/ARBI-frontend/pull/1679))
|
|
10
|
+
- **contacts:** Import .vcf on the contacts page (Pro) ([#1713](https://github.com/arbicity/ARBI-frontend/pull/1713))
|
|
11
|
+
|
|
12
|
+
### 💅 Refactors
|
|
13
|
+
|
|
14
|
+
- **billing:** Plans, usage and billing on @arbidocs/react, the subscription UI is a blocks kit ([#1711](https://github.com/arbicity/ARBI-frontend/pull/1711))
|
|
15
|
+
- **tags,facts:** The Tags and Facts pages are the blocks ConnectedTagsPage / ConnectedFactsPage ([#1701](https://github.com/arbicity/ARBI-frontend/pull/1701))
|
|
16
|
+
- **workspace:** Workspace members and their writes on @arbidocs/react ([#1710](https://github.com/arbicity/ARBI-frontend/pull/1710))
|
|
17
|
+
|
|
3
18
|
## v0.4.146
|
|
4
19
|
|
|
5
20
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.143...HEAD)
|
package/dist/index.js
CHANGED
|
@@ -3695,7 +3695,7 @@ function getLatestVersion(skipCache = false) {
|
|
|
3695
3695
|
}
|
|
3696
3696
|
}
|
|
3697
3697
|
function getCurrentVersion() {
|
|
3698
|
-
return "0.4.
|
|
3698
|
+
return "0.4.150";
|
|
3699
3699
|
}
|
|
3700
3700
|
function readChangelog(fromVersion, toVersion) {
|
|
3701
3701
|
try {
|
|
@@ -3748,17 +3748,17 @@ function showChangelog(fromVersion, toVersion) {
|
|
|
3748
3748
|
async function checkForUpdates(autoUpdate) {
|
|
3749
3749
|
try {
|
|
3750
3750
|
const latest = getLatestVersion();
|
|
3751
|
-
if (!latest || latest === "0.4.
|
|
3751
|
+
if (!latest || latest === "0.4.150") return;
|
|
3752
3752
|
if (autoUpdate) {
|
|
3753
3753
|
warn(`
|
|
3754
|
-
Your arbi version is out of date (${"0.4.
|
|
3754
|
+
Your arbi version is out of date (${"0.4.150"} \u2192 ${latest}). Updating...`);
|
|
3755
3755
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3756
|
-
showChangelog("0.4.
|
|
3756
|
+
showChangelog("0.4.150", latest);
|
|
3757
3757
|
console.log(`Updated to ${latest}.`);
|
|
3758
3758
|
} else {
|
|
3759
3759
|
warn(
|
|
3760
3760
|
`
|
|
3761
|
-
Your arbi version is out of date (${"0.4.
|
|
3761
|
+
Your arbi version is out of date (${"0.4.150"} \u2192 ${latest}).
|
|
3762
3762
|
Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
3763
3763
|
);
|
|
3764
3764
|
}
|
|
@@ -3790,10 +3790,10 @@ function markNagShown(latest) {
|
|
|
3790
3790
|
function hintUpdateOnError() {
|
|
3791
3791
|
try {
|
|
3792
3792
|
const cached = readCache();
|
|
3793
|
-
if (!cached || cached.latest === "0.4.
|
|
3793
|
+
if (!cached || cached.latest === "0.4.150") return;
|
|
3794
3794
|
if (!shouldShowNag(cached.latest)) return;
|
|
3795
3795
|
warn(
|
|
3796
|
-
`Your arbi version is out of date (${"0.4.
|
|
3796
|
+
`Your arbi version is out of date (${"0.4.150"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3797
3797
|
);
|
|
3798
3798
|
markNagShown(cached.latest);
|
|
3799
3799
|
} catch {
|
|
@@ -8093,7 +8093,6 @@ async function verifyOne(number, opts) {
|
|
|
8093
8093
|
chalk2__default.default.dim("Re-verify: `arbi doc get <Doc ID> --json` and compare the passage SHA256.")
|
|
8094
8094
|
);
|
|
8095
8095
|
}
|
|
8096
|
-
var MAX_INDIVIDUALLY_SELECTED_DOCS = 5e3;
|
|
8097
8096
|
function chunkScore(chunk) {
|
|
8098
8097
|
return chunk.metadata.rerank_score ?? chunk.metadata.score ?? 0;
|
|
8099
8098
|
}
|
|
@@ -8108,7 +8107,7 @@ function fmtScore(score) {
|
|
|
8108
8107
|
function registerFindCommand(program2) {
|
|
8109
8108
|
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(
|
|
8110
8109
|
"-d, --docs <ids>",
|
|
8111
|
-
`Comma-separated document IDs to search within (omit to search the whole workspace; max ${
|
|
8110
|
+
`Comma-separated document IDs to search within (omit to search the whole workspace; max ${sdk.MAX_RETRIEVE_DOC_IDS} when set)`
|
|
8112
8111
|
).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(
|
|
8113
8112
|
(words, opts) => runAction(async () => {
|
|
8114
8113
|
const query = words.join(" ");
|
|
@@ -8116,10 +8115,10 @@ function registerFindCommand(program2) {
|
|
|
8116
8115
|
let docIds;
|
|
8117
8116
|
if (opts.docs) {
|
|
8118
8117
|
docIds = opts.docs.split(",").map((id) => id.trim()).filter((id) => id.length > 0);
|
|
8119
|
-
if (docIds.length >
|
|
8118
|
+
if (docIds.length > sdk.MAX_RETRIEVE_DOC_IDS) {
|
|
8120
8119
|
console.error(
|
|
8121
8120
|
chalk2__default.default.red(
|
|
8122
|
-
`Error: ${docIds.length.toLocaleString()} document IDs supplied \u2014 maximum is ${
|
|
8121
|
+
`Error: ${docIds.length.toLocaleString()} document IDs supplied \u2014 maximum is ${sdk.MAX_RETRIEVE_DOC_IDS.toLocaleString()}.
|
|
8123
8122
|
Narrow your selection, or omit -d to search the whole workspace.`
|
|
8124
8123
|
)
|
|
8125
8124
|
);
|
|
@@ -12572,7 +12571,7 @@ console.info = (...args) => {
|
|
|
12572
12571
|
_origInfo(...args);
|
|
12573
12572
|
};
|
|
12574
12573
|
var program = new commander.Command();
|
|
12575
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.
|
|
12574
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.150").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
12576
12575
|
registerConfigCommand(program);
|
|
12577
12576
|
registerLoginCommand(program);
|
|
12578
12577
|
registerRegisterCommand(program);
|