@arbidocs/cli 0.3.134 → 0.3.135
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 +8 -0
- package/dist/index.js +16 -14
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.3.135
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.134...HEAD)
|
|
6
|
+
|
|
7
|
+
### 💅 Refactors
|
|
8
|
+
|
|
9
|
+
- **sse:** Consume Responses output-item protocol v3 (frontend) ([#1131](https://github.com/arbicity/ARBI-frontend/pull/1131))
|
|
10
|
+
|
|
3
11
|
## v0.3.134
|
|
4
12
|
|
|
5
13
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.133...HEAD)
|
package/dist/index.js
CHANGED
|
@@ -3694,7 +3694,7 @@ function getLatestVersion(skipCache = false) {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
}
|
|
3696
3696
|
function getCurrentVersion() {
|
|
3697
|
-
return "0.3.
|
|
3697
|
+
return "0.3.135";
|
|
3698
3698
|
}
|
|
3699
3699
|
function readChangelog(fromVersion, toVersion) {
|
|
3700
3700
|
try {
|
|
@@ -3747,17 +3747,17 @@ function showChangelog(fromVersion, toVersion) {
|
|
|
3747
3747
|
async function checkForUpdates(autoUpdate) {
|
|
3748
3748
|
try {
|
|
3749
3749
|
const latest = getLatestVersion();
|
|
3750
|
-
if (!latest || latest === "0.3.
|
|
3750
|
+
if (!latest || latest === "0.3.135") return;
|
|
3751
3751
|
if (autoUpdate) {
|
|
3752
3752
|
warn(`
|
|
3753
|
-
Your arbi version is out of date (${"0.3.
|
|
3753
|
+
Your arbi version is out of date (${"0.3.135"} \u2192 ${latest}). Updating...`);
|
|
3754
3754
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3755
|
-
showChangelog("0.3.
|
|
3755
|
+
showChangelog("0.3.135", latest);
|
|
3756
3756
|
console.log(`Updated to ${latest}.`);
|
|
3757
3757
|
} else {
|
|
3758
3758
|
warn(
|
|
3759
3759
|
`
|
|
3760
|
-
Your arbi version is out of date (${"0.3.
|
|
3760
|
+
Your arbi version is out of date (${"0.3.135"} \u2192 ${latest}).
|
|
3761
3761
|
Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
3762
3762
|
);
|
|
3763
3763
|
}
|
|
@@ -3789,10 +3789,10 @@ function markNagShown(latest) {
|
|
|
3789
3789
|
function hintUpdateOnError() {
|
|
3790
3790
|
try {
|
|
3791
3791
|
const cached = readCache();
|
|
3792
|
-
if (!cached || cached.latest === "0.3.
|
|
3792
|
+
if (!cached || cached.latest === "0.3.135") return;
|
|
3793
3793
|
if (!shouldShowNag(cached.latest)) return;
|
|
3794
3794
|
warn(
|
|
3795
|
-
`Your arbi version is out of date (${"0.3.
|
|
3795
|
+
`Your arbi version is out of date (${"0.3.135"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3796
3796
|
);
|
|
3797
3797
|
markNagShown(cached.latest);
|
|
3798
3798
|
} catch {
|
|
@@ -7579,7 +7579,7 @@ function registerAskCommand(program2) {
|
|
|
7579
7579
|
const verbose = opts.quiet === true ? false : getConfig()?.verbose !== false;
|
|
7580
7580
|
let elapsedTime = null;
|
|
7581
7581
|
let firstToken = true;
|
|
7582
|
-
let
|
|
7582
|
+
let lastItemId = null;
|
|
7583
7583
|
let lastStepLabel = "";
|
|
7584
7584
|
let buf = "";
|
|
7585
7585
|
const transform = opts.rawCitations ? (s) => s : sdk.stripCitationMarkdown;
|
|
@@ -7599,15 +7599,17 @@ function registerAskCommand(program2) {
|
|
|
7599
7599
|
buf += content;
|
|
7600
7600
|
flush(false);
|
|
7601
7601
|
},
|
|
7602
|
-
|
|
7602
|
+
onOutputItemDone: (ev) => {
|
|
7603
7603
|
if (verbose) {
|
|
7604
|
-
const
|
|
7605
|
-
if (
|
|
7606
|
-
|
|
7604
|
+
const item = ev.item;
|
|
7605
|
+
if (item.type !== "function_call" && item.type !== "reasoning") return;
|
|
7606
|
+
const label2 = sdk.formatItemLabel(item, docNames);
|
|
7607
|
+
if (label2) {
|
|
7608
|
+
const isDuplicate = item.id === lastItemId && label2 === lastStepLabel;
|
|
7607
7609
|
if (!isDuplicate) {
|
|
7608
7610
|
console.error(chalk2__default.default.dim(`
|
|
7609
7611
|
[ARBI] ${label2}`));
|
|
7610
|
-
|
|
7612
|
+
lastItemId = item.id ?? null;
|
|
7611
7613
|
lastStepLabel = label2;
|
|
7612
7614
|
}
|
|
7613
7615
|
}
|
|
@@ -10486,7 +10488,7 @@ console.info = (...args) => {
|
|
|
10486
10488
|
_origInfo(...args);
|
|
10487
10489
|
};
|
|
10488
10490
|
var program = new commander.Command();
|
|
10489
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.
|
|
10491
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.135").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
10490
10492
|
registerConfigCommand(program);
|
|
10491
10493
|
registerLoginCommand(program);
|
|
10492
10494
|
registerRegisterCommand(program);
|