@arbidocs/cli 0.5.207 → 0.5.209
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 +50 -0
- package/dist/index.js +48 -8
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.5.209
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.208...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🚀 Enhancements
|
|
8
|
+
|
|
9
|
+
- **workflows:** An agent step's goal and criteria are real step fields ([eed8a46b7](https://github.com/arbicity/ARBI-frontend/commit/eed8a46b7))
|
|
10
|
+
|
|
11
|
+
### 🩹 Fixes
|
|
12
|
+
|
|
13
|
+
- **threads:** A workflow run names its workflow once in the thread header ([4c4834987](https://github.com/arbicity/ARBI-frontend/commit/4c4834987))
|
|
14
|
+
- **chat:** A mid-turn Fast/Wise flip stays shown until the server confirms it ([5ce4cae94](https://github.com/arbicity/ARBI-frontend/commit/5ce4cae94))
|
|
15
|
+
- **databases:** Every built-in database is marked and kept, as the server says ([5a7809598](https://github.com/arbicity/ARBI-frontend/commit/5a7809598))
|
|
16
|
+
- **blocks:** Word-placed signature fields are placed even when the editor's inputs change mid-request ([72e39bf01](https://github.com/arbicity/ARBI-frontend/commit/72e39bf01))
|
|
17
|
+
|
|
18
|
+
### 🏡 Chore
|
|
19
|
+
|
|
20
|
+
- Release v0.5.207 [skip ci] ([1f0a82f88](https://github.com/arbicity/ARBI-frontend/commit/1f0a82f88))
|
|
21
|
+
- Release v0.5.208 [skip ci] ([784c32988](https://github.com/arbicity/ARBI-frontend/commit/784c32988))
|
|
22
|
+
|
|
23
|
+
### ✅ Tests
|
|
24
|
+
|
|
25
|
+
- **e2e:** Native ring_call asks first, then the yes covers that call ([ac4825ae2](https://github.com/arbicity/ARBI-frontend/commit/ac4825ae2))
|
|
26
|
+
|
|
27
|
+
### 🤖 CI
|
|
28
|
+
|
|
29
|
+
- Build the workspace packages once per content; shard the blocks suite ([12ffe44f4](https://github.com/arbicity/ARBI-frontend/commit/12ffe44f4))
|
|
30
|
+
- Validate restores blocks' dist too (the app tests' typecheck resolves it) ([f17a313bc](https://github.com/arbicity/ARBI-frontend/commit/f17a313bc))
|
|
31
|
+
- Small coordination jobs run on the tiny runner class ([e3bcfaa39](https://github.com/arbicity/ARBI-frontend/commit/e3bcfaa39))
|
|
32
|
+
- **deploy:** Integration job fails when an Assistant's credentials were not written ([2b6862e1a](https://github.com/arbicity/ARBI-frontend/commit/2b6862e1a))
|
|
33
|
+
- Back to the @main reusable workflows; the shard check runs on the tiny class ([0025fed0d](https://github.com/arbicity/ARBI-frontend/commit/0025fed0d))
|
|
34
|
+
- **deploy:** Leave an in-flight ARBI bump to merge instead of replacing it ([ce3d13f95](https://github.com/arbicity/ARBI-frontend/commit/ce3d13f95))
|
|
35
|
+
- **deploy:** A deferred ARBI bump is opened as soon as the open one merges ([c982b70f5](https://github.com/arbicity/ARBI-frontend/commit/c982b70f5))
|
|
36
|
+
- The React suite runs beside the other workspace suites ([2b089c3b8](https://github.com/arbicity/ARBI-frontend/commit/2b089c3b8))
|
|
37
|
+
- Test always restores the core packages' dist ([f57bc37d3](https://github.com/arbicity/ARBI-frontend/commit/f57bc37d3))
|
|
38
|
+
- Back to the @main reusable workflow ([3b22020bd](https://github.com/arbicity/ARBI-frontend/commit/3b22020bd))
|
|
39
|
+
- A PR runs only the CPU jobs its files reach ([63cc2286b](https://github.com/arbicity/ARBI-frontend/commit/63cc2286b))
|
|
40
|
+
|
|
41
|
+
## v0.5.208
|
|
42
|
+
|
|
43
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.207...HEAD)
|
|
44
|
+
|
|
45
|
+
### 🩹 Fixes
|
|
46
|
+
|
|
47
|
+
- **cli:** `arbi ask` answers the agent's question instead of hanging 5 min ([e7e3a5870](https://github.com/arbicity/ARBI-frontend/commit/e7e3a5870))
|
|
48
|
+
|
|
49
|
+
### 🤖 CI
|
|
50
|
+
|
|
51
|
+
- **deploy:** Frontend bumps follow commit order, not finish order or PR number ([0e3790c43](https://github.com/arbicity/ARBI-frontend/commit/0e3790c43))
|
|
52
|
+
|
|
3
53
|
## v0.5.207
|
|
4
54
|
|
|
5
55
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.206...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.209";
|
|
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.209") 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.209"} \u2192 ${latest}). Updating...`);
|
|
3760
3760
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3761
|
-
showChangelog("0.5.
|
|
3761
|
+
showChangelog("0.5.209", 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.209"} \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.209") 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.209"} \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.209").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
12735
12775
|
registerConfigCommand(program);
|
|
12736
12776
|
registerLoginCommand(program);
|
|
12737
12777
|
registerRegisterCommand(program);
|