Commit graph

24 commits

Author SHA1 Message Date
bal-spec
919f18898b fix: improve responsive layout for narrow viewports (iPad landscape)
- Tabs wrap to multiple rows instead of overflowing
- Reduced tab padding for compact fit
- Stats bar items wrap to 2 rows on narrow panels
- Activity log and diagnostics text wraps instead of overflowing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 20:39:20 -08:00
bal-spec
159661430d feat: make activity log scrollable and resizable
Replace hover/click expand with native resize: vertical.
User can drag the bottom edge to resize between 30px and 400px.
Always scrollable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 22:22:55 -08:00
bal-spec
bc5c52d228 feat: add Memory Extraction heading, move Select All next to Character Attachments
- Main tab gets "Memory Extraction" header with "Automatic" checkbox
- "Select all" moved inline with "Character Attachments" header
- New charMemory_sectionHeader CSS for label + control on same line

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 22:22:27 -08:00
bal-spec
ccb5d1230b feat: move diagnostics and activity log to always-visible panel sections
- Activity Log labeled and always visible below tab content
- Diagnostics moved from Main tab to permanent pane at bottom
- Main tab now only has Extract Now and View/Edit buttons
- Click activity log to expand, hover also works

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 22:16:07 -08:00
bal-spec
00451eed06 fix: force left-align text in View/Edit memory manager popup
Same inherited center-align issue from SillyTavern's popup dialog.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 22:14:02 -08:00
bal-spec
a4e39033b5 fix: force left-align text in consolidation dialog
SillyTavern's popup dialog centers content by default, causing
bullets and card text to appear centered instead of left-aligned.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 22:13:23 -08:00
bal-spec
6571d9f141 feat: complete UX refinements — migration, cleanup, changelog
Add settings migration from old consolidationPrompt to new
per-preset consolidationPrompts system. Update changelog with
all consolidation UX improvements for v1.3.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 21:52:21 -08:00
bal-spec
880cd822ce feat: add persistent mini activity log at panel bottom
Shows last 3 log entries always visible below tabs, expandable
on click for more history. Uses max-height transition for smooth
expand/collapse.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 21:46:46 -08:00
bal-spec
8d92d2961c feat: read-only cards by default with per-block edit toggle and themed headers
Consolidated blocks now display as clean read-only cards with numbered
theme headers. Pencil icon toggles individual blocks into edit mode
with text inputs, delete buttons, and add memory/block controls. Dialog
toolbar includes expandable prompt viewer matching the Consolidate tab.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 21:43:51 -08:00
bal-spec
e00631d074 feat: add expandable prompt viewer with per-preset editing
Replace hidden textarea + Custom option with <details> disclosure
showing the editable prompt for each strategy. Restore Default button
appears when a preset has been customized.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 21:41:24 -08:00
bal-spec
9a4c0052e8 fix: XSS in attribute escaping, remove duplicate counter, disable editor during re-run
- escapeHtml() now escapes quotes for safe use in attribute values
- Remove duplicate countBlocksBullets (identical to existing countMemories)
- Disable editor inputs during re-run LLM call to prevent lost edits

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 23:05:51 -08:00
bal-spec
39d1b43b48 feat: replace textarea editor with card-based editor in consolidation dialog
Each consolidated memory is now an editable card with text inputs instead
of raw text with <memory> tags. Supports add/delete bullets and blocks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 22:47:53 -08:00
bal-spec
972c446c21 feat: complete consolidation UX improvements (v1.3.0)
- Add box-sizing to consolidation editor textarea
- Bump version to 1.3.0
- Update changelog with new consolidation features

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 22:15:36 -08:00
bal-spec
8c459cf8fe feat: add interactive consolidation dialog with editable textarea
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 22:04:11 -08:00
bal-spec
4b43b598f3 feat: collapsible verbose log entries with pre-formatted text
Verbose log entries (prompts, responses) now render as collapsible
<details> sections with the first line as summary. Full content is
in a pre-formatted block with scroll, so it doesn't flood the log.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 19:48:36 -08:00
bal-spec
f4388f679c feat: batch extraction tab — extract memories from multiple chats
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 15:39:39 -08:00
bal-spec
3d541afaf2 Improve extraction prompt, add cooldown, tabbed panel, richer stats bar
- Replace default extraction prompt with higher-quality version: AVOID list
  (sexual mechanics, temporary states, dialogue), FOCUS categories, past
  tense rule, consolidation/fact-checking rules, better examples
