@arbidocs/cli 0.3.131 → 0.3.133

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,22 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.133
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.132...HEAD)
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **sse:** Render the label the backend sent, not a local copy of it ([#1127](https://github.com/arbicity/ARBI-frontend/pull/1127))
10
+
11
+ ## v0.3.132
12
+
13
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.131...v0.3.132)
14
+
15
+ ### 🩹 Fixes
16
+
17
+ - Fix CLI streaming output and final answers (#1125) ([285f302c](https://github.com/arbicity/ARBI-frontend/commit/285f302cd03c582d36b3c39749081492db98b2dd))
18
+
19
+
3
20
  ## v0.3.131
4
21
 
5
22
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.130...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.131";
3697
+ return "0.3.133";
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.131") return;
3750
+ if (!latest || latest === "0.3.133") return;
3751
3751
  if (autoUpdate) {
3752
3752
  warn(`
3753
- Your arbi version is out of date (${"0.3.131"} \u2192 ${latest}). Updating...`);
3753
+ Your arbi version is out of date (${"0.3.133"} \u2192 ${latest}). Updating...`);
3754
3754
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3755
- showChangelog("0.3.131", latest);
3755
+ showChangelog("0.3.133", 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.131"} \u2192 ${latest}).
3760
+ Your arbi version is out of date (${"0.3.133"} \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.131") return;
3792
+ if (!cached || cached.latest === "0.3.133") return;
3793
3793
  if (!shouldShowNag(cached.latest)) return;
3794
3794
  warn(
3795
- `Your arbi version is out of date (${"0.3.131"} \u2192 ${cached.latest}). Run "arbi update".`
3795
+ `Your arbi version is out of date (${"0.3.133"} \u2192 ${cached.latest}). Run "arbi update".`
3796
3796
  );
3797
3797
  markNagShown(cached.latest);
3798
3798
  } catch {
@@ -7619,6 +7619,11 @@ function registerAskCommand(program2) {
7619
7619
  onError: (message) => console.error(chalk2__default.default.red(`
7620
7620
  Error: ${message}`))
7621
7621
  });
7622
+ if (firstToken && result.text) {
7623
+ process.stderr.write(chalk2__default.default.dim("[ARBI] "));
7624
+ firstToken = false;
7625
+ buf += result.text;
7626
+ }
7622
7627
  flush(true);
7623
7628
  process.stdout.write("\n");
7624
7629
  if (result.metadata) {
@@ -9524,7 +9529,8 @@ function registerScheduleCommand(program2) {
9524
9529
  trigger_type: oneOf(opts.trigger, TRIGGERS, "--trigger"),
9525
9530
  timezone: opts.timezone,
9526
9531
  action_type: oneOf(opts.action, ACTIONS, "--action"),
9527
- prompt: opts.prompt ?? ""
9532
+ prompt: opts.prompt ?? "",
9533
+ auth_mode: "run_now_temp"
9528
9534
  };
9529
9535
  if (opts.rrule) body.rrule = opts.rrule;
9530
9536
  if (opts.runAt) body.run_at = opts.runAt;
@@ -10480,7 +10486,7 @@ console.info = (...args) => {
10480
10486
  _origInfo(...args);
10481
10487
  };
10482
10488
  var program = new commander.Command();
10483
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.131").showHelpAfterError(true).showSuggestionAfterError(true);
10489
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.133").showHelpAfterError(true).showSuggestionAfterError(true);
10484
10490
  registerConfigCommand(program);
10485
10491
  registerLoginCommand(program);
10486
10492
  registerRegisterCommand(program);