@arbidocs/cli 0.3.6 → 0.3.8
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 +124 -0
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v0.3.8
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbitrationcity/ARBI-frontend/compare/v0.3.7...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- Bypass version cache on explicit arbi update ([570d013d](https://github.com/arbitrationcity/ARBI-frontend/commit/570d013d))
|
|
10
|
+
|
|
11
|
+
### ❤️ Contributors
|
|
12
|
+
|
|
13
|
+
- Dmitri Evseev <dmitri.evseev@arbi.city>
|
|
14
|
+
|
|
15
|
+
## v0.3.7
|
|
16
|
+
|
|
17
|
+
[compare changes](https://github.com/arbitrationcity/ARBI-frontend/compare/v0.3.6...HEAD)
|
|
18
|
+
|
|
19
|
+
### 🩹 Fixes
|
|
20
|
+
|
|
21
|
+
- Bundle CHANGELOG.md in CLI package for offline changelog display ([18d44cfa](https://github.com/arbitrationcity/ARBI-frontend/commit/18d44cfa))
|
|
22
|
+
|
|
23
|
+
### ❤️ Contributors
|
|
24
|
+
|
|
25
|
+
- Dmitri Evseev <dmitri.evseev@arbi.city>
|
|
26
|
+
|
|
27
|
+
## v0.3.6
|
|
28
|
+
|
|
29
|
+
[compare changes](https://github.com/arbitrationcity/ARBI-frontend/compare/v0.3.5...HEAD)
|
|
30
|
+
|
|
31
|
+
### 🚀 Enhancements
|
|
32
|
+
|
|
33
|
+
- Unify artifacts into document viewer ([#385](https://github.com/arbitrationcity/ARBI-frontend/pull/385))
|
|
34
|
+
- Surface agent focus text and backend elapsed time in topline ([#386](https://github.com/arbitrationcity/ARBI-frontend/pull/386))
|
|
35
|
+
- Enable interjection — send messages while agent streams ([#387](https://github.com/arbitrationcity/ARBI-frontend/pull/387), [#388](https://github.com/arbitrationcity/ARBI-frontend/pull/388))
|
|
36
|
+
|
|
37
|
+
### 🏡 Chore
|
|
38
|
+
|
|
39
|
+
- Update OpenAPI schema — add PlanningLLM, VisionLLM configs ([03f9183a](https://github.com/arbitrationcity/ARBI-frontend/commit/03f9183a))
|
|
40
|
+
|
|
41
|
+
### ❤️ Contributors
|
|
42
|
+
|
|
43
|
+
- Dmitri Evseev ([@arbi-dev](https://github.com/arbi-dev))
|
|
44
|
+
|
|
45
|
+
## v0.3.5
|
|
46
|
+
|
|
47
|
+
[compare changes](https://github.com/arbitrationcity/ARBI-frontend/compare/v0.3.4...HEAD)
|
|
48
|
+
|
|
49
|
+
### 🚀 Enhancements
|
|
50
|
+
|
|
51
|
+
- Add ANSI colors to CLI + DRY WebSocket formatting ([#380](https://github.com/arbitrationcity/ARBI-frontend/pull/380), [#381](https://github.com/arbitrationcity/ARBI-frontend/pull/381))
|
|
52
|
+
|
|
53
|
+
### 🩹 Fixes
|
|
54
|
+
|
|
55
|
+
- Remove "type": "module" from CLI/TUI packages ([e4b58d05](https://github.com/arbitrationcity/ARBI-frontend/commit/e4b58d05))
|
|
56
|
+
|
|
57
|
+
### ❤️ Contributors
|
|
58
|
+
|
|
59
|
+
- Dmitri Evseev ([@arbi-dev](https://github.com/arbi-dev))
|
|
60
|
+
|
|
61
|
+
## v0.3.4
|
|
62
|
+
|
|
63
|
+
[compare changes](https://github.com/arbitrationcity/ARBI-frontend/compare/v0.3.3...HEAD)
|
|
64
|
+
|
|
65
|
+
### 🚀 Enhancements
|
|
66
|
+
|
|
67
|
+
- Add high-level Arbi class, React hooks package, and examples ([a5f93a79](https://github.com/arbitrationcity/ARBI-frontend/commit/a5f93a79))
|
|
68
|
+
- Add requestVerification() and register() to Arbi class ([c10db0c5](https://github.com/arbitrationcity/ARBI-frontend/commit/c10db0c5))
|
|
69
|
+
- Add arbi update command + inject version at build time ([ddddfa58](https://github.com/arbitrationcity/ARBI-frontend/commit/ddddfa58))
|
|
70
|
+
- Warn when CLI is outdated on login and status ([5eb28d44](https://github.com/arbitrationcity/ARBI-frontend/commit/5eb28d44))
|
|
71
|
+
- Auto-update on login + clearer version warnings ([fda59831](https://github.com/arbitrationcity/ARBI-frontend/commit/fda59831))
|
|
72
|
+
- Add fetch retry for ECONNREFUSED + scriptable register command ([4e09d6be](https://github.com/arbitrationcity/ARBI-frontend/commit/4e09d6be))
|
|
73
|
+
- Add changelog generation to publish script ([cc7e7b9f](https://github.com/arbitrationcity/ARBI-frontend/commit/cc7e7b9f))
|
|
74
|
+
- Show changelog on update and auto-update ([b89d0c03](https://github.com/arbitrationcity/ARBI-frontend/commit/b89d0c03))
|
|
75
|
+
- Auto-create GitHub release + push in publish script ([9f31378c](https://github.com/arbitrationcity/ARBI-frontend/commit/9f31378c))
|
|
76
|
+
|
|
77
|
+
### 🩹 Fixes
|
|
78
|
+
|
|
79
|
+
- Zero key material on logout before clearing references ([c3f785fb](https://github.com/arbitrationcity/ARBI-frontend/commit/c3f785fb))
|
|
80
|
+
- Move react-query to dependency, add example links to READMEs ([9643d497](https://github.com/arbitrationcity/ARBI-frontend/commit/9643d497))
|
|
81
|
+
- Unify all @arbidocs packages to v0.3.0 + fix hello-world example ([90dd5b8b](https://github.com/arbitrationcity/ARBI-frontend/commit/90dd5b8b))
|
|
82
|
+
- Publish script smoke test checks correct dist files ([e9c7f51a](https://github.com/arbitrationcity/ARBI-frontend/commit/e9c7f51a))
|
|
83
|
+
- Only show version warning on login, hint on errors ([682070ee](https://github.com/arbitrationcity/ARBI-frontend/commit/682070ee))
|
|
84
|
+
- Share changelog across npm + GitHub ([244274f3](https://github.com/arbitrationcity/ARBI-frontend/commit/244274f3))
|
|
85
|
+
- Preserve changelog header when prepending new releases ([bb7c94da](https://github.com/arbitrationcity/ARBI-frontend/commit/bb7c94da))
|
|
86
|
+
|
|
87
|
+
### 💅 Refactors
|
|
88
|
+
|
|
89
|
+
- Arbi update auto replaces config auto-update ([682b1831](https://github.com/arbitrationcity/ARBI-frontend/commit/682b1831))
|
|
90
|
+
|
|
91
|
+
### 📖 Documentation
|
|
92
|
+
|
|
93
|
+
- Add READMEs for @arbidocs/core and @arbidocs/react packages ([8041100d](https://github.com/arbitrationcity/ARBI-frontend/commit/8041100d))
|
|
94
|
+
|
|
95
|
+
### 🏡 Chore
|
|
96
|
+
|
|
97
|
+
- Bump @arbidocs/core to 0.2.0 and publish @arbidocs/react 0.1.0 ([4a116d5b](https://github.com/arbitrationcity/ARBI-frontend/commit/4a116d5b))
|
|
98
|
+
- Bump all @arbidocs packages to v0.3.1 ([4ba71fc6](https://github.com/arbitrationcity/ARBI-frontend/commit/4ba71fc6))
|
|
99
|
+
- Bump all @arbidocs packages to v0.3.2 ([155a5ef9](https://github.com/arbitrationcity/ARBI-frontend/commit/155a5ef9))
|
|
100
|
+
- Release v0.3.3 ([ef2a3ab4](https://github.com/arbitrationcity/ARBI-frontend/commit/ef2a3ab4))
|
|
101
|
+
|
|
102
|
+
### ✅ Tests
|
|
103
|
+
|
|
104
|
+
- Add unit tests for Arbi class and React package ([ca5d72e4](https://github.com/arbitrationcity/ARBI-frontend/commit/ca5d72e4))
|
|
105
|
+
|
|
106
|
+
### ❤️ Contributors
|
|
107
|
+
|
|
108
|
+
- Dmitri Evseev <dmitri.evseev@arbi.city>
|
|
109
|
+
|
|
110
|
+
## v0.3.3
|
|
111
|
+
|
|
112
|
+
[compare changes](https://github.com/arbitrationcity/ARBI-frontend/compare/v0.3.2...HEAD)
|
|
113
|
+
|
|
114
|
+
### 🚀 Enhancements
|
|
115
|
+
|
|
116
|
+
- Add fetch retry for ECONNREFUSED + scriptable register command ([4e09d6be](https://github.com/arbitrationcity/ARBI-frontend/commit/4e09d6be))
|
|
117
|
+
- Add changelog generation to publish script ([cc7e7b9f](https://github.com/arbitrationcity/ARBI-frontend/commit/cc7e7b9f))
|
|
118
|
+
- Show changelog on update and auto-update ([b89d0c03](https://github.com/arbitrationcity/ARBI-frontend/commit/b89d0c03))
|
|
119
|
+
- Auto-create GitHub release + push in publish script ([9f31378c](https://github.com/arbitrationcity/ARBI-frontend/commit/9f31378c))
|
|
120
|
+
|
|
121
|
+
### 🩹 Fixes
|
|
122
|
+
|
|
123
|
+
- Share changelog across npm + GitHub ([244274f3](https://github.com/arbitrationcity/ARBI-frontend/commit/244274f3))
|
|
124
|
+
- Preserve changelog header when prepending new releases ([bb7c94da](https://github.com/arbitrationcity/ARBI-frontend/commit/bb7c94da))
|
package/dist/index.js
CHANGED
|
@@ -3467,7 +3467,6 @@ async function promptConfirm(message, defaultValue = true) {
|
|
|
3467
3467
|
}
|
|
3468
3468
|
var CACHE_FILE = path__default.default.join(os__default.default.homedir(), ".arbi", "version-cache.json");
|
|
3469
3469
|
var CACHE_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
3470
|
-
var CHANGELOG_URL = "https://raw.githubusercontent.com/arbitrationcity/ARBI-frontend/refs/tags/{tag}/CHANGELOG.md";
|
|
3471
3470
|
function readCache() {
|
|
3472
3471
|
try {
|
|
3473
3472
|
const data = JSON.parse(fs__default.default.readFileSync(CACHE_FILE, "utf8"));
|
|
@@ -3486,9 +3485,11 @@ function writeCache(latest) {
|
|
|
3486
3485
|
} catch {
|
|
3487
3486
|
}
|
|
3488
3487
|
}
|
|
3489
|
-
function getLatestVersion() {
|
|
3490
|
-
|
|
3491
|
-
|
|
3488
|
+
function getLatestVersion(skipCache = false) {
|
|
3489
|
+
if (!skipCache) {
|
|
3490
|
+
const cached = readCache();
|
|
3491
|
+
if (cached) return cached.latest;
|
|
3492
|
+
}
|
|
3492
3493
|
try {
|
|
3493
3494
|
const latest = child_process.execSync("npm view @arbidocs/cli version 2>/dev/null", {
|
|
3494
3495
|
encoding: "utf8",
|
|
@@ -3501,14 +3502,13 @@ function getLatestVersion() {
|
|
|
3501
3502
|
}
|
|
3502
3503
|
}
|
|
3503
3504
|
function getCurrentVersion() {
|
|
3504
|
-
return "0.3.
|
|
3505
|
+
return "0.3.8";
|
|
3505
3506
|
}
|
|
3506
|
-
|
|
3507
|
+
function readChangelog(fromVersion, toVersion) {
|
|
3507
3508
|
try {
|
|
3508
|
-
const
|
|
3509
|
-
const
|
|
3510
|
-
|
|
3511
|
-
const text = await res.text();
|
|
3509
|
+
const globalRoot = child_process.execSync("npm root -g", { encoding: "utf8", timeout: 5e3 }).trim();
|
|
3510
|
+
const changelogPath = path__default.default.join(globalRoot, "@arbidocs", "cli", "CHANGELOG.md");
|
|
3511
|
+
const text = fs__default.default.readFileSync(changelogPath, "utf8");
|
|
3512
3512
|
return extractSections(text, fromVersion, toVersion);
|
|
3513
3513
|
} catch {
|
|
3514
3514
|
return null;
|
|
@@ -3536,8 +3536,8 @@ function extractSections(changelog, fromVersion, toVersion) {
|
|
|
3536
3536
|
const result = sections.join("\n").trim();
|
|
3537
3537
|
return result || null;
|
|
3538
3538
|
}
|
|
3539
|
-
|
|
3540
|
-
const changelog =
|
|
3539
|
+
function showChangelog(fromVersion, toVersion) {
|
|
3540
|
+
const changelog = readChangelog(fromVersion, toVersion);
|
|
3541
3541
|
if (changelog) {
|
|
3542
3542
|
console.log("\n" + changelog);
|
|
3543
3543
|
}
|
|
@@ -3545,17 +3545,17 @@ async function showChangelog(fromVersion, toVersion) {
|
|
|
3545
3545
|
async function checkForUpdates(autoUpdate) {
|
|
3546
3546
|
try {
|
|
3547
3547
|
const latest = getLatestVersion();
|
|
3548
|
-
if (!latest || latest === "0.3.
|
|
3548
|
+
if (!latest || latest === "0.3.8") return;
|
|
3549
3549
|
if (autoUpdate) {
|
|
3550
3550
|
warn(`
|
|
3551
|
-
Your arbi version is out of date (${"0.3.
|
|
3552
|
-
await showChangelog("0.3.6", latest);
|
|
3551
|
+
Your arbi version is out of date (${"0.3.8"} \u2192 ${latest}). Updating...`);
|
|
3553
3552
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3553
|
+
showChangelog("0.3.8", latest);
|
|
3554
3554
|
console.log(`Updated to ${latest}.`);
|
|
3555
3555
|
} else {
|
|
3556
3556
|
warn(
|
|
3557
3557
|
`
|
|
3558
|
-
Your arbi version is out of date (${"0.3.
|
|
3558
|
+
Your arbi version is out of date (${"0.3.8"} \u2192 ${latest}).
|
|
3559
3559
|
Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
3560
3560
|
);
|
|
3561
3561
|
}
|
|
@@ -3565,9 +3565,9 @@ Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
|
3565
3565
|
function hintUpdateOnError() {
|
|
3566
3566
|
try {
|
|
3567
3567
|
const cached = readCache();
|
|
3568
|
-
if (cached && cached.latest !== "0.3.
|
|
3568
|
+
if (cached && cached.latest !== "0.3.8") {
|
|
3569
3569
|
warn(
|
|
3570
|
-
`Your arbi version is out of date (${"0.3.
|
|
3570
|
+
`Your arbi version is out of date (${"0.3.8"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3571
3571
|
);
|
|
3572
3572
|
}
|
|
3573
3573
|
} catch {
|
|
@@ -5245,20 +5245,20 @@ function registerTuiCommand(program2) {
|
|
|
5245
5245
|
});
|
|
5246
5246
|
}
|
|
5247
5247
|
function registerUpdateCommand(program2) {
|
|
5248
|
-
const update = program2.command("update").description("Update ARBI CLI to the latest version").action(
|
|
5248
|
+
const update = program2.command("update").description("Update ARBI CLI to the latest version").action(() => {
|
|
5249
5249
|
const current = getCurrentVersion();
|
|
5250
5250
|
label("Current version:", current);
|
|
5251
5251
|
console.log("Checking for updates...\n");
|
|
5252
5252
|
try {
|
|
5253
|
-
const latest = getLatestVersion() || child_process.execSync("npm view @arbidocs/cli version", { encoding: "utf8" }).trim();
|
|
5253
|
+
const latest = getLatestVersion(true) || child_process.execSync("npm view @arbidocs/cli version", { encoding: "utf8" }).trim();
|
|
5254
5254
|
if (latest === current) {
|
|
5255
5255
|
success("Already up to date.");
|
|
5256
5256
|
return;
|
|
5257
5257
|
}
|
|
5258
5258
|
success(`New version available: ${latest}`);
|
|
5259
|
-
await showChangelog(current, latest);
|
|
5260
5259
|
console.log("\nUpdating...\n");
|
|
5261
5260
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
5261
|
+
showChangelog(current, latest);
|
|
5262
5262
|
success(`
|
|
5263
5263
|
Updated to ${latest}.`);
|
|
5264
5264
|
} catch (err) {
|
|
@@ -5284,7 +5284,7 @@ console.info = (...args) => {
|
|
|
5284
5284
|
_origInfo(...args);
|
|
5285
5285
|
};
|
|
5286
5286
|
var program = new commander.Command();
|
|
5287
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.
|
|
5287
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.8");
|
|
5288
5288
|
registerConfigCommand(program);
|
|
5289
5289
|
registerLoginCommand(program);
|
|
5290
5290
|
registerRegisterCommand(program);
|