@ouro.bot/cli 0.1.0-alpha.1383 → 0.1.0-alpha.1384
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,10 +1,17 @@
|
|
|
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.1384",
|
|
6
|
+
"changes": [
|
|
7
|
+
"A delegated command's audit notice is sent to the owner's own Telegram chat at once, or the command is refused: it no longer waits on the owner route, quiet hours, the daily cap or a handoff."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1383",
|
|
6
12
|
"changes": [
|
|
7
|
-
"A bundle can declare its own MCP server's tools in a tools.json from Ouro UI core's ouro-actions-tools (agent.json mcpServers.<name>.tools); the harness then gives those tools the declared description, parameters and Ouro AX card, with risk from the card's effect."
|
|
13
|
+
"A bundle can declare its own MCP server's tools in a tools.json from Ouro UI core's ouro-actions-tools (agent.json mcpServers.<name>.tools); the harness then gives those tools the declared description, parameters and Ouro AX card, with risk from the card's effect.",
|
|
14
|
+
"Update the Ouro UI files to Ouro UI v1.3.458."
|
|
8
15
|
]
|
|
9
16
|
},
|
|
10
17
|
{
|
|
@@ -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.1384</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/senses/a2a-entry.js
CHANGED
|
@@ -103,14 +103,14 @@ Promise.all([
|
|
|
103
103
|
agentName,
|
|
104
104
|
identity,
|
|
105
105
|
// The Butler accepts delegated commands from explicitly granted peers; each
|
|
106
|
-
// one is announced in the owner's Telegram chat before it runs.
|
|
106
|
+
// one is announced in the owner's own Telegram chat before it runs (never through the owner route, never held).
|
|
107
107
|
...(agentName === "sanctuary" ? {
|
|
108
108
|
delegation: {
|
|
109
109
|
principalProfileId: delegated_command_1.A2A_PRINCIPAL_PROFILE_ID,
|
|
110
110
|
agentRoot: (0, identity_1.getAgentRoot)(agentName),
|
|
111
111
|
notifyPrincipal: async (notice) => {
|
|
112
|
-
const {
|
|
113
|
-
await
|
|
112
|
+
const { sendTelegramDelegatedAuditNotice } = await Promise.resolve().then(() => __importStar(require("./telegram")));
|
|
113
|
+
await sendTelegramDelegatedAuditNotice(agentName, { ...notice, signal: AbortSignal.timeout(30_000) });
|
|
114
114
|
},
|
|
115
115
|
},
|
|
116
116
|
} : {}),
|
package/dist/senses/telegram.js
CHANGED
|
@@ -52,6 +52,7 @@ exports.loadTelegramSenseCredentials = loadTelegramSenseCredentials;
|
|
|
52
52
|
exports.createProductionTelegramRelationshipComposition = createProductionTelegramRelationshipComposition;
|
|
53
53
|
exports.startTelegramSenseApp = startTelegramSenseApp;
|
|
54
54
|
exports.sendTelegramExternalEventDecision = sendTelegramExternalEventDecision;
|
|
55
|
+
exports.sendTelegramDelegatedAuditNotice = sendTelegramDelegatedAuditNotice;
|
|
55
56
|
exports.sendTelegramOwnerNotice = sendTelegramOwnerNotice;
|
|
56
57
|
exports.createProactiveRepetitionGuard = createProactiveRepetitionGuard;
|
|
57
58
|
exports.withTelegramTypingIndicator = withTelegramTypingIndicator;
|
|
@@ -1039,13 +1040,13 @@ function createTelegramSenseApp(options) {
|
|
|
1039
1040
|
approvalReconciliationsInFlight.add(failsafe);
|
|
1040
1041
|
}, delay);
|
|
1041
1042
|
};
|
|
1042
|
-
const deliverButlerEffect = async (text, idempotencyKey, signal, onMessageDelivered, exactDownloadCreditQuestion = false, replyToMessageId) => {
|
|
1043
|
+
const deliverButlerEffect = async (text, idempotencyKey, signal, onMessageDelivered, exactDownloadCreditQuestion = false, replyToMessageId, silent = false) => {
|
|
1043
1044
|
const presentedText = (0, sanctuary_download_credit_presentation_1.presentSanctuaryDownloadCreditReply)(options.agentName, exactDownloadCreditQuestion, text);
|
|
1044
1045
|
return executeAuthorizedEffect({
|
|
1045
1046
|
idempotencyKey,
|
|
1046
1047
|
target: configuredOwnerTarget(),
|
|
1047
1048
|
authorClass: "butler",
|
|
1048
|
-
effect: { kind: "text", text: presentedText, ...(replyToMessageId ? { replyToMessageId } : {}) },
|
|
1049
|
+
effect: { kind: "text", text: presentedText, ...(replyToMessageId ? { replyToMessageId } : {}), ...(silent ? { silent: true } : {}) },
|
|
1049
1050
|
...(signal ? { signal } : {}),
|
|
1050
1051
|
...(onMessageDelivered ? { onMessageDelivered } : {}),
|
|
1051
1052
|
});
|
|
@@ -2069,6 +2070,8 @@ function createTelegramSenseApp(options) {
|
|
|
2069
2070
|
const noticeId = requiredText(input.noticeId, "owner notice id");
|
|
2070
2071
|
if (Buffer.byteLength(noticeId) > 512)
|
|
2071
2072
|
throw new Error("Telegram owner notice id is invalid");
|
|
2073
|
+
if (noticeId.startsWith("delegated:"))
|
|
2074
|
+
return this.sendDelegatedAuditNotice({ ...input, noticeId });
|
|
2072
2075
|
await runWithAcceptanceAuditOwner(async () => {
|
|
2073
2076
|
const text = requiredText(input.text, "owner notice");
|
|
2074
2077
|
const telegramText = await routeSelfStarted(text, `owner-notice:${noticeId}`, undefined, input.signal);
|
|
@@ -2083,6 +2086,25 @@ function createTelegramSenseApp(options) {
|
|
|
2083
2086
|
await recordAcceptedEffects(sessionPath, [effect]);
|
|
2084
2087
|
});
|
|
2085
2088
|
},
|
|
2089
|
+
async sendDelegatedAuditNotice(input) {
|
|
2090
|
+
const noticeId = requiredText(input.noticeId, "delegated audit notice id");
|
|
2091
|
+
if (!noticeId.startsWith("delegated:") || Buffer.byteLength(noticeId) > 512)
|
|
2092
|
+
throw new Error("Telegram delegated audit notice id is invalid");
|
|
2093
|
+
const key = `owner-notice:${noticeId}`;
|
|
2094
|
+
await runWithAcceptanceAuditOwner(async () => {
|
|
2095
|
+
const text = requiredText(input.text, "delegated audit notice");
|
|
2096
|
+
if (ownerChatIsHandedOff()) {
|
|
2097
|
+
(0, runtime_1.emitNervesEvent)({ level: "warn", component: "senses", event: "senses.telegram_delegated_notice_refused", message: "refused a delegated command's audit notice while the owner's chat is handed to someone else", meta: { agentName: options.agentName, reason: "handed_off" } });
|
|
2098
|
+
throw new Error("the owner's Telegram chat is handed to someone else, so a delegated command's notice can't be sent");
|
|
2099
|
+
}
|
|
2100
|
+
const pacingReason = options.proactivePacing ? (0, telegram_handoff_1.proactiveHoldReason)(proactiveLedgerPath, new Date(), options.proactivePacing) : null;
|
|
2101
|
+
const silent = options.ownerRoute !== undefined || pacingReason === "quiet_hours";
|
|
2102
|
+
const effect = await deliverButlerEffect(text, key, input.signal, undefined, false, undefined, silent);
|
|
2103
|
+
(0, runtime_1.emitNervesEvent)({ component: "senses", event: "senses.telegram_delegated_notice_sent", message: "sent a delegated command's audit notice to the owner's Telegram chat", meta: { agentName: options.agentName, silent } });
|
|
2104
|
+
const sessionPath = (0, shared_turn_1.getSenseSessionPath)(options.agentName, configuredOwnerFriendId, "telegram", configuredOwnerSessionKey, agentRoot);
|
|
2105
|
+
await recordAcceptedEffects(sessionPath, [effect]);
|
|
2106
|
+
});
|
|
2107
|
+
},
|
|
2086
2108
|
stop() {
|
|
2087
2109
|
if (stopPromise)
|
|
2088
2110
|
return stopPromise;
|
|
@@ -2421,6 +2443,16 @@ async function sendTelegramExternalEventDecision(agentName, input) {
|
|
|
2421
2443
|
await app.stop();
|
|
2422
2444
|
}
|
|
2423
2445
|
}
|
|
2446
|
+
/** Sends a delegated command's audit notice; see `sendDelegatedAuditNotice`. Throws when it can't be sent. */
|
|
2447
|
+
async function sendTelegramDelegatedAuditNotice(agentName, input) {
|
|
2448
|
+
const app = await startTelegramSenseApp(agentName);
|
|
2449
|
+
try {
|
|
2450
|
+
await app.sendDelegatedAuditNotice(input);
|
|
2451
|
+
}
|
|
2452
|
+
finally {
|
|
2453
|
+
await app.stop();
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2424
2456
|
async function sendTelegramOwnerNotice(agentName, input) {
|
|
2425
2457
|
const app = await startTelegramSenseApp(agentName);
|
|
2426
2458
|
try {
|
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.1384",
|
|
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.1384",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"@ouro.bot/friends"
|
|
12
12
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.1384",
|
|
4
4
|
"description": "Ouroboros, the agent harness: agents with durable memory that live where you talk (terminal, Teams, iMessage, mail, voice) and use real tools. Start with npx ouro.bot@latest.",
|
|
5
5
|
"homepage": "https://ouroboros.bot/",
|
|
6
6
|
"engines": {
|