@arbidocs/cli 0.5.145 → 0.5.147

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,47 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.5.147
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.146...HEAD)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - **blocks:** ⚠️ Saved table views live in the API, with filters, sort and sharing ([#2420](https://github.com/arbicity/ARBI-frontend/pull/2420))
10
+ - **blocks:** ⚠️ Pages replace Analytics dashboards: chart, metric, text and table-view blocks, private until shared ([#2423](https://github.com/arbicity/ARBI-frontend/pull/2423))
11
+ - **blocks:** ⚠️ Document and gallery blocks on pages; a shared page never shows a private document ([#2434](https://github.com/arbicity/ARBI-frontend/pull/2434))
12
+ - **sharing:** ⚠️ Sharing is one-way for documents, threads and database rows ([#2426](https://github.com/arbicity/ARBI-frontend/pull/2426))
13
+
14
+ ### 🩹 Fixes
15
+
16
+ - **react:** The first turn in an empty task thread runs in it, not in a new chat ([#2407](https://github.com/arbicity/ARBI-frontend/pull/2407))
17
+ - **react:** Show step_ready, workflow_signal and doc_shared notifications ([#2427](https://github.com/arbicity/ARBI-frontend/pull/2427))
18
+ - **blocks:** An upload keeps its live processing when its AI-fields batch finishes first ([#2414](https://github.com/arbicity/ARBI-frontend/pull/2414))
19
+ - **react:** Request AI fields only for processed documents ([#2418](https://github.com/arbicity/ARBI-frontend/pull/2418))
20
+
21
+ ### 🏡 Chore
22
+
23
+ - Release v0.5.146 [skip ci] ([fa23946c0](https://github.com/arbicity/ARBI-frontend/commit/fa23946c0))
24
+
25
+ #### ⚠️ Breaking Changes
26
+
27
+ - **blocks:** ⚠️ Saved table views live in the API, with filters, sort and sharing ([#2420](https://github.com/arbicity/ARBI-frontend/pull/2420))
28
+ - **blocks:** ⚠️ Pages replace Analytics dashboards: chart, metric, text and table-view blocks, private until shared ([#2423](https://github.com/arbicity/ARBI-frontend/pull/2423))
29
+ - **blocks:** ⚠️ Document and gallery blocks on pages; a shared page never shows a private document ([#2434](https://github.com/arbicity/ARBI-frontend/pull/2434))
30
+ - **sharing:** ⚠️ Sharing is one-way for documents, threads and database rows ([#2426](https://github.com/arbicity/ARBI-frontend/pull/2426))
31
+
32
+ ## v0.5.146
33
+
34
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.145...HEAD)
35
+
36
+ ### 🩹 Fixes
37
+
38
+ - **pdf:** Version the pdf.js worker URL so a cached old worker can never meet a new pdf.js ([#2428](https://github.com/arbicity/ARBI-frontend/pull/2428))
39
+
40
+ ### 🤖 CI
41
+
42
+ - Hold frontend image bumps while main's E2E is red ([#2387](https://github.com/arbicity/ARBI-frontend/pull/2387))
43
+ - Ci.yml calls ci-cpu.yml@main (step 2 of 2: checks named CPU / <job>) ([#2412](https://github.com/arbicity/ARBI-frontend/pull/2412))
44
+
3
45
  ## v0.5.145
4
46
 
5
47
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.144...HEAD)
package/SKILL.md CHANGED
@@ -117,7 +117,7 @@ All list commands that summarize people or state support `--json`:
117
117
  - **Workspace watch firehose**: `arbi watch --type task_update,notification` filters the WebSocket stream by event type (unknown types are rejected up-front instead of silently swallowed). Known types: `task_update`, `batch_complete`, `presence_update`, `response_complete`, `notification`, `error`. `arbi watch -n N --timeout S` exits **124** with a `{type:"timeout", received, expected}` JSON terminator if N events never arrived.
118
118
  - **Local filesystem**: `arbi local ls/find/cat/tree --json` for agent-friendly browsing. `ls --all` includes dotfiles; `tree --depth N` controls recursion; `cat --head N` truncates by line count. Empty result sets emit `[]` on stdout, not human prose.
119
119
  - **Update probe**: `arbi update --check` exits 0 if up to date and 1 if an update is available (`git diff --exit-code` convention). `arbi update --json` (implies `--check`) emits `{current, latest, update_available}` and is the right way for an agent to gate behavior on the CLI version.
120
- - **Quick toggles instead of JSON patches**: `arbi doc share <ids>` / `arbi doc unshare <ids>` and `arbi tags share <id>` / `arbi tags unshare <id>` / `arbi tags rename <id> <name>` are named shortcuts for the most common `doc update` / `tags update` operations — no more hand-writing `{"shared":true}` JSON.
120
+ - **Quick toggles instead of JSON patches**: `arbi doc share <ids>` (one-way: a shared document is never made private again; a workspace owner deletes it) and `arbi tags share <id>` / `arbi tags unshare <id>` / `arbi tags rename <id> <name>` are named shortcuts for the most common `doc update` / `tags update` operations — no more hand-writing `{"shared":true}` JSON.
121
121
  - **Inbox housekeeping**: `arbi notifications mark-read --all` and `arbi notifications delete --all` drain the non-DM queue for long-running agents whose `--unread` filter would otherwise grow unbounded.
122
122
  - **Leave a workspace**: `arbi workspace leave [id-or-name]` self-removes from a workspace (defaults to the active one); requires `-y/--yes` in non-TTY shells. Symmetric to `arbi workspace add-user`.
123
123
  - **Projects**: `arbi project list` (and `create`, `refresh`) — projects are the tenancy unit above workspaces. Until this command existed the only way to discover a `projectExtId` was inside `arbi register`, blocking multi-project bootstrap from a fresh agent install.
package/dist/index.js CHANGED
@@ -3700,7 +3700,7 @@ function getLatestVersion(skipCache = false) {
3700
3700
  }
3701
3701
  }
3702
3702
  function getCurrentVersion() {
3703
- return "0.5.145";
3703
+ return "0.5.147";
3704
3704
  }
3705
3705
  function readChangelog(fromVersion, toVersion) {
3706
3706
  try {
@@ -3753,17 +3753,17 @@ function showChangelog(fromVersion, toVersion) {
3753
3753
  async function checkForUpdates(autoUpdate) {
3754
3754
  try {
3755
3755
  const latest = getLatestVersion();
3756
- if (!latest || latest === "0.5.145") return;
3756
+ if (!latest || latest === "0.5.147") return;
3757
3757
  if (autoUpdate) {
3758
3758
  warn(`
3759
- Your arbi version is out of date (${"0.5.145"} \u2192 ${latest}). Updating...`);
3759
+ Your arbi version is out of date (${"0.5.147"} \u2192 ${latest}). Updating...`);
3760
3760
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3761
- showChangelog("0.5.145", latest);
3761
+ showChangelog("0.5.147", latest);
3762
3762
  console.log(`Updated to ${latest}.`);
3763
3763
  } else {
3764
3764
  warn(
3765
3765
  `
3766
- Your arbi version is out of date (${"0.5.145"} \u2192 ${latest}).
3766
+ Your arbi version is out of date (${"0.5.147"} \u2192 ${latest}).
3767
3767
  Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
3768
3768
  );
3769
3769
  }
@@ -3795,10 +3795,10 @@ function markNagShown(latest) {
3795
3795
  function hintUpdateOnError() {
3796
3796
  try {
3797
3797
  const cached = readCache();
3798
- if (!cached || cached.latest === "0.5.145") return;
3798
+ if (!cached || cached.latest === "0.5.147") return;
3799
3799
  if (!shouldShowNag(cached.latest)) return;
3800
3800
  warn(
3801
- `Your arbi version is out of date (${"0.5.145"} \u2192 ${cached.latest}). Run "arbi update".`
3801
+ `Your arbi version is out of date (${"0.5.147"} \u2192 ${cached.latest}). Run "arbi update".`
3802
3802
  );
3803
3803
  markNagShown(cached.latest);
3804
3804
  } catch {
@@ -6140,7 +6140,9 @@ function registerDocsCommand(program2) {
6140
6140
  success(`Deleted ${docIds.length} document(s).`);
6141
6141
  })()
6142
6142
  );
6143
- doc.command("share <ids...>").description("Mark documents as shared (visible to all workspace members)").action(
6143
+ doc.command("share <ids...>").description(
6144
+ "Share documents with all workspace members (cannot be undone: only an owner deletes them)"
6145
+ ).action(
6144
6146
  (ids) => runAction(async () => {
6145
6147
  const { arbi } = await resolveWorkspace();
6146
6148
  await sdk.documents.updateDocuments(
@@ -6150,16 +6152,6 @@ function registerDocsCommand(program2) {
6150
6152
  success(`Shared ${ids.length} document(s).`);
6151
6153
  })()
6152
6154
  );
6153
- doc.command("unshare <ids...>").description("Mark documents as private (owner-only)").action(
6154
- (ids) => runAction(async () => {
6155
- const { arbi } = await resolveWorkspace();
6156
- await sdk.documents.updateDocuments(
6157
- arbi,
6158
- ids.map((external_id) => ({ external_id, shared: false }))
6159
- );
6160
- success(`Unshared ${ids.length} document(s).`);
6161
- })()
6162
- );
6163
6155
  doc.command("similar [doc-id]").description("Find near-duplicate documents (cached similarity pairs)").option(
6164
6156
  "--threshold <n>",
6165
6157
  "Minimum cosine similarity score, 0.0\u20131.0 (default 0.0 = all stored pairs)",
@@ -9678,7 +9670,9 @@ function registerConversationsCommand(program2) {
9678
9670
  success(data?.detail ?? `Deleted conversation ${conversationId}`);
9679
9671
  })()
9680
9672
  );
9681
- conv.command("share [conversation-id]").description("Share a conversation (interactive picker if no ID given)").action(
9673
+ conv.command("share [conversation-id]").description(
9674
+ "Share a conversation with the workspace, for good (interactive picker if no ID given)"
9675
+ ).action(
9682
9676
  (conversationId) => runAction(async () => {
9683
9677
  const { arbi, workspaceId } = await resolveWorkspace();
9684
9678
  if (!conversationId)
@@ -9687,19 +9681,6 @@ function registerConversationsCommand(program2) {
9687
9681
  success(`Shared conversation ${conversationId}`);
9688
9682
  })()
9689
9683
  );
9690
- conv.command("unshare [conversation-id]").description("Make a shared conversation private again (interactive picker if no ID given)").action(
9691
- (conversationId) => runAction(async () => {
9692
- const { arbi, workspaceId } = await resolveWorkspace();
9693
- if (!conversationId)
9694
- conversationId = await pickConversation(
9695
- arbi,
9696
- workspaceId,
9697
- "Select conversation to unshare"
9698
- );
9699
- await sdk.work.updateConversation(arbi, conversationId, { shared: false });
9700
- success(`Made conversation ${conversationId} private`);
9701
- })()
9702
- );
9703
9684
  conv.command("title [conversation-id] [title]").description("Update conversation title (interactive if no args)").action(
9704
9685
  (conversationId, title) => runAction(async () => {
9705
9686
  const { arbi, workspaceId } = await resolveWorkspace();
@@ -12705,7 +12686,7 @@ console.info = (...args) => {
12705
12686
  _origInfo(...args);
12706
12687
  };
12707
12688
  var program = new commander.Command();
12708
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.145").showHelpAfterError(true).showSuggestionAfterError(true);
12689
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.147").showHelpAfterError(true).showSuggestionAfterError(true);
12709
12690
  registerConfigCommand(program);
12710
12691
  registerLoginCommand(program);
12711
12692
  registerRegisterCommand(program);