@ouro.bot/cli 0.1.0-alpha.960 → 0.1.0-alpha.961
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.961",
|
|
6
|
+
"changes": [
|
|
7
|
+
"When Butler finishes a watch you asked for in Telegram, he now actually tells you and closes it, instead of silently re-checking every few hours."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.960",
|
|
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.961</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -143,9 +143,28 @@ function setAwaitToolDeps(deps) {
|
|
|
143
143
|
function resetAwaitToolDeps() {
|
|
144
144
|
injected = {};
|
|
145
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* A tick runs in the private runtime, where no resident Telegram sense registered a deliverer. Without this one-shot
|
|
148
|
+
* sender a Telegram-bound watch queued its alert in the inner pending folder, never reached the owner, and never closed.
|
|
149
|
+
* A resident sense's own deliverer still wins when one is registered.
|
|
150
|
+
*/
|
|
151
|
+
async function sendTelegramAwaitAlert(agentName, request) {
|
|
152
|
+
// Only a request-bound watch has an exact chat to answer; any other alert keeps queueing for the agent's next turn.
|
|
153
|
+
if (!request.requestId)
|
|
154
|
+
return { status: "unavailable", detail: "no request-bound Telegram chat to answer" };
|
|
155
|
+
const { sendTelegramAwaitFollowUp } = await Promise.resolve().then(() => __importStar(require("../senses/telegram")));
|
|
156
|
+
return sendTelegramAwaitFollowUp(agentName, request);
|
|
157
|
+
}
|
|
146
158
|
function resolveDeliveryDeps(agentName) {
|
|
147
159
|
const deps = injected.buildDeliveryDeps ? injected.buildDeliveryDeps(agentName) : defaultDeliveryDeps(agentName);
|
|
148
|
-
return {
|
|
160
|
+
return {
|
|
161
|
+
...deps,
|
|
162
|
+
deliverers: {
|
|
163
|
+
a2a: (0, a2a_await_delivery_1.createA2AAwaitOwnerDeliverer)(agentName),
|
|
164
|
+
telegram: (request) => sendTelegramAwaitAlert(agentName, request),
|
|
165
|
+
...deps.deliverers,
|
|
166
|
+
},
|
|
167
|
+
};
|
|
149
168
|
}
|
|
150
169
|
const ASK_OWNER_MIN_CHOICES = 2;
|
|
151
170
|
const ASK_OWNER_MAX_CHOICES = 4;
|
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.961",
|
|
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.961",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
12
12
|
"@azure/identity": "^4.13.0",
|