@ouro.bot/cli 0.1.0-alpha.844 → 0.1.0-alpha.845
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,12 @@
|
|
|
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.845",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Senses: a turn that errors now tells the person so instead of going silent (naming the step limit when that is the cause). This was the mechanism behind the Butler's answer-then-greet sequence (D-004): a question hit the provider step limit (D-007), nothing was sent, and each prod became its own turn. The engine still refuses to answer without evidence; the private channel stays silent."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.844",
|
|
6
12
|
"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.845</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -42,6 +42,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.stripThinkBlocks = stripThinkBlocks;
|
|
43
43
|
exports.extractOutwardSenseDeliveryText = extractOutwardSenseDeliveryText;
|
|
44
44
|
exports.getSenseSessionPath = getSenseSessionPath;
|
|
45
|
+
exports.erroredTurnReply = erroredTurnReply;
|
|
45
46
|
exports.runSenseTurn = runSenseTurn;
|
|
46
47
|
const os = __importStar(require("os"));
|
|
47
48
|
const path = __importStar(require("path"));
|
|
@@ -333,6 +334,17 @@ function getSenseSessionPath(agentName, friendId, channel, sessionKey, agentRoot
|
|
|
333
334
|
* Caller provides channel, session key, friend, and message;
|
|
334
335
|
* this function handles all pipeline wiring.
|
|
335
336
|
*/
|
|
337
|
+
/**
|
|
338
|
+
* What an outward sense says when a turn errors and provider failover has nothing to say.
|
|
339
|
+
* Such turns used to end in silence: the owner saw no reply, prodded, and later got
|
|
340
|
+
* the late answer followed by a greeting to a prod (D-004); the step-limit stop was the
|
|
341
|
+
* observed cause (D-007). The engine still refuses to answer without evidence.
|
|
342
|
+
*/
|
|
343
|
+
function erroredTurnReply(errorMessage) {
|
|
344
|
+
return /iteration limit exhausted/u.test(errorMessage ?? "")
|
|
345
|
+
? "I couldn't finish that one: I ran out of steps before I had an answer I could stand behind. Ask me again, or ask something narrower, and I'll take another run at it."
|
|
346
|
+
: "I couldn't finish that one: something went wrong before I had an answer. Ask me again and I'll retry.";
|
|
347
|
+
}
|
|
336
348
|
async function runSenseTurn(options) {
|
|
337
349
|
return (0, turn_execution_lease_1.withTurnExecutionLease)(async () => {
|
|
338
350
|
const owner = Object.freeze({ agentName: options.agentName, agentRoot: (0, identity_1.getAgentRoot)(options.agentName) });
|
|
@@ -453,6 +465,7 @@ async function runSenseTurnExclusive(options, owner) {
|
|
|
453
465
|
// once the turn completes.
|
|
454
466
|
let committedResponseText = "";
|
|
455
467
|
let pendingResponseText = "";
|
|
468
|
+
let terminalErrorMessage;
|
|
456
469
|
let terminalDeliveryKind = "text";
|
|
457
470
|
const deliveries = [];
|
|
458
471
|
const deliveryFailures = [];
|
|
@@ -535,6 +548,8 @@ async function runSenseTurnExclusive(options, owner) {
|
|
|
535
548
|
emitFrontendEvent({ type: "tool_completed", data: { name, summary: _summary, success } });
|
|
536
549
|
},
|
|
537
550
|
onError: (error, severity) => {
|
|
551
|
+
if (severity === "terminal")
|
|
552
|
+
terminalErrorMessage = error.message;
|
|
538
553
|
emitFrontendEvent({ type: "error", data: { message: error.message, severity } });
|
|
539
554
|
},
|
|
540
555
|
onClearText: () => {
|
|
@@ -661,7 +676,9 @@ async function runSenseTurnExclusive(options, owner) {
|
|
|
661
676
|
const eventView = currentTurnEventView(terminalEvents, existingEventIds, userMessage, options.precommittedIngress, options.ingressRelations);
|
|
662
677
|
let finalDeliveryKind = terminalDeliveryKind;
|
|
663
678
|
const acceptedTerminalOutcome = turnResult.turnOutcome === "settled" || turnResult.turnOutcome === "blocked";
|
|
664
|
-
const failoverText = turnResult.turnOutcome === "errored"
|
|
679
|
+
const failoverText = turnResult.turnOutcome === "errored"
|
|
680
|
+
? turnResult.failoverMessage?.trim() || (channel === "inner" ? undefined : erroredTurnReply(terminalErrorMessage))
|
|
681
|
+
: undefined;
|
|
665
682
|
const expectsOutwardResponse = acceptedTerminalOutcome || turnResult.turnOutcome === "command" || Boolean(failoverText);
|
|
666
683
|
let finalCausalCoordinate;
|
|
667
684
|
if (acceptedTerminalOutcome) {
|
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.845",
|
|
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.845",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
12
12
|
"@azure/identity": "^4.13.0",
|