Commit Graph

3403 Commits

Author SHA1 Message Date
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
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