@ouro.bot/cli 0.1.0-alpha.1142 → 0.1.0-alpha.1143
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.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.0-alpha.1143",
|
|
6
|
+
"changes": [
|
|
7
|
+
"After you approve a restart, the Butler now tells you it worked, instead of wrongly saying it couldn't finish.",
|
|
8
|
+
"If the Butler can't retry a change that failed earlier, it says so in plain words, with no internal tool names."
|
|
9
|
+
]
|
|
10
|
+
},
|
|
4
11
|
{
|
|
5
12
|
"version": "0.1.0-alpha.1142",
|
|
6
13
|
"changes": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0"?>
|
|
2
2
|
<Container version="2">
|
|
3
3
|
<Name>ouro-butler</Name>
|
|
4
|
-
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.
|
|
4
|
+
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1143</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
package/dist/heart/core.js
CHANGED
|
@@ -655,7 +655,11 @@ function historicalFailedEffectsForExactRepeatedRequest(messages, selection) {
|
|
|
655
655
|
return [];
|
|
656
656
|
const effectsByCallId = new Map();
|
|
657
657
|
const failedEffects = new Map();
|
|
658
|
-
|
|
658
|
+
// Scan through the end: an effect the approval runtime already ran after the current request (the owner tapped
|
|
659
|
+
// Approve) is resolved by its success. A failure after the current request never adds a new forced effect.
|
|
660
|
+
for (let index = prior.index + 1; index < messages.length; index += 1) {
|
|
661
|
+
if (index === current.index)
|
|
662
|
+
continue;
|
|
659
663
|
const message = messages[index];
|
|
660
664
|
if (message?.role === "assistant" && Array.isArray(message.tool_calls)) {
|
|
661
665
|
for (const call of message.tool_calls) {
|
|
@@ -674,7 +678,8 @@ function historicalFailedEffectsForExactRepeatedRequest(messages, selection) {
|
|
|
674
678
|
if (!effect)
|
|
675
679
|
continue;
|
|
676
680
|
if (toolResultIndicatesFailure(content)) {
|
|
677
|
-
|
|
681
|
+
if (index < current.index)
|
|
682
|
+
failedEffects.set(effect.fingerprint, effect);
|
|
678
683
|
}
|
|
679
684
|
else {
|
|
680
685
|
failedEffects.delete(effect.fingerprint);
|
|
@@ -1861,7 +1866,7 @@ async function runAgent(messages, callbacks, channel, signal, options) {
|
|
|
1861
1866
|
callbacks.onClearText?.();
|
|
1862
1867
|
const retryableHistoricalTools = [...forcedHistoricalToolNames];
|
|
1863
1868
|
if (historicalToolFailureRetries >= NO_TOOL_CALL_MAX_RETRIES) {
|
|
1864
|
-
const blockedAnswer =
|
|
1869
|
+
const blockedAnswer = "I could not finish the change that failed earlier: I didn't manage to try it again this time, so it is not done.";
|
|
1865
1870
|
(0, runtime_1.emitNervesEvent)({
|
|
1866
1871
|
level: "warn",
|
|
1867
1872
|
component: "engine",
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.1143",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@ouro.bot/cli",
|
|
9
|
-
"version": "0.1.0-alpha.
|
|
9
|
+
"version": "0.1.0-alpha.1143",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
12
12
|
"@ouro.bot/friends": "0.1.0-alpha.18",
|