@ouro.bot/cli 0.1.0-alpha.469 → 0.1.0-alpha.470
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 +8 -0
- package/dist/heart/daemon/doctor.js +51 -0
- package/dist/heart/outlook/readers/mail.js +35 -1
- package/dist/mailroom/autonomy.js +209 -0
- package/dist/mailroom/core.js +88 -0
- package/dist/mailroom/outbound.js +191 -12
- package/dist/mailroom/reader.js +4 -0
- package/dist/outlook-ui/assets/{index-BBM5EysT.js → index-BbOjyIms.js} +14 -14
- package/dist/outlook-ui/index.html +1 -1
- package/dist/repertoire/tools-mail.js +17 -6
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="color-scheme" content="dark" />
|
|
7
7
|
<title>Ouro Outlook</title>
|
|
8
8
|
<meta name="description" content="The daemon-hosted shared orientation surface for agents alive on this machine." />
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-BbOjyIms.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-BPr5vNuM.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
@@ -455,11 +455,11 @@ exports.mailToolDefinitions = [
|
|
|
455
455
|
type: "object",
|
|
456
456
|
properties: {
|
|
457
457
|
draft_id: { type: "string", description: "Draft id from mail_compose." },
|
|
458
|
-
confirmation: { type: "string", description: "
|
|
458
|
+
confirmation: { type: "string", description: "Required for explicit confirmation sends; must be exactly CONFIRM_SEND." },
|
|
459
459
|
reason: { type: "string", description: "Why this send is authorized. Logged for audit." },
|
|
460
|
-
autonomous: { type: "string", enum: ["true", "false"], description: "
|
|
460
|
+
autonomous: { type: "string", enum: ["true", "false"], description: "Use true only for native-agent mail when a configured autonomy policy allows the recipients." },
|
|
461
461
|
},
|
|
462
|
-
required: ["draft_id", "
|
|
462
|
+
required: ["draft_id", "reason"],
|
|
463
463
|
},
|
|
464
464
|
},
|
|
465
465
|
},
|
|
@@ -483,6 +483,7 @@ exports.mailToolDefinitions = [
|
|
|
483
483
|
transport: (0, outbound_1.resolveOutboundTransport)(resolved.config),
|
|
484
484
|
confirmation: args.confirmation ?? "",
|
|
485
485
|
autonomous: args.autonomous === "true",
|
|
486
|
+
autonomyPolicy: resolved.config.autonomousSendPolicy,
|
|
486
487
|
actor: actorFromContext(ctx, resolved.agentName),
|
|
487
488
|
reason: args.reason ?? "confirmed outbound send",
|
|
488
489
|
});
|
|
@@ -490,11 +491,21 @@ exports.mailToolDefinitions = [
|
|
|
490
491
|
agentId: resolved.agentName,
|
|
491
492
|
tool: "mail_send",
|
|
492
493
|
reason: args.reason || "confirmed outbound send",
|
|
494
|
+
mailboxRole: "agent-native-mailbox",
|
|
495
|
+
compartmentKind: "native",
|
|
496
|
+
ownerEmail: null,
|
|
497
|
+
source: null,
|
|
493
498
|
});
|
|
499
|
+
const submittedOrSentAt = sent.sentAt ?? sent.submittedAt ?? sent.updatedAt;
|
|
494
500
|
return [
|
|
495
|
-
|
|
496
|
-
`
|
|
497
|
-
`
|
|
501
|
+
`${sent.status === "submitted" ? "Mail submitted" : "Mail sent"}: ${sent.id}`,
|
|
502
|
+
`status: ${sent.status}`,
|
|
503
|
+
`mode: ${sent.sendMode}`,
|
|
504
|
+
"send authority: native agent mailbox",
|
|
505
|
+
`policy decision: ${sent.policyDecision?.code ?? "unknown"}`,
|
|
506
|
+
`policy fallback: ${sent.policyDecision?.fallback ?? "unknown"}`,
|
|
507
|
+
`transport: ${sent.transport ?? sent.provider ?? "unknown"}`,
|
|
508
|
+
`time: ${submittedOrSentAt}`,
|
|
498
509
|
`to: ${sent.to.join(", ")}`,
|
|
499
510
|
].join("\n");
|
|
500
511
|
}
|