@arbidocs/cli 0.5.207 → 0.5.208
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 +4 -49
- package/dist/index.js +48 -8
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,61 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v0.5.
|
|
3
|
+
## v0.5.208
|
|
4
4
|
|
|
5
|
-
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.
|
|
6
|
-
|
|
7
|
-
### 🚀 Enhancements
|
|
8
|
-
|
|
9
|
-
- The workspace Dashboard is a dashboard of blocks, read as sections by the page renderer ([91d712809](https://github.com/arbicity/ARBI-frontend/commit/91d712809))
|
|
10
|
-
- A workspace's own Dashboard (pages.home) for every member; Customise for developers ([0dbac8fb8](https://github.com/arbicity/ARBI-frontend/commit/0dbac8fb8))
|
|
11
|
-
- **blocks:** ⚠️ Model picker with Standard/Premium, Fast/Wise and Cost/Speed/Intelligence stars ([c40ddd0d5](https://github.com/arbicity/ARBI-frontend/commit/c40ddd0d5))
|
|
12
|
-
- **blocks:** Picks save chat_model/chat_mode; third_party_models opt-in; ratings from the backend ([e4e4b2963](https://github.com/arbicity/ARBI-frontend/commit/e4e4b2963))
|
|
13
|
-
- **blocks:** Autoselect pinned at the top of the Settings model table ([1f072f575](https://github.com/arbicity/ARBI-frontend/commit/1f072f575))
|
|
14
|
-
- **blocks:** ⚠️ One Fast/Wise toggle; ratings per mode from the generated schema ([4b95fc2da](https://github.com/arbicity/ARBI-frontend/commit/4b95fc2da))
|
|
15
|
-
- One Fast/Wise toggle: chat_mode, and it flips a running turn (useChatMode) ([b912f97bb](https://github.com/arbicity/ARBI-frontend/commit/b912f97bb))
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.207...HEAD)
|
|
16
6
|
|
|
17
7
|
### 🩹 Fixes
|
|
18
8
|
|
|
19
|
-
-
|
|
20
|
-
- In the dashboard editor, the Recent caption is one row tall and block controls clear Add/Ask ([bded0ca4a](https://github.com/arbicity/ARBI-frontend/commit/bded0ca4a))
|
|
21
|
-
- **blocks:** A model with no price class is never Standard; developers see it apart ([460351cc4](https://github.com/arbicity/ARBI-frontend/commit/460351cc4))
|
|
22
|
-
- A Fast/Wise flip (or Pause) sent as the turn starts reaches the run ([f589092dd](https://github.com/arbicity/ARBI-frontend/commit/f589092dd))
|
|
23
|
-
- **files:** Number annotation columns show their numbers, not "Invalid Number" ([e4927f7b4](https://github.com/arbicity/ARBI-frontend/commit/e4927f7b4))
|
|
24
|
-
- **e2e:** URL upload fetches a public test PDF; tags-page opens a thread by its title; a single tag chip has no Clear all ([6b38fc99d](https://github.com/arbicity/ARBI-frontend/commit/6b38fc99d))
|
|
25
|
-
- **tags:** Included filter chips show their names; a filtered empty table says nothing matches ([a11e5d3e5](https://github.com/arbicity/ARBI-frontend/commit/a11e5d3e5))
|
|
26
|
-
|
|
27
|
-
### 🏡 Chore
|
|
28
|
-
|
|
29
|
-
- Schema regenerated from the live backend (124ff58da, pages.home) ([a88a66f43](https://github.com/arbicity/ARBI-frontend/commit/a88a66f43))
|
|
30
|
-
|
|
31
|
-
### ✅ Tests
|
|
32
|
-
|
|
33
|
-
- Drop an unused eslint-disable directive ([1146afc72](https://github.com/arbicity/ARBI-frontend/commit/1146afc72))
|
|
34
|
-
- **e2e:** Model picker against a live backend; Settings Autoselect label and class ([fcea03e66](https://github.com/arbicity/ARBI-frontend/commit/fcea03e66))
|
|
35
|
-
- **e2e:** Wait for the picker's models before the phone screenshot ([74c2ec26d](https://github.com/arbicity/ARBI-frontend/commit/74c2ec26d))
|
|
36
|
-
- Settings factory carries third_party_models, chat_model and chat_mode ([fa5f1ecf8](https://github.com/arbicity/ARBI-frontend/commit/fa5f1ecf8))
|
|
37
|
-
- **e2e:** Stale specs follow #2649 — Facts is a built-in database (no sidebar row), the list holds it, the filter count sits in the search field ([#2649](https://github.com/arbicity/ARBI-frontend/issues/2649))
|
|
38
|
-
- **e2e:** Flipping Fast/Wise mid-turn saves chat_mode and flips the running turn ([5ac695afc](https://github.com/arbicity/ARBI-frontend/commit/5ac695afc))
|
|
39
|
-
- **e2e:** The Facts specs follow Facts as the workspace database (#2674/#4225) ([#2674](https://github.com/arbicity/ARBI-frontend/issues/2674), [#4225](https://github.com/arbicity/ARBI-frontend/issues/4225))
|
|
40
|
-
- **e2e:** Facts-full-demo curates with /facts (renamed from /notes) and waits for it in the Facts database ([121ca0cb2](https://github.com/arbicity/ARBI-frontend/commit/121ca0cb2))
|
|
41
|
-
- **cli:** Doc upload-url reads E2E_URL_UPLOAD_PDF and retries once on a network failure ([449a3c9cb](https://github.com/arbicity/ARBI-frontend/commit/449a3c9cb))
|
|
42
|
-
- Keep the documents e2e's PDF default; the URL must be external ([6019a04b4](https://github.com/arbicity/ARBI-frontend/commit/6019a04b4))
|
|
43
|
-
- **sdk:** Integration tests retry verify-ci's brief 404 before the record lands ([be3ec7b2d](https://github.com/arbicity/ARBI-frontend/commit/be3ec7b2d))
|
|
44
|
-
|
|
45
|
-
### 🎨 Styles
|
|
46
|
-
|
|
47
|
-
- Prettier ([feb7f7ddf](https://github.com/arbicity/ARBI-frontend/commit/feb7f7ddf))
|
|
9
|
+
- **cli:** `arbi ask` answers the agent's question instead of hanging 5 min ([e7e3a5870](https://github.com/arbicity/ARBI-frontend/commit/e7e3a5870))
|
|
48
10
|
|
|
49
11
|
### 🤖 CI
|
|
50
12
|
|
|
51
|
-
- **deploy:**
|
|
52
|
-
- **deploy:** SDK & CLI Integration Tests ask for ci-cpu (8 GiB behind the CI ingress: Kata cpu set, 104's cpu VMs) ([da2af32aa](https://github.com/arbicity/ARBI-frontend/commit/da2af32aa))
|
|
53
|
-
- **deploy:** The image bump no longer waits on other runs or the integration tests ([03020c503](https://github.com/arbicity/ARBI-frontend/commit/03020c503))
|
|
54
|
-
|
|
55
|
-
#### ⚠️ Breaking Changes
|
|
56
|
-
|
|
57
|
-
- **blocks:** ⚠️ Model picker with Standard/Premium, Fast/Wise and Cost/Speed/Intelligence stars ([c40ddd0d5](https://github.com/arbicity/ARBI-frontend/commit/c40ddd0d5))
|
|
58
|
-
- **blocks:** ⚠️ One Fast/Wise toggle; ratings per mode from the generated schema ([4b95fc2da](https://github.com/arbicity/ARBI-frontend/commit/4b95fc2da))
|
|
13
|
+
- **deploy:** Frontend bumps follow commit order, not finish order or PR number ([0e3790c43](https://github.com/arbicity/ARBI-frontend/commit/0e3790c43))
|
|
59
14
|
|
|
60
15
|
## v0.5.206
|
|
61
16
|
|
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.208";
|
|
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.208") 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.208"} \u2192 ${latest}). Updating...`);
|
|
3760
3760
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3761
|
-
showChangelog("0.5.
|
|
3761
|
+
showChangelog("0.5.208", 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.208"} \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.208") 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.208"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3802
3802
|
);
|
|
3803
3803
|
markNagShown(cached.latest);
|
|
3804
3804
|
} catch {
|
|
@@ -7776,6 +7776,7 @@ function registerSignaturesCommand(program2) {
|
|
|
7776
7776
|
);
|
|
7777
7777
|
}
|
|
7778
7778
|
}
|
|
7779
|
+
init_prompts();
|
|
7779
7780
|
function addAskOptions(command) {
|
|
7780
7781
|
return command.option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("-c, --continue <msg-id>", "Continue from a specific message ID").option("--config <id>", "Config ext_id to use (e.g. cfg-xxx)").option("-n, --new", "Start a new conversation (ignore previous context)").option("-b, --background", "Submit as background task \u2014 fetch result with `arbi task result`").option("-q, --quiet", "Suppress agent steps and tool calls").option("--json", "Output in JSON format (background mode only)").option(
|
|
7781
7782
|
"--raw-citations",
|
|
@@ -7787,6 +7788,26 @@ function registerAskCommand(program2) {
|
|
|
7787
7788
|
program2.command("ask <question...>").description("Ask the RAG assistant a question (no quotes needed)")
|
|
7788
7789
|
).action((words, opts) => runAsk(words.join(" "), opts));
|
|
7789
7790
|
}
|
|
7791
|
+
var NO_USER_ANSWER = "No one can answer questions here (non-interactive command line). Proceed with your best judgement and say what you assumed.";
|
|
7792
|
+
async function answerAgentQuestion(arbi, assistantMessageExtId, request, interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY)) {
|
|
7793
|
+
let answer;
|
|
7794
|
+
if (interactive) {
|
|
7795
|
+
answer = request.options.length ? await promptSelect(
|
|
7796
|
+
request.question,
|
|
7797
|
+
request.options.map((o) => ({ name: o, value: o }))
|
|
7798
|
+
) : await promptInput(request.question);
|
|
7799
|
+
} else {
|
|
7800
|
+
console.error(chalk2__default.default.yellow(`
|
|
7801
|
+
[ARBI] The agent asks: ${request.question}`));
|
|
7802
|
+
for (const option of request.options) console.error(chalk2__default.default.dim(` - ${option}`));
|
|
7803
|
+
console.error(
|
|
7804
|
+
chalk2__default.default.dim("[ARBI] No terminal to answer on: the agent proceeds on its own judgement.")
|
|
7805
|
+
);
|
|
7806
|
+
answer = NO_USER_ANSWER;
|
|
7807
|
+
}
|
|
7808
|
+
await sdk.assistant.interject(arbi, assistantMessageExtId, answer);
|
|
7809
|
+
return answer;
|
|
7810
|
+
}
|
|
7790
7811
|
function runAsk(question, opts) {
|
|
7791
7812
|
return runAction(async () => {
|
|
7792
7813
|
if (opts.json && !opts.background) {
|
|
@@ -7867,6 +7888,8 @@ function runAsk(question, opts) {
|
|
|
7867
7888
|
const verbose = opts.quiet === true ? false : getConfig()?.verbose !== false;
|
|
7868
7889
|
let elapsedTime = null;
|
|
7869
7890
|
let firstToken = true;
|
|
7891
|
+
let assistantMessageExtId = "";
|
|
7892
|
+
const answers = [];
|
|
7870
7893
|
let lastItemId = null;
|
|
7871
7894
|
let lastStepLabel = "";
|
|
7872
7895
|
let buf = "";
|
|
@@ -7879,6 +7902,22 @@ function runAsk(question, opts) {
|
|
|
7879
7902
|
if (out) process.stdout.write(out);
|
|
7880
7903
|
};
|
|
7881
7904
|
const result = await sdk.streamSSE(res, {
|
|
7905
|
+
onStreamStart: (ev) => {
|
|
7906
|
+
assistantMessageExtId = ev.assistant_message_ext_id;
|
|
7907
|
+
},
|
|
7908
|
+
onUserInputRequest: (request) => {
|
|
7909
|
+
flush(true);
|
|
7910
|
+
answers.push(
|
|
7911
|
+
answerAgentQuestion(arbi, assistantMessageExtId, request).catch(
|
|
7912
|
+
(err) => console.error(
|
|
7913
|
+
chalk2__default.default.red(
|
|
7914
|
+
`
|
|
7915
|
+
Could not answer the agent: ${err instanceof Error ? err.message : String(err)}`
|
|
7916
|
+
)
|
|
7917
|
+
)
|
|
7918
|
+
)
|
|
7919
|
+
);
|
|
7920
|
+
},
|
|
7882
7921
|
onToken: (content) => {
|
|
7883
7922
|
if (firstToken) {
|
|
7884
7923
|
process.stderr.write(chalk2__default.default.dim("[ARBI] "));
|
|
@@ -7909,6 +7948,7 @@ function runAsk(question, opts) {
|
|
|
7909
7948
|
onError: (message) => console.error(chalk2__default.default.red(`
|
|
7910
7949
|
Error: ${message}`))
|
|
7911
7950
|
});
|
|
7951
|
+
await Promise.all(answers);
|
|
7912
7952
|
if (firstToken && result.text) {
|
|
7913
7953
|
process.stderr.write(chalk2__default.default.dim("[ARBI] "));
|
|
7914
7954
|
firstToken = false;
|
|
@@ -12731,7 +12771,7 @@ console.info = (...args) => {
|
|
|
12731
12771
|
_origInfo(...args);
|
|
12732
12772
|
};
|
|
12733
12773
|
var program = new commander.Command();
|
|
12734
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.
|
|
12774
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.208").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
12735
12775
|
registerConfigCommand(program);
|
|
12736
12776
|
registerLoginCommand(program);
|
|
12737
12777
|
registerRegisterCommand(program);
|