- Bump default responseLength from 500 to 800
- Add minCooldownMinutes setting (default 10, range 0-30) to prevent
  rapid-fire extractions; manual extractions bypass cooldown
- Combine Activity Log + Diagnostics into single tabbed drawer
- Expand stats bar from 2 to 4 items: file, memory count, extraction
  progress (msgs/interval), cooldown timer with auto-refresh
- Fix stats bar showing stale count after Clear All Memories

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 10:25:27 -08:00
bal-spec
f3ab5ccfb8 Add activity log and fix extraction not running on chat switch
- Add collapsible Activity Log panel that shows timestamped events:
  chat switches, extraction state, message collection, LLM responses
- Fix bug where lastExtractedIndex advanced even when LLM returned
  NO_NEW_MEMORIES, preventing subsequent manual extraction from
  processing messages on a switched-to chat
- Now only advance lastExtractedIndex when memories are actually saved;
  always reset messagesSinceExtraction to prevent re-trigger loops

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 22:29:55 -08:00
bal-spec
868ab648dd Add per-message Extract Here, Pin Memory buttons and extraction indicators
- Refactor collectRecentMessages/extractMemories to accept optional endIndex
- Add brain button on character messages to extract memories up to that point
- Add bookmark button on all messages to pin text as memory without LLM
- Show subtle brain indicator on messages already processed by extraction
- Update indicators on chat switch and after extraction completes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 21:09:40 -08:00
bal-spec
93c6f7e94d Redesign memory format to <memory> tags, add per-bullet manager UX and vectorization diagnostics
Switch from ## Memory N headers to <memory chat="..." date="..."> tag blocks
with individual bullet parsing. Memory manager now shows grouped extraction
cards with per-bullet edit/delete controls. Stats bar simplified to file name
and total bullet count. Diagnostics panel shows vectorization status.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:03:55 -08:00
bal-spec
2e4ba2c936 Improve UX: rename to Character Memory, add stats bar, flatten layout
- Rename extension header from CharMemory to Character Memory
- Add always-visible stats bar showing active file, memory count, and
  extraction progress
- Flatten Memory Status sub-drawer so controls are immediately visible
- Merge Advanced section into Settings with separator dividers
- Rename buttons: Manage Memories → View / Edit, Reset → Clear All
  Memories (moved to Settings with danger styling)
- Add tooltips, helper text styling, and separator/danger-button CSS
- Call updateStatusDisplay after consolidation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 19:50:34 -08:00
bal-spec
dcda5c593c Add structured memory format, per-memory editing, and consolidation
- Memories now stored as numbered `## Memory N` entries with timestamps
- Auto-migrates existing flat-text memories to structured format
- "Manage Memories" popup with edit/delete per entry (replaces "View Memories")
- "Consolidate" button and `/consolidate-memories` slash command to merge duplicates via LLM
- Extraction now splits LLM output on `---` separators into individual entries

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 18:49:31 -08:00
bal-spec
ddec838b39 Fix View Memories popup and add WebLLM extraction source
- Use ST's callGenericPopup (properly imported) instead of broken fallback modal
- Add extraction source dropdown: Main LLM or WebLLM (browser-local)
- Remove unused fallback modal CSS

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 18:33:57 -08:00
bal-spec
072e744471 Initial commit: CharMemory extension for SillyTavern
Automatically extracts structured character memories from chat and stores
them in character-scoped Data Bank files for vector retrieval.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 18:08:27 -08:00