@ouro.bot/cli 0.1.0-alpha.1141 → 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 +14 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/heart/core.js +8 -3
- package/dist/heart/shelf-claims.js +8 -2
- package/dist/senses/shared-turn.js +6 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
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
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"version": "0.1.0-alpha.1142",
|
|
13
|
+
"changes": [
|
|
14
|
+
"When the Butler decides a message needs no reply, such as a heart reaction, it now stays quiet instead of sending an error note. A turn that really fails still tells you.",
|
|
15
|
+
"When a title isn't on the shelf, the Butler names it once instead of twice."
|
|
16
|
+
]
|
|
17
|
+
},
|
|
4
18
|
{
|
|
5
19
|
"version": "0.1.0-alpha.1141",
|
|
6
20
|
"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",
|
|
@@ -22,8 +22,14 @@ function normalize(text) {
|
|
|
22
22
|
function titlesFrom(records) {
|
|
23
23
|
const onShelf = [];
|
|
24
24
|
const offShelf = [];
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
// A lookup can name one title in several places (a result and a candidate); keep it once so the reply names it once.
|
|
26
|
+
const add = (list, title) => {
|
|
27
|
+
if (typeof title !== "string" || normalize(title).trim().length < MIN_TITLE_LENGTH)
|
|
28
|
+
return;
|
|
29
|
+
const key = normalize(title);
|
|
30
|
+
if (!list.some((known) => known.key === key))
|
|
31
|
+
list.push({ name: title.trim(), key });
|
|
32
|
+
};
|
|
27
33
|
for (const record of records) {
|
|
28
34
|
if (!LIBRARY_LOOKUP_TOOLS.has(record.name))
|
|
29
35
|
continue;
|
|
@@ -753,8 +753,12 @@ async function runSenseTurnExclusive(options, owner) {
|
|
|
753
753
|
const finalDeliveryAttempt = finalDeliveryAttemptIndex === undefined ? undefined : deliveryAttempts[finalDeliveryAttemptIndex];
|
|
754
754
|
const responseDeliveryFailure = finalDeliveryAttempt && !finalDeliveryAttempt.delivered ? deliveryFailures.at(-1) : undefined;
|
|
755
755
|
const responseCausalSessionEventId = finalDeliveryAttempt && !finalDeliveryAttempt.delivered ? finalCausalCoordinate?.eventId : undefined;
|
|
756
|
+
// settle(answer: "", intent: "complete") is the agent choosing to say nothing, for example after a reaction.
|
|
757
|
+
// A settle whose answer held only <think> reasoning is not a choice, so it still gets the diagnostic below.
|
|
758
|
+
const deliberateSilence = turnResult.turnOutcome === "settled" && turnResult.completion?.intent === "complete"
|
|
759
|
+
&& typeof turnResult.completion.answer === "string" && turnResult.completion.answer.trim().length === 0;
|
|
756
760
|
if (committedResponseText.length === 0) {
|
|
757
|
-
if (!expectsOutwardResponse) {
|
|
761
|
+
if (!expectsOutwardResponse || deliberateSilence) {
|
|
758
762
|
finalResponse = "";
|
|
759
763
|
}
|
|
760
764
|
else {
|
|
@@ -774,7 +778,7 @@ async function runSenseTurnExclusive(options, owner) {
|
|
|
774
778
|
// came through and nothing else, surface a clear diagnostic message
|
|
775
779
|
// instead of a blank response so the operator knows what happened.
|
|
776
780
|
finalResponse = stripThinkBlocks(finalResponse);
|
|
777
|
-
if (finalResponse.length === 0 && expectsOutwardResponse) {
|
|
781
|
+
if (finalResponse.length === 0 && expectsOutwardResponse && !deliberateSilence) {
|
|
778
782
|
(0, runtime_1.emitNervesEvent)({
|
|
779
783
|
level: "warn",
|
|
780
784
|
component: "senses",
|
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",
|