ai_co_discuss 0.6.11 → 0.6.13

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/web/app.js CHANGED
@@ -4132,10 +4132,11 @@ function room_with_intervention(room, { type, id, reason }) {
4132
4132
  return { ...room, intervention_notes: { ...notes, [type]: { ...notes?.[type], [id]: reason } } };
4133
4133
  }
4134
4134
  /** Open MOSS's window with a rule quoted in the composer; the owner adds a line and sends it. Nothing is sent by itself. */
4135
- async function chat_with_moss(text) {
4135
+ async function chat_with_moss(text, raw = false) {
4136
4136
  await open_steward();
4137
4137
  if (!state.room || state.room.system_kind !== "steward") return;
4138
- const quoted = t("关于这条经验:{text}", { text: String(text || "").replace(/\n+/g, " ") });
4138
+ // raw: the caller wrote the whole message (a merge conflict to talk through); else it quotes one rule.
4139
+ const quoted = raw ? String(text || "") : t("关于这条经验:{text}", { text: String(text || "").replace(/\n+/g, " ") });
4139
4140
  const current = element("message-input").value.trim();
4140
4141
  fill_composer(current ? `${current}\n\n${quoted}\n` : `${quoted}\n`, state.attachment_drafts, state.reply_to ? { id: state.reply_to, label: element("reply-label").textContent } : null);
4141
4142
  element("message-input").focus();