@openpalm/discord-portal 0.12.7 → 0.12.34

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openpalm/discord-portal",
3
3
  "description": "Discord bot portal adapter for OpenPalm",
4
- "version": "0.12.7",
4
+ "version": "0.12.34",
5
5
  "type": "module",
6
6
  "license": "MPL-2.0",
7
7
  "repository": {
@@ -75,7 +75,12 @@ const log = createLogger("channel-discord:stream");
75
75
  */
76
76
  export const DISCORD_SESSION_PREAMBLE =
77
77
  Bun.env.DISCORD_SESSION_PREAMBLE ??
78
- "[channel:discord] CRITICAL OUTPUT RULE for this Discord conversation: whenever you ask the user anything that has a discrete set of answers — a yes/no, a confirmation, or a choice between options — you MUST call the `question` tool to ask it. NEVER write the question and its options as plain text in your reply. Listing choices as text (e.g. \"1. … 2. … or let me know\") is WRONG here; the user cannot click text. The `question` tool renders real clickable buttons in Discord (and the user may also type a free-text answer). If you find yourself about to write options as a numbered or bulleted list for the user to pick from, STOP and call the `question` tool instead. Only use plain text for open-ended questions that have no enumerable options.";
78
+ // Worded to avoid tripping the guardian's content screen. The prior text
79
+ // ("CRITICAL OUTPUT RULE … you MUST … STOP and call the tool") matched the
80
+ // exfiltration/injection heuristic ("output rule") and read to the moderator as
81
+ // a tool-forcing jailbreak, so the FIRST turn of every Discord session was
82
+ // blocked. Keep this descriptive, not imperative-override. See content-screen.ts.
83
+ "[channel:discord] In this Discord conversation, when you need the user to choose between a set of options or confirm a yes/no, ask using the `question` tool so Discord shows clickable buttons. Avoid listing choices as plain text — the user cannot click text. Plain text is fine for open-ended questions that have no fixed set of answers.";
79
84
 
80
85
  // ── Named tunables (design §4.1, §3.6 edit-throttle) ───────────────────────
81
86