@arbidocs/cli 0.4.157 → 0.4.159

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,12 +1,38 @@
1
1
  # Changelog
2
2
 
3
- ## v0.4.157
3
+ ## v0.4.159
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.158...HEAD)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - **signing:** Signature fields placed in Word, signers by email, drawn initials ([#1709](https://github.com/arbicity/ARBI-frontend/pull/1709))
10
+ - **personas:** UX testing board replaces the file queue and the claude.ai board ([#1740](https://github.com/arbicity/ARBI-frontend/pull/1740))
11
+ - **personas:** Automate board review and round integration ([#1748](https://github.com/arbicity/ARBI-frontend/pull/1748))
12
+
13
+ ### 🩹 Fixes
14
+
15
+ - **personas:** Board follow-ups from the end-to-end proof ([#1744](https://github.com/arbicity/ARBI-frontend/pull/1744))
16
+
17
+ ### 📖 Documentation
18
+
19
+ - **personas:** Agent-agnostic harness docs, verified Codex and OpenCode drivers ([#1736](https://github.com/arbicity/ARBI-frontend/pull/1736))
20
+
21
+ ## v0.4.158
4
22
 
5
23
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.154...HEAD)
6
24
 
7
- ### 🏡 Chore
25
+ ### 🚀 Enhancements
26
+
27
+ - **storage:** Archive and unarchive workspaces; storage counts archived and deleted at 10% ([#1678](https://github.com/arbicity/ARBI-frontend/pull/1678))
28
+
29
+ ## v0.4.154
30
+
31
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.151...HEAD)
32
+
33
+ ### 💅 Refactors
8
34
 
9
- - Release v0.4.154 [skip ci] ([42df3b691](https://github.com/arbicity/ARBI-frontend/commit/42df3b691))
35
+ - **home:** The Workspaces page, Projects panel, workspace dashboard and member table are blocks kits ([#1716](https://github.com/arbicity/ARBI-frontend/pull/1716))
10
36
 
11
37
  ## v0.4.151
12
38
 
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.157";
3698
+ return "0.4.159";
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.157") return;
3751
+ if (!latest || latest === "0.4.159") return;
3752
3752
  if (autoUpdate) {
3753
3753
  warn(`
3754
- Your arbi version is out of date (${"0.4.157"} \u2192 ${latest}). Updating...`);
3754
+ Your arbi version is out of date (${"0.4.159"} \u2192 ${latest}). Updating...`);
3755
3755
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3756
- showChangelog("0.4.157", latest);
3756
+ showChangelog("0.4.159", 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.157"} \u2192 ${latest}).
3761
+ Your arbi version is out of date (${"0.4.159"} \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.157") return;
3793
+ if (!cached || cached.latest === "0.4.159") return;
3794
3794
  if (!shouldShowNag(cached.latest)) return;
3795
3795
  warn(
3796
- `Your arbi version is out of date (${"0.4.157"} \u2192 ${cached.latest}). Run "arbi update".`
3796
+ `Your arbi version is out of date (${"0.4.159"} \u2192 ${cached.latest}). Run "arbi update".`
3797
3797
  );
3798
3798
  markNagShown(cached.latest);
3799
3799
  } catch {
@@ -7660,9 +7660,9 @@ function printRequest(r) {
7660
7660
  `${r.external_id} ${r.doc_ext_id ?? ""}@v${r.version} ${r.status.padEnd(9)} ${signed}/${r.signers.length} signed` + (r.stale ? chalk2__default.default.yellow(" (document changed since)") : "") + (r.signed_version ? chalk2__default.default.green(` signed copy v${r.signed_version}`) : "")
7661
7661
  );
7662
7662
  for (const s of r.signers) {
7663
- const n = r.fields.filter((f) => f.signer === s.user_ext_id).length;
7663
+ const n = r.fields.filter((f) => f.signer === (s.user_ext_id ?? s.external_id)).length;
7664
7664
  console.log(
7665
- ` ${s.status.padEnd(8)} ${s.name} <${s.email ?? ""}> ${n} field${n === 1 ? "" : "s"}`
7665
+ ` ${s.progress.padEnd(10)} ${s.name} <${s.email ?? ""}> ${n} field${n === 1 ? "" : "s"}`
7666
7666
  );
7667
7667
  }
7668
7668
  }
@@ -7676,14 +7676,17 @@ function registerSignaturesCommand(program2) {
7676
7676
  if (!found.length) return void console.log("No signature blocks found.");
7677
7677
  for (const f of found) {
7678
7678
  console.log(
7679
- `block ${f.group} ${(f.role ?? "").padEnd(10)} ${f.type.padEnd(9)} p.${f.page + 1} "${f.anchor}"`
7679
+ f.source === "anchor" ? `block ${f.group} placed ${f.type.padEnd(9)} p.${f.page + 1} ${f.signer_email ?? "(no signer yet)"}` : `block ${f.group} ${(f.role ?? "").padEnd(10)} ${f.type.padEnd(9)} p.${f.page + 1} "${f.anchor}"`
7680
7680
  );
7681
7681
  }
7682
7682
  })()
7683
7683
  );
7684
7684
  cmd.command("request <doc-id>").description(
7685
7685
  "Create a signature request and send it (fields from --fields, else the blocks found)"
7686
- ).option("-s, --signer <usr-id...>", "Signers in block order (block n is for the n-th signer)").option(
7686
+ ).option(
7687
+ "-s, --signer <usr-id-or-email...>",
7688
+ "Signers in block order (block n is for the n-th signer); fields placed in a Word document go to the signer they name"
7689
+ ).option(
7687
7690
  "--fields <file>",
7688
7691
  "JSON file with the fields (SignatureField[]) instead of the blocks found"
7689
7692
  ).option("-m, --message <text>", "A note to the signers").option("--draft", "Save as a draft instead of sending").option("--json", "Output as JSON").action(
@@ -7693,10 +7696,10 @@ function registerSignaturesCommand(program2) {
7693
7696
  if (opts.fields) {
7694
7697
  fields = JSON.parse(fs7.readFileSync(opts.fields, "utf8"));
7695
7698
  } else {
7696
- if (!opts.signer?.length)
7697
- throw new Error("Name the signers with --signer, or give --fields.");
7698
7699
  const found = await sdk.signatureRequests.suggestSignatureFields(arbi, docId);
7699
- fields = sdk.signatureRequests.assignSuggestions(found, opts.signer);
7700
+ if (!opts.signer?.length && !found.some((f) => f.signer_email))
7701
+ throw new Error("Name the signers with --signer, or give --fields.");
7702
+ fields = sdk.signatureRequests.assignSuggestions(found, opts.signer ?? []);
7700
7703
  if (!fields.length)
7701
7704
  throw new Error("No signature blocks found: place the fields with --fields.");
7702
7705
  }
@@ -12571,7 +12574,7 @@ console.info = (...args) => {
12571
12574
  _origInfo(...args);
12572
12575
  };
12573
12576
  var program = new commander.Command();
12574
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.157").showHelpAfterError(true).showSuggestionAfterError(true);
12577
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.159").showHelpAfterError(true).showSuggestionAfterError(true);
12575
12578
  registerConfigCommand(program);
12576
12579
  registerLoginCommand(program);
12577
12580
  registerRegisterCommand(program);