@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.
@@ -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-BBM5EysT.js"></script>
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: "Must be exactly CONFIRM_SEND." },
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: "Must not be true; autonomous sends are refused." },
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", "confirmation", "reason"],
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
- `Mail sent: ${sent.id}`,
496
- `transport: ${sent.transport}`,
497
- `sentAt: ${sent.sentAt}`,
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.469",
3
+ "version": "0.1.0-alpha.470",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",