Skip to content

Refactoring scripting.ts - #998

Closed
concertypin wants to merge 1 commit into
kwaroran:mainfrom
concertypin:dev-script-over-plugin
Closed

concertypin wants to merge 1 commit into
kwaroran:mainfrom
concertypin:dev-script-over-plugin

Conversation

@concertypin

Copy link
Copy Markdown
Contributor

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

Since scripting.ts is too long to read, separate it into some pieces of file.

@kwaroran kwaroran added the Complex PR Complex PR that requires detailed review label Dec 24, 2025
@kwaroran kwaroran mentioned this pull request Dec 24, 2025
2 of 3 tasks
@kwaroran kwaroran self-assigned this Dec 24, 2025
kwaroran added a commit that referenced this pull request Jan 30, 2026
…1211)

## PR Checklist

- Required Checks
    - [x] Have you added type definitions?
    - [x] Have you tested your changes?
    - [x] Have you checked that it won't break any existing features?
- [ ] If your PR uses models[^1], if true, check the following:
    - [ ] Have you checked if it works normally in all 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?
- [ ] If your PR is highly ai generated[^2], check the following:
    - [ ] Have you understanded what the code does?
    - [ ] Have you cleaned up any unnecessary or redundant code?
    - [ ] Is is not a huge change?
- We currently do not accept highly ai generated PRs that are large
changes.


[^1]: Modifies the behavior of prompting, requesting or handling
responses from ai models.
[^2]: Almost over 80% of the code is ai generated.

## Summary

The defaultValue property was added to alertInput to allow pre-entering
of a word.

## Related Issues

During testing, pressing the Esc key occasionally resulted in 0 being
entered. This is a bug caused by interaction with the Esc button, and
will need to be fixed later, but is not covered in this PR.

## Changes

A defaultValue property was added to alertInput, and some elements that
use alertInput were modified to use defaultValue. Key and password
fields were not touched.

## Impact

For example, when renaming bookmarks, folders, etc., you can edit the
desired field instead of renaming them from beginning. This feature can
also be used in other development projects.
<img width="248" height="197" alt="image"
src="https://github.com/user-attachments/assets/3cff31b6-7b2b-4b2e-92c8-0622377dcca2"
/>

## Additional Notes

This feature needs to be modified to work with v2trigger and lua, but
since another PR #998 is currently in progress, I'll rewrite this later.

@cubicj cubicj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The split itself checks out, but main kept adding APIs to scriptings.ts after this branch deleted it, so the merge is now a modify/delete conflict and redoing the split on top of the current main looks cheaper than untangling this branch. Would you be interested in continuing this on the current main?

yor42 pushed a commit to yor42/RisuTanium that referenced this pull request Sep 21, 2026
…waroran#1211)

## PR Checklist

- Required Checks
    - [x] Have you added type definitions?
    - [x] Have you tested your changes?
    - [x] Have you checked that it won't break any existing features?
- [ ] If your PR uses models[^1], if true, check the following:
    - [ ] Have you checked if it works normally in all 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?
- [ ] If your PR is highly ai generated[^2], check the following:
    - [ ] Have you understanded what the code does?
    - [ ] Have you cleaned up any unnecessary or redundant code?
    - [ ] Is is not a huge change?
- We currently do not accept highly ai generated PRs that are large
changes.


[^1]: Modifies the behavior of prompting, requesting or handling
responses from ai models.
[^2]: Almost over 80% of the code is ai generated.

## Summary

The defaultValue property was added to alertInput to allow pre-entering
of a word.

## Related Issues

During testing, pressing the Esc key occasionally resulted in 0 being
entered. This is a bug caused by interaction with the Esc button, and
will need to be fixed later, but is not covered in this PR.

## Changes

A defaultValue property was added to alertInput, and some elements that
use alertInput were modified to use defaultValue. Key and password
fields were not touched.

## Impact

For example, when renaming bookmarks, folders, etc., you can edit the
desired field instead of renaming them from beginning. This feature can
also be used in other development projects.
<img width="248" height="197" alt="image"
src="https://github.com/user-attachments/assets/3cff31b6-7b2b-4b2e-92c8-0622377dcca2"
/>

## Additional Notes

This feature needs to be modified to work with v2trigger and lua, but
since another PR kwaroran#998 is currently in progress, I'll rewrite this later.
@SameDesu123

SameDesu123 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Hi @concertypin,

If possible, could you let us know whether you plan to continue working on this PR?

We really appreciate your contribution, but since this PR has remained unmerged for quite some time, it has started to hold back the introduction of some related features.

A quick update from you would help the community coordinate development. Thank you!

@concertypin

Copy link
Copy Markdown
Contributor Author

Too stale to continue working. I'll make a new PR from scratch. Thanks!

@concertypin concertypin closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complex PR Complex PR that requires detailed review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants