Commit Graph

593 Commits

Author SHA1 Message Date
IDeathByte f5825a7a24 Add russian to settings.html 2026-01-13 19:00:26 +05:00
Spicy Marinara c14250e467 Merge pull request #104 from IDeathByte/main
Ru language
2026-01-13 13:53:27 +01:00
Spicy_Marinara e8edc42164 v3.6.0 - Bug fixes and number display mode for stats
- Fixed custom status fields not being sent to prompts or parsed
- Fixed date format selection not working beyond default format
- Fixed widget text overflow issues with minimal scrollbars
- Added ability to display stats as numbers with custom max values instead of percentages
- Enabled desktop strip widgets by default
- Removed icon from Desktop Collapsed Strip Widgets heading
v3.6.0
2026-01-13 13:52:18 +01:00
IDeathByte acf119d4b4 Add russian language 2026-01-13 14:35:06 +05:00
IDeathByte 6582095cc1 add russian 2026-01-13 13:51:16 +05:00
IDeathByte 8aaf258ba3 add russian 2026-01-13 13:50:33 +05:00
IDeathByte 7c1c140a2a add russian 2026-01-13 13:49:48 +05:00
Spicy Marinara ce668c4793 Merge pull request #101 from tomt610/feature/desktop-strip-widgets
feat: Add desktop collapsed strip widgets
2026-01-13 09:35:51 +01:00
tomt610 3d6db2b0e9 Fix strip refresh button visibility based on generation mode 2026-01-13 00:55:45 +00:00
tomt610 2151b2dae3 fix: Use absolute positioning for strip widget container to fill full panel height 2026-01-13 00:40:26 +00:00
tomt610 4644e0fd93 feat: Add desktop collapsed strip widgets
- Add new desktopStripWidgets settings in state.js with toggles for weather, clock, date, location, stats, and attributes
- Add strip widget container in template.html with animated clock face
- Add CSS styles for strip widgets with wider collapsed panel (5rem), vertical layout, and theme support
- Implement updateStripWidgets() in desktop.js to populate widgets from tracker data
- Wire up settings handlers in index.js for all strip widget toggles
- Call updateStripWidgets() on data updates in sillytavern.js integration
- Trigger widget update when panel is collapsed in layout.js

The strip widgets display compact stats/info in the collapsed panel strip on desktop, similar to mobile FAB widgets, eliminating the need to expand the panel to view basic data.
2026-01-13 00:08:00 +00:00
Spicy Marinara b18aaee0c0 Merge pull request #100 from tomt610/feature/improved-clear-weather-effects
Feature/improved clear weather effects
2026-01-13 00:23:34 +01:00
tomt610 0066b61746 Add sun/moon traveling across sky based on hour
- Sun position calculated from hour (5 AM - 8 PM arc trajectory)
- Moon position calculated from hour (8 PM - 5 AM arc trajectory)
- Celestial bodies move smoothly without resetting particles
- Reduced opacity for sun/moon in foreground mode for readability
- Fixed mobile viewport units (dvh/vw) for proper positioning
2026-01-12 23:21:19 +00:00
tomt610 6e9ff9812d Fix mobile view for weather effects
- Replace % units with dvh/vw for dynamic viewport sizing
- Fix stars, fireflies, dust motes, and light orbs positioning
- Fix moon and moon glow positioning to use dvh/vw
- Update snowfall and rainfall animations to use 100dvh
- Ensures proper distribution across full mobile viewport
2026-01-12 22:54:46 +00:00
tomt610 3797e21912 Improve clear weather effects with day/night cycle
- Replace blinking sunray lines with pleasant daytime effects:
  - Warm ambient glow overlay
  - Floating golden dust motes/pollen particles
  - Soft drifting light orbs
  - Subtle lens flare in corner

- Add automatic nighttime detection from Info Box time data:
  - Parses various time formats (12h, 24h, descriptive)
  - Night mode activates 8 PM - 5 AM

- Add nighttime clear weather effects:
  - Moon with realistic shading and glow (positioned left)
  - Twinkling stars with bright star cross-flares
  - Floating fireflies with gentle glow
  - Occasional shooting star animation

