@arbidocs/cli 0.5.212 → 0.5.213
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 +33 -0
- package/dist/index.js +50 -32
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.5.213
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.212...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🚀 Enhancements
|
|
8
|
+
|
|
9
|
+
- **cli:** Import conversation exports from a folder or a .zip ([#2728](https://github.com/arbicity/ARBI-frontend/pull/2728))
|
|
10
|
+
|
|
11
|
+
### 🩹 Fixes
|
|
12
|
+
|
|
13
|
+
- **chat:** A title that arrives while the person types never replaces what they typed ([395510942](https://github.com/arbicity/ARBI-frontend/commit/395510942))
|
|
14
|
+
- **docker:** Pin the build stage's V8 heap at 3072 MB ([185a2dec5](https://github.com/arbicity/ARBI-frontend/commit/185a2dec5))
|
|
15
|
+
|
|
16
|
+
### 🏡 Chore
|
|
17
|
+
|
|
18
|
+
- Release v0.5.212 [skip ci] ([af0ae6596](https://github.com/arbicity/ARBI-frontend/commit/af0ae6596))
|
|
19
|
+
|
|
20
|
+
### ✅ Tests
|
|
21
|
+
|
|
22
|
+
- **e2e:** Agent-platform's database gives its columns and itself an instruction ([5ff3a98a6](https://github.com/arbicity/ARBI-frontend/commit/5ff3a98a6))
|
|
23
|
+
- **e2e:** Native command helpers give the owner's yes when a command needs it ([705b7d76f](https://github.com/arbicity/ARBI-frontend/commit/705b7d76f))
|
|
24
|
+
- **e2e:** Custom Fields waits for Apply to finish before its cleanup selects the field ([c029052bf](https://github.com/arbicity/ARBI-frontend/commit/c029052bf))
|
|
25
|
+
- **e2e:** Typed native commands need no confirmation retry; keep the agent's move reply ([b7224c7ce](https://github.com/arbicity/ARBI-frontend/commit/b7224c7ce))
|
|
26
|
+
|
|
27
|
+
### 🤖 CI
|
|
28
|
+
|
|
29
|
+
- Ci-ingress label on every CI ingress job, and its check ([ec549c696](https://github.com/arbicity/ARBI-frontend/commit/ec549c696))
|
|
30
|
+
- Forgejo-compat lint; E2E gate scope runs in the Forgejo shadow ([7df77cb7d](https://github.com/arbicity/ARBI-frontend/commit/7df77cb7d))
|
|
31
|
+
- **forgejo-compat:** A job whose if: is always() && !cancelled() never skips ([6ec040335](https://github.com/arbicity/ARBI-frontend/commit/6ec040335))
|
|
32
|
+
- **forgejo-compat:** The shadow guard alone does not make a job skippable ([c27a8a375](https://github.com/arbicity/ARBI-frontend/commit/c27a8a375))
|
|
33
|
+
- **forgejo-compat:** Sync the lint; call-if-grouping ([5a453d12a](https://github.com/arbicity/ARBI-frontend/commit/5a453d12a))
|
|
34
|
+
- **forgejo-compat:** Paren-grouping; no grouping parentheses where Forgejo re-renders ([1fa1161c1](https://github.com/arbicity/ARBI-frontend/commit/1fa1161c1))
|
|
35
|
+
|
|
3
36
|
## v0.5.212
|
|
4
37
|
|
|
5
38
|
[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.
|
|
3703
|
+
return "0.5.213";
|
|
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.
|
|
3756
|
+
if (!latest || latest === "0.5.213") return;
|
|
3757
3757
|
if (autoUpdate) {
|
|
3758
3758
|
warn(`
|
|
3759
|
-
Your arbi version is out of date (${"0.5.
|
|
3759
|
+
Your arbi version is out of date (${"0.5.213"} \u2192 ${latest}). Updating...`);
|
|
3760
3760
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3761
|
-
showChangelog("0.5.
|
|
3761
|
+
showChangelog("0.5.213", 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.
|
|
3766
|
+
Your arbi version is out of date (${"0.5.213"} \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.
|
|
3798
|
+
if (!cached || cached.latest === "0.5.213") return;
|
|
3799
3799
|
if (!shouldShowNag(cached.latest)) return;
|
|
3800
3800
|
warn(
|
|
3801
|
-
`Your arbi version is out of date (${"0.5.
|
|
3801
|
+
`Your arbi version is out of date (${"0.5.213"} \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
|
|
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
|
-
|
|
9605
|
-
let bytes;
|
|
9604
|
+
let files;
|
|
9606
9605
|
try {
|
|
9607
|
-
|
|
9608
|
-
} catch {
|
|
9609
|
-
error(
|
|
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
|
-
|
|
9613
|
-
|
|
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
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
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(
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
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.
|
|
12792
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.213").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
12775
12793
|
registerConfigCommand(program);
|
|
12776
12794
|
registerLoginCommand(program);
|
|
12777
12795
|
registerRegisterCommand(program);
|