@ouro.bot/cli 0.1.0-alpha.1326 → 0.1.0-alpha.1327
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.1327",
|
|
6
|
+
"changes": [
|
|
7
|
+
"The five session tools have Ouro AX cards; their failures end with a code, and query_active_work and query_session state a low-risk profile."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1326",
|
|
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.1327</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -56,6 +56,7 @@ const obligations_1 = require("../arc/obligations");
|
|
|
56
56
|
const progress_story_1 = require("../heart/progress-story");
|
|
57
57
|
const habit_session_summary_1 = require("../heart/habits/habit-session-summary");
|
|
58
58
|
const cross_chat_delivery_1 = require("../heart/cross-chat-delivery");
|
|
59
|
+
const tool_error_code_1 = require("./tool-error-code");
|
|
59
60
|
const tool_arguments_1 = require("./tool-arguments");
|
|
60
61
|
const mail_import_discovery_1 = require("../heart/mail-import-discovery");
|
|
61
62
|
const outbound_1 = require("../senses/voice/outbound");
|
|
@@ -198,12 +199,17 @@ function renderCrossChatDeliveryStatus(target, result) {
|
|
|
198
199
|
: result.status === "blocked"
|
|
199
200
|
? "blocked"
|
|
200
201
|
: "failed";
|
|
201
|
-
|
|
202
|
+
const story = (0, progress_story_1.renderProgressStory)((0, progress_story_1.buildProgressStory)({
|
|
202
203
|
scope: "shared-work",
|
|
203
204
|
phase,
|
|
204
205
|
objective: `message to ${target}`,
|
|
205
206
|
outcomeText: `${lead}\n${result.detail}`,
|
|
206
207
|
}));
|
|
208
|
+
if (result.status === "blocked")
|
|
209
|
+
return (0, tool_error_code_1.withCode)(story, "delivery-blocked");
|
|
210
|
+
if (result.status === "failed")
|
|
211
|
+
return (0, tool_error_code_1.withCode)(story, "delivery-failed");
|
|
212
|
+
return story;
|
|
207
213
|
}
|
|
208
214
|
function normalizeHabitSendStatus(status) {
|
|
209
215
|
return status === "queued_for_later" ? "queued" : status;
|
|
@@ -650,6 +656,10 @@ exports.sessionToolDefinitions = [
|
|
|
650
656
|
? `${activeWork}\n\n${formatButlerOperationalVisibility(readButlerOperationalVisibility(), { section: args.section, offset: numeric(args.offset, 0, 0, 10_000), limit: numeric(args.limit, 10, 1, 20) })}`
|
|
651
657
|
: activeWork;
|
|
652
658
|
},
|
|
659
|
+
riskProfile: { mutates: "none", risk: "low" },
|
|
660
|
+
ax: { id: "tool:query_active_work", group: "turn-sessions", when: "Pick this first for any whole-self status question, to see every live session, coding lane and owed return at once.", effect: "read", idempotent: true, errors: [
|
|
661
|
+
{ code: "invalid-arguments", means: "section isn't one of the listed sections, or offset or limit isn't text.", fix: "Pass section as all, health, policy, awaits, telegram, events, actions or provider." },
|
|
662
|
+
] },
|
|
653
663
|
},
|
|
654
664
|
{
|
|
655
665
|
tool: {
|
|
@@ -702,6 +712,9 @@ exports.sessionToolDefinitions = [
|
|
|
702
712
|
reason: "reads habit run summaries from local receipts and session artifacts",
|
|
703
713
|
},
|
|
704
714
|
summaryKeys: ["runId", "habitName", "operationId", "which"],
|
|
715
|
+
ax: { id: "tool:session_summary", group: "turn-sessions", when: "Pick this to learn how a habit run went, by exact runId or by habit name and which run, without opening session files.", effect: "read", idempotent: true, errors: [
|
|
716
|
+
{ code: "invalid-arguments", means: "A selector isn't text or which isn't allowed; runId mixed with other selectors comes back as invalid_selector JSON.", fix: "Pass runId alone, or habitName or operationId with an optional which such as latest." },
|
|
717
|
+
] },
|
|
705
718
|
},
|
|
706
719
|
{
|
|
707
720
|
tool: {
|
|
@@ -738,7 +751,7 @@ exports.sessionToolDefinitions = [
|
|
|
738
751
|
level: "warn", component: "tools", event: "tool.session_path_rejected",
|
|
739
752
|
message: "session query rejected invalid coordinates", meta: { reason: "invalid friend or channel" },
|
|
740
753
|
});
|
|
741
|
-
return NO_SESSION_FOUND_MESSAGE;
|
|
754
|
+
return (0, tool_error_code_1.withCode)(NO_SESSION_FOUND_MESSAGE, "session-not-found");
|
|
742
755
|
}
|
|
743
756
|
(0, tool_arguments_1.assertRelationshipToolOwner)(ctx);
|
|
744
757
|
// Resolve friend name -> UUID if not already a UUID or "self"
|
|
@@ -751,7 +764,7 @@ exports.sessionToolDefinitions = [
|
|
|
751
764
|
}
|
|
752
765
|
if (mode === "status") {
|
|
753
766
|
if (friendId !== "self" || channel !== "inner") {
|
|
754
|
-
return "status mode is only available for self/private runtime.";
|
|
767
|
+
return (0, tool_error_code_1.withCode)("status mode is only available for self/private runtime.", "status-self-only");
|
|
755
768
|
}
|
|
756
769
|
const agentRoot = ctx?.agentRoot ?? (0, identity_1.getAgentRoot)(ctx?.agentName);
|
|
757
770
|
const sessionPath = (0, thoughts_1.getPrivateRuntimeSessionPath)(agentRoot);
|
|
@@ -778,7 +791,7 @@ exports.sessionToolDefinitions = [
|
|
|
778
791
|
level: "warn", component: "tools", event: "tool.session_path_rejected",
|
|
779
792
|
message: "session query rejected an unconfined path", meta: { reason: error.message },
|
|
780
793
|
});
|
|
781
|
-
return NO_SESSION_FOUND_MESSAGE;
|
|
794
|
+
return (0, tool_error_code_1.withCode)(NO_SESSION_FOUND_MESSAGE, "session-not-found");
|
|
782
795
|
}
|
|
783
796
|
const sessionTail = await summarizeSessionTailSafely({
|
|
784
797
|
sessionPath: sessFile,
|
|
@@ -790,13 +803,18 @@ exports.sessionToolDefinitions = [
|
|
|
790
803
|
summarize: ctx?.summarize,
|
|
791
804
|
});
|
|
792
805
|
if (sessionTail.kind === "missing") {
|
|
793
|
-
return NO_SESSION_FOUND_MESSAGE;
|
|
806
|
+
return (0, tool_error_code_1.withCode)(NO_SESSION_FOUND_MESSAGE, "session-not-found");
|
|
794
807
|
}
|
|
795
808
|
if (sessionTail.kind === "empty") {
|
|
796
809
|
return EMPTY_SESSION_MESSAGE;
|
|
797
810
|
}
|
|
798
811
|
return sessionTail.summary;
|
|
799
812
|
},
|
|
813
|
+
riskProfile: { mutates: "none", risk: "low" },
|
|
814
|
+
ax: { id: "tool:query_session", group: "turn-sessions", when: "Pick this to read the recent transcript of another chat by friend and channel, or your private runtime's progress with status mode.", effect: "read", idempotent: true, errors: [
|
|
815
|
+
{ code: "session-not-found", means: "No session exists for that friend, channel and key, or the coordinates aren't valid.", fix: "Check the friend's id with friend_list and the channel name, and leave key out unless you know it." },
|
|
816
|
+
{ code: "status-self-only", means: "mode status works only for friendId self on channel inner.", fix: "Use mode transcript for other chats, or friendId self with channel inner for status." },
|
|
817
|
+
] },
|
|
800
818
|
},
|
|
801
819
|
{
|
|
802
820
|
tool: {
|
|
@@ -1123,6 +1141,11 @@ exports.sessionToolDefinitions = [
|
|
|
1123
1141
|
return renderCrossChatDeliveryStatus(`${friendId} on ${channel}/${key}`, deliveryResult);
|
|
1124
1142
|
},
|
|
1125
1143
|
riskProfile: sendMessageRiskProfile,
|
|
1144
|
+
ax: { id: "tool:send_message", group: "turn-sessions", when: "Pick this to reach someone in a different chat or channel than this one, or a phone call by voice; to keep thinking privately, use ponder.", effect: "write", errors: [
|
|
1145
|
+
{ code: "delivery-blocked", means: "The message wasn't sent: no routable chat exists for that session, or the text carries internal markers.", fix: "Check the friend and channel with query_session, and remove internal notes from the content." },
|
|
1146
|
+
{ code: "delivery-failed", means: "The channel tried to send and failed, or the person can't be reached that way.", fix: "Try again once, or reach them on another channel they use." },
|
|
1147
|
+
{ code: "orientation-hold", means: "This turn is on a correction hold, so messages to other chats wait.", fix: "Call orientation_get, settle what the person meant, then send if it still fits." },
|
|
1148
|
+
] },
|
|
1126
1149
|
},
|
|
1127
1150
|
{
|
|
1128
1151
|
tool: {
|
|
@@ -1141,11 +1164,11 @@ exports.sessionToolDefinitions = [
|
|
|
1141
1164
|
},
|
|
1142
1165
|
handler: (args, ctx) => {
|
|
1143
1166
|
if (!ctx?.supportedReasoningEfforts || !ctx.setReasoningEffort) {
|
|
1144
|
-
return "reasoning effort adjustment is not available in this context.";
|
|
1167
|
+
return (0, tool_error_code_1.withCode)("reasoning effort adjustment is not available in this context.", "effort-unavailable");
|
|
1145
1168
|
}
|
|
1146
1169
|
const level = (args.level || "").trim();
|
|
1147
1170
|
if (!ctx.supportedReasoningEfforts.includes(level)) {
|
|
1148
|
-
return `invalid reasoning effort level "${level}". accepted levels: ${ctx.supportedReasoningEfforts.join(", ")}
|
|
1171
|
+
return (0, tool_error_code_1.withCode)(`invalid reasoning effort level "${level}". accepted levels: ${ctx.supportedReasoningEfforts.join(", ")}`, "invalid-effort-level");
|
|
1149
1172
|
}
|
|
1150
1173
|
ctx.setReasoningEffort(level);
|
|
1151
1174
|
(0, runtime_1.emitNervesEvent)({
|
|
@@ -1158,5 +1181,9 @@ exports.sessionToolDefinitions = [
|
|
|
1158
1181
|
},
|
|
1159
1182
|
requiredCapability: "reasoning-effort",
|
|
1160
1183
|
summaryKeys: ["level"],
|
|
1184
|
+
ax: { id: "tool:set_reasoning_effort", group: "turn-sessions", when: "Pick this to think harder on a knotty problem or lighter on routine work in the turns that follow.", effect: "write", idempotent: true, errors: [
|
|
1185
|
+
{ code: "effort-unavailable", means: "This model or context has no adjustable reasoning effort.", fix: "Carry on at the current effort." },
|
|
1186
|
+
{ code: "invalid-effort-level", means: "That level isn't one this model accepts; the message lists the accepted ones.", fix: "Call again with one of the listed levels." },
|
|
1187
|
+
] },
|
|
1161
1188
|
},
|
|
1162
1189
|
];
|
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.1327",
|
|
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.1327",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"@ouro.bot/friends"
|
|
12
12
|
],
|