import { VersionInfo } from '@start9labs/start-sdk' // Email-proposal review over Matrix + a dedicated agent role. The CRM-drafted "proposed grid // notes" (Email Capture panel) gain (1) a click-to-view inline popup of the source email // (from/to/cc/date/subject/scrollable body, via the existing /api/email/detail) so a reviewer // can judge the note against the email, and (2) a CRM→Matrix review bridge: the intake bot // (Spark) pulls pending proposals, posts a review card to a dedicated review room, and relays // the human's in-thread yes/no/edit back to the CRM — with the web panel and Matrix kept in // sync (decide on either; the other surface reflects it). New side table email_proposal_matrix // (email-integration migration 0003, additive + idempotent — CREATE TABLE IF NOT EXISTS) holds // the per-proposal Matrix thread state. New bot-or-admin endpoints under /api/intake/ // email-proposals (list/mark/decide), gated by a new 'bot' role (authenticated, never admin). // The bot's poll loop + review-room handling ship on the Spark (git pull + restart), not here. export const v_0_1_0_89 = VersionInfo.of({ version: '0.1.0:89', releaseNotes: { en_US: [ 'Email Capture: click a proposed grid note to see the source email inline', '(from/to/cc/date/subject + body) before approving, and review/approve/dismiss/edit', 'proposals from a dedicated Matrix room on mobile — decisions sync both ways.', ].join(' '), }, migrations: { up: async () => {}, down: async () => {} }, })