Commit Graph

27 Commits

Author SHA1 Message Date
Narasimha-sc
fde776dcf2 support-bot: implement customData state 2026-04-18 12:39:03 +00:00
Narasimha-sc
2e082f2b77 support-bot: Update state machine plans 2026-04-18 11:25:05 +00:00
Narasimha-sc
3b5920ab9c Update plan for state derivation 2026-04-18 10:28:35 +00:00
Narasimha-sc
84e8c41c09 support-bot: update plans to reflect latest changes 2026-04-17 20:47:43 +00:00
Narasimha-sc
cbf1bf3cfb support-bot: correct messages 2026-04-17 19:30:56 +00:00
Narasimha-sc
7915ab327e support-bot: /team message when grok present 2026-04-17 12:29:20 +00:00
Narasimha-sc
7136e12c18 cardFlushMinutes 15 -> cardFlushSeconds 300 2026-04-17 12:11:44 +00:00
Narasimha-sc
5ab7e81c14 support-bot: change messages 2026-04-17 12:08:52 +00:00
Narasimha-sc
3a6a024d59 Remove unused strings.ts 2026-04-17 12:01:43 +00:00
Narasimha-sc
0a0f146e52 Rename Grok AI -> Grok 2026-04-17 11:51:53 +00:00
Narasimha-sc
f6a5a8d824 support-bot: load context from context file 2026-04-17 11:13:20 +00:00
Narasimha-sc
6d69cf9a7c support-bot: add tests for Grok batch dedup and initial response gating
7 new tests covering the duplicate Grok reply fix:
- batch dedup: only last customer message per group triggers API call
- batch dedup: multi-group batches handled independently
- batch dedup: non-customer messages filtered from batch
- initial response gating: per-message responses suppressed during activateGrok
- gating clears: per-message responses resume after activation completes

Update implementation plan test catalog (122 → 129 tests).
2026-04-16 10:55:28 +00:00
Narasimha-sc
1f1777cbe1 support-bot: more improvemets 2026-04-16 10:23:19 +00:00
Narasimha-sc
8d597ba813 support-bot: use apiCreateMemberContact and apiSendMemberContactInvitation instead of raw commands
Replace sendChatCmd("/_create member contact ...") and sendChatCmd("/_invite member contact ...")
with the typed API methods added in simplex-chat-nodejs. Update plans and build script accordingly.
2026-04-10 12:33:30 +00:00
Narasimha-sc
ff5919e731 support-bot: implement stateless bot with cards, Grok, team flow, hardening
Complete rewrite of the support bot to stateless architecture:
- State derived from group composition + chat history (survives restarts)
- Card dashboard in team group with live status, preview, /join commands
- Two-profile architecture (main + Grok) with profileMutex serialization
- Grok join race condition fix via bufferedGrokInvitations
- Card preview: newest-first truncation, newline sanitization, sender prefixes
- Best-effort startup (invite link, group profile update)
- Team group preferences: directMessages, fullDelete, commands
- 122 tests across 27 suites
2026-04-10 12:33:30 +00:00
Narasimha-sc
bcafd829e5 support-bot: update implementation plan 2026-04-10 10:32:48 +00:00
Narasimha-sc
3a5808f6b4 support-bot: update product spec — complete state, /join team-only, card debouncing
- Group preferences applied once at creation, not on every startup
- /join restricted to team group only
- Team/Grok reply or reaction auto-completes conversation ()
- Customer message reverts to incomplete
- Card updates debounced globally with 15-minute batch flush
2026-04-10 10:32:48 +00:00
Narasimha-sc
c3bd36b205 support-bot: review and refine product spec 2026-04-10 10:32:48 +00:00
Narasimha-sc
8d76f4c65b support-bot: update plan 2026-04-10 10:32:48 +00:00
Narasimha-sc
98bea97d8e simplex-support-bot: update product design plan 2026-04-10 10:32:48 +00:00
Narasimha-sc
4408f335a9 simplex-support-bot: Update support plan to reflect current flow 2026-04-10 10:32:48 +00:00
Narasimha-sc
5711cb5a83 Further usability improvements 2026-04-10 10:32:48 +00:00
Narasimha-sc
dcbb499f0c apps: simplex-support-bot: Change Grok logo 2026-04-10 10:32:48 +00:00
Narasimha-sc
f25f5cbf0a apps: support-bot /add command & fixes 2026-04-10 10:32:48 +00:00
Narasimha-sc
ce9dba8ee1 support-bot: Fix basic functionality 2026-04-10 10:32:48 +00:00
Narasimha-sc
0d290eb7b0 apps: support bot relocate 2026-04-10 10:32:48 +00:00
Narasimha-sc
baa567e854 Relocate plans 2026-04-10 10:32:48 +00:00