First cut

This commit is contained in:
kadil
2026-04-17 16:08:31 -05:00
parent d10105ac00
commit 4ee4cb8e7c
58 changed files with 3243 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
export const SMS_TEMPLATES = {
PROPOSAL_SUMMARY: (summary: string, proposalId: string) =>
`Proposed change: ${summary}\n\nReply YES to apply or NO to cancel.`,
APPLIED: (summary: string) =>
`Done! ${summary} Your site will update shortly.`,
REJECTED: () =>
`Got it — change cancelled. Send a new message anytime.`,
LLM_UNAVAILABLE: () =>
`Sorry, I couldn't process that right now. Please try again in a few minutes.`,
ROUTING_AMBIGUOUS: (options: string) =>
`I'm not sure which section you mean. Did you mean: ${options}? Reply with the number or name.`,
ROUTING_NO_MATCH: (list: string) =>
`I couldn't find a section matching that request. Your current sections are: ${list}. Try again?`,
PROPOSAL_EXPIRED: () =>
`That change request has expired. Please send your edit again to start over.`,
PROPOSAL_ALREADY_APPLIED: () =>
`That change was already applied.`,
INVALID_CONFIRM: () =>
`Reply YES to apply or NO to cancel.`,
RATE_LIMITED: () =>
`You've sent several requests recently. Please wait a few minutes before trying again.`,
MMS_NOT_SUPPORTED: () =>
`Image uploads aren't supported yet. Please describe your change in text.`,
} as const;