@ouro.bot/cli 0.1.0-alpha.1092 → 0.1.0-alpha.1095
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 +18 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/heart/cross-chat-delivery.js +20 -0
- package/dist/mind/prompt.js +5 -23
- package/dist/repertoire/tools-session.js +6 -0
- package/dist/repertoire/tools-surface.js +2 -0
- package/dist/senses/teams-entry.js +8 -0
- package/dist/senses/teams-off-turn.js +49 -7
- package/dist/senses/teams-outbox.js +246 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/skills/sense-setup.md +56 -0
package/changelog.json
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
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.1095",
|
|
6
|
+
"changes": [
|
|
7
|
+
"A presence that does not run Teams now forwards a Teams send to the machine that does through the bundle, instead of queueing it locally where it was never delivered."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.1.0-alpha.1094",
|
|
12
|
+
"changes": [
|
|
13
|
+
"The prompt no longer points Ouroboros at the retired planner -> doer -> merger flow: harness friction follows the self-fix workflow, and complex fixes go through coding_spawn. The sync-and-merge doc drops its link to the retired work-merger skill."
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"version": "0.1.0-alpha.1093",
|
|
18
|
+
"changes": [
|
|
19
|
+
"Setup and validation guidance for senses (Teams, BlueBubbles, A2A, Workbench, mail golden paths, voice) moves out of the always-on prompt into the harness skill `sense-setup`, which the agent loads when asked to enable, set up, repair or validate a sense: about 1.7k fewer tokens on every turn. The sense status table, the mail-reading rules, the Workbench runtime signal and outbound voice routing stay always-on."
|
|
20
|
+
]
|
|
21
|
+
},
|
|
4
22
|
{
|
|
5
23
|
"version": "0.1.0-alpha.1092",
|
|
6
24
|
"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.1095</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -96,6 +96,26 @@ async function deliverCrossChatMessage(request, deps) {
|
|
|
96
96
|
});
|
|
97
97
|
return result;
|
|
98
98
|
}
|
|
99
|
+
if (direct.status === "forwarded") {
|
|
100
|
+
const result = {
|
|
101
|
+
status: "queued_for_later",
|
|
102
|
+
detail: direct.detail,
|
|
103
|
+
rawStatus: "forwarded",
|
|
104
|
+
};
|
|
105
|
+
(0, runtime_1.emitNervesEvent)({
|
|
106
|
+
component: "engine",
|
|
107
|
+
event: "engine.cross_chat_delivery_end",
|
|
108
|
+
message: "forwarded cross-chat delivery to the machine that runs the channel",
|
|
109
|
+
meta: {
|
|
110
|
+
friendId: request.friendId,
|
|
111
|
+
channel: request.channel,
|
|
112
|
+
key: request.key,
|
|
113
|
+
status: result.status,
|
|
114
|
+
rawStatus: result.rawStatus,
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
99
119
|
const result = queueForLater(request, deps, direct.detail.trim() || "live delivery unavailable right now; queued for the next active turn", direct.status);
|
|
100
120
|
(0, runtime_1.emitNervesEvent)({
|
|
101
121
|
component: "engine",
|
package/dist/mind/prompt.js
CHANGED
|
@@ -702,29 +702,11 @@ function senseRuntimeGuidance(channel, preReadStatusLines) {
|
|
|
702
702
|
lines.push("- ready = enabled and configured; `ouro up` should bring it online");
|
|
703
703
|
lines.push("- running = enabled and currently active");
|
|
704
704
|
lines.push("- error = enabled but unhealthy");
|
|
705
|
-
lines.push("
|
|
706
|
-
lines.push("
|
|
707
|
-
lines.push("bluebubbles setup truth: run `ouro connect bluebubbles --agent <agent>` from the connect bay; it stores this machine's BlueBubbles URL/password/listener config in the agent vault machine runtime item.");
|
|
708
|
-
lines.push("a2a setup truth: run `ouro connect a2a --agent <agent>` to enable the A2A sense, `ouro a2a card --agent <agent> --base-url <public-url>` to publish an agent card, and `ouro a2a onboard --agent <agent> --card-url <peer-card-url>` to add a peer as an agent friend. A2A uses the existing friend trust model, not a separate trust registry.");
|
|
709
|
-
lines.push("workbench setup truth: Ouro Workbench is the local machine sense for terminal/TUI agents. When the Workbench app launches me as its boss it injects the `ouro_workbench` MCP into my turn at runtime (it spawns `ouro acp-serve --agent <me> --workbench-mcp`), so I receive the tools for the served session without any `agent.json` `mcpServers.ouro_workbench` entry — nothing is written to the bundle, so this stays path-free and cross-machine clean. The authoritative signal that Workbench is active is simply that the `workbench_*` tools are present in my toolset this turn; the sense table may read as disabled when no bundle entry exists, or as `stale_bundle_entry` when legacy bundle config needs cleanup, and neither state proves the runtime-injected tools are absent — I do NOT treat that as blocked or as a trust-level problem. I observe and queue auditable Workbench actions through `workbench_status`, `workbench_sense`, `workbench_transcript_tail`, `workbench_search_transcripts`, `workbench_recovery_drill`, and `workbench_request_action`; raw provider secrets remain in the agent vault, and Apple notarization is unrelated to local use. The explicit `ouro connect workbench --agent <me>` command verifies the installed MCP binary and removes stale Workbench bundle entries; it does not enable `senses.workbench` or write `mcpServers.ouro_workbench`.");
|
|
710
|
-
lines.push("mail setup AX: if a human asks me to set up email, I do not hand them a terminal checklist. I guide the flow end-to-end: name the current phase, run agent-runnable commands myself with shell/tools when available, ask the human only for human-required facts or browser actions, wait for their reply, verify the result, then continue.");
|
|
711
|
-
lines.push("mail setup hard rule: never tell the human to run `ouro account ensure`, `ouro connect mail`, `ouro mail import-mbox`, `ouro status`, or `ouro doctor` for setup. Say what I am about to run, run it myself, and report the result. If my current surface cannot run shell/tools, I ask for a tool-capable Ouro setup session or companion to continue; I do not offload CLI operation to the human.");
|
|
712
|
-
lines.push("mail setup truth: Agent Mail uses Mailroom, not HEY OAuth/IMAP. For the full work substrate account, the agent-runnable command is `ouro account ensure --agent <agent> --owner-email <email> --source hey`; use `ouro connect mail --agent <agent> --owner-email <email> --source hey` for mail-only repair/provisioning, or `--no-delegated-source` for native-only mail. The detailed runbook is `docs/agent-mail-setup.md`.");
|
|
713
|
-
lines.push("mail setup truth: HEY archive bootstrap still depends on HEY's browser-only export, but I should not offload path-discovery ceremony to the human. If browser MCP/Playwright downloaded the archive, I first try `ouro mail import-mbox --discover --owner-email <email> --source hey --agent <agent>` so Ouro can find the sandboxed copy in a repo/worktree `.playwright-mcp`, the home `.playwright-mcp`, or Downloads. If discovery cannot find a unique file, then I ask the human for the local MBOX path and run `ouro mail import-mbox --file <path> --owner-email <email> --source hey --agent <agent>` myself.");
|
|
705
|
+
lines.push("sense setup: before answering how to enable, set up, repair or validate a sense (including mail golden paths), I load the `sense-setup` skill and follow it instead of guessing.");
|
|
706
|
+
lines.push("workbench: when `workbench_*` tools are present this turn, the Workbench app launched me and injected them; a disabled or stale_bundle_entry Workbench row does not mean they are absent, and I do NOT treat that as blocked or as a trust-level problem.");
|
|
714
707
|
lines.push("mail setup truth: an empty Mailroom result is not proof the human's HEY inbox is empty. If `mail_recent`/`mail_search` reports no visible mail or no delegated mail, I treat onboarding/import/forwarding as unverified and guide the setup/import flow before reasoning from the absence of messages.");
|
|
715
708
|
lines.push("mail search proof rule: for delegated human mail, cache hits and recency slices are not corpus coverage. Before saying a booking, receipt, or work fact is missing, I use bounded `mail_search` with explicit scope/source terms and check its `search coverage:` line; if the live visible mailbox or imported archives were not searched, I repair search/import visibility instead of declaring a gap.");
|
|
716
|
-
lines.push("
|
|
717
|
-
lines.push("- golden path 1, HEY archive to work object: import the human-provided HEY MBOX and use delegated mail to update a real work object, such as travel plans.");
|
|
718
|
-
lines.push("- golden path 2, native mail and Screener: send and receive agent-native mail, confirm unknown senders enter Screener, get family authorization for allow/discard, verify sender policy, and confirm discarded mail is recoverable.");
|
|
719
|
-
lines.push(channel === "mcp"
|
|
720
|
-
? "- golden path 3, cross-sense reaction: use a mail-derived update or decision to trigger another configured sense when available."
|
|
721
|
-
: "- golden path 3, cross-sense reaction: use a mail-derived update or decision to trigger another configured sense, such as texting the family member on iMessage when BlueBubbles is available.");
|
|
722
|
-
lines.push("- golden path 4, Ouro Mailbox audit: inspect the read-only mailbox UI for imported mail, native inbound, Screener decisions, outbound draft/send records, and mail access logs.");
|
|
723
|
-
lines.push("mail validation question discipline: if a human asks a hypothetical such as 'if mail tools return No visible mail yet, what should you infer and what golden paths should you validate?', answer that hypothetical first. Do not replace the answer with current access logs, current mailbox status, or a claim that setup is already working unless the human separately asks for current state.");
|
|
724
|
-
lines.push("mail validation diagnostics: health checks, bounded mail tools, access logs, and UI inspection can support validation, but they are evidence inside those paths, not additional paths. If asked to name golden paths, do not include diagnostic commands, tool names, or status checks in the answer.");
|
|
725
|
-
lines.push("mail diagnostic naming: `ouro doctor` is installation-wide; do not invent `ouro doctor --agent <agent>`.");
|
|
726
|
-
lines.push("mail setup boundaries: do not invent `ouro auth verify --provider mail`, HEY OAuth, HEY IMAP, `ouro mcp call mail ...`, policy flags, autonomous sending, destructive mail actions, or production MX/DNS/forwarding changes. HEY export, HEY forwarding, DNS, MX cutover, sending, and destructive actions require explicit human confirmation.");
|
|
727
|
-
lines.push("voice setup truth: voice sessions are transcript-first local sessions, and spoken voice is identity-owned. Do not present multiple provider voices as equally canonical; `voice.openaiRealtimeVoice` is the current native Realtime phone voice, `voice.openaiRealtimeVoiceStyle` is the spoken identity target, and `voice.openaiRealtimeVoiceSpeed` is only a small cadence nudge. ElevenLabs credentials in portable runtime/config are legacy cascade compatibility unless a distinct non-redundant role is designed. Whisper.cpp CLI/model paths belong in the machine runtime item under `voice.whisperCliPath` and `voice.whisperModelPath`. Meeting links have URL intake and local BlackHole/Multi-Output readiness checks. Twilio phone is a transport under the same voice sense: `voice.twilioTransportMode=record-play` uses Twilio Record -> Whisper.cpp -> stable voice session -> tool-delivered speak/settle text -> ElevenLabs -> Twilio Play, while `voice.twilioTransportMode=media-stream` can run cascade or `voice.twilioConversationEngine=openai-realtime` for native speech-to-speech. OpenAI SIP is the target phone transport once provisioned; Ouro still owns stable voice sessions, transcripts, tools, routing, and call-control policy. Outbound phone calls are first-class Voice delivery: normal outward/tool contexts use `send_message` with `channel=voice`, private-runtime turns use `surface` with `channel=voice`, and both start a phone call to a trusted friend through the same Voice outbound path. Outbound calls require `voice.twilioFromNumber`. Live browser join/injection remains an explicit handoff edge until provider automation lands.");
|
|
709
|
+
lines.push("voice delivery: Outbound phone calls are first-class Voice delivery: normal outward/tool contexts use `send_message` with `channel=voice`, private-runtime turns use `surface` with `channel=voice`, and both start a phone call to a trusted friend through the same Voice outbound path. Outbound calls require `voice.twilioFromNumber`.");
|
|
728
710
|
if (channel === "cli") {
|
|
729
711
|
lines.push("cli is interactive: it is available when the user opens it, not something `ouro up` daemonizes.");
|
|
730
712
|
}
|
|
@@ -1349,7 +1331,7 @@ i follow this order:
|
|
|
1349
1331
|
2. create or find the evolution case, preserving packet ids and evidence refs before context fades
|
|
1350
1332
|
3. keep autonomy budgeted: read the case budget and authority before delegation, merge, release, install, or any sensitive mutation
|
|
1351
1333
|
4. try any ad-hoc workaround i can do right now with my existing tools
|
|
1352
|
-
5. if implementation is complex, create a branch and delegate through coding_spawn with the evolutionCaseId
|
|
1334
|
+
5. if implementation is complex, create a branch and delegate through coding_spawn with the evolutionCaseId
|
|
1353
1335
|
6. record the decision, verification commands/evidence, and delivery state instead of trusting chat history
|
|
1354
1336
|
7. push the branch and open a pr; merge only after ci and review are green; release, publish, or local install only when authority allows it
|
|
1355
1337
|
8. ratification is the closing ceremony: land the lesson in code, docs, Arc, Desk record, skill, or explicit none_needed, then close the case
|
|
@@ -1373,7 +1355,7 @@ no claiming verification i did not personally perform.
|
|
|
1373
1355
|
}
|
|
1374
1356
|
function ponderPacketSopsSection() {
|
|
1375
1357
|
return `## ponder packet sops
|
|
1376
|
-
- harness_friction: preserve the friction first, try ad-hoc repair now, then
|
|
1358
|
+
- harness_friction: preserve the friction first, try ad-hoc repair now, then follow the self-fix workflow in how i work, replay the original objective, and surface meaningful milestones back to the originating sense session.
|
|
1377
1359
|
- research: investigate the bounded question, gather evidence, and surface the answer or concrete artifact.
|
|
1378
1360
|
- reflection: ordinary private-runtime work with no engineering workflow implied.`;
|
|
1379
1361
|
}
|
|
@@ -1076,6 +1076,12 @@ exports.sessionToolDefinitions = [
|
|
|
1076
1076
|
detail: "live delivery unavailable right now; queued for the next active turn",
|
|
1077
1077
|
};
|
|
1078
1078
|
}
|
|
1079
|
+
if (result.forwardedTo) {
|
|
1080
|
+
return {
|
|
1081
|
+
status: "forwarded",
|
|
1082
|
+
detail: `forwarded to ${result.forwardedTo}, which runs Teams; it sends on its next sync, usually within a couple of minutes`,
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1079
1085
|
if (result.delivered) {
|
|
1080
1086
|
return {
|
|
1081
1087
|
status: "delivered_now",
|
|
@@ -186,6 +186,8 @@ async function routeSurfaceToFriend(agentName, friendId, content, queueItem, hin
|
|
|
186
186
|
const deliverTeamsOrQueue = async (target, detail) => {
|
|
187
187
|
const { sendTeamsOffTurn } = await Promise.resolve().then(() => __importStar(require("../senses/teams-off-turn")));
|
|
188
188
|
const sent = await sendTeamsOffTurn({ friendId: target.friendId, key: target.key, text: content, origin: "proactive" }, { agentRoot });
|
|
189
|
+
if (sent?.forwardedTo)
|
|
190
|
+
return { status: "queued", detail: `forwarded to ${sent.forwardedTo}, which runs Teams; it sends on its next sync` };
|
|
189
191
|
return sent?.delivered ? { status: "delivered", detail: "sent to Teams now" } : queueToSession(target, detail);
|
|
190
192
|
};
|
|
191
193
|
const deliverOrQueue = (target, detail) => target.channel === "telegram"
|
|
@@ -60,6 +60,14 @@ Promise.resolve().then(() => __importStar(require("../heart/runtime-credentials"
|
|
|
60
60
|
}
|
|
61
61
|
const { startTeamsApp } = await Promise.resolve().then(() => __importStar(require("./teams")));
|
|
62
62
|
startTeamsApp();
|
|
63
|
+
// This process runs only where Teams runs, so it sends what other presences forwarded here.
|
|
64
|
+
const [{ startTeamsOutboxDrain }, { sendTeamsOffTurn }, { getAgentRoot }] = await Promise.all([
|
|
65
|
+
Promise.resolve().then(() => __importStar(require("./teams-outbox"))),
|
|
66
|
+
Promise.resolve().then(() => __importStar(require("./teams-off-turn"))),
|
|
67
|
+
Promise.resolve().then(() => __importStar(require("../heart/identity"))),
|
|
68
|
+
]);
|
|
69
|
+
const agentRoot = getAgentRoot();
|
|
70
|
+
startTeamsOutboxDrain(agentRoot, (request) => sendTeamsOffTurn(request, { agentRoot, forward: false }));
|
|
63
71
|
})
|
|
64
72
|
.catch(async (error) => {
|
|
65
73
|
const { describeStartupError } = await Promise.resolve().then(() => __importStar(require("../heart/optional-packages")));
|
|
@@ -47,11 +47,15 @@ const presence_1 = require("../heart/daemon/presence");
|
|
|
47
47
|
const machine_identity_1 = require("../heart/machine-identity");
|
|
48
48
|
const runtime_1 = require("../nerves/runtime");
|
|
49
49
|
const owner_notice_1 = require("./shepherd/owner-notice");
|
|
50
|
+
const teams_outbox_1 = require("./teams-outbox");
|
|
50
51
|
const bots = new Map();
|
|
51
52
|
/** Forget built clients (tests). */
|
|
52
53
|
function resetOffTurnTeamsBots() {
|
|
53
54
|
bots.clear();
|
|
54
55
|
}
|
|
56
|
+
function errorText(error) {
|
|
57
|
+
return error instanceof Error ? error.message : String(error);
|
|
58
|
+
}
|
|
55
59
|
function skip(friendId, reason, level = "info", detail) {
|
|
56
60
|
(0, runtime_1.emitNervesEvent)({
|
|
57
61
|
level,
|
|
@@ -66,7 +70,7 @@ async function friendTenantFromStore(agentRoot, friendId) {
|
|
|
66
70
|
const friend = await new friends_1.FileFriendStore(path.join(agentRoot, "friends")).get(friendId).catch(() => null);
|
|
67
71
|
return friend?.externalIds.find((identity) => identity.provider === "aad" && !identity.externalId.startsWith("group:"))?.tenantId;
|
|
68
72
|
}
|
|
69
|
-
async function
|
|
73
|
+
async function offTurnTeamsRoute(deps) {
|
|
70
74
|
const enabled = deps.teamsEnabled ? deps.teamsEnabled() : (0, identity_1.loadAgentConfig)().senses?.teams?.enabled === true;
|
|
71
75
|
if (!enabled)
|
|
72
76
|
return skip(deps.friendId, "teams_disabled");
|
|
@@ -74,7 +78,7 @@ async function offTurnTeamsBotApi(deps) {
|
|
|
74
78
|
if (presence) {
|
|
75
79
|
const machineId = deps.machineId ? deps.machineId() : (0, machine_identity_1.readMachineIdentity)()?.machineId ?? null;
|
|
76
80
|
if (!machineId || !(0, presence_1.mayRunSense)(presence, machineId, "teams"))
|
|
77
|
-
return
|
|
81
|
+
return { kind: "elsewhere", presence, machineId };
|
|
78
82
|
}
|
|
79
83
|
const tenantId = await (deps.friendTenant ?? ((id) => friendTenantFromStore(deps.agentRoot, id)))(deps.friendId);
|
|
80
84
|
const config = (0, owner_notice_1.chooseTeamsBot)(tenantId, (deps.primary ?? config_1.getTeamsConfig)(), (deps.secondary ?? config_1.getTeamsSecondaryConfig)());
|
|
@@ -86,14 +90,20 @@ async function offTurnTeamsBotApi(deps) {
|
|
|
86
90
|
bots.set(config.clientId, bot);
|
|
87
91
|
}
|
|
88
92
|
try {
|
|
89
|
-
return await bot;
|
|
93
|
+
return { kind: "bot", botApi: await bot };
|
|
90
94
|
}
|
|
91
95
|
catch (error) {
|
|
92
96
|
// A client that could not be built is built again for the next send.
|
|
93
97
|
bots.delete(config.clientId);
|
|
94
|
-
return skip(deps.friendId, "bot_client_failed", "warn",
|
|
98
|
+
return skip(deps.friendId, "bot_client_failed", "warn", errorText(error));
|
|
95
99
|
}
|
|
96
100
|
}
|
|
101
|
+
async function offTurnTeamsBotApi(deps) {
|
|
102
|
+
const route = await offTurnTeamsRoute(deps);
|
|
103
|
+
if (route?.kind === "elsewhere")
|
|
104
|
+
return skip(deps.friendId, "teams_runs_elsewhere");
|
|
105
|
+
return route?.botApi ?? null;
|
|
106
|
+
}
|
|
97
107
|
/** A retried turn sends the same text again; within this window it counts as already sent. */
|
|
98
108
|
exports.OFF_TURN_REPEAT_WINDOW_MS = 15 * 60_000;
|
|
99
109
|
function ledgerPath(agentRoot) {
|
|
@@ -120,8 +130,34 @@ function writeLedger(agentRoot, ledger) {
|
|
|
120
130
|
fs.writeFileSync(temp, `${JSON.stringify(ledger)}\n`, { mode: 0o600 });
|
|
121
131
|
fs.renameSync(temp, target);
|
|
122
132
|
}
|
|
133
|
+
function forwardToTeamsOwner(request, presence, machineId, agentRoot, now) {
|
|
134
|
+
const ownerId = (0, presence_1.effectiveOwner)(presence, "teams");
|
|
135
|
+
const owner = (0, presence_1.rosterMachine)(presence, ownerId)?.name ?? ownerId;
|
|
136
|
+
try {
|
|
137
|
+
(0, teams_outbox_1.writeTeamsOutboxEntry)(agentRoot, {
|
|
138
|
+
friendId: request.friendId,
|
|
139
|
+
key: request.key,
|
|
140
|
+
text: request.text,
|
|
141
|
+
origin: request.origin,
|
|
142
|
+
...(request.intent ? { intent: request.intent } : {}),
|
|
143
|
+
...(request.authorizingSession ? { authorizingSession: request.authorizingSession } : {}),
|
|
144
|
+
fromMachineId: machineId ?? "unknown",
|
|
145
|
+
}, now);
|
|
146
|
+
}
|
|
147
|
+
catch (error) {
|
|
148
|
+
return skip(request.friendId, "outbox_write_failed", "warn", errorText(error));
|
|
149
|
+
}
|
|
150
|
+
(0, runtime_1.emitNervesEvent)({
|
|
151
|
+
component: "senses",
|
|
152
|
+
event: "senses.teams_forwarded_to_owner",
|
|
153
|
+
message: "this machine does not run Teams; forwarded the send to the machine that does",
|
|
154
|
+
meta: { friendId: request.friendId, owner },
|
|
155
|
+
});
|
|
156
|
+
return { delivered: false, forwardedTo: owner };
|
|
157
|
+
}
|
|
123
158
|
/**
|
|
124
|
-
* Sends to a Teams friend from outside a Teams turn.
|
|
159
|
+
* Sends to a Teams friend from outside a Teams turn. Where another machine runs Teams under the presence roster, the
|
|
160
|
+
* send is forwarded to it (`forwardedTo`). Null when there is no Teams client to send with and nowhere to forward, so
|
|
125
161
|
* the caller queues as before. The same text to the same friend within the repeat window is not sent twice.
|
|
126
162
|
*/
|
|
127
163
|
async function sendTeamsOffTurn(request, deps) {
|
|
@@ -137,9 +173,15 @@ async function sendTeamsOffTurn(request, deps) {
|
|
|
137
173
|
});
|
|
138
174
|
return { delivered: true };
|
|
139
175
|
}
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
176
|
+
const route = await offTurnTeamsRoute({ ...deps, friendId: request.friendId });
|
|
177
|
+
if (route?.kind === "elsewhere") {
|
|
178
|
+
if (deps.forward === false)
|
|
179
|
+
return skip(request.friendId, "teams_runs_elsewhere");
|
|
180
|
+
return forwardToTeamsOwner(request, route.presence, route.machineId, deps.agentRoot, now);
|
|
181
|
+
}
|
|
182
|
+
if (!route)
|
|
142
183
|
return null;
|
|
184
|
+
const botApi = route.botApi;
|
|
143
185
|
const send = deps.send ?? (await Promise.resolve().then(() => __importStar(require("./teams")))).sendProactiveTeamsMessageToSession;
|
|
144
186
|
const result = await send({
|
|
145
187
|
friendId: request.friendId,
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.TEAMS_OUTBOX_SETTLE_MS = exports.TEAMS_OUTBOX_DRAIN_INTERVAL_MS = exports.TEAMS_OUTBOX_MAX_PER_DRAIN = exports.TEAMS_OUTBOX_VERSION = void 0;
|
|
37
|
+
exports.teamsOutboxDir = teamsOutboxDir;
|
|
38
|
+
exports.teamsOutboxFailedDir = teamsOutboxFailedDir;
|
|
39
|
+
exports.writeTeamsOutboxEntry = writeTeamsOutboxEntry;
|
|
40
|
+
exports.parseTeamsOutboxEntry = parseTeamsOutboxEntry;
|
|
41
|
+
exports.drainTeamsOutbox = drainTeamsOutbox;
|
|
42
|
+
exports.startTeamsOutboxDrain = startTeamsOutboxDrain;
|
|
43
|
+
const crypto_1 = require("crypto");
|
|
44
|
+
const fs = __importStar(require("fs"));
|
|
45
|
+
const path = __importStar(require("path"));
|
|
46
|
+
const runtime_1 = require("../nerves/runtime");
|
|
47
|
+
const session_events_1 = require("../heart/session-events");
|
|
48
|
+
/**
|
|
49
|
+
* Teams sends that a presence without the Teams sense hands to the machine that runs it. A non-owner writes one file
|
|
50
|
+
* per message into `presence/outbox/` in the bundle, which git sync carries to the owner; the owner's Teams sense sends
|
|
51
|
+
* each one and deletes it, and the next sync carries the deletion back. Only non-owners create files and only the owner
|
|
52
|
+
* deletes them, so two machines never edit the same file.
|
|
53
|
+
*/
|
|
54
|
+
exports.TEAMS_OUTBOX_VERSION = 1;
|
|
55
|
+
/** Files sent per drain, so a backlog never holds the Teams sense for long. */
|
|
56
|
+
exports.TEAMS_OUTBOX_MAX_PER_DRAIN = 20;
|
|
57
|
+
exports.TEAMS_OUTBOX_DRAIN_INTERVAL_MS = 30_000;
|
|
58
|
+
/** A file that does not parse may still be arriving through a pull; it is quarantined only once it is this old. */
|
|
59
|
+
exports.TEAMS_OUTBOX_SETTLE_MS = 60_000;
|
|
60
|
+
function teamsOutboxDir(agentRoot) {
|
|
61
|
+
return path.join(agentRoot, "presence", "outbox");
|
|
62
|
+
}
|
|
63
|
+
function teamsOutboxFailedDir(agentRoot) {
|
|
64
|
+
return path.join(agentRoot, "state", "outbox-failed");
|
|
65
|
+
}
|
|
66
|
+
/** Writes one forwarded send; the temp file lives under the ignored `state/`, so a crash never leaves one for sync. */
|
|
67
|
+
function writeTeamsOutboxEntry(agentRoot, entry, nowMs) {
|
|
68
|
+
const record = { version: exports.TEAMS_OUTBOX_VERSION, ...entry, createdAt: new Date(nowMs).toISOString() };
|
|
69
|
+
const body = `${JSON.stringify(record, null, 2)}\n`;
|
|
70
|
+
const hash = (0, crypto_1.createHash)("sha256").update(body).digest("hex").slice(0, 8);
|
|
71
|
+
const name = `${nowMs}-${entry.fromMachineId.replace(/[^\w.-]/g, "_")}-${hash}.json`;
|
|
72
|
+
const dir = teamsOutboxDir(agentRoot);
|
|
73
|
+
const tempDir = path.join(agentRoot, "state", "outbox-tmp");
|
|
74
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
75
|
+
fs.mkdirSync(tempDir, { recursive: true });
|
|
76
|
+
const temp = path.join(tempDir, `${name}.${process.pid}.tmp`);
|
|
77
|
+
fs.writeFileSync(temp, body, "utf-8");
|
|
78
|
+
const target = path.join(dir, name);
|
|
79
|
+
fs.renameSync(temp, target);
|
|
80
|
+
return target;
|
|
81
|
+
}
|
|
82
|
+
function errorText(error) {
|
|
83
|
+
return error instanceof Error ? error.message : String(error);
|
|
84
|
+
}
|
|
85
|
+
function isRecord(value) {
|
|
86
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
87
|
+
}
|
|
88
|
+
function nonEmpty(value) {
|
|
89
|
+
return typeof value === "string" && value.length > 0;
|
|
90
|
+
}
|
|
91
|
+
function parseTeamsOutboxEntry(value) {
|
|
92
|
+
if (!isRecord(value) || value.version !== exports.TEAMS_OUTBOX_VERSION)
|
|
93
|
+
return null;
|
|
94
|
+
const { friendId, key, text, intent, origin, authorizingSession, fromMachineId, createdAt } = value;
|
|
95
|
+
if (!nonEmpty(friendId) || !nonEmpty(key) || !nonEmpty(text) || !nonEmpty(fromMachineId) || !nonEmpty(createdAt))
|
|
96
|
+
return null;
|
|
97
|
+
if (!session_events_1.OUTBOUND_ORIGINS.includes(origin))
|
|
98
|
+
return null;
|
|
99
|
+
if (intent !== undefined && intent !== "generic_outreach" && intent !== "explicit_cross_chat")
|
|
100
|
+
return null;
|
|
101
|
+
const entry = { version: exports.TEAMS_OUTBOX_VERSION, friendId, key, text, origin: origin, fromMachineId, createdAt };
|
|
102
|
+
if (intent)
|
|
103
|
+
entry.intent = intent;
|
|
104
|
+
if (authorizingSession !== undefined) {
|
|
105
|
+
if (!isRecord(authorizingSession) || !nonEmpty(authorizingSession.friendId) || !nonEmpty(authorizingSession.channel) || !nonEmpty(authorizingSession.key))
|
|
106
|
+
return null;
|
|
107
|
+
const { trustLevel } = authorizingSession;
|
|
108
|
+
if (trustLevel !== undefined && typeof trustLevel !== "string")
|
|
109
|
+
return null;
|
|
110
|
+
entry.authorizingSession = {
|
|
111
|
+
friendId: authorizingSession.friendId,
|
|
112
|
+
channel: authorizingSession.channel,
|
|
113
|
+
key: authorizingSession.key,
|
|
114
|
+
...(trustLevel !== undefined ? { trustLevel } : {}),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
return entry;
|
|
118
|
+
}
|
|
119
|
+
/** Teams refused these for good: sending again would fail the same way. */
|
|
120
|
+
const PERMANENT_REASONS = new Set(["missing_target", "friend_not_found", "trust_skip", "internal_content_blocked"]);
|
|
121
|
+
function quarantine(agentRoot, name, reason, friendId) {
|
|
122
|
+
const failedDir = teamsOutboxFailedDir(agentRoot);
|
|
123
|
+
fs.mkdirSync(failedDir, { recursive: true });
|
|
124
|
+
fs.renameSync(path.join(teamsOutboxDir(agentRoot), name), path.join(failedDir, name));
|
|
125
|
+
(0, runtime_1.emitNervesEvent)({
|
|
126
|
+
level: "warn",
|
|
127
|
+
component: "senses",
|
|
128
|
+
event: "senses.teams_outbox_quarantined",
|
|
129
|
+
message: "a forwarded Teams message cannot be sent; moved it out of the outbox",
|
|
130
|
+
meta: { file: name, reason, ...(friendId ? { friendId } : {}) },
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
async function drainOnce(agentRoot, send, options) {
|
|
134
|
+
const result = { delivered: 0, quarantined: 0, kept: 0 };
|
|
135
|
+
const dir = teamsOutboxDir(agentRoot);
|
|
136
|
+
let names;
|
|
137
|
+
try {
|
|
138
|
+
names = fs.readdirSync(dir).filter((name) => name.endsWith(".json")).sort();
|
|
139
|
+
}
|
|
140
|
+
catch {
|
|
141
|
+
return result;
|
|
142
|
+
}
|
|
143
|
+
const max = options.max ?? exports.TEAMS_OUTBOX_MAX_PER_DRAIN;
|
|
144
|
+
const now = options.now ?? Date.now;
|
|
145
|
+
result.kept = Math.max(0, names.length - max);
|
|
146
|
+
for (const [index, name] of names.slice(0, max).entries()) {
|
|
147
|
+
const file = path.join(dir, name);
|
|
148
|
+
let entry;
|
|
149
|
+
try {
|
|
150
|
+
entry = parseTeamsOutboxEntry(JSON.parse(fs.readFileSync(file, "utf-8")));
|
|
151
|
+
}
|
|
152
|
+
catch {
|
|
153
|
+
entry = null;
|
|
154
|
+
}
|
|
155
|
+
if (!entry) {
|
|
156
|
+
if (now() - fs.statSync(file).mtimeMs < exports.TEAMS_OUTBOX_SETTLE_MS) {
|
|
157
|
+
result.kept++;
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
quarantine(agentRoot, name, "unreadable");
|
|
161
|
+
result.quarantined++;
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
let sent;
|
|
165
|
+
try {
|
|
166
|
+
sent = await send({
|
|
167
|
+
friendId: entry.friendId,
|
|
168
|
+
key: entry.key,
|
|
169
|
+
text: entry.text,
|
|
170
|
+
origin: entry.origin,
|
|
171
|
+
...(entry.intent ? { intent: entry.intent } : {}),
|
|
172
|
+
...(entry.authorizingSession ? { authorizingSession: entry.authorizingSession } : {}),
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
catch (error) {
|
|
176
|
+
// One message that throws must not hold back the rest.
|
|
177
|
+
result.kept++;
|
|
178
|
+
(0, runtime_1.emitNervesEvent)({
|
|
179
|
+
level: "warn",
|
|
180
|
+
component: "senses",
|
|
181
|
+
event: "senses.teams_outbox_send_error",
|
|
182
|
+
message: "sending a forwarded Teams message threw; keeping it for the next drain",
|
|
183
|
+
meta: { file: name, friendId: entry.friendId, error: errorText(error) },
|
|
184
|
+
});
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
if (!sent) {
|
|
188
|
+
// No Teams client here now; every remaining file would wait for the same reason.
|
|
189
|
+
result.kept += Math.min(max, names.length) - index;
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
if (sent.delivered) {
|
|
193
|
+
fs.rmSync(file, { force: true });
|
|
194
|
+
result.delivered++;
|
|
195
|
+
(0, runtime_1.emitNervesEvent)({
|
|
196
|
+
component: "senses",
|
|
197
|
+
event: "senses.teams_outbox_delivered",
|
|
198
|
+
message: "sent a Teams message another presence forwarded here",
|
|
199
|
+
meta: { friendId: entry.friendId, fromMachineId: entry.fromMachineId },
|
|
200
|
+
});
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
if (PERMANENT_REASONS.has(sent.reason)) {
|
|
204
|
+
quarantine(agentRoot, name, sent.reason, entry.friendId);
|
|
205
|
+
result.quarantined++;
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
result.kept++;
|
|
209
|
+
}
|
|
210
|
+
return result;
|
|
211
|
+
}
|
|
212
|
+
/** Sends what other presences forwarded, oldest first. Never throws: whatever is left waits for the next drain. */
|
|
213
|
+
async function drainTeamsOutbox(agentRoot, send, options = {}) {
|
|
214
|
+
try {
|
|
215
|
+
return await drainOnce(agentRoot, send, options);
|
|
216
|
+
}
|
|
217
|
+
catch (error) {
|
|
218
|
+
(0, runtime_1.emitNervesEvent)({
|
|
219
|
+
level: "warn",
|
|
220
|
+
component: "senses",
|
|
221
|
+
event: "senses.teams_outbox_drain_error",
|
|
222
|
+
message: "draining the forwarded Teams messages failed; retrying on the next drain",
|
|
223
|
+
meta: { error: errorText(error) },
|
|
224
|
+
});
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/** Drains now and then on an interval, one drain at a time. Returns a stop function. */
|
|
229
|
+
function startTeamsOutboxDrain(agentRoot, send, intervalMs = exports.TEAMS_OUTBOX_DRAIN_INTERVAL_MS) {
|
|
230
|
+
let running = false;
|
|
231
|
+
const run = async () => {
|
|
232
|
+
if (running)
|
|
233
|
+
return;
|
|
234
|
+
running = true;
|
|
235
|
+
try {
|
|
236
|
+
await drainTeamsOutbox(agentRoot, send);
|
|
237
|
+
}
|
|
238
|
+
finally {
|
|
239
|
+
running = false;
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
void run();
|
|
243
|
+
const timer = setInterval(() => void run(), intervalMs);
|
|
244
|
+
timer.unref();
|
|
245
|
+
return () => clearInterval(timer);
|
|
246
|
+
}
|
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.1095",
|
|
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.1095",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
12
12
|
"@ouro.bot/friends": "0.1.0-alpha.18",
|
package/package.json
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Sense Setup
|
|
2
|
+
|
|
3
|
+
How I enable, set up, repair and validate a sense (Teams, BlueBubbles, A2A, Workbench, mail, voice). I load this skill before answering any setup, enablement or golden-path question about a sense, and follow it instead of guessing.
|
|
4
|
+
|
|
5
|
+
last_verified: 2026-11-11
|
|
6
|
+
|
|
7
|
+
## Any sense
|
|
8
|
+
|
|
9
|
+
If asked how to enable another sense, I explain the relevant agent.json senses entry and required agent-vault runtime/config fields instead of guessing.
|
|
10
|
+
|
|
11
|
+
## Teams
|
|
12
|
+
|
|
13
|
+
teams setup truth: run `ouro connect teams --agent <agent>` from the connect bay; it stores Teams runtime/config fields and enables `senses.teams.enabled`.
|
|
14
|
+
|
|
15
|
+
## BlueBubbles
|
|
16
|
+
|
|
17
|
+
bluebubbles setup truth: run `ouro connect bluebubbles --agent <agent>` from the connect bay; it stores this machine's BlueBubbles URL/password/listener config in the agent vault machine runtime item.
|
|
18
|
+
|
|
19
|
+
## A2A
|
|
20
|
+
|
|
21
|
+
a2a setup truth: run `ouro connect a2a --agent <agent>` to enable the A2A sense, `ouro a2a card --agent <agent> --base-url <public-url>` to publish an agent card, and `ouro a2a onboard --agent <agent> --card-url <peer-card-url>` to add a peer as an agent friend. A2A uses the existing friend trust model, not a separate trust registry.
|
|
22
|
+
|
|
23
|
+
## Workbench
|
|
24
|
+
|
|
25
|
+
workbench setup truth: Ouro Workbench is the local machine sense for terminal/TUI agents. When the Workbench app launches me as its boss it injects the `ouro_workbench` MCP into my turn at runtime (it spawns `ouro acp-serve --agent <me> --workbench-mcp`), so I receive the tools for the served session without any `agent.json` `mcpServers.ouro_workbench` entry — nothing is written to the bundle, so this stays path-free and cross-machine clean. The authoritative signal that Workbench is active is simply that the `workbench_*` tools are present in my toolset this turn; the sense table may read as disabled when no bundle entry exists, or as `stale_bundle_entry` when legacy bundle config needs cleanup, and neither state proves the runtime-injected tools are absent — I do NOT treat that as blocked or as a trust-level problem. I observe and queue auditable Workbench actions through `workbench_status`, `workbench_sense`, `workbench_transcript_tail`, `workbench_search_transcripts`, `workbench_recovery_drill`, and `workbench_request_action`; raw provider secrets remain in the agent vault, and Apple notarization is unrelated to local use. The explicit `ouro connect workbench --agent <me>` command verifies the installed MCP binary and removes stale Workbench bundle entries; it does not enable `senses.workbench` or write `mcpServers.ouro_workbench`.
|
|
26
|
+
|
|
27
|
+
## Mail
|
|
28
|
+
|
|
29
|
+
mail setup AX: if a human asks me to set up email, I do not hand them a terminal checklist. I guide the flow end-to-end: name the current phase, run agent-runnable commands myself with shell/tools when available, ask the human only for human-required facts or browser actions, wait for their reply, verify the result, then continue.
|
|
30
|
+
|
|
31
|
+
mail setup hard rule: never tell the human to run `ouro account ensure`, `ouro connect mail`, `ouro mail import-mbox`, `ouro status`, or `ouro doctor` for setup. Say what I am about to run, run it myself, and report the result. If my current surface cannot run shell/tools, I ask for a tool-capable Ouro setup session or companion to continue; I do not offload CLI operation to the human.
|
|
32
|
+
|
|
33
|
+
mail setup truth: Agent Mail uses Mailroom, not HEY OAuth/IMAP. For the full work substrate account, the agent-runnable command is `ouro account ensure --agent <agent> --owner-email <email> --source hey`; use `ouro connect mail --agent <agent> --owner-email <email> --source hey` for mail-only repair/provisioning, or `--no-delegated-source` for native-only mail. The detailed runbook is `docs/agent-mail-setup.md`.
|
|
34
|
+
|
|
35
|
+
mail setup truth: HEY archive bootstrap still depends on HEY's browser-only export, but I should not offload path-discovery ceremony to the human. If browser MCP/Playwright downloaded the archive, I first try `ouro mail import-mbox --discover --owner-email <email> --source hey --agent <agent>` so Ouro can find the sandboxed copy in a repo/worktree `.playwright-mcp`, the home `.playwright-mcp`, or Downloads. If discovery cannot find a unique file, then I ask the human for the local MBOX path and run `ouro mail import-mbox --file <path> --owner-email <email> --source hey --agent <agent>` myself.
|
|
36
|
+
|
|
37
|
+
### Validating mail
|
|
38
|
+
|
|
39
|
+
mail validation answer shape: when a human asks for Agent Mail golden paths, answer with only these four named paths before claiming setup works:
|
|
40
|
+
|
|
41
|
+
- golden path 1, HEY archive to work object: import the human-provided HEY MBOX and use delegated mail to update a real work object, such as travel plans.
|
|
42
|
+
- golden path 2, native mail and Screener: send and receive agent-native mail, confirm unknown senders enter Screener, get family authorization for allow/discard, verify sender policy, and confirm discarded mail is recoverable.
|
|
43
|
+
- golden path 3, cross-sense reaction: use a mail-derived update or decision to trigger another configured sense, such as texting the family member on iMessage when BlueBubbles is available.
|
|
44
|
+
- golden path 4, Ouro Mailbox audit: inspect the read-only mailbox UI for imported mail, native inbound, Screener decisions, outbound draft/send records, and mail access logs.
|
|
45
|
+
|
|
46
|
+
mail validation question discipline: if a human asks a hypothetical such as 'if mail tools return No visible mail yet, what should you infer and what golden paths should you validate?', answer that hypothetical first. Do not replace the answer with current access logs, current mailbox status, or a claim that setup is already working unless the human separately asks for current state.
|
|
47
|
+
|
|
48
|
+
mail validation diagnostics: health checks, bounded mail tools, access logs, and UI inspection can support validation, but they are evidence inside those paths, not additional paths. If asked to name golden paths, do not include diagnostic commands, tool names, or status checks in the answer.
|
|
49
|
+
|
|
50
|
+
mail diagnostic naming: `ouro doctor` is installation-wide; do not invent `ouro doctor --agent <agent>`.
|
|
51
|
+
|
|
52
|
+
mail setup boundaries: do not invent `ouro auth verify --provider mail`, HEY OAuth, HEY IMAP, `ouro mcp call mail ...`, policy flags, autonomous sending, destructive mail actions, or production MX/DNS/forwarding changes. HEY export, HEY forwarding, DNS, MX cutover, sending, and destructive actions require explicit human confirmation.
|
|
53
|
+
|
|
54
|
+
## Voice
|
|
55
|
+
|
|
56
|
+
voice setup truth: voice sessions are transcript-first local sessions, and spoken voice is identity-owned. Do not present multiple provider voices as equally canonical; `voice.openaiRealtimeVoice` is the current native Realtime phone voice, `voice.openaiRealtimeVoiceStyle` is the spoken identity target, and `voice.openaiRealtimeVoiceSpeed` is only a small cadence nudge. ElevenLabs credentials in portable runtime/config are legacy cascade compatibility unless a distinct non-redundant role is designed. Whisper.cpp CLI/model paths belong in the machine runtime item under `voice.whisperCliPath` and `voice.whisperModelPath`. Meeting links have URL intake and local BlackHole/Multi-Output readiness checks. Twilio phone is a transport under the same voice sense: `voice.twilioTransportMode=record-play` uses Twilio Record -> Whisper.cpp -> stable voice session -> tool-delivered speak/settle text -> ElevenLabs -> Twilio Play, while `voice.twilioTransportMode=media-stream` can run cascade or `voice.twilioConversationEngine=openai-realtime` for native speech-to-speech. OpenAI SIP is the target phone transport once provisioned; Ouro still owns stable voice sessions, transcripts, tools, routing, and call-control policy. Live browser join/injection remains an explicit handoff edge until provider automation lands.
|