@arbidocs/cli 0.5.136 → 0.5.137
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 +9 -1
- package/dist/index.js +20 -8
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.5.137
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.136...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **cli:** Never drop piped stdout at exit (--json cut off at 64 KiB) ([#2371](https://github.com/arbicity/ARBI-frontend/pull/2371))
|
|
10
|
+
- **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))
|
|
11
|
+
|
|
3
12
|
## v0.5.136
|
|
4
13
|
|
|
5
14
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.135...v0.5.136)
|
|
@@ -8,7 +17,6 @@
|
|
|
8
17
|
|
|
9
18
|
- Upgrade the Word editor to 2.33 with matching collaboration packages (#2296) ([950d34194](https://github.com/arbicity/ARBI-frontend/commit/950d34194be279b4e946fa43f8b505708662cd55))
|
|
10
19
|
|
|
11
|
-
|
|
12
20
|
## v0.5.135
|
|
13
21
|
|
|
14
22
|
[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.137";
|
|
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.137") 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.137"} \u2192 ${latest}). Updating...`);
|
|
3749
3760
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3750
|
-
showChangelog("0.5.
|
|
3761
|
+
showChangelog("0.5.137", 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.137"} \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.137") 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.137"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3791
3802
|
);
|
|
3792
3803
|
markNagShown(cached.latest);
|
|
3793
3804
|
} catch {
|
|
@@ -12664,6 +12675,7 @@ function registerRelevanceCommands(program2) {
|
|
|
12664
12675
|
}
|
|
12665
12676
|
|
|
12666
12677
|
// src/index.ts
|
|
12678
|
+
ensureBlockingStdio();
|
|
12667
12679
|
console.debug = () => {
|
|
12668
12680
|
};
|
|
12669
12681
|
var _origInfo = console.info;
|
|
@@ -12672,7 +12684,7 @@ console.info = (...args) => {
|
|
|
12672
12684
|
_origInfo(...args);
|
|
12673
12685
|
};
|
|
12674
12686
|
var program = new commander.Command();
|
|
12675
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.
|
|
12687
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.137").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
12676
12688
|
registerConfigCommand(program);
|
|
12677
12689
|
registerLoginCommand(program);
|
|
12678
12690
|
registerRegisterCommand(program);
|