@arbidocs/cli 0.3.47 → 0.3.48

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.48
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.47...HEAD)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - S3 direct upload, workspace_ext_id cleanup, status column race fix ([#638](https://github.com/arbicity/ARBI-frontend/pull/638))
10
+
3
11
  ## v0.3.47
4
12
 
5
13
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.46...HEAD)
package/dist/index.js CHANGED
@@ -3641,7 +3641,7 @@ function getLatestVersion(skipCache = false) {
3641
3641
  }
3642
3642
  }
3643
3643
  function getCurrentVersion() {
3644
- return "0.3.47";
3644
+ return "0.3.48";
3645
3645
  }
3646
3646
  function readChangelog(fromVersion, toVersion) {
3647
3647
  try {
@@ -3694,17 +3694,17 @@ function showChangelog(fromVersion, toVersion) {
3694
3694
  async function checkForUpdates(autoUpdate) {
3695
3695
  try {
3696
3696
  const latest = getLatestVersion();
3697
- if (!latest || latest === "0.3.47") return;
3697
+ if (!latest || latest === "0.3.48") return;
3698
3698
  if (autoUpdate) {
3699
3699
  warn(`
3700
- Your arbi version is out of date (${"0.3.47"} \u2192 ${latest}). Updating...`);
3700
+ Your arbi version is out of date (${"0.3.48"} \u2192 ${latest}). Updating...`);
3701
3701
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3702
- showChangelog("0.3.47", latest);
3702
+ showChangelog("0.3.48", latest);
3703
3703
  console.log(`Updated to ${latest}.`);
3704
3704
  } else {
3705
3705
  warn(
3706
3706
  `
3707
- Your arbi version is out of date (${"0.3.47"} \u2192 ${latest}).
3707
+ Your arbi version is out of date (${"0.3.48"} \u2192 ${latest}).
3708
3708
  Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
3709
3709
  );
3710
3710
  }
@@ -3714,9 +3714,9 @@ Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
3714
3714
  function hintUpdateOnError() {
3715
3715
  try {
3716
3716
  const cached = readCache();
3717
- if (cached && cached.latest !== "0.3.47") {
3717
+ if (cached && cached.latest !== "0.3.48") {
3718
3718
  warn(
3719
- `Your arbi version is out of date (${"0.3.47"} \u2192 ${cached.latest}). Run "arbi update".`
3719
+ `Your arbi version is out of date (${"0.3.48"} \u2192 ${cached.latest}). Run "arbi update".`
3720
3720
  );
3721
3721
  }
3722
3722
  } catch {
@@ -5287,8 +5287,8 @@ function registerDocsCommand(program2) {
5287
5287
  );
5288
5288
  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(
5289
5289
  (urls, opts) => runAction(async () => {
5290
- const { arbi, workspaceId } = await resolveWorkspace(opts.workspace);
5291
- const data = await sdk.documents.uploadUrl(arbi, urls, workspaceId, opts.shared ?? false);
5290
+ const { arbi } = await resolveWorkspace(opts.workspace);
5291
+ const data = await sdk.documents.uploadUrl(arbi, urls, opts.shared ?? false);
5292
5292
  if (opts.json) {
5293
5293
  console.log(
5294
5294
  JSON.stringify({
@@ -5814,7 +5814,7 @@ function registerUploadCommand(program2) {
5814
5814
  const isInteractive = process.stdout.isTTY === true;
5815
5815
  const watchPref = getConfig()?.watch !== false;
5816
5816
  const willWatch = opts.watch === false ? false : opts.watch === true || watchPref && isInteractive;
5817
- const { config, accessToken, workspaceId } = await resolveWorkspace(opts.workspace, {
5817
+ const { config, accessToken } = await resolveWorkspace(opts.workspace, {
5818
5818
  skipNotifications: willWatch
5819
5819
  });
5820
5820
  const uploadedDocs = /* @__PURE__ */ new Map();
@@ -5856,12 +5856,7 @@ function registerUploadCommand(program2) {
5856
5856
  summary.totalFiles += count;
5857
5857
  continue;
5858
5858
  }
5859
- const result = await sdk.documentsNode.uploadDirectory(
5860
- auth,
5861
- workspaceId,
5862
- filePath,
5863
- progressCallbacks
5864
- );
5859
+ const result = await sdk.documentsNode.uploadDirectory(auth, filePath, progressCallbacks);
5865
5860
  if (result.doc_ext_ids.length === 0 && result.skipped.length === 0) {
5866
5861
  warn(`No supported files found in directory: ${filePath}`);
5867
5862
  continue;
@@ -5888,12 +5883,7 @@ function registerUploadCommand(program2) {
5888
5883
  console.log(`${filePath}: zip archive (contents would be extracted and uploaded)`);
5889
5884
  continue;
5890
5885
  }
5891
- const result = await sdk.documentsNode.uploadZip(
5892
- auth,
5893
- workspaceId,
5894
- filePath,
5895
- progressCallbacks
5896
- );
5886
+ const result = await sdk.documentsNode.uploadZip(auth, filePath, progressCallbacks);
5897
5887
  if (result.doc_ext_ids.length === 0 && result.skipped.length === 0) {
5898
5888
  warn(`No supported files found in zip: ${filePath}`);
5899
5889
  continue;
@@ -5920,12 +5910,7 @@ function registerUploadCommand(program2) {
5920
5910
  console.log(`${filePath}: archive (contents would be extracted and uploaded)`);
5921
5911
  continue;
5922
5912
  }
5923
- const result = await sdk.documentsNode.uploadArchive(
5924
- auth,
5925
- workspaceId,
5926
- filePath,
5927
- progressCallbacks
5928
- );
5913
+ const result = await sdk.documentsNode.uploadArchive(auth, filePath, progressCallbacks);
5929
5914
  if (result.doc_ext_ids.length === 0 && result.skipped.length === 0) {
5930
5915
  warn(`No supported files found in archive: ${filePath}`);
5931
5916
  continue;
@@ -5953,7 +5938,7 @@ function registerUploadCommand(program2) {
5953
5938
  summary.totalFiles += 1;
5954
5939
  continue;
5955
5940
  }
5956
- const result = await sdk.documentsNode.uploadLocalFile(auth, workspaceId, filePath);
5941
+ const result = await sdk.documentsNode.uploadLocalFile(auth, filePath);
5957
5942
  if (!opts.json) {
5958
5943
  success(`Uploaded: ${result.fileName} (${(result.doc_ext_ids ?? []).join(", ")})`);
5959
5944
  if (result.skipped && result.skipped.length > 0) {
@@ -6398,7 +6383,7 @@ async function runManifestMode(inputPaths, opts) {
6398
6383
  if (csv === null) return;
6399
6384
  writeCsvAtomic(csv.filePath, csv.header, csv.rows);
6400
6385
  };
6401
- const result = await sdk.documentsNode.uploadManifest(auth, workspaceId, pathsToUpload, {
6386
+ const result = await sdk.documentsNode.uploadManifest(auth, pathsToUpload, {
6402
6387
  rootDir: opts.root,
6403
6388
  configExtId: opts.config,
6404
6389
  failFast: opts.failFast,
@@ -8621,7 +8606,7 @@ console.info = (...args) => {
8621
8606
  _origInfo(...args);
8622
8607
  };
8623
8608
  var program = new commander.Command();
8624
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.47");
8609
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.48");
8625
8610
  registerConfigCommand(program);
8626
8611
  registerLoginCommand(program);
8627
8612
  registerRegisterCommand(program);