@arbidocs/cli 0.4.79 → 0.4.81

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,18 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.4.81
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.79...HEAD)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - **blocks:** Show an agent step waiting for documents to finish processing ([64645c0f0](https://github.com/arbicity/ARBI-frontend/commit/64645c0f0))
10
+
11
+ ### 🩹 Fixes
12
+
13
+ - **blocks:** Open cited documents from the workflow run's thread ([7e1150fd7](https://github.com/arbicity/ARBI-frontend/commit/7e1150fd7))
14
+ - **blocks:** Hold the workflow upload step until its files are uploaded ([5253cf6e2](https://github.com/arbicity/ARBI-frontend/commit/5253cf6e2))
15
+
3
16
  ## v0.4.79
4
17
 
5
18
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.78...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.79";
3698
+ return "0.4.81";
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.79") return;
3751
+ if (!latest || latest === "0.4.81") return;
3752
3752
  if (autoUpdate) {
3753
3753
  warn(`
3754
- Your arbi version is out of date (${"0.4.79"} \u2192 ${latest}). Updating...`);
3754
+ Your arbi version is out of date (${"0.4.81"} \u2192 ${latest}). Updating...`);
3755
3755
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3756
- showChangelog("0.4.79", latest);
3756
+ showChangelog("0.4.81", 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.79"} \u2192 ${latest}).
3761
+ Your arbi version is out of date (${"0.4.81"} \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.79") return;
3793
+ if (!cached || cached.latest === "0.4.81") return;
3794
3794
  if (!shouldShowNag(cached.latest)) return;
3795
3795
  warn(
3796
- `Your arbi version is out of date (${"0.4.79"} \u2192 ${cached.latest}). Run "arbi update".`
3796
+ `Your arbi version is out of date (${"0.4.81"} \u2192 ${cached.latest}). Run "arbi update".`
3797
3797
  );
3798
3798
  markNagShown(cached.latest);
3799
3799
  } catch {
@@ -10324,6 +10324,7 @@ function runJson(progress, answers = {}) {
10324
10324
  times_sent_back: s.timesSentBack,
10325
10325
  signals: s.signals,
10326
10326
  linked_runs: s.linkedRuns.map(linkedJson),
10327
+ waiting_documents: s.waitingDocuments,
10327
10328
  ...s.responseId && answers[s.responseId] !== void 0 ? { answer: answers[s.responseId] } : {}
10328
10329
  })),
10329
10330
  signals: (progress.signals ?? []).map((x) => ({ step: x.step, signal: x.signal, at: x.at })),
@@ -10347,6 +10348,8 @@ var linkedJson = (l) => ({
10347
10348
  });
10348
10349
  function stepNotes(s) {
10349
10350
  const notes = [];
10351
+ if (s.waitingDocuments.length)
10352
+ notes.push(sdk.workflowSteps.waitingForDocumentsText(s.waitingDocuments.length).toLowerCase());
10350
10353
  if (s.sentBack) notes.push(`sent back${s.hasNote ? " (note)" : ""}`);
10351
10354
  else if (s.timesSentBack) notes.push(`sent back \xD7${s.timesSentBack}`);
10352
10355
  if (s.signals.length) notes.push(`\u2691 ${s.signals.join(", ")}`);
@@ -10382,6 +10385,8 @@ function nextHint(progress, planSteps = []) {
10382
10385
  return "Every step is done or skipped.";
10383
10386
  case "agent": {
10384
10387
  const next = progress.steps.find((s) => s.phase === "running") ?? progress.steps.find((s) => s.kind === "agent" && s.phase === "ready");
10388
+ if (next?.waitingDocuments.length)
10389
+ return `Step "${next.id}" is ${sdk.workflowSteps.waitingForDocumentsText(next.waitingDocuments.length).toLowerCase()}: arbi run steps ${id} --watch`;
10385
10390
  return `Step ${next ? `"${next.id}" ` : ""}is on its way: arbi run steps ${id} --watch`;
10386
10391
  }
10387
10392
  case "person": {
@@ -11950,7 +11955,7 @@ console.info = (...args) => {
11950
11955
  _origInfo(...args);
11951
11956
  };
11952
11957
  var program = new commander.Command();
11953
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.79").showHelpAfterError(true).showSuggestionAfterError(true);
11958
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.81").showHelpAfterError(true).showSuggestionAfterError(true);
11954
11959
  registerConfigCommand(program);
11955
11960
  registerLoginCommand(program);
11956
11961
  registerRegisterCommand(program);