Commit Graph

3374 Commits

Author SHA1 Message Date
Kwaroran
07717a7937 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-02-25 05:27:24 +09:00
kwaroran
08f86f17da fix: force refresh modules after closing menu (#770)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description
It seems modifying an already activated module is causing a
synchronization issue with the current chats. Correcting this should fix
it.
2025-02-25 05:27:13 +09:00
Kwaroran
6c72d78157 Add Sonnet 3.7 2025-02-25 05:25:34 +09:00
Kwaroran
21e311b7a4 Remove thought input in gemini 2025-02-25 04:41:12 +09:00
Kwaroran
fc80552749 feat: enhance tokenizeChat to accept optional countThoughts argument 2025-02-25 04:39:01 +09:00
Kwaroran
ed2957fc50 Upgrade translator playground 2025-02-25 04:36:58 +09:00
bangonicdd
d584139047 revert: make always deduplicate modules 2025-02-23 21:39:41 +09:00
bangonicdd
abf4cdda9d fix: force refresh modules after closing menu 2025-02-23 20:35:39 +09:00
Kwaroran
2af57d3c67 Add new google translaor 2025-02-21 02:38:55 +09:00
Kwaroran
94e23543dd Add ExperimentalGoogleTranslator 2025-02-20 04:06:35 +09:00
Kwaroran
0a2e4fd04c feat: add download and update URLs to userscript metadata 2025-02-19 16:51:06 +09:00
Kwaroran
52225dec97 feat: update userscript to use userScriptFetch and add metadata 2025-02-19 16:49:03 +09:00
Kwaroran
52363552de fix: update fetchWithUSFetch assignment to use unsafeWindow 2025-02-19 16:43:04 +09:00
Kwaroran
c6daf369e3 Add Userscript proxy 2025-02-19 16:40:21 +09:00
Kwaroran
6177957c64 feat: add return CSS error option and update related functionality 2025-02-19 11:12:12 +09:00
Kwaroran
a5d2b4589c fix: update display text for v2If and v2IfAdvanced trigger types 2025-02-16 19:23:55 +09:00
kwaroran
92958c1934 feat: add option to show translation loading (#761)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Preview

![preview](https://github.com/user-attachments/assets/149c1bf4-c3cc-48c6-9d32-bf8e6a268f81)

# Description
This PR introduces following:
- New accessibility option for translation loading even when not
re-translating
- Prevent redundant translation attempts when auto translating
2025-02-16 19:15:56 +09:00
kwaroran
f085c1c496 Merge branch 'main' into patch-2 2025-02-16 19:15:48 +09:00
kwaroran
c88706ea5c fix: issue with asset names case-insensitive (#760)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description
This PR addresses the issue where asset names were only recognized when
entered in lowercase, even if they were originally uppercase. It ensures
that asset names are now case-insensitive, aligning with the intended
behavior.
2025-02-16 19:15:07 +09:00
Kwaroran
616d247dca bump: update application version to 150.2.0 2025-02-16 19:14:21 +09:00
Kwaroran
e6cba3865b Improve triggerv2 2025-02-16 19:13:49 +09:00
bangonicdd
ff76776c10 fix: also make emo case-insensitive as well 2025-02-16 16:51:39 +09:00
Kwaroran
825507fcaf Add V1 option and warning 2025-02-16 15:08:14 +09:00
Bo26fhmC5M
53eb087943 fix: optimize auto translation 2025-02-16 08:56:57 +09:00
Bo26fhmC5M
1562f0549f feat: add option to show translation loading 2025-02-16 08:53:41 +09:00
bangonicdd
7c3563679e fix: make asset names case-insensitive 2025-02-16 03:56:15 +09:00
Kwaroran
82527f2f7d bump: update application version to 150.1.0 2025-02-16 02:55:43 +09:00
Kwaroran
1b1d43cf1b Add request related triggers 2025-02-16 02:55:27 +09:00
Kwaroran
ed142bc06a bump: update application version to 150.0.2 2025-02-16 00:59:17 +09:00
Kwaroran
56cf745641 feat: add v2ExtractRegex trigger with regex input options 2025-02-16 00:59:03 +09:00
Kwaroran
d6472971c5 Add wait and updategui trigger 2025-02-16 00:39:11 +09:00
Kwaroran
2b36ad073f Fix Imggen 2025-02-16 00:33:15 +09:00
Kwaroran
c8c243bf08 fix: add error handling in processScriptFull for display mode 2025-02-15 22:03:18 +09:00
Kwaroran
793aefc054 bump: update application version to 150.0.1 2025-02-15 21:59:52 +09:00
Kwaroran
f250ee4f4c fix: handle undefined displayData in processScriptFull function 2025-02-15 21:58:03 +09:00
Kwaroran
4da60032d8 Add bulk enabling settings 2025-02-15 21:45:00 +09:00
Kwaroran
f131b4aac3 bump: update application version to 150.0.0 2025-02-15 21:39:30 +09:00
Kwaroran
aa21966d64 refactor: remove unused 'v2GetCharCount' case from runTrigger function 2025-02-15 21:39:10 +09:00
Kwaroran
dce4f11593 Add runLLM model selection 2025-02-15 21:37:28 +09:00
Kwaroran
dcc7c56726 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-02-15 21:32:11 +09:00
Kwaroran
d2fce340bb Add TriggerV2 2025-02-15 21:29:37 +09:00
bangonicdd
9773dc48a9 fix: adjust pipelineness in prev PR for easing further managing 2025-02-15 00:41:15 +09:00
Kwaroran
dffc5ee65e refactor: remove legacy imports and update event handling in chat and trigger components 2025-02-14 00:21:42 +09:00
kwaroran
089698a489 feat: reintroduce module integration (#756)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description
This PR reintroduces the module integration feature and includes the
following changes:

1. Modules activated via integration, rather than global activation from
the module menu, are now visually distinguished with a separate color.

![image](https://github.com/user-attachments/assets/641cbd41-e858-4206-8007-66778d06a220)

2. When a module is globally activated after being enabled through
integration, it will no longer be applied twice.
3. Added a button in the developer tools to view a list of all currently
active modules.

![image](https://github.com/user-attachments/assets/02119ea0-4de7-4eae-90ac-dd9a20ddf2de)

![image](https://github.com/user-attachments/assets/05411ea9-35bc-4fca-abf5-14e464171483)


4. Fixed an issue where the `module_enabled` cbs was operating based on
module names instead of namespaces, contrary to the documentation. It
now also detects modules activated through integration.
5. Fixed issues where module integration did not properly sync with
module additions, modifications, and deletions.

Let me know if any further adjustments are needed!
2025-02-13 02:24:01 +09:00
bangonicdd
b783dc9874 feat: reintroduce module integration 2025-02-10 09:02:57 +09:00
kwaroran
1c76f87711 feat: add global toggle buttons for lorebook always-active state (#754)
# PR Checklist
- [x] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [x] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Preview

![off](https://github.com/user-attachments/assets/0b062220-a101-4c77-ac58-9e87d7e8985c)


![on](https://github.com/user-attachments/assets/1441ad33-6608-4df4-8d8d-4de9c927d180)

# Description
This PR introduces following:
- Add buttons to toggle all character/chat lorebooks' always-active
state at once
- Show SunIcon when all lorebooks are active, LinkIcon otherwise
2025-02-09 16:25:19 +09:00
kwaroran
852a629a34 fix: stringify object in HypaProcesser to display actual error content instead of [object Object] (#753)
# PR Checklist
- [x] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [x] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description

![1](https://github.com/user-attachments/assets/04012607-375c-4128-abf0-50ef6daae3b6)

The error messages were not properly displayed, showing [object Object]
instead of the actual content.
<br>


![2](https://github.com/user-attachments/assets/5ff217ab-cb50-41e1-b2eb-a9ba8eeef094)

This PR improves error handling to display actual error content.
2025-02-09 16:25:09 +09:00
kwaroran
328f1ea0f9 feat: add trigger effect RunAxLLM (#752)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description
This PR introduces new trigger effect 'RunAxLLM' which allows running
auxiliary model separately from the main model.
Basically, the logic is the same except that a request of type 'otherAx'
is made instead of 'model'.
2025-02-09 16:24:55 +09:00
kwaroran
7e71d03d21 Merge branch 'main' into patch-25 2025-02-09 16:24:49 +09:00
kwaroran
4a4a47b418 fix: display cached llm translations while sending message (#751)
# PR Checklist
- [x] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [x] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description
This PR introduces fix: display cached llm translations while sending
message
2025-02-09 16:24:12 +09:00