Commit Graph

17 Commits

Author SHA1 Message Date
Spicy_Marinara a4bdfd8f4c Fix regex module import paths - remove duplicate /scripts/ in path 2025-10-14 21:10:51 +02:00
Spicy_Marinara 737b580be8 Support both global and user-specific extension installation paths
- Dynamically detect extension location using import.meta.url
- Support installation in public/extensions (install for all users)
- Support installation in data/default-user/extensions (install just for me)
- Automatically sets correct extensionFolderPath based on detected location
2025-10-14 19:24:25 +02:00
Spicy_Marinara ea10d1eaac Add collapsible panel, fix inventory scrolling, adjust toggle margins
- Add collapse/expand toggle button to side panels (left/right positions)
- Button shows on the outside edge of the panel with chevron icon
- Panel collapses to 40px vertical bar, button icon direction updates based on position
- Fix inventory box stretching issue by adding max/min height constraints
- Inventory items now scroll internally with flex layout
- Remove bottom margin from Enable Immersive HTML toggle
- Add top margin to Manual Update button to maintain spacing
2025-10-14 19:18:17 +02:00
Spicy Marinara b3a2e8c771 Remove active characters list from system message
Removed the introduction of the active characters list from the system message.
2025-10-14 18:12:11 +02:00
Spicy_Marinara 158517c600 feat: auto-import HTML cleaning regex for prompts
- Adds ensureHtmlCleaningRegex() function that automatically imports a regex script
- Regex removes HTML tags from outgoing prompts to prevent formatting issues
- Only imports if not already present (checks existing scripts by name)
- Based on the regex-clean_html_(from_outgoing_prompt).json specification
- Runs on extension initialization
- Non-blocking: won't fail extension load if regex import fails
2025-10-14 15:00:19 +02:00
Spicy_Marinara 7440860402 feat: Add mobile-optimized FAB toggle button for panel
- Added floating action button (FAB) that appears only on mobile (≤768px)
- Panel becomes a bottom sheet modal on mobile instead of fixed sidebar
- Smooth slide-up animation with backdrop overlay
- Panel hidden by default on mobile, opens when FAB clicked
- Touch-friendly button sizes (44px minimum per Apple HIG)
- 70vh height on tablets, 80vh on phones for better usability
- Rounded top corners for modern mobile UI
- Desktop behavior unchanged
2025-10-14 14:39:45 +02:00
Spicy_Marinara 9609eef6ff fix: Update placeholder hints to clarify generation mode options 2025-10-14 14:31:16 +02:00
Spicy_Marinara 609a4b9e47 feat: Enable 'Show Thoughts in Chat' by default for new installs 2025-10-14 14:24:37 +02:00
Spicy_Marinara d98ecce5c3 fix: Append panel directly to body for proper flexbox layout
- Changed from $('#sheld').after/before() to $('body').append()
- Panel is now a direct child of body element
- Works better with SillyTavern's main flexbox layout
- CSS handles all positioning (no more DOM position logic)
2025-10-14 14:10:02 +02:00
Spicy_Marinara d1e4d2d7df fix: Add third-party prefix to extensionName for template loading
- Changed to 'third-party/rpg-companion-sillytavern'
- User-installed extensions need the third-party prefix
- Template loader looks for scripts/extensions/third-party/[name]
2025-10-14 13:01:54 +02:00
Spicy_Marinara 5af6186c32 fix: Update extensionName to match repository folder name
- Changed from 'rpg-companion' to 'rpg-companion-sillytavern'
- Fixes 'Error rendering template' issue
- Template loader uses extensionName to find template files
2025-10-14 12:58:15 +02:00
Spicy_Marinara 73b76fee2f fix: Correct import paths for user-installed extensions
- Changed import paths from ../../ to ../../../
- User-installed extensions are in data/default-user/extensions/
- Paths need one more level up to reach script.js and other core files
2025-10-14 12:42:58 +02:00
Spicy_Marinara 2dd17eda84 fix: Remove Generate from imports for release branch compatibility
- Generate function may not exist in older SillyTavern versions
- Added fallback check for window.Generate before using it
- Should fix '[object Event]' loading error on release branch
2025-10-14 12:40:33 +02:00
Spicy_Marinara aede293116 fix: Add error handling to initialization for better debugging 2025-10-14 12:33:46 +02:00
Spicy_Marinara e53f6675ea fix: Use more compatible emoji parsing without Unicode property escapes
- Replaced \p{Emoji} regex with line-by-line parsing
- Avoids compatibility issues with older JavaScript engines
- Skips percentage and inventory lines to find mood emoji
- Supports all emoji types including compound emojis
2025-10-14 12:17:57 +02:00
Spicy_Marinara d5e4010d4d fix: Support compound emojis in mood parsing
- Updated regex to handle compound emojis with zero-width joiners (ZWJ)
- Fixes mood display for emojis like 😶‍🌫️ (face in clouds)
- Now captures full emoji sequences including variation selectors
2025-10-14 11:39:32 +02:00
Spicy_Marinara 518f2763aa Initial commit 2025-10-14 00:01:23 +02:00