- Add mobile optimizations for all new effects
2026-01-12 22:45:48 +00:00
Spicy Marinara 7bac0d48f9 Merge pull request #99 from tomt610/fix/swipe-delete-state-restoration
Fix/swipe delete state restoration
2026-01-12 20:30:35 +01:00
Spicy Marinara 7081137fe3 Merge pull request #98 from tomt610/feature/infobox-edit-start-time
feat: add editable start time to infobox time widget
2026-01-12 20:29:56 +01:00
tomt610 3ceb64c3bd Fix RPG state restoration on message delete and swipe
- Add MESSAGE_DELETED event handler to restore state from last assistant message
- Fix swipe to use previous message's data for LLM context (prevents time/story advancing)
- Update UI to show rolled-back state immediately when triggering new swipe
- Handle edge cases: empty chat, first message swipe, no previous RPG data
2026-01-12 17:46:46 +00:00
tomt610 831c230b36 feat: add editable start time to infobox time widget 2026-01-12 13:12:38 +00:00
Spicy Marinara 3a6acb37be Merge pull request #96 from tomt610/fix/fab-spinning-together-mode
fix(fab): prevent spinning in together mode and update widgets
2026-01-12 02:38:48 +01:00
tomt610 ce8db67de4 fix(fab): prevent spinning in together mode and update widgets
- Remove FAB loading state trigger for together mode since no extra API request is made
- Add updateFabWidgets() call after rendering in together mode to update FAB display
- FAB spinning now correctly only occurs for separate/external modes
2026-01-11 23:26:01 +00:00
Spicy Marinara 0262218ad0 Merge pull request #95 from tomt610/feature/send-all-enabled-on-refresh
feat(history): Add 'Send All Enabled Stats on Refresh' option
2026-01-11 23:46:52 +01:00
tomt610 3fc2cfa8ab feat(history): Add 'Send All Enabled Stats on Refresh' option
Adds a new toggle in Edit Trackers -> History Persistence that allows
sending all enabled stats from the preset when using Refresh RPG Info,
instead of only the individually selected persistInHistory fields.

This helps the separate update AI understand the full context of what
has already been tracked and what changes it needs to account for,
improving coherence in stat updates without cluttering the main chat
history with excessive context data.
2026-01-11 22:01:26 +00:00
Spicy_Marinara c614f7b8dc v3.5.0: Weather effects improvements and dice roll fixes
- Refactor weather effects toggles to radio buttons in settings
  - Replace weatherEffectsForeground with weatherBackground/weatherForeground
  - Add Background/Foreground position options as radio toggles
  - Remove weather foreground toggle from main panel
- Fix dice roll to work independently of RPG attributes
  - Dice rolls now sent regardless of attribute settings
  - Adjust prompt wording based on whether attributes are enabled
- Improve History Persistence UI styling
  - Update input/select CSS to match tracker editor
  - Fix alignment issues
- Add theme-based radio button styling
  - Radio buttons now use theme colors instead of default blue
  - Support for all themes (default, sci-fi, fantasy, cyberpunk, custom)
- Update weather effects z-index logic for both modes
- Bump version to v3.5.0
2026-01-11 20:05:35 +01:00
Spicy_Marinara 46e6de0eba Update apiClient.js 2026-01-11 19:35:26 +01:00
Spicy Marinara e2a48a4075 Merge pull request #94 from tomt610/feature/weather-foreground-option
feat: Add weather foreground option (experimental)
2026-01-11 19:33:14 +01:00
Spicy Marinara 8d41010509 Merge pull request #93 from tomt610/fix/default-prompt
fix(presets): defer association changes until Save & Apply
2026-01-11 19:33:01 +01:00
Spicy Marinara 95d5616141 Merge pull request #92 from tomt610/fix/historical-context-injection
fix: Historical context injection for both text and chat completion p…
2026-01-11 19:32:33 +01:00
Spicy_Marinara 5918e38ade v3.2.1 2026-01-11 19:19:52 +01:00
tomt610 bb3028adbb feat: Add weather foreground option (experimental)
- Add weatherEffectsForeground setting to render weather effects in front of chat
- Add UI toggle in main panel (visible when Dynamic Weather toggle is visible)
- Apply z-index 9998 when foreground option is enabled
- Fix weather container sizing with viewport units (100vh/100dvh) for better mobile support
2026-01-11 15:38:47 +00:00
tomt610 bc4f50a82f fix(presets): defer association changes until Save & Apply
- Add isAssociatedWithCurrentPreset() helper to check if entity is associated with the CURRENT preset (not just any preset)
- Fix checkbox to correctly reflect association with currently selected preset
- Introduce tempAssociation state to track pending association changes
- Only save association changes when clicking Save & Apply, not on preset switch
- Discard pending association changes when clicking X/Cancel
- Auto-update association when switching presets if checkbox was checked
- Improve toast messages to clarify when changes will be applied

