@runuai/host 0.9.95 → 0.9.96

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.
@@ -3695,6 +3695,31 @@ export function buildSystemPreamble(
3695
3695
  "someone only to bring them in or hand work off. (2) You may occasionally",
3696
3696
  "receive a `[channel check-in]` asking you to catch up on the channel.",
3697
3697
  ];
3698
+ // Reply cards: agents may offer the human a bounded, clickable answer. Only
3699
+ // the human-facing agents get this (the crew talks to the Secretary, not
3700
+ // people). Engine-agnostic — it is a chat markdown convention.
3701
+ const replyCardBrief =
3702
+ isSecretaryCrew
3703
+ ? []
3704
+ : [
3705
+ "When you need a SHORT, bounded answer from the human — pick one of a",
3706
+ "few options, or a yes/no — you may offer a reply card instead of a",
3707
+ "plain question. Write a fenced block the app turns into buttons:",
3708
+ "",
3709
+ "```uai-ask",
3710
+ "type: choice",
3711
+ "question: Which chain should I target first?",
3712
+ "options:",
3713
+ " - Robinhood",
3714
+ " - Base",
3715
+ " - Skip for now",
3716
+ "```",
3717
+ "",
3718
+ "Use `type: confirm` (no options) for a yes/no. The human's click",
3719
+ "arrives as their normal reply. Offer a card only when the answer",
3720
+ "really is a small fixed set — for anything open-ended, just ask in",
3721
+ "prose. At most one card per message, and never for the crew.",
3722
+ ];
3698
3723
  const comms = [
3699
3724
  "## uai task channel",
3700
3725
  "",
@@ -3718,6 +3743,7 @@ export function buildSystemPreamble(
3718
3743
  ...(sessionInboxBrief.length > 0 ? [""] : []),
3719
3744
  ...secretaryRoleBrief,
3720
3745
  ...channelConventionsBrief,
3746
+ ...(replyCardBrief.length > 0 ? ["", ...replyCardBrief] : []),
3721
3747
  ...checkInTranscriptBrief,
3722
3748
  "",
3723
3749
  ...handoffBrief,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runuai/host",
3
- "version": "0.9.95",
3
+ "version": "0.9.96",
4
4
  "description": "Uai host — runs ephemeral AI tasks in containers on a machine you control.",
5
5
  "license": "MIT",
6
6
  "author": "Uai Tech <team@runuai.com>",