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