@arbidocs/cli 0.5.67 → 0.5.69

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,30 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.5.69
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.68...HEAD)
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **sdk,react,blocks,cli:** ⚠️ Every upload names its workspace ([#2048](https://github.com/arbicity/ARBI-frontend/pull/2048))
10
+
11
+ ### 💅 Refactors
12
+
13
+ - **blocks:** Facts Smart Search moves into react useFactsSearch and the facts kit (D8a) ([#2043](https://github.com/arbicity/ARBI-frontend/pull/2043))
14
+ - **blocks:** Remove dead workflow modes and unused hatches ([#2055](https://github.com/arbicity/ARBI-frontend/pull/2055))
15
+
16
+ #### ⚠️ Breaking Changes
17
+
18
+ - **sdk,react,blocks,cli:** ⚠️ Every upload names its workspace ([#2048](https://github.com/arbicity/ARBI-frontend/pull/2048))
19
+
20
+ ## v0.5.68
21
+
22
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.67...HEAD)
23
+
24
+ ### 🩹 Fixes
25
+
26
+ - **embed:** Provide usable scrolling and file uploads in shared chat ([#2042](https://github.com/arbicity/ARBI-frontend/pull/2042))
27
+
3
28
  ## v0.5.67
4
29
 
5
30
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.66...HEAD)
package/dist/index.js CHANGED
@@ -3689,7 +3689,7 @@ function getLatestVersion(skipCache = false) {
3689
3689
  }
3690
3690
  }
3691
3691
  function getCurrentVersion() {
3692
- return "0.5.67";
3692
+ return "0.5.69";
3693
3693
  }
3694
3694
  function readChangelog(fromVersion, toVersion) {
3695
3695
  try {
@@ -3742,17 +3742,17 @@ function showChangelog(fromVersion, toVersion) {
3742
3742
  async function checkForUpdates(autoUpdate) {
3743
3743
  try {
3744
3744
  const latest = getLatestVersion();
3745
- if (!latest || latest === "0.5.67") return;
3745
+ if (!latest || latest === "0.5.69") return;
3746
3746
  if (autoUpdate) {
3747
3747
  warn(`
3748
- Your arbi version is out of date (${"0.5.67"} \u2192 ${latest}). Updating...`);
3748
+ Your arbi version is out of date (${"0.5.69"} \u2192 ${latest}). Updating...`);
3749
3749
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3750
- showChangelog("0.5.67", latest);
3750
+ showChangelog("0.5.69", latest);
3751
3751
  console.log(`Updated to ${latest}.`);
3752
3752
  } else {
3753
3753
  warn(
3754
3754
  `
3755
- Your arbi version is out of date (${"0.5.67"} \u2192 ${latest}).
3755
+ Your arbi version is out of date (${"0.5.69"} \u2192 ${latest}).
3756
3756
  Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
3757
3757
  );
3758
3758
  }
@@ -3784,10 +3784,10 @@ function markNagShown(latest) {
3784
3784
  function hintUpdateOnError() {
3785
3785
  try {
3786
3786
  const cached = readCache();
3787
- if (!cached || cached.latest === "0.5.67") return;
3787
+ if (!cached || cached.latest === "0.5.69") return;
3788
3788
  if (!shouldShowNag(cached.latest)) return;
3789
3789
  warn(
3790
- `Your arbi version is out of date (${"0.5.67"} \u2192 ${cached.latest}). Run "arbi update".`
3790
+ `Your arbi version is out of date (${"0.5.69"} \u2192 ${cached.latest}). Run "arbi update".`
3791
3791
  );
3792
3792
  markNagShown(cached.latest);
3793
3793
  } catch {
@@ -6204,8 +6204,11 @@ function registerDocsCommand(program2) {
6204
6204
  );
6205
6205
  doc.command("upload-url <urls...>").description("Upload documents from URLs").option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("--shared", "Make documents shared", false).option("--json", "Output results as JSON").action(
6206
6206
  (urls, opts) => runAction(async () => {
6207
- const { arbi } = await resolveWorkspace(opts.workspace);
6208
- const data = await sdk.documents.uploadUrl(arbi, urls, opts.shared ?? false);
6207
+ const { arbi, workspaceId } = await resolveWorkspace(opts.workspace);
6208
+ const data = await sdk.documents.uploadUrl(arbi, urls, {
6209
+ workspaceExtId: workspaceId,
6210
+ shared: opts.shared ?? false
6211
+ });
6209
6212
  if (opts.json) {
6210
6213
  console.log(
6211
6214
  JSON.stringify({
@@ -6675,6 +6678,7 @@ async function runDirectUploadMode(inputPaths, opts) {
6675
6678
  const uploadedDocs = /* @__PURE__ */ new Map();
6676
6679
  const directoryOpts = {
6677
6680
  configExtId: opts.config,
6681
+ workspaceExtId: workspaceId,
6678
6682
  onBatchStart: (progress) => {
6679
6683
  if (!opts.json) {
6680
6684
  dim(
@@ -6752,7 +6756,8 @@ async function runDirectUploadMode(inputPaths, opts) {
6752
6756
  }
6753
6757
  const result = await sdk.documentsNode.uploadLocalFilesDirect(arbi, workspaceKey, plainFiles, {
6754
6758
  folder: opts.folder,
6755
- configExtId: opts.config
6759
+ configExtId: opts.config,
6760
+ workspaceExtId: workspaceId
6756
6761
  });
6757
6762
  summary2.totalFiles += plainFiles.length;
6758
6763
  summary2.uploaded += result.doc_ext_ids.length;
@@ -12568,7 +12573,7 @@ console.info = (...args) => {
12568
12573
  _origInfo(...args);
12569
12574
  };
12570
12575
  var program = new commander.Command();
12571
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.67").showHelpAfterError(true).showSuggestionAfterError(true);
12576
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.69").showHelpAfterError(true).showSuggestionAfterError(true);
12572
12577
  registerConfigCommand(program);
12573
12578
  registerLoginCommand(program);
12574
12579
  registerRegisterCommand(program);