@ouro.bot/cli 0.1.0-alpha.1076 → 0.1.0-alpha.1078
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.1078",
|
|
6
|
+
"changes": [
|
|
7
|
+
"surface takes channel=teams, so a private-runtime turn (an ouro msg, an await) can tell a friend on Teams now: it sends at once where the Teams sense runs, and otherwise waits in their Teams chat"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1076",
|
|
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.1078</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -52,7 +52,7 @@ function normalizeSurfaceDeliveryChannel(value) {
|
|
|
52
52
|
if (typeof value !== "string")
|
|
53
53
|
return "auto";
|
|
54
54
|
const normalized = value.trim().toLowerCase();
|
|
55
|
-
return normalized === "voice" ? "voice" : "auto";
|
|
55
|
+
return normalized === "voice" ? "voice" : normalized === "teams" ? "teams" : "auto";
|
|
56
56
|
}
|
|
57
57
|
function parseSurfaceVoiceInitialAudio(args) {
|
|
58
58
|
const source = args.voiceAudioSource === "url" || args.voiceAudioSource === "file" || args.voiceAudioSource === "tone"
|
|
@@ -83,7 +83,7 @@ exports.surfaceToolDef = {
|
|
|
83
83
|
type: "function",
|
|
84
84
|
function: {
|
|
85
85
|
name: "surface",
|
|
86
|
-
description: "return a ready thought to a friend or active session without publishing private-runtime work to BlueBubbles. pass delegationId to address a held thought (see your attention queue above), or friendId for spontaneous outreach. Surface delivers tool responses to the active session. BlueBubbles is a dedicated channel - use send_message with channel=\"bluebubbles\" for intentional iMessage delivery. set channel=voice only when you intentionally want a live phone call; content becomes the call reason/opening context. does not end your turn.",
|
|
86
|
+
description: "return a ready thought to a friend or active session without publishing private-runtime work to BlueBubbles. pass delegationId to address a held thought (see your attention queue above), or friendId for spontaneous outreach. Surface delivers tool responses to the active session. BlueBubbles is a dedicated channel - use send_message with channel=\"bluebubbles\" for intentional iMessage delivery. set channel=voice only when you intentionally want a live phone call; content becomes the call reason/opening context. set channel=teams to tell a friend on Teams now (it sends at once where your Teams sense runs, otherwise waits in their Teams chat). does not end your turn.",
|
|
87
87
|
parameters: {
|
|
88
88
|
type: "object",
|
|
89
89
|
properties: {
|
|
@@ -101,8 +101,8 @@ exports.surfaceToolDef = {
|
|
|
101
101
|
},
|
|
102
102
|
channel: {
|
|
103
103
|
type: "string",
|
|
104
|
-
enum: ["auto", "voice"],
|
|
105
|
-
description: "optional delivery channel; use voice for a live phone call to a trusted friend, otherwise omit",
|
|
104
|
+
enum: ["auto", "voice", "teams"],
|
|
105
|
+
description: "optional delivery channel; use voice for a live phone call to a trusted friend, teams to reach them on Teams now, otherwise omit",
|
|
106
106
|
},
|
|
107
107
|
phoneNumber: {
|
|
108
108
|
type: "string",
|
|
@@ -223,6 +223,12 @@ async function routeSurfaceToFriend(agentName, friendId, content, queueItem, hin
|
|
|
223
223
|
? { status: "delivered", detail: voiceResult.detail }
|
|
224
224
|
: { status: "failed", detail: voiceResult.detail };
|
|
225
225
|
}
|
|
226
|
+
if (hint?.channel === "teams") {
|
|
227
|
+
// The friend's latest Teams chat, else a new 1:1 the bot opens by their AAD id.
|
|
228
|
+
const teamsSession = (0, session_activity_1.listSessionActivity)({ sessionsDir, friendsDir, agentName, activeThresholdMs: Number.MAX_SAFE_INTEGER })
|
|
229
|
+
.find((activity) => activity.friendId === friendId && activity.channel === "teams");
|
|
230
|
+
return deliverTeamsOrQueue(teamsSession ?? { friendId, channel: "teams", key: "proactive" }, "for their next Teams message");
|
|
231
|
+
}
|
|
226
232
|
// Priority 1: Bridge-preferred session (if queue item has a bridgeId)
|
|
227
233
|
if (queueItem?.bridgeId) {
|
|
228
234
|
const { createBridgeManager } = await Promise.resolve().then(() => __importStar(require("../heart/bridges/manager")));
|
|
@@ -311,7 +317,7 @@ exports.surfaceToolDefinition = {
|
|
|
311
317
|
content: args.content ?? "",
|
|
312
318
|
delegationId: args.delegationId,
|
|
313
319
|
friendId: args.friendId,
|
|
314
|
-
deliveryHint: deliveryHint.channel
|
|
320
|
+
deliveryHint: deliveryHint.channel !== "auto" || deliveryHint.phoneNumber ? deliveryHint : undefined,
|
|
315
321
|
queue,
|
|
316
322
|
routeToFriend,
|
|
317
323
|
advanceObligation: (obligationId, update) => {
|
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.1078",
|
|
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.1078",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
12
12
|
"@ouro.bot/friends": "0.1.0-alpha.18",
|