Commit Graph

3339 Commits

Author SHA1 Message Date
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
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
kwaroran
ab8a2f1222 Merge branch 'main' into patch-24 2025-02-09 16:24:05 +09:00
kwaroran
a449cdd1f4 feat: add doNotSummarizeUserMessage option for HypaV3 and improve HypaV3 modal (#750)
# 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?
- [x] Have you added type definitions?

# Description
This PR introduces following:
- Add doNotSummarizeUserMessage option to exclude user messages from
summarization
- Add early return logic to prevent unnecessary similarity checks when
summaries are empty
- Add length check before summarization
- Set to default settings when selecting HypaV3 on OtherBotSettings
- Add localization for HypaV3 settings and modal
- Change HypaV3 modal title
- Add import summary filtering and improve search in HypaV3
2025-02-09 16:23:37 +09:00
kwaroran
24bd3f7dfa Fix: Replace /sw/check to /sw/img in service worker checkCache (#748)
# 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
Currently, a specific endpoint that calls /sw/check in the service
worker checks whether '/sw/check' is cached.
Since the service worker does not have any logic to cache /sw/check
itself, the service worker will always respond that there is no cached
data.
This forces all data to be re-registered when getFileSrc is called from
globalApi.svelte.ts, and bots with a lot of assets will re-register all
data, which slows down bot changes.
Since I am not familiar with the internal structure of RisuAI, I have
temporarily modified the code to check /sw/img when the service worker
checks /sw/check.
2025-02-09 16:23:22 +09:00
kwaroran
2f0f08b6fd refactor(parser): import only the required asset when in a node environment (#745)
# 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 contains modifications to import only the required assets when
talking to Asset Bot.

- refactor parseAdditionalAssets()
- Modified the getClostMatch() to work well with Object<key, value> to
which it is dynamically added.
2025-02-09 16:23:10 +09:00
Bo26fhmC5M
3e3511760e feat: add import summary filtering and improve search in HypaV3
- Add important summary filtering button
- Improve search navigation with focus-based results
- Add mobile-friendly previous/next search buttons
2025-02-09 15:23:24 +09:00
Bo26fhmC5M
02e0b326b6 Merge branch 'patch-23' of https://github.com/Bo26fhmC5M/RisuAI into patch-23 2025-02-09 09:02:55 +09:00
Bo26fhmC5M
1f03e17f11 fix: change HypaV3 modal title 2025-02-09 09:02:53 +09:00
Bo26fhmC5M
0670972016 fix: change lorebook toggle button labels to uppercase for better readability 2025-02-08 23:04:59 +09:00
Bo26fhmC5M
73003c115d feat: add global toggle buttons for lorebook always-active state
- Add buttons to toggle all character/chat lorebooks' always-active state at once
- Show SunIcon when all lorebooks are active, LinkIcon otherwise
2025-02-08 22:37:26 +09:00
Bo26fhmC5M
80ba79e2ab fix: stringify object in HypaProcesser to display actual error content instead of [object Object] 2025-02-08 21:33:34 +09:00
Bo26fhmC5M
fb941148e0 feat: add trigger effect RunAxLLM 2025-02-08 17:15:45 +09:00
Bo26fhmC5M
f2ca0f2188 Merge branch 'kwaroran:main' into patch-24 2025-02-08 14:49:06 +09:00
Bo26fhmC5M
60118e6e8f Merge branch 'kwaroran:main' into patch-23 2025-02-08 14:48:56 +09:00
Bo26fhmC5M
6b6be0504d fix: display cached llm translations while sending message 2025-02-08 11:17:46 +09:00
Bo26fhmC5M
2d455840a4 feat: add localization for HypaV3 settings and modal 2025-02-08 02:17:35 +09:00
Bo26fhmC5M
d36d8c8654 feat: set to default settings when selecting HypaV3 on OtherBotSettings 2025-02-07 23:43:20 +09:00
Bo26fhmC5M
2fa11ebbe4 fix: add length check before summarization in HypaV3 2025-02-07 23:31:41 +09:00
Bo26fhmC5M
6d79f45d32 feat: add doNotSummarizeUserChat option in HypaV3
- Add doNotSummarizeUserChat option to exclude user messages from summarization
- Add early return logic to prevent unnecessary similarity checks when summaries are empty
2025-02-07 21:08:50 +09:00
kwaroran
89c34dfdd7 fix: disable module before remove (#747)
# 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 fixes an issue where a removed module remains active until the
app is restarted if it was enabled at the time of deletion.
2025-02-07 20:34:41 +09:00
kwaroran
0dc0a01df2 feat: custom toggles for modules (#746)
# 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 allows custom toggles to be added in the module as well. Below
is a screenshot of the updated module editing UI. Please feel free to
let me know if any further adjustments are needed or if you prefer not
to proceed with these changes.


![image](https://github.com/user-attachments/assets/7d6e98c3-f2be-4abf-89cc-ed8f97c082e3)
2025-02-07 20:34:29 +09:00
RH+
90c18f6490 Fix: Remove url for debugging 2025-02-07 19:49:04 +09:00
RH+
ca387909ea Fix: Replace /sw/check to /sw/img in service worker checkCache 2025-02-07 19:34:45 +09:00
bangonicdd
b4e3e08be8 fix: toggles should be reactive 2025-02-07 13:00:39 +09:00
Dong Hyun Kim
e3f205cc31 fix(parsor): remove incorrectly imported packages 2025-02-07 10:43:03 +09:00
Dong Hyun Kim
ffd904ab5c fix(parser): fix typo & cleanup 2025-02-07 10:23:15 +09:00
Dong Hyun Kim
997b4f70ce refactor(parser): cleanup & add getEmoSrc() 2025-02-07 01:16:24 +00:00
bangonicdd
b771105025 fix: disable module before remove 2025-02-07 01:26:21 +09:00
Dong Hyun Kim
b3587fc950 refactor(parsor): cleanup & add getAssetSrc()
- Modified getAssetSrc() to handle Emotional, Module, and AdditionalAssets.
- Reduced if-for statement depth for improved readability.
2025-02-06 22:38:57 +09:00
bangonicdd
ef6f671792 feat: custom toggles for modules 2025-02-06 19:45:55 +09:00
Dong Hyun Kim
25b507a01a refactor(parser): import only the required asset when in a node environment
- refactor parseAdditionalAssets()
- Modified the getClostMatch() to work well with Object<key, value> to which it is dynamically added.
2025-02-06 18:33:43 +09:00
Kwaroran
7b57bdf5f1 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-02-06 09:49:23 +09:00
Kwaroran
1b171cab66 Update version, gemini models, and new progress dialoge, and charxjpeg 2025-02-06 09:48:55 +09:00
kwaroran
56b84b5df2 Update zh-Hant.ts (#741)
# 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?

None of the above apply, as this update only involves UI translations.

# Description
- Updated the missing translations to the latest version

Since I can't perform local testing, I plan to hold off on updating the
Simplified Chinese translation for a while. This will give me time to
check if everything works correctly in Traditional Chinese before making
adjustments to both.

As always, many thanks to kwaroran for the hard work!
2025-02-06 09:47:55 +09:00
kwaroran
ceb685f58d fix: add legacy translation support in Auto Translate Cached Only option (#742)
# 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 fix: add legacy translation support in Auto Translate
Cached Only option
2025-02-06 09:47:46 +09:00
kwaroran
c6b7d40b23 feat: charjs style button trigger (#743)
# 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 pull request reintroduces charJS style button event previously
deprecated and removed, using luaEngine. This implementation diverges
from current style by passing attribute data as parameters rather than
function names.
2025-02-06 09:47:36 +09:00