@arbidocs/cli 0.5.212 → 0.5.214

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,55 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.5.214
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.213...HEAD)
6
+
7
+ ### ✅ Tests
8
+
9
+ - **e2e:** File shares fails at a refused upload with its reason ([7120e35a9](https://github.com/arbicity/ARBI-frontend/commit/7120e35a9))
10
+
11
+ ### 🤖 CI
12
+
13
+ - **e2e:** Reuse published images, cache the web deps layer, prefetch the stack ([#2738](https://github.com/arbicity/ARBI-frontend/pull/2738))
14
+ - **e2e:** The PR gate's single shard builds its own images (no images job hop) ([#2739](https://github.com/arbicity/ARBI-frontend/pull/2739))
15
+ - **file-shares:** Run the suite from the E2E runner image (no npm ci, no browser install) ([#2740](https://github.com/arbicity/ARBI-frontend/pull/2740))
16
+ - **e2e:** The PR gate's shard runs in the gating lane (ci-kata-e2e-gate) ([#2741](https://github.com/arbicity/ARBI-frontend/pull/2741))
17
+ - **e2e:** Run the E2E gate on each push to main too ([#2743](https://github.com/arbicity/ARBI-frontend/pull/2743))
18
+ - **e2e:** Dispatch input to run a targeted check in the PR gate's lane ([#2742](https://github.com/arbicity/ARBI-frontend/pull/2742))
19
+
20
+ ## v0.5.213
21
+
22
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.212...HEAD)
23
+
24
+ ### 🚀 Enhancements
25
+
26
+ - **cli:** Import conversation exports from a folder or a .zip ([#2728](https://github.com/arbicity/ARBI-frontend/pull/2728))
27
+
28
+ ### 🩹 Fixes
29
+
30
+ - **chat:** A title that arrives while the person types never replaces what they typed ([395510942](https://github.com/arbicity/ARBI-frontend/commit/395510942))
31
+ - **docker:** Pin the build stage's V8 heap at 3072 MB ([185a2dec5](https://github.com/arbicity/ARBI-frontend/commit/185a2dec5))
32
+
33
+ ### 🏡 Chore
34
+
35
+ - Release v0.5.212 [skip ci] ([af0ae6596](https://github.com/arbicity/ARBI-frontend/commit/af0ae6596))
36
+
37
+ ### ✅ Tests
38
+
39
+ - **e2e:** Agent-platform's database gives its columns and itself an instruction ([5ff3a98a6](https://github.com/arbicity/ARBI-frontend/commit/5ff3a98a6))
40
+ - **e2e:** Native command helpers give the owner's yes when a command needs it ([705b7d76f](https://github.com/arbicity/ARBI-frontend/commit/705b7d76f))
41
+ - **e2e:** Custom Fields waits for Apply to finish before its cleanup selects the field ([c029052bf](https://github.com/arbicity/ARBI-frontend/commit/c029052bf))
42
+ - **e2e:** Typed native commands need no confirmation retry; keep the agent's move reply ([b7224c7ce](https://github.com/arbicity/ARBI-frontend/commit/b7224c7ce))
43
+
44
+ ### 🤖 CI
45
+
46
+ - Ci-ingress label on every CI ingress job, and its check ([ec549c696](https://github.com/arbicity/ARBI-frontend/commit/ec549c696))
47
+ - Forgejo-compat lint; E2E gate scope runs in the Forgejo shadow ([7df77cb7d](https://github.com/arbicity/ARBI-frontend/commit/7df77cb7d))
48
+ - **forgejo-compat:** A job whose if: is always() && !cancelled() never skips ([6ec040335](https://github.com/arbicity/ARBI-frontend/commit/6ec040335))
49
+ - **forgejo-compat:** The shadow guard alone does not make a job skippable ([c27a8a375](https://github.com/arbicity/ARBI-frontend/commit/c27a8a375))
50
+ - **forgejo-compat:** Sync the lint; call-if-grouping ([5a453d12a](https://github.com/arbicity/ARBI-frontend/commit/5a453d12a))
51
+ - **forgejo-compat:** Paren-grouping; no grouping parentheses where Forgejo re-renders ([1fa1161c1](https://github.com/arbicity/ARBI-frontend/commit/1fa1161c1))
52
+
3
53
  ## v0.5.212
4
54
 
5
55
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.211...HEAD)
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.212";
3703
+ return "0.5.214";
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.212") return;
3756
+ if (!latest || latest === "0.5.214") return;
3757
3757
  if (autoUpdate) {
3758
3758
  warn(`
3759
- Your arbi version is out of date (${"0.5.212"} \u2192 ${latest}). Updating...`);
3759
+ Your arbi version is out of date (${"0.5.214"} \u2192 ${latest}). Updating...`);
3760
3760
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3761
- showChangelog("0.5.212", latest);
3761
+ showChangelog("0.5.214", 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.212"} \u2192 ${latest}).
3766
+ Your arbi version is out of date (${"0.5.214"} \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.212") return;
3798
+ if (!cached || cached.latest === "0.5.214") return;
3799
3799
  if (!shouldShowNag(cached.latest)) return;
3800
3800
  warn(
3801
- `Your arbi version is out of date (${"0.5.212"} \u2192 ${cached.latest}). Run "arbi update".`
3801
+ `Your arbi version is out of date (${"0.5.214"} \u2192 ${cached.latest}). Run "arbi update".`
3802
3802
  );
3803
3803
  markNagShown(cached.latest);
3804
3804
  } catch {
@@ -9597,40 +9597,58 @@ function registerConversationsCommand(program2) {
9597
9597
  })()
9598
9598
  );
9599
9599
  conv.command("import <path>").description(
9600
- "Import a conversation export (ChatGPT, OpenClaw, or Claude Code) into the active workspace"
9601
- ).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(
9600
+ "Import conversation exports (ChatGPT, OpenClaw, Claude Code) into the active workspace: a file, a folder of them (e.g. ~/.claude/projects), or a .zip. Re-importing skips what is already there."
9601
+ ).option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("-s, --source <source>", "Export format: auto, chatgpt, openclaw, claude_code", "auto").option("--shared", "Share the imported conversations with the workspace (cannot be undone)").option("--json", "Output as JSON").action(
9602
9602
  (path8, opts) => runAction(async () => {
9603
9603
  const { loginResult, config, workspaceId } = await resolveWorkspace(opts.workspace);
9604
- const filePath = path6.resolve(path8);
9605
- let bytes;
9604
+ let files;
9606
9605
  try {
9607
- bytes = fs7.readFileSync(filePath);
9608
- } catch {
9609
- error(`Cannot read file: ${filePath}`);
9606
+ files = await sdk.conversationsNode.listConversationExports(path8);
9607
+ } catch (err) {
9608
+ error(
9609
+ err instanceof Error && !("code" in err) ? err.message : `Cannot read ${path6.resolve(path8)}`
9610
+ );
9610
9611
  process.exit(3);
9611
9612
  }
9612
- const blob = new Blob([new Uint8Array(bytes)]);
9613
- const data = await sdk.conversations.importConversations(
9613
+ if (files.length === 0) {
9614
+ error(`No .json or .jsonl conversation exports found in ${path6.resolve(path8)}`);
9615
+ process.exit(3);
9616
+ }
9617
+ const many = files.length > 1;
9618
+ const totals = await sdk.conversationsNode.importConversationExports(
9619
+ { baseUrl: config.baseUrl, accessToken: loginResult.accessToken },
9620
+ files,
9614
9621
  {
9615
- baseUrl: config.baseUrl,
9616
- accessToken: loginResult.accessToken
9617
- },
9618
- blob,
9619
- path6.basename(filePath),
9620
- opts.source ?? "auto",
9621
- workspaceId
9622
+ source: opts.source ?? "auto",
9623
+ workspaceExtId: workspaceId,
9624
+ shared: opts.shared,
9625
+ onFile: (outcome, index, total) => {
9626
+ if (opts.json || !many) return;
9627
+ const r = outcome.result;
9628
+ const what = outcome.status === "imported" && r ? `${r.imported_count} imported` + (r.duplicate_count ? `, ${r.duplicate_count} already there` : "") : `${outcome.status}: ${outcome.reason}`;
9629
+ process.stderr.write(`[${index + 1}/${total}] ${outcome.name}: ${what}
9630
+ `);
9631
+ }
9632
+ }
9622
9633
  );
9623
9634
  if (opts.json) {
9624
- printJson(data);
9625
- return;
9626
- }
9627
- success(
9628
- `Imported ${data.imported_count} conversation(s) from ${data.source} (${data.imported_message_count} messages, ${data.skipped_node_count} skipped)`
9629
- );
9630
- for (const c of data.conversations) {
9631
- process.stdout.write(` ${ref(c.conversation_ext_id)} ${c.title}
9635
+ printJson(totals);
9636
+ } else {
9637
+ success(
9638
+ `Imported ${totals.imported} conversation(s) (${totals.messages} messages) from ${totals.files} file(s)` + (totals.duplicates ? `; ${totals.duplicates} already imported` : "") + (totals.malformedLines ? `; ${totals.malformedLines} unreadable line(s) skipped` : "")
9639
+ );
9640
+ const skipped = totals.outcomes.filter((o) => o.status === "skipped").length;
9641
+ if (skipped) warn(`${skipped} file(s) had nothing to import`);
9642
+ if (!many) {
9643
+ for (const c of totals.outcomes[0]?.result?.conversations ?? []) {
9644
+ process.stdout.write(` ${ref(c.conversation_ext_id)} ${c.title}
9632
9645
  `);
9646
+ }
9647
+ }
9633
9648
  }
9649
+ const failed = totals.outcomes.filter((o) => o.status === "failed");
9650
+ for (const o of failed) error(`${o.name}: ${o.reason}`);
9651
+ if (failed.length) process.exit(1);
9634
9652
  })()
9635
9653
  );
9636
9654
  conv.command("threads [conversation-id]").description("Show threads (interactive picker if no ID given)").action(
@@ -12771,7 +12789,7 @@ console.info = (...args) => {
12771
12789
  _origInfo(...args);
12772
12790
  };
12773
12791
  var program = new commander.Command();
12774
- program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.212").showHelpAfterError(true).showSuggestionAfterError(true);
12792
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.214").showHelpAfterError(true).showSuggestionAfterError(true);
12775
12793
  registerConfigCommand(program);
12776
12794
  registerLoginCommand(program);
12777
12795
  registerRegisterCommand(program);