@arbidocs/cli 0.3.115 → 0.3.117

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,38 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.117
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.116...HEAD)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - Real end-to-end encrypted direct messages (sdk, cli, react kit, blocks) ([e3f5d052](https://github.com/arbicity/ARBI-frontend/commit/e3f5d052))
10
+ - Reusable image crop kit; wire into studio image field and profile avatar ([31e730af](https://github.com/arbicity/ARBI-frontend/commit/31e730af))
11
+ - Promote app-shell chrome to shared packages (command palette, notification centre, user menu, AppHeader) ([ad13c172](https://github.com/arbicity/ARBI-frontend/commit/ad13c172))
12
+
13
+ ## v0.3.116
14
+
15
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.115...HEAD)
16
+
17
+ ### 🚀 Enhancements
18
+
19
+ - **blocks:** Studio page-reset seam for deterministic tests/demos ([c789c303](https://github.com/arbicity/ARBI-frontend/commit/c789c303))
20
+ - **blocks:** Add shared AppShell driven by the nav contract ([11ea908b](https://github.com/arbicity/ARBI-frontend/commit/11ea908b))
21
+ - **blocks:** Config-driven header/KPI slots — MetricRow + un-deferred actions ([1127abe9](https://github.com/arbicity/ARBI-frontend/commit/1127abe9))
22
+ - **blocks:** Live-widget seam — Agent activity + Live metric widgets ([4d6e6b1b](https://github.com/arbicity/ARBI-frontend/commit/4d6e6b1b))
23
+ - **sdk:** Wrap project usage/spend, invoices, today-usage & workspace chronology endpoints ([86d93318](https://github.com/arbicity/ARBI-frontend/commit/86d93318))
24
+ - **react:** Add usage/spend & workspace chronology hooks ([24b7b6a0](https://github.com/arbicity/ARBI-frontend/commit/24b7b6a0))
25
+ - **sdk:** Read the activity notification feed ([ab27cfeb](https://github.com/arbicity/ARBI-frontend/commit/ab27cfeb))
26
+ - **react:** Shared entity registry, notification/activity render layer & firm-wide usage aggregate ([c71835ca](https://github.com/arbicity/ARBI-frontend/commit/c71835ca))
27
+
28
+ ### 🩹 Fixes
29
+
30
+ - **blocks:** Fit asset-picker thumbnails instead of cropping them ([7479d738](https://github.com/arbicity/ARBI-frontend/commit/7479d738))
31
+
32
+ ### 💅 Refactors
33
+
34
+ - Consume shared entity registry & notification descriptors from @arbidocs/react ([ebfa04fa](https://github.com/arbicity/ARBI-frontend/commit/ebfa04fa))
35
+
3
36
  ## v0.3.115
4
37
 
5
38
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.114...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.115";
3697
+ return "0.3.117";
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.115") return;
3750
+ if (!latest || latest === "0.3.117") return;
3751
3751
  if (autoUpdate) {
3752
3752
  warn(`
3753
- Your arbi version is out of date (${"0.3.115"} \u2192 ${latest}). Updating...`);
3753
+ Your arbi version is out of date (${"0.3.117"} \u2192 ${latest}). Updating...`);
3754
3754
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3755
- showChangelog("0.3.115", latest);
3755
+ showChangelog("0.3.117", 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.115"} \u2192 ${latest}).
3760
+ Your arbi version is out of date (${"0.3.117"} \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.115") return;
3792
+ if (!cached || cached.latest === "0.3.117") return;
3793
3793
  if (!shouldShowNag(cached.latest)) return;
3794
3794
  warn(
3795
- `Your arbi version is out of date (${"0.3.115"} \u2192 ${cached.latest}). Run "arbi update".`
3795
+ `Your arbi version is out of date (${"0.3.117"} \u2192 ${cached.latest}). Run "arbi update".`
3796
3796
  );
3797
3797
  markNagShown(cached.latest);
3798
3798
  } catch {
@@ -4851,41 +4851,7 @@ function registerStatusCommand(program2) {
4851
4851
  }
4852
4852
  init_prompts();
4853
4853
  async function resolveRecipient(arbi, ref2) {
4854
- const isEmail = ref2.includes("@");
4855
- const matchKey = isEmail ? "email" : "external_id";
4856
- const contacts = await sdk.contacts.listContacts(arbi);
4857
- const contactMatch = contacts.find((c) => {
4858
- if (isEmail) return c.email === ref2;
4859
- const u = c.user;
4860
- return u?.external_id === ref2 || c.external_id === ref2;
4861
- });
4862
- if (contactMatch) {
4863
- const u = contactMatch.user;
4864
- const extId = u?.external_id ?? contactMatch.external_id;
4865
- const pubKey = u?.encryption_public_key ?? "";
4866
- if (pubKey) return { extId, pubKey };
4867
- }
4868
- try {
4869
- const agents = await sdk.agents.listAgents(arbi);
4870
- const agentMatch = agents.find((a) => a[matchKey] === ref2);
4871
- if (agentMatch) {
4872
- return { extId: agentMatch.external_id, pubKey: agentMatch.encryption_public_key };
4873
- }
4874
- } catch {
4875
- }
4876
- try {
4877
- const wsUsers = await sdk.workspaces.listWorkspaceUsers(arbi);
4878
- const wsMatch = wsUsers.find((wu) => wu[matchKey] === ref2);
4879
- if (wsMatch) {
4880
- const u = wsMatch;
4881
- return {
4882
- extId: u.external_id,
4883
- pubKey: u.encryption_public_key
4884
- };
4885
- }
4886
- } catch {
4887
- }
4888
- return null;
4854
+ return sdk.dm.resolveRecipient(arbi, ref2);
4889
4855
  }
4890
4856
  function rowMatchesFilters(row, opts) {
4891
4857
  if (opts.unread && row.read) return false;
@@ -10332,7 +10298,7 @@ console.info = (...args) => {
10332
10298
  _origInfo(...args);
10333
10299
  };
10334
10300
  var program = new commander.Command();
10335
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.115").showHelpAfterError(true).showSuggestionAfterError(true);
10301
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.117").showHelpAfterError(true).showSuggestionAfterError(true);
10336
10302
  registerConfigCommand(program);
10337
10303
  registerLoginCommand(program);
10338
10304
  registerRegisterCommand(program);