@arbidocs/cli 0.3.80 → 0.3.82

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,41 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.82
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.81...HEAD)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - **billing:** Surface referral credit + checkout reliability fixes ([#867](https://github.com/arbicity/ARBI-frontend/pull/867))
10
+
11
+ ### 🩹 Fixes
12
+
13
+ - **skills:** Hide Skills by default (experimental, opt-in) ([#864](https://github.com/arbicity/ARBI-frontend/pull/864))
14
+ - **word-addin:** Per-deployment manifest Id (+ domain-tagged DisplayName) ([#866](https://github.com/arbicity/ARBI-frontend/pull/866))
15
+ - **word-addin:** Stop main-app return-URL redirect from bouncing embedded login ([#869](https://github.com/arbicity/ARBI-frontend/pull/869))
16
+
17
+ ## v0.3.81
18
+
19
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.80...HEAD)
20
+
21
+ ### 🚀 Enhancements
22
+
23
+ - **word-addin:** Downloadable install kit (manifest + sideloading guide) as a zip ([#851](https://github.com/arbicity/ARBI-frontend/pull/851))
24
+ - **word-addin:** Show deployment domain + version in the sidebar ([#859](https://github.com/arbicity/ARBI-frontend/pull/859))
25
+ - **word-addin:** Tag downloaded kit + manifest with the deployment domain ([#861](https://github.com/arbicity/ARBI-frontend/pull/861))
26
+ - **mcp:** Auto-close localhost OAuth tab instead of showing banner ([#862](https://github.com/arbicity/ARBI-frontend/pull/862))
27
+ - **cli/sdk:** Arbi convo import + reconcile schema drift ([#863](https://github.com/arbicity/ARBI-frontend/pull/863))
28
+
29
+ ### 🩹 Fixes
30
+
31
+ - **word-addin:** Generate per-deployment manifest + add login download link ([#846](https://github.com/arbicity/ARBI-frontend/pull/846))
32
+ - **word-addin:** Retitle sidebar 'ARBI Summarizer' → 'ARBI Docs' ([#847](https://github.com/arbicity/ARBI-frontend/pull/847))
33
+ - **docker:** Word-manifest generation must not crash nginx (unblocks deploy) ([#848](https://github.com/arbicity/ARBI-frontend/pull/848))
34
+ - **auth:** Style the Download Word Add-in link as a button ([#849](https://github.com/arbicity/ARBI-frontend/pull/849))
35
+ - **word-addin:** Embedded SSO login no longer bounces back to login ([#853](https://github.com/arbicity/ARBI-frontend/pull/853))
36
+ - **mcp:** Show client identity and warn users to close local-agent consent tabs ([#855](https://github.com/arbicity/ARBI-frontend/pull/855))
37
+ - **word-addin:** Show real login error instead of '[object Object]' ([#857](https://github.com/arbicity/ARBI-frontend/pull/857))
38
+
3
39
  ## v0.3.80
4
40
 
5
41
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.79...HEAD)
package/dist/index.js CHANGED
@@ -3339,7 +3339,7 @@ var waitForOthersClosedDelete = (databases, name, openDatabases, cb) => {
3339
3339
  };
3340
3340
  var deleteDatabase = (databases, connectionQueues, name, request, cb) => {
3341
3341
  const deleteDBTask = () => {
3342
- return new Promise((resolve5) => {
3342
+ return new Promise((resolve6) => {
3343
3343
  const db = databases.get(name);
3344
3344
  const oldVersion = db !== void 0 ? db.version : 0;
3345
3345
  const onComplete = (err) => {
@@ -3350,7 +3350,7 @@ var deleteDatabase = (databases, connectionQueues, name, request, cb) => {
3350
3350
  cb(null, oldVersion);
3351
3351
  }
3352
3352
  } finally {
3353
- resolve5();
3353
+ resolve6();
3354
3354
  }
3355
3355
  };
3356
3356
  try {
@@ -3498,7 +3498,7 @@ var runVersionchangeTransaction = (connection, version, request, cb) => {
3498
3498
  };
3499
3499
  var openDatabase = (databases, connectionQueues, name, version, request, cb) => {
3500
3500
  const openDBTask = () => {
3501
- return new Promise((resolve5) => {
3501
+ return new Promise((resolve6) => {
3502
3502
  const onComplete = (err) => {
3503
3503
  try {
3504
3504
  if (err) {
@@ -3507,7 +3507,7 @@ var openDatabase = (databases, connectionQueues, name, version, request, cb) =>
3507
3507
  cb(null, connection);
3508
3508
  }
3509
3509
  } finally {
3510
- resolve5();
3510
+ resolve6();
3511
3511
  }
3512
3512
  };
3513
3513
  let db = databases.get(name);
@@ -3694,7 +3694,7 @@ function getLatestVersion(skipCache = false) {
3694
3694
  }
3695
3695
  }
3696
3696
  function getCurrentVersion() {
3697
- return "0.3.80";
3697
+ return "0.3.82";
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.80") return;
3750
+ if (!latest || latest === "0.3.82") return;
3751
3751
  if (autoUpdate) {
3752
3752
  warn(`
3753
- Your arbi version is out of date (${"0.3.80"} \u2192 ${latest}). Updating...`);
3753
+ Your arbi version is out of date (${"0.3.82"} \u2192 ${latest}). Updating...`);
3754
3754
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3755
- showChangelog("0.3.80", latest);
3755
+ showChangelog("0.3.82", 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.80"} \u2192 ${latest}).
3760
+ Your arbi version is out of date (${"0.3.82"} \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.80") return;
3792
+ if (!cached || cached.latest === "0.3.82") return;
3793
3793
  if (!shouldShowNag(cached.latest)) return;
3794
3794
  warn(
3795
- `Your arbi version is out of date (${"0.3.80"} \u2192 ${cached.latest}). Run "arbi update".`
3795
+ `Your arbi version is out of date (${"0.3.82"} \u2192 ${cached.latest}). Run "arbi update".`
3796
3796
  );
3797
3797
  markNagShown(cached.latest);
3798
3798
  } catch {
@@ -5890,7 +5890,7 @@ function registerDocsCommand(program2) {
5890
5890
  if (!opts.quiet && statusIntervalMs > 0) {
5891
5891
  statusTimer = setInterval(() => printStatus(" "), statusIntervalMs);
5892
5892
  }
5893
- const sleep = (ms) => new Promise((resolve5) => setTimeout(resolve5, ms));
5893
+ const sleep = (ms) => new Promise((resolve6) => setTimeout(resolve6, ms));
5894
5894
  const backoff = async (attempt) => {
5895
5895
  const delayMs = Math.min(1e3 * Math.pow(2, attempt), 3e4);
5896
5896
  await sleep(delayMs);
@@ -8431,6 +8431,42 @@ function registerConversationsCommand(program2) {
8431
8431
  );
8432
8432
  })()
8433
8433
  );
8434
+ conv.command("import <path>").description(
8435
+ "Import a conversation export (ChatGPT, OpenClaw, or Claude Code) into the active workspace"
8436
+ ).option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("-s, --source <source>", "Export format: auto, chatgpt, openclaw, claude_code", "auto").option("--json", "Output as JSON").action(
8437
+ (path7, opts) => runAction(async () => {
8438
+ const { loginResult, config } = await resolveWorkspace(opts.workspace);
8439
+ const filePath = path5.resolve(path7);
8440
+ let bytes;
8441
+ try {
8442
+ bytes = fs5.readFileSync(filePath);
8443
+ } catch {
8444
+ error(`Cannot read file: ${filePath}`);
8445
+ process.exit(3);
8446
+ }
8447
+ const blob = new Blob([new Uint8Array(bytes)]);
8448
+ const data = await sdk.conversations.importConversations(
8449
+ {
8450
+ baseUrl: config.baseUrl,
8451
+ accessToken: loginResult.accessToken
8452
+ },
8453
+ blob,
8454
+ path5.basename(filePath),
8455
+ opts.source ?? "auto"
8456
+ );
8457
+ if (opts.json) {
8458
+ printJson(data);
8459
+ return;
8460
+ }
8461
+ success(
8462
+ `Imported ${data.imported_count} conversation(s) from ${data.source} (${data.imported_message_count} messages, ${data.skipped_node_count} skipped)`
8463
+ );
8464
+ for (const c of data.conversations) {
8465
+ process.stdout.write(` ${ref(c.conversation_ext_id)} ${c.title}
8466
+ `);
8467
+ }
8468
+ })()
8469
+ );
8434
8470
  conv.command("threads [conversation-id]").description("Show threads (interactive picker if no ID given)").action(
8435
8471
  (conversationId) => runAction(async () => {
8436
8472
  const { arbi, workspaceId } = await resolveWorkspace();
@@ -10237,7 +10273,7 @@ console.info = (...args) => {
10237
10273
  _origInfo(...args);
10238
10274
  };
10239
10275
  var program = new commander.Command();
10240
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.80").showHelpAfterError(true).showSuggestionAfterError(true);
10276
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.82").showHelpAfterError(true).showSuggestionAfterError(true);
10241
10277
  registerConfigCommand(program);
10242
10278
  registerLoginCommand(program);
10243
10279
  registerRegisterCommand(program);