@arbidocs/cli 0.4.166 → 0.4.168

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,112 @@
1
1
  # Changelog
2
2
 
3
- ## v0.4.166
3
+ ## v0.4.168
4
4
 
5
- [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.165...HEAD)
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.167...HEAD)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - **blocks:** Host link builder, document filter, scoped Files view, certificate link ([#1771](https://github.com/arbicity/ARBI-frontend/pull/1771))
10
+ - **blocks:** Export, copy or move kit; ConnectedFilesPage.onExport optional ([#1775](https://github.com/arbicity/ARBI-frontend/pull/1775))
11
+ - **blocks:** Port opt-in fragment sign-in to phase 3 ([#1793](https://github.com/arbicity/ARBI-frontend/pull/1793), [#1794](https://github.com/arbicity/ARBI-frontend/pull/1794))
12
+ - **blocks:** Agent templates keep Documents on; Memory switches FACTS_ENABLED ([#1806](https://github.com/arbicity/ARBI-frontend/pull/1806))
13
+
14
+ ### 🩹 Fixes
15
+
16
+ - **calls:** One DEFAULT_JOIN_CHOICES, and recording cards re-read when a tail lands ([#1788](https://github.com/arbicity/ARBI-frontend/pull/1788))
17
+ - Welcome modal once per user, tips never wiped at login, upload fixture fails at its timeout ([#1797](https://github.com/arbicity/ARBI-frontend/pull/1797))
18
+ - **chat:** Asking keeps the open document, one-line live status, citation focus returns ([#1798](https://github.com/arbicity/ARBI-frontend/pull/1798))
19
+ - **blocks:** Pdf.js shims ship with the viewer, viewer errors stay in place, shell fixes ([#1800](https://github.com/arbicity/ARBI-frontend/pull/1800))
20
+ - **docx:** A peer's edit no longer lets a stale selection move the caret back ([#1805](https://github.com/arbicity/ARBI-frontend/pull/1805))
21
+ - A workspace switch stays "opening" until /open answers; e2e reads the package cache keys ([#1808](https://github.com/arbicity/ARBI-frontend/pull/1808))
22
+ - **documents:** Order live processing against document reads by seq ([#1823](https://github.com/arbicity/ARBI-frontend/pull/1823))
23
+ - **sdk:** Hide tool calls the duplicate guard refused from the steps trace ([#1826](https://github.com/arbicity/ARBI-frontend/pull/1826))
24
+ - **chat:** The model shown is the model sent ([#1827](https://github.com/arbicity/ARBI-frontend/pull/1827))
25
+ - **sdk:** Hide every call the duplicate guard refused, not only a round's last ([#1828](https://github.com/arbicity/ARBI-frontend/pull/1828))
26
+ - **sdk:** Keep a sub-agent lane row an older backend marked duplicate ([#1829](https://github.com/arbicity/ARBI-frontend/pull/1829))
27
+ - **chat:** A link to a message far up a long thread opens at that message ([21f4526b4](https://github.com/arbicity/ARBI-frontend/commit/21f4526b4))
28
+ - **session:** Drafts kept on the device are bound to the signed-in user and cleared on sign-out ([#1831](https://github.com/arbicity/ARBI-frontend/pull/1831))
29
+
30
+ ### 💅 Refactors
31
+
32
+ - **sdk:** Move the pure chat model into @arbidocs/sdk chat/ (#1720 A1) ([#1755](https://github.com/arbicity/ARBI-frontend/pull/1755), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
33
+ - **auth:** The SDK client owns the session recovery (B3) ([#1757](https://github.com/arbicity/ARBI-frontend/pull/1757))
34
+ - **calls:** Arbi.calls in the sdk, call-key crypto in client; delete src/api/call* ([#1759](https://github.com/arbicity/ARBI-frontend/pull/1759))
35
+ - **chat:** The conversation list is @arbidocs/react's (#1720 A3a) ([#1762](https://github.com/arbicity/ARBI-frontend/pull/1762), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
36
+ - **calls:** Call session, applyCallEvent and the calls library in @arbidocs/react ([#1768](https://github.com/arbicity/ARBI-frontend/pull/1768))
37
+ - **calls:** LiveKit hooks under @arbidocs/react/calls, call actions in react ([#1770](https://github.com/arbicity/ARBI-frontend/pull/1770))
38
+ - **auth:** One session source in the SDK (B4) ([#1773](https://github.com/arbicity/ARBI-frontend/pull/1773))
39
+ - **sdk:** One request builder for assistant turns (#1720 A2) ([#1758](https://github.com/arbicity/ARBI-frontend/pull/1758), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
40
+ - **calls:** ConnectedCallRoom and ConnectedCallDock in @arbidocs/blocks/calls ([#1776](https://github.com/arbicity/ARBI-frontend/pull/1776))
41
+ - **auth:** ConnectedLoginPage, every sign-in through the SDK (#1720 B5) ([#1777](https://github.com/arbicity/ARBI-frontend/pull/1777), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
42
+ - **calls:** Call kits in @arbidocs/blocks/calls (#1720 C5) ([#1778](https://github.com/arbicity/ARBI-frontend/pull/1778), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
43
+ - **chat:** A conversation's threads are @arbidocs/react's (#1720 A3b) ([#1767](https://github.com/arbicity/ARBI-frontend/pull/1767), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
44
+ - **chat:** The stream handlers are @arbidocs/react's (#1720 A4a) ([#1769](https://github.com/arbicity/ARBI-frontend/pull/1769), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
45
+ - **calendar:** ARBI calls are the connected calendar's default (#1720 C6) ([#1780](https://github.com/arbicity/ARBI-frontend/pull/1780), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
46
+ - **chat:** The send actions are @arbidocs/react's (#1720 A4b) ([#1772](https://github.com/arbicity/ARBI-frontend/pull/1772), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
47
+ - **chat:** Attaching to a running run is @arbidocs/react's (#1720 A4c) ([#1774](https://github.com/arbicity/ARBI-frontend/pull/1774), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
48
+ - **auth:** ConnectedSsoCallback on arbi.sso, Auth0 in @arbidocs/blocks/auth0 (B6) ([#1782](https://github.com/arbicity/ARBI-frontend/pull/1782))
49
+ - **chat:** Conversation navigation is @arbidocs/react's (#1720 A5) ([#1787](https://github.com/arbicity/ARBI-frontend/pull/1787), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
50
+ - **chat:** ⚠️ UseArbiChat becomes useConversation, on the chat engine (#1720 A6) ([#1789](https://github.com/arbicity/ARBI-frontend/pull/1789), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
51
+ - **workspaces:** UseSwitchWorkspace in @arbidocs/react, on arbi.selectWorkspace (B7) ([#1790](https://github.com/arbicity/ARBI-frontend/pull/1790))
52
+ - **connect:** ConnectionProvider on the SDK session and the shared switch, the default host (B7) ([#1791](https://github.com/arbicity/ARBI-frontend/pull/1791))
53
+ - **client:** Workspace keys and the 409 key re-prime in the client; base URL read per request ([#1795](https://github.com/arbicity/ARBI-frontend/pull/1795))
54
+ - **chat:** The agent steps, turn bar and sub-agent roster are blocks kits (#1720 A7a) ([#1801](https://github.com/arbicity/ARBI-frontend/pull/1801), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
55
+ - **chat:** A message's chrome is blocks kits (#1720 A7b) ([#1803](https://github.com/arbicity/ARBI-frontend/pull/1803), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
56
+ - **chat:** The composer is a blocks kit (#1720 A7c) ([#1807](https://github.com/arbicity/ARBI-frontend/pull/1807), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
57
+ - **react:** Work-item hooks move into @arbidocs/react ([#1809](https://github.com/arbicity/ARBI-frontend/pull/1809))
58
+ - **blocks:** Workflows move into @arbidocs/blocks ([#1810](https://github.com/arbicity/ARBI-frontend/pull/1810))
59
+ - Every query key comes from the one factory, and lint plus a test keep it so ([#1811](https://github.com/arbicity/ARBI-frontend/pull/1811))
60
+ - **blocks:** The thread task bar and its activity move into blocks ([#1812](https://github.com/arbicity/ARBI-frontend/pull/1812))
61
+ - **blocks:** The task composer and starting a task move into blocks ([#1813](https://github.com/arbicity/ARBI-frontend/pull/1813))
62
+ - **blocks:** A conversation's message moves into blocks ([#1814](https://github.com/arbicity/ARBI-frontend/pull/1814))
63
+ - **blocks:** The conversation's message list moves into blocks ([#1815](https://github.com/arbicity/ARBI-frontend/pull/1815))
64
+ - **blocks:** ConnectedConversation, the open thread, moves into blocks ([#1816](https://github.com/arbicity/ARBI-frontend/pull/1816))
65
+ - **calls:** The open conversation's call actions are a blocks kit (#1720 C7) ([#1817](https://github.com/arbicity/ARBI-frontend/pull/1817), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
66
+ - **blocks:** The agent sidebar chat runs on ConnectedAgentChat ([#1818](https://github.com/arbicity/ARBI-frontend/pull/1818))
67
+ - **blocks:** The embedded panel's chat and document picker are kits ([#1819](https://github.com/arbicity/ARBI-frontend/pull/1819))
68
+ - The Threads page switches to the blocks kits; tabs and drafts in the session ([#1820](https://github.com/arbicity/ARBI-frontend/pull/1820))
69
+ - **blocks:** The workspace access grant dialog is a connected kit ([#1821](https://github.com/arbicity/ARBI-frontend/pull/1821))
70
+ - **react:** Config hooks and the chat's model binding move into @arbidocs/react ([#1822](https://github.com/arbicity/ARBI-frontend/pull/1822))
71
+ - **blocks:** Config kits (#1720 A10c) ([#1824](https://github.com/arbicity/ARBI-frontend/pull/1824), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
72
+ - Delete components/messages and components/tasks, dead chat state, app-only access requests (#1720 A10d) ([#1825](https://github.com/arbicity/ARBI-frontend/pull/1825), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
6
73
 
7
74
  ### 🏡 Chore
8
75
 
9
- - Release v0.4.165 [skip ci] ([5646d4a04](https://github.com/arbicity/ARBI-frontend/commit/5646d4a04))
76
+ - Merge main into refactor/phase3 ([206d613d0](https://github.com/arbicity/ARBI-frontend/commit/206d613d0))
77
+ - Regenerate the API schema from the dev backend ([2d4cd802a](https://github.com/arbicity/ARBI-frontend/commit/2d4cd802a))
78
+ - Merge refactor/phase3 into the final integration ([#1829](https://github.com/arbicity/ARBI-frontend/pull/1829))
79
+ - Merge main (#1766, v0.4.167) into refactor/phase3 ([#1766](https://github.com/arbicity/ARBI-frontend/issues/1766))
80
+
81
+ ### ✅ Tests
82
+
83
+ - **chat:** Parity harness with recorded turns and golden files (#1720 A0) ([#1754](https://github.com/arbicity/ARBI-frontend/pull/1754), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
84
+ - **calls:** Two-browser calls e2e on a LiveKit stack ([#1756](https://github.com/arbicity/ARBI-frontend/pull/1756))
85
+ - **e2e:** Wait for the app to boot before driving the store after a reload ([#1784](https://github.com/arbicity/ARBI-frontend/pull/1784))
86
+ - Add-members bodies carry the default duration; a stable session store in the auto-add test ([9936daf94](https://github.com/arbicity/ARBI-frontend/commit/9936daf94))
87
+ - **calls:** Who is speaking in a call ([101133fd7](https://github.com/arbicity/ARBI-frontend/commit/101133fd7))
88
+ - The query-key guard parses only files that can hold a key ([31f7cc037](https://github.com/arbicity/ARBI-frontend/commit/31f7cc037))
89
+
90
+ #### ⚠️ Breaking Changes
91
+
92
+ - **chat:** ⚠️ UseArbiChat becomes useConversation, on the chat engine (#1720 A6) ([#1789](https://github.com/arbicity/ARBI-frontend/pull/1789), [#1720](https://github.com/arbicity/ARBI-frontend/issues/1720))
93
+
94
+ ## v0.4.167
95
+
96
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.165...HEAD)
97
+
98
+ ### ✅ Tests
99
+
100
+ - **e2e:** Fix the Word specs failing on main (ribbon More menu, off-screen clicks, document cache key) ([#1766](https://github.com/arbicity/ARBI-frontend/pull/1766))
101
+
102
+ ## v0.4.165
103
+
104
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.163...HEAD)
105
+
106
+ ### 🩹 Fixes
107
+
108
+ - **chat:** Initialize workspace sources and preserve existing chat choices ([#1796](https://github.com/arbicity/ARBI-frontend/pull/1796))
109
+ - **docx:** A peer's edit no longer lets a stale selection move the caret back ([#1804](https://github.com/arbicity/ARBI-frontend/pull/1804))
10
110
 
11
111
  ## v0.4.163
12
112
 
package/dist/index.js CHANGED
@@ -114,9 +114,9 @@ function getCachedWorkspaceName(id) {
114
114
  return null;
115
115
  }
116
116
  }
117
- function updateCompletionCache(workspaces5) {
117
+ function updateCompletionCache(workspaces6) {
118
118
  const cache = {
119
- workspaces: workspaces5.filter((w) => w.external_id).map((w) => ({ id: w.external_id, name: w.name ?? "" })),
119
+ workspaces: workspaces6.filter((w) => w.external_id).map((w) => ({ id: w.external_id, name: w.name ?? "" })),
120
120
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
121
121
  };
122
122
  const filePath = getCacheFile();
@@ -3695,7 +3695,7 @@ function getLatestVersion(skipCache = false) {
3695
3695
  }
3696
3696
  }
3697
3697
  function getCurrentVersion() {
3698
- return "0.4.166";
3698
+ return "0.4.168";
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.166") return;
3751
+ if (!latest || latest === "0.4.168") return;
3752
3752
  if (autoUpdate) {
3753
3753
  warn(`
3754
- Your arbi version is out of date (${"0.4.166"} \u2192 ${latest}). Updating...`);
3754
+ Your arbi version is out of date (${"0.4.168"} \u2192 ${latest}). Updating...`);
3755
3755
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3756
- showChangelog("0.4.166", latest);
3756
+ showChangelog("0.4.168", 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.166"} \u2192 ${latest}).
3761
+ Your arbi version is out of date (${"0.4.168"} \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.166") return;
3793
+ if (!cached || cached.latest === "0.4.168") return;
3794
3794
  if (!shouldShowNag(cached.latest)) return;
3795
3795
  warn(
3796
- `Your arbi version is out of date (${"0.4.166"} \u2192 ${cached.latest}). Run "arbi update".`
3796
+ `Your arbi version is out of date (${"0.4.168"} \u2192 ${cached.latest}). Run "arbi update".`
3797
3797
  );
3798
3798
  markNagShown(cached.latest);
3799
3799
  } catch {
@@ -4356,8 +4356,8 @@ Open this URL in your browser:
4356
4356
  })();
4357
4357
  if (!opts.json) success(`Logged in as ${email}`);
4358
4358
  clearChatSession();
4359
- const { data: workspaces5 } = await arbi.fetch.GET("/v1/user/workspaces");
4360
- const wsList = workspaces5 || [];
4359
+ const { data: workspaces6 } = await arbi.fetch.GET("/v1/user/workspaces");
4360
+ const wsList = workspaces6 || [];
4361
4361
  updateCompletionCache(wsList);
4362
4362
  const memberWorkspaces = wsList.filter(
4363
4363
  (ws) => ws.users?.some((u) => u.user.email === email)
@@ -4738,8 +4738,8 @@ async function loginAfterRegister(config, email, password2, { json = false } = {
4738
4738
  try {
4739
4739
  const { arbi, loginResult } = await sdk.performPasswordLogin(config, email, password2, store);
4740
4740
  if (!json) success(`Logged in as ${email}`);
4741
- const { data: workspaces5 } = await arbi.fetch.GET("/v1/user/workspaces");
4742
- const wsList = workspaces5 || [];
4741
+ const { data: workspaces6 } = await arbi.fetch.GET("/v1/user/workspaces");
4742
+ const wsList = workspaces6 || [];
4743
4743
  updateCompletionCache(wsList);
4744
4744
  const memberWorkspaces = wsList.filter((ws) => ws.users?.some((u) => u.user.email === email));
4745
4745
  let selectedWorkspace;
@@ -10109,8 +10109,8 @@ async function runQuickstart(url) {
10109
10109
  try {
10110
10110
  const { arbi, loginResult } = await sdk.performPasswordLogin(config, email, password2, store);
10111
10111
  success(`Logged in as ${email}`);
10112
- const { data: workspaces5 } = await arbi.fetch.GET("/v1/user/workspaces");
10113
- const wsList = workspaces5 || [];
10112
+ const { data: workspaces6 } = await arbi.fetch.GET("/v1/user/workspaces");
10113
+ const wsList = workspaces6 || [];
10114
10114
  const memberWorkspaces = wsList.filter((ws) => ws.users?.some((u) => u.user.email === email));
10115
10115
  const userProjects = await sdk.projects.listProjects(arbi);
10116
10116
  const defaultProjectExtId = userProjects[0]?.external_id;
@@ -10323,12 +10323,12 @@ function registerAgentCommand(program2) {
10323
10323
  creds.signingPrivateKeyBase64
10324
10324
  );
10325
10325
  await arbi.fetch.POST("/v1/workspace/users", {
10326
- body: {
10326
+ body: sdk.workspaces.addWorkspaceMembersBody({
10327
10327
  emails: [agent2.email],
10328
10328
  role: opts.role ?? "collaborator",
10329
10329
  workspace_key: encryptedKey,
10330
10330
  workspace_ext_id: wsId
10331
- }
10331
+ })
10332
10332
  });
10333
10333
  }
10334
10334
  }
@@ -12574,7 +12574,7 @@ console.info = (...args) => {
12574
12574
  _origInfo(...args);
12575
12575
  };
12576
12576
  var program = new commander.Command();
12577
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.166").showHelpAfterError(true).showSuggestionAfterError(true);
12577
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.168").showHelpAfterError(true).showSuggestionAfterError(true);
12578
12578
  registerConfigCommand(program);
12579
12579
  registerLoginCommand(program);
12580
12580
  registerRegisterCommand(program);