@arbidocs/cli 0.5.136 → 0.5.138
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 +17 -1
- package/dist/index.js +23 -9
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.5.138
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.137...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🚀 Enhancements
|
|
8
|
+
|
|
9
|
+
- One notification when an upload set finishes, not one per batch ([#2375](https://github.com/arbicity/ARBI-frontend/pull/2375))
|
|
10
|
+
|
|
11
|
+
## v0.5.137
|
|
12
|
+
|
|
13
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.136...HEAD)
|
|
14
|
+
|
|
15
|
+
### 🩹 Fixes
|
|
16
|
+
|
|
17
|
+
- **cli:** Never drop piped stdout at exit (--json cut off at 64 KiB) ([#2371](https://github.com/arbicity/ARBI-frontend/pull/2371))
|
|
18
|
+
- **react:** Refresh tag lists after a fact write so label counts stay current (persona support 7687fdc8) ([#2369](https://github.com/arbicity/ARBI-frontend/pull/2369))
|
|
19
|
+
|
|
3
20
|
## v0.5.136
|
|
4
21
|
|
|
5
22
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.135...v0.5.136)
|
|
@@ -8,7 +25,6 @@
|
|
|
8
25
|
|
|
9
26
|
- Upgrade the Word editor to 2.33 with matching collaboration packages (#2296) ([950d34194](https://github.com/arbicity/ARBI-frontend/commit/950d34194be279b4e946fa43f8b505708662cd55))
|
|
10
27
|
|
|
11
|
-
|
|
12
28
|
## v0.5.135
|
|
13
29
|
|
|
14
30
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.134...HEAD)
|
package/dist/index.js
CHANGED
|
@@ -79,6 +79,17 @@ var init_prompts = __esm({
|
|
|
79
79
|
"src/prompts.ts"() {
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
+
|
|
83
|
+
// src/stdio.ts
|
|
84
|
+
function ensureBlockingStdio(streams = [process.stdout, process.stderr]) {
|
|
85
|
+
for (const stream of streams) {
|
|
86
|
+
stream._handle?.setBlocking?.(true);
|
|
87
|
+
stream.on("error", (err) => {
|
|
88
|
+
if (err.code === "EPIPE") process.exit(0);
|
|
89
|
+
throw err;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
82
93
|
function getCacheFile() {
|
|
83
94
|
const configDir = process.env.ARBI_CONFIG_DIR ?? path6__default.default.join(os2__default.default.homedir(), ".arbi");
|
|
84
95
|
return path6__default.default.join(configDir, "completions.json");
|
|
@@ -3689,7 +3700,7 @@ function getLatestVersion(skipCache = false) {
|
|
|
3689
3700
|
}
|
|
3690
3701
|
}
|
|
3691
3702
|
function getCurrentVersion() {
|
|
3692
|
-
return "0.5.
|
|
3703
|
+
return "0.5.138";
|
|
3693
3704
|
}
|
|
3694
3705
|
function readChangelog(fromVersion, toVersion) {
|
|
3695
3706
|
try {
|
|
@@ -3742,17 +3753,17 @@ function showChangelog(fromVersion, toVersion) {
|
|
|
3742
3753
|
async function checkForUpdates(autoUpdate) {
|
|
3743
3754
|
try {
|
|
3744
3755
|
const latest = getLatestVersion();
|
|
3745
|
-
if (!latest || latest === "0.5.
|
|
3756
|
+
if (!latest || latest === "0.5.138") return;
|
|
3746
3757
|
if (autoUpdate) {
|
|
3747
3758
|
warn(`
|
|
3748
|
-
Your arbi version is out of date (${"0.5.
|
|
3759
|
+
Your arbi version is out of date (${"0.5.138"} \u2192 ${latest}). Updating...`);
|
|
3749
3760
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3750
|
-
showChangelog("0.5.
|
|
3761
|
+
showChangelog("0.5.138", latest);
|
|
3751
3762
|
console.log(`Updated to ${latest}.`);
|
|
3752
3763
|
} else {
|
|
3753
3764
|
warn(
|
|
3754
3765
|
`
|
|
3755
|
-
Your arbi version is out of date (${"0.5.
|
|
3766
|
+
Your arbi version is out of date (${"0.5.138"} \u2192 ${latest}).
|
|
3756
3767
|
Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
3757
3768
|
);
|
|
3758
3769
|
}
|
|
@@ -3784,10 +3795,10 @@ function markNagShown(latest) {
|
|
|
3784
3795
|
function hintUpdateOnError() {
|
|
3785
3796
|
try {
|
|
3786
3797
|
const cached = readCache();
|
|
3787
|
-
if (!cached || cached.latest === "0.5.
|
|
3798
|
+
if (!cached || cached.latest === "0.5.138") return;
|
|
3788
3799
|
if (!shouldShowNag(cached.latest)) return;
|
|
3789
3800
|
warn(
|
|
3790
|
-
`Your arbi version is out of date (${"0.5.
|
|
3801
|
+
`Your arbi version is out of date (${"0.5.138"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3791
3802
|
);
|
|
3792
3803
|
markNagShown(cached.latest);
|
|
3793
3804
|
} catch {
|
|
@@ -6769,7 +6780,9 @@ async function runDirectUploadMode(inputPaths, opts) {
|
|
|
6769
6780
|
const result = await sdk.documentsNode.uploadLocalFilesDirect(arbi, workspaceKey, plainFiles, {
|
|
6770
6781
|
folder: opts.folder,
|
|
6771
6782
|
configExtId: opts.config,
|
|
6772
|
-
workspaceExtId: workspaceId
|
|
6783
|
+
workspaceExtId: workspaceId,
|
|
6784
|
+
// One request, one upload set: one "done" notification for these files.
|
|
6785
|
+
uploadSet: sdk.documents.newUploadSet(plainFiles.length)
|
|
6773
6786
|
});
|
|
6774
6787
|
summary2.totalFiles += plainFiles.length;
|
|
6775
6788
|
summary2.uploaded += result.doc_ext_ids.length;
|
|
@@ -12664,6 +12677,7 @@ function registerRelevanceCommands(program2) {
|
|
|
12664
12677
|
}
|
|
12665
12678
|
|
|
12666
12679
|
// src/index.ts
|
|
12680
|
+
ensureBlockingStdio();
|
|
12667
12681
|
console.debug = () => {
|
|
12668
12682
|
};
|
|
12669
12683
|
var _origInfo = console.info;
|
|
@@ -12672,7 +12686,7 @@ console.info = (...args) => {
|
|
|
12672
12686
|
_origInfo(...args);
|
|
12673
12687
|
};
|
|
12674
12688
|
var program = new commander.Command();
|
|
12675
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.
|
|
12689
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.138").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
12676
12690
|
registerConfigCommand(program);
|
|
12677
12691
|
registerLoginCommand(program);
|
|
12678
12692
|
registerRegisterCommand(program);
|