Fixes issue where checkbox showed incorrect state and association was saved immediately without waiting for Save & Apply.
2026-01-11 14:58:17 +00:00
tomt610 126cfedaa4 fix: Historical context injection for both text and chat completion prompts
- Fix swipe data retrieval to check both message.extra and swipe_info sources
- Fix user_message_end position to inject into preceding (not next) user message
- Add ordered content-matching for text completion prompt injection
- Add ordered content-matching for chat completion prompt injection
- Remove unnecessary HTML entity normalization
- Clean up unused imports and variables
2026-01-11 13:45:42 +00:00
Spicy_Marinara f3deead868 v3.4.1: Fix Present Characters not included in <previous> section for separate generation mode
- Fixed bug where Present Characters data wasn't appearing in the <previous> section when generating new trackers in separate mode
- Root cause: committedTrackerData.characterThoughts is stored as a JS array, not a JSON string
- Solution: Check data type before parsing - handle both object/array and string formats
- Present Characters data now correctly included in unified previous tracker JSON regardless of showCharacterThoughts setting
v3.4.1
2026-01-11 00:17:49 +01:00
Spicy_Marinara d5d649f122 Update promptBuilder.js 2026-01-10 21:21:25 +01:00
Spicy Marinara 0cd764c39b Merge pull request #90 from tomt610/feature/history-persistence
Feature/history persistence
2026-01-10 20:35:03 +01:00
tomt610 b9a15722d6 Fix history injection for prewarm extensions
- Use persistent event listeners instead of once() to inject into ALL generations
- Don't clear context map on GENERATION_ENDED so prewarm gets the same context
- Remove unused onGenerationEndedCleanup function
2026-01-10 19:33:26 +00:00
Spicy_Marinara 995f3a7a98 Add Deception System and CYOA features with toggles, custom prompts, and proper injection ordering 2026-01-10 20:24:41 +01:00
tomt610 db97f012b0 Refactor history injection to modify prompts instead of chat messages
This prevents any risk of injected context being accidentally saved to the chat.
Instead of modifying chat[].mes directly, we now:
1. Build a context map during GENERATION_STARTED
2. Inject into the prompt string (GENERATE_AFTER_COMBINE_PROMPTS) for text completion
3. Inject into the message array (CHAT_COMPLETION_PROMPT_READY) for chat completion

The original chat messages are never modified.
2026-01-10 19:10:33 +00:00
Spicy_Marinara 681b8ba2bc Merge remote-tracking branch 'tomt610/feature/fab-widgets' into test-pr90-pr91-combined 2026-01-10 16:47:15 +01:00
Spicy_Marinara 2d961936c2 Merge remote-tracking branch 'tomt610/feature/history-persistence' into test-pr90-pr91-combined 2026-01-10 16:47:12 +01:00
Spicy_Marinara b534bd4c71 Update README.md 2026-01-10 16:41:27 +01:00
tomt610 73cbb27713 feat(mobile): Add FAB widgets with info display around toggle button
- Add 8-position widget system around mobile FAB button (N, NE, E, SE, S, SW, W, NW)
- Display weather icon, weather description, time, date, location around FAB
- Show stats and RPG attributes in larger West/Northwest positions
- Add animated clock face matching main panel design
- Implement expandable text on hover/tap for truncated content
- Add FAB spinner animation during API requests
- Respect tracker preset settings for filtering displayed stats/attributes
- Sync FAB data with lastGeneratedData for real-time updates
- Hide FAB widgets on desktop viewport (>1000px) and when panel is open
- Add settings UI for enabling/disabling individual widget types
- Update FAB widgets on manual edits in tracker editor and stats panels
2026-01-10 13:25:40 +00:00
tomt610 db2bed16a7 Clean up debug logging in history injection 2026-01-09 21:14:21 +00:00
tomt610 ecb5d74d6e Enhance preset saving and loading to include historyPersistence 2026-01-09 21:05:11 +00:00
tomt610 fea59efe4e Refactor historical context handling and remove unused initialization function 2026-01-09 20:51:28 +00:00
tomt610 b43cca5b6f Refactor message injection options in promptBuilder and trackerEditor 2026-01-09 20:24:07 +00:00
tomt610 94f562f1bb Refactor message restoration logic to use a one-time event listener 2026-01-09 20:20:04 +00:00
tomt610 3d5fc5fee1 Refactor historical context injection logic to support dynamic message indexing based on injection position 2026-01-09 20:10:21 +00:00
tomt610 98ef751a9f Implement historical context injection for chat messages and enhance settings for persistence 2026-01-09 19:39:05 +00:00
Spicy_Marinara f5641ec1f0 Merge branch 'pr-88' 2026-01-09 12:11:51 +